From: Minkyu Kang Date: Fri, 13 Nov 2009 01:03:42 +0000 (+0900) Subject: s5pc1xx: aquila: set direction to input when hw rev check X-Git-Tag: CES1223_2~142 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de731c901d02638517f274249d057fe212e24b6f;p=kernel%2Fu-boot.git s5pc1xx: aquila: set direction to input when hw rev check Signed-off-by: Minkyu Kang --- diff --git a/board/samsung/universal/universal.c b/board/samsung/universal/universal.c index 359d1f9..94491c1 100644 --- a/board/samsung/universal/universal.c +++ b/board/samsung/universal/universal.c @@ -270,6 +270,11 @@ static unsigned int get_hw_revision(struct s5pc1xx_gpio_bank *bank) { unsigned int rev; + gpio_direction_input(bank, 1); + gpio_direction_input(bank, 2); + gpio_direction_input(bank, 3); + gpio_direction_input(bank, 4); + gpio_set_pull(bank, 1, GPIO_PULL_NONE); /* HWREV_MODE3 */ gpio_set_pull(bank, 2, GPIO_PULL_NONE); /* HWREV_MODE0 */ gpio_set_pull(bank, 3, GPIO_PULL_NONE); /* HWREV_MODE1 */