From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chin Liang See Date: Sun, 13 Dec 2015 08:04:11 +0800 Subject: [U-Boot] [PATCH 3/6] arm: socfpga: de0-nano-soc: Enabling mtd partitioning layout In-Reply-To: <20151212211000.GA21342@amd> References: <1449825353-2568-1-git-send-email-clsee@altera.com> <1449825353-2568-3-git-send-email-clsee@altera.com> <20151212211000.GA21342@amd> Message-ID: <1449965051.2601.31.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 Sat, 2015-12-12 at 22:10 +0100, Pavel Machek wrote: > On Fri 2015-12-11 17:15:50, Chin Liang See wrote: > > Enabling mtd partitioning layout which indicate partition > > for various boot partition > > > > Signed-off-by: Chin Liang See > > Cc: Dinh Nguyen > > Cc: Dinh Nguyen > > Cc: Pavel Machek > > Cc: Marek Vasut > > Cc: Stefan Roese > > --- > > include/configs/socfpga_de0_nano_soc.h | 12 ++++++++++++ > > 1 file changed, 12 insertions(+) > > > > diff --git a/include/configs/socfpga_de0_nano_soc.h > > b/include/configs/socfpga_de0_nano_soc.h > > index 16e146c..c42175d 100644 > > --- a/include/configs/socfpga_de0_nano_soc.h > > +++ b/include/configs/socfpga_de0_nano_soc.h > > @@ -86,4 +86,16 @@ > > /* The rest of the configuration is shared */ > > #include > > > > +/* mtd partitioning for serial NOR flash */ > > +#if defined(CONFIG_CMD_UBI) || defined(CONFIG_CMD_SF) > > +#define MTDPARTS_DEFAULT "mtdparts=ff705000.spi:"\ > > + "256k(spl)," \ > > + "64k(env)," \ > > + "64k(dtb)," \ > > + "256k(boot)," \ > > + "16m(kernel)," \ > > + "16m(rootfs)," \ > > + "-(UBI)\0" > > +#endif > > + > > #endif /* __CONFIG_TERASIC_DE0_H__ */ > > Ok, three copies of the same table. Should it go to socfpga common? > You could at least do > > MTDPARTS_DEFAULT_SOCDK > > and then use > > #define MTDPARTS_DEFAULT MTDPARTS_DEFAULT_SOCDK > > in the socfpga_de0_nano_soc.h, so we don't have 3 copies of the same > table. > Yup, let me do that by putting them into socfpga_common.h Thanks Chin Liang > > Pavel >