]> git.baikalelectronics.ru Git - uboot.git/commit
board: ti: am57xx: Fix detection of board version
authorLokesh Vutla <lokeshvutla@ti.com>
Sun, 16 Jul 2017 14:29:18 +0000 (19:59 +0530)
committerTom Rini <trini@konsulko.com>
Wed, 26 Jul 2017 15:26:49 +0000 (11:26 -0400)
commit82698cea9db147a86a53c5721f89c83a97fd206d
tree62dc0e74225a86f2429b7cae731bd7f7e79c64e8
parent3ab02713c8f7df6a6655fded05ec4bb3484b54ca
board: ti: am57xx: Fix detection of board version

board_is*("rev", board_ti_get_rev()) uses strncmp() for
revison detection and assumes it is success if return value
is <= 0. This will fail in case of multiple versions, as
revb will be true for board_is_*revb() and board_is_*reva().
Fix it by looking for exact match of the string.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
board/ti/am57xx/board.c