Add Amlogic secure monitor driver
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest0 of 4 patches 0 repliesNew
- v21 of 4 patches 0 repliesSuperseded
- v1 RFC1 patch 0 repliesSuperseded
Patches in v3 No applies recorded yet
None of the 4 patches the cover letter announces are in this archive.
Reviews trailers per patch
| Patch | Matthias Brugger |
|---|---|
| Series | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/4] Add Amlogic secure monitor driver
Quoted 9 lines · Carlo Caione
From: Carlo Caione <[email protected]>
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.
For the whole series:
Quoted 44 lines
Changelog:
v3:
* Moved driver todrivers/firmware
* AddedEXPORT_SYMBOLmacros
* Changed '_' in '-'
* Introduced 'structmeson_sm_firmware' and 'meson_sm_get_fw()' to be used by drivers using the secure-monitor to enforce probe orderingv2:
* 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 namesCarlo Caione (4):
firmware: Amlogic: Add secure monitor driver
firmware: dt-bindings: Add secure monitor header file for GXBB
ARM64: dts: amlogic: gxbb: Enable secure monitor
documentation: Add secure monitor binding documentation.../bindings/firmware/meson/meson_sm.txt | 51 ++++++ arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 11 ++ drivers/firmware/Kconfig | 1 + drivers/firmware/Makefile | 1 + drivers/firmware/meson/Kconfig | 8 + drivers/firmware/meson/Makefile | 1 + drivers/firmware/meson/meson_sm.c | 179 +++++++++++++++++++++ include/dt-bindings/firmware/meson-gxbb-sm.h | 44 +++++ include/linux/firmware/meson/meson_sm.h | 38 +++++ 9 files changed, 334 insertions(+)create mode 100644
Documentation/devicetree/bindings/firmware/meson/meson_sm.txtcreate mode 100644drivers/firmware/meson/Kconfig
create mode 100644drivers/firmware/meson/Makefile
create mode 100644drivers/firmware/meson/meson_sm.c
create mode 100644include/dt-bindings/firmware/meson-gxbb-sm.hcreate mode 100644include/linux/firmware/meson/meson_sm.h