Commit 797396f3 authored by H. Nikolaus Schaller's avatar H. Nikolaus Schaller
Browse files

Pyra: add short delay to version detect after switching pinmux

parent 90d4a09f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -166,8 +166,8 @@ struct tca642x_bank_info pyra_tca642x_init[] = {
/*
 * Board Revision Detection
 *
 * gpio6_160, gpio6_182 and gpio6_185 can optionally be pulled down
 * by 10k resistors.
 * gpio6_160, gpio6_182 and gpio6_185 can be pulled down
 * by optional 1k resistors.
 */

static int get_pyra_mainboard_revision(void)
@@ -192,6 +192,7 @@ static int get_pyra_mainboard_revision(void)
			gpio_direction_input(160);
			gpio_direction_input(182);
			gpio_direction_input(185);
			udelay(2);

			revision = gpio_get_value(185) << 2 |
				gpio_get_value(182) << 1 |