mfd: sprd: Add one syscon cell to access PMIC global registers
authorBaolin Wang <baolin.wang@linaro.org>
Thu, 22 Mar 2018 05:40:25 +0000 (13:40 +0800)
committerLee Jones <lee.jones@linaro.org>
Wed, 16 May 2018 08:21:48 +0000 (09:21 +0100)
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>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/sprd-sc27xx-spi.c

index 56a4782..3460ef0 100644 (file)
@@ -111,6 +111,9 @@ static const struct mfd_cell sprd_pmic_devs[] = {
        }, {
                .name = "sc27xx-poweroff",
                .of_compatible = "sprd,sc27xx-poweroff",
+       }, {
+               .name = "sc27xx-syscon",
+               .of_compatible = "sprd,sc27xx-syscon",
        },
 };