Re: [U-Boot] [PATCH] imx27lite: add support for imx27lite board from LogicPD
On 02:32 Tue 11 Aug , Ilya Yanok wrote: > This patch adds support for i.MX27-LITEKIT development board from > LogicPD. This board uses i.MX27 SoC and has 2MB NOR flash, 64MB NAND > flash, FEC ethernet controller integrated into i.MX27. > > Signed-off-by: Ilya Yanok > --- > MAINTAINERS |1 + > MAKEALL |1 + > Makefile|3 + > board/logicpd/imx27lite/Makefile| 51 ++ > board/logicpd/imx27lite/config.mk |1 + > board/logicpd/imx27lite/imx27lite.c | 73 + > board/logicpd/imx27lite/lowlevel_init.S | 170 + > cpu/arm926ejs/mx27/generic.c| 65 > include/asm-arm/arch-mx27/imx-regs.h| 12 ++ > include/configs/imx27lite.h | 252 > +++ > 10 files changed, 629 insertions(+), 0 deletions(-) > create mode 100644 board/logicpd/imx27lite/Makefile > create mode 100644 board/logicpd/imx27lite/config.mk > create mode 100644 board/logicpd/imx27lite/imx27lite.c > create mode 100644 board/logicpd/imx27lite/lowlevel_init.S > create mode 100644 include/configs/imx27lite.h Applie to u-boot-arm Best Regards, J. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] imx27lite: add support for imx27lite board from LogicPD
Wolfgang Denk wrote: >> Scott could you applied on your tree as this one need the nand patch that you >> handle > > Could you please run this through your "next" branch and send a pullr > equest? TIA. > > Acked-by: Wolfgang Denk I don't have that patch in my inbox anymore -- but I've sent a pull request for what I do have in "next". You (or JC) should be able to apply this after pulling that. -Scott ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] imx27lite: add support for imx27lite board from LogicPD
Dear Scott, In message <20090814070359.gd11...@game.jcrosoft.org> Jean-Christophe PLAGNIOL-VILLARD wrote: > On 02:32 Tue 11 Aug , Ilya Yanok wrote: > > This patch adds support for i.MX27-LITEKIT development board from > > LogicPD. This board uses i.MX27 SoC and has 2MB NOR flash, 64MB NAND > > flash, FEC ethernet controller integrated into i.MX27. > > > > Signed-off-by: Ilya Yanok > > --- > > MAINTAINERS |1 + > > MAKEALL |1 + > > Makefile|3 + > > board/logicpd/imx27lite/Makefile| 51 ++ > > board/logicpd/imx27lite/config.mk |1 + > > board/logicpd/imx27lite/imx27lite.c | 73 + > > board/logicpd/imx27lite/lowlevel_init.S | 170 + > > cpu/arm926ejs/mx27/generic.c| 65 > > include/asm-arm/arch-mx27/imx-regs.h| 12 ++ > > include/configs/imx27lite.h | 252 > > +++ > > 10 files changed, 629 insertions(+), 0 deletions(-) > > create mode 100644 board/logicpd/imx27lite/Makefile > > create mode 100644 board/logicpd/imx27lite/config.mk > > create mode 100644 board/logicpd/imx27lite/imx27lite.c > > create mode 100644 board/logicpd/imx27lite/lowlevel_init.S > > create mode 100644 include/configs/imx27lite.h > Acked-by: Jean-Christophe PLAGNIOL-VILLARD > > Scott could you applied on your tree as this one need the nand patch that you > handle Could you please run this through your "next" branch and send a pullr equest? TIA. Acked-by: Wolfgang Denk Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de A father doesn't destroy his children. -- Lt. Carolyn Palamas, "Who Mourns for Adonais?", stardate 3468.1. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] imx27lite: add support for imx27lite board from LogicPD
On 02:32 Tue 11 Aug , Ilya Yanok wrote: > This patch adds support for i.MX27-LITEKIT development board from > LogicPD. This board uses i.MX27 SoC and has 2MB NOR flash, 64MB NAND > flash, FEC ethernet controller integrated into i.MX27. > > Signed-off-by: Ilya Yanok > --- > MAINTAINERS |1 + > MAKEALL |1 + > Makefile|3 + > board/logicpd/imx27lite/Makefile| 51 ++ > board/logicpd/imx27lite/config.mk |1 + > board/logicpd/imx27lite/imx27lite.c | 73 + > board/logicpd/imx27lite/lowlevel_init.S | 170 + > cpu/arm926ejs/mx27/generic.c| 65 > include/asm-arm/arch-mx27/imx-regs.h| 12 ++ > include/configs/imx27lite.h | 252 > +++ > 10 files changed, 629 insertions(+), 0 deletions(-) > create mode 100644 board/logicpd/imx27lite/Makefile > create mode 100644 board/logicpd/imx27lite/config.mk > create mode 100644 board/logicpd/imx27lite/imx27lite.c > create mode 100644 board/logicpd/imx27lite/lowlevel_init.S > create mode 100644 include/configs/imx27lite.h Acked-by: Jean-Christophe PLAGNIOL-VILLARD Scott could you applied on your tree as this one need the nand patch that you handle Best Regards, J. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] imx27lite: add support for imx27lite board from LogicPD
Hi Fabio, Fabio Estevam wrote: >> cpu/arm926ejs/mx27/generic.c | 65 >> include/asm-arm/arch-mx27/imx-regs.h >> > > Shouldn't these two files be part of a separate patch as they are not > specific to the iMX27 Lite board support? > Well, I thought about this... Let's wait for a Jean-Christophe opinion. Regards, Ilya. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] imx27lite: add support for imx27lite board from LogicPD
--- On Mon, 8/10/09, Ilya Yanok wrote: > From: Ilya Yanok > Subject: [U-Boot] [PATCH] imx27lite: add support for imx27lite board from > LogicPD > To: plagn...@jcrosoft.com > Cc: u-boot@lists.denx.de, "Ilya Yanok" > Date: Monday, August 10, 2009, 7:32 PM > This patch adds support for > i.MX27-LITEKIT development board from > LogicPD. This board uses i.MX27 SoC and has 2MB NOR flash, > 64MB NAND > flash, FEC ethernet controller integrated into i.MX27. > > Signed-off-by: Ilya Yanok ... > cpu/arm926ejs/mx27/generic.c | 65 > include/asm-arm/arch-mx27/imx-regs.h Shouldn't these two files be part of a separate patch as they are not specific to the iMX27 Lite board support? Regards, Fabio Estevam ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] [PATCH] imx27lite: add support for imx27lite board from LogicPD
This patch adds support for i.MX27-LITEKIT development board from LogicPD. This board uses i.MX27 SoC and has 2MB NOR flash, 64MB NAND flash, FEC ethernet controller integrated into i.MX27. Signed-off-by: Ilya Yanok --- MAINTAINERS |1 + MAKEALL |1 + Makefile|3 + board/logicpd/imx27lite/Makefile| 51 ++ board/logicpd/imx27lite/config.mk |1 + board/logicpd/imx27lite/imx27lite.c | 73 + board/logicpd/imx27lite/lowlevel_init.S | 170 + cpu/arm926ejs/mx27/generic.c| 65 include/asm-arm/arch-mx27/imx-regs.h| 12 ++ include/configs/imx27lite.h | 252 +++ 10 files changed, 629 insertions(+), 0 deletions(-) create mode 100644 board/logicpd/imx27lite/Makefile create mode 100644 board/logicpd/imx27lite/config.mk create mode 100644 board/logicpd/imx27lite/imx27lite.c create mode 100644 board/logicpd/imx27lite/lowlevel_init.S create mode 100644 include/configs/imx27lite.h diff --git a/MAINTAINERS b/MAINTAINERS index 620604c..60185ab 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -539,6 +539,7 @@ George G. Davis gcplus SA1100 Wolfgang Denk + imx27lite i.MX27 qongi.MX31 Thomas Elste diff --git a/MAKEALL b/MAKEALL index edebaea..3b0fd56 100755 --- a/MAKEALL +++ b/MAKEALL @@ -515,6 +515,7 @@ LIST_ARM9=" \ cp926ejs\ cp946es \ cp966 \ + imx27lite \ lpd7a400\ mv88f6281gtw_ge \ mx1ads \ diff --git a/Makefile b/Makefile index 329e0f5..c0f30d1 100644 --- a/Makefile +++ b/Makefile @@ -2879,6 +2879,9 @@ davinci_sonata_config : unconfig davinci_dm355evm_config : unconfig @$(MKCONFIG) $(@:_config=) arm arm926ejs dm355evm davinci davinci +imx27lite_config: unconfig + @$(MKCONFIG) $(@:_config=) arm arm926ejs imx27lite logicpd mx27 + lpd7a400_config \ lpd7a404_config: unconfig @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x diff --git a/board/logicpd/imx27lite/Makefile b/board/logicpd/imx27lite/Makefile new file mode 100644 index 000..c404cef --- /dev/null +++ b/board/logicpd/imx27lite/Makefile @@ -0,0 +1,51 @@ +# +# (C) Copyright 2000-2004 +# Wolfgang Denk, DENX Software Engineering, w...@denx.de. +# +# 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 +# + +include $(TOPDIR)/config.mk + +LIB= $(obj)lib$(BOARD).a + +COBJS := imx27lite.o +SOBJS := lowlevel_init.o + +SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) +OBJS := $(addprefix $(obj),$(COBJS)) +SOBJS := $(addprefix $(obj),$(SOBJS)) + +$(LIB):$(obj).depend $(OBJS) $(SOBJS) + $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS) + +clean: + rm -f $(SOBJS) $(OBJS) + +distclean: clean + rm -f $(LIB) core *.bak $(obj).depend + +# + +include $(SRCTREE)/rules.mk + +sinclude $(obj).depend + +# + diff --git a/board/logicpd/imx27lite/config.mk b/board/logicpd/imx27lite/config.mk new file mode 100644 index 000..a2e7768 --- /dev/null +++ b/board/logicpd/imx27lite/config.mk @@ -0,0 +1 @@ +TEXT_BASE = 0xA7F0 diff --git a/board/logicpd/imx27lite/imx27lite.c b/board/logicpd/imx27lite/imx27lite.c new file mode 100644 index 000..63375d5 --- /dev/null +++ b/board/logicpd/imx27lite/imx27lite.c @@ -0,0 +1,73 @@ +/* + * Copyright (C) 2007 Sascha Hauer, Pengutronix + * Copyright (C) 2008,2009 Eric Jarrige + * Copyright (C) 2009 Ilya Yanok + * + * 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. Se
Re: [U-Boot] [PATCH] imx27lite: add support for imx27lite board from LogicPD
Dear javier Martin, In message you wrote: > > > It would be great if you all could test this, so we can get this in as > > quickly as possible. > > This also works for me using Freescale's toolchain included in LTIB > for i.mx27 ads board. thanks a lot for the confirmation. > One thing that confuses me a little about this imx27litekit patch is > that TEXT_ADDRESS is a RAM address but, according to the FAQ u-boot > cannot be run from RAM by another bootloader. > > Why is TEXT_ADDRESS in RAM then? This is "normal" on ARM systems - there TEXT_BASE holds the address of the image after copying (I hesitate to call it relocating) it to RAM. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de But it's real. And if it's real it can be affected ... we may not be able to break it, but, I'll bet you credits to Navy Beans we can put a dent in it. -- deSalle, "Catspaw", stardate 3018.2 ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] imx27lite: add support for imx27lite board from LogicPD
2009/8/6 Wolfgang Denk : > I have just posted a patch: > > [PATCH] ARM EABI: add new helper functions resp. function names > > (see http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/65473 > > > Combined with commit 52b1bf2c: > > Make linking against libgcc configurable > > I can run a "USE_PRIVATE_LIBGCC=yes ./MAKEALL arm" with an EABI > conformant tool chain (ELDK 4.2) without any related issues. > > It would be great if you all could test this, so we can get this in as > quickly as possible. This also works for me using Freescale's toolchain included in LTIB for i.mx27 ads board. One thing that confuses me a little about this imx27litekit patch is that TEXT_ADDRESS is a RAM address but, according to the FAQ u-boot cannot be run from RAM by another bootloader. Why is TEXT_ADDRESS in RAM then? Thanks. -- Javier Martin Vista Silicon S.L. Universidad de Cantabria CDTUC - FASE C - Oficina S-345 Avda de los Castros s/n 39005- Santander. Cantabria. Spain +34 942 25 32 60 www.vista-silicon.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] imx27lite: add support for imx27lite board from LogicPD
Dear Javier, In message you wrote: ... > I have applied it but when compiling it gives the following errors: ... > arm-none-linux-gnueabi-ld: ERROR: Source object > /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.2/libgcc.a(_udivsi3.o) > has EABI version 4, but target u-boot has EABI version 0 I have just posted a patch: [PATCH] ARM EABI: add new helper functions resp. function names (see http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/65473 Combined with commit 52b1bf2c: Make linking against libgcc configurable I can run a "USE_PRIVATE_LIBGCC=yes ./MAKEALL arm" with an EABI conformant tool chain (ELDK 4.2) without any related issues. It would be great if you all could test this, so we can get this in as quickly as possible. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de "You know, after a woman's raised a family and so on, she wants to start living her own life." "Whose life she's _been_ living, then?" - Terry Pratchett, _Witches Abroad_ ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] imx27lite: add support for imx27lite board from LogicPD
Now, I am using 4.1 version of eldk. With the previous patch applied I get this problem with "board_nand_init". I don't know if it's still a problem of my toolchain of this is a BUG: drivers/mtd/nand/libnand.a(nand.o): In function `nand_init': /home/javier/GIT/u-boot/drivers/mtd/nand/nand.c:53: undefined reference to `board_nand_init' Regards. -- Javier Martin Vista Silicon S.L. Universidad de Cantabria CDTUC - FASE C - Oficina S-345 Avda de los Castros s/n 39005- Santander. Cantabria. Spain +34 942 25 32 60 www.vista-silicon.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] imx27lite: add support for imx27lite board from LogicPD
Dear javier Martin, In message you wrote: > > > http://www.denx.de/wiki/view/DULG/SourceObjectHasEABIVersion4ButTargetHasEABIVersion0 > > What toolchains do you use then? > I have tried with the toolchains provided with ELDK4 but no luck. They > also seem to be EABI version 4. I'm waiting for Jean-Christophe's patch. In the meantime I use ELDK 4.1 which uses the old ABI. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de : ... and it's got weird formatting - Notepad, Write, Works 3 can't : decipher it, and it's too big to go in DOS Edit. Help! Install an operating system. :-) -- Tom Christiansen ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] imx27lite: add support for imx27lite board from LogicPD
2009/8/5 Wolfgang Denk : > Dear javier Martin, > > In message you > wrote: >> >> I have applied it but when compiling it gives the following errors: > ... >> arm-none-linux-gnueabi-ld: ERROR: Source object >> /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.2/libgcc.a(_udivsi3.o) >> has EABI version 4, but target u-boot has EABI version 0 > ... >> Any ideas about this problem? > > You want to read the FAQ: > http://www.denx.de/wiki/view/DULG/SourceObjectHasEABIVersion4ButTargetHasEABIVersion0 What toolchains do you use then? I have tried with the toolchains provided with ELDK4 but no luck. They also seem to be EABI version 4. -- Javier Martin Vista Silicon S.L. Universidad de Cantabria CDTUC - FASE C - Oficina S-345 Avda de los Castros s/n 39005- Santander. Cantabria. Spain +34 942 25 32 60 www.vista-silicon.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] imx27lite: add support for imx27lite board from LogicPD
Dear javier Martin, In message you wrote: > > I have applied it but when compiling it gives the following errors: ... > arm-none-linux-gnueabi-ld: ERROR: Source object > /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.2/libgcc.a(_udivsi3.o) > has EABI version 4, but target u-boot has EABI version 0 ... > Any ideas about this problem? You want to read the FAQ: http://www.denx.de/wiki/view/DULG/SourceObjectHasEABIVersion4ButTargetHasEABIVersion0 Jean-Christophe once had a patch to add the libgcc routines as used by the Linux kernel, but despite all my asking he did not re-submit this yet. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de "What the scientists have in their briefcases is terrifying." - Nikita Khrushchev ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] imx27lite: add support for imx27lite board from LogicPD
2009/8/5 javier Martin : > Hi, > What happened with this patch? Was it applied or did it have any problems? > Is it tested? I have applied it but when compiling it gives the following errors: hdog/libwatchdog.a common/libcommon.a libfdt/libfdt.a api/libapi.a post/libpost.a board/freescale/mx31ads/libmx31ads.a --end-group -L /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.2 -lgcc -Map u-boot.map -o u-boot arm-none-linux-gnueabi-ld: ERROR: Source object /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.2/libgcc.a(_udivsi3.o) has EABI version 4, but target u-boot has EABI version 0 arm-none-linux-gnueabi-ld: failed to merge target specific data of file /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.2/libgcc.a(_udivsi3.o) arm-none-linux-gnueabi-ld: ERROR: Source object /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.2/libgcc.a(_divsi3.o) has EABI version 4, but target u-boot has EABI version 0 arm-none-linux-gnueabi-ld: failed to merge target specific data of file /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.2/libgcc.a(_divsi3.o) arm-none-linux-gnueabi-ld: ERROR: Source object /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.2/libgcc.a(_umodsi3.o) has EABI version 4, but target u-boot has EABI version 0 arm-none-linux-gnueabi-ld: failed to merge target specific data of file /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.2/libgcc.a(_umodsi3.o) arm-none-linux-gnueabi-ld: ERROR: Source object /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.2/libgcc.a(_modsi3.o) has EABI version 4, but target u-boot has EABI version 0 arm-none-linux-gnueabi-ld: failed to merge target specific data of file /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.2/libgcc.a(_modsi3.o) arm-none-linux-gnueabi-ld: ERROR: Source object /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.2/libgcc.a(_dvmd_lnx.o) has EABI version 4, but target u-boot has EABI version 0 arm-none-linux-gnueabi-ld: failed to merge target specific data of file /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.2/libgcc.a(_dvmd_lnx.o) /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.2/libgcc.a(_dvmd_lnx.o): In function `__div0': /usr/src/redhat/BUILD/cross-mlib/source/gcc-4.1.2/gcc/config/arm/lib1funcs.asm:1000: undefined reference to `raise' make: *** [u-boot] Error 1 Any ideas about this problem? Thank you. > > -- > Javier Martin > Vista Silicon S.L. > Universidad de Cantabria > CDTUC - FASE C - Oficina S-345 > Avda de los Castros s/n > 39005- Santander. Cantabria. Spain > +34 942 25 32 60 > www.vista-silicon.com > -- Javier Martin Vista Silicon S.L. Universidad de Cantabria CDTUC - FASE C - Oficina S-345 Avda de los Castros s/n 39005- Santander. Cantabria. Spain +34 942 25 32 60 www.vista-silicon.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] imx27lite: add support for imx27lite board from LogicPD
Hi, What happened with this patch? Was it applied or did it have any problems? Is it tested? Thank you. -- Javier Martin Vista Silicon S.L. Universidad de Cantabria CDTUC - FASE C - Oficina S-345 Avda de los Castros s/n 39005- Santander. Cantabria. Spain +34 942 25 32 60 www.vista-silicon.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] imx27lite: add support for imx27lite board from LogicPD
Dear Jean-Christophe PLAGNIOL-VILLARD, In message <20090803121748.gg15...@game.jcrosoft.org> you wrote: > > > > > +#define CONFIG_SYS_MALLOC_LEN (0x1 + 256 * 1024) > > > please do not mix hexa and decimal > I've as there is other think to fix otherwise I'll not have ask > > > > Please be reasonable. This is a perfectly valid and easy to read > > notation. I see no reason to change this - anything else would > > probably be much harder to read. Please do not insist in changing this. No matter how you wrote it, "0x1 + 0x100 * 0x400" or "0x1 + 0x4" or "65536 + 256 * 1024" or "65536 + 262144" - all thesde forms are more difficult to parse and give less insight into what is intended. I say: there is no reason to change this. > > > > +#define CONFIG_LOADADDR0xa080 /* loadaddr env > > > > var */ > > > > +#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR > > > why 2? > > > > Because they do different things. > I've take a look they do nearly the same think it will be better to avoid have > 2 configs specialy when there are the same Please feel free to submit a patch if you do not like the current design. But this has nothing to do with the current patch in question, i. e. it is not a reason to reject it or ask for changes. > btw I've found nothing about it in the README Indeed, documentation is not exactly perfect. Please feel free to submit a patch. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de Heavier than air flying machines are impossible. -- Lord Kelvin, President, Royal Society, c. 1895 ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] imx27lite: add support for imx27lite board from LogicPD
On 10:19 Mon 03 Aug , Wolfgang Denk wrote: > Dear Jean-Christophe PLAGNIOL-VILLARD, > > In message <20090803053218.ga15...@game.jcrosoft.org> you wrote: > > > ... > > > +/* malloc() len */ > > > +#define CONFIG_SYS_MALLOC_LEN(0x1 + 256 * 1024) > > please do not mix hexa and decimal I've as there is other think to fix otherwise I'll not have ask > > Please be reasonable. This is a perfectly valid and easy to read > notation. I see no reason to change this - anything else would > probably be much harder to read. > > > > +#define CONFIG_LOADADDR 0xa080 /* loadaddr env var */ > > > +#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR > > why 2? > > Because they do different things. I've take a look they do nearly the same think it will be better to avoid have 2 configs specialy when there are the same btw I've found nothing about it in the README Best Regards, J. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] imx27lite: add support for imx27lite board from LogicPD
Dear Jean-Christophe PLAGNIOL-VILLARD, In message <20090803053218.ga15...@game.jcrosoft.org> you wrote: > ... > > +/* malloc() len */ > > +#define CONFIG_SYS_MALLOC_LEN (0x1 + 256 * 1024) > please do not mix hexa and decimal Please be reasonable. This is a perfectly valid and easy to read notation. I see no reason to change this - anything else would probably be much harder to read. > > +#define CONFIG_LOADADDR0xa080 /* loadaddr env var */ > > +#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR > why 2? Because they do different things. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de "Where humor is concerned there are no standards -- no one can say what is good or bad, although you can be sure that everyone will. - John Kenneth Galbraith ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] imx27lite: add support for imx27lite board from LogicPD
> + * Copyright (C) 2008,2009 Eric Jarrige > + * Copyright (C) 2009 Ilya Yanok > + * > + * 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 > + * > + */ > + > +#include > +#include > +#include > + > +DECLARE_GLOBAL_DATA_PTR; > + > +#ifdef CONFIG_MXC_UART > +static void imx27lite_uart_init() > +{ > + int i; > + unsigned int mode[] = { > + PE12_PF_UART1_TXD, > + PE13_PF_UART1_RXD, > + }; > + > + for (i = 0; i < ARRAY_SIZE(mode); i++) > + imx_gpio_mode(mode[i]); > + > +} > +#endif /* CONFIGL_MXC_UART */ > + > +#ifdef CONFIG_FEC_MXC > +static void imx27lite_fec_init() > +{ > + struct gpio_regs *regs = (struct gpio_regs *)IMX_GPIO_BASE; > + int i; > + unsigned int mode[] = { > + PD0_AIN_FEC_TXD0, > + PD1_AIN_FEC_TXD1, > + PD2_AIN_FEC_TXD2, > + PD3_AIN_FEC_TXD3, > + PD4_AOUT_FEC_RX_ER, > + PD5_AOUT_FEC_RXD1, > + PD6_AOUT_FEC_RXD2, > + PD7_AOUT_FEC_RXD3, > + PD8_AF_FEC_MDIO, > + PD9_AIN_FEC_MDC | GPIO_PUEN, > + PD10_AOUT_FEC_CRS, > + PD11_AOUT_FEC_TX_CLK, > + PD12_AOUT_FEC_RXD0, > + PD13_AOUT_FEC_RX_DV, > + PD14_AOUT_FEC_CLR, > + PD15_AOUT_FEC_COL, > + PD16_AIN_FEC_TX_ER, > + PF23_AIN_FEC_TX_EN, > + (GPIO_PORTC | GPIO_OUT | GPIO_PUEN | GPIO_GPIO | 31), > + }; > + > + for (i = 0; i < ARRAY_SIZE(mode); i++) > + imx_gpio_mode(mode[i]); > + > + writel(readl(®s->port[PORTC].dr) | (1 << 31), > + ®s->port[PORTC].dr); > +} > +#endif /* CONFIG_FEC_MXC */ > + > +#ifdef CONFIG_MXC_MMC > +static void imx27lite_sd_init() > +{ > + int i; > + unsigned int mode[] = { > + PB4_PF_SD2_D0, > + PB5_PF_SD2_D1, > + PB6_PF_SD2_D2, > + PB7_PF_SD2_D3, > + PB8_PF_SD2_CMD, > + PB9_PF_SD2_CLK, > + }; > + > + for (i = 0; i < ARRAY_SIZE(mode); i++) > + imx_gpio_mode(mode[i]); > + > +} > +#endif /* CONFIG_MXC_MMC */ tks for the udpate but the init function are not board specific but soc specific please move the to cpu/arm926ejs/soc/something.c > + > +int board_init (void) > +{ > + gd->bd->bi_arch_number = MACH_TYPE_IMX27LITE; > + gd->bd->bi_boot_params = 0xa100; please BASE + 0x100; > + > +#ifdef CONFIG_MXC_UART > + imx27lite_uart_init(); > +#endif > +#ifdef CONFIG_FEC_MXC > + imx27lite_fec_init(); > +#endif > +#ifdef CONFIG_MXC_MMC > + imx27lite_sd_init(); > +#endif > + > + return 0; > +} > + > +int dram_init (void) > +{ > + > +#if CONFIG_NR_DRAM_BANKS > 0 > + gd->bd->bi_dram[0].start = PHYS_SDRAM_1; > + gd->bd->bi_dram[0].size = get_ram_size((volatile void *)PHYS_SDRAM_1, > + PHYS_SDRAM_1_SIZE); > +#endif > +#if CONFIG_NR_DRAM_BANKS > 1 > + gd->bd->bi_dram[1].start = PHYS_SDRAM_2; > + gd->bd->bi_dram[1].size = get_ram_size((volatile void *)PHYS_SDRAM_2, > + PHYS_SDRAM_2_SIZE); > +#endif > + > + return 0; > +} > + > +int checkboard(void) > +{ > + printf("LogicPD imx27lite\n"); > + return 0; > +} > diff --git a/board/logicpd/imx27lite/lowlevel_init.S > b/board/logicpd/imx27lite/lowlevel_init.S > new file mode 100644 > index 000..e2cdecb > --- /dev/null > + > +#define SDRAM_MODE_REGISTER_VAL 0x33/* BL: 8, CAS: 3 */ > +#define SDRAM_EXT_MODE_REGISTER_VAL 0x100 > + > +#define MPCTL0_VAL 0x1ef15d5 > + > +#define SPCTL0_VAL 0x043a1c09 > + > +#define CSCR_VAL 0x33f08107 > + > +#define PCDR0_VAL0x120470c3 > +#define PCDR1_VAL0x03030303 > +#define PCCR0_VAL0x > +#define PCCR1_VAL0xfffc > + > +#define AIPI1_PSR0_VAL 0x20040304 > +#define AIPI1_PSR1_VAL 0xdffbfcfb > +#define AIPI2_PSR0_VAL 0x07ffc200 > +#define AIPI2_PSR1_VAL 0x > + > +/* > + * Memory Info > + */ > +/* malloc() len */ > +#define CONFIG_SYS_MALLOC_LEN(0x1 + 256 * 1024) please do not mix hexa and decimal > +/* reserved for initial data */ > +#define CONFIG_SYS_GBL_DATA_SIZE 128 > +/* memtest start address */ > +#define CONFIG_SYS_MEMTEST_START 0xA000
[U-Boot] [PATCH] imx27lite: add support for imx27lite board from LogicPD
This patch adds support for i.MX27-LITEKIT development board from LogicPD. This board uses i.MX27 SoC and has 2MB NOR flash, 64MB NAND flash, FEC ethernet controller integrated into i.MX27. Signed-off-by: Ilya Yanok --- MAINTAINERS |1 + MAKEALL |1 + Makefile|3 + board/logicpd/imx27lite/Makefile| 51 ++ board/logicpd/imx27lite/config.mk |1 + board/logicpd/imx27lite/imx27lite.c | 137 + board/logicpd/imx27lite/lowlevel_init.S | 170 include/configs/imx27lite.h | 255 +++ 8 files changed, 619 insertions(+), 0 deletions(-) create mode 100644 board/logicpd/imx27lite/Makefile create mode 100644 board/logicpd/imx27lite/config.mk create mode 100644 board/logicpd/imx27lite/imx27lite.c create mode 100644 board/logicpd/imx27lite/lowlevel_init.S create mode 100644 include/configs/imx27lite.h diff --git a/MAINTAINERS b/MAINTAINERS index 620604c..60185ab 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -539,6 +539,7 @@ George G. Davis gcplus SA1100 Wolfgang Denk + imx27lite i.MX27 qongi.MX31 Thomas Elste diff --git a/MAKEALL b/MAKEALL index dd0b761..48c3bc2 100755 --- a/MAKEALL +++ b/MAKEALL @@ -515,6 +515,7 @@ LIST_ARM9=" \ cp926ejs\ cp946es \ cp966 \ + imx27lite \ lpd7a400\ mv88f6281gtw_ge \ mx1ads \ diff --git a/Makefile b/Makefile index 8096f91..01e93c4 100644 --- a/Makefile +++ b/Makefile @@ -2879,6 +2879,9 @@ davinci_sonata_config : unconfig davinci_dm355evm_config : unconfig @$(MKCONFIG) $(@:_config=) arm arm926ejs dm355evm davinci davinci +imx27lite_config: unconfig + @$(MKCONFIG) $(@:_config=) arm arm926ejs imx27lite logicpd mx27 + lpd7a400_config \ lpd7a404_config: unconfig @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x diff --git a/board/logicpd/imx27lite/Makefile b/board/logicpd/imx27lite/Makefile new file mode 100644 index 000..c404cef --- /dev/null +++ b/board/logicpd/imx27lite/Makefile @@ -0,0 +1,51 @@ +# +# (C) Copyright 2000-2004 +# Wolfgang Denk, DENX Software Engineering, w...@denx.de. +# +# 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 +# + +include $(TOPDIR)/config.mk + +LIB= $(obj)lib$(BOARD).a + +COBJS := imx27lite.o +SOBJS := lowlevel_init.o + +SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) +OBJS := $(addprefix $(obj),$(COBJS)) +SOBJS := $(addprefix $(obj),$(SOBJS)) + +$(LIB):$(obj).depend $(OBJS) $(SOBJS) + $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS) + +clean: + rm -f $(SOBJS) $(OBJS) + +distclean: clean + rm -f $(LIB) core *.bak $(obj).depend + +# + +include $(SRCTREE)/rules.mk + +sinclude $(obj).depend + +# + diff --git a/board/logicpd/imx27lite/config.mk b/board/logicpd/imx27lite/config.mk new file mode 100644 index 000..a2e7768 --- /dev/null +++ b/board/logicpd/imx27lite/config.mk @@ -0,0 +1 @@ +TEXT_BASE = 0xA7F0 diff --git a/board/logicpd/imx27lite/imx27lite.c b/board/logicpd/imx27lite/imx27lite.c new file mode 100644 index 000..6ab9708 --- /dev/null +++ b/board/logicpd/imx27lite/imx27lite.c @@ -0,0 +1,137 @@ +/* + * Copyright (C) 2007 Sascha Hauer, Pengutronix + * Copyright (C) 2008,2009 Eric Jarrige + * Copyright (C) 2009 Ilya Yanok + * + * 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
Re: [U-Boot] [PATCH] imx27lite: add support for imx27lite board from LogicPD
On 02:17 Thu 23 Jul , Ilya Yanok wrote: > Hi Jean-Christophe, > > Jean-Christophe PLAGNIOL-VILLARD wrote: > >> +static int imx27lite_devices_init(void) > >> +{ > >> + struct gpio_regs *regs = (struct gpio_regs *)IMX_GPIO_BASE; > >> + int i; > >> + unsigned int mode[] = { > >> + PD0_AIN_FEC_TXD0, > >> + PD1_AIN_FEC_TXD1, > >> + PD2_AIN_FEC_TXD2, > >> + PD3_AIN_FEC_TXD3, > >> + PD4_AOUT_FEC_RX_ER, > >> + PD5_AOUT_FEC_RXD1, > >> + PD6_AOUT_FEC_RXD2, > >> + PD7_AOUT_FEC_RXD3, > >> + PD8_AF_FEC_MDIO, > >> + PD9_AIN_FEC_MDC | GPIO_PUEN, > >> + PD10_AOUT_FEC_CRS, > >> + PD11_AOUT_FEC_TX_CLK, > >> + PD12_AOUT_FEC_RXD0, > >> + PD13_AOUT_FEC_RX_DV, > >> + PD14_AOUT_FEC_CLR, > >> + PD15_AOUT_FEC_COL, > >> + PD16_AIN_FEC_TX_ER, > >> + PF23_AIN_FEC_TX_EN, > >> + PE12_PF_UART1_TXD, > >> + PE13_PF_UART1_RXD, > >> + PB4_PF_SD2_D0, > >> + PB5_PF_SD2_D1, > >> + PB6_PF_SD2_D2, > >> + PB7_PF_SD2_D3, > >> + PB8_PF_SD2_CMD, > >> + PB9_PF_SD2_CLK, > >> + (GPIO_PORTC | GPIO_OUT | GPIO_PUEN | GPIO_GPIO | 31), > >> + }; > >> + > >> + for (i = 0; i < ARRAY_SIZE(mode); i++) > >> + imx_gpio_mode(mode[i]); > >> > > you do not answer about my api comment? > > > > Sorry, I forgot to write a separate mail to ask you. > > > do you plan to create one for device init? > > > > What kind of API you expect me to create here? It's just IO pins > initialization... do as at91, davinci all related init for rs232, usb, net in one function per init Best Regards, J. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] imx27lite: add support for imx27lite board from LogicPD
Hi Jean-Christophe, Jean-Christophe PLAGNIOL-VILLARD wrote: >> +static int imx27lite_devices_init(void) >> +{ >> +struct gpio_regs *regs = (struct gpio_regs *)IMX_GPIO_BASE; >> +int i; >> +unsigned int mode[] = { >> +PD0_AIN_FEC_TXD0, >> +PD1_AIN_FEC_TXD1, >> +PD2_AIN_FEC_TXD2, >> +PD3_AIN_FEC_TXD3, >> +PD4_AOUT_FEC_RX_ER, >> +PD5_AOUT_FEC_RXD1, >> +PD6_AOUT_FEC_RXD2, >> +PD7_AOUT_FEC_RXD3, >> +PD8_AF_FEC_MDIO, >> +PD9_AIN_FEC_MDC | GPIO_PUEN, >> +PD10_AOUT_FEC_CRS, >> +PD11_AOUT_FEC_TX_CLK, >> +PD12_AOUT_FEC_RXD0, >> +PD13_AOUT_FEC_RX_DV, >> +PD14_AOUT_FEC_CLR, >> +PD15_AOUT_FEC_COL, >> +PD16_AIN_FEC_TX_ER, >> +PF23_AIN_FEC_TX_EN, >> +PE12_PF_UART1_TXD, >> +PE13_PF_UART1_RXD, >> +PB4_PF_SD2_D0, >> +PB5_PF_SD2_D1, >> +PB6_PF_SD2_D2, >> +PB7_PF_SD2_D3, >> +PB8_PF_SD2_CMD, >> +PB9_PF_SD2_CLK, >> +(GPIO_PORTC | GPIO_OUT | GPIO_PUEN | GPIO_GPIO | 31), >> +}; >> + >> +for (i = 0; i < ARRAY_SIZE(mode); i++) >> +imx_gpio_mode(mode[i]); >> > you do not answer about my api comment? > Sorry, I forgot to write a separate mail to ask you. > do you plan to create one for device init? > What kind of API you expect me to create here? It's just IO pins initialization... Regards, Ilya. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] imx27lite: add support for imx27lite board from LogicPD
> + */ > + > +#include > +#include > +#include > + > +DECLARE_GLOBAL_DATA_PTR; > + > +static int imx27lite_devices_init(void) > +{ > + struct gpio_regs *regs = (struct gpio_regs *)IMX_GPIO_BASE; > + int i; > + unsigned int mode[] = { > + PD0_AIN_FEC_TXD0, > + PD1_AIN_FEC_TXD1, > + PD2_AIN_FEC_TXD2, > + PD3_AIN_FEC_TXD3, > + PD4_AOUT_FEC_RX_ER, > + PD5_AOUT_FEC_RXD1, > + PD6_AOUT_FEC_RXD2, > + PD7_AOUT_FEC_RXD3, > + PD8_AF_FEC_MDIO, > + PD9_AIN_FEC_MDC | GPIO_PUEN, > + PD10_AOUT_FEC_CRS, > + PD11_AOUT_FEC_TX_CLK, > + PD12_AOUT_FEC_RXD0, > + PD13_AOUT_FEC_RX_DV, > + PD14_AOUT_FEC_CLR, > + PD15_AOUT_FEC_COL, > + PD16_AIN_FEC_TX_ER, > + PF23_AIN_FEC_TX_EN, > + PE12_PF_UART1_TXD, > + PE13_PF_UART1_RXD, > + PB4_PF_SD2_D0, > + PB5_PF_SD2_D1, > + PB6_PF_SD2_D2, > + PB7_PF_SD2_D3, > + PB8_PF_SD2_CMD, > + PB9_PF_SD2_CLK, > + (GPIO_PORTC | GPIO_OUT | GPIO_PUEN | GPIO_GPIO | 31), > + }; > + > + for (i = 0; i < ARRAY_SIZE(mode); i++) > + imx_gpio_mode(mode[i]); you do not answer about my api comment? do you plan to create one for device init? otherwise ok Best Regards, J. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] [PATCH] imx27lite: add support for imx27lite board from LogicPD
This patch adds support for i.MX27-LITEKIT development board from LogicPD. This board uses i.MX27 SoC and has 2MB NOR flash, 64MB NAND flash, FEC ethernet controller integrated into i.MX27. Signed-off-by: Ilya Yanok --- MAINTAINERS |1 + MAKEALL |1 + Makefile|3 + board/logicpd/imx27lite/Makefile| 51 ++ board/logicpd/imx27lite/config.mk |1 + board/logicpd/imx27lite/imx27lite.c | 102 board/logicpd/imx27lite/lowlevel_init.S | 170 include/configs/imx27lite.h | 255 +++ 8 files changed, 584 insertions(+), 0 deletions(-) create mode 100644 board/logicpd/imx27lite/Makefile create mode 100644 board/logicpd/imx27lite/config.mk create mode 100644 board/logicpd/imx27lite/imx27lite.c create mode 100644 board/logicpd/imx27lite/lowlevel_init.S create mode 100644 include/configs/imx27lite.h diff --git a/MAINTAINERS b/MAINTAINERS index 575a7ec..61ea2cf 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -533,6 +533,7 @@ George G. Davis gcplus SA1100 Wolfgang Denk + imx27lite i.MX27 qongi.MX31 Thomas Elste diff --git a/MAKEALL b/MAKEALL index 020ff73..69520fc 100755 --- a/MAKEALL +++ b/MAKEALL @@ -510,6 +510,7 @@ LIST_ARM9=" \ cp926ejs\ cp946es \ cp966 \ + imx27lite \ lpd7a400\ mx1ads \ mx1fs2 \ diff --git a/Makefile b/Makefile index 090e645..5e95558 100644 --- a/Makefile +++ b/Makefile @@ -2888,6 +2888,9 @@ davinci_sonata_config : unconfig davinci_dm355evm_config : unconfig @$(MKCONFIG) $(@:_config=) arm arm926ejs dm355evm davinci davinci +imx27lite_config: unconfig + @$(MKCONFIG) $(@:_config=) arm arm926ejs imx27lite logicpd mx27 + lpd7a400_config \ lpd7a404_config: unconfig @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x diff --git a/board/logicpd/imx27lite/Makefile b/board/logicpd/imx27lite/Makefile new file mode 100644 index 000..c404cef --- /dev/null +++ b/board/logicpd/imx27lite/Makefile @@ -0,0 +1,51 @@ +# +# (C) Copyright 2000-2004 +# Wolfgang Denk, DENX Software Engineering, w...@denx.de. +# +# 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 +# + +include $(TOPDIR)/config.mk + +LIB= $(obj)lib$(BOARD).a + +COBJS := imx27lite.o +SOBJS := lowlevel_init.o + +SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) +OBJS := $(addprefix $(obj),$(COBJS)) +SOBJS := $(addprefix $(obj),$(SOBJS)) + +$(LIB):$(obj).depend $(OBJS) $(SOBJS) + $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS) + +clean: + rm -f $(SOBJS) $(OBJS) + +distclean: clean + rm -f $(LIB) core *.bak $(obj).depend + +# + +include $(SRCTREE)/rules.mk + +sinclude $(obj).depend + +# + diff --git a/board/logicpd/imx27lite/config.mk b/board/logicpd/imx27lite/config.mk new file mode 100644 index 000..a2e7768 --- /dev/null +++ b/board/logicpd/imx27lite/config.mk @@ -0,0 +1 @@ +TEXT_BASE = 0xA7F0 diff --git a/board/logicpd/imx27lite/imx27lite.c b/board/logicpd/imx27lite/imx27lite.c new file mode 100644 index 000..421da17 --- /dev/null +++ b/board/logicpd/imx27lite/imx27lite.c @@ -0,0 +1,102 @@ +/* + * Copyright (C) 2007 Sascha Hauer, Pengutronix + * Copyright (C) 2008,2009 Eric Jarrige + * Copyright (C) 2009 Ilya Yanok + * + * 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