• Loic Poulain's avatar
    usb: chipidea: Add dynamic pinctrl selection · 16caf1fa
    Loic Poulain authored
    Some hardware implementations require to configure pins differently
    according to the USB role (host/device), this can be an update of the
    pins routing or a simple GPIO value change.
    
    This patch introduces new optional "host" and "device" pinctrls.
    If these pinctrls are defined by the device, they are respectively
    selected on host/device role start.
    
    If a default pinctrl exist, it is restored on host/device role stop.
    Signed-off-by: default avatarLoic Poulain <loic.poulain@linaro.org>
    Signed-off-by: default avatarPeter Chen <peter.chen@nxp.com>
    16caf1fa
host.c 6.34 KB