]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: add DWC3_GUCTL1 reg for debug
authorWilliam Wu <william.wu@rock-chips.com>
Fri, 13 May 2016 10:13:46 +0000 (18:13 +0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 20 Jun 2016 09:32:46 +0000 (12:32 +0300)
commit3566278f7e2874485f1d61f773ebd6c93509bd9c
treec8ffa5787de734517d68a34d56e60f3e6c63dee7
parente725f35845167bc8f454fc50bbc96bf0f5518815
usb: dwc3: add DWC3_GUCTL1 reg for debug

GUCTL1 reg has some useful functions which can be
written by user. For rockchip platform, we set
GUCTL1.DEV_FORCE_20_CLK_FOR_30_CLK (bit26, applicable
for the core is programmed to operate in 2.0 device
only) to 1 in bootrom, and after start the kernel,
we want to check whether this bit can be reset to
default 0 after the core reset. Dump GUCTL1 reg from
debugfs is more convenient for us.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/debugfs.c