From: carlo@caione.org (Carlo Caione)
To: linus-amlogic@lists.infradead.org
Subject: [PATCH v2 0/4] Add Amlogic secure monitor driver
Date: Wed, 18 May 2016 16:56:18 +0200 [thread overview]
Message-ID: <1463583382-15614-1-git-send-email-carlo@caione.org> (raw)
From: Carlo Caione <carlo@endlessm.com>
In the Amlogic SoCs the secure monitor calls are used for a lot of reasons:
interact with the NVMEM (efuses), check the reboot reason, set USB boot, ...
This driver defines a generic interface towards the secure monitor that can be
used by more specialized drivers to interact with the secure monitor itself
without worrying about bounce buffers managing.
Changelog:
v2:
* All the SMC function identifiers are now in a SoC-specific header file to
be included by the DTS files so the SMC commands are now defined in the DT
instead to be hardcoded into the driver
* Patchset is no longer an RFC
* Better error management and boundary checking
* s/unsigned int/u32/
* SMC call not only on CPU 0
* Fix memory leaking
* s/amlogic/meson/ in the directory names
Carlo Caione (4):
soc: Amlogic: Add secure monitor driver
soc: dt-bindings: Add secure monitor header file for GXBB
ARM64: dts: amlogic: gxbb: Enable secure monitor
documentation: Add secure monitor binding documentation
.../devicetree/bindings/soc/meson/meson_sm.txt | 45 ++++++
arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 7 +
drivers/soc/Kconfig | 1 +
drivers/soc/Makefile | 1 +
drivers/soc/meson/Kconfig | 8 ++
drivers/soc/meson/Makefile | 1 +
drivers/soc/meson/meson_sm.c | 155 +++++++++++++++++++++
include/dt-bindings/soc/meson-gxbb-sm.h | 44 ++++++
include/linux/soc/meson/meson_sm.h | 22 +++
9 files changed, 284 insertions(+)
create mode 100644 Documentation/devicetree/bindings/soc/meson/meson_sm.txt
create mode 100644 drivers/soc/meson/Kconfig
create mode 100644 drivers/soc/meson/Makefile
create mode 100644 drivers/soc/meson/meson_sm.c
create mode 100644 include/dt-bindings/soc/meson-gxbb-sm.h
create mode 100644 include/linux/soc/meson/meson_sm.h
--
2.7.4
next reply other threads:[~2016-05-18 14:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-18 14:56 Carlo Caione [this message]
2016-05-18 14:56 ` [PATCH v2 1/4] soc: Amlogic: Add secure monitor driver Carlo Caione
2016-05-23 11:38 ` Matthias Brugger
2016-05-23 11:43 ` Carlo Caione
2016-05-18 14:56 ` [PATCH v2 2/4] soc: dt-bindings: Add secure monitor header file for GXBB Carlo Caione
2016-05-18 14:56 ` [PATCH v2 3/4] ARM64: dts: amlogic: gxbb: Enable secure monitor Carlo Caione
2016-05-18 14:56 ` [PATCH v2 4/4] documentation: Add secure monitor binding documentation Carlo Caione
2016-05-18 23:35 ` Rob Herring
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=1463583382-15614-1-git-send-email-carlo@caione.org \
--to=carlo@caione.org \
--cc=linus-amlogic@lists.infradead.org \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).