Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

usb: renesas_usbhs: add support for CNEN bit

For some SoC, CNEN must be set for USB Device mode operation.

Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Chris Brandt and committed by
Greg Kroah-Hartman
2195e3af 97a79684

+8
+6
drivers/usb/renesas_usbhs/common.c
··· 114 114 u16 mask = DCFM | DRPD | DPRPU | HSE | USBE; 115 115 u16 val = HSE | USBE; 116 116 117 + /* CNEN bit is required for function operation */ 118 + if (usbhs_get_dparam(priv, has_cnen)) { 119 + mask |= CNEN; 120 + val |= CNEN; 121 + } 122 + 117 123 /* 118 124 * if enable 119 125 *
+1
drivers/usb/renesas_usbhs/common.h
··· 104 104 105 105 /* SYSCFG */ 106 106 #define SCKE (1 << 10) /* USB Module Clock Enable */ 107 + #define CNEN (1 << 8) /* Single-ended receiver operation Enable */ 107 108 #define HSE (1 << 7) /* High-Speed Operation Enable */ 108 109 #define DCFM (1 << 6) /* Controller Function Select */ 109 110 #define DRPD (1 << 5) /* D+ Line/D- Line Resistance Control */
+1
include/linux/usb/renesas_usbhs.h
··· 190 190 u32 has_sudmac:1; /* for SUDMAC */ 191 191 u32 has_usb_dmac:1; /* for USB-DMAC */ 192 192 u32 runtime_pwctrl:1; 193 + u32 has_cnen:1; 193 194 #define USBHS_USB_DMAC_XFER_SIZE 32 /* hardcode the xfer size */ 194 195 }; 195 196