nvmem: add QTI SDAM driver
Subsystems (2)
PATCH v2 1/1 nvmem: add QTI SDAM driver
From: Anirudh Ghayal <[email protected]>
QTI SDAM driver allows PMIC peripherals to access the shared memory that is available on QTI PMICs.
--- drivers/nvmem/Kconfig | 8 ++ drivers/nvmem/Makefile | 1 + drivers/nvmem/qcom-spmi-sdam.c | 189 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/nvmem/qcom-spmi-sdam.c
drivers/nvmem/Kconfig +8 -0
@@ -109,6 +109,14 @@ config QCOM_QFPROM This driver can also be built as a module. If so, the module will be called nvmem_qfprom. +config NVMEM_SPMI_SDAM + tristate "SPMI SDAM Support" + depends on SPMI + help + This driver supports the Shared Direct Access Memory Module on + Qualcomm Technologies, Inc. PMICs. It provides the clients + an interface to read/write to the SDAM module's shared memory. + config ROCKCHIP_EFUSE tristate "Rockchip eFuse Support" depends on ARCH_ROCKCHIP || COMPILE_TEST
drivers/nvmem/Makefile +1 -0
@@ -28,6 +28,7 @@ obj-$(CONFIG_MTK_EFUSE) += nvmem_mtk-efuse.o nvmem_mtk-efuse-y := mtk-efuse.o obj-$(CONFIG_QCOM_QFPROM) += nvmem_qfprom.o nvmem_qfprom-y := qfprom.o +obj-$(CONFIG_NVMEM_SPMI_SDAM) += qcom-spmi-sdam.o obj-$(CONFIG_ROCKCHIP_EFUSE) += nvmem_rockchip_efuse.o nvmem_rockchip_efuse-y := rockchip-efuse.o obj-$(CONFIG_ROCKCHIP_OTP) += nvmem-rockchip-otp.o
drivers/nvmem/qcom-spmi-sdam.c new file +189 -0
189 lines not on this page · raw message
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
drivers/nvmem/qcom-spmi-sdam.c line 166
Quoted 4 lines · Shyam Kumar Thella
drivers/nvmem/qcom-spmi-sdam.c new file +4
-0+static const struct of_device_id sdam_match_table[] = { + { .compatible ="qcom,spmi-sdam" }, + {}, +};
This patch can not be accepted without Device tree bindings documented.
--srini
Quoted 7 lines · Srinivas Kandagatla
drivers/nvmem/qcom-spmi-sdam.c line 166
Quoted 4 lines · Shyam Kumar Thella
drivers/nvmem/qcom-spmi-sdam.c new file +4
-0+static const struct of_device_id sdam_match_table[] = { + { .compatible ="qcom,spmi-sdam" }, + {}, +};This patch can not be accepted without Device tree bindings documented.
Sure. I will add the DT documentation for it.
Quoted 2 lines
--srini