From 4b9e7d7631c8a7bc7aff2beb7011d2c7c3b14080 Mon Sep 17 00:00:00 2001 From: Minkyu Kang Date: Wed, 19 Jan 2011 20:35:45 +0900 Subject: [PATCH] s5pc210: slp7: don't support hwrev0 Signed-off-by: Minkyu Kang --- board/samsung/slp7_c210/slp7.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/board/samsung/slp7_c210/slp7.c b/board/samsung/slp7_c210/slp7.c index a9799ef..0633a98 100644 --- a/board/samsung/slp7_c210/slp7.c +++ b/board/samsung/slp7_c210/slp7.c @@ -870,8 +870,11 @@ static unsigned int get_hw_revision(void) gpio_set_pull(&gpio1->e1, i, GPIO_PULL_NONE); } - for (i = 0; i < 4; i++) - hwrev |= (gpio_get_value(&gpio1->e1, i) << i); + /* Workaround: don't support hwrev 0 */ + while (!hwrev) { + for (i = 0; i < 4; i++) + hwrev |= (gpio_get_value(&gpio1->e1, i) << i); + } return hwrev; } -- 2.7.4