ARM: shmobile: Lager USB0 cable detection workaround
authorMagnus Damm <damm@opensource.se>
Wed, 29 Jan 2014 23:10:29 +0000 (08:10 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Thu, 6 Feb 2014 07:00:14 +0000 (16:00 +0900)
commit36be7686caa05334ca8d52df157b373a41d8d9f1
treecfa78f5bee611a965a9195acfc1c4494c39c3e13
parentf729dd554e9a04a55950693ea8eca0d3aaa28d22
ARM: shmobile: Lager USB0 cable detection workaround

Add Lager board code to check the PWEN GPIO signal and refuse to
allow probe of the USBHS driver in case of DIP misconfiguration.

For correct operation Lager DIP switches SW5 and SW6 shall be
configured in 2-3 position to enable USB Function support.

If the DIP switch is configured incorrectly then the user can
simply adjust the hardware and either reboot or use the bind interface
to try to probe again:

# echo renesas_usbhs > /sys/bus/platform/drivers/renesas_usbhs/bind

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/board-lager.c