]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: add support for parsing partitions defined in OF
authorMarek Behún <marek.behun@nic.cz>
Wed, 26 May 2021 12:08:19 +0000 (14:08 +0200)
committerJagan Teki <jagan@amarulasolutions.com>
Thu, 24 Jun 2021 06:23:15 +0000 (11:53 +0530)
commitdc339bf784f08707583a5b6465381354f48d4fa8
tree219b53b6ce55e9b7cf7f652be1390dbc0426166d
parent0e116bea52af1b665a656d49c328468e976be913
mtd: add support for parsing partitions defined in OF

Add support for parsing partitions defined in device-trees via the
`partitions` node with `fixed-partitions` compatible.

The `mtdparts`/`mtdids` mechanism takes precedence. If some partitions
are defined for a MTD device via this mechanism, the code won't register
partitions for that MTD device from OF, even if they are defined.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Tested-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Heiko Schocher <hs@denx.de>
Cc: Patrick Delaunay <patrick.delaunay@st.com>
drivers/mtd/mtd_uboot.c
drivers/mtd/mtdpart.c
include/linux/mtd/mtd.h