[PATCH V4] mtd: parsers: ofpart: support BCM4908 fixed partitions

Miquel Raynal miquel.raynal at bootlin.com
Tue Mar 2 17:13:38 GMT 2021


On Mon, 2021-03-01 at 10:58:23 UTC, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= wrote:
> From: Rafał Miłecki <rafal at milecki.pl>
> 
> Some devices use fixed partitioning with some partitions requiring some
> extra logic. E.g. BCM4908 may have multiple firmware partitions but
> detecting currently used one requires checking bootloader parameters.
> 
> To support such cases without duplicating a lot of code (without copying
> most of the ofpart.c code) support for post-parsing callback was added.
> 
> BCM4908 support in ofpart can be enabled using config option and results
> in compiling & executing a specific callback. It simply reads offset of
> currently used firmware partition from the DT. Bootloader specifies it
> using the "brcm_blparms" property.
> 
> Signed-off-by: Rafał Miłecki <rafal at milecki.pl>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.

Miquel



More information about the linux-mtd mailing list