eb30b2daf5e9c06a4413fcd54c86f2e8ae9ac497
[openwrt/staging/noltari.git] /
1 From 6d43970a2eb1c7ee88caf7328d201f9c001262e9 Mon Sep 17 00:00:00 2001
2 From: Jonas Gorski <jonas.gorski@gmail.com>
3 Date: Sun, 16 Jul 2017 12:48:41 +0200
4 Subject: [PATCH V2 7/8] MIPS: BCM63XX: provide enet clocks as "enet" to the
5 ethernet devices
6
7 Add lookups to provide the appropriate enetX clocks as just "enet" to
8 the ethernet devices.
9
10 Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
11 Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
12 ---
13 arch/mips/bcm63xx/clk.c | 8 ++++++++
14 1 file changed, 8 insertions(+)
15
16 --- a/arch/mips/bcm63xx/clk.c
17 +++ b/arch/mips/bcm63xx/clk.c
18 @@ -377,6 +377,8 @@ static struct clk_lookup bcm3368_clks[]
19 CLKDEV_INIT(NULL, "usbd", &clk_usbd),
20 CLKDEV_INIT(NULL, "spi", &clk_spi),
21 CLKDEV_INIT(NULL, "pcm", &clk_pcm),
22 + CLKDEV_INIT("bcm63xx_enet.0", "enet", &clk_enet0),
23 + CLKDEV_INIT("bcm63xx_enet.1", "enet", &clk_enet1),
24 };
25
26 static struct clk_lookup bcm6328_clks[] = {
27 @@ -404,6 +406,7 @@ static struct clk_lookup bcm6338_clks[]
28 CLKDEV_INIT(NULL, "usbh", &clk_usbh),
29 CLKDEV_INIT(NULL, "usbd", &clk_usbd),
30 CLKDEV_INIT(NULL, "spi", &clk_spi),
31 + CLKDEV_INIT("bcm63xx_enet.0", "enet", &clk_enet_misc),
32 };
33
34 static struct clk_lookup bcm6345_clks[] = {
35 @@ -417,6 +420,7 @@ static struct clk_lookup bcm6345_clks[]
36 CLKDEV_INIT(NULL, "usbh", &clk_usbh),
37 CLKDEV_INIT(NULL, "usbd", &clk_usbd),
38 CLKDEV_INIT(NULL, "spi", &clk_spi),
39 + CLKDEV_INIT("bcm63xx_enet.0", "enet", &clk_enet_misc),
40 };
41
42 static struct clk_lookup bcm6348_clks[] = {
43 @@ -430,6 +434,8 @@ static struct clk_lookup bcm6348_clks[]
44 CLKDEV_INIT(NULL, "usbh", &clk_usbh),
45 CLKDEV_INIT(NULL, "usbd", &clk_usbd),
46 CLKDEV_INIT(NULL, "spi", &clk_spi),
47 + CLKDEV_INIT("bcm63xx_enet.0", "enet", &clk_enet_misc),
48 + CLKDEV_INIT("bcm63xx_enet.1", "enet", &clk_enet_misc),
49 };
50
51 static struct clk_lookup bcm6358_clks[] = {
52 @@ -445,6 +451,8 @@ static struct clk_lookup bcm6358_clks[]
53 CLKDEV_INIT(NULL, "usbd", &clk_usbd),
54 CLKDEV_INIT(NULL, "spi", &clk_spi),
55 CLKDEV_INIT(NULL, "pcm", &clk_pcm),
56 + CLKDEV_INIT("bcm63xx_enet.0", "enet", &clk_enet0),
57 + CLKDEV_INIT("bcm63xx_enet.1", "enet", &clk_enet1),
58 };
59
60 static struct clk_lookup bcm6362_clks[] = {