mx6cuboxi: consolidate board detection and add som revision checking
authorJon Nettleton <jon@solid-run.com>
Thu, 7 Jun 2018 13:17:36 +0000 (16:17 +0300)
committerStefano Babic <sbabic@denx.de>
Mon, 18 Jun 2018 14:50:40 +0000 (16:50 +0200)
commit73708200f05501c5d9b7cb6d0a29b0839120b3c0
treeee2af05cad375001c509c950c876e93a402371f2
parent8fd05fccc8b31a37017f33bc70bbb7bc819d77f0
mx6cuboxi: consolidate board detection and add som revision checking

In order to properly detect the board the checks need to be done
in a specific order.  Move these tests back into a single enum
function that will always return the proper the board it is checking.

This also adds the best test we have for detecting the rev 1.5 som,
and it simplifies the device-tree filename building.

Signed-off-by: Jon Nettleton <jon@solid-run.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
board/solidrun/mx6cuboxi/mx6cuboxi.c
include/configs/mx6cuboxi.h