s5pc110: aquila: probing fsa9480
authorMinkyu Kang <mk7.kang@samsung.com>
Wed, 23 Sep 2009 03:02:02 +0000 (12:02 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Wed, 23 Sep 2009 03:02:02 +0000 (12:02 +0900)
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
board/samsung/universal/universal.c

index a9335df..3a42a78 100644 (file)
@@ -569,6 +569,19 @@ static void check_mhl(void)
        }
 }
 
+void check_micro_usb(void)
+{
+       unsigned char val[2];
+       unsigned char addr = 0x25;      /* fsa9480 */
+
+       i2c_gpio_set_bus(I2C_PMIC);
+
+       if (i2c_probe(addr)) {
+               printf("Can't found fsa9480\n");
+               return;
+       }
+}
+
 int misc_init_r(void)
 {
        check_hw_revision();
@@ -589,6 +602,9 @@ int misc_init_r(void)
        if (!machine_is_aquila())
                check_keypad();
 
+       /* check fsa9480 */
+       check_micro_usb();
+
        if (board_is_limo_universal() || board_is_limo_real()) {
                /* check max17040 */
                check_battery();