[U-Boot] [PATCH v2 2/3] board: am335x-icev2: add ethernet phy mode detection logic
Joe Hershberger
joe.hershberger at gmail.com
Tue Oct 11 23:52:05 CEST 2016
On Wed, Aug 24, 2016 at 2:35 PM, Roger Quadros <rogerq at ti.com> wrote:
> Both ethernet ports can be used as CPSW ethernet (RMII mode)
> or PRU ethernet (MII mode) by setting the jumper near the port.
> Read the jumper value and set the pinmux, external mux and
> PHY clock accordingly.
>
> As jumper line is overridden by PHY RX_DV pin immediately
> after bootstrap (power-up/reset), we have to use GPIO edge
> detection to capture the jumper line status.
>
> As u-boot doesn't provide any infrastructure for GPIO edge
> detection, we directly access the GPIO registers.
>
> Signed-off-by: Roger Quadros <rogerq at ti.com>
Acked-by: Joe Hershberger <joe.hershberger at ni.com>
More information about the U-Boot
mailing list