From f2c3bf191feb16236c5bd1e4e04153e3fff652ef Mon Sep 17 00:00:00 2001 From: Kyungmin Park Date: Fri, 13 Nov 2009 09:49:33 +0900 Subject: [PATCH] s5pc110: aquila: Workaround for Rev 0.3 + CP ES3.1 Signed-off-by: Kyungmin Park --- board/samsung/universal/universal.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/board/samsung/universal/universal.c b/board/samsung/universal/universal.c index 64f0a00..359d1f9 100644 --- a/board/samsung/universal/universal.c +++ b/board/samsung/universal/universal.c @@ -274,11 +274,19 @@ static unsigned int get_hw_revision(struct s5pc1xx_gpio_bank *bank) gpio_set_pull(bank, 2, GPIO_PULL_NONE); /* HWREV_MODE0 */ gpio_set_pull(bank, 3, GPIO_PULL_NONE); /* HWREV_MODE1 */ gpio_set_pull(bank, 4, GPIO_PULL_NONE); /* HWREV_MODE2 */ + rev = gpio_get_value(bank, 2); rev |= (gpio_get_value(bank, 3) << 1); rev |= (gpio_get_value(bank, 4) << 2); rev |= (gpio_get_value(bank, 1) << 3); + /* + * Workaround for Rev 0.3 + CP Ver ES 3.1 + * it's Rev 0.4 + */ + if (rev == 0) + rev = 0x4; + return rev; } -- 2.7.4