s5pc110: code cleanup and added hwrevision6 for check_keypad()
authorDonghwa Lee <dh09.lee@samsung.com>
Mon, 2 Aug 2010 05:02:50 +0000 (14:02 +0900)
committerDonghwa Lee <dh09.lee@samsung.com>
Mon, 2 Aug 2010 05:02:50 +0000 (14:02 +0900)
board/samsung/universal/universal.c

index 8bccc87..60dc391 100644 (file)
@@ -985,8 +985,6 @@ static void check_keypad(void)
 
                value = readl(reg + S5PC1XX_KEYIFROW_OFFSET);
                row_state[i] = ~value & ((1 << row_num) - 1);
-               if (row_state[i])
-                       printf("[%d col] row_state: 0x%x\n", i, row_state[i]);
        }
 
        /* KEYIFCOL reg clear */
@@ -1004,7 +1002,7 @@ static void check_keypad(void)
                        /* cam full shot & volume down  or hold key & volume down */
                        if ((power_key || (row_state[1] & 0x6)) && (row_state[2] & 0x4))
                                auto_download = 1;
-               } else if (board_is_sdk() && (hwrevision(3) || hwrevision(4))) {
+               } else if (board_is_sdk() && (hwrevision(3) || hwrevision(4) || hwrevision(6))) {
                        /* cam full shot & volume down or hold key & volume down */
                        if ((power_key || (row_state[1] & 0x6)) && (row_state[2] & 0x4))
                                auto_download = 1;