[PATCH] Add nvmem support
Sascha Hauer
s.hauer at pengutronix.de
Wed Feb 3 08:27:08 PST 2016
This ports over the nvmem framework from the kernel. I probably won't
apply it as is since it doesn't make me very happy. While it generally
works the very first test already reveals that it can't properly handle
the different layouts of nvmem cells. The MAC addresses for the i.MX
FEC are stored in different byte orders in the IIM/OCOTP units. There's
simply no proper place to encode these different byte orders, see patch
[2/2].
Sascha
----------------------------------------------------------------
Sascha Hauer (1):
nvmem: Test it with fec/ocotp
Steffen Trumtrar (1):
drivers: add nvmem framework from kernel
arch/arm/dts/imx6qdl-phytec-pfla02.dtsi | 9 +
arch/arm/mach-imx/ocotp.c | 8 +
drivers/Kconfig | 1 +
drivers/Makefile | 1 +
drivers/net/fec_imx.c | 30 ++
drivers/nvmem/Kconfig | 8 +
drivers/nvmem/Makefile | 6 +
drivers/nvmem/core.c | 749 ++++++++++++++++++++++++++++++++
include/linux/nvmem-consumer.h | 157 +++++++
include/linux/nvmem-provider.h | 49 +++
10 files changed, 1018 insertions(+)
create mode 100644 drivers/nvmem/Kconfig
create mode 100644 drivers/nvmem/Makefile
create mode 100644 drivers/nvmem/core.c
create mode 100644 include/linux/nvmem-consumer.h
create mode 100644 include/linux/nvmem-provider.h
More information about the barebox
mailing list