trats2: add LCD download menu support
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Wed, 22 Jan 2014 10:24:19 +0000 (11:24 +0100)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 3 Feb 2014 06:36:14 +0000 (15:36 +0900)
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
board/samsung/trats2/trats2.c
include/configs/trats2.h
include/power/pmic.h

index b60a2da55585beebf058172d9fc5db39451cf882..62e7fd22242bbbb33abae343d7c1025fabee97e3 100644 (file)
@@ -28,6 +28,7 @@
 #include <usb.h>
 #include <usb/s3c_udc.h>
 #include <usb_mass_storage.h>
+#include <samsung/misc.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -615,6 +616,10 @@ void init_panel_info(vidinfo_t *vid)
 #ifdef CONFIG_MISC_INIT_R
 int misc_init_r(void)
 {
+#ifdef CONFIG_LCD_MENU
+       keys_init();
+       check_boot_mode();
+#endif
 #ifdef CONFIG_CMD_BMP
        if (panel_info.logo_on)
                draw_logo();
index a97ecb2d6ac0fadffa37ed3cf9299c81136f3a46..095f253c26aa21df08a5cbeca2ed4a48acfcadd5 100644 (file)
@@ -322,6 +322,28 @@ int get_soft_i2c_sda_pin(void);
 
 #define CONFIG_MISC_INIT_R
 
+/* Download menu - Samsung common */
+#define CONFIG_LCD_MENU
+#define CONFIG_LCD_MENU_BOARD
+
+/* Download menu - definitions for check keys */
+#ifndef __ASSEMBLY__
+#include <power/max77686_pmic.h>
+
+#define KEY_PWR_PMIC_NAME              "MAX77686_PMIC"
+#define KEY_PWR_STATUS_REG             MAX77686_REG_PMIC_STATUS1
+#define KEY_PWR_STATUS_MASK            (1 << 0)
+#define KEY_PWR_INTERRUPT_REG          MAX77686_REG_PMIC_INT1
+#define KEY_PWR_INTERRUPT_MASK         (1 << 1)
+
+#define KEY_VOL_UP_GPIO                        exynos4x12_gpio_get(2, x2, 2)
+#define KEY_VOL_DOWN_GPIO              exynos4x12_gpio_get(2, x3, 3)
+#endif /* __ASSEMBLY__ */
+
+/* LCD console */
+#define LCD_BPP                 LCD_COLOR16
+#define CONFIG_SYS_WHITE_ON_BLACK
+
 /* LCD */
 #define CONFIG_EXYNOS_FB
 #define CONFIG_LCD
index 0e7aa3149272da6e9752d5966322581a5e7e4c8e..8f282dd2f29c0e70a2011de19e8bf5aff7b78514 100644 (file)
@@ -8,7 +8,6 @@
 #ifndef __CORE_PMIC_H_
 #define __CORE_PMIC_H_
 
-#include <common.h>
 #include <linux/list.h>
 #include <i2c.h>
 #include <power/power_chrg.h>