• Magnus Damm's avatar
    ARM: shmobile: Lager USB0 cable detection workaround · 36be7686
    Magnus Damm authored
    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: default avatarMagnus Damm <damm@opensource.se>
    Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
    36be7686
board-lager.c 18.6 KB