u-boot/board/ti
Amjad Ouled-Ameur 609983e981 board: ti: am335x: Choose CPSW or PRUSS configuration based on jumper setting
The am335x-ice-v2 board's Ethernet ports can be configured
in 'MII' or 'RMII' mode to be connected to 'PRUSS' or 'CPSW'
Ethernet subsystems.

This patch sets the environment variable 'ice_mii' to
'mii' or 'rmii' accordingly. Based on that we choose the
appropriate board devicetree i.e. 'am335x-ice-v2.dtb' or
'am335x-ice-v2-prueth.dtb'.

Since there are 2 Ethernet ports with 2 modes, there can be 4
configurations but for now we consider both ports in different modes
to be an invalid configuration and prevent boot in that case.

Signed-off-by: Roger Quadros <rogerq@ti.com>
[Amjad: use overlay instead of using new am335x-ice-v2-prueth.dtb]
Signed-off-by: Amjad Ouled-Ameur <aouledameur@baylibre.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
[trini: Make prueth_is_mii be marked __maybe_unused]
Signed-off-by: Tom Rini <trini@konsulko.com>
2022-01-16 08:31:03 -05:00
..
am43xx Prepare v2021.10-rc4 2021-09-16 10:29:40 -04:00
am57xx WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
am64x board: ti: am64x: Init DRAM size in R5/A53 SPL 2022-01-15 10:38:26 -05:00
am65x MAINTAINERS: Update ARM TI entry 2021-09-09 11:28:54 -04:00
am335x board: ti: am335x: Choose CPSW or PRUSS configuration based on jumper setting 2022-01-16 08:31:03 -05:00
beagle common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
common ti/common: add support for extension_scan_board function 2021-05-13 13:09:09 -04:00
dra7xx MAINTAINERS: Update ARM TI entry 2021-09-09 11:28:54 -04:00
evm common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
j721e MAINTAINERS: Update ARM TI entry 2021-09-09 11:28:54 -04:00
ks2_evm board: ti: k2g: Program PadConfig_202 before locking RSTMUX8 2021-07-29 10:42:22 +05:30
omap5_uevm MAINTAINERS: Update ARM TI entry 2021-09-09 11:28:54 -04:00
panda Prepare v2021.10-rc4 2021-09-16 10:29:40 -04:00
sdp4430 Prepare v2021.10-rc4 2021-09-16 10:29:40 -04:00
ti816x common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00