fsl: ls102x: remove redundant GENERIC_TIMER_CLK
authorAndre Przywara <andre.przywara@arm.com>
Thu, 16 Feb 2017 01:20:20 +0000 (01:20 +0000)
committerJagan Teki <jagan@amarulasolutions.com>
Wed, 5 Apr 2017 09:33:17 +0000 (15:03 +0530)
Some Freescale boards used an extra version of the constant to hold the
Generic Timer frequency. This can easily be covered by the now unified
COUNTER_FREQUENCY constant, so remove this extra variable from those
boards.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: York Sun <york.sun@nxp.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
arch/arm/cpu/armv7/ls102xa/psci.S
arch/arm/cpu/armv7/ls102xa/timer.c
include/configs/ls1021aiot.h
include/configs/ls1021aqds.h
include/configs/ls1021atwr.h

index 3d41d37a6438b1aad05e12b8aa3ef2f8987027f3..e1dc5f37487a5f4f652ff52058ab11719f091651 100644 (file)
@@ -37,7 +37,7 @@
 
        .align  5
 
-#define        ONE_MS          (GENERIC_TIMER_CLK / 1000)
+#define        ONE_MS          (COUNTER_FREQUENCY / 1000)
 #define        RESET_WAIT      (30 * ONE_MS)
 
 .globl psci_version
index e6a32caafc672014505ab6e1c87ebb2f4cbe1fd9..d5237d214a2e4b202cac653f0864f29f0b092254 100644 (file)
@@ -62,7 +62,7 @@ int timer_init(void)
        /* Enable System Counter */
        writel(SYS_COUNTER_CTRL_ENABLE, &sctr->cntcr);
 
-       freq = GENERIC_TIMER_CLK;
+       freq = COUNTER_FREQUENCY;
        asm("mcr p15, 0, %0, c14, c0, 0" : : "r" (freq));
 
        /* Set PL1 Physical Timer Ctrl */
index 906fc9a4aceb20cb4c70476d7a7a76af79f921fe..dfb72384d39d160174bdb20535ab50bd322ade9d 100644 (file)
 #define CONFIG_CMD_EXT2
 #endif
 
-/*
- * Generic Timer Definitions
- */
-#define GENERIC_TIMER_CLK              12500000
-
 #define CONFIG_SYS_CLK_FREQ            100000000
 #define CONFIG_DDR_CLK_FREQ            100000000
 
index 0f239d4aacc148abc1a245fb26ec9fd2e3602ad5..15850f2b528097f2bdcdb0a4e541cff8f3be2d30 100644 (file)
 #define CONFIG_SYS_INIT_RAM_ADDR       OCRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       OCRAM_SIZE
 
-/*
- * Generic Timer Definitions
- */
-#define GENERIC_TIMER_CLK              12500000
-
 #ifndef __ASSEMBLY__
 unsigned long get_board_sys_clk(void);
 unsigned long get_board_ddr_clk(void);
index 7915c39ee7059f603d2cb301b72c6291d4337a36..5d6a64acbd2724c6add7a709f55f8e23a7392152 100644 (file)
 #define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS     2
 #endif
 
-/*
- * Generic Timer Definitions
- */
-#define GENERIC_TIMER_CLK              12500000
-
 #define CONFIG_SYS_CLK_FREQ            100000000
 #define CONFIG_DDR_CLK_FREQ            100000000