ramips: add i2c clock
Signed-off-by: Michael Lee <igvtee@gmail.com>
This commit is contained in:
parent
011ce1fad6
commit
42bbe28cf1
1 changed files with 40 additions and 0 deletions
|
@ -0,0 +1,40 @@
|
|||
--- a/arch/mips/ralink/mt7620.c
|
||||
+++ b/arch/mips/ralink/mt7620.c
|
||||
@@ -446,6 +446,7 @@ void __init ralink_clk_init(void)
|
||||
ralink_clk_add("cpu", cpu_rate);
|
||||
ralink_clk_add("10000100.timer", periph_rate);
|
||||
ralink_clk_add("10000120.watchdog", periph_rate);
|
||||
+ ralink_clk_add("10000900.i2c", periph_rate);
|
||||
ralink_clk_add("10000b00.spi", sys_rate);
|
||||
ralink_clk_add("10000b40.spi", sys_rate);
|
||||
ralink_clk_add("10000c00.uartlite", periph_rate);
|
||||
--- a/arch/mips/ralink/rt288x.c
|
||||
+++ b/arch/mips/ralink/rt288x.c
|
||||
@@ -75,6 +75,7 @@ void __init ralink_clk_init(void)
|
||||
ralink_clk_add("300100.timer", cpu_rate / 2);
|
||||
ralink_clk_add("300120.watchdog", cpu_rate / 2);
|
||||
ralink_clk_add("300500.uart", cpu_rate / 2);
|
||||
+ ralink_clk_add("300900.i2c", cpu_rate / 2);
|
||||
ralink_clk_add("300c00.uartlite", cpu_rate / 2);
|
||||
ralink_clk_add("400000.ethernet", cpu_rate / 2);
|
||||
ralink_clk_add("480000.wmac", wmac_rate);
|
||||
--- a/arch/mips/ralink/rt305x.c
|
||||
+++ b/arch/mips/ralink/rt305x.c
|
||||
@@ -200,6 +200,7 @@ void __init ralink_clk_init(void)
|
||||
|
||||
ralink_clk_add("cpu", cpu_rate);
|
||||
ralink_clk_add("sys", sys_rate);
|
||||
+ ralink_clk_add("10000900.i2c", uart_rate);
|
||||
ralink_clk_add("10000b00.spi", sys_rate);
|
||||
ralink_clk_add("10000b40.spi", sys_rate);
|
||||
ralink_clk_add("10000100.timer", wdt_rate);
|
||||
--- a/arch/mips/ralink/rt3883.c
|
||||
+++ b/arch/mips/ralink/rt3883.c
|
||||
@@ -108,6 +108,7 @@ void __init ralink_clk_init(void)
|
||||
ralink_clk_add("10000100.timer", sys_rate);
|
||||
ralink_clk_add("10000120.watchdog", sys_rate);
|
||||
ralink_clk_add("10000500.uart", 40000000);
|
||||
+ ralink_clk_add("10000900.i2c", 40000000);
|
||||
ralink_clk_add("10000b00.spi", sys_rate);
|
||||
ralink_clk_add("10000b40.spi", sys_rate);
|
||||
ralink_clk_add("10000c00.uartlite", 40000000);
|
Loading…
Reference in a new issue