From: Tom Rini Date: Sun, 31 Oct 2021 03:03:49 +0000 (-0400) Subject: Convert CONFIG_SYS_HZ to Kconfig X-Git-Url: http://git.dujemihanovic.xyz/img/static/gitweb.css?a=commitdiff_plain;h=1a77da4b333d25314a861d7be926848b084b8f02;p=u-boot.git Convert CONFIG_SYS_HZ to Kconfig This converts the following to Kconfig: CONFIG_SYS_HZ Signed-off-by: Tom Rini --- diff --git a/arch/arm/include/asm/arch-stv0991/stv0991_gpt.h b/arch/arm/include/asm/arch-stv0991/stv0991_gpt.h index f1d5667c32..5b12d90d58 100644 --- a/arch/arm/include/asm/arch-stv0991/stv0991_gpt.h +++ b/arch/arm/include/asm/arch-stv0991/stv0991_gpt.h @@ -36,7 +36,6 @@ struct gpt_regs *const gpt1_regs_ptr = #define GPT_FREE_RUNNING 0xFFFF /* Timer, HZ specific defines */ -#define CONFIG_SYS_HZ 1000 #define CONFIG_SYS_HZ_CLOCK ((27 * 1000 * 1000) / GPT_PRESCALER_128) #endif diff --git a/include/configs/MCR3000.h b/include/configs/MCR3000.h index 73858c56e5..bfb092ab17 100644 --- a/include/configs/MCR3000.h +++ b/include/configs/MCR3000.h @@ -60,8 +60,6 @@ /* Miscellaneous configurable options */ -#define CONFIG_SYS_HZ 1000 - /* Definitions for initial stack pointer and data area (in DPRAM) */ #define CONFIG_SYS_INIT_RAM_ADDR (CONFIG_SYS_IMMR + 0x2800) #define CONFIG_SYS_INIT_RAM_SIZE (0x2e00 - 0x2800) diff --git a/include/configs/amcore.h b/include/configs/amcore.h index 98ad047bc4..ee2df6c6cf 100644 --- a/include/configs/amcore.h +++ b/include/configs/amcore.h @@ -27,8 +27,6 @@ "erase 0xfff00000 0xffffffff; " \ "cp.b 0x20000 0xfff00000 ${filesize}\0" -#define CONFIG_SYS_HZ 1000 - #define CONFIG_SYS_CLK 45000000 #define CONFIG_SYS_CPU_CLK (CONFIG_SYS_CLK * 2) /* Register Base Addrs */ diff --git a/include/configs/ap121.h b/include/configs/ap121.h index f3fc53ba48..e23a7dc495 100644 --- a/include/configs/ap121.h +++ b/include/configs/ap121.h @@ -6,7 +6,6 @@ #ifndef __CONFIG_H #define __CONFIG_H -#define CONFIG_SYS_HZ 1000 #define CONFIG_SYS_MHZ 200 #define CONFIG_SYS_MIPS_TIMER_FREQ (CONFIG_SYS_MHZ * 1000000) diff --git a/include/configs/ap143.h b/include/configs/ap143.h index fa13a801b7..80b64da93f 100644 --- a/include/configs/ap143.h +++ b/include/configs/ap143.h @@ -6,7 +6,6 @@ #ifndef __CONFIG_H #define __CONFIG_H -#define CONFIG_SYS_HZ 1000 #define CONFIG_SYS_MHZ 325 #define CONFIG_SYS_MIPS_TIMER_FREQ (CONFIG_SYS_MHZ * 1000000) diff --git a/include/configs/ap152.h b/include/configs/ap152.h index 3eaf19283b..762cc67aa6 100644 --- a/include/configs/ap152.h +++ b/include/configs/ap152.h @@ -6,7 +6,6 @@ #ifndef __CONFIG_H #define __CONFIG_H -#define CONFIG_SYS_HZ 1000 #define CONFIG_SYS_MHZ 375 #define CONFIG_SYS_MIPS_TIMER_FREQ (CONFIG_SYS_MHZ * 1000000) diff --git a/include/configs/ci20.h b/include/configs/ci20.h index 1d4503ba53..cefc815721 100644 --- a/include/configs/ci20.h +++ b/include/configs/ci20.h @@ -10,7 +10,6 @@ #define __CONFIG_CI20_H__ /* Ingenic JZ4780 clock configuration. */ -#define CONFIG_SYS_HZ 1000 #define CONFIG_SYS_MHZ 1200 #define CONFIG_SYS_MIPS_TIMER_FREQ (CONFIG_SYS_MHZ * 1000000) diff --git a/include/configs/cl-som-imx7.h b/include/configs/cl-som-imx7.h index ebfe356eee..fe72bfd95c 100644 --- a/include/configs/cl-som-imx7.h +++ b/include/configs/cl-som-imx7.h @@ -92,8 +92,6 @@ "echo eMMC boot attempt ...; run emmcbootscript; run emmcboot; " \ "echo USB boot attempt ...; run usbbootscript; " -#define CONFIG_SYS_HZ 1000 - /* Physical Memory Map */ #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR diff --git a/include/configs/colibri_imx7.h b/include/configs/colibri_imx7.h index 344b266db9..ac188ee3ac 100644 --- a/include/configs/colibri_imx7.h +++ b/include/configs/colibri_imx7.h @@ -170,8 +170,6 @@ /* Miscellaneous configurable options */ -#define CONFIG_SYS_HZ 1000 - /* Physical Memory Map */ #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR diff --git a/include/configs/colibri_vf.h b/include/configs/colibri_vf.h index 25a772914a..71fe768d67 100644 --- a/include/configs/colibri_vf.h +++ b/include/configs/colibri_vf.h @@ -110,8 +110,6 @@ #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE -#define CONFIG_SYS_HZ 1000 - /* Physical memory map */ #define PHYS_SDRAM (0x80000000) #define PHYS_SDRAM_SIZE (256 * SZ_1M) diff --git a/include/configs/dart_6ul.h b/include/configs/dart_6ul.h index 6f861a0998..3080ae7cae 100644 --- a/include/configs/dart_6ul.h +++ b/include/configs/dart_6ul.h @@ -47,8 +47,6 @@ /* Miscellaneous configurable options */ -#define CONFIG_SYS_HZ 1000 - /* Physical Memory Map */ #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR #define PHYS_SDRAM_SIZE SZ_512M diff --git a/include/configs/display5.h b/include/configs/display5.h index 27854dfdf1..329a60f1d2 100644 --- a/include/configs/display5.h +++ b/include/configs/display5.h @@ -312,7 +312,6 @@ #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE #define CONFIG_STANDALONE_LOAD_ADDR 0x10001000 -#define CONFIG_SYS_HZ 1000 /* Physical Memory Map */ #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR diff --git a/include/configs/gazerbeam.h b/include/configs/gazerbeam.h index 12d108d6d6..ec5fc15696 100644 --- a/include/configs/gazerbeam.h +++ b/include/configs/gazerbeam.h @@ -59,7 +59,6 @@ /* * Miscellaneous configurable options */ -#define CONFIG_SYS_HZ 1000 /* decrementer freq: 1ms ticks */ #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ diff --git a/include/configs/imx6-engicam.h b/include/configs/imx6-engicam.h index 9af0a04040..238d61549c 100644 --- a/include/configs/imx6-engicam.h +++ b/include/configs/imx6-engicam.h @@ -100,8 +100,6 @@ /* Miscellaneous configurable options */ -#define CONFIG_SYS_HZ 1000 - #ifdef CONFIG_MX6UL # define DRAM_OFFSET(x) 0x87##x # define FDT_ADDR __stringify(DRAM_OFFSET(800000)) diff --git a/include/configs/imx6dl-mamoj.h b/include/configs/imx6dl-mamoj.h index 367f78d125..24f9ccc0de 100644 --- a/include/configs/imx6dl-mamoj.h +++ b/include/configs/imx6dl-mamoj.h @@ -62,8 +62,6 @@ /* Miscellaneous configurable options */ -#define CONFIG_SYS_HZ 1000 - /* Physical Memory Map */ #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR diff --git a/include/configs/imx7-cm.h b/include/configs/imx7-cm.h index 4d4c94b74e..553c7fe2ea 100644 --- a/include/configs/imx7-cm.h +++ b/include/configs/imx7-cm.h @@ -72,8 +72,6 @@ #define CONFIG_BOOTCOMMAND "run boot${boot-mode}" -#define CONFIG_SYS_HZ 1000 - /* Physical Memory Map */ #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR diff --git a/include/configs/kontron-sl-mx6ul.h b/include/configs/kontron-sl-mx6ul.h index 65aa250894..34304f9102 100644 --- a/include/configs/kontron-sl-mx6ul.h +++ b/include/configs/kontron-sl-mx6ul.h @@ -22,8 +22,6 @@ #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE -#define CONFIG_SYS_HZ 1000 - #define CONFIG_SYS_INIT_SP_OFFSET \ (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) #define CONFIG_SYS_INIT_SP_ADDR \ diff --git a/include/configs/kontron-sl-mx8mm.h b/include/configs/kontron-sl-mx8mm.h index 0d9ab3b755..52aa4473a2 100644 --- a/include/configs/kontron-sl-mx8mm.h +++ b/include/configs/kontron-sl-mx8mm.h @@ -22,8 +22,6 @@ #define CONFIG_SYS_INIT_RAM_ADDR 0x40000000 #define CONFIG_SYS_INIT_RAM_SIZE 0x200000 -#define CONFIG_SYS_HZ 1000 - #define CONFIG_SYS_INIT_SP_OFFSET \ (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) #define CONFIG_SYS_INIT_SP_ADDR \ diff --git a/include/configs/liteboard.h b/include/configs/liteboard.h index dc6f15a2a2..b2f5134fc5 100644 --- a/include/configs/liteboard.h +++ b/include/configs/liteboard.h @@ -101,7 +101,6 @@ "else run netboot; fi" /* Miscellaneous configurable options */ -#define CONFIG_SYS_HZ 1000 /* Physical Memory Map */ #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR diff --git a/include/configs/ls1012a_common.h b/include/configs/ls1012a_common.h index 8a49f2d007..d072eaab87 100644 --- a/include/configs/ls1012a_common.h +++ b/include/configs/ls1012a_common.h @@ -59,8 +59,6 @@ #define CONFIG_SYS_NS16550_REG_SIZE 1 #define CONFIG_SYS_NS16550_CLK (get_serial_clock()) -#define CONFIG_SYS_HZ 1000 - #define CONFIG_HWCONFIG #define HWCONFIG_BUFFER_SIZE 128 diff --git a/include/configs/ls1043aqds.h b/include/configs/ls1043aqds.h index 1d15f2fc58..ee5660571e 100644 --- a/include/configs/ls1043aqds.h +++ b/include/configs/ls1043aqds.h @@ -344,8 +344,6 @@ unsigned long get_board_sys_clk(void); * Miscellaneous configurable options */ -#define CONFIG_SYS_HZ 1000 - #define CONFIG_SYS_INIT_SP_OFFSET \ (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) diff --git a/include/configs/ls1046aqds.h b/include/configs/ls1046aqds.h index 2e3824041c..987df5f6e5 100644 --- a/include/configs/ls1046aqds.h +++ b/include/configs/ls1046aqds.h @@ -360,8 +360,6 @@ unsigned long get_board_sys_clk(void); * Miscellaneous configurable options */ -#define CONFIG_SYS_HZ 1000 - #define CONFIG_SYS_INIT_SP_OFFSET \ (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) diff --git a/include/configs/meerkat96.h b/include/configs/meerkat96.h index ac9a75bf2d..ab8fa85f25 100644 --- a/include/configs/meerkat96.h +++ b/include/configs/meerkat96.h @@ -14,8 +14,6 @@ #define PHYS_SDRAM_SIZE SZ_512M -#define CONFIG_SYS_HZ 1000 - /* Physical Memory Map */ #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR diff --git a/include/configs/mt7620.h b/include/configs/mt7620.h index a2de034292..5a8862775b 100644 --- a/include/configs/mt7620.h +++ b/include/configs/mt7620.h @@ -8,7 +8,6 @@ #ifndef __CONFIG_MT7620_H #define __CONFIG_MT7620_H -#define CONFIG_SYS_HZ 1000 #define CONFIG_SYS_MIPS_TIMER_FREQ 290000000 #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE diff --git a/include/configs/mt7628.h b/include/configs/mt7628.h index e53e6a0d0a..8c4455b9fe 100644 --- a/include/configs/mt7628.h +++ b/include/configs/mt7628.h @@ -8,7 +8,6 @@ #ifndef __CONFIG_MT7628_H #define __CONFIG_MT7628_H -#define CONFIG_SYS_HZ 1000 #define CONFIG_SYS_MIPS_TIMER_FREQ 290000000 #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE diff --git a/include/configs/mx6ul_14x14_evk.h b/include/configs/mx6ul_14x14_evk.h index 9ddb47910f..0b777fbbdc 100644 --- a/include/configs/mx6ul_14x14_evk.h +++ b/include/configs/mx6ul_14x14_evk.h @@ -124,8 +124,6 @@ /* Miscellaneous configurable options */ -#define CONFIG_SYS_HZ 1000 - /* Physical Memory Map */ #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR diff --git a/include/configs/mx6ullevk.h b/include/configs/mx6ullevk.h index 247d5e1bcc..e384d2a269 100644 --- a/include/configs/mx6ullevk.h +++ b/include/configs/mx6ullevk.h @@ -121,8 +121,6 @@ /* Miscellaneous configurable options */ -#define CONFIG_SYS_HZ 1000 - /* Physical Memory Map */ #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR diff --git a/include/configs/mx7dsabresd.h b/include/configs/mx7dsabresd.h index 92ce741768..f11e2e3f80 100644 --- a/include/configs/mx7dsabresd.h +++ b/include/configs/mx7dsabresd.h @@ -87,8 +87,6 @@ #include -#define CONFIG_SYS_HZ 1000 - /* Physical Memory Map */ #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR diff --git a/include/configs/mx7ulp_evk.h b/include/configs/mx7ulp_evk.h index 567a037089..6d7f09e288 100644 --- a/include/configs/mx7ulp_evk.h +++ b/include/configs/mx7ulp_evk.h @@ -112,8 +112,6 @@ "fi; " \ "fi" -#define CONFIG_SYS_HZ 1000 - #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR #define CONFIG_SYS_INIT_RAM_SIZE SZ_256K diff --git a/include/configs/mys_6ulx.h b/include/configs/mys_6ulx.h index 04c9879ccc..6801fc109e 100644 --- a/include/configs/mys_6ulx.h +++ b/include/configs/mys_6ulx.h @@ -21,8 +21,6 @@ /* MMC Configs */ #define CONFIG_SYS_FSL_ESDHC_ADDR USDHC2_BASE_ADDR -#define CONFIG_SYS_HZ 1000 - /* Physical Memory Map */ #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR #define PHYS_SDRAM_SIZE SZ_256M diff --git a/include/configs/npi_imx6ull.h b/include/configs/npi_imx6ull.h index 70e2898c14..a10607ff66 100644 --- a/include/configs/npi_imx6ull.h +++ b/include/configs/npi_imx6ull.h @@ -23,8 +23,6 @@ #define CONFIG_NETMASK 255.255.255.0 -#define CONFIG_SYS_HZ 1000 - /* Physical Memory Map */ #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR diff --git a/include/configs/omapl138_lcdk.h b/include/configs/omapl138_lcdk.h index 4227610566..f2352d8216 100644 --- a/include/configs/omapl138_lcdk.h +++ b/include/configs/omapl138_lcdk.h @@ -21,7 +21,6 @@ #define CONFIG_SYS_OSCIN_FREQ 24000000 #define CONFIG_SYS_TIMERBASE DAVINCI_TIMER0_BASE #define CONFIG_SYS_HZ_CLOCK clk_get(DAVINCI_AUXCLK_CLKID) -#define CONFIG_SYS_HZ 1000 /* * Memory Info diff --git a/include/configs/pcl063.h b/include/configs/pcl063.h index f29f6dc585..31b7d07a24 100644 --- a/include/configs/pcl063.h +++ b/include/configs/pcl063.h @@ -33,8 +33,6 @@ /* Miscellaneous configurable options */ -#define CONFIG_SYS_HZ 1000 - /* Physical Memory Map */ #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR #define PHYS_SDRAM_SIZE SZ_256M diff --git a/include/configs/pcl063_ull.h b/include/configs/pcl063_ull.h index c1da1a0119..20ba3f192b 100644 --- a/include/configs/pcl063_ull.h +++ b/include/configs/pcl063_ull.h @@ -36,8 +36,6 @@ /* Miscellaneous configurable options */ -#define CONFIG_SYS_HZ 1000 - /* Physical Memory Map */ #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR #define PHYS_SDRAM_SIZE SZ_256M diff --git a/include/configs/pico-imx6ul.h b/include/configs/pico-imx6ul.h index 6fed7522bd..250e7747e7 100644 --- a/include/configs/pico-imx6ul.h +++ b/include/configs/pico-imx6ul.h @@ -108,8 +108,6 @@ #include #include -#define CONFIG_SYS_HZ 1000 - /* Physical Memory Map */ #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR diff --git a/include/configs/pico-imx7d.h b/include/configs/pico-imx7d.h index c0464278b9..cbac950549 100644 --- a/include/configs/pico-imx7d.h +++ b/include/configs/pico-imx7d.h @@ -107,8 +107,6 @@ #include #include -#define CONFIG_SYS_HZ 1000 - /* Physical Memory Map */ #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR diff --git a/include/configs/qemu-arm.h b/include/configs/qemu-arm.h index bb4240a128..1287fd1671 100644 --- a/include/configs/qemu-arm.h +++ b/include/configs/qemu-arm.h @@ -18,7 +18,6 @@ #define CONFIG_SYS_BOOTM_LEN SZ_64M /* For timer, QEMU emulates an ARMv7/ARMv8 architected timer */ -#define CONFIG_SYS_HZ 1000 /* Environment options */ diff --git a/include/configs/s5p4418_nanopi2.h b/include/configs/s5p4418_nanopi2.h index 21feba0569..f49f5faa7f 100644 --- a/include/configs/s5p4418_nanopi2.h +++ b/include/configs/s5p4418_nanopi2.h @@ -72,7 +72,6 @@ /* Not used: not need IRQ/FIQ stuff */ #undef CONFIG_USE_IRQ /* decrementer freq: 1ms ticks */ -#define CONFIG_SYS_HZ 1000 /*----------------------------------------------------------------------- * System initialize options (board_init_f) diff --git a/include/configs/smegw01.h b/include/configs/smegw01.h index 55ca801985..bbdd42b1af 100644 --- a/include/configs/smegw01.h +++ b/include/configs/smegw01.h @@ -41,8 +41,6 @@ "run mmcboot; " \ "fi; " \ -#define CONFIG_SYS_HZ 1000 - /* Physical Memory Map */ #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR diff --git a/include/configs/somlabs_visionsom_6ull.h b/include/configs/somlabs_visionsom_6ull.h index 6af908afe6..a153c13a7c 100644 --- a/include/configs/somlabs_visionsom_6ull.h +++ b/include/configs/somlabs_visionsom_6ull.h @@ -68,8 +68,6 @@ /* Miscellaneous configurable options */ -#define CONFIG_SYS_HZ 1000 - /* Physical Memory Map */ #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR diff --git a/include/configs/synquacer.h b/include/configs/synquacer.h index 13e9c64387..aac7b5dc38 100644 --- a/include/configs/synquacer.h +++ b/include/configs/synquacer.h @@ -6,7 +6,6 @@ #define __CONFIG_H /* Timers for fasp(TIMCLK) */ -#define CONFIG_SYS_HZ 1000 /* 1 msec */ #define CONFIG_SYS_TIMERBASE 0x31080000 /* AP Timer 1 (ARM-SP804) */ /* diff --git a/include/configs/tbs2910.h b/include/configs/tbs2910.h index 0438b5ae0c..58ccafc385 100644 --- a/include/configs/tbs2910.h +++ b/include/configs/tbs2910.h @@ -12,8 +12,6 @@ /* General configuration */ -#define CONFIG_SYS_HZ 1000 - /* Physical Memory Map */ #define CONFIG_SYS_SDRAM_BASE MMDC0_ARB_BASE_ADDR diff --git a/include/configs/tplink_wdr4300.h b/include/configs/tplink_wdr4300.h index 3e76d638c9..e6dc9f17fe 100644 --- a/include/configs/tplink_wdr4300.h +++ b/include/configs/tplink_wdr4300.h @@ -6,7 +6,6 @@ #ifndef __CONFIG_H #define __CONFIG_H -#define CONFIG_SYS_HZ 1000 #define CONFIG_SYS_MHZ 280 #define CONFIG_SYS_MIPS_TIMER_FREQ (CONFIG_SYS_MHZ * 1000000) diff --git a/include/configs/warp7.h b/include/configs/warp7.h index 74fb988b76..00031d87c1 100644 --- a/include/configs/warp7.h +++ b/include/configs/warp7.h @@ -96,8 +96,6 @@ "fi; " \ "fi" -#define CONFIG_SYS_HZ 1000 - /* Physical Memory Map */ #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR diff --git a/include/configs/xpress.h b/include/configs/xpress.h index 1e2b6c0954..51fee44068 100644 --- a/include/configs/xpress.h +++ b/include/configs/xpress.h @@ -20,8 +20,6 @@ /* Miscellaneous configurable options */ -#define CONFIG_SYS_HZ 1000 - /* Physical Memory Map */ #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR #define PHYS_SDRAM_SIZE (128 << 20)