diff options
Diffstat (limited to 'board')
-rw-r--r-- | board/freescale/mx6q_sabresd/mx6q_sabresd.c | 43 | ||||
-rw-r--r-- | board/freescale/mx6sl_arm2/mx6sl_arm2.c | 39 | ||||
-rw-r--r-- | board/freescale/mx6sl_evk/mx6sl_evk.c | 39 |
3 files changed, 0 insertions, 121 deletions
diff --git a/board/freescale/mx6q_sabresd/mx6q_sabresd.c b/board/freescale/mx6q_sabresd/mx6q_sabresd.c index d6b4062..7be4d26 100644 --- a/board/freescale/mx6q_sabresd/mx6q_sabresd.c +++ b/board/freescale/mx6q_sabresd/mx6q_sabresd.c @@ -763,9 +763,6 @@ int i2c_bus_recovery(void) static int setup_pmic_voltages(void) { unsigned char value, rev_id = 0 ; - #if CONFIG_MX6_INTER_LDO_BYPASS - unsigned int val = 0; - #endif i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE); if (!i2c_probe(0x8)) { if (i2c_read(0x8, 0, 1, &value, 1)) { @@ -804,46 +801,6 @@ static int setup_pmic_voltages(void) printf("Set VGEN5 error!\n"); return -1; } - - #if CONFIG_MX6_INTER_LDO_BYPASS - /*VDDCORE 1.1V@800Mhz: SW1AB*/ - value = 0x20; - if (i2c_write(0x8, 0x20, 1, &value, 1)) { - printf("VDDCORE set voltage error!\n"); - return -1; - } - - /*VDDSOC 1.2V : SW1C*/ - value = 0x24; - if (i2c_write(0x8, 0x2e, 1, &value, 1)) { - printf("VDDSOC set voltage error!\n"); - return -1; - } - - /* Bypass the VDDSOC from Anatop */ - val = REG_RD(ANATOP_BASE_ADDR, HW_ANADIG_REG_CORE); - val &= ~BM_ANADIG_REG_CORE_REG2_TRG; - val |= BF_ANADIG_REG_CORE_REG2_TRG(0x1f); - REG_WR(ANATOP_BASE_ADDR, HW_ANADIG_REG_CORE, val); - - /* Bypass the VDDCORE from Anatop */ - val = REG_RD(ANATOP_BASE_ADDR, HW_ANADIG_REG_CORE); - val &= ~BM_ANADIG_REG_CORE_REG0_TRG; - val |= BF_ANADIG_REG_CORE_REG0_TRG(0x1f); - REG_WR(ANATOP_BASE_ADDR, HW_ANADIG_REG_CORE, val); - - /* Bypass the VDDPU from Anatop */ - val = REG_RD(ANATOP_BASE_ADDR, HW_ANADIG_REG_CORE); - val &= ~BM_ANADIG_REG_CORE_REG1_TRG; - val |= BF_ANADIG_REG_CORE_REG1_TRG(0x1f); - REG_WR(ANATOP_BASE_ADDR, HW_ANADIG_REG_CORE, val); - - /*clear PowerDown Enable bit of WDOG1_WMCR*/ - writew(0, WDOG1_BASE_ADDR + 0x08); - printf("hw_anadig_reg_core=%x\n", - REG_RD(ANATOP_BASE_ADDR, HW_ANADIG_REG_CORE)); - #endif - } } #endif diff --git a/board/freescale/mx6sl_arm2/mx6sl_arm2.c b/board/freescale/mx6sl_arm2/mx6sl_arm2.c index f695066..ad6f47f 100644 --- a/board/freescale/mx6sl_arm2/mx6sl_arm2.c +++ b/board/freescale/mx6sl_arm2/mx6sl_arm2.c @@ -952,9 +952,6 @@ int i2c_bus_recovery(void) static int setup_pmic_voltages(void) { unsigned char value, rev_id = 0 ; - #if CONFIG_MX6_INTER_LDO_BYPASS - unsigned int val = 0; - #endif i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE); if (!i2c_probe(0x8)) { if (i2c_read(0x8, 0, 1, &value, 1)) { @@ -966,42 +963,6 @@ static int setup_pmic_voltages(void) return -1; } printf("Found PFUZE100! deviceid=%x,revid=%x\n", value, rev_id); - #if CONFIG_MX6_INTER_LDO_BYPASS - /*VDDCORE 1.1V@800Mhz: SW1AB*/ - value = 0x20; - if (i2c_write(0x8, 0x20, 1, &value, 1)) { - printf("VDDCORE set voltage error!\n"); - return -1; - } - - /*VDDSOC 1.2V : SW1C*/ - value = 0x24; - if (i2c_write(0x8, 0x2e, 1, &value, 1)) { - printf("VDDSOC set voltage error!\n"); - return -1; - } - - /* Bypass the VDDSOC from Anatop */ - val = REG_RD(ANATOP_BASE_ADDR, HW_ANADIG_REG_CORE); - val &= ~BM_ANADIG_REG_CORE_REG2_TRG; - val |= BF_ANADIG_REG_CORE_REG2_TRG(0x1f); - REG_WR(ANATOP_BASE_ADDR, HW_ANADIG_REG_CORE, val); - - /* Bypass the VDDCORE from Anatop */ - val = REG_RD(ANATOP_BASE_ADDR, HW_ANADIG_REG_CORE); - val &= ~BM_ANADIG_REG_CORE_REG0_TRG; - val |= BF_ANADIG_REG_CORE_REG0_TRG(0x1f); - REG_WR(ANATOP_BASE_ADDR, HW_ANADIG_REG_CORE, val); - - /* Bypass the VDDPU from Anatop */ - val = REG_RD(ANATOP_BASE_ADDR, HW_ANADIG_REG_CORE); - val &= ~BM_ANADIG_REG_CORE_REG1_TRG; - val |= BF_ANADIG_REG_CORE_REG1_TRG(0x1f); - REG_WR(ANATOP_BASE_ADDR, HW_ANADIG_REG_CORE, val); - - printf("hw_anadig_reg_core=%x\n", - REG_RD(ANATOP_BASE_ADDR, HW_ANADIG_REG_CORE)); - #endif } } diff --git a/board/freescale/mx6sl_evk/mx6sl_evk.c b/board/freescale/mx6sl_evk/mx6sl_evk.c index 5800f3d..87ef68e 100644 --- a/board/freescale/mx6sl_evk/mx6sl_evk.c +++ b/board/freescale/mx6sl_evk/mx6sl_evk.c @@ -947,9 +947,6 @@ int i2c_bus_recovery(void) static int setup_pmic_voltages(void) { unsigned char value, rev_id = 0; -#if CONFIG_MX6_INTER_LDO_BYPASS - unsigned int val = 0; -#endif i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE); if (!i2c_probe(0x8)) { if (i2c_read(0x8, 0, 1, &value, 1)) { @@ -961,42 +958,6 @@ static int setup_pmic_voltages(void) return -1; } printf("Found PFUZE100! deviceid=%x,revid=%x\n", value, rev_id); -#if CONFIG_MX6_INTER_LDO_BYPASS - /*VDDCORE 1.1V@800Mhz: SW1AB */ - value = 0x20; - if (i2c_write(0x8, 0x20, 1, &value, 1)) { - printf("VDDCORE set voltage error!\n"); - return -1; - } - - /*VDDSOC 1.2V : SW1C*/ - value = 0x24; - if (i2c_write(0x8, 0x2e, 1, &value, 1)) { - printf("VDDSOC set voltage error!\n"); - return -1; - } - - /* Bypass the VDDSOC from Anatop */ - val = REG_RD(ANATOP_BASE_ADDR, HW_ANADIG_REG_CORE); - val &= ~BM_ANADIG_REG_CORE_REG2_TRG; - val |= BF_ANADIG_REG_CORE_REG2_TRG(0x1f); - REG_WR(ANATOP_BASE_ADDR, HW_ANADIG_REG_CORE, val); - - /* Bypass the VDDCORE from Anatop */ - val = REG_RD(ANATOP_BASE_ADDR, HW_ANADIG_REG_CORE); - val &= ~BM_ANADIG_REG_CORE_REG0_TRG; - val |= BF_ANADIG_REG_CORE_REG0_TRG(0x1f); - REG_WR(ANATOP_BASE_ADDR, HW_ANADIG_REG_CORE, val); - - /* Bypass the VDDPU from Anatop */ - val = REG_RD(ANATOP_BASE_ADDR, HW_ANADIG_REG_CORE); - val &= ~BM_ANADIG_REG_CORE_REG1_TRG; - val |= BF_ANADIG_REG_CORE_REG1_TRG(0x1f); - REG_WR(ANATOP_BASE_ADDR, HW_ANADIG_REG_CORE, val); - - printf("hw_anadig_reg_core=%x\n", - REG_RD(ANATOP_BASE_ADDR, HW_ANADIG_REG_CORE)); -#endif } } |