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>
Wed, 17 Mar 2021 22:38:46 +0000 (23:38 +0100)
commit20fe0e66f3c243b9c196b6811d7abc47fa2b92db
tree0cc06e0970558a1d2a8c2f89cef0a51f38f572fe
parent946bfd59a648f0f87f74fe1ae04dc734ef22599b
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>
(cherry picked from commit baf04eed028a838518c65be48cbaabe0892343aa)
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]