]> git.baikalelectronics.ru Git - uboot.git/commit
board: ti: am57xx-idk: Prevent boot for invalid configuation
authorRoger Quadros <rogerq@ti.com>
Mon, 10 Feb 2020 09:59:24 +0000 (11:59 +0200)
committerLokesh Vutla <lokeshvutla@ti.com>
Thu, 13 Feb 2020 16:09:18 +0000 (21:39 +0530)
commita96e27e72a8ee66a071f4e90b44ca2633e9dc3bb
tree849b02f8d898532ac8322a723ac6b754217ef780
parentb519628cc8f311dbb5bae9caa795d29ded841d0d
board: ti: am57xx-idk: Prevent boot for invalid configuation

On am571x-idk there can be following configurations based on Jumper J51
and LCD panel detected.

1) J51 removed (6port): 6 port Ethernet. Disable LCD panel.
2) J51 placed (LCD) + Panel detected: 4 port Ethernet with appropriate LCD.
3) J51 placed (LCD) + Panel not detected/not supported.

Configuration 3 is considered invalid as we can't use display nor ICSS1
ethernet ports due to hardware muxing. Alert the user to fix the
configuration and prevent boot.

Alternative was to allow boot and limit to 4 port Ethernet with no display
but this involved introduction of another DTB for the kernel and was
considered not worth the hassle.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Acked-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
board/ti/am57xx/board.c