u-boot/board/ti/am335x
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
..
board.c board: ti: am335x: Choose CPSW or PRUSS configuration based on jumper setting 2022-01-16 08:31:03 -05:00
board.h arm: am335x: add support for i2c2 bus 2021-05-13 13:09:09 -04:00
Kconfig Convert all of CONFIG_CONS_INDEX to Kconfig 2018-03-16 10:28:52 -04:00
MAINTAINERS configs: Add spiboot support for am335x 2020-09-15 18:51:53 +05:30
Makefile Convert CONFIG_SKIP_LOWLEVEL_INIT et al to Kconfig 2021-08-31 17:47:49 -04:00
mux.c am335x: Drop non-DM_I2C code 2021-08-30 14:10:07 -04:00
u-boot.lds efi_loader: Rename sections to allow for implicit data 2018-07-25 14:57:44 +02:00