[U-Boot] [PATCH v2 0/6] Qualcomm SMEM driver
Ramon Fried
ramon.fried at gmail.com
Fri Jun 22 02:28:06 UTC 2018
This patchset introduces Qualcomm's shared memory manager.
In U-boot context, it will allow reading board specific information
(IE. RAM address, RAM size) that was prepopulated by the SBL.
As part of the patchset a new uclass id is introduced, UCLASS_SMEM.
Changes in v2:
(As suggested by Simon Glass)
- Introduced a new dm class (CLASS_SMEM) instead of CLASS_SOC.
- Added sandbox driver
- Added testing for DM class.
- Applied checkpatch fixes (also sent these to Linux upstream)
- Changed UCLASS_SOC to UCLASS_SMEM
- Removed function exports and registered functionality through .ops
Ramon Fried (6):
dm: SMEM (Shared memory) uclass
soc: qualcomm: Add Shared Memory Manager driver
dts: db410c: added smem nodes
dts: db820c: added smem nodes
drivers: smem: sandbox
test: smem: add basic smem test
MAINTAINERS | 1 +
arch/arm/Kconfig | 2 +
arch/arm/dts/dragonboard410c-uboot.dtsi | 5 +
arch/arm/dts/dragonboard410c.dts | 16 +
arch/arm/dts/dragonboard820c-uboot.dtsi | 4 +
arch/arm/dts/dragonboard820c.dts | 16 +
arch/sandbox/dts/test.dts | 4 +
configs/sandbox64_defconfig | 2 +
configs/sandbox_defconfig | 2 +
drivers/Kconfig | 2 +
drivers/Makefile | 1 +
drivers/smem/Kconfig | 24 +
drivers/smem/Makefile | 7 +
drivers/smem/msm_smem.c | 941 ++++++++++++++++++++++++
drivers/smem/sandbox_smem.c | 45 ++
drivers/smem/smem-uclass.c | 53 ++
include/dm/uclass-id.h | 1 +
include/smem.h | 84 +++
test/dm/Makefile | 1 +
test/dm/smem.c | 29 +
20 files changed, 1240 insertions(+)
create mode 100644 drivers/smem/Kconfig
create mode 100644 drivers/smem/Makefile
create mode 100644 drivers/smem/msm_smem.c
create mode 100644 drivers/smem/sandbox_smem.c
create mode 100644 drivers/smem/smem-uclass.c
create mode 100644 include/smem.h
create mode 100644 test/dm/smem.c
--
2.17.1
More information about the U-Boot
mailing list