From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Mon, 18 Feb 2013 13:18:48 -0600 Subject: [U-Boot] [PATCH] powerpc/p1022ds: Add support for NAND and NAND boot using SPL In-Reply-To: <1361214473-31182-1-git-send-email-msm@freescale.com> (from msm@freescale.com on Mon Feb 18 13:07:53 2013) References: <1360974866.6960.9@snotra> <1361214473-31182-1-git-send-email-msm@freescale.com> Message-ID: <1361215128.14186.15@snotra> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 02/18/2013 01:07:53 PM, Matthew McClintock wrote: > @@ -118,6 +172,7 @@ > * Localbus non-cacheable > * 0xe000_0000 0xe80f_ffff Promjet/free 128M > non-cacheable > * 0xe800_0000 0xefff_ffff FLASH 128M > non-cacheable > + * 0xff80_0000 0xff80_1fff NAND 8K > non-cacheable > * 0xffdf_0000 0xffdf_7fff PIXIS 32K > non-cacheable TLB0 > * 0xffd0_0000 0xffd0_3fff L1 for stack 16K > Cacheable TLB0 > * 0xffe0_0000 0xffef_ffff CCSR 1M > non-cacheable This says 8K... > +/* NAND flash config */ > +#define CONFIG_SYS_NAND_BR_PRELIM > (BR_PHYS_ADDR(CONFIG_SYS_NAND_BASE_PHYS) \ > + | (2< \ > + | BR_PS_8 /* Port Size = 8 > bit */ \ > + | BR_MS_FCM /* MSEL = FCM */ > \ > + | BR_V) /* valid */ > +#define CONFIG_SYS_NAND_OR_PRELIM (OR_AM_256KB /* > length 256K */ \ > + | OR_FCM_PGS /* Large Page*/ \ > + | OR_FCM_CSCT \ > + | OR_FCM_CST \ > + | OR_FCM_CHT \ > + | OR_FCM_SCY_1 \ > + | OR_FCM_TRLX \ > + | OR_FCM_EHTR) ...this says 256K. IIRC the minimum for localbus is 32K. -Scott