[OpenWrt-Devel] ath79: Force usb host mode for ar9331
micke.prag at telldus.se
Fri Nov 8 02:36:04 EST 2019
In commit 00ea16557d  the way usb is initiated was changed. Instead
of initiate both ehci-platform and ci_hdrc the bootstrap status register
is checked and used to determine which platform to initiate.
Unfortunately this break my board since the gpio used to determine this
is used for other purposes.
dev-usb.h only exposes one function:
so there is not much to alter the way usb is initiated.
I tried to write to the bootstrap register but unfortunately this did
not seem to work:
t = ath79_reset_rr(AR933X_RESET_REG_BOOTSTRAP);
pr_warn("ath79: Register before %X", t);
t |= AR933X_BOOTSTRAP_USB_MODE_HOST;
pr_warn("ath79: Register after %X",
Gives the following output:
ath79: Register before 42202
ath79: Register after 42202
How can I solve this?
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
More information about the openwrt-devel