powerpc/85xx: Add some defines & registers in immap_85xx.h
authorZhao Chenhui <b35336@freescale.com>
Thu, 27 Jan 2011 11:02:47 +0000 (19:02 +0800)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 5 Apr 2011 15:18:39 +0000 (10:18 -0500)
* Added SDHCDCR register to GUR struct
* Added SDHCDCR_CD_INV define related to SDHCDCR
* Added Pin Muxing define related to TDM on P102x

Signed-off-by: Zhao Chenhui <b35336@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/include/asm/immap_85xx.h

index 7beb6a7bc5c2c1fb4fdc8765efaabbb7f3eaf82d..5118fe07b683f98e6080fda6fa048f88d16352a0 100644 (file)
@@ -1923,6 +1923,7 @@ typedef struct ccsr_gur {
 #define MPC85xx_PMUXCR_SD_DATA         0x80000000
 #define MPC85xx_PMUXCR_SDHC_CD         0x40000000
 #define MPC85xx_PMUXCR_SDHC_WP         0x20000000
+#define MPC85xx_PMUXCR_TDM_ENA         0x00800000
 #define MPC85xx_PMUXCR_QE0             0x00008000
 #define MPC85xx_PMUXCR_QE1             0x00004000
 #define MPC85xx_PMUXCR_QE2             0x00002000
@@ -1998,10 +1999,14 @@ typedef struct ccsr_gur {
        u32     ddrioovcr;      /* DDR IO Override Control */
        u32     tsec12ioovcr;   /* eTSEC 1/2 IO override control */
        u32     tsec34ioovcr;   /* eTSEC 3/4 IO override control */
-       u8      res16[61648];
+       u8      res16[52];
+       u32     sdhcdcr;        /* SDHC debug control register */
+       u8      res17[61592];
 } ccsr_gur_t;
 #endif
 
+#define SDHCDCR_CD_INV         0x80000000 /* invert SDHC card detect */
+
 typedef struct serdes_corenet {
        struct {
                u32     rstctl; /* Reset Control Register */