u-boot/drivers/usb
Jagan Teki 9c22aec410 usb: sunxi: Use proper reg_mask for clock gate, reset
Masking clock gate, reset register bits based on the
probed controller is proper only due to the assumption
that masking should start with 0 even thought the controller
has separate PHY or shared between OTG.

unfortunately these are fixed due to lack of separate
clock, reset drivers.

Say for example EHCI1 - EHCI3 in the datasheet (EHCI0 is for the OTG)
so we need to start reg_mask 0 - 2.

This patch calculated the mask, based on the register base
so that we can get the proper bits to set with respect to
probed controller.

We even do this masking by using PHY index specifier from dt,
but dev_read_addr_size is failing for 64-bit boards.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
2018-06-29 10:52:18 +02:00
..
common usb: common: add support to get maximum speed from dt 2018-05-18 13:23:10 +02:00
dwc3 bug.h: introduce WARN_ONCE 2018-06-07 17:08:06 -04:00
emul SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
eth dwc2 USB controller hangs with lan78xx 2018-06-27 22:21:25 -04:00
gadget lib: Add hexdump 2018-06-13 07:49:12 -04:00
host usb: sunxi: Use proper reg_mask for clock gate, reset 2018-06-29 10:52:18 +02:00
musb SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
musb-new bug.h: introduce WARN_ONCE 2018-06-07 17:08:06 -04:00
phy SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ulpi SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Kconfig usb: kbd: select SYS_STDIO_DEREGISTER 2018-02-21 20:28:15 +01:00