Commit 90d4a09f authored by H. Nikolaus Schaller's avatar H. Nikolaus Schaller

LC15: add short delay to version detect after switching pinmux

Signed-off-by: default avatarH. Nikolaus Schaller <hns@goldelico.com>
parent 918c4c46
......@@ -80,6 +80,7 @@ static int get_board_version(void)
padconf_version_pd_lc15,
sizeof(padconf_version_pd_lc15) /
sizeof(struct pad_conf_entry));
udelay(2);
vers = gpio_get_value(32) | (gpio_get_value(33) << 1);
/* pull both up */
......@@ -87,6 +88,7 @@ static int get_board_version(void)
padconf_version_pu_lc15,
sizeof(padconf_version_pu_lc15) /
sizeof(struct pad_conf_entry));
udelay(2);
vers |= (gpio_get_value(32) << 2) | (gpio_get_value(33) << 3);
gpio_free(32);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment