[OpenWrt-Devel] ath79: Force usb host mode for ar9331

Micke Prag micke.prag at telldus.se
Fri Nov 8 02:36:04 EST 2019

In commit 00ea16557d [1] 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: 
void ath79_register_usb(void);
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:

u32 t;
t = ath79_reset_rr(AR933X_RESET_REG_BOOTSTRAP);
pr_warn("ath79: Register before %X", t);
ath79_reset_wr(AR933X_RESET_REG_BOOTSTRAP, t);
pr_warn("ath79: Register after %X",

Gives the following output:

ath79: Register before 42202
ath79: Register after 42202

How can I solve this?

[1] https://github.com/openwrt/openwrt/commit/00ea16557d

openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list