From mboxrd@z Thu Jan 1 00:00:00 1970 From: Igor Grinberg Date: Wed, 22 Jun 2016 19:17:53 +0300 Subject: [U-Boot] [PATCH 2/3] ARM: board: cm_fx6: fixup mtd partitions in the fdt In-Reply-To: <84159f3220054bfa87ce9a72443afa1a@rwthex-s1-b.rwth-ad.de> References: <20160619154456.29027-1-christopher.spinrath@rwth-aachen.de> <84159f3220054bfa87ce9a72443afa1a@rwthex-s1-b.rwth-ad.de> Message-ID: <576ABA31.5040905@compulab.co.il> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 06/19/2016 06:44 PM, Christopher Spinrath wrote: > The cm-fx6 module has an on-board st,m25p compatible spi flash chip > used for u-boot (binary & environment). Overwrite the partitions in > the device tree by the partition table provided in the mtdparts > environment variable, if it is set. > > This allows to specify a kernel independent partitioning in the > environment and provides a convient way for the user to adapt the > partition table. > > Signed-off-by: Christopher Spinrath > --- > board/compulab/cm_fx6/cm_fx6.c | 16 +++++++++++++++- > 1 file changed, 15 insertions(+), 1 deletion(-) > > diff --git a/board/compulab/cm_fx6/cm_fx6.c b/board/compulab/cm_fx6/cm_fx6.c > index 712057a..81a7ae2 100644 > --- a/board/compulab/cm_fx6/cm_fx6.c > +++ b/board/compulab/cm_fx6/cm_fx6.c [...] > +#ifdef CONFIG_FDT_FIXUP_PARTITIONS > +struct node_info nodes[] = { > + { "st,m25p", MTD_DEV_TYPE_NOR, }, Nikita, is this enough for all flashes we assemble on cm-fx6? > +}; > +#endif > + [...] -- Regards, Igor.