1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-22 19:35:59 +02:00

qi-constrain-gta02-board-variants.patch

Constrain board variants to legal numbers

Signed-off-by: Andy Green <andy@openmoko.com>
This commit is contained in:
Andy Green 2008-11-28 10:16:39 +00:00 committed by Andy Green
parent 0a72b19c3f
commit 977852eb57

View File

@ -284,6 +284,8 @@ int gta02_get_pcb_revision(void)
rGPDUP |= (1 << 0) | (1 << 3) | (1 << 4);
rGPDDAT |= (1 << 0) | (1 << 3) | (1 << 4);
n &= 1;
return n;
}
@ -316,7 +318,7 @@ int is_this_board_gta02(void)
const struct board_variant const * get_board_variant_gta02(void)
{
return &board_variants[gta02_get_pcb_revision()];
return &board_variants[gta02_get_pcb_revision() & 1];
}
static void putc_gta02(char c)