s5pc110: aquila: Distinguish limo universal and limo real
authorKyungmin Park <kyungmin.park@samsung.com>
Mon, 21 Sep 2009 07:58:01 +0000 (16:58 +0900)
committerKyungmin Park <kyungmin.park@samsung.com>
Mon, 21 Sep 2009 07:58:01 +0000 (16:58 +0900)
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
board/samsung/universal/universal.c

index ada0b52..1681d44 100644 (file)
@@ -88,7 +88,7 @@ static int machine_is_aquila(void)
        return board == MACH_AQUILA;
 }
 
-static int machine_is_limo_universal(void)
+static int board_is_limo_universal(void)
 {
        int board;
 
@@ -359,7 +359,7 @@ static void enable_t_flash(void)
 {
        unsigned int pin, value;
 
-       if (!machine_is_limo_universal())
+       if (!(board_is_limo_universal() || board_is_limo_real()))
                return;
 
        pin = S5PC110_GPIO_BASE(S5PC110_GPIO_MP0_5_OFFSET);
@@ -425,7 +425,10 @@ static void check_keypad(void)
 
                reg = S5PC100_KEYPAD_BASE;
        } else {
-               if (machine_is_limo_universal()) {
+               if (board_is_limo_real()) {
+                       mask = 0x00FF;
+                       mode = 0x0033;
+               } else if (board_is_limo_universal()) {
                        mask = 0x0FFF;
                        mode = 0x0333;
                } else {
@@ -578,7 +581,7 @@ int misc_init_r(void)
        if (!machine_is_aquila())
                check_keypad();
 
-       if (machine_is_limo_universal()) {
+       if (board_is_limo_universal() && board_is_limo_real()) {
                /* check max17040 */
                check_battery();