[U-Boot] [PATCH v3] Add USB support for Efika

Marek Vasut
2011-09-22T05:18:45Z

On Sunday, September 18, 2011 04:19:28 AM Jana Rapava wrote:
> From: Marek Vasut <marek.vasut@gmail.com>
>
> This commit adds USB support for EfikaMX and EfikaSB.
>
> Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
> Signed-off-by: Jana Rapava <fermata7@gmail.com>
> ---
> Changes for v2:
> - changed to proper patch
> Changes for v3:
> - merged other USB patches from u-boot-pxa/efikasb
> - offset-based access changed to struct-based access
> - use {clrset,clr,set}bits_le32() calls
> - CodingStyle and naming cleanup
>
> board/efikamx/Makefile | 3 +
> board/efikamx/efikamx-usb.c | 349
> +++++++++++++++++++++++++++++++++++++++++++ board/efikamx/efikamx.c |
> 10 ++
> drivers/usb/host/ehci-hcd.c | 19 +++
> drivers/usb/host/ehci-mxc.c | 9 +-
> include/configs/efikamx.h | 35 ++++-
> include/usb/ehci-fsl.h | 112 ++++++++++++++-
> 7 files changed, 524 insertions(+), 13 deletions(-)
> create mode 100644 board/efikamx/efikamx-usb.c
>

Compile-testing shows the following mess:

In file included from ehci-hcd.c:29:
/home/marex/U-Boot/u-boot-marex/include/usb/ehci-fsl.h:173:20: warning: extra
tokens at end of #ifdef directive

In file included from efikamx-usb.c:8:
/home/marex/U-Boot/u-boot-marex/include/usb/ehci-fsl.h:173:20: warning: extra
tokens at end of #ifdef directive
efikamx-usb.c: In function ?ehciX_init?:
efikamx-usb.c:230: warning: passing argument 1 of ?ulpi_write? makes integer
from pointer without a cast
efikamx-usb.c:188: note: expected ?u32? but argument is of type ?u8 *?
efikamx-usb.c:231: warning: passing argument 1 of ?ulpi_read? makes integer from
pointer without a cast
efikamx-usb.c:202: note: expected ?u32? but argument is of type ?u8 *?
efikamx-usb.c:241: warning: passing argument 1 of ?ulpi_write? makes integer
from pointer without a cast
efikamx-usb.c:188: note: expected ?u32? but argument is of type ?u8 *?
efikamx-usb.c:243: warning: passing argument 1 of ?ulpi_write? makes integer
from pointer without a cast
efikamx-usb.c:188: note: expected ?u32? but argument is of type ?u8 *?
efikamx-usb.c:244: warning: passing argument 1 of ?ulpi_write? makes integer
from pointer without a cast
efikamx-usb.c:188: note: expected ?u32? but argument is of type ?u8 *?
efikamx-usb.c:246: warning: passing argument 1 of ?ulpi_write? makes integer
from pointer without a cast
efikamx-usb.c:188: note: expected ?u32? but argument is of type ?u8 *?
efikamx-usb.c:252: warning: passing argument 1 of ?ulpi_write? makes integer
from pointer without a cast
efikamx-usb.c:188: note: expected ?u32? but argument is of type ?u8 *?