From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Thu, 29 Sep 2011 03:17:05 +0200 Subject: [U-Boot] [PATCH v2 4/4] usb: add USB support for Efika In-Reply-To: <1317256483-25087-1-git-send-email-fermata7@gmail.com> References: <1317253971-24558-5-git-send-email-fermata7@gmail.com> <1317256483-25087-1-git-send-email-fermata7@gmail.com> Message-ID: <201109290317.05426.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 Thursday, September 29, 2011 02:34:43 AM Jana Rapava wrote: > This commit adds USB support for EfikaMX and EfikaSB. > > Signed-off-by: Jana Rapava > Signed-off-by: Marek Vasut > Cc: Remy Bohmer > Cc: Stefano Babic > --- > Changes for v2: > - introduce temporary variable in ulpi_write > - whitespace changes > board/efikamx/Makefile | 3 + > board/efikamx/efika.h | 30 +++ > board/efikamx/efikamx-usb.c | 423 > +++++++++++++++++++++++++++++++++++++++++++ board/efikamx/efikamx.c | > 3 + > include/configs/efikamx.h | 16 ++ > 5 files changed, 475 insertions(+), 0 deletions(-) > create mode 100644 board/efikamx/efika.h > create mode 100644 board/efikamx/efikamx-usb.c > > diff --git a/board/efikamx/Makefile b/board/efikamx/Makefile > index ee4a16e..860e4d2 100644 > --- a/board/efikamx/Makefile > +++ b/board/efikamx/Makefile > @@ -28,6 +28,9 @@ include $(TOPDIR)/config.mk > LIB = $(obj)lib$(BOARD).o > > COBJS := efikamx.o > +ifdef CONFIG_CMD_USB > +COBJS += efikamx-usb.o > +endif > > SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) > OBJS := $(addprefix $(obj),$(COBJS)) > diff --git a/board/efikamx/efika.h b/board/efikamx/efika.h > new file mode 100644 > index 0000000..b3532e2 > --- /dev/null > +++ b/board/efikamx/efika.h > @@ -0,0 +1,30 @@ > +/* > + * Copyright (C) 2011 Jana Rapava > + * > + * See file CREDITS for list of people who contributed to this > + * project. > + * > + * This program is free software; you can redistribute it and/or > + * modify it under the terms of the GNU General Public License as > + * published by the Free Software Foundation; either version 2 of > + * the License, or (at your option) any later version. > + * > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * You should have received a copy of the GNU General Public License > + * along with this program; if not, write to the Free Software > + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, > + * MA 02111-1307 USA > + */ > + > +/* > + * EHCI USB > + */ > +#ifdef CONFIG_CMD_USB > +void setup_iomux_usb(void); > +#else > +static inline void setup_iomux_usb(void) { } > +#endif You're missing protection against multiple inclusion of this file