diff options
author | Simon Arlott <simon@fire.lp0.eu> | 2012-09-11 01:26:15 -0400 |
---|---|---|
committer | Stephen Warren <swarren@wwwdotorg.org> | 2012-09-19 21:08:53 -0400 |
commit | 75fabc3f64489aa2c52eec54cd433ea269a25e05 (patch) | |
tree | ed157600173b8f860478c1f8dd12c93175c31d2f /arch | |
parent | ee4af5696720bb5b9de2e3b18be42089bed1e638 (diff) |
ARM: bcm2835: add stub clock driver
This patch adds a minimal stub clock driver for the BCM2835. Its sole
purpose is to allow the PL011 AMBA clk_get() API calls to provide
something that looks enough like a clock that the driver probes and
operates correctly.
This patch was extracted from git://github.com/lp0/linux.git branch
rpi-split as of 2012/09/08, and modified as follows:
* Reworked to call clk_register_fixed_rate(), and clk_register_clkdev()
rather than using static data to represent the clocks.
* Moved implementation to drivers/clk/.
* Modified .dev_id for UART clocks to match UART DT node names.
* s/bcm2708/bcm2835/.
* Modified device tree vendor prefix.
Signed-off-by: Chris Boot <bootc@bootc.net>
Signed-off-by: Simon Arlott <simon@fire.lp0.eu>
Signed-off-by: Dom Cobley <popcornmix@gmail.com>
Signed-off-by: Dom Cobley <dc4@broadcom.com>
Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Acked-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-bcm2835/bcm2835.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-bcm2835/bcm2835.c b/arch/arm/mach-bcm2835/bcm2835.c index e3f296860dd0..f6fea4933571 100644 --- a/arch/arm/mach-bcm2835/bcm2835.c +++ b/arch/arm/mach-bcm2835/bcm2835.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/irqchip/bcm2835.h> | 16 | #include <linux/irqchip/bcm2835.h> |
17 | #include <linux/of_platform.h> | 17 | #include <linux/of_platform.h> |
18 | #include <linux/bcm2835_timer.h> | 18 | #include <linux/bcm2835_timer.h> |
19 | #include <linux/clk/bcm2835.h> | ||
19 | 20 | ||
20 | #include <asm/mach/arch.h> | 21 | #include <asm/mach/arch.h> |
21 | #include <asm/mach/map.h> | 22 | #include <asm/mach/map.h> |
@@ -38,6 +39,8 @@ void __init bcm2835_init(void) | |||
38 | { | 39 | { |
39 | int ret; | 40 | int ret; |
40 | 41 | ||
42 | bcm2835_init_clocks(); | ||
43 | |||
41 | ret = of_platform_populate(NULL, of_default_bus_match_table, NULL, | 44 | ret = of_platform_populate(NULL, of_default_bus_match_table, NULL, |
42 | NULL); | 45 | NULL); |
43 | if (ret) { | 46 | if (ret) { |