Skip to contentSkip to conversation

sh: sh7785 div4 clkdev lookup

PATCH New Magnus Damm 1 participant 1 message May 11, 2010 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 7/9 sh: sh7785 div4 clkdev lookup

From: Magnus Damm <[email protected]>

Add sh7785 DIV4 clocks to the clkdev lookup list.

---

 arch/sh/kernel/cpu/sh4a/clock-sh7785.c |   10 ++++++++++
 1 file changed, 10 insertions(+)
arch/sh/kernel/cpu/sh4a/clock-sh7785.c +10 -0
@@ -123,6 +123,16 @@ static struct clk mstp_clks[MSTP_NR] = {
 #define CLKDEV_CON_ID(_id, _clk) { .con_id = _id, .clk = _clk }
 
 static struct clk_lookup lookups[] = {
+	/* DIV4 clocks */
+	CLKDEV_CON_ID("peripheral_clk", &div4_clks[DIV4_P]),
+	CLKDEV_CON_ID("du_clk", &div4_clks[DIV4_DU]),
+	CLKDEV_CON_ID("ga_clk", &div4_clks[DIV4_GA]),
+	CLKDEV_CON_ID("ddr_clk", &div4_clks[DIV4_DDR]),
+	CLKDEV_CON_ID("bus_clk", &div4_clks[DIV4_B]),
+	CLKDEV_CON_ID("shyway_clk", &div4_clks[DIV4_SH]),
+	CLKDEV_CON_ID("umem_clk", &div4_clks[DIV4_U]),
+	CLKDEV_CON_ID("cpu_clk", &div4_clks[DIV4_I]),
+
 	/* MSTP32 clocks */
 	{
 		/* SCIF5 */