trats: add LCD download menu support
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Acked-by: Lukasz Majewski <l.majewski@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
This commit is contained in:

committed by
Minkyu Kang

parent
9d29a682a8
commit
00e64ab647
@@ -28,6 +28,7 @@
|
|||||||
#include <power/max17042_fg.h>
|
#include <power/max17042_fg.h>
|
||||||
#include <usb.h>
|
#include <usb.h>
|
||||||
#include <usb_mass_storage.h>
|
#include <usb_mass_storage.h>
|
||||||
|
#include <samsung/misc.h>
|
||||||
|
|
||||||
#include "setup.h"
|
#include "setup.h"
|
||||||
|
|
||||||
@@ -790,6 +791,10 @@ void init_panel_info(vidinfo_t *vid)
|
|||||||
#ifdef CONFIG_MISC_INIT_R
|
#ifdef CONFIG_MISC_INIT_R
|
||||||
int misc_init_r(void)
|
int misc_init_r(void)
|
||||||
{
|
{
|
||||||
|
#ifdef CONFIG_LCD_MENU
|
||||||
|
keys_init();
|
||||||
|
check_boot_mode();
|
||||||
|
#endif
|
||||||
#ifdef CONFIG_CMD_BMP
|
#ifdef CONFIG_CMD_BMP
|
||||||
if (panel_info.logo_on)
|
if (panel_info.logo_on)
|
||||||
draw_logo();
|
draw_logo();
|
||||||
|
@@ -311,6 +311,28 @@
|
|||||||
|
|
||||||
#define CONFIG_MISC_INIT_R
|
#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/max8997_pmic.h>
|
||||||
|
|
||||||
|
#define KEY_PWR_PMIC_NAME "MAX8997_PMIC"
|
||||||
|
#define KEY_PWR_STATUS_REG MAX8997_REG_STATUS1
|
||||||
|
#define KEY_PWR_STATUS_MASK (1 << 0)
|
||||||
|
#define KEY_PWR_INTERRUPT_REG MAX8997_REG_INT1
|
||||||
|
#define KEY_PWR_INTERRUPT_MASK (1 << 0)
|
||||||
|
|
||||||
|
#define KEY_VOL_UP_GPIO exynos4_gpio_get(2, x2, 0)
|
||||||
|
#define KEY_VOL_DOWN_GPIO exynos4_gpio_get(2, x2, 1)
|
||||||
|
#endif /* __ASSEMBLY__ */
|
||||||
|
|
||||||
|
/* LCD console */
|
||||||
|
#define LCD_BPP LCD_COLOR16
|
||||||
|
#define CONFIG_SYS_WHITE_ON_BLACK
|
||||||
|
|
||||||
/* LCD */
|
/* LCD */
|
||||||
#define CONFIG_EXYNOS_FB
|
#define CONFIG_EXYNOS_FB
|
||||||
#define CONFIG_LCD
|
#define CONFIG_LCD
|
||||||
|
Reference in New Issue
Block a user