From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Thu, 22 Sep 2011 07:18:45 +0200 Subject: [U-Boot] [PATCH v3] Add USB support for Efika In-Reply-To: <1316312368-13006-1-git-send-email-fermata7@gmail.com> References: <1315848040-11962-1-git-send-email-fermata7@gmail.com> <1316312368-13006-1-git-send-email-fermata7@gmail.com> Message-ID: <201109220718.45110.marek.vasut@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sunday, September 18, 2011 04:19:28 AM Jana Rapava wrote: > From: Marek Vasut > > This commit adds USB support for EfikaMX and EfikaSB. > > Signed-off-by: Marek Vasut > Signed-off-by: Jana Rapava > --- > 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 *?