Browse Source

linux-raspberrypi: Build eeprom access into kernel

To better support rpi-eeprom without depending on userland it was
decided to build nvmem-rmem support into the kernel for Raspberry Pi 4
machines.

Signed-off-by: Allan Xavier <mr.a.xavier@googlemail.com>
Allan Xavier 2 years ago
parent
commit
c9d9582a23

+ 1 - 0
recipes-kernel/linux/files/raspberrypi4/rpi4-nvmem.cfg

@@ -0,0 +1 @@
+CONFIG_NVMEM_RMEM=y

+ 4 - 0
recipes-kernel/linux/linux-raspberrypi.inc

@@ -17,6 +17,10 @@ SRC_URI += " \
     ${@bb.utils.contains("MACHINE_FEATURES", "wm8960", "file://wm8960.cfg", "", d)} \
     "
 
+SRC_URI:append:raspberrypi4 = " \
+    file://rpi4-nvmem.cfg \
+"
+
 KCONFIG_MODE = "--alldefconfig"
 KBUILD_DEFCONFIG:raspberrypi0-wifi ?= "bcmrpi_defconfig"
 KBUILD_DEFCONFIG:raspberrypi ?= "bcmrpi_defconfig"