From: Minkyu Kang Date: Fri, 13 Nov 2009 03:09:40 +0000 (+0900) Subject: s5pc1xx: aquila: work around for rev 0.4 (rev 0.3 + CP ES3.1) X-Git-Tag: CES1223_2~139 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c56208c595fbd4f877b5c199437bdf9aef27fa1;p=kernel%2Fu-boot.git s5pc1xx: aquila: work around for rev 0.4 (rev 0.3 + CP ES3.1) Signed-off-by: Minkyu Kang --- 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; }