bcm53xx: initialize NVRAM from NVMEM driver
authorRafał Miłecki <rafal@milecki.pl>
Fri, 12 Mar 2021 17:10:09 +0000 (18:10 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Fri, 12 Mar 2021 17:22:18 +0000 (18:22 +0100)
commitbaf04eed028a838518c65be48cbaabe0892343aa
tree95f71247ec861c985ed6a96513b7ef4e9eb3ec3b
parent1c48eee5b2bcfaf9815cc9a6f6664392d17164cb
bcm53xx: initialize NVRAM from NVMEM driver

NVRAM access may be needed early in boot process. Reading it using mtd
happens quite late in the init process. Add NVRAM initialization to the
NVMEM driver which comes up early and depends on IO mapping only.

This is required by Linksys devices which use NVRAM content for proper
partitioning (detecting current firmware partition).

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
target/linux/bcm53xx/patches-5.4/800-0001-firmware-bcm47xx_nvram-support-init-from-IO-memory.patch [new file with mode: 0644]
target/linux/bcm53xx/patches-5.4/800-0002-nvmem-brcm_nvram-provide-NVMEM-content-to-the-NVRAM-.patch [new file with mode: 0644]