From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chin Liang See Date: Fri, 26 Feb 2016 21:06:29 +0800 Subject: [U-Boot] [PATCH] arm: socfpga: Enabling U-Boot environment support in QSPI In-Reply-To: <56CDEC08.9060906@denx.de> References: <1456303822-2638-1-git-send-email-clsee@altera.com> <56CDEC08.9060906@denx.de> Message-ID: <1456491989.2338.2.camel@altera.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 Wed, 2016-02-24 at 18:44 +0100, Marek Vasut wrote: > On 02/24/2016 09:50 AM, Chin Liang See wrote: > > Enabling the support of storing U-Boot environment > > within serial NOR flash. By default, its still > > store into SDMMC > > > > Signed-off-by: Chin Liang See > > Cc: Dinh Nguyen > > Cc: Dinh Nguyen > > Cc: Pavel Machek > > Cc: Marek Vasut > > Cc: Stefan Roese > > I am fine with the patch, but why did I receive it thrice ? ;-) > Sorry about this as I thought IT blocked the email sending. I noticed the U-Boot mailing didn't show the patch after 10 mins. I was surprised to see 3 and guess it took longer time to go through IT servers screening :) Thanks Chin Liang > > --- > > include/configs/socfpga_common.h | 6 ++++++ > > 1 file changed, 6 insertions(+) > > > > diff --git a/include/configs/socfpga_common.h > > b/include/configs/socfpga_common.h > > index a09e906..c1eef54 100644 > > --- a/include/configs/socfpga_common.h > > +++ b/include/configs/socfpga_common.h > > @@ -291,6 +291,12 @@ unsigned int > > cm_get_qspi_controller_clk_hz(void); > > #define CONFIG_ENV_OFFSET 512 /* just after > > the MBR */ > > #endif > > > > +/* Environment for QSPI boot */ > > +#if defined(CONFIG_ENV_IS_IN_SPI_FLASH) && > > !defined(CONFIG_ENV_OFFSET) > > +#define CONFIG_ENV_OFFSET 0x00100000 > > +#define CONFIG_ENV_SECT_SIZE (64 * 1024) > > +#endif > > + > > /* > > * mtd partitioning for serial NOR flash > > * > > >