9
0
Fork 0

sysmobts: fix board versio detection

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
This commit is contained in:
Jan Luebbe 2015-06-14 12:07:28 +02:00 committed by Holger Hans Peter Freyther
parent 121f852722
commit be17e14d38
1 changed files with 2 additions and 2 deletions

View File

@ -83,13 +83,13 @@ static void sysmobts_board_detect(void)
board_ver = gpio_get_value(15);
board_ver |= gpio_get_value(16) << 1;
board_ver |= gpio_get_value(17) << 1;
board_ver |= gpio_get_value(17) << 2;
board_cfg = gpio_get_value(10);
board_cfg |= gpio_get_value(11) << 1;
board_cfg |= gpio_get_value(12) << 3;
board_cfg |= gpio_get_value(13) << 4;
board_cfg |= gpio_get_value(14) << 4;
board_cfg |= gpio_get_value(14) << 5;
variant[0] = 'A' + board_ver;
variant[1] = '.';