diff options
author | Michal Simek | 2024-04-11 08:04:16 +0200 |
---|---|---|
committer | Michal Simek | 2024-06-17 16:02:28 +0200 |
commit | 5db5b7e2a33605e08aae13a638a97f717aedec6a (patch) | |
tree | d4b3bb233454f076eea9d0d1e5b8eef16d4cc7e3 /configs/xilinx_zynqmp_virt_defconfig | |
parent | 93d98383382d4911241b8e8f947f08f6fdd8b569 (diff) |
xilinx: Enable NVMEM framework for all platforms
Boards which have for example MAC address in eeprom but not in Xilinx
format (legacy or FRU) could reference it via nvmem cells.
For example:
&gem0 {
nvmem-cells = <&mac>;
nvmem-cell-names = "mac-address";
};
&eeprom {
#address-cells = <1>;
#size-cells = <1>;
mac: mac-address@f0 {
reg = <0xf0 6>;
};
};
For getting it work above DT changes are required but also CONFIG_NVMEM
should be enabled. That's why enable it by default in generic defconfigs
to be able to use it directly by changing DT only.
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/9c8ee7a4c7a16367438a92a4c9581bac9d968f84.1712815454.git.michal.simek@amd.com
Diffstat (limited to 'configs/xilinx_zynqmp_virt_defconfig')
-rw-r--r-- | configs/xilinx_zynqmp_virt_defconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configs/xilinx_zynqmp_virt_defconfig b/configs/xilinx_zynqmp_virt_defconfig index 89187972fec..a5cdb5ca244 100644 --- a/configs/xilinx_zynqmp_virt_defconfig +++ b/configs/xilinx_zynqmp_virt_defconfig @@ -147,6 +147,7 @@ CONFIG_I2C_MUX_PCA954x=y CONFIG_LED=y CONFIG_LED_GPIO=y CONFIG_MISC=y +CONFIG_NVMEM=y CONFIG_I2C_EEPROM=y CONFIG_SUPPORT_EMMC_BOOT=y CONFIG_MMC_IO_VOLTAGE=y |