Skip to content

Commit 3897108

Browse files
author
Kevin Hilman
committed
Merge tag 'at91-fixes' of git://github.com/at91linux/linux-at91 into fixes
Merge "at91: fixes for 3.17 #1" from Nicols Ferre: First AT91 fixes batch for 3.17: - compatibility string precision - clock registration and USB DT fix for at91rm9200 * tag 'at91-fixes' of git://github.com/at91linux/linux-at91: ARM: at91/dt: rm9200: fix usb clock definition ARM: at91: rm9200: fix clock registration ARM: at91/dt: sam9g20: set at91sam9g20 pllb driver Signed-off-by: Kevin Hilman <[email protected]>
2 parents 8fb2226 + ea4fc62 commit 3897108

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

arch/arm/boot/dts/at91rm9200.dtsi

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
usb: usbck {
150150
compatible = "atmel,at91rm9200-clk-usb";
151151
#clock-cells = <0>;
152-
atmel,clk-divisors = <1 2>;
152+
atmel,clk-divisors = <1 2 0 0>;
153153
clocks = <&pllb>;
154154
};
155155

arch/arm/boot/dts/at91sam9g20.dtsi

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
};
4141

4242
pllb: pllbck {
43+
compatible = "atmel,at91sam9g20-clk-pllb";
4344
atmel,clk-input-range = <2000000 32000000>;
4445
atmel,pll-clk-output-ranges = <30000000 100000000 0 0>;
4546
};

arch/arm/mach-at91/board-dt-rm9200.c

+10-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <linux/gpio.h>
1515
#include <linux/of.h>
1616
#include <linux/of_irq.h>
17+
#include <linux/clk-provider.h>
1718

1819
#include <asm/setup.h>
1920
#include <asm/irq.h>
@@ -35,13 +36,21 @@ static void __init at91rm9200_dt_init_irq(void)
3536
of_irq_init(irq_of_match);
3637
}
3738

39+
static void __init at91rm9200_dt_timer_init(void)
40+
{
41+
#if defined(CONFIG_COMMON_CLK)
42+
of_clk_init(NULL);
43+
#endif
44+
at91rm9200_timer_init();
45+
}
46+
3847
static const char *at91rm9200_dt_board_compat[] __initdata = {
3948
"atmel,at91rm9200",
4049
NULL
4150
};
4251

4352
DT_MACHINE_START(at91rm9200_dt, "Atmel AT91RM9200 (Device Tree)")
44-
.init_time = at91rm9200_timer_init,
53+
.init_time = at91rm9200_dt_timer_init,
4554
.map_io = at91_map_io,
4655
.handle_irq = at91_aic_handle_irq,
4756
.init_early = at91rm9200_dt_initialize,

0 commit comments

Comments
 (0)