]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: bcm2835: add stub clock driver
authorSimon Arlott <simon@fire.lp0.eu>
Tue, 11 Sep 2012 05:26:15 +0000 (23:26 -0600)
committerStephen Warren <swarren@wwwdotorg.org>
Thu, 20 Sep 2012 01:08:53 +0000 (19:08 -0600)
commit75fabc3f64489aa2c52eec54cd433ea269a25e05
treeed157600173b8f860478c1f8dd12c93175c31d2f
parentee4af5696720bb5b9de2e3b18be42089bed1e638
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>
arch/arm/mach-bcm2835/bcm2835.c
drivers/clk/Makefile
drivers/clk/clk-bcm2835.c [new file with mode: 0644]
include/linux/clk/bcm2835.h [new file with mode: 0644]