mx6cuboxi: Differentiate Cubox-i and Hummingboard
authorFabio Estevam <fabio.estevam@freescale.com>
Sat, 25 Apr 2015 21:47:19 +0000 (18:47 -0300)
committerStefano Babic <sbabic@denx.de>
Mon, 27 Apr 2015 11:13:57 +0000 (13:13 +0200)
commitfeb6cc5cb3bfd2c99e7092ac3ba6adc726ca4100
treee8b41f7cc4016d7a59990511bf20ccb75ee1777b
parent8cb6817e3a38ad8bed52d6daa1815c6853fb82ac
mx6cuboxi: Differentiate Cubox-i and Hummingboard

Introduce is_hummingboard() function that reads GPIOs that can distinguish
between Cubox-i and Hummingboard.

Print the board name accordingly.

Based on a patch from Rabeeh Khoury.

Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
board/solidrun/mx6cuboxi/mx6cuboxi.c