]> git.baikalelectronics.ru Git - uboot.git/commit
mx6cuboxi: fix board detection while patching device-tree phy nodes
authorJosua Mayer <josua@solid-run.com>
Thu, 16 Jun 2022 08:40:15 +0000 (11:40 +0300)
committerStefano Babic <sbabic@denx.de>
Mon, 25 Jul 2022 13:08:23 +0000 (15:08 +0200)
commitf4c925bb7b2ef75900e463b1ee3f2e3dd65deb0c
treec57b5a2ad77615c74f74c6c8067b10a6c6a38571
parent24d02c18749c0bbcd05c43423eb8ec1909bdde9e
mx6cuboxi: fix board detection while patching device-tree phy nodes

ft_board_setup relies on the board_type() function to optimize which phy
nodes need to be enabled for Linux.
Add calls to setup and release the board-detect GPIOs.

Also fix the switch-case statement to only enable phy address 4 for
Cubox and unknown devices.

Fixes: 7d3c907c ("mx6cuboxi: fixup dtb ethernet phy nodes before booting an OS")
Signed-off-by: Josua Mayer <josua@solid-run.com>
board/solidrun/mx6cuboxi/mx6cuboxi.c