Hi Shimoda-san,
From: Yoshihiro Shimoda
Sent: Wednesday, November 14, 2018 5:50 AM
quoted
config PHY_RCAR_GEN3_USB2
tristate "Renesas R-Car generation 3 USB 2.0 PHY driver"
depends on ARCH_RENESAS
- depends on EXTCON
+ depends on EXTCON || ARCH_R7S9210
Does this mean that you don't want to use EXTCON if ARCH_R7S9210=y?
EXTCON is not required for RZ/A2. So, I want to be able to leave EXTCON
un-selected (save flash space).
quoted
/* Initialize otg part */
if (channel->is_otg_channel)
rcar_gen3_init_otg(channel);
+ else
+ /* No otg, so default to host mode */
+ writel(0x00000000, usb2_base + USB2_COMMCTRL);
This "else" code will run on R-Car H3 USB port1(host only) for instance.
I think adding this code is possible, but I'd like to separate patch from
this adding R7S9210 support. What do you think?
This code is required for RZ/A2.
The reason is the reset value for COMMCTRL in RZ/A2 is 0x80000000 (Peripheral mode).
The reset value in R-Car H3 is 0x00000000 (Host mode).
Without this code, RZ/A2 will not work.
Chris