]> git.baikalelectronics.ru Git - uboot.git/commitdiff
include/configs: drop COUNTER_FREQUENCY
authorPeng Fan <peng.fan@nxp.com>
Wed, 13 Apr 2022 09:47:21 +0000 (17:47 +0800)
committerTom Rini <trini@konsulko.com>
Thu, 21 Apr 2022 19:27:17 +0000 (15:27 -0400)
Since we have CONFIG_COUNTER_FREQUENCY enabled, no need COUNTER_FREQUENCY

Signed-off-by: Peng Fan <peng.fan@nxp.com>
69 files changed:
arch/arm/cpu/armv8/fsl-layerscape/spintable.S
include/configs/apalis-imx8.h
include/configs/apalis-imx8x.h
include/configs/capricorn-common.h
include/configs/cgtqmx8.h
include/configs/colibri-imx8x.h
include/configs/condor.h
include/configs/draak.h
include/configs/dragonboard410c.h
include/configs/dragonboard820c.h
include/configs/eagle.h
include/configs/ebisu.h
include/configs/exynos-common.h
include/configs/exynos7420-common.h
include/configs/exynos78x0-common.h
include/configs/falcon.h
include/configs/hihope-rzg2.h
include/configs/hikey.h
include/configs/hikey960.h
include/configs/imx8qm_mek.h
include/configs/imx8qm_rom7720.h
include/configs/imx8qxp_mek.h
include/configs/imx8ulp_evk.h
include/configs/km/pg-wcom-ls102xa.h
include/configs/kontron_sl28.h
include/configs/ls1012a_common.h
include/configs/ls1021aiot.h
include/configs/ls1021aqds.h
include/configs/ls1021atsn.h
include/configs/ls1021atwr.h
include/configs/ls1028a_common.h
include/configs/ls1043a_common.h
include/configs/ls1046a_common.h
include/configs/ls1088aqds.h
include/configs/ls1088ardb.h
include/configs/ls2080a_common.h
include/configs/lx2160a_common.h
include/configs/mt8183.h
include/configs/mt8512.h
include/configs/mt8516.h
include/configs/mt8518.h
include/configs/mx6_common.h
include/configs/mx7_common.h
include/configs/owl-common.h
include/configs/p2371-2180.h
include/configs/p2771-0000.h
include/configs/p3450-0000.h
include/configs/presidio_asic.h
include/configs/px30_common.h
include/configs/rk3036_common.h
include/configs/rk3128_common.h
include/configs/rk322x_common.h
include/configs/rk3288_common.h
include/configs/rk3308_common.h
include/configs/rk3328_common.h
include/configs/rk3368_common.h
include/configs/rk3399_common.h
include/configs/rk3568_common.h
include/configs/salvator-x.h
include/configs/sdm845.h
include/configs/silinux-ek874.h
include/configs/socfpga_soc64_common.h
include/configs/sunxi-common.h
include/configs/ten64.h
include/configs/thunderx_88xx.h
include/configs/ulcb.h
include/configs/vexpress_aemv8.h
include/configs/xilinx_versal.h
include/configs/xilinx_zynqmp.h

index d6bd1884599c43f35d15b6fbb686ba7f2cf6ec6c..1eb0c2d4a7e78a0bf55575ced94c977798cc0957 100644 (file)
@@ -113,6 +113,6 @@ _dead_loop:
        .align 3
        .global __real_cntfrq
 __real_cntfrq:
-       .quad COUNTER_FREQUENCY
+       .quad CONFIG_COUNTER_FREQUENCY
        /* Secondary Boot Code ends here */
 __secondary_boot_code_end:
index c87bcd475effd25592cb4e1adf219f78e8d13d13..e759f18fe4620ec7a97879b1ccef67e7978774b7 100644 (file)
@@ -84,7 +84,4 @@
 #define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE + \
                                        sizeof(CONFIG_SYS_PROMPT) + 16)
 
-/* Generic Timer Definitions */
-#define COUNTER_FREQUENCY              8000000 /* 8MHz */
-
 #endif /* __APALIS_IMX8_H */
index 71a80f38bbb056720cba4b2dab2d02da4c355bc0..17f1981643f65aff6173ef26f0901571c86217c6 100644 (file)
 #define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE + \
                                        sizeof(CONFIG_SYS_PROMPT) + 16)
 
-/* Generic Timer Definitions */
-#define COUNTER_FREQUENCY              8000000 /* 8MHz */
-
 /* Networking */
 #define CONFIG_FEC_ENET_DEV 0
 #define IMX_FEC_BASE                   0x5b040000
index 58d7a3a8ce24c71957fb0c1f3d04fef4bf15779d..1466be10fcd99296d46479d17a072280b9bf36ad 100644 (file)
 #define CONFIG_SYS_MAXARGS             64
 #define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE
 
-/* Generic Timer Definitions */
-#define COUNTER_FREQUENCY              8000000 /* 8MHz */
-
 #define BOOTAUX_RESERVED_MEM_BASE      0x88000000
 #define BOOTAUX_RESERVED_MEM_SIZE      SZ_128M /* Reserve from second 128MB */
 
index bd5c072382a8a3695b38294f6349bf958ea33740..b5817f1e42d7fe4d9a4115a1ece682be7bbb3676 100644 (file)
 #define PHYS_SDRAM_1_SIZE              0x80000000      /* 2 GB */
 #define PHYS_SDRAM_2_SIZE              0x100000000     /* 4 GB */
 
-/* Generic Timer Definitions */
-#define COUNTER_FREQUENCY              8000000 /* 8MHz */
-
 /* Networking */
 #define CONFIG_FEC_MXC_PHYADDR         -1
 #define FEC_QUIRK_ENET_MAC
index 008fa6ef076cf329bdcff75bf9566f45bb8ebb79..265b7294fed51618f5e63cb74cdc7820a7d5f264 100644 (file)
                                        sizeof(CONFIG_SYS_PROMPT) + 16)
 
 /* Generic Timer Definitions */
-#define COUNTER_FREQUENCY              8000000 /* 8MHz */
 
 #define BOOTAUX_RESERVED_MEM_BASE 0x88000000
 #define BOOTAUX_RESERVED_MEM_SIZE SZ_128M /* Reserve from second 128MB */
index 213e68f15874dff0449579f21a377e461869aaa3..819184996e696d835a9a3d4eec5747f9df785078 100644 (file)
@@ -24,7 +24,4 @@
 /* Board Clock */
 /* XTAL_CLK : 33.33MHz */
 
-/* Generic Timer Definitions (use in assembler source) */
-#define COUNTER_FREQUENCY      0xFE502A        /* 16.66MHz from CPclk */
-
 #endif /* __CONDOR_H */
index 5bd8740c6f8498083e2f6d6e8ed06197421142f7..476b4c3710a27d26a1f6b27745cccd82bc79b1ea 100644 (file)
@@ -11,9 +11,6 @@
 
 #include "rcar-gen3-common.h"
 
-/* Generic Timer Definitions (use in assembler source) */
-#define COUNTER_FREQUENCY      0xFE502A        /* 16.66MHz from CPclk */
-
 /* Environment in eMMC, at the end of 2nd "boot sector" */
 
 #define CONFIG_FLASH_SHOW_PROGRESS     45
index 43a179f013b6381802369cc27437bc87bbdf2382..14ba52a2eb338419d69bf48a123d728d86a1f275 100644 (file)
@@ -23,9 +23,6 @@
 
 /* UART */
 
-/* Generic Timer Definitions */
-#define COUNTER_FREQUENCY              19000000
-
 /* Fixup - in init code we switch from device to host mode,
  * it has to be done after each HCD reset */
 #define CONFIG_EHCI_HCD_INIT_AFTER_RESET
index 229e1a323b6d6335f36d2c83d43283426745949e..1e2b15b33f9fd39c1c9305fc6ceb630315fe53a2 100644 (file)
@@ -23,9 +23,6 @@
 #define CONFIG_SYS_INIT_SP_ADDR                (CONFIG_SYS_SDRAM_BASE + 0x7fff0)
 #define CONFIG_SYS_BOOTM_LEN           SZ_64M
 
-/* Generic Timer Definitions */
-#define COUNTER_FREQUENCY              19000000
-
 #ifndef CONFIG_SPL_BUILD
 #include <config_distro_bootcmd.h>
 #endif
index 42fe057716769f5b17f87be76b2265d549b72efa..c751f75a7d0522848e63fdb20b095132ac546bd9 100644 (file)
@@ -16,7 +16,4 @@
 /* Board Clock */
 /* XTAL_CLK : 33.33MHz */
 
-/* Generic Timer Definitions (use in assembler source) */
-#define COUNTER_FREQUENCY      0xFE502A        /* 16.66MHz from CPclk */
-
 #endif /* __EAGLE_H */
index ce31a462fcf2c9bfad586270bb11530840b49453..3adc4180efd9b33c9cb0ca7009017c0c2c910d1a 100644 (file)
@@ -13,9 +13,6 @@
 
 #include "rcar-gen3-common.h"
 
-/* Generic Timer Definitions (use in assembler source) */
-#define COUNTER_FREQUENCY      0xFE502A        /* 16.66MHz from CPclk */
-
 /* Environment in eMMC, at the end of 2nd "boot sector" */
 
 #define CONFIG_FLASH_SHOW_PROGRESS     45
index eb2606905f8a8be9e6f0c51bf4ab52dcda7c73e7..dd1cbd7ab84d40476bb9ed95079289c9f28b8e9a 100644 (file)
@@ -19,7 +19,6 @@
 /* Keep L2 Cache Disabled */
 
 /* input clock of PLL: 24MHz input clock */
-#define COUNTER_FREQUENCY              24000000
 
 /* select serial console configuration */
 
index fcb238fb3e3b590a977d953b038523f5d6df1f89..5658da474cbf7795304e206c68c47fe9aeb2e72d 100644 (file)
@@ -24,9 +24,6 @@
 
 /* select serial console configuration */
 
-/* Timer input clock frequency */
-#define COUNTER_FREQUENCY              24000000
-
 /* IRAM Layout */
 #define CONFIG_IRAM_BASE               0x02100000
 #define CONFIG_IRAM_SIZE               0x58000
index 457057ce71fc37728c3f3318fe3b1c4bb569bf72..ec43e133dde00e6cd79427bfa71161e596bcc7b0 100644 (file)
@@ -25,9 +25,6 @@
 /* Boot Argument Buffer Size */
 #define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE
 
-/* Timer input clock frequency */
-#define COUNTER_FREQUENCY              26000000
-
 #define CPU_RELEASE_ADDR               secondary_boot_addr
 
 #define CONFIG_SYS_BAUDRATE_TABLE \
index 52dcf19ccad2704af728513bea373f281307991f..446261cedc74f7d910f0ebe8f199d956a4168d3d 100644 (file)
@@ -24,7 +24,4 @@
 /* Board Clock */
 /* XTAL_CLK : 16.66MHz */
 
-/* Generic Timer Definitions (use in assembler source) */
-#define COUNTER_FREQUENCY      0xFE502A        /* 16.66MHz from CPclk */
-
 #endif /* __FALCON_H */
index e46eb07a5e9d135a1f79169302da2f2e7b0746e9..54702985b95d2acadba6fa9c5fcb6d7b0481ad72 100644 (file)
@@ -11,7 +11,4 @@
 
 #include "rcar-gen3-common.h"
 
-/* Generic Timer Definitions (use in assembler source) */
-#define COUNTER_FREQUENCY      0xFE502A        /* 16.66MHz from CPclk */
-
 #endif /* __HIHOPE_RZG2_H */
index 29a0d94386495c6518bbab9fcc19344a9b8d2e0d..19d5b6261f105ab98b4337a5cbf34144f2e5d034 100644 (file)
@@ -32,9 +32,6 @@
 
 #define CONFIG_SYS_INIT_SP_ADDR         (CONFIG_SYS_SDRAM_BASE + 0x7fff0)
 
-/* Generic Timer Definitions */
-#define COUNTER_FREQUENCY              19000000
-
 /* Generic Interrupt Controller Definitions */
 #define GICD_BASE                      0xf6801000
 #define GICC_BASE                      0xf6802000
index f446ecb86479a5278801d03f4f7b841e70ae4486..c088f2f2b6913b6ce739c92d503516c099bb7603 100644 (file)
@@ -24,9 +24,6 @@
 
 #define CONFIG_SYS_INIT_SP_ADDR         (CONFIG_SYS_SDRAM_BASE + 0x7fff0)
 
-/* Generic Timer Definitions */
-#define COUNTER_FREQUENCY              19000000
-
 /* Generic Interrupt Controller Definitions */
 #define GICD_BASE                      0xe82b1000
 #define GICC_BASE                      0xe82b2000
index 0fe38e61c4b7b7986e73360592fb88ab8429ced0..a9c52d27500a00d8759e6c438b28d10b88f48a00 100644 (file)
 #define PHYS_SDRAM_1_SIZE              0x80000000      /* 2 GB */
 #define PHYS_SDRAM_2_SIZE              0x100000000     /* 4 GB */
 
-/* Generic Timer Definitions */
-#define COUNTER_FREQUENCY              8000000 /* 8MHz */
-
 #endif /* __IMX8QM_MEK_H */
index 7532c6e7551d2d6fa13f34e2027bdc3ea8d23318..c7cace2c36fedcb5f530b8708354c858638a58f3 100644 (file)
 /* LPDDR4 board total DDR is 6GB, DDR4 board total DDR is 4 GB */
 #define PHYS_SDRAM_2_SIZE              0x80000000      /* 2 GB */
 
-/* Generic Timer Definitions */
-#define COUNTER_FREQUENCY              8000000 /* 8MHz */
-
 #include <linux/stringify.h>
 #endif /* __IMX8QM_ROM7720_H */
index beb35c93435fd1ad256c2baf9711add607e62ec0..9052a9142e2be9a7584396c36304cd0a4c2aafd3 100644 (file)
 /* LPDDR4 board total DDR is 3GB */
 #define PHYS_SDRAM_2_SIZE              0x40000000      /* 1 GB */
 
-/* Generic Timer Definitions */
-#define COUNTER_FREQUENCY              8000000 /* 8MHz */
-
 #ifndef CONFIG_DM_PCA953X
 #define CONFIG_PCA953X
 #endif
index f078c37c2deb7bf4e869791cdb99a90fed78d048..f274b66343b4729e0a6ec45b0558e9af379e99e9 100644 (file)
@@ -27,8 +27,6 @@
 
 #endif
 
-#define COUNTER_FREQUENCY              1000000 /* 1MHz */
-
 /* ENET Config */
 #if defined(CONFIG_FEC_MXC)
 #define PHY_ANEG_TIMEOUT               20000
index 0494790c84facb7ad3cdb1f2a39ac3da3f589d52..dca5589a3ef457f87732df68777ffff4ca669b0d 100644 (file)
 
 #define CONFIG_LAYERSCAPE_NS_ACCESS
 #define CONFIG_SMP_PEN_ADDR            0x01ee0200
-#define COUNTER_FREQUENCY              8333333
 
 #define CONFIG_HWCONFIG
 #define HWCONFIG_BUFFER_SIZE           256
index c3ab049535a74f823981b38d6c3ece4d4c653e1f..c47b5940fb297ccae9310ef9f59c7e14931f4818 100644 (file)
@@ -32,7 +32,6 @@
 #define CPU_RELEASE_ADDR               secondary_boot_addr
 
 /* generic timer */
-#define COUNTER_FREQUENCY              25000000
 
 /* early heap for SPL DM */
 #define CONFIG_MALLOC_F_ADDR           CONFIG_SYS_FSL_OCRAM_BASE
index f92ff17eeb8906283f16d865943e3742e5cd0d5f..67da01f5e3ab8dea31470d8563923f1ae530b6cf 100644 (file)
@@ -21,9 +21,6 @@
 #define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
 #define CONFIG_SYS_DDR_BLOCK2_BASE     0x880000000ULL
 
-/* Generic Timer Definitions */
-#define COUNTER_FREQUENCY              25000000        /* 25MHz */
-
 /* CSU */
 #define CONFIG_LAYERSCAPE_NS_ACCESS
 
index 97460818315bc51b5104038f6133b84dd4c7f792..82ae3492a2f2605c7d9c1e69bf382f8ec40e705d 100644 (file)
 #define CONFIG_PEN_ADDR_BIG_ENDIAN
 #define CONFIG_LAYERSCAPE_NS_ACCESS
 #define CONFIG_SMP_PEN_ADDR            0x01ee0200
-#define COUNTER_FREQUENCY              12500000
 
 #define CONFIG_HWCONFIG
 #define HWCONFIG_BUFFER_SIZE           256
index 010f3a16367c32011e582d55acf188a1b6ece5af..7b79e0841a5a06caeed14edbb67e9d6d8fc4cd6b 100644 (file)
 #define CONFIG_PEN_ADDR_BIG_ENDIAN
 #define CONFIG_LAYERSCAPE_NS_ACCESS
 #define CONFIG_SMP_PEN_ADDR            0x01ee0200
-#define COUNTER_FREQUENCY              12500000
 
 #define CONFIG_HWCONFIG
 #define HWCONFIG_BUFFER_SIZE           256
index bc2a265c4097d7bb8579671079d92699d2eb650a..546c4fcdb95c12d78c83befcffb749b008a08ecd 100644 (file)
@@ -99,7 +99,6 @@
 #endif
 
 #define CONFIG_LAYERSCAPE_NS_ACCESS
-#define COUNTER_FREQUENCY              12500000
 
 #define CONFIG_HWCONFIG
 #define HWCONFIG_BUFFER_SIZE           256
index 6b1ab87539995153451f9d0bd63a4a6e5eb945bc..b4383d4bbdb704f363cb2d2174c1d52670921c44 100644 (file)
 #define CONFIG_PEN_ADDR_BIG_ENDIAN
 #define CONFIG_LAYERSCAPE_NS_ACCESS
 #define CONFIG_SMP_PEN_ADDR            0x01ee0200
-#define COUNTER_FREQUENCY              12500000
 
 #define CONFIG_HWCONFIG
 #define HWCONFIG_BUFFER_SIZE           256
index 7bb6d416ea31b6239c91b04be7c985ebe4eded63..a98d8dd7200fd87112a1b70451b67a8cbd76d631 100644 (file)
@@ -25,9 +25,6 @@
  */
 #define CPU_RELEASE_ADDR               secondary_boot_addr
 
-/* Generic Timer Definitions */
-#define COUNTER_FREQUENCY              25000000        /* 25MHz */
-
 /* GPIO */
 
 /* I2C */
index 83b95c242f01288a5f90c862afd2ed5d01277775..61c6d4567649555cb89b760b39b74afec6997410 100644 (file)
@@ -44,9 +44,6 @@
 
 #define CPU_RELEASE_ADDR               secondary_boot_addr
 
-/* Generic Timer Definitions */
-#define COUNTER_FREQUENCY              25000000        /* 25MHz */
-
 /* Serial Port */
 #define CONFIG_SYS_NS16550_SERIAL
 #define CONFIG_SYS_NS16550_REG_SIZE    1
index 7552610e0355dc2717cf5ec1ae1b0e714881c200..f9279e4ab461ad7075b2139df8f9351d30c0d771 100644 (file)
@@ -44,9 +44,6 @@
 
 #define CPU_RELEASE_ADDR               secondary_boot_addr
 
-/* Generic Timer Definitions */
-#define COUNTER_FREQUENCY              25000000        /* 25MHz */
-
 /* Serial Port */
 #define CONFIG_SYS_NS16550_SERIAL
 #define CONFIG_SYS_NS16550_REG_SIZE    1
index 1ea6befa9b9490ac869567bdef3770420beceb0b..e532c343f48b1ef94ddadd3cb431455c2fd68924 100644 (file)
@@ -13,7 +13,6 @@
 #endif
 
 #define COUNTER_FREQUENCY_REAL         (get_board_sys_clk()/4)
-#define COUNTER_FREQUENCY              25000000        /* 25MHz */
 
 #define CONFIG_MEM_INIT_VALUE           0xdeadbeef
 #define SPD_EEPROM_ADDRESS             0x51
index 1a9cda1e7daf0c53a5d7ad83690a851ad9091eea..693a2f64b6cc81bd5be65fb857ba86eb95871212 100644 (file)
@@ -14,7 +14,6 @@
 #endif
 
 #define COUNTER_FREQUENCY_REAL         25000000        /* 25MHz */
-#define COUNTER_FREQUENCY              25000000        /* 25MHz */
 
 #ifdef CONFIG_EMU
 #define CONFIG_SYS_FSL_DDR_EMU
index 82585f5dbfaf6577c94fddcb1a262923fc8907c2..e77e9b7f376418f16f4adb62f07c3e79ba2fc556 100644 (file)
 
 #define CONFIG_SYS_FSL_OTHER_DDR_NUM_CTRLS
 
-/* Generic Timer Definitions */
 /*
  * This is not an accurate number. It is used in start.S. The frequency
  * will be udpated later when get_bus_freq(0) is available.
  */
-#define COUNTER_FREQUENCY              25000000        /* 25MHz */
 
 /* GPIO */
 
index 96dfe49a7e550ce0965355b9130af6a22631b0ae..d56901481958b4d4b0376ef42870c9b24f595a43 100644 (file)
@@ -46,7 +46,6 @@
  * will be udpated later when get_bus_freq(0) is available.
  */
 
-#define COUNTER_FREQUENCY              25000000        /* 25MHz */
 
 /* Serial Port */
 #define CONFIG_PL011_CLOCK             (get_bus_freq(0) / 4)
index 2b4e976aa1fefe547b88a20ba7707451b00eb232..ee31c02e6ef9dd3a71eea77595289f928a4126c9 100644 (file)
@@ -11,7 +11,6 @@
 
 #include <linux/sizes.h>
 
-#define COUNTER_FREQUENCY              13000000
 
 #define CONFIG_SYS_NS16550_SERIAL
 #define CONFIG_SYS_NS16550_REG_SIZE    -4
index 9c443db9f52d0f005d6a20fc48c3fa10501daaed..1af8d2e480c2d31599590d17c8c0c1400a97889b 100644 (file)
@@ -13,7 +13,6 @@
 
 #define CONFIG_SYS_NONCACHED_MEMORY            SZ_1M
 
-#define COUNTER_FREQUENCY                      13000000
 
 #define CONFIG_SYS_BOOTM_LEN                   SZ_64M
 
index 47132c1db1d25b7c1ca7f965d594435b5844286e..cb2af5843fcaa9665a18e8cecd78c3a2f9f708b2 100644 (file)
@@ -11,7 +11,6 @@
 
 #include <linux/sizes.h>
 
-#define COUNTER_FREQUENCY              13000000
 
 #define CONFIG_SYS_NS16550_SERIAL
 #define CONFIG_SYS_NS16550_REG_SIZE    -4
index 49ee926b0c945c318b4975c041e443e93c982585..8ca8d25148a318ebf194c94e2ae1fe66cfae7aa4 100644 (file)
@@ -13,7 +13,6 @@
 
 #define CONFIG_SYS_NONCACHED_MEMORY            SZ_1M
 
-#define COUNTER_FREQUENCY                      13000000
 
 /* DRAM definition */
 #define CONFIG_SYS_SDRAM_BASE                  0x40000000
index a0e481703bcb61ab569b863608734fbb3f4bb234..10e46c628d5265f212aac4b13560ba8f5ff220e0 100644 (file)
@@ -10,7 +10,6 @@
 
 #if (defined(CONFIG_MX6UL) || defined(CONFIG_MX6ULL))
 #define CONFIG_SC_TIMER_CLK 8000000 /* 8Mhz */
-#define COUNTER_FREQUENCY CONFIG_SC_TIMER_CLK
 #else
 #ifndef CONFIG_SYS_L2CACHE_OFF
 #define CONFIG_SYS_L2_PL310
index 76c374af253226daeb7f573a4a9a3afc97843d98..9f7d60f8fbd872fe9870f989ae4d6e2e58f4ae84 100644 (file)
@@ -16,7 +16,6 @@
 /* Timer settings */
 #define CONFIG_MXC_GPT_HCLK
 #define CONFIG_SC_TIMER_CLK 8000000 /* 8Mhz */
-#define COUNTER_FREQUENCY CONFIG_SC_TIMER_CLK
 
 #define CONFIG_SYS_BOOTM_LEN   0x1000000
 
index 96453214eeb98f2db5f0586ac294ae4f02511982..fabbb01e0c800fe5a7c5df033dfbdd2fe6040f28 100644 (file)
@@ -13,9 +13,6 @@
 /* SDRAM Definitions */
 #define CONFIG_SYS_SDRAM_BASE          0x0
 
-/* Generic Timer Definitions */
-#define COUNTER_FREQUENCY              (24000000)      /* 24MHz */
-
 /* Some commands use this as the default load address */
 
 /*
index ef1fa2a5926ec95fe5644477fa3edcefd45cefcf..7f942888e74deee17e83bded2053e038f52c2e57 100644 (file)
@@ -24,7 +24,4 @@
 
 #include "tegra-common-post.h"
 
-/* Crystal is 38.4MHz. clk_m runs at half that rate */
-#define COUNTER_FREQUENCY      19200000
-
 #endif /* _P2371_2180_H */
index 4c3da224c66d38f94eea856b11f4aad1879f2b88..84cdd571962363e73efe8ff316f1a1b35b77b3cf 100644 (file)
@@ -37,7 +37,4 @@
 
 #include "tegra-common-post.h"
 
-/* Crystal is 38.4MHz. clk_m runs at half that rate */
-#define COUNTER_FREQUENCY      19200000
-
 #endif
index 1c962be8b8e42b81837f1e4476c614f29d63c05d..ec1a8634e718d52cb3586b84dd41d1d82d937f5d 100644 (file)
@@ -35,7 +35,4 @@
 /* General networking support */
 #include "tegra-common-post.h"
 
-/* Crystal is 38.4MHz. clk_m runs at half that rate */
-#define COUNTER_FREQUENCY      19200000
-
 #endif /* _P3450_0000_H */
index 3295d43ed67a83257d0a3df30635aebb907b725a..1d526a738027612ff699f811e789d85c0e7de3ca 100644 (file)
@@ -12,8 +12,7 @@
 #define CONFIG_SYS_BOOTM_LEN           0x00c00000
 
 /* Generic Timer Definitions */
-#define COUNTER_FREQUENCY              25000000
-#define CONFIG_SYS_TIMER_RATE          COUNTER_FREQUENCY
+#define CONFIG_SYS_TIMER_RATE          25000000
 #define CONFIG_SYS_TIMER_COUNTER       0xf4321008
 
 /* note: arch/arm/cpu/armv8/start.S which references GICD_BASE/GICC_BASE
index dc609013f32d4bfd29b4eb55914fc64cfa37a89b..a7f5e9116552fb873c3329456dc2a0264894dc9b 100644 (file)
@@ -12,8 +12,6 @@
 
 #define CONFIG_SYS_NS16550_MEM32
 
-#define COUNTER_FREQUENCY              24000000
-
 /* FIXME: ff020000 is pmu_mem (10k), while ff0e0000 is regular int_mem */
 #define CONFIG_IRAM_BASE               0xff020000
 
index 5905518edf1990fb89563b1c78200f1f5cac969f..ab2b492d03f0f8e8c3c377293b92946f1183ff43 100644 (file)
@@ -10,7 +10,6 @@
 
 #define CONFIG_SYS_CBSIZE              1024
 
-#define COUNTER_FREQUENCY              24000000
 #define CONFIG_SYS_HZ_CLOCK            24000000
 
 #define CONFIG_SYS_INIT_SP_ADDR                0x60100000
index d77a7d7b098ad2ea6722fe4c6710cfe4728edc3e..8f04e9de5a3f0f47eb41d20a13d84518810864b8 100644 (file)
@@ -11,7 +11,6 @@
 #define CONFIG_SYS_MAXARGS             16
 #define CONFIG_SYS_CBSIZE              1024
 
-#define COUNTER_FREQUENCY              24000000
 #define CONFIG_SYS_HZ_CLOCK            24000000
 
 #define CONFIG_IRAM_BASE               0x10080000
index 3258820fcdc5a82158bffa46e2098f1a019c3393..36191ee9c12b7891ec279183cb84472ddf71ce7a 100644 (file)
@@ -11,7 +11,6 @@
 #define CONFIG_SYS_CBSIZE              1024
 #define CONFIG_SYS_BOOTM_LEN   (64 << 20)      /*  64M */
 
-#define COUNTER_FREQUENCY              24000000
 #define CONFIG_SYS_HZ_CLOCK            24000000
 
 #define CONFIG_SYS_INIT_SP_ADDR                0x61100000
index e2e0f70a70c56227dbab539b78e71435651bf8aa..075623f342ac3a57d7d90550a67fd1fa09026505 100644 (file)
@@ -13,7 +13,6 @@
 
 #define CONFIG_SYS_CBSIZE              1024
 
-#define COUNTER_FREQUENCY              24000000
 #define CONFIG_SYS_HZ_CLOCK            24000000
 
 #ifdef CONFIG_SPL_ROCKCHIP_BACK_TO_BROM
index 9cda8d9c48bed866624486056e46ae9800e6f7cd..44a3e7adf206149d06ef3e53104356a337c6087b 100644 (file)
@@ -20,7 +20,6 @@
 #define CONFIG_SPL_STACK               0x00400000
 #define CONFIG_SYS_BOOTM_LEN           (64 << 20)      /* 64M */
 
-#define COUNTER_FREQUENCY              24000000
 
 #define CONFIG_SYS_BOOTM_LEN   (64 << 20)      /* 64M */
 
index 8a5f0c8999fab0db644e00913cb2631127fe019b..2b8d77c47ed6e18b68db71def71a0523967c1984 100644 (file)
@@ -10,8 +10,6 @@
 
 #define CONFIG_IRAM_BASE               0xff090000
 
-#define COUNTER_FREQUENCY              24000000
-
 #define CONFIG_SYS_CBSIZE              1024
 
 #define CONFIG_SYS_INIT_SP_ADDR                0x00300000
index 239296c1d2238d8f09899e112cc0eae3188f0ca4..2f71ce72df8c6045a6c5933922e2946faf279b51 100644 (file)
@@ -15,8 +15,6 @@
 #define SDRAM_MAX_SIZE                 0xff000000
 #define CONFIG_SYS_CBSIZE              1024
 
-#define COUNTER_FREQUENCY              24000000
-
 #define CONFIG_IRAM_BASE               0xff8c0000
 
 #define CONFIG_SYS_INIT_SP_ADDR                0x00300000
index 4037dba58cc59feb8f87bc6dd277753d953af230..8e137376661bdbb3d51b60c41136c568faf12e8f 100644 (file)
@@ -10,8 +10,6 @@
 
 #define CONFIG_SYS_CBSIZE              1024
 
-#define COUNTER_FREQUENCY               24000000
-
 #define CONFIG_IRAM_BASE               0xff8c0000
 
 #define CONFIG_SYS_INIT_SP_ADDR                0x00300000
index 5649cd64e0e0b966c48b3f0bfce16f66f36b417f..e9947ea492380be0326efd971fa129baac4e3c4d 100644 (file)
@@ -10,8 +10,6 @@
 
 #define CONFIG_SYS_CBSIZE              1024
 
-#define COUNTER_FREQUENCY               24000000
-
 #define CONFIG_IRAM_BASE               0xfdcc0000
 
 #define CONFIG_SYS_INIT_SP_ADDR                0x00c00000
index 764bc1bbf2926c140af70960c9ed600c5fd17308..eb00e2b004bc222ff9a2f4460fc6f8d8c14f7425 100644 (file)
@@ -11,9 +11,6 @@
 
 #include "rcar-gen3-common.h"
 
-/* Generic Timer Definitions (use in assembler source) */
-#define COUNTER_FREQUENCY      0xFE502A        /* 16.66MHz from CPclk */
-
 /* Environment in eMMC, at the end of 2nd "boot sector" */
 
 #define CONFIG_FLASH_SHOW_PROGRESS     45
index ba57323c74b15564eec17ce0f1586af9b7b357b9..835f05d63e249ac06298862e8ce5318cc8d9befb 100644 (file)
@@ -13,9 +13,6 @@
 
 #define CONFIG_SYS_BAUDRATE_TABLE      { 115200, 230400, 460800, 921600 }
 
-/* Generic Timer Definitions */
-#define COUNTER_FREQUENCY      19000000
-
 #define CONFIG_EXTRA_ENV_SETTINGS \
        "bootm_size=0x4000000\0"        \
        "bootm_low=0x80000000\0"        \
index a99babb48b0ad2e7b766507f1c78d07222117367..346858c456cade5bf244fc0a07bd0ae4f6c82ece 100644 (file)
@@ -11,7 +11,4 @@
 
 #include "rcar-gen3-common.h"
 
-/* Generic Timer Definitions (use in assembler source) */
-#define COUNTER_FREQUENCY      0xFE502A        /* 16.66MHz from CPclk */
-
 #endif /* __SILINUX_EK874_H */
index c288d548f5b4affa36c77085ebdb90c83eba6209..3447b8f17c29b6a44337f826bfb75a13d932d3a8 100644 (file)
 #define CONFIG_SYS_NS16550_CLK         100000000
 #define CONFIG_SYS_NS16550_MEM32
 
-/*
- * Timer & watchdog configurations
- */
-#define COUNTER_FREQUENCY              400000000
-
 /*
  * SDMMC configurations
  */
index a9031035d7438a007fc2278d38de6a94b116dd1c..068340aa96499ef917b953141ed3ff504e0cd856 100644 (file)
@@ -38,7 +38,6 @@
 #endif
 
 /* CPU */
-#define COUNTER_FREQUENCY              24000000
 
 /*
  * The DRAM Base differs between some models. We cannot use macros for the
index f82b1e0d212a50b9e73471064e328ead894632b2..04772c9e4efc4536686d4860ed52b517c91747a7 100644 (file)
@@ -9,7 +9,6 @@
 
 #include "ls1088a_common.h"
 
-#define COUNTER_FREQUENCY              25000000        /* 25MHz */
 
 #define CONFIG_SYS_LS_MC_BOOT_TIMEOUT_MS 5000
 
index d07a8fe86bc60441e68ab5e982f24c8cdbcfba19..3537ba30e1f597bd029b7a94b1762710fd44f5f7 100644 (file)
@@ -20,9 +20,6 @@
 /* SMP Spin Table Definitions */
 #define CPU_RELEASE_ADDR               (CONFIG_SYS_SDRAM_BASE + 0x7fff0)
 
-/* Generic Timer Definitions */
-#define COUNTER_FREQUENCY              (0x1800000)     /* 24MHz */
-
 /* PL011 Serial Configuration */
 
 #define CONFIG_PL011_CLOCK             24000000
index c991bff0e889b8a38ce18ca89b7a8f4e7d608a82..14ea40bee3edd79f4e88105a2b13812be65a198b 100644 (file)
@@ -11,9 +11,6 @@
 
 #include "rcar-gen3-common.h"
 
-/* Generic Timer Definitions (use in assembler source) */
-#define COUNTER_FREQUENCY      0xFE502A        /* 16.66MHz from CPclk */
-
 /* Environment in eMMC, at the end of 2nd "boot sector" */
 
 #define CONFIG_FLASH_SHOW_PROGRESS     45
index 4f0ff239e685467c82b3fdf887c1284a54d1c6d5..0632b367cad88e00b929c8f8657fd628f953684f 100644 (file)
@@ -73,9 +73,6 @@
 #define V2M_SYS_CFGCTRL                        (V2M_SYSREGS + 0x0a4)
 #define V2M_SYS_CFGSTAT                        (V2M_SYSREGS + 0x0a8)
 
-/* Generic Timer Definitions */
-#define COUNTER_FREQUENCY              24000000        /* 24MHz */
-
 /* Generic Interrupt Controller Definitions */
 #ifdef CONFIG_GICV3
 #define GICD_BASE                      (V2M_PA_BASE + 0x2f000000)
index b025d2638d871e9831146553c6a36639bafc1018..b78c2429489a58f12c32189bf1a855bfe989e4d0 100644 (file)
 
 #define CONFIG_SYS_INIT_SP_ADDR                CONFIG_SYS_TEXT_BASE
 
-/* Generic Timer Definitions - setup in EL3. Setup by ATF for other cases */
-#if CONFIG_COUNTER_FREQUENCY
-# define COUNTER_FREQUENCY     CONFIG_COUNTER_FREQUENCY
-#endif
-
 /* Serial setup */
 #define CONFIG_SYS_BAUDRATE_TABLE \
        { 4800, 9600, 19200, 38400, 57600, 115200 }
index e5e700d80454d81178d6f325ee2d557b6e6edf1f..8eb44b18d20c2c95be04ee848b70bbd3a96e0072 100644 (file)
 
 #define CONFIG_SYS_INIT_SP_ADDR                CONFIG_SYS_TEXT_BASE
 
-/* Generic Timer Definitions - setup in EL3. Setup by ATF for other cases */
-#if !defined(COUNTER_FREQUENCY)
-# define COUNTER_FREQUENCY             100000000
-#endif
-
 /* Serial setup */
 #define CONFIG_SYS_BAUDRATE_TABLE \
        { 4800, 9600, 19200, 38400, 57600, 115200 }