* [PATCH/RFC 0/6] boot-mode-reg: Add core
@ 2015-10-15 6:59 Simon Horman
0 siblings, 0 replies; only message in thread
From: Simon Horman @ 2015-10-15 6:59 UTC (permalink / raw)
To: linux-sh
The motivation for this new module is to add a small frame work to allow
kernel subsystems to obtain boot mode information from a centralised
source using a new, and hopefully soon well-known, API.
The new API consists of two function calls and nothing more:
boot_mode_reg_set: Should be called by platform-specific drivers
to register the boot mode register value which
they obtain from hardware or otherwise.
boot_mode_reg_get: Should be called by consumers; subsystems that
wish to know he boot mode register.
The boot mode register is a 32bit unsigned entity,
the meaning of its values are implementation dependent.
This patchset:
* Adds the API described above
* Implements the API for Renesas R-Car Gen2 SoCs
* Uses the implementation for Renesas R-Car Gen2 SoCs
Laurent, this is my interpretation of your ideas in this area.
In particular I'd value feedback from you on the implementation
before taking it to a wider audience.
Tested on an r8a7791/Koelsch applied on top of
renesas-devel-20151015-v4.3-rc5
Simon Horman (6):
boot-mode-reg: Add core
boot-mode-reg: Add R-Car Gen2 driver
arm: shmobile: rcar-gen2: Obtain MD pin value using boot-mode-reg
arm: shmobile: r8a7791: Obtain MD pin value using boot-mode-reg
clk: shmobile: rcar-gen2: Obtain MD pin value using boot-mode-reg
arm: shmobile: rcar-gen2: Remove unused rcar_gen2_read_mode_pins()
MAINTAINERS | 1 +
arch/arm/mach-shmobile/Kconfig | 1 +
arch/arm/mach-shmobile/rcar-gen2.h | 1 -
arch/arm/mach-shmobile/setup-rcar-gen2.c | 43 +++++++++---------
arch/arm/mach-shmobile/smp-r8a7791.c | 13 +++++-
drivers/clk/shmobile/clk-rcar-gen2.c | 12 ++++-
drivers/misc/Kconfig | 1 +
drivers/misc/Makefile | 1 +
drivers/misc/boot-mode-reg/Kconfig | 19 ++++++++
drivers/misc/boot-mode-reg/Makefile | 7 +++
drivers/misc/boot-mode-reg/core.c | 78 ++++++++++++++++++++++++++++++++
drivers/misc/boot-mode-reg/rcar-gen2.c | 61 +++++++++++++++++++++++++
include/linux/clk/shmobile.h | 2 +-
include/misc/boot-mode-reg.h | 27 +++++++++++
14 files changed, 240 insertions(+), 27 deletions(-)
create mode 100644 drivers/misc/boot-mode-reg/Kconfig
create mode 100644 drivers/misc/boot-mode-reg/Makefile
create mode 100644 drivers/misc/boot-mode-reg/core.c
create mode 100644 drivers/misc/boot-mode-reg/rcar-gen2.c
create mode 100644 include/misc/boot-mode-reg.h
--
2.1.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-10-15 6:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-15 6:59 [PATCH/RFC 0/6] boot-mode-reg: Add core Simon Horman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).