[U-Boot] [PATCH] TI: DaVinci: Adding GIO addresses to header file
From: Sandeep Paulraj This patch adds GIO definitions to the hardware.h header file Signed-off-by: Sandeep Paulraj --- include/asm-arm/arch-davinci/hardware.h | 23 +++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/include/asm-arm/arch-davinci/hardware.h b/include/asm-arm/arch-davinci/hardware.h index 313b3f3..3d31d24 100644 --- a/include/asm-arm/arch-davinci/hardware.h +++ b/include/asm-arm/arch-davinci/hardware.h @@ -181,6 +181,29 @@ void davinci_errata_workarounds(void); #define PSC_SILVER_BULLET (0x01c41a20) +/* GIO registers */ +#define GIO_BINTEN 0x01C67008 +#define GIO_DIR01 0x01C67010 +#define GIO_OUT_DATA01 0x01C67014 +#define GIO_SET_DATA01 0x01C67018 +#define GIO_CLR_DATA01 0x01C6701C +#define GIO_SET_RIS_TRIG01 0x01C67024 + +#define GIO_DIR23 0x01C67038 +#define GIO_OUT_DATA23 0x01C6703c +#define GIO_SET_DATA23 0x01C67040 +#define GIO_CLR_DATA23 0x01C67044 + +#define GIO_DIR45 0x01C67060 +#define GIO_OUT_DATA45 0x01C67064 +#define GIO_SET_DATA45 0x01C67068 +#define GIO_CLR_DATA45 0x01C6706C + +#define GIO_DIR06 0x01C67088 +#define GIO_OUT_DATA06 0x01C6708C +#define GIO_SET_DATA06 0x01C67090 +#define GIO_CLR_DATA06 0x01C67094 + /* Miscellania... */ #define VBPR (0x2020) -- 1.6.0.4 ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] [PATCH] TI: DaVinci: DM355 Leopard board support
From: Sandeep Paulraj This patch adds support for the leopard board which is based on the DM355 SOC. Signed-off-by: Sandeep Paulraj --- Makefile |3 + board/davinci/dm355leopard/Makefile | 52 + board/davinci/dm355leopard/config.mk |6 + board/davinci/dm355leopard/dm355leopard.c | 84 +++ include/configs/davinci_dm355leopard.h| 162 + 5 files changed, 307 insertions(+), 0 deletions(-) create mode 100644 board/davinci/dm355leopard/Makefile create mode 100644 board/davinci/dm355leopard/config.mk create mode 100644 board/davinci/dm355leopard/dm355leopard.c create mode 100644 include/configs/davinci_dm355leopard.h diff --git a/Makefile b/Makefile index 0449a5b..5a4a109 100644 --- a/Makefile +++ b/Makefile @@ -2958,6 +2958,9 @@ davinci_dm355evm_config : unconfig davinci_dm365evm_config : unconfig @$(MKCONFIG) $(@:_config=) arm arm926ejs dm365evm davinci davinci +davinci_dm355leopard_config : unconfig + @$(MKCONFIG) $(@:_config=) arm arm926ejs dm355leopard davinci davinci + imx27lite_config: unconfig @$(MKCONFIG) $(@:_config=) arm arm926ejs imx27lite logicpd mx27 diff --git a/board/davinci/dm355leopard/Makefile b/board/davinci/dm355leopard/Makefile new file mode 100644 index 000..26b0705 --- /dev/null +++ b/board/davinci/dm355leopard/Makefile @@ -0,0 +1,52 @@ +# +# (C) Copyright 2000, 2001, 2002 +# Wolfgang Denk, DENX Software Engineering, w...@denx.de. +# +# Copyright (C) 2007 Sergey Kubushyn +# +# 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 := $(BOARD).o +SOBJS := + +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 + +# +# This is for $(obj).depend target +include $(SRCTREE)/rules.mk + +sinclude $(obj).depend + +# diff --git a/board/davinci/dm355leopard/config.mk b/board/davinci/dm355leopard/config.mk new file mode 100644 index 000..d67df02 --- /dev/null +++ b/board/davinci/dm355leopard/config.mk @@ -0,0 +1,6 @@ +# Linux Kernel is expected to be at 8000'8000, entry 8000'8000 +# (mem base + reserved) +# + +#Provide at least 16MB spacing between us and the Linux Kernel image +TEXT_BASE = 0x8108 diff --git a/board/davinci/dm355leopard/dm355leopard.c b/board/davinci/dm355leopard/dm355leopard.c new file mode 100644 index 000..ba3adc6 --- /dev/null +++ b/board/davinci/dm355leopard/dm355leopard.c @@ -0,0 +1,84 @@ +/* + * Copyright (C) 2009 Texas Instruments + * + * 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., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +#include +#include +#include +#include +#include "../common/misc.h" +#include +#include + +DECLARE_GLOBAL_DATA_PTR; + +int board_init(void) +{ + gd->bd->bi_arch_number = MACH_TYPE_DM355_LEOPARD; + gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100; + + /* GIO 9 & 10 are used for IO */ + writel((readl(PINMUX3) & 0XF8FF), PINMUX3); + + /* Interrupt set GIO 9 */ + writel((readl(GIO_BINTEN) | 0x01), GIO_BINTEN); + + /* set GIO 9 input */ + writel((readl(GIO_DIR01) | (1 << 9)), GIO_DIR01); + + /* Both edge trig
Re: [U-Boot] [PATCH v2] Support for the OpenRD base board
> -Original Message- > From: Simon Kagstrom [mailto:simon.kagst...@netinsight.net] > Sent: Friday, September 11, 2009 7:22 PM > To: Prafulla Wadaskar > Cc: U-Boot ML; Dhaval Vasa; Prabhanjan Sarnaik; Ashish > Karkare; Ben Warren > Subject: Re: [PATCH v2] Support for the OpenRD base board > > On Fri, 11 Sep 2009 06:33:44 -0700 > Prafulla Wadaskar wrote: > > > > > > +#define CONFIG_ENV_SIZE 0x2 > /* 128k */ > > > > > +#define CONFIG_ENV_ADDR 0xa > > > > > +#define CONFIG_ENV_OFFSET0xa /* env > > > starts here */ > > > > Do you really need this address? the u-boot binary is > > > within 256kb, at the most it can go till 512kb > > > > > > This is where the default environment (for the U-boot shipped by > > > Marvell) resides. Like on Sheevaplug, it uses 4-bit ECC, > so current > > > U-boot won't be able to read it, but I know you're working on it. > > So I think, you want to retain both environment variables untouched > > ( i.e. latest u-boot and u-boot shipped by Marvell) > > But so far as mainlined u-boot is considered, > > doesn't it make sense to pack uboot-bin and environment > sector together? > > like sheevaplug, I think first 2 sectors for u-boot and > next once sector for env should be better to choose. > > Right, makes sense. I'll update that and skip the current address. > > > > > > +#define MTDIDS_DEFAULT "nand0=nand_mtd" > > > > > +#define MTDPARTS_DEFAULT > > > > > "mtdparts=nand_mtd:0x100...@0x00(uboot),0x400...@0x10( > > > > > uImage),"\ > > > > > + "0x1fb00...@0x50(rootfs)" > > > > > I don't quite understand this. This is also the default addresses > > > shipped with the board. > > > W..r.to line 24 at > http://git.marvell.com/?p=orion.git;a=blob;f=arch/arm/mach-kir > kwood/openrd_base-setup.c;h=947dfb8cd5b252bf326d691ee5179e29ad > 07a9a9;hb=HEAD > > By default kernel has same mdtpart configuration as you are > describing here. > > So you don't need this default setup here, you should skip it > > OK, I understand. However, but it might also be useful from U-boot. > Locally, I've loaded the kernel from the ubifs partition, and > then it's > useful to have this defined in U-boot as well. If it > shouldn't be there > by default, I'll remove it though. Yes. I leave decision up to you for this. My intension was to save some thing which is not required Regards.. Prafulla. . . > > // Simon > ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] TI: OMAP3: Overo Tobi ethernet support
On Sep 12, 2009, at 10:16 AM, Paulraj, Sandeep wrote: >> Olof Johansson wrote: >>> Add setup for ethernet on Tobi, allowing kernel/ramdisk to be loaded >>> over tftp. >>> >>> Based on the omap3 evm code. I added a new highlevel define for Tobi >>> to avoid having it dependent on CMD_NET (which would seem backward >>> in >>> this case). >>> >>> Signed-off-by: Olof Johansson >> >> Acked-by: Dirk Behme > > Pushed to u-boot-ti Thanks! Random question on u-boot development process: I see you didn't add your signed-off on the commit. People don't do that when they check in patches to the u-boot trees? -Olof ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] TI: OMAP3: Overo Tobi ethernet support
> > >> Olof Johansson wrote: > >>> Add setup for ethernet on Tobi, allowing kernel/ramdisk to be loaded > >>> over tftp. > >>> > >>> Based on the omap3 evm code. I added a new highlevel define for Tobi > >>> to avoid having it dependent on CMD_NET (which would seem backward > >>> in > >>> this case). > >>> > >>> Signed-off-by: Olof Johansson > >> > >> Acked-by: Dirk Behme > > > > Pushed to u-boot-ti > > Thanks! > > Random question on u-boot development process: I see you didn't add > your signed-off on the commit. People don't do that when they check in > patches to the u-boot trees? > > > -Olof Well look at these 2 examples. Both are my patches, one of them applied by Ben Warren and one by Jean-Christophe http://git.denx.de/?p=u-boot/u-boot-ti.git;a=commitdiff;h=b3af1d698b031e721bacaee8715d79daaf823de6 The above has a signed-off by Ben But the below committed by Jean-Christophe does not have his signed-off-by http://git.denx.de/?p=u-boot.git;a=commitdiff;h=fcaac589a68115819ddadcf5c18ded9a5f9e2c75 Thanks, Sandeep ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] TI: OMAP3: Overo Tobi ethernet support
> Olof Johansson wrote: > > Add setup for ethernet on Tobi, allowing kernel/ramdisk to be loaded > > over tftp. > > > > Based on the omap3 evm code. I added a new highlevel define for Tobi > > to avoid having it dependent on CMD_NET (which would seem backward in > > this case). > > > > Signed-off-by: Olof Johansson > > Acked-by: Dirk Behme Pushed to u-boot-ti -Sandeep ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH-ARM 3/4] Clean-up of s3c24x0 drivers excluding nand driver
Kevin, This email seems to contain twice the same patch. Cheers, ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] [PATCH v2] MIPS: VCT: Remove read_spareram reference
The commit ecad289fc6bd9d89ef4d5093cc7b6fd712fd0d29 (OneNAND: Remove unused read_spareram and add unlock_all as kernel does) forgot to remove a local reference to read_spareram in board/micronas/vct/ebi_onenand.c, which causes the following build failure when configured with OneNAND: ebi_onenand.c: In function 'onenand_board_init': ebi_onenand.c:196: error: 'struct onenand_chip' has no member named 'read_spareram' make[1]: *** [ebi_onenand.o] Error 1 make[1]: *** Waiting for unfinished jobs make: *** [board/micronas/vct/libvct.a] Error 2 Signed-off-by: Shinya Kuribayashi Acked-by: Stefan Roese Cc: Kyungmin Park --- v2: - Cc: lines are corrected! - Add Acked-by: from Stefan. board/micronas/vct/ebi_onenand.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/board/micronas/vct/ebi_onenand.c b/board/micronas/vct/ebi_onenand.c index 522b88f..1e8afa6 100644 --- a/board/micronas/vct/ebi_onenand.c +++ b/board/micronas/vct/ebi_onenand.c @@ -193,6 +193,5 @@ void onenand_board_init(struct mtd_info *mtd) chip->write_word = ebi_nand_write_word; chip->read_bufferram = ebi_read_bufferram; - chip->read_spareram = ebi_read_bufferram; chip->write_bufferram = ebi_write_bufferram; } ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] LZMA support
Hi Prafulla, This is my code to create the uimage: # create flat binary $(CROSS)objcopy -O binary -S $(LINUX_DIR)/vmlinux $(KDIR)/vmlinux.bin # compress $(TOOLS)/bin/lzma e $(KDIR)/vmlinux.bin $(KDIR)/vmlinux.lzma # create uimage export KERNEL_ENTRY=`$(CROSS)objdump -x $(LINUX_DIR)/vmlinux |grep -i kernel_entry|cut -d " " -f 1` ;\ mkimage -A mips -O linux -T kernel -C lzma -a 0x8001 -e KERNEL_ENTRY \ -n 'IDF ONU BOARD Image-$(LINUX_VERSION)' \ -d $(KDIR)/vmlinux.lzma $(KDIR)/uImage I use everyday this script (picked from OpenWRT) to build my firmware image. best regards, luigi On Wed, Sep 9, 2009 at 7:44 PM, Prafulla Wadaskar wrote: > Hi all > > Has anybody used LZMA compression with u-boot? > If yes, can you pls share your experience? > > Regards.. > Prafulla . . > ___ > U-Boot mailing list > U-Boot@lists.denx.de > http://lists.denx.de/mailman/listinfo/u-boot > -- Luigi 'Comio' Mantellini R&D - Software Industrie Dial Face S.p.A. Via Canzo, 4 20068 Peschiera Borromeo (MI), Italy Tel.: +39 02 5167 2813 Fax: +39 02 5167 2459 web: www.idf-hit.com mail: luigi.mantell...@idf-hit.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot