projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a98c296
)
sunxi: add MMC pinmux setup for SDC2 on sun9i
author
Philipp Tomsich
<
[email protected]
>
Fri, 28 Oct 2016 10:21:33 +0000
(18:21 +0800)
committer
Hans de Goede
<
[email protected]
>
Sun, 30 Oct 2016 10:38:04 +0000
(11:38 +0100)
The A80 can support 8-bit eMMC with reset on the PC pingroups.
Signed-off-by: Chen-Yu Tsai <
[email protected]
>
Acked-by: Hans de Goede <
[email protected]
>
Signed-off-by: Hans de Goede <
[email protected]
>
board/sunxi/board.c
patch
|
blob
|
history
diff --git
a/board/sunxi/board.c
b/board/sunxi/board.c
index 6281c9d70379b89d66eb1e98d922224e0c47e5da..53656383d512199338dcdc1d4fdc4f7f939c9b61 100644
(file)
--- 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;