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

Jana Rapava
2011-09-27T11:00:34Z

> 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