mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 00/13] nvmem: misc enhancements
Date: Sat, 19 Jun 2021 05:45:03 +0200	[thread overview]
Message-ID: <20210619034516.6737-1-a.fatoum@pengutronix.de> (raw)

Series implements some of the new NVMEM bindings:

- New providers:
  - nvmem-cells (for MTD partitions)
  - nvmem-rmem (memory regions passed by previous boot stages)

- New consumers:
  - Network devices: Unlike Linux, we do that for all drivers
    in generic code. This is done postenvironment, so network drivers,
    board code and other (OTP) drivers are not overridden.
  - nvmem-reboot-mode: To go along with syscon-reboot-mode
  - nvmem command: This one only prints registered devices for now

And changes sandbox to make use of it.

Ahmad Fatoum (13):
  nvmem: bsec: remove unused, left-over, struct member
  nvmem: treat devices without nvmem_bus::write as read only
  nvmem: add support for new read-only memory (rmem) binding
  nvmem: add support for nvmem-cells binding
  sandbox: use nvmem on top of stickypage for reset reason
  power: reset: port Linux generic NVMEM reboot mode driver
  sandbox: use nvmem-reboot-mode instead of syscon-reboot-mode
  sandbox: dts: fix unit-address for state partition
  nvmem: add command to list nvmem devices
  sandbox: hostfile: move initcall to earlier postcore level
  of: of_net: sync of_get_mac_address with Linux for NVMEM support
  net: consult device tree for ethernet address in NVMEM as fall-back
  sandbox: ship sample environment

 .gitignore                                    |   1 +
 Makefile                                      |   2 +-
 arch/sandbox/Makefile                         |   8 ++
 arch/sandbox/board/env/init/state             |  13 ---
 arch/sandbox/board/hostfile.c                 |  21 +++--
 arch/sandbox/board/power.c                    |  33 +++----
 arch/sandbox/board/stickypage.bin             | Bin 0 -> 4097 bytes
 arch/sandbox/board/watchdog.c                 |  20 ++---
 arch/sandbox/configs/sandbox_defconfig        |   2 +-
 arch/sandbox/dts/sandbox.dts                  |  36 ++++++--
 .../sandbox/mach-sandbox/include/mach/linux.h |   1 +
 arch/sandbox/os/common.c                      |  83 ++++++++----------
 commands/Kconfig                              |   7 ++
 commands/Makefile                             |   1 +
 commands/nvmem.c                              |  24 +++++
 drivers/nvmem/Kconfig                         |   6 ++
 drivers/nvmem/Makefile                        |   4 +-
 drivers/nvmem/bsec.c                          |   1 -
 drivers/nvmem/core.c                          |  25 ++++--
 drivers/nvmem/partition.c                     |  40 +++++++++
 drivers/nvmem/rmem.c                          |  67 ++++++++++++++
 drivers/of/base.c                             |  21 ++++-
 drivers/of/of_net.c                           |  78 +++++++++++++---
 drivers/of/partition.c                        |   7 ++
 drivers/power/reset/Kconfig                   |  10 +++
 drivers/power/reset/Makefile                  |   1 +
 drivers/power/reset/nvmem-reboot-mode.c       |  83 ++++++++++++++++++
 fs/devfs-core.c                               |   2 +-
 include/driver.h                              |   3 +
 include/linux/nvmem-consumer.h                |   2 +
 include/linux/nvmem-provider.h                |   8 ++
 include/of_net.h                              |  21 ++++-
 net/eth.c                                     |  24 +++++
 33 files changed, 521 insertions(+), 134 deletions(-)
 delete mode 100644 arch/sandbox/board/env/init/state
 create mode 100644 arch/sandbox/board/stickypage.bin
 create mode 100644 commands/nvmem.c
 create mode 100644 drivers/nvmem/partition.c
 create mode 100644 drivers/nvmem/rmem.c
 create mode 100644 drivers/power/reset/nvmem-reboot-mode.c

-- 
2.29.2


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


             reply	other threads:[~2021-06-19  3:46 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-19  3:45 Ahmad Fatoum [this message]
2021-06-19  3:45 ` [PATCH 01/13] nvmem: bsec: remove unused, left-over, struct member Ahmad Fatoum
2021-06-19  3:45 ` [PATCH 02/13] nvmem: treat devices without nvmem_bus::write as read only Ahmad Fatoum
2021-06-19  3:45 ` [PATCH 03/13] nvmem: add support for new read-only memory (rmem) binding Ahmad Fatoum
2021-06-19  3:45 ` [PATCH 04/13] nvmem: add support for nvmem-cells binding Ahmad Fatoum
2021-06-19  3:45 ` [PATCH 05/13] sandbox: use nvmem on top of stickypage for reset reason Ahmad Fatoum
2021-06-19  3:45 ` [PATCH 06/13] power: reset: port Linux generic NVMEM reboot mode driver Ahmad Fatoum
2021-06-19  3:45 ` [PATCH 07/13] sandbox: use nvmem-reboot-mode instead of syscon-reboot-mode Ahmad Fatoum
2021-06-19  3:45 ` [PATCH 08/13] sandbox: dts: fix unit-address for state partition Ahmad Fatoum
2021-06-19  3:45 ` [PATCH 09/13] nvmem: add command to list nvmem devices Ahmad Fatoum
2021-06-19  3:45 ` [PATCH 10/13] sandbox: hostfile: move initcall to earlier postcore level Ahmad Fatoum
2021-06-19  3:45 ` [PATCH 11/13] of: of_net: sync of_get_mac_address with Linux for NVMEM support Ahmad Fatoum
2021-06-19  3:45 ` [PATCH 12/13] net: consult device tree for ethernet address in NVMEM as fall-back Ahmad Fatoum
2021-06-19  3:45 ` [PATCH 13/13] sandbox: ship sample environment Ahmad Fatoum
2021-06-21  6:05 ` [PATCH 00/13] nvmem: misc enhancements Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210619034516.6737-1-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --subject='Re: [PATCH 00/13] nvmem: misc enhancements' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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