]> git.sur5r.net Git - u-boot/commitdiff
ARMV7: S5P: Fixed register offset in mmc.h
authorChander Kashyap <chander.kashyap@linaro.org>
Tue, 22 Mar 2011 01:29:38 +0000 (01:29 +0000)
committerAlbert Aribaud <albert.aribaud@free.fr>
Sun, 27 Mar 2011 17:20:21 +0000 (19:20 +0200)
The MMC registers are accessed through struct s5p_mmc member
variables. MMC controller "control4" register offset is set
to 0x8C as per data sheet. The size of struct s5p_mmc is also
corrected.

Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
arch/arm/include/asm/arch-s5pc1xx/mmc.h
arch/arm/include/asm/arch-s5pc2xx/mmc.h

index 48de64d9c3532f864cffdcf2d0b0dea32a9c942e..d458d3bb8ef230e823fd2e522640d8df7922f776 100644 (file)
@@ -53,10 +53,11 @@ struct s5p_mmc {
        unsigned char   res3[0x34];
        unsigned int    control2;
        unsigned int    control3;
+       unsigned char   res4[4];
        unsigned int    control4;
-       unsigned char   res4[0x6e];
+       unsigned char   res5[0x6e];
        unsigned short  hcver;
-       unsigned char   res5[0xFFF02];
+       unsigned char   res6[0xFFF00];
 };
 
 struct mmc_host {
index 528150d75512cb23a50c21f3eeaf3a17d5102e67..04827cad759550b6490aa301e4992047645fd2b4 100644 (file)
@@ -53,10 +53,11 @@ struct s5p_mmc {
        unsigned char   res3[0x34];
        unsigned int    control2;
        unsigned int    control3;
+       unsigned char   res4[4];
        unsigned int    control4;
-       unsigned char   res4[0x6e];
+       unsigned char   res5[0x6e];
        unsigned short  hcver;
-       unsigned char   res5[0xFF02];
+       unsigned char   res6[0xFF00];
 };
 
 struct mmc_host {