s5pc210: universal: enable safeout1 when downloading
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 3 Nov 2010 05:24:16 +0000 (14:24 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 3 Nov 2010 05:24:16 +0000 (14:24 +0900)
board/samsung/universal_c210/universal.c

index 0fc482d..614f563 100644 (file)
@@ -649,7 +649,7 @@ static void charger_en(int enable)
                 * setting...
                 */
                val[0] = 0x8B;
-               i2c_write(addr, 0xC, 1, val, 1);
+               i2c_write(addr, 0x0C, 1, val, 1);
                i2c_read(addr, 0x0D, 1, val, 1);
                val[0] &= ~(0x1);
                i2c_write(addr, 0x0D, 1, val, 1);
@@ -657,7 +657,7 @@ static void charger_en(int enable)
        case 600:
                puts("Enable the charger @ 600mA\n");
                val[0] = 0x6D;
-               i2c_write(addr, 0xC, 1, val, 1);
+               i2c_write(addr, 0x0C, 1, val, 1);
                i2c_read(addr, 0x0D, 1, val, 1);
                val[0] &= ~(0x1);
                i2c_write(addr, 0x0D, 1, val, 1);
@@ -1241,6 +1241,7 @@ int usb_board_init(void)
 #ifdef CONFIG_CMD_PMIC
        run_command("pmic ldo 8 on", 0);
        run_command("pmic ldo 3 on", 0);
+       run_command("pmic safeout 1 on", 0);
 #endif
        return 0;
 }