diff options
author | Hans de Goede <hdegoede@redhat.com> | 2014-12-17 20:18:18 +0300 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2015-01-22 18:55:49 +0300 |
commit | 6f262ecfdcda004804d1f444285b99c7e92ddbd9 (patch) | |
tree | 3751c388da52471ebc4ebccc9a91861f2d509960 /drivers/mfd/sun6i-prcm.c | |
parent | 0b271258544b3f89f9a14fa3b53e20ec9ce75392 (diff) | |
download | linux-6f262ecfdcda004804d1f444285b99c7e92ddbd9.tar.xz |
mfd: sun6i-prcm: Add support for the ir-clk
Add support for the ir-clk which is part of the sun6i SoC prcm module.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/sun6i-prcm.c')
-rw-r--r-- | drivers/mfd/sun6i-prcm.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/mfd/sun6i-prcm.c b/drivers/mfd/sun6i-prcm.c index 2f2e9f062571..191173166d65 100644 --- a/drivers/mfd/sun6i-prcm.c +++ b/drivers/mfd/sun6i-prcm.c @@ -41,6 +41,14 @@ static const struct resource sun6i_a31_apb0_gates_clk_res[] = { }, }; +static const struct resource sun6i_a31_ir_clk_res[] = { + { + .start = 0x54, + .end = 0x57, + .flags = IORESOURCE_MEM, + }, +}; + static const struct resource sun6i_a31_apb0_rstc_res[] = { { .start = 0xb0, @@ -69,6 +77,12 @@ static const struct mfd_cell sun6i_a31_prcm_subdevs[] = { .resources = sun6i_a31_apb0_gates_clk_res, }, { + .name = "sun6i-a31-ir-clk", + .of_compatible = "allwinner,sun4i-a10-mod0-clk", + .num_resources = ARRAY_SIZE(sun6i_a31_ir_clk_res), + .resources = sun6i_a31_ir_clk_res, + }, + { .name = "sun6i-a31-apb0-clock-reset", .of_compatible = "allwinner,sun6i-a31-clock-reset", .num_resources = ARRAY_SIZE(sun6i_a31_apb0_rstc_res), |