]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/arm/mach-at91/at91cap9.c
at91: provide macb clks with "pclk" and "hclk" name
[karo-tx-linux.git] / arch / arm / mach-at91 / at91cap9.c
index ecdd54dd68c6c0139d10ca50595283bcf94545d7..17632b82dd76a810b11781bf7d5345412ffeebc9 100644 (file)
@@ -137,7 +137,7 @@ static struct clk pwm_clk = {
        .type           = CLK_TYPE_PERIPHERAL,
 };
 static struct clk macb_clk = {
-       .name           = "macb_clk",
+       .name           = "pclk",
        .pmc_mask       = 1 << AT91CAP9_ID_EMAC,
        .type           = CLK_TYPE_PERIPHERAL,
 };
@@ -210,6 +210,8 @@ static struct clk *periph_clocks[] __initdata = {
 };
 
 static struct clk_lookup periph_clocks_lookups[] = {
+       /* One additional fake clock for macb_hclk */
+       CLKDEV_CON_ID("hclk", &macb_clk),
        CLKDEV_CON_DEV_ID("hclk", "atmel_usba_udc", &utmi_clk),
        CLKDEV_CON_DEV_ID("pclk", "atmel_usba_udc", &udphs_clk),
        CLKDEV_CON_DEV_ID("mci_clk", "at91_mci.0", &mmc0_clk),