From: Hans de Goede Date: Wed, 17 Dec 2014 17:18:18 +0000 (+0100) Subject: mfd: sun6i-prcm: Add support for the ir-clk X-Git-Tag: v4.0-rc1~45^2~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6f262ecfdcda004804d1f444285b99c7e92ddbd9;p=platform%2Fkernel%2Flinux-exynos.git 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 Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/sun6i-prcm.c b/drivers/mfd/sun6i-prcm.c index 2f2e9f0..1911731 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),