2018-03-22 05:41:51

by Baolin Wang

[permalink] [raw]
Subject: [RESEND PATCH] mfd: sprd: Add one syscon cell to access PMIC global registers

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 <[email protected]>
---
drivers/mfd/sprd-sc27xx-spi.c | 3 +++
1 file changed, 3 insertions(+)

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",
},
};

--
1.7.9.5



2018-03-28 11:06:25

by Lee Jones

[permalink] [raw]
Subject: Re: [RESEND PATCH] mfd: sprd: Add one syscon cell to access PMIC global registers

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 <[email protected]>
> ---
> 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