1
0
Fork 0

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>
hifive-unleashed-5.1
Hans de Goede 2014-12-17 18:18:18 +01:00 committed by Lee Jones
parent 0b27125854
commit 6f262ecfdc
1 changed files with 14 additions and 0 deletions

View File

@ -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,
@ -68,6 +76,12 @@ static const struct mfd_cell sun6i_a31_prcm_subdevs[] = {
.num_resources = ARRAY_SIZE(sun6i_a31_apb0_gates_clk_res),
.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",