From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Sun, 3 Oct 2010 16:25:16 +0200 Subject: [U-Boot] [PATCH 3/4] OneNAND: Introduce CONFIG_SYS_IPL_LOAD_ADDR In-Reply-To: References: <1286040839-3215-1-git-send-email-marek.vasut@gmail.com> <1286040839-3215-3-git-send-email-marek.vasut@gmail.com> Message-ID: <201010031625.16483.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 Dne Ne 3. ??jna 2010 08:40:55 Kyungmin Park napsal(a): > Acked-by: Kyungmin Park Added in my tree to commit message, Thanks! > > On Sun, Oct 3, 2010 at 2:33 AM, Marek Vasut wrote: > > This allows to specify where the OneNAND IPL should load the U-Boot > > binary. The purpose of CONFIG_SYS_LOAD_ADDR is different I believe. > > > > On PXA, this is needed with OneNAND memories that expose only first 1kb > > of data, which is insufficient for SDRAM init. U-Boot can then be copied > > into SRAM. > > > > Signed-off-by: Marek Vasut > > --- > > include/configs/apollon.h | 1 + > > onenand_ipl/onenand_boot.c | 4 ++-- > > 2 files changed, 3 insertions(+), 2 deletions(-) > > > > diff --git a/include/configs/apollon.h b/include/configs/apollon.h > > index c1295de..d34e24d 100644 > > --- a/include/configs/apollon.h > > +++ b/include/configs/apollon.h > > @@ -199,6 +199,7 @@ > > > > /* default load address */ > > #define CONFIG_SYS_LOAD_ADDR (OMAP2420_SDRC_CS0) > > +#define CONFIG_SYS_IPL_LOAD_ADDR (OMAP2420_SDRC_CS0) > > > > /* The 2420 has 12 GP timers, they can be driven by the SysClk > > (12/13/19.2) * or by 32KHz clk, or from external sig. This rate is > > divided by a local diff --git a/onenand_ipl/onenand_boot.c > > b/onenand_ipl/onenand_boot.c index 22baebb..2a0c7ce 100644 > > --- a/onenand_ipl/onenand_boot.c > > +++ b/onenand_ipl/onenand_boot.c > > @@ -33,11 +33,11 @@ void start_oneboot(void) > > { > > uchar *buf; > > > > - buf = (uchar *) CONFIG_SYS_LOAD_ADDR; > > + buf = (uchar *) CONFIG_SYS_IPL_LOAD_ADDR; > > > > onenand_read_block(buf); > > > > - ((init_fnc_t *)CONFIG_SYS_LOAD_ADDR)(); > > + ((init_fnc_t *)CONFIG_SYS_IPL_LOAD_ADDR)(); > > > > /* should never come here */ > > } > > -- > > 1.7.1 > > > > _______________________________________________ > > U-Boot mailing list > > U-Boot at lists.denx.de > > http://lists.denx.de/mailman/listinfo/u-boot