From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Tue, 22 Dec 2015 21:23:44 +0100 Subject: [U-Boot] [PATCH 6/6] arm: socfpga: Add support for Denali NAND controller In-Reply-To: <1450797443.2631.3.camel@altera.com> References: <1450580446-6435-1-git-send-email-marex@denx.de> <1450580446-6435-6-git-send-email-marex@denx.de> <1450797443.2631.3.camel@altera.com> Message-ID: <201512222123.44211.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tuesday, December 22, 2015 at 04:17:23 PM, Chin Liang See wrote: > On Sun, 2015-12-20 at 04:00 +0100, Marek Vasut wrote: > > Add common configuration bits for the Denali NAND controller and also > > support for using it as a boot device in SPL. > > > > Signed-off-by: Marek Vasut > > Cc: Dinh Nguyen > > Cc: Chin Liang See > > --- > > > > include/configs/socfpga_common.h | 23 +++++++++++++++++++++++ > > 1 file changed, 23 insertions(+) > > > > diff --git a/include/configs/socfpga_common.h > > b/include/configs/socfpga_common.h > > index 4124d8b..8886ccf 100644 > > --- a/include/configs/socfpga_common.h > > +++ b/include/configs/socfpga_common.h > > @@ -162,6 +162,19 @@ > > > > #endif > > > > /* > > > > + * NAND Support > > + */ > > +#ifdef CONFIG_NAND_DENALI > > +#define CONFIG_SYS_MAX_NAND_DEVICE 1 > > +#define CONFIG_SYS_NAND_MAX_CHIPS 1 > > +#define CONFIG_SYS_NAND_ONFI_DETECTION > > +#define CONFIG_NAND_DENALI_ECC_SIZE 512 > > +#define CONFIG_SYS_NAND_REGS_BASE 0xffb80000 > > +#define CONFIG_SYS_NAND_DATA_BASE 0xff900000 > > You can use SOCFPGA_NANDDATA_ADDRESS and SOCFPGA_NANDREGS_ADDRESS Fixed and applied, thanks. I believe we should be getting close to a good stable setup, so it's about time to start testing once I issue this last heftier PR. Best regards, Marek Vasut