summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2016-10-28 18:21:33 +0800
committerHans de Goede <hdegoede@redhat.com>2016-10-30 11:38:04 +0100
commit3ebb4567d688369ec95c407aae4fa88071188079 (patch)
tree61a7a7c70b402e14488a1e5191b823af5f77fb46
parenta98c296a0ed7a77a86c86fc1b7d6d75681a76523 (diff)
downloadu-boot-imx-3ebb4567d688369ec95c407aae4fa88071188079.zip
u-boot-imx-3ebb4567d688369ec95c407aae4fa88071188079.tar.gz
u-boot-imx-3ebb4567d688369ec95c407aae4fa88071188079.tar.bz2
sunxi: add MMC pinmux setup for SDC2 on sun9i
The A80 can support 8-bit eMMC with reset on the PC pingroups. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Acked-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r--board/sunxi/board.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/sunxi/board.c b/board/sunxi/board.c
index 6281c9d..5365638 100644
--- a/board/sunxi/board.c
+++ b/board/sunxi/board.c
@@ -307,6 +307,13 @@ static void mmc_pinmux_setup(int sdc)
sunxi_gpio_set_pull(pin, SUNXI_GPIO_PULL_UP);
sunxi_gpio_set_drv(pin, 2);
}
+#elif defined(CONFIG_MACH_SUN9I)
+ /* SDC2: PC6-PC16 */
+ for (pin = SUNXI_GPC(6); pin <= SUNXI_GPC(16); pin++) {
+ sunxi_gpio_set_cfgpin(pin, SUNXI_GPC_SDC2);
+ sunxi_gpio_set_pull(pin, SUNXI_GPIO_PULL_UP);
+ sunxi_gpio_set_drv(pin, 2);
+ }
#endif
break;