[U-Boot] [PATCH v4 4/4] Add USB support for Efika

Jana Rapava fermata7 at gmail.com
Tue Sep 27 13:00:34 CEST 2011


> Actually I think this is the problem:
>       writel(ULPI_RWRUN | (u32)reg << ULPI_ADDR_SHIFT,
> &ehci->ulpi_viewpoint);
>
> You cast the u8 * to u32, making the whole first argument of writel() an
> u32.
> Whereas in the other case, when passing u8, the first argument stays u8 and
> the
> result is truncated.
>
Thanks, but I had to change the type from u8 to u32 to silence compiler
warnings and it's solved the problem too.

Regards,
Jana Rapava


More information about the U-Boot mailing list