diff mbox series

[RESEND] mfd: sprd: Add one syscon cell to access PMIC global registers

Message ID 0793c674fed009b9616fbc01a0212d78fb01234e.1521696653.git.baolin.wang@linaro.org
State Accepted
Commit e03273e48da64083ef66394b4338361886c9a64d
Headers show
Series [RESEND] mfd: sprd: Add one syscon cell to access PMIC global registers | expand

Commit Message

(Exiting) Baolin Wang March 22, 2018, 5:40 a.m. UTC
There are some global registers in Spreadtrum sc27xx PMICs, which will
be accessed by other drivers. So this patch adds one syscon cell to
help to access the PMIC's global registers.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>

---
 drivers/mfd/sprd-sc27xx-spi.c |    3 +++
 1 file changed, 3 insertions(+)

-- 
1.7.9.5

Comments

Lee Jones March 28, 2018, 11:04 a.m. UTC | #1
On Thu, 22 Mar 2018, Baolin Wang wrote:

> There are some global registers in Spreadtrum sc27xx PMICs, which will

> be accessed by other drivers. So this patch adds one syscon cell to

> help to access the PMIC's global registers.

> 

> Signed-off-by: Baolin Wang <baolin.wang@linaro.org>

> ---

>  drivers/mfd/sprd-sc27xx-spi.c |    3 +++

>  1 file changed, 3 insertions(+)


Applied, thanks.

-- 
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
diff mbox series

Patch

diff --git a/drivers/mfd/sprd-sc27xx-spi.c b/drivers/mfd/sprd-sc27xx-spi.c
index 56a4782..3460ef0 100644
--- a/drivers/mfd/sprd-sc27xx-spi.c
+++ b/drivers/mfd/sprd-sc27xx-spi.c
@@ -111,6 +111,9 @@  struct sprd_pmic_data {
 	}, {
 		.name = "sc27xx-poweroff",
 		.of_compatible = "sprd,sc27xx-poweroff",
+	}, {
+		.name = "sc27xx-syscon",
+		.of_compatible = "sprd,sc27xx-syscon",
 	},
 };