mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] Add nvmem support
@ 2016-02-03 16:27 Sascha Hauer
  2016-02-03 16:27 ` [PATCH 1/2] drivers: add nvmem framework from kernel Sascha Hauer
  2016-02-03 16:27 ` [PATCH 2/2] nvmem: Test it with fec/ocotp Sascha Hauer
  0 siblings, 2 replies; 5+ messages in thread
From: Sascha Hauer @ 2016-02-03 16:27 UTC (permalink / raw)
  To: Barebox List

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

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-02-04  7:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-03 16:27 [PATCH] Add nvmem support Sascha Hauer
2016-02-03 16:27 ` [PATCH 1/2] drivers: add nvmem framework from kernel Sascha Hauer
2016-02-03 16:27 ` [PATCH 2/2] nvmem: Test it with fec/ocotp Sascha Hauer
2016-02-03 19:01   ` Trent Piepho
2016-02-04  7:05     ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox