summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@avionic-design.de>2012-06-04 20:02:29 +0000
committerAlbert ARIBAUD (U-Boot) <uboot@lilith.(none)>2012-07-09 22:44:32 +0200
commit792545430535c7fec7ecfcdf988dd3e9d46c0dd1 (patch)
treefb4d48bc6b5003e710679fd1848c316357207887 /board
parent22d58506f5d04918d2bde62c5fe71abee24e4ea8 (diff)
downloadu-boot-imx-792545430535c7fec7ecfcdf988dd3e9d46c0dd1.zip
u-boot-imx-792545430535c7fec7ecfcdf988dd3e9d46c0dd1.tar.gz
u-boot-imx-792545430535c7fec7ecfcdf988dd3e9d46c0dd1.tar.bz2
tegra: Use SD write-protect GPIO on Tamonten
GPIO PI6 can be used to obtain the write-protect status of an SD card inserted into the SD slot. Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de> Acked-by: Stephen Warren <swarren@wwwdotorg.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'board')
-rw-r--r--board/avionic-design/common/tamonten.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/board/avionic-design/common/tamonten.c b/board/avionic-design/common/tamonten.c
index 915247c..610f188 100644
--- a/board/avionic-design/common/tamonten.c
+++ b/board/avionic-design/common/tamonten.c
@@ -65,6 +65,8 @@ void gpio_early_init(void)
static void pin_mux_mmc(void)
{
funcmux_select(PERIPH_ID_SDMMC4, FUNCMUX_SDMMC4_ATB_GMA_GME_8_BIT);
+ /* for write-protect GPIO PI6 */
+ pinmux_tristate_disable(PINGRP_ATA);
/* for CD GPIO PH2 */
pinmux_tristate_disable(PINGRP_ATD);
}
@@ -76,7 +78,7 @@ int board_mmc_init(bd_t *bd)
pin_mux_mmc();
/* init dev 0, SD slot, with 4-bit bus */
- tegra2_mmc_init(0, 4, -1, GPIO_PH2);
+ tegra2_mmc_init(0, 4, GPIO_PI6, GPIO_PH2);
return 0;
}