diff options
author | Heiko Stuebner <heiko@sntech.de> | 2016-02-22 12:55:01 +0100 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2016-03-01 17:13:50 +0530 |
commit | 605df8af33a7b206611a7bda01384b2b46d80e17 (patch) | |
tree | 33987d6c34543b6e573df11e98c3f0f69ace5392 /lib/pm-notifier-error-inject.c | |
parent | 12df9c50568a08db0b38fb70f088b80ec2793191 (diff) | |
download | linux-605df8af33a7b206611a7bda01384b2b46d80e17.tar.gz linux-605df8af33a7b206611a7bda01384b2b46d80e17.tar.bz2 linux-605df8af33a7b206611a7bda01384b2b46d80e17.zip |
phy: rockchip-usb: add handler for usb-uart functionality
Most newer Rockchip SoCs provide the possibility to use a usb-phy
as passthrough for the debug uart (uart2), making it possible to
for example get console output without needing to open the device.
This patch adds an early_initcall to enable this functionality
conditionally via the commandline and also disables the corresponding
usb controller in the devicetree.
Currently only data for the rk3288 is provided, but at least the
rk3188 and arm64 rk3368 also provide this functionality and will be
enabled later.
On a spliced usb cable the signals are tx on white wire(D+) and
rx on green wire(D-).
The one caveat is that currently the reconfiguration of the phy
happens as early_initcall, as the code depends on the unflattened
devicetree being available. Everything is fine if only a regular
console is active as the console-replay will happen after the
reconfiguation. But with earlycon active output up to smp-init
currently will get lost.
The phy is an optional property for the connected dwc2 controller,
so we still provide the phy device but fail all phy-ops with -EBUSY
to make sure the dwc2 does not try to transmit anything on the
repurposed phy.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'lib/pm-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions