summaryrefslogtreecommitdiff
path: root/arch/arm/mach-zynq/timer.c
diff options
context:
space:
mode:
authorStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>2017-01-17 15:27:30 (GMT)
committerMichal Simek <michal.simek@xilinx.com>2017-02-17 09:22:46 (GMT)
commit781745bd87710c5604a0ae005153d0c9578d616a (patch)
tree1f769cbd756322f578ea632b5b6f384d36c4f0a3 /arch/arm/mach-zynq/timer.c
parent3a64b2536487fe03d4d21d9cefb45b2c841a9d21 (diff)
downloadu-boot-781745bd87710c5604a0ae005153d0c9578d616a.tar.xz
zynq: Move zynq to clock framework
Move the zynq to clock framework and remove unused functions as well as the CONFIG_ZYNQ_PS_CLK_FREQ configuration. Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/arm/mach-zynq/timer.c')
-rw-r--r--arch/arm/mach-zynq/timer.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arm/mach-zynq/timer.c b/arch/arm/mach-zynq/timer.c
index 0335cbe..b1bb3b8 100644
--- a/arch/arm/mach-zynq/timer.c
+++ b/arch/arm/mach-zynq/timer.c
@@ -61,7 +61,6 @@ int timer_init(void)
(TIMER_PRESCALE << SCUTIMER_CONTROL_PRESCALER_SHIFT) |
SCUTIMER_CONTROL_ENABLE_MASK;
-#if defined(CONFIG_CLK) || defined(CONFIG_SPL_CLK)
struct udevice *dev;
struct clk clk;
int ret;
@@ -79,7 +78,6 @@ int timer_init(void)
gd->cpu_clk = clk_get_rate(&clk);
clk_free(&clk);
-#endif
gd->arch.timer_rate_hz = (gd->cpu_clk / 2) / (TIMER_PRESCALE + 1);