2021-02-17 18:07:23 +00:00
|
|
|
From cad8f63047c0691e8185d3c9c6a2705b83310c9c Mon Sep 17 00:00:00 2001
|
|
|
|
From: Jonas Gorski <jonas.gorski@gmail.com>
|
|
|
|
Date: Mon, 31 Jul 2017 20:10:36 +0200
|
|
|
|
Subject: [PATCH] MIPS: BCM63XX: add clkdev lookups for device tree
|
|
|
|
|
|
|
|
---
|
|
|
|
arch/mips/bcm63xx/clk.c | 15 +++++++++++++++
|
|
|
|
1 file changed, 15 insertions(+)
|
|
|
|
|
|
|
|
--- a/arch/mips/bcm63xx/clk.c
|
|
|
|
+++ b/arch/mips/bcm63xx/clk.c
|
2021-11-26 13:29:01 +00:00
|
|
|
@@ -495,6 +495,8 @@ static struct clk_lookup bcm3368_clks[]
|
2021-02-17 18:07:23 +00:00
|
|
|
CLKDEV_INIT(NULL, "periph", &clk_periph),
|
|
|
|
CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph),
|
|
|
|
CLKDEV_INIT("bcm63xx_uart.1", "refclk", &clk_periph),
|
|
|
|
+ CLKDEV_INIT("fff8c100.serial", "refclk", &clk_periph),
|
|
|
|
+ CLKDEV_INIT("fff8c120.serial", "refclk", &clk_periph),
|
|
|
|
/* gated clocks */
|
|
|
|
CLKDEV_INIT(NULL, "enet0", &clk_enet0),
|
|
|
|
CLKDEV_INIT(NULL, "enet1", &clk_enet1),
|
2021-11-26 13:29:01 +00:00
|
|
|
@@ -511,7 +513,9 @@ static struct clk_lookup bcm6318_clks[]
|
2021-02-17 18:07:23 +00:00
|
|
|
/* fixed rate clocks */
|
|
|
|
CLKDEV_INIT(NULL, "periph", &clk_periph),
|
|
|
|
CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph),
|
|
|
|
+ CLKDEV_INIT("10000100.serial", "refclk", &clk_periph),
|
|
|
|
CLKDEV_INIT("bcm63xx-hsspi.0", "pll", &clk_hsspi_pll),
|
|
|
|
+ CLKDEV_INIT("10003000.spi", "pll", &clk_hsspi_pll),
|
|
|
|
/* gated clocks */
|
|
|
|
CLKDEV_INIT(NULL, "enetsw", &clk_enetsw),
|
|
|
|
CLKDEV_INIT(NULL, "usbh", &clk_usbh),
|
2021-11-26 13:29:01 +00:00
|
|
|
@@ -525,7 +529,10 @@ static struct clk_lookup bcm6328_clks[]
|
2021-02-17 18:07:23 +00:00
|
|
|
CLKDEV_INIT(NULL, "periph", &clk_periph),
|
|
|
|
CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph),
|
|
|
|
CLKDEV_INIT("bcm63xx_uart.1", "refclk", &clk_periph),
|
|
|
|
+ CLKDEV_INIT("10000100.serial", "refclk", &clk_periph),
|
|
|
|
+ CLKDEV_INIT("10000120.serial", "refclk", &clk_periph),
|
|
|
|
CLKDEV_INIT("bcm63xx-hsspi.0", "pll", &clk_hsspi_pll),
|
|
|
|
+ CLKDEV_INIT("10001000.spi", "pll", &clk_hsspi_pll),
|
|
|
|
/* gated clocks */
|
|
|
|
CLKDEV_INIT(NULL, "enetsw", &clk_enetsw),
|
|
|
|
CLKDEV_INIT(NULL, "usbh", &clk_usbh),
|
2021-11-26 13:29:01 +00:00
|
|
|
@@ -538,6 +545,7 @@ static struct clk_lookup bcm6338_clks[]
|
2021-02-17 18:07:23 +00:00
|
|
|
/* fixed rate clocks */
|
|
|
|
CLKDEV_INIT(NULL, "periph", &clk_periph),
|
|
|
|
CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph),
|
|
|
|
+ CLKDEV_INIT("fffe0300.serial", "refclk", &clk_periph),
|
|
|
|
/* gated clocks */
|
|
|
|
CLKDEV_INIT(NULL, "enet0", &clk_enet0),
|
|
|
|
CLKDEV_INIT(NULL, "enet1", &clk_enet1),
|
2021-11-26 13:29:01 +00:00
|
|
|
@@ -552,6 +560,7 @@ static struct clk_lookup bcm6345_clks[]
|
2021-02-17 18:07:23 +00:00
|
|
|
/* fixed rate clocks */
|
|
|
|
CLKDEV_INIT(NULL, "periph", &clk_periph),
|
|
|
|
CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph),
|
|
|
|
+ CLKDEV_INIT("fffe0300.serial", "refclk", &clk_periph),
|
|
|
|
/* gated clocks */
|
|
|
|
CLKDEV_INIT(NULL, "enet0", &clk_enet0),
|
|
|
|
CLKDEV_INIT(NULL, "enet1", &clk_enet1),
|
2021-11-26 13:29:01 +00:00
|
|
|
@@ -566,6 +575,7 @@ static struct clk_lookup bcm6348_clks[]
|
2021-02-17 18:07:23 +00:00
|
|
|
/* fixed rate clocks */
|
|
|
|
CLKDEV_INIT(NULL, "periph", &clk_periph),
|
|
|
|
CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph),
|
|
|
|
+ CLKDEV_INIT("fffe0300.serial", "refclk", &clk_periph),
|
|
|
|
/* gated clocks */
|
|
|
|
CLKDEV_INIT(NULL, "enet0", &clk_enet0),
|
|
|
|
CLKDEV_INIT(NULL, "enet1", &clk_enet1),
|
2021-11-26 13:29:01 +00:00
|
|
|
@@ -582,6 +592,8 @@ static struct clk_lookup bcm6358_clks[]
|
2021-02-17 18:07:23 +00:00
|
|
|
CLKDEV_INIT(NULL, "periph", &clk_periph),
|
|
|
|
CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph),
|
|
|
|
CLKDEV_INIT("bcm63xx_uart.1", "refclk", &clk_periph),
|
|
|
|
+ CLKDEV_INIT("fffe0100.serial", "refclk", &clk_periph),
|
|
|
|
+ CLKDEV_INIT("fffe0120.serial", "refclk", &clk_periph),
|
|
|
|
/* gated clocks */
|
|
|
|
CLKDEV_INIT(NULL, "enet0", &clk_enet0),
|
|
|
|
CLKDEV_INIT(NULL, "enet1", &clk_enet1),
|
2021-11-26 13:29:01 +00:00
|
|
|
@@ -601,7 +613,10 @@ static struct clk_lookup bcm6362_clks[]
|
2021-02-17 18:07:23 +00:00
|
|
|
CLKDEV_INIT(NULL, "periph", &clk_periph),
|
|
|
|
CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph),
|
|
|
|
CLKDEV_INIT("bcm63xx_uart.1", "refclk", &clk_periph),
|
|
|
|
+ CLKDEV_INIT("10000100.serial", "refclk", &clk_periph),
|
|
|
|
+ CLKDEV_INIT("10000120.serial", "refclk", &clk_periph),
|
|
|
|
CLKDEV_INIT("bcm63xx-hsspi.0", "pll", &clk_hsspi_pll),
|
|
|
|
+ CLKDEV_INIT("10001000.spi", "pll", &clk_hsspi_pll),
|
|
|
|
/* gated clocks */
|
|
|
|
CLKDEV_INIT(NULL, "enetsw", &clk_enetsw),
|
|
|
|
CLKDEV_INIT(NULL, "usbh", &clk_usbh),
|
2021-11-26 13:29:01 +00:00
|
|
|
@@ -617,6 +632,8 @@ static struct clk_lookup bcm6368_clks[]
|
2021-02-17 18:07:23 +00:00
|
|
|
CLKDEV_INIT(NULL, "periph", &clk_periph),
|
|
|
|
CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph),
|
|
|
|
CLKDEV_INIT("bcm63xx_uart.1", "refclk", &clk_periph),
|
|
|
|
+ CLKDEV_INIT("10000100.serial", "refclk", &clk_periph),
|
|
|
|
+ CLKDEV_INIT("10000120.serial", "refclk", &clk_periph),
|
|
|
|
/* gated clocks */
|
|
|
|
CLKDEV_INIT(NULL, "enetsw", &clk_enetsw),
|
|
|
|
CLKDEV_INIT(NULL, "usbh", &clk_usbh),
|
2021-11-26 13:29:01 +00:00
|
|
|
@@ -631,7 +648,10 @@ static struct clk_lookup bcm63268_clks[]
|
2021-02-17 18:07:23 +00:00
|
|
|
CLKDEV_INIT(NULL, "periph", &clk_periph),
|
|
|
|
CLKDEV_INIT("bcm63xx_uart.0", "refclk", &clk_periph),
|
|
|
|
CLKDEV_INIT("bcm63xx_uart.1", "refclk", &clk_periph),
|
|
|
|
+ CLKDEV_INIT("10000180.serial", "refclk", &clk_periph),
|
|
|
|
+ CLKDEV_INIT("100001a0.serial", "refclk", &clk_periph),
|
|
|
|
CLKDEV_INIT("bcm63xx-hsspi.0", "pll", &clk_hsspi_pll),
|
|
|
|
+ CLKDEV_INIT("10001000.spi", "pll", &clk_hsspi_pll),
|
|
|
|
/* gated clocks */
|
|
|
|
CLKDEV_INIT(NULL, "enetsw", &clk_enetsw),
|
|
|
|
CLKDEV_INIT(NULL, "usbh", &clk_usbh),
|