From 414eae0d85156ea96ba41bc8f420a6b8a32a40db Mon Sep 17 00:00:00 2001 From: Kyungmin Park Date: Fri, 5 Feb 2010 20:36:52 +0900 Subject: [PATCH] s5pc110: wmg160: Fixme board detection Signed-off-by: Kyungmin Park --- board/samsung/universal/universal.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/board/samsung/universal/universal.c b/board/samsung/universal/universal.c index b6356ab..9512ded 100644 --- a/board/samsung/universal/universal.c +++ b/board/samsung/universal/universal.c @@ -594,20 +594,23 @@ static void check_hw_revision(void) } else gpio_direction_output(&gpio->gpio_mp0_5, 6, 0); - /* WMG160 - GPB[0:7] == 0x00000000 */ +#if 0 + /* WMG160 - FIMXE */ do { int i, wmg160 = 1; for (i = 0; i < 8; i++) { - if (gpio_get_value(&gpio->gpio_g1, i) == 0) - continue; - wmg160 = 0; + if (gpio_get_value(&gpio->gpio_h1, i) != 0) { + wmg160 = 0; + break; + } } if (wmg160) { board = MACH_WMG160; hwrev3 = 1; } } while (0); +#endif board_rev |= get_hw_revision(&gpio->gpio_j0, hwrev3); } -- 2.7.4