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
..
2021-09-16 10:29:40 -04:00
2021-12-20 17:12:04 -05:00
2021-12-17 09:44:59 -07:00
2021-09-07 16:22:30 -04:00
2021-12-27 16:20:18 -05:00
2021-09-04 12:26:02 -04:00
2021-09-07 16:22:30 -04:00
2021-12-27 16:20:19 -05:00
2021-12-27 08:41:38 -05:00
2021-12-27 08:41:38 -05:00
2021-12-27 08:41:38 -05:00
2021-12-27 08:41:38 -05:00
2021-11-05 11:23:29 -04:00
2021-12-27 08:41:38 -05:00
2021-11-05 11:23:29 -04:00
2021-11-05 11:23:29 -04:00
2021-11-12 14:18:17 -05:00
2021-11-05 11:23:29 -04:00
2021-09-07 16:22:30 -04:00
2021-11-05 11:23:29 -04:00
2021-09-07 16:22:30 -04:00
2021-11-05 11:23:29 -04:00
2021-11-12 14:18:17 -05:00
2021-11-05 11:23:29 -04:00
2021-12-27 16:20:18 -05:00
2021-12-27 16:20:19 -05:00
2021-08-11 17:44:01 +08:00
2021-12-20 17:12:04 -05:00
2021-12-17 09:44:59 -07:00
2021-12-05 09:26:26 -07:00
2021-12-05 09:26:26 -07:00
2021-11-12 14:18:17 -05:00
2021-11-12 14:18:17 -05:00
2021-11-05 11:23:29 -04:00
2021-09-07 16:22:30 -04:00
2021-12-27 16:20:18 -05:00
2021-12-05 09:26:26 -07:00