[U-Boot] [PATCH] usb: sunxi: don't touch reset bits in ccm if CONFIG_SUNXI_GEN_SUN6I is not defined

Vasily Khoruzhick anarsoul at gmail.com
Thu Jun 14 03:31:14 UTC 2018


On Wed, Jun 13, 2018 at 8:23 PM, Chen-Yu Tsai <wens at csie.org> wrote:

>> +       if (priv->cfg->has_reset) {
>> +#ifdef CONFIG_SUNXI_GEN_SUN6I
>
> The "has_reset" field is supposed to deal with this. Is it not working?

There's no ahb_reset0_cfg in ccm on sun4i and sun5i, so compilation fails with

drivers/usb/host/ohci-sunxi.c:96:26: error: 'struct sunxi_ccm_reg' has
no member named 'ahb_reset0_cfg'

(And similar error for ehci-sunxi.c)


More information about the U-Boot mailing list