]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - patches/0131-ENGR00124951-Uboot-cannot-initialize-MMC-cards.patch
imported Ka-Ro specific additions to U-Boot 2009.08 for TX28
[karo-tx-uboot.git] / patches / 0131-ENGR00124951-Uboot-cannot-initialize-MMC-cards.patch
1 From 1ac6a858ea0d1618b9341794c4b9b550cce659ad Mon Sep 17 00:00:00 2001
2 From: Anish Trivedi <anish@freescale.com>
3 Date: Wed, 7 Jul 2010 12:11:44 -0500
4 Subject: [PATCH] ENGR00124951 Uboot cannot initialize MMC cards
5
6 Removed low voltage (1.8V) from supported voltage ranges.
7 Changed SD2_CMD pad setting to enable SD2 r/w in uboot.
8 Loaded env from booted device instead of SD1 always.
9
10 Signed-off-by: Anish Trivedi <anish@freescale.com>
11 ---
12  board/freescale/mx50_arm2/mx50_arm2.c |    8 ++++----
13  drivers/mmc/imx_esdhc.c               |    2 --
14  2 files changed, 4 insertions(+), 6 deletions(-)
15
16 diff --git a/board/freescale/mx50_arm2/mx50_arm2.c b/board/freescale/mx50_arm2/mx50_arm2.c
17 index d606dfc..bb0ea3a 100644
18 --- a/board/freescale/mx50_arm2/mx50_arm2.c
19 +++ b/board/freescale/mx50_arm2/mx50_arm2.c
20 @@ -434,13 +434,13 @@ int get_mmc_env_devno()
21  
22         switch (soc_sbmr & 0x00300000) {
23         default:
24 -       case 0:
25 +       case 0x0:
26                 mmc_devno = 0;
27                 break;
28 -       case 1:
29 +       case 0x00100000:
30                 mmc_devno = 1;
31                 break;
32 -       case 2:
33 +       case 0x00200000:
34                 mmc_devno = 2;
35                 break;
36         }
37 @@ -486,7 +486,7 @@ int esdhc_gpio_init(bd_t *bis)
38                         mxc_request_iomux(MX50_PIN_SD2_D6,  IOMUX_CONFIG_ALT0);
39                         mxc_request_iomux(MX50_PIN_SD2_D7,  IOMUX_CONFIG_ALT0);
40  
41 -                       mxc_iomux_set_pad(MX50_PIN_SD2_CMD, 0x1E4);
42 +                       mxc_iomux_set_pad(MX50_PIN_SD2_CMD, 0x14);
43                         mxc_iomux_set_pad(MX50_PIN_SD2_CLK, 0xD4);
44                         mxc_iomux_set_pad(MX50_PIN_SD2_D0,  0x1D4);
45                         mxc_iomux_set_pad(MX50_PIN_SD2_D1,  0x1D4);
46 diff --git a/drivers/mmc/imx_esdhc.c b/drivers/mmc/imx_esdhc.c
47 index 78e0607..e3a1fb7 100644
48 --- a/drivers/mmc/imx_esdhc.c
49 +++ b/drivers/mmc/imx_esdhc.c
50 @@ -412,8 +412,6 @@ int fsl_esdhc_initialize(bd_t *bis, struct fsl_esdhc_cfg *cfg)
51         mmc->init = esdhc_init;
52  
53         caps = regs->hostcapblt;
54 -       if (caps & ESDHC_HOSTCAPBLT_VS18)
55 -               mmc->voltages |= MMC_VDD_165_195;
56         if (caps & ESDHC_HOSTCAPBLT_VS30)
57                 mmc->voltages |= MMC_VDD_29_30 | MMC_VDD_30_31;
58         if (caps & ESDHC_HOSTCAPBLT_VS33)
59 -- 
60 1.5.4.4
61