From 2c56208c595fbd4f877b5c199437bdf9aef27fa1 Mon Sep 17 00:00:00 2001 From: Minkyu Kang Date: Fri, 13 Nov 2009 12:09:40 +0900 Subject: [PATCH] s5pc1xx: aquila: work around for rev 0.4 (rev 0.3 + CP ES3.1) Signed-off-by: Minkyu Kang --- board/samsung/universal/universal.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/board/samsung/universal/universal.c b/board/samsung/universal/universal.c index 94491c1..d8582eb 100644 --- a/board/samsung/universal/universal.c +++ b/board/samsung/universal/universal.c @@ -289,8 +289,14 @@ static unsigned int get_hw_revision(struct s5pc1xx_gpio_bank *bank) * Workaround for Rev 0.3 + CP Ver ES 3.1 * it's Rev 0.4 */ - if (rev == 0) - rev = 0x4; + if (rev == 0) { + udelay(2000); + + if (gpio_get_value(bank, 2) && + gpio_get_value(bank, 3) && + gpio_get_value(bank, 4)) + rev = 0x4; + } return rev; } -- 2.7.4