clk: ux500: Provide an alias for the SMSC911x Ethernet chip
authorLee Jones <lee.jones@linaro.org>
Wed, 19 Dec 2012 16:48:02 +0000 (16:48 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 1 Mar 2013 22:23:20 +0000 (23:23 +0100)
In the case of some of the ux500 platforms, an Ethernet chip is
placed on an extended bus which is traditionally used as a NAND
flash chip placeholder. The p3_pclk0 clock is used to control it,
so we are required to provide and easy way to access it from the
SMSC911x driver. We do this using an alias provided by this patch.

Acked-by: Mike Turquette <mturquette@linaro.org>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/clk/ux500/u8500_clk.c

index a6018022862873df9537a92bf4fef2a6fe3f123b..9d9add1e816da44fd2eca7a7bbc1bd1404da69e6 100644 (file)
@@ -325,6 +325,7 @@ void u8500_clk_init(void)
        clk = clk_reg_prcc_pclk("p3_pclk0", "per3clk", U8500_CLKRST3_BASE,
                                BIT(0), 0);
        clk_register_clkdev(clk, "fsmc", NULL);
+       clk_register_clkdev(clk, NULL, "smsc911x");
 
        clk = clk_reg_prcc_pclk("p3_pclk1", "per3clk", U8500_CLKRST3_BASE,
                                BIT(1), 0);