]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynq: Move scutimer baseaddr to hardware.h
authorMichal Simek <michal.simek@xilinx.com>
Fri, 12 Apr 2013 14:21:26 +0000 (16:21 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 25 Apr 2013 14:55:46 +0000 (16:55 +0200)
Move baseaddr to hardware.h to be shared between
configurations.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/cpu/armv7/zynq/timer.c
arch/arm/include/asm/arch-zynq/hardware.h
include/configs/petalogix-arm-auto.h
include/configs/zynq.h
include/configs/zynq_common.h

index 5d8bb24096e7212f71688c84c160cb16be02efbc..8c4357de4202c1b8197b916c575165ed1e84facc 100644 (file)
@@ -44,6 +44,7 @@
 #include <common.h>
 #include <div64.h>
 #include <asm/io.h>
+#include <asm/arch/hardware.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -54,7 +55,7 @@ struct scu_timer {
 };
 
 static struct scu_timer *timer_base =
-                             (struct scu_timer *) CONFIG_SCUTIMER_BASEADDR;
+                             (struct scu_timer *)ZYNQ_SCUTIMER_BASEADDR;
 
 #define SCUTIMER_CONTROL_PRESCALER_MASK        0x0000FF00 /* Prescaler */
 #define SCUTIMER_CONTROL_PRESCALER_SHIFT       8
index 5fce0b1dd8ffac44609632c37e98dc6cf103fd39..6c9b97d703bc9f268d062fc21b3e49039c42230f 100644 (file)
@@ -26,6 +26,7 @@
 #define ZYNQ_SYS_CTRL_BASEADDR         0xF8000000
 #define ZYNQ_DEV_CFG_APB_BASEADDR      0xF8007000
 #define ZYNQ_SCU_BASEADDR              0xF8F00000
+#define ZYNQ_SCUTIMER_BASEADDR         0xF8F00600
 
 /* Reflect slcr offsets */
 struct slcr_regs {
index 3949a1a4c5f262e0508429d588f65d4d8f8ed475..08946e8510194feac3dda9525be4535315a96054 100644 (file)
@@ -14,7 +14,6 @@
 #define XPSS_QSPI_LIN_BASEADDR         0xFC000000
 #define XPSS_DDR_CTRL_BASEADDR         0xF8006000
 
-#define CONFIG_SCUTIMER_BASEADDR       0xF8F00600
 #define CONFIG_CPU_FREQ_HZ     XPAR_CPU_CORTEXA9_CORE_CLOCK_FREQ_HZ
 
 /* Must be removed */
index 2989e723e04c6f5633aa80d978570a553096e06b..11476894d32845e1766ce118750bf451a35c5808 100644 (file)
@@ -50,9 +50,6 @@
 #define CONFIG_ZYNQ_SERIAL_BAUDRATE0   CONFIG_BAUDRATE
 #define CONFIG_ZYNQ_SERIAL_CLOCK0      50000000
 
-/* SCU timer address is hardcoded */
-#define CONFIG_SCUTIMER_BASEADDR       0xF8F00600
-
 /* Ethernet driver */
 #define CONFIG_NET_MULTI
 #define CONFIG_ZYNQ_GEM
index 424598ce0e4d3447c21f7c17893a395efd71a2a2..807deaee62ed8ed93062fce9dd57482218b31822 100644 (file)
@@ -77,8 +77,6 @@
 # define CONFIG_SYS_ENET
 #endif
 
-/* SCU timer address is hardcoded */
-#define CONFIG_SCUTIMER_BASEADDR       0xF8F00600
 #ifndef CONFIG_CPU_FREQ_HZ
 #define CONFIG_CPU_FREQ_HZ             800000000
 #endif