wandboard: Print the board version in board_late_init()
authorFabio Estevam <festevam@gmail.com>
Fri, 17 Apr 2020 12:27:13 +0000 (09:27 -0300)
committerStefano Babic <sbabic@denx.de>
Sat, 18 Apr 2020 10:59:59 +0000 (12:59 +0200)
commitfe2f432c1c81763e13a5b5f2f9e61c8fd49555d9
tree5a94c41c5039520623e163ac131c0f13b7f3b4bb
parent06f35583c57fda627fe7f29d1a2ddc6f8bf9d49f
wandboard: Print the board version in board_late_init()

Since CONFIG_DISPLAY_BOARDINFO_LATE is no longer used,  the checkboard()
function is no longer called.

As it is useful to print the board revision, print it inside
board_late_init() instead.

Also, to avoid GPIO errors related to using a GPIO without requesting it,
move the gpio_request(REV_DETECTION, "REV_DETECT") call prior to its
usage.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Tested-by: Heiko Schocher <hs@denx.de>
board/wandboard/wandboard.c