mx6cuboxi: Differentiate Cubox-i and Hummingboard
authorFabio Estevam <[email protected]>
Sat, 25 Apr 2015 21:47:19 +0000 (18:47 -0300)
committerStefano Babic <[email protected]>
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 <[email protected]>
Signed-off-by: Fabio Estevam <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
board/solidrun/mx6cuboxi/mx6cuboxi.c