Commit af777ce4 authored by Paul Mundt's avatar Paul Mundt

sh: clkfwk: module_clk -> peripheral_clk rename.

For consistenct naming, and to allow us to fix up some confusion in the
SH-Mobile clock framework, amongst other places.
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent fd5b1245
...@@ -50,8 +50,8 @@ static struct clk master_clk = { ...@@ -50,8 +50,8 @@ static struct clk master_clk = {
.rate = CONFIG_SH_PCLK_FREQ, .rate = CONFIG_SH_PCLK_FREQ,
}; };
static struct clk module_clk = { static struct clk peripheral_clk = {
.name = "module_clk", .name = "peripheral_clk",
.parent = &master_clk, .parent = &master_clk,
.flags = CLK_ENABLE_ON_INIT, .flags = CLK_ENABLE_ON_INIT,
}; };
...@@ -73,7 +73,7 @@ static struct clk cpu_clk = { ...@@ -73,7 +73,7 @@ static struct clk cpu_clk = {
*/ */
static struct clk *onchip_clocks[] = { static struct clk *onchip_clocks[] = {
&master_clk, &master_clk,
&module_clk, &peripheral_clk,
&bus_clk, &bus_clk,
&cpu_clk, &cpu_clk,
}; };
......
...@@ -115,7 +115,7 @@ static struct sh_timer_config cmt0_platform_data = { ...@@ -115,7 +115,7 @@ static struct sh_timer_config cmt0_platform_data = {
.name = "CMT0", .name = "CMT0",
.channel_offset = 0x02, .channel_offset = 0x02,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 125, .clockevent_rating = 125,
.clocksource_rating = 0, /* disabled due to code generation issues */ .clocksource_rating = 0, /* disabled due to code generation issues */
}; };
...@@ -147,7 +147,7 @@ static struct sh_timer_config cmt1_platform_data = { ...@@ -147,7 +147,7 @@ static struct sh_timer_config cmt1_platform_data = {
.name = "CMT1", .name = "CMT1",
.channel_offset = 0x08, .channel_offset = 0x08,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 125, .clockevent_rating = 125,
.clocksource_rating = 0, /* disabled due to code generation issues */ .clocksource_rating = 0, /* disabled due to code generation issues */
}; };
......
...@@ -118,7 +118,7 @@ static struct sh_timer_config mtu2_0_platform_data = { ...@@ -118,7 +118,7 @@ static struct sh_timer_config mtu2_0_platform_data = {
.name = "MTU2_0", .name = "MTU2_0",
.channel_offset = -0x80, .channel_offset = -0x80,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 200, .clockevent_rating = 200,
}; };
...@@ -149,7 +149,7 @@ static struct sh_timer_config mtu2_1_platform_data = { ...@@ -149,7 +149,7 @@ static struct sh_timer_config mtu2_1_platform_data = {
.name = "MTU2_1", .name = "MTU2_1",
.channel_offset = -0x100, .channel_offset = -0x100,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 200, .clockevent_rating = 200,
}; };
...@@ -180,7 +180,7 @@ static struct sh_timer_config mtu2_2_platform_data = { ...@@ -180,7 +180,7 @@ static struct sh_timer_config mtu2_2_platform_data = {
.name = "MTU2_2", .name = "MTU2_2",
.channel_offset = 0x80, .channel_offset = 0x80,
.timer_bit = 2, .timer_bit = 2,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 200, .clockevent_rating = 200,
}; };
......
...@@ -255,7 +255,7 @@ static struct sh_timer_config mtu2_0_platform_data = { ...@@ -255,7 +255,7 @@ static struct sh_timer_config mtu2_0_platform_data = {
.name = "MTU2_0", .name = "MTU2_0",
.channel_offset = -0x80, .channel_offset = -0x80,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 200, .clockevent_rating = 200,
}; };
...@@ -286,7 +286,7 @@ static struct sh_timer_config mtu2_1_platform_data = { ...@@ -286,7 +286,7 @@ static struct sh_timer_config mtu2_1_platform_data = {
.name = "MTU2_1", .name = "MTU2_1",
.channel_offset = -0x100, .channel_offset = -0x100,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 200, .clockevent_rating = 200,
}; };
...@@ -317,7 +317,7 @@ static struct sh_timer_config mtu2_2_platform_data = { ...@@ -317,7 +317,7 @@ static struct sh_timer_config mtu2_2_platform_data = {
.name = "MTU2_2", .name = "MTU2_2",
.channel_offset = 0x80, .channel_offset = 0x80,
.timer_bit = 2, .timer_bit = 2,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 200, .clockevent_rating = 200,
}; };
......
...@@ -211,7 +211,7 @@ static struct sh_timer_config cmt0_platform_data = { ...@@ -211,7 +211,7 @@ static struct sh_timer_config cmt0_platform_data = {
.name = "CMT0", .name = "CMT0",
.channel_offset = 0x02, .channel_offset = 0x02,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 125, .clockevent_rating = 125,
.clocksource_rating = 0, /* disabled due to code generation issues */ .clocksource_rating = 0, /* disabled due to code generation issues */
}; };
...@@ -243,7 +243,7 @@ static struct sh_timer_config cmt1_platform_data = { ...@@ -243,7 +243,7 @@ static struct sh_timer_config cmt1_platform_data = {
.name = "CMT1", .name = "CMT1",
.channel_offset = 0x08, .channel_offset = 0x08,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 125, .clockevent_rating = 125,
.clocksource_rating = 0, /* disabled due to code generation issues */ .clocksource_rating = 0, /* disabled due to code generation issues */
}; };
...@@ -275,7 +275,7 @@ static struct sh_timer_config mtu2_0_platform_data = { ...@@ -275,7 +275,7 @@ static struct sh_timer_config mtu2_0_platform_data = {
.name = "MTU2_0", .name = "MTU2_0",
.channel_offset = -0x80, .channel_offset = -0x80,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 200, .clockevent_rating = 200,
}; };
...@@ -306,7 +306,7 @@ static struct sh_timer_config mtu2_1_platform_data = { ...@@ -306,7 +306,7 @@ static struct sh_timer_config mtu2_1_platform_data = {
.name = "MTU2_1", .name = "MTU2_1",
.channel_offset = -0x100, .channel_offset = -0x100,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 200, .clockevent_rating = 200,
}; };
......
...@@ -171,7 +171,7 @@ static struct sh_timer_config cmt0_platform_data = { ...@@ -171,7 +171,7 @@ static struct sh_timer_config cmt0_platform_data = {
.name = "CMT0", .name = "CMT0",
.channel_offset = 0x02, .channel_offset = 0x02,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 125, .clockevent_rating = 125,
.clocksource_rating = 0, /* disabled due to code generation issues */ .clocksource_rating = 0, /* disabled due to code generation issues */
}; };
...@@ -203,7 +203,7 @@ static struct sh_timer_config cmt1_platform_data = { ...@@ -203,7 +203,7 @@ static struct sh_timer_config cmt1_platform_data = {
.name = "CMT1", .name = "CMT1",
.channel_offset = 0x08, .channel_offset = 0x08,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 125, .clockevent_rating = 125,
.clocksource_rating = 0, /* disabled due to code generation issues */ .clocksource_rating = 0, /* disabled due to code generation issues */
}; };
...@@ -235,7 +235,7 @@ static struct sh_timer_config mtu2_0_platform_data = { ...@@ -235,7 +235,7 @@ static struct sh_timer_config mtu2_0_platform_data = {
.name = "MTU2_0", .name = "MTU2_0",
.channel_offset = -0x80, .channel_offset = -0x80,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 200, .clockevent_rating = 200,
}; };
...@@ -266,7 +266,7 @@ static struct sh_timer_config mtu2_1_platform_data = { ...@@ -266,7 +266,7 @@ static struct sh_timer_config mtu2_1_platform_data = {
.name = "MTU2_1", .name = "MTU2_1",
.channel_offset = -0x100, .channel_offset = -0x100,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 200, .clockevent_rating = 200,
}; };
...@@ -297,7 +297,7 @@ static struct sh_timer_config mtu2_2_platform_data = { ...@@ -297,7 +297,7 @@ static struct sh_timer_config mtu2_2_platform_data = {
.name = "MTU2_2", .name = "MTU2_2",
.channel_offset = 0x80, .channel_offset = 0x80,
.timer_bit = 2, .timer_bit = 2,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 200, .clockevent_rating = 200,
}; };
......
...@@ -121,7 +121,7 @@ static struct sh_timer_config tmu0_platform_data = { ...@@ -121,7 +121,7 @@ static struct sh_timer_config tmu0_platform_data = {
.name = "TMU0", .name = "TMU0",
.channel_offset = 0x02, .channel_offset = 0x02,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 200, .clockevent_rating = 200,
}; };
...@@ -152,7 +152,7 @@ static struct sh_timer_config tmu1_platform_data = { ...@@ -152,7 +152,7 @@ static struct sh_timer_config tmu1_platform_data = {
.name = "TMU1", .name = "TMU1",
.channel_offset = 0xe, .channel_offset = 0xe,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
.clocksource_rating = 200, .clocksource_rating = 200,
}; };
...@@ -183,7 +183,7 @@ static struct sh_timer_config tmu2_platform_data = { ...@@ -183,7 +183,7 @@ static struct sh_timer_config tmu2_platform_data = {
.name = "TMU2", .name = "TMU2",
.channel_offset = 0x1a, .channel_offset = 0x1a,
.timer_bit = 2, .timer_bit = 2,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu2_resources[] = { static struct resource tmu2_resources[] = {
......
...@@ -149,7 +149,7 @@ static struct sh_timer_config tmu0_platform_data = { ...@@ -149,7 +149,7 @@ static struct sh_timer_config tmu0_platform_data = {
.name = "TMU0", .name = "TMU0",
.channel_offset = 0x02, .channel_offset = 0x02,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 200, .clockevent_rating = 200,
}; };
...@@ -180,7 +180,7 @@ static struct sh_timer_config tmu1_platform_data = { ...@@ -180,7 +180,7 @@ static struct sh_timer_config tmu1_platform_data = {
.name = "TMU1", .name = "TMU1",
.channel_offset = 0xe, .channel_offset = 0xe,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
.clocksource_rating = 200, .clocksource_rating = 200,
}; };
...@@ -211,7 +211,7 @@ static struct sh_timer_config tmu2_platform_data = { ...@@ -211,7 +211,7 @@ static struct sh_timer_config tmu2_platform_data = {
.name = "TMU2", .name = "TMU2",
.channel_offset = 0x1a, .channel_offset = 0x1a,
.timer_bit = 2, .timer_bit = 2,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu2_resources[] = { static struct resource tmu2_resources[] = {
......
...@@ -125,7 +125,7 @@ static struct sh_timer_config tmu0_platform_data = { ...@@ -125,7 +125,7 @@ static struct sh_timer_config tmu0_platform_data = {
.name = "TMU0", .name = "TMU0",
.channel_offset = 0x02, .channel_offset = 0x02,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 200, .clockevent_rating = 200,
}; };
...@@ -156,7 +156,7 @@ static struct sh_timer_config tmu1_platform_data = { ...@@ -156,7 +156,7 @@ static struct sh_timer_config tmu1_platform_data = {
.name = "TMU1", .name = "TMU1",
.channel_offset = 0xe, .channel_offset = 0xe,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
.clocksource_rating = 200, .clocksource_rating = 200,
}; };
...@@ -187,7 +187,7 @@ static struct sh_timer_config tmu2_platform_data = { ...@@ -187,7 +187,7 @@ static struct sh_timer_config tmu2_platform_data = {
.name = "TMU2", .name = "TMU2",
.channel_offset = 0x1a, .channel_offset = 0x1a,
.timer_bit = 2, .timer_bit = 2,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu2_resources[] = { static struct resource tmu2_resources[] = {
......
...@@ -128,7 +128,7 @@ static struct sh_timer_config cmt0_platform_data = { ...@@ -128,7 +128,7 @@ static struct sh_timer_config cmt0_platform_data = {
.name = "CMT0", .name = "CMT0",
.channel_offset = 0x10, .channel_offset = 0x10,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 125, .clockevent_rating = 125,
.clocksource_rating = 125, .clocksource_rating = 125,
}; };
...@@ -160,7 +160,7 @@ static struct sh_timer_config cmt1_platform_data = { ...@@ -160,7 +160,7 @@ static struct sh_timer_config cmt1_platform_data = {
.name = "CMT1", .name = "CMT1",
.channel_offset = 0x20, .channel_offset = 0x20,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource cmt1_resources[] = { static struct resource cmt1_resources[] = {
...@@ -190,7 +190,7 @@ static struct sh_timer_config cmt2_platform_data = { ...@@ -190,7 +190,7 @@ static struct sh_timer_config cmt2_platform_data = {
.name = "CMT2", .name = "CMT2",
.channel_offset = 0x30, .channel_offset = 0x30,
.timer_bit = 2, .timer_bit = 2,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource cmt2_resources[] = { static struct resource cmt2_resources[] = {
...@@ -220,7 +220,7 @@ static struct sh_timer_config cmt3_platform_data = { ...@@ -220,7 +220,7 @@ static struct sh_timer_config cmt3_platform_data = {
.name = "CMT3", .name = "CMT3",
.channel_offset = 0x40, .channel_offset = 0x40,
.timer_bit = 3, .timer_bit = 3,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource cmt3_resources[] = { static struct resource cmt3_resources[] = {
...@@ -250,7 +250,7 @@ static struct sh_timer_config cmt4_platform_data = { ...@@ -250,7 +250,7 @@ static struct sh_timer_config cmt4_platform_data = {
.name = "CMT4", .name = "CMT4",
.channel_offset = 0x50, .channel_offset = 0x50,
.timer_bit = 4, .timer_bit = 4,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource cmt4_resources[] = { static struct resource cmt4_resources[] = {
...@@ -280,7 +280,7 @@ static struct sh_timer_config tmu0_platform_data = { ...@@ -280,7 +280,7 @@ static struct sh_timer_config tmu0_platform_data = {
.name = "TMU0", .name = "TMU0",
.channel_offset = 0x02, .channel_offset = 0x02,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 200, .clockevent_rating = 200,
}; };
...@@ -311,7 +311,7 @@ static struct sh_timer_config tmu1_platform_data = { ...@@ -311,7 +311,7 @@ static struct sh_timer_config tmu1_platform_data = {
.name = "TMU1", .name = "TMU1",
.channel_offset = 0xe, .channel_offset = 0xe,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
.clocksource_rating = 200, .clocksource_rating = 200,
}; };
...@@ -342,7 +342,7 @@ static struct sh_timer_config tmu2_platform_data = { ...@@ -342,7 +342,7 @@ static struct sh_timer_config tmu2_platform_data = {
.name = "TMU2", .name = "TMU2",
.channel_offset = 0x1a, .channel_offset = 0x1a,
.timer_bit = 2, .timer_bit = 2,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu2_resources[] = { static struct resource tmu2_resources[] = {
......
...@@ -38,7 +38,7 @@ static struct sh_timer_config tmu0_platform_data = { ...@@ -38,7 +38,7 @@ static struct sh_timer_config tmu0_platform_data = {
.name = "TMU0", .name = "TMU0",
.channel_offset = 0x04, .channel_offset = 0x04,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 200, .clockevent_rating = 200,
}; };
...@@ -69,7 +69,7 @@ static struct sh_timer_config tmu1_platform_data = { ...@@ -69,7 +69,7 @@ static struct sh_timer_config tmu1_platform_data = {
.name = "TMU1", .name = "TMU1",
.channel_offset = 0x10, .channel_offset = 0x10,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
.clocksource_rating = 200, .clocksource_rating = 200,
}; };
...@@ -100,7 +100,7 @@ static struct sh_timer_config tmu2_platform_data = { ...@@ -100,7 +100,7 @@ static struct sh_timer_config tmu2_platform_data = {
.name = "TMU2", .name = "TMU2",
.channel_offset = 0x1c, .channel_offset = 0x1c,
.timer_bit = 2, .timer_bit = 2,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu2_resources[] = { static struct resource tmu2_resources[] = {
......
...@@ -65,7 +65,7 @@ static struct sh_timer_config tmu0_platform_data = { ...@@ -65,7 +65,7 @@ static struct sh_timer_config tmu0_platform_data = {
.name = "TMU0", .name = "TMU0",
.channel_offset = 0x04, .channel_offset = 0x04,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 200, .clockevent_rating = 200,
}; };
...@@ -96,7 +96,7 @@ static struct sh_timer_config tmu1_platform_data = { ...@@ -96,7 +96,7 @@ static struct sh_timer_config tmu1_platform_data = {
.name = "TMU1", .name = "TMU1",
.channel_offset = 0x10, .channel_offset = 0x10,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
.clocksource_rating = 200, .clocksource_rating = 200,
}; };
...@@ -127,7 +127,7 @@ static struct sh_timer_config tmu2_platform_data = { ...@@ -127,7 +127,7 @@ static struct sh_timer_config tmu2_platform_data = {
.name = "TMU2", .name = "TMU2",
.channel_offset = 0x1c, .channel_offset = 0x1c,
.timer_bit = 2, .timer_bit = 2,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu2_resources[] = { static struct resource tmu2_resources[] = {
...@@ -162,7 +162,7 @@ static struct sh_timer_config tmu3_platform_data = { ...@@ -162,7 +162,7 @@ static struct sh_timer_config tmu3_platform_data = {
.name = "TMU3", .name = "TMU3",
.channel_offset = 0x04, .channel_offset = 0x04,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu3_resources[] = { static struct resource tmu3_resources[] = {
...@@ -192,7 +192,7 @@ static struct sh_timer_config tmu4_platform_data = { ...@@ -192,7 +192,7 @@ static struct sh_timer_config tmu4_platform_data = {
.name = "TMU4", .name = "TMU4",
.channel_offset = 0x10, .channel_offset = 0x10,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu4_resources[] = { static struct resource tmu4_resources[] = {
......
...@@ -164,7 +164,7 @@ static struct sh_timer_config tmu0_platform_data = { ...@@ -164,7 +164,7 @@ static struct sh_timer_config tmu0_platform_data = {
.name = "TMU0", .name = "TMU0",
.channel_offset = 0x04, .channel_offset = 0x04,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 200, .clockevent_rating = 200,
}; };
...@@ -195,7 +195,7 @@ static struct sh_timer_config tmu1_platform_data = { ...@@ -195,7 +195,7 @@ static struct sh_timer_config tmu1_platform_data = {
.name = "TMU1", .name = "TMU1",
.channel_offset = 0x10, .channel_offset = 0x10,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
.clocksource_rating = 200, .clocksource_rating = 200,
}; };
...@@ -226,7 +226,7 @@ static struct sh_timer_config tmu2_platform_data = { ...@@ -226,7 +226,7 @@ static struct sh_timer_config tmu2_platform_data = {
.name = "TMU2", .name = "TMU2",
.channel_offset = 0x1c, .channel_offset = 0x1c,
.timer_bit = 2, .timer_bit = 2,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu2_resources[] = { static struct resource tmu2_resources[] = {
......
...@@ -118,7 +118,7 @@ static struct sh_timer_config tmu0_platform_data = { ...@@ -118,7 +118,7 @@ static struct sh_timer_config tmu0_platform_data = {
.name = "TMU0", .name = "TMU0",
.channel_offset = 0x04, .channel_offset = 0x04,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 200, .clockevent_rating = 200,
}; };
...@@ -149,7 +149,7 @@ static struct sh_timer_config tmu1_platform_data = { ...@@ -149,7 +149,7 @@ static struct sh_timer_config tmu1_platform_data = {
.name = "TMU1", .name = "TMU1",
.channel_offset = 0x10, .channel_offset = 0x10,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
.clocksource_rating = 200, .clocksource_rating = 200,
}; };
...@@ -180,7 +180,7 @@ static struct sh_timer_config tmu2_platform_data = { ...@@ -180,7 +180,7 @@ static struct sh_timer_config tmu2_platform_data = {
.name = "TMU2", .name = "TMU2",
.channel_offset = 0x1c, .channel_offset = 0x1c,
.timer_bit = 2, .timer_bit = 2,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu2_resources[] = { static struct resource tmu2_resources[] = {
...@@ -210,7 +210,7 @@ static struct sh_timer_config tmu3_platform_data = { ...@@ -210,7 +210,7 @@ static struct sh_timer_config tmu3_platform_data = {
.name = "TMU3", .name = "TMU3",
.channel_offset = 0x04, .channel_offset = 0x04,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu3_resources[] = { static struct resource tmu3_resources[] = {
...@@ -240,7 +240,7 @@ static struct sh_timer_config tmu4_platform_data = { ...@@ -240,7 +240,7 @@ static struct sh_timer_config tmu4_platform_data = {
.name = "TMU4", .name = "TMU4",
.channel_offset = 0x10, .channel_offset = 0x10,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu4_resources[] = { static struct resource tmu4_resources[] = {
...@@ -270,7 +270,7 @@ static struct sh_timer_config tmu5_platform_data = { ...@@ -270,7 +270,7 @@ static struct sh_timer_config tmu5_platform_data = {
.name = "TMU5", .name = "TMU5",
.channel_offset = 0x1c, .channel_offset = 0x1c,
.timer_bit = 2, .timer_bit = 2,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu5_resources[] = { static struct resource tmu5_resources[] = {
......
...@@ -81,7 +81,7 @@ static struct sh_timer_config tmu0_platform_data = { ...@@ -81,7 +81,7 @@ static struct sh_timer_config tmu0_platform_data = {
.name = "TMU0", .name = "TMU0",
.channel_offset = 0x04, .channel_offset = 0x04,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 200, .clockevent_rating = 200,
}; };
...@@ -112,7 +112,7 @@ static struct sh_timer_config tmu1_platform_data = { ...@@ -112,7 +112,7 @@ static struct sh_timer_config tmu1_platform_data = {
.name = "TMU1", .name = "TMU1",
.channel_offset = 0x10, .channel_offset = 0x10,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
.clocksource_rating = 200, .clocksource_rating = 200,
}; };
...@@ -143,7 +143,7 @@ static struct sh_timer_config tmu2_platform_data = { ...@@ -143,7 +143,7 @@ static struct sh_timer_config tmu2_platform_data = {
.name = "TMU2", .name = "TMU2",
.channel_offset = 0x1c, .channel_offset = 0x1c,
.timer_bit = 2, .timer_bit = 2,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu2_resources[] = { static struct resource tmu2_resources[] = {
...@@ -173,7 +173,7 @@ static struct sh_timer_config tmu3_platform_data = { ...@@ -173,7 +173,7 @@ static struct sh_timer_config tmu3_platform_data = {
.name = "TMU3", .name = "TMU3",
.channel_offset = 0x04, .channel_offset = 0x04,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu3_resources[] = { static struct resource tmu3_resources[] = {
...@@ -203,7 +203,7 @@ static struct sh_timer_config tmu4_platform_data = { ...@@ -203,7 +203,7 @@ static struct sh_timer_config tmu4_platform_data = {
.name = "TMU4", .name = "TMU4",
.channel_offset = 0x10, .channel_offset = 0x10,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu4_resources[] = { static struct resource tmu4_resources[] = {
...@@ -233,7 +233,7 @@ static struct sh_timer_config tmu5_platform_data = { ...@@ -233,7 +233,7 @@ static struct sh_timer_config tmu5_platform_data = {
.name = "TMU5", .name = "TMU5",
.channel_offset = 0x1c, .channel_offset = 0x1c,
.timer_bit = 2, .timer_bit = 2,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu5_resources[] = { static struct resource tmu5_resources[] = {
...@@ -263,7 +263,7 @@ static struct sh_timer_config tmu6_platform_data = { ...@@ -263,7 +263,7 @@ static struct sh_timer_config tmu6_platform_data = {
.name = "TMU6", .name = "TMU6",
.channel_offset = 0x04, .channel_offset = 0x04,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu6_resources[] = { static struct resource tmu6_resources[] = {
...@@ -293,7 +293,7 @@ static struct sh_timer_config tmu7_platform_data = { ...@@ -293,7 +293,7 @@ static struct sh_timer_config tmu7_platform_data = {
.name = "TMU7", .name = "TMU7",
.channel_offset = 0x10, .channel_offset = 0x10,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu7_resources[] = { static struct resource tmu7_resources[] = {
...@@ -323,7 +323,7 @@ static struct sh_timer_config tmu8_platform_data = { ...@@ -323,7 +323,7 @@ static struct sh_timer_config tmu8_platform_data = {
.name = "TMU8", .name = "TMU8",
.channel_offset = 0x1c, .channel_offset = 0x1c,
.timer_bit = 2, .timer_bit = 2,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu8_resources[] = { static struct resource tmu8_resources[] = {
......
...@@ -18,7 +18,7 @@ static struct sh_timer_config tmu0_platform_data = { ...@@ -18,7 +18,7 @@ static struct sh_timer_config tmu0_platform_data = {
.name = "TMU0", .name = "TMU0",
.channel_offset = 0x04, .channel_offset = 0x04,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 200, .clockevent_rating = 200,
}; };
...@@ -49,7 +49,7 @@ static struct sh_timer_config tmu1_platform_data = { ...@@ -49,7 +49,7 @@ static struct sh_timer_config tmu1_platform_data = {
.name = "TMU1", .name = "TMU1",
.channel_offset = 0x10, .channel_offset = 0x10,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
.clocksource_rating = 200, .clocksource_rating = 200,
}; };
...@@ -80,7 +80,7 @@ static struct sh_timer_config tmu2_platform_data = { ...@@ -80,7 +80,7 @@ static struct sh_timer_config tmu2_platform_data = {
.name = "TMU2", .name = "TMU2",
.channel_offset = 0x1c, .channel_offset = 0x1c,
.timer_bit = 2, .timer_bit = 2,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu2_resources[] = { static struct resource tmu2_resources[] = {
...@@ -110,7 +110,7 @@ static struct sh_timer_config tmu3_platform_data = { ...@@ -110,7 +110,7 @@ static struct sh_timer_config tmu3_platform_data = {
.name = "TMU3", .name = "TMU3",
.channel_offset = 0x04, .channel_offset = 0x04,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu3_resources[] = { static struct resource tmu3_resources[] = {
...@@ -140,7 +140,7 @@ static struct sh_timer_config tmu4_platform_data = { ...@@ -140,7 +140,7 @@ static struct sh_timer_config tmu4_platform_data = {
.name = "TMU4", .name = "TMU4",
.channel_offset = 0x10, .channel_offset = 0x10,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu4_resources[] = { static struct resource tmu4_resources[] = {
...@@ -170,7 +170,7 @@ static struct sh_timer_config tmu5_platform_data = { ...@@ -170,7 +170,7 @@ static struct sh_timer_config tmu5_platform_data = {
.name = "TMU5", .name = "TMU5",
.channel_offset = 0x1c, .channel_offset = 0x1c,
.timer_bit = 2, .timer_bit = 2,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu5_resources[] = { static struct resource tmu5_resources[] = {
......
...@@ -20,7 +20,7 @@ static struct sh_timer_config tmu0_platform_data = { ...@@ -20,7 +20,7 @@ static struct sh_timer_config tmu0_platform_data = {
.name = "TMU0", .name = "TMU0",
.channel_offset = 0x04, .channel_offset = 0x04,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 200, .clockevent_rating = 200,
}; };
...@@ -51,7 +51,7 @@ static struct sh_timer_config tmu1_platform_data = { ...@@ -51,7 +51,7 @@ static struct sh_timer_config tmu1_platform_data = {
.name = "TMU1", .name = "TMU1",
.channel_offset = 0x10, .channel_offset = 0x10,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
.clocksource_rating = 200, .clocksource_rating = 200,
}; };
...@@ -82,7 +82,7 @@ static struct sh_timer_config tmu2_platform_data = { ...@@ -82,7 +82,7 @@ static struct sh_timer_config tmu2_platform_data = {
.name = "TMU2", .name = "TMU2",
.channel_offset = 0x1c, .channel_offset = 0x1c,
.timer_bit = 2, .timer_bit = 2,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu2_resources[] = { static struct resource tmu2_resources[] = {
...@@ -112,7 +112,7 @@ static struct sh_timer_config tmu3_platform_data = { ...@@ -112,7 +112,7 @@ static struct sh_timer_config tmu3_platform_data = {
.name = "TMU3", .name = "TMU3",
.channel_offset = 0x04, .channel_offset = 0x04,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu3_resources[] = { static struct resource tmu3_resources[] = {
...@@ -142,7 +142,7 @@ static struct sh_timer_config tmu4_platform_data = { ...@@ -142,7 +142,7 @@ static struct sh_timer_config tmu4_platform_data = {
.name = "TMU4", .name = "TMU4",
.channel_offset = 0x10, .channel_offset = 0x10,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu4_resources[] = { static struct resource tmu4_resources[] = {
...@@ -172,7 +172,7 @@ static struct sh_timer_config tmu5_platform_data = { ...@@ -172,7 +172,7 @@ static struct sh_timer_config tmu5_platform_data = {
.name = "TMU5", .name = "TMU5",
.channel_offset = 0x1c, .channel_offset = 0x1c,
.timer_bit = 2, .timer_bit = 2,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu5_resources[] = { static struct resource tmu5_resources[] = {
......
...@@ -75,7 +75,7 @@ static struct sh_timer_config tmu0_platform_data = { ...@@ -75,7 +75,7 @@ static struct sh_timer_config tmu0_platform_data = {
.name = "TMU0", .name = "TMU0",
.channel_offset = 0x04, .channel_offset = 0x04,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 200, .clockevent_rating = 200,
}; };
...@@ -106,7 +106,7 @@ static struct sh_timer_config tmu1_platform_data = { ...@@ -106,7 +106,7 @@ static struct sh_timer_config tmu1_platform_data = {
.name = "TMU1", .name = "TMU1",
.channel_offset = 0x10, .channel_offset = 0x10,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
.clocksource_rating = 200, .clocksource_rating = 200,
}; };
...@@ -137,7 +137,7 @@ static struct sh_timer_config tmu2_platform_data = { ...@@ -137,7 +137,7 @@ static struct sh_timer_config tmu2_platform_data = {
.name = "TMU2", .name = "TMU2",
.channel_offset = 0x1c, .channel_offset = 0x1c,
.timer_bit = 2, .timer_bit = 2,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu2_resources[] = { static struct resource tmu2_resources[] = {
...@@ -167,7 +167,7 @@ static struct sh_timer_config tmu3_platform_data = { ...@@ -167,7 +167,7 @@ static struct sh_timer_config tmu3_platform_data = {
.name = "TMU3", .name = "TMU3",
.channel_offset = 0x04, .channel_offset = 0x04,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu3_resources[] = { static struct resource tmu3_resources[] = {
...@@ -197,7 +197,7 @@ static struct sh_timer_config tmu4_platform_data = { ...@@ -197,7 +197,7 @@ static struct sh_timer_config tmu4_platform_data = {
.name = "TMU4", .name = "TMU4",
.channel_offset = 0x10, .channel_offset = 0x10,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu4_resources[] = { static struct resource tmu4_resources[] = {
...@@ -227,7 +227,7 @@ static struct sh_timer_config tmu5_platform_data = { ...@@ -227,7 +227,7 @@ static struct sh_timer_config tmu5_platform_data = {
.name = "TMU5", .name = "TMU5",
.channel_offset = 0x1c, .channel_offset = 0x1c,
.timer_bit = 2, .timer_bit = 2,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu5_resources[] = { static struct resource tmu5_resources[] = {
...@@ -257,7 +257,7 @@ static struct sh_timer_config tmu6_platform_data = { ...@@ -257,7 +257,7 @@ static struct sh_timer_config tmu6_platform_data = {
.name = "TMU6", .name = "TMU6",
.channel_offset = 0x04, .channel_offset = 0x04,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu6_resources[] = { static struct resource tmu6_resources[] = {
...@@ -287,7 +287,7 @@ static struct sh_timer_config tmu7_platform_data = { ...@@ -287,7 +287,7 @@ static struct sh_timer_config tmu7_platform_data = {
.name = "TMU7", .name = "TMU7",
.channel_offset = 0x10, .channel_offset = 0x10,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu7_resources[] = { static struct resource tmu7_resources[] = {
...@@ -317,7 +317,7 @@ static struct sh_timer_config tmu8_platform_data = { ...@@ -317,7 +317,7 @@ static struct sh_timer_config tmu8_platform_data = {
.name = "TMU8", .name = "TMU8",
.channel_offset = 0x1c, .channel_offset = 0x1c,
.timer_bit = 2, .timer_bit = 2,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu8_resources[] = { static struct resource tmu8_resources[] = {
...@@ -347,7 +347,7 @@ static struct sh_timer_config tmu9_platform_data = { ...@@ -347,7 +347,7 @@ static struct sh_timer_config tmu9_platform_data = {
.name = "TMU9", .name = "TMU9",
.channel_offset = 0x04, .channel_offset = 0x04,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu9_resources[] = { static struct resource tmu9_resources[] = {
...@@ -377,7 +377,7 @@ static struct sh_timer_config tmu10_platform_data = { ...@@ -377,7 +377,7 @@ static struct sh_timer_config tmu10_platform_data = {
.name = "TMU10", .name = "TMU10",
.channel_offset = 0x10, .channel_offset = 0x10,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu10_resources[] = { static struct resource tmu10_resources[] = {
...@@ -407,7 +407,7 @@ static struct sh_timer_config tmu11_platform_data = { ...@@ -407,7 +407,7 @@ static struct sh_timer_config tmu11_platform_data = {
.name = "TMU11", .name = "TMU11",
.channel_offset = 0x1c, .channel_offset = 0x1c,
.timer_bit = 2, .timer_bit = 2,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu11_resources[] = { static struct resource tmu11_resources[] = {
......
...@@ -53,7 +53,7 @@ static struct sh_timer_config tmu0_platform_data = { ...@@ -53,7 +53,7 @@ static struct sh_timer_config tmu0_platform_data = {
.name = "TMU0", .name = "TMU0",
.channel_offset = 0x04, .channel_offset = 0x04,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 200, .clockevent_rating = 200,
}; };
...@@ -84,7 +84,7 @@ static struct sh_timer_config tmu1_platform_data = { ...@@ -84,7 +84,7 @@ static struct sh_timer_config tmu1_platform_data = {
.name = "TMU1", .name = "TMU1",
.channel_offset = 0x10, .channel_offset = 0x10,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
.clocksource_rating = 200, .clocksource_rating = 200,
}; };
...@@ -115,7 +115,7 @@ static struct sh_timer_config tmu2_platform_data = { ...@@ -115,7 +115,7 @@ static struct sh_timer_config tmu2_platform_data = {
.name = "TMU2", .name = "TMU2",
.channel_offset = 0x1c, .channel_offset = 0x1c,
.timer_bit = 2, .timer_bit = 2,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu2_resources[] = { static struct resource tmu2_resources[] = {
...@@ -145,7 +145,7 @@ static struct sh_timer_config tmu3_platform_data = { ...@@ -145,7 +145,7 @@ static struct sh_timer_config tmu3_platform_data = {
.name = "TMU3", .name = "TMU3",
.channel_offset = 0x04, .channel_offset = 0x04,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu3_resources[] = { static struct resource tmu3_resources[] = {
...@@ -175,7 +175,7 @@ static struct sh_timer_config tmu4_platform_data = { ...@@ -175,7 +175,7 @@ static struct sh_timer_config tmu4_platform_data = {
.name = "TMU4", .name = "TMU4",
.channel_offset = 0x10, .channel_offset = 0x10,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu4_resources[] = { static struct resource tmu4_resources[] = {
...@@ -205,7 +205,7 @@ static struct sh_timer_config tmu5_platform_data = { ...@@ -205,7 +205,7 @@ static struct sh_timer_config tmu5_platform_data = {
.name = "TMU5", .name = "TMU5",
.channel_offset = 0x1c, .channel_offset = 0x1c,
.timer_bit = 2, .timer_bit = 2,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu5_resources[] = { static struct resource tmu5_resources[] = {
......
...@@ -75,7 +75,7 @@ static struct sh_timer_config tmu0_platform_data = { ...@@ -75,7 +75,7 @@ static struct sh_timer_config tmu0_platform_data = {
.name = "TMU0", .name = "TMU0",
.channel_offset = 0x04, .channel_offset = 0x04,
.timer_bit = 0, .timer_bit = 0,
.clk = "module_clk", .clk = "peripheral_clk",
.clockevent_rating = 200, .clockevent_rating = 200,
}; };
...@@ -106,7 +106,7 @@ static struct sh_timer_config tmu1_platform_data = { ...@@ -106,7 +106,7 @@ static struct sh_timer_config tmu1_platform_data = {
.name = "TMU1", .name = "TMU1",
.channel_offset = 0x10, .channel_offset = 0x10,
.timer_bit = 1, .timer_bit = 1,
.clk = "module_clk", .clk = "peripheral_clk",
.clocksource_rating = 200, .clocksource_rating = 200,
}; };
...@@ -137,7 +137,7 @@ static struct sh_timer_config tmu2_platform_data = { ...@@ -137,7 +137,7 @@ static struct sh_timer_config tmu2_platform_data = {
.name = "TMU2", .name = "TMU2",
.channel_offset = 0x1c, .channel_offset = 0x1c,
.timer_bit = 2, .timer_bit = 2,
.clk = "module_clk", .clk = "peripheral_clk",
}; };
static struct resource tmu2_resources[] = { static struct resource tmu2_resources[] = {
......
...@@ -396,7 +396,7 @@ static int __devinit calc_CCR(unsigned long scl_hz) ...@@ -396,7 +396,7 @@ static int __devinit calc_CCR(unsigned long scl_hz)
signed char cdf, cdfm; signed char cdf, cdfm;
int scgd, scgdm, scgds; int scgd, scgdm, scgds;
mclk = clk_get(NULL, "module_clk"); mclk = clk_get(NULL, "peripheral_clk");
if (IS_ERR(mclk)) { if (IS_ERR(mclk)) {
return PTR_ERR(mclk); return PTR_ERR(mclk);
} else { } else {
......
...@@ -1084,7 +1084,7 @@ static void __devinit sci_init_single(struct platform_device *dev, ...@@ -1084,7 +1084,7 @@ static void __devinit sci_init_single(struct platform_device *dev,
sci_port->port.uartclk = CONFIG_CPU_CLOCK; sci_port->port.uartclk = CONFIG_CPU_CLOCK;
#elif defined(CONFIG_HAVE_CLK) #elif defined(CONFIG_HAVE_CLK)
sci_port->iclk = p->clk ? clk_get(&dev->dev, p->clk) : NULL; sci_port->iclk = p->clk ? clk_get(&dev->dev, p->clk) : NULL;
sci_port->dclk = clk_get(&dev->dev, "module_clk"); sci_port->dclk = clk_get(&dev->dev, "peripheral_clk");
sci_port->enable = sci_clk_enable; sci_port->enable = sci_clk_enable;
sci_port->disable = sci_clk_disable; sci_port->disable = sci_clk_disable;
#else #else
......
...@@ -95,18 +95,18 @@ static void dac_audio_stop(void) ...@@ -95,18 +95,18 @@ static void dac_audio_stop(void)
outw(v, HD64461_GPADR); outw(v, HD64461_GPADR);
} }
sh_dac_output(0, CONFIG_SOUND_SH_DAC_AUDIO_CHANNEL); sh_dac_output(0, CONFIG_SOUND_SH_DAC_AUDIO_CHANNEL);
sh_dac_disable(CONFIG_SOUND_SH_DAC_AUDIO_CHANNEL); sh_dac_disable(CONFIG_SOUND_SH_DAC_AUDIO_CHANNEL);
} }
static void dac_audio_set_rate(void) static void dac_audio_set_rate(void)
{ {
unsigned long interval; unsigned long interval;
struct clk *clk; struct clk *clk;
clk = clk_get(NULL, "module_clk"); clk = clk_get(NULL, "peripheral_clk");
interval = (clk_get_rate(clk) / 4) / rate; interval = (clk_get_rate(clk) / 4) / rate;
clk_put(clk); clk_put(clk);
ctrl_outl(interval, TMU1_TCOR); ctrl_outl(interval, TMU1_TCOR);
ctrl_outl(interval, TMU1_TCNT); ctrl_outl(interval, TMU1_TCNT);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment