]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
powerpc/t4qds: Fix disabling remote I2C connection
authorEd Swarthout <Ed.Swarthout@freescale.com>
Mon, 25 Mar 2013 07:39:37 +0000 (07:39 +0000)
committerAndy Fleming <afleming@freescale.com>
Tue, 14 May 2013 21:13:25 +0000 (16:13 -0500)
Only clear IRE bit in qixis brdcfg5 register and keep other bits
unchanged.

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
Signed-off-by: York Sun <yorksun@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
board/freescale/t4qds/t4240qds_qixis.h
board/freescale/t4qds/t4qds.c

index efb718d2c39d01a8d60b184096f41132147fdf48..485353d5adabe05658fc859dabd7cb39555643d0 100644 (file)
@@ -42,7 +42,7 @@
 #define QIXIS_DDRCLK_125               0x2
 #define QIXIS_DDRCLK_133               0x3
 
-#define BRDCFG5_RESET                  0x00
+#define BRDCFG5_IRE                    0x20    /* i2c Remote i2c1 enable */
 
 #define BRDCFG12_SD3EN_MASK            0x20
 #define BRDCFG12_SD3MX_MASK            0x08
index a84218cdf4a7021979a35766e00ccb9b7f08b7c4..be6d1c49890b9a8b3affab61a6cd0f70d8e54af4 100644 (file)
@@ -504,8 +504,8 @@ int board_early_init_r(void)
        setup_portals();
 #endif
 
-       /* Disable remote I2C connectoin */
-       QIXIS_WRITE(brdcfg[5], BRDCFG5_RESET);
+       /* Disable remote I2C connection to qixis fpga */
+       QIXIS_WRITE(brdcfg[5], QIXIS_READ(brdcfg[5]) & ~BRDCFG5_IRE);
 
        /*
         * Adjust core voltage according to voltage ID