pcengines/apu1: Enable USB overcurrent detection

Hardware / Coreboot - Tobias Diedrich [tdiedrich.de] - 15 March 2016 15:38 UTC

The two external USB ports and the internal USB header have overcurrent protection chips with the low-active overcurrent signal connected to the chipset.

The power-on default for this register disables the software detection of overcurrent conditions.

After setting the register Linux correctly shows the overcurrent condition in the kernel log (tested by shorting the 5v and gnd lines on J14 / the internal USB header): [ 2015.229921] usb usb1-port3: over-current condition [ 2015.449925] usb usb1-port4: over-current condition

Simlar for the external ports: [ 256.237916] usb usb1-port1: over-current condition [ 256.458084] usb usb1-port5: over-current condition

Note that each signal is shared between two ports: usboc0#: External ports (port1/5) usboc1#: Internal ports (port3/4)

Change-Id: I02d498053b8ec61dc206e74a96c4a1dcfd4fae92

3385ebe pcengines/apu1: Enable USB overcurrent detection.
src/mainboard/pcengines/apu1/mainboard.c | 31 ++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)

Upstream: review.coreboot.org


  • Share