[U-Boot] [PATCH v2 1/1] common: fdt_support: Check mtdparts cell size

Simon Glass sjg at chromium.org
Wed May 22 13:21:28 UTC 2019


On Wed, 24 Apr 2019 at 09:18, Simon Glass <sjg at chromium.org> wrote:
>
> On Tue, 23 Apr 2019 at 23:32, Stefan Mavrodiev <stefan at olimex.com> wrote:
> >
> > When using fdt_fixup_mtdparts() offset and length cell sizes
> > are limited to 4 bytes (1 cell). However if the mtd device is
> > bigger then 4GiB, then #address-cells and #size-cells are
> > 8 bytes (2 cells) [1].
> >
> > This patch read #size-cells and uses either fdt32_t or
> > fdt64_t cell size. The default is fdt32_t.
> >
> > [1] Documentation/devicetree/bindings/mtd/partition.txt
> >
> > Signed-off-by: Stefan Mavrodiev <stefan at olimex.com>
> > ---
> > Changes for v2:
> >     - Use fdt_setprop_u64() and ..._u32() instead of fdt_setprop()
> >     - Add size value using fdt_appendprop_u64() and ..._u32()
> >
> >  common/fdt_support.c | 31 ++++++++++++++++++++++---------
> >  1 file changed, 22 insertions(+), 9 deletions(-)
> >
>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list