From d32dde692ca4d748a5de743d349b14667fae166d Mon Sep 17 00:00:00 2001 From: Minkyu Kang Date: Wed, 25 Nov 2009 15:35:20 +0900 Subject: [PATCH] s5pc1xx: j1b2: add j1b2 board detection & fix lcd config Signed-off-by: Minkyu Kang --- board/samsung/universal/universal.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/board/samsung/universal/universal.c b/board/samsung/universal/universal.c index d253d36..7c34d2e 100644 --- a/board/samsung/universal/universal.c +++ b/board/samsung/universal/universal.c @@ -202,6 +202,18 @@ static int board_is_limo_real(void) return board == MACH_AQUILA && (board_rev & LIMO_REAL_BOARD); } +static int board_is_j1b2(void) +{ + int board; + + if (cpu_is_s5pc100()) + return 0; + + board = gd->bd->bi_arch_number - C110_MACH_START; + + return board == MACH_AQUILA && (board_rev & J1_B2_BOARD_FEATURE); +} + #ifdef CONFIG_MISC_INIT_R static char device_info[1024]; static int display_info = 0; @@ -1085,7 +1097,9 @@ int misc_init_r(void) /* It should be located at first */ lcd_is_enabled = 0; - if (board_is_limo_real() || board_is_limo_universal()) + if (board_is_limo_real() || + board_is_limo_universal() || + board_is_j1b2()) setenv("lcd", "lcd=s6e63m0"); else setenv("lcd", "lcd=tl2796-dual"); -- 2.7.4