From: Eddie James <eajames@linux.ibm.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 3/4] aspeed: Support SD controller on the ast2500 board
Date: Tue, 13 Aug 2019 14:31:40 -0500 [thread overview]
Message-ID: <1565724701-17344-4-git-send-email-eajames@linux.ibm.com> (raw)
In-Reply-To: <1565724701-17344-1-git-send-email-eajames@linux.ibm.com>
Initialize the MMC subsystem on the ast2500 board. Compile MMC and the
Aspeed SD controller on the ast2500 EVB.
Signed-off-by: Eddie James <eajames@linux.ibm.com>
---
arch/arm/include/asm/gpio.h | 3 ++-
arch/arm/mach-aspeed/ast2500-board.c | 3 +++
configs/evb-ast2500_defconfig | 6 ++++++
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/arch/arm/include/asm/gpio.h b/arch/arm/include/asm/gpio.h
index 370031f..38a5922 100644
--- a/arch/arm/include/asm/gpio.h
+++ b/arch/arm/include/asm/gpio.h
@@ -1,6 +1,7 @@
#if !defined(CONFIG_ARCH_UNIPHIER) && !defined(CONFIG_ARCH_STI) && \
!defined(CONFIG_ARCH_K3) && !defined(CONFIG_ARCH_BCM6858) && \
- !defined(CONFIG_ARCH_BCM63158) && !defined(CONFIG_ARCH_ROCKCHIP)
+ !defined(CONFIG_ARCH_BCM63158) && !defined(CONFIG_ARCH_ROCKCHIP) && \
+ !defined(CONFIG_ARCH_ASPEED)
#include <asm/arch/gpio.h>
#endif
#include <asm-generic/gpio.h>
diff --git a/arch/arm/mach-aspeed/ast2500-board.c b/arch/arm/mach-aspeed/ast2500-board.c
index e7edd54..52a4e05 100644
--- a/arch/arm/mach-aspeed/ast2500-board.c
+++ b/arch/arm/mach-aspeed/ast2500-board.c
@@ -4,6 +4,7 @@
*/
#include <common.h>
#include <dm.h>
+#include <mmc.h>
#include <ram.h>
#include <timer.h>
#include <asm/io.h>
@@ -55,6 +56,8 @@ int board_init(void)
{
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+ mmc_initialize(gd->bd);
+
return 0;
}
diff --git a/configs/evb-ast2500_defconfig b/configs/evb-ast2500_defconfig
index 59d41cb..bfa6b32 100644
--- a/configs/evb-ast2500_defconfig
+++ b/configs/evb-ast2500_defconfig
@@ -16,6 +16,7 @@ CONFIG_HUSH_PARSER=y
CONFIG_CMD_I2C=y
CONFIG_CMD_DHCP=y
CONFIG_CMD_MII=y
+CONFIG_CMD_MMC=y
CONFIG_CMD_PING=y
CONFIG_DEFAULT_DEVICE_TREE="ast2500-evb"
CONFIG_NET_RANDOM_ETHADDR=y
@@ -36,3 +37,8 @@ CONFIG_SYS_NS16550=y
CONFIG_SYSRESET=y
CONFIG_TIMER=y
CONFIG_WDT=y
+CONFIG_MMC=y
+CONFIG_DM_MMC=y
+CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_ASPEED=y
+CONFIG_MMC_VERBOSE=y
--
1.8.3.1
next prev parent reply other threads:[~2019-08-13 19:31 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-13 19:31 [U-Boot] [PATCH v2 0/4] ARM: aspeed: Add SD host controller driver Eddie James
2019-08-13 19:31 ` [U-Boot] [PATCH v2 1/4] clk: aspeed: Add support for SD clock Eddie James
2019-08-14 15:03 ` Cédric Le Goater
2019-08-13 19:31 ` [U-Boot] [PATCH v2 2/4] mmc: Add Aspeed SD controller driver Eddie James
2019-08-14 15:18 ` Cédric Le Goater
2019-08-15 19:27 ` Eddie James
2019-08-13 19:31 ` Eddie James [this message]
2019-08-14 15:23 ` [U-Boot] [PATCH v2 3/4] aspeed: Support SD controller on the ast2500 board Cédric Le Goater
2019-08-15 19:28 ` Eddie James
2019-08-13 19:31 ` [U-Boot] [PATCH v2 4/4] ARM: dts: ast2500: Add SDHCI nodes Eddie James
2019-08-14 15:25 ` Cédric Le Goater
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1565724701-17344-4-git-send-email-eajames@linux.ibm.com \
--to=eajames@linux.ibm.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.