aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-socfpga/socfpga.c
diff options
context:
space:
mode:
authorDinh Nguyen <dinguyen@altera.com>2013-12-09 18:16:38 -0500
committerMike Turquette <mturquette@linaro.org>2014-02-18 17:08:07 -0500
commit6a7e71221d4e6cd185a51e2659f279da67f2e22d (patch)
tree9d498dd18b323f6cdacb93869ebed76ba4f0b69d /arch/arm/mach-socfpga/socfpga.c
parent6d0abeca3242a88cab8232e4acd7e2bf088f3bc2 (diff)
clk: socfpga: Map the clk manager base address in the clock driver
The clk manager's base address was being mapped in SOCFPGA's arch code and being extern'ed out to the clock driver. This method is not correct, and the arch code was not really doing anything with that clk manager anyways. This patch moves the mapping of the clk manager's base address in the clock driver itself. Cleans up CLK_OF_DECLARE() into a single registration of all the clocks. Suggested-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Dinh Nguyen <dinguyen@altera.com> Acked-by: Arnd Bergmann <arnd@arndb.de> --- v2: Use a static declaration for the clk_mgr_base_addr. Clean up the CLK_OF_DECLARE() as suggested by Arnd.
Diffstat (limited to 'arch/arm/mach-socfpga/socfpga.c')
-rw-r--r--arch/arm/mach-socfpga/socfpga.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/arm/mach-socfpga/socfpga.c b/arch/arm/mach-socfpga/socfpga.c
index dd0d49cdbe09..c43c28118092 100644
--- a/arch/arm/mach-socfpga/socfpga.c
+++ b/arch/arm/mach-socfpga/socfpga.c
@@ -29,7 +29,6 @@
29void __iomem *socfpga_scu_base_addr = ((void __iomem *)(SOCFPGA_SCU_VIRT_BASE)); 29void __iomem *socfpga_scu_base_addr = ((void __iomem *)(SOCFPGA_SCU_VIRT_BASE));
30void __iomem *sys_manager_base_addr; 30void __iomem *sys_manager_base_addr;
31void __iomem *rst_manager_base_addr; 31void __iomem *rst_manager_base_addr;
32void __iomem *clk_mgr_base_addr;
33unsigned long cpu1start_addr; 32unsigned long cpu1start_addr;
34 33
35static struct map_desc scu_io_desc __initdata = { 34static struct map_desc scu_io_desc __initdata = {
@@ -78,9 +77,6 @@ void __init socfpga_sysmgr_init(void)
78 77
79 np = of_find_compatible_node(NULL, NULL, "altr,rst-mgr"); 78 np = of_find_compatible_node(NULL, NULL, "altr,rst-mgr");
80 rst_manager_base_addr = of_iomap(np, 0); 79 rst_manager_base_addr = of_iomap(np, 0);
81
82 np = of_find_compatible_node(NULL, NULL, "altr,clk-mgr");
83 clk_mgr_base_addr = of_iomap(np, 0);
84} 80}
85 81
86static void __init socfpga_init_irq(void) 82static void __init socfpga_init_irq(void)