Convert COUNTER_FREQUENCY to CONFIG_COUNTER_FREQUENCY
Subsystems (11)
v4 cover Convert COUNTER_FREQUENCY to CONFIG_COUNTER_FREQUENCY
From: Peng Fan <[email protected]>
V4:
Include arm32 support. arm32 changes merged with arm64. Add missing arm64 convert
Rebased
Pass git bisect build and CI
Hope this works well
V3:
Add more help info for CONFIG_COUNTER_FREQUENCY
Drop uneeded comments
Pass git bisect build
Rebased
V2:
Drop imx93 which is wrongly included
This patchset is to convert COUNTER_FREQUENCY to CONFIG_COUNTER_FREQUENCY for arm64. arm32 is not included for now, this could be in following up patches if this patchset is accepted.
This patchset touches lots of boards, so please help review.
Peng Fan (6):
xilinx: versal: board: use CONFIG_COUNTER_FREQUENCY
arch: arm: move COUNTER_FREQUENCY from versal to arm
arch: arm: Kconfig: set default COUNTER_FREQUENCY
configs: set CONFIG_COUNTER_FREQUENCY include/configs: drop COUNTER_FREQUENCY
arm: set cntfrq_el0 if CONFIG_COUNTER_FREQUENCY is valid
arch/arm/Kconfig | 17 +++++++++++++++++ arch/arm/cpu/armv7/ls102xa/psci.S | 2 +- arch/arm/cpu/armv7/ls102xa/timer.c | 2 +- arch/arm/cpu/armv7/nonsec_virt.S | 4 ++-- arch/arm/cpu/armv7/sunxi/psci.c | 2 +- arch/arm/cpu/armv8/fsl-layerscape/spintable.S | 2 +- arch/arm/cpu/armv8/start.S | 4 ++-- arch/arm/mach-rockchip/rk3036-board-spl.c | 2 +- arch/arm/mach-rockchip/spl.c | 2 +- arch/arm/mach-rockchip/tpl.c | 2 +- arch/arm/mach-versal/Kconfig | 6 ------ board/sunxi/board.c | 6 +++--- board/xilinx/versal/board.c | 2 +- configs/a3y17lte_defconfig | 1 + configs/a5y17lte_defconfig | 1 + configs/a7y17lte_defconfig | 1 + configs/apalis-imx8_defconfig | 1 + configs/apalis-imx8x_defconfig | 1 + configs/bubblegum_96_defconfig | 1 + configs/cgtqmx8_defconfig | 1 + configs/colibri-imx8x_defconfig | 1 + configs/cortina_presidio-asic-base_defconfig | 1 + configs/cortina_presidio-asic-emmc_defconfig | 1 + configs/cortina_presidio-asic-pnand_defconfig | 1 + configs/cubieboard7_defconfig | 1 + configs/deneb_defconfig | 1 + configs/dragonboard410c_defconfig | 1 + configs/dragonboard820c_defconfig | 1 + configs/espresso7420_defconfig | 1 + configs/evb-px30_defconfig | 1 + configs/evb-px5_defconfig | 1 + configs/evb-rk3308_defconfig | 1 + configs/evb-rk3328_defconfig | 1 + configs/evb-rk3399_defconfig | 1 + configs/evb-rk3568_defconfig | 1 + configs/firefly-px30_defconfig | 1 + configs/firefly-rk3399_defconfig | 1 + configs/hihope_rzg2_defconfig | 1 + configs/hikey960_defconfig | 1 + configs/hikey_defconfig | 1 + configs/imx8qm_mek_defconfig | 1 + configs/imx8qm_rom7720_a1_4G_defconfig | 1 + configs/imx8qxp_mek_defconfig | 1 + configs/khadas-edge-captain-rk3399_defconfig | 1 + configs/khadas-edge-rk3399_defconfig | 1 + configs/khadas-edge-v-rk3399_defconfig | 1 + configs/kontron_sl28_defconfig | 1 + configs/leez-rk3399_defconfig | 1 + configs/ls1012a2g5rdb_qspi_defconfig | 1 + configs/ls1012a2g5rdb_tfa_defconfig | 1 + configs/ls1021aiot_qspi_defconfig | 1 + configs/ls1021aiot_sdcard_defconfig | 1 + configs/ls1021aqds_ddr4_nor_defconfig | 1 + configs/ls1021aqds_ddr4_nor_lpuart_defconfig | 1 + configs/ls1021aqds_nand_defconfig | 1 + configs/ls1021aqds_nor_SECURE_BOOT_defconfig | 1 + configs/ls1021aqds_nor_defconfig | 1 + configs/ls1021aqds_nor_lpuart_defconfig | 1 + configs/ls1021aqds_qspi_defconfig | 1 + configs/ls1021aqds_sdcard_ifc_defconfig | 1 + configs/ls1021aqds_sdcard_qspi_defconfig | 1 + configs/ls1021atsn_qspi_defconfig | 1 + configs/ls1021atsn_sdcard_defconfig | 1 + configs/ls1021atwr_nor_SECURE_BOOT_defconfig | 1 + configs/ls1021atwr_nor_defconfig | 1 + configs/ls1021atwr_nor_lpuart_defconfig | 1 + configs/ls1021atwr_qspi_defconfig | 1 + .../ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig | 1 + configs/ls1021atwr_sdcard_ifc_defconfig | 1 + configs/ls1021atwr_sdcard_qspi_defconfig | 1 + configs/ls1043aqds_defconfig | 1 + configs/ls1043aqds_lpuart_defconfig | 1 + configs/ls1043aqds_nand_defconfig | 1 + configs/ls1043aqds_nor_ddr3_defconfig | 1 + configs/ls1043aqds_qspi_defconfig | 1 + configs/ls1043aqds_sdcard_ifc_defconfig | 1 + configs/ls1043aqds_sdcard_qspi_defconfig | 1 + configs/ls1043aqds_tfa_SECURE_BOOT_defconfig | 1 + configs/ls1043aqds_tfa_defconfig | 1 + configs/ls1046afrwy_tfa_SECURE_BOOT_defconfig | 1 + configs/ls1046afrwy_tfa_defconfig | 1 + configs/ls1088ardb_qspi_SECURE_BOOT_defconfig | 1 + configs/ls1088ardb_qspi_defconfig | 1 + ...ls1088ardb_sdcard_qspi_SECURE_BOOT_defconfig | 1 + configs/ls1088ardb_sdcard_qspi_defconfig | 1 + configs/ls1088ardb_tfa_SECURE_BOOT_defconfig | 1 + configs/ls1088ardb_tfa_defconfig | 1 + configs/mt8183_pumpkin_defconfig | 1 + configs/mt8512_bm1_emmc_defconfig | 1 + configs/mt8516_pumpkin_defconfig | 1 + configs/mt8518_ap1_emmc_defconfig | 1 + configs/nanopc-t4-rk3399_defconfig | 1 + configs/nanopi-m4-2gb-rk3399_defconfig | 1 + configs/nanopi-m4-rk3399_defconfig | 1 + configs/nanopi-m4b-rk3399_defconfig | 1 + configs/nanopi-neo4-rk3399_defconfig | 1 + configs/nanopi-r2s-rk3328_defconfig | 1 + configs/nanopi-r4s-rk3399_defconfig | 1 + configs/orangepi-rk3399_defconfig | 1 + configs/p2371-2180_defconfig | 1 + configs/p2771-0000-000_defconfig | 1 + configs/p2771-0000-500_defconfig | 1 + configs/p3450-0000_defconfig | 1 + configs/pg_wcom_expu1_defconfig | 1 + configs/pg_wcom_expu1_update_defconfig | 1 + configs/pg_wcom_seli8_defconfig | 1 + configs/pg_wcom_seli8_update_defconfig | 1 + configs/r8a77970_eagle_defconfig | 1 + configs/r8a77980_condor_defconfig | 1 + configs/r8a77990_ebisu_defconfig | 1 + configs/r8a77995_draak_defconfig | 1 + configs/r8a779a0_falcon_defconfig | 1 + configs/rcar3_salvator-x_defconfig | 1 + configs/rcar3_ulcb_defconfig | 1 + configs/roc-cc-rk3328_defconfig | 1 + configs/rock-pi-4-rk3399_defconfig | 1 + configs/rock-pi-4c-rk3399_defconfig | 1 + configs/rock-pi-e-rk3328_defconfig | 1 + configs/rock-pi-n10-rk3399pro_defconfig | 1 + configs/rock64-rk3328_defconfig | 1 + configs/silinux_ek874_defconfig | 1 + configs/socfpga_agilex_atf_defconfig | 1 + configs/socfpga_agilex_defconfig | 1 + configs/socfpga_agilex_vab_defconfig | 1 + configs/starqltechn_defconfig | 1 + configs/ten64_tfa_defconfig | 1 + configs/thunderx_88xx_defconfig | 1 + configs/vexpress_aemv8a_juno_defconfig | 1 + configs/vexpress_aemv8a_semi_defconfig | 1 + configs/vexpress_aemv8r_defconfig | 1 + include/configs/apalis-imx8.h | 3 --- include/configs/apalis-imx8x.h | 3 --- include/configs/capricorn-common.h | 3 --- include/configs/cgtqmx8.h | 3 --- include/configs/colibri-imx8x.h | 1 - include/configs/condor.h | 3 --- include/configs/draak.h | 3 --- include/configs/dragonboard410c.h | 3 --- include/configs/dragonboard820c.h | 3 --- include/configs/eagle.h | 3 --- include/configs/ebisu.h | 3 --- include/configs/exynos-common.h | 1 - include/configs/exynos7420-common.h | 3 --- include/configs/exynos78x0-common.h | 3 --- include/configs/falcon.h | 3 --- include/configs/hihope-rzg2.h | 3 --- include/configs/hikey.h | 3 --- include/configs/hikey960.h | 3 --- include/configs/imx8qm_mek.h | 3 --- include/configs/imx8qm_rom7720.h | 3 --- include/configs/imx8qxp_mek.h | 3 --- include/configs/kontron_sl28.h | 1 - include/configs/ls1012a_common.h | 3 --- include/configs/ls1021aiot.h | 1 - include/configs/ls1021aqds.h | 1 - include/configs/ls1021atsn.h | 1 - include/configs/ls1021atwr.h | 1 - include/configs/ls1028a_common.h | 3 --- include/configs/ls1043a_common.h | 3 --- include/configs/ls1046a_common.h | 3 --- include/configs/ls1088aqds.h | 1 - include/configs/ls1088ardb.h | 1 - include/configs/ls2080a_common.h | 2 -- include/configs/lx2160a_common.h | 1 - include/configs/mt8183.h | 1 - include/configs/mt8512.h | 1 - include/configs/mt8516.h | 1 - include/configs/mt8518.h | 1 - include/configs/mx6_common.h | 1 - include/configs/mx7_common.h | 1 - include/configs/owl-common.h | 3 --- include/configs/p2371-2180.h | 3 --- include/configs/p2771-0000.h | 3 --- include/configs/p3450-0000.h | 3 --- include/configs/presidio_asic.h | 3 +-- include/configs/px30_common.h | 1 - include/configs/rk3036_common.h | 1 - include/configs/rk3128_common.h | 1 - include/configs/rk322x_common.h | 1 - include/configs/rk3288_common.h | 1 - include/configs/rk3308_common.h | 1 - include/configs/rk3328_common.h | 1 - include/configs/rk3368_common.h | 1 - include/configs/rk3399_common.h | 1 - include/configs/rk3568_common.h | 1 - include/configs/salvator-x.h | 3 --- include/configs/sdm845.h | 3 --- include/configs/silinux-ek874.h | 3 --- include/configs/socfpga_soc64_common.h | 5 ----- include/configs/sunxi-common.h | 1 - include/configs/ten64.h | 1 - include/configs/thunderx_88xx.h | 3 --- include/configs/ulcb.h | 3 --- include/configs/vexpress_aemv8.h | 3 --- include/configs/xilinx_versal.h | 5 ----- include/configs/xilinx_zynqmp.h | 5 ----- 196 files changed, 150 insertions(+), 167 deletions(-)
Signature · 1 line
2.35.1
PATCH v4 1/6 xilinx: versal: board: use CONFIG_COUNTER_FREQUENCY
From: Peng Fan <[email protected]>
Since versal has CONFIG_COUNTER_FREQUENCY, so use it. And COUNTER_FREQUENCY will be dropped.
--- board/xilinx/versal/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
board/xilinx/versal/board.c +1 -1
@@ -74,7 +74,7 @@ int board_early_init_r(void)* Program freq register in System counter and * enable system counter. */ -writel (COUNTER_FREQUENCY , +writel (CONFIG_COUNTER_FREQUENCY , &iou_scntr_secure->base_frequency_id_register); debug("counter val 0x%x\n",
Signature · 1 line
2.35.1
Re: [PATCH V4 1/6] xilinx: versal: board: use CONFIG_COUNTER_FREQUENCY
Quoted 7 lines · Peng Fan (OSS)
From: Peng Fan <[email protected]>
Since versal has
CONFIG_COUNTER_FREQUENCY, so use it. AndCOUNTER_FREQUENCYwill be dropped.Signed-off-by Peng Fan <[email protected]>Reviewed-by Michal Simek <[email protected]>
Applied to u-boot/master, thanks!
Signature · 1 line
Tom
PATCH v4 2/6 arch: arm: move COUNTER_FREQUENCY from versal to arm
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Make COUNTER_FREQUENCY usable to armv8 and armv7-a, not limited to versal. And update help message.
--- arch/arm/Kconfig | 12 ++++++++++++ arch/arm/mach-versal/Kconfig | 6 ------ 2 files changed, 12 insertions(+), 6 deletions(-)
arch/arm/Kconfig +12 -0
@@ -19,6 +19,18 @@ config ARM64_CRC32 not be present on all ARMv8.0, but is always present on ARMv8.1 and newer. +config COUNTER_FREQUENCY + int "Timer clock frequency" + depends on ARM64 || CPU_V7A + default 0 + help + For platforms with ARMv8-A and ARMv7-A which features a system + counter, those platforms needs software to program the counter + frequency. Setup time clock frequency for certain platform. + 0 means no need to configure the system counter frequency. + For platforms needs the frequency set in U-Boot with a + pre-defined value, should have the macro defined as a non-zero value. + config POSITION_INDEPENDENT bool "Generate position-independent pre-relocation code" depends on ARM64 || CPU_V7A
arch/arm/mach-versal/Kconfig +0 -6
@@ -24,12 +24,6 @@ config SYS_CONFIG_NAME config SYS_MALLOC_LEN default 0x2000000 -config COUNTER_FREQUENCY - int "Timer clock frequency" - default 0 - help - Setup time clock frequency for certain platform - config ZYNQ_SDHCI_MAX_FREQ default 200000000
Signature · 1 line
2.35.1
Re: [PATCH V4 2/6] arch: arm: move COUNTER_FREQUENCY from versal to arm
Quoted 6 lines · Peng Fan (OSS)
From: Peng Fan <[email protected]>
Make
COUNTER_FREQUENCYusable to armv8 and armv7-a, not limited to versal. And update help message.Signed-off-by Peng Fan <[email protected]>
Applied to u-boot/master, thanks!
Signature · 1 line
Tom
PATCH v4 3/6 arch: arm: Kconfig: set default COUNTER_FREQUENCY
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Set default COUNTER_FREQUENCY according to config header file under include/configs/
i.MX6UL/ULL/7D/8QM/8QXP all has system counter frequency run at 8MHz, so set default value for them. SUNXI/EXYNOS/ROCKCHIP_RK3128/ROCKCHIP_RK3288/ROCKCHIP_RK322X/ROCKCHIP_RK3036 at 24MHz. ARCH_LX2160A at 25MHzARCH_ZYNQMP at 100MHz
--- arch/arm/Kconfig | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm/Kconfig +5 -0
@@ -22,6 +22,11 @@ config ARM64_CRC32 config COUNTER_FREQUENCY int "Timer clock frequency" depends on ARM64 || CPU_V7A + default 8000000 if IMX8 || MX7 || MX6UL || MX6ULL + default 24000000 if ARCH_SUNXI || ARCH_EXYNOS || ROCKCHIP_RK3128 || \ + ROCKCHIP_RK3288 || ROCKCHIP_RK322X || ROCKCHIP_RK3036 + default 25000000 if ARCH_LX2160A || ARCH_LX2162A || ARCH_LS1088A + default 100000000 if ARCH_ZYNQMP default 0 help For platforms with ARMv8-A and ARMv7-A which features a system
Signature · 1 line
2.35.1
Re: [PATCH V4 3/6] arch: arm: Kconfig: set default COUNTER_FREQUENCY
Quoted 9 lines · Peng Fan (OSS)
From: Peng Fan <[email protected]>
Set default
COUNTER_FREQUENCYaccording to config header file underinclude/configs/
i.MX6UL/ULL/7D/8QM/8QXP all has system counter frequency run at 8MHz, so set default value for them. SUNXI/EXYNOS/ROCKCHIP_RK3128/ROCKCHIP_RK3288/ROCKCHIP_RK322X/ROCKCHIP_RK3036 at 24MHz.ARCH_LX2160Aat 25MHzARCH_ZYNQMPat 100MHz
Applied to u-boot/master, thanks!
Signature · 1 line
Tom
PATCH v4 4/6 configs: set CONFIG_COUNTER_FREQUENCY
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Set CONFIG_COUNTER_FREQUENCY according to COUNTER_FREQUENCY in config header file.
--- configs/a3y17lte_defconfig | 1 + configs/a5y17lte_defconfig | 1 + configs/a7y17lte_defconfig | 1 + configs/apalis-imx8_defconfig | 1 + configs/apalis-imx8x_defconfig | 1 + configs/bubblegum_96_defconfig | 1 + configs/cgtqmx8_defconfig | 1 + configs/colibri-imx8x_defconfig | 1 + configs/cortina_presidio-asic-base_defconfig | 1 + configs/cortina_presidio-asic-emmc_defconfig | 1 + configs/cortina_presidio-asic-pnand_defconfig | 1 + configs/cubieboard7_defconfig | 1 + configs/deneb_defconfig | 1 + configs/dragonboard410c_defconfig | 1 + configs/dragonboard820c_defconfig | 1 + configs/espresso7420_defconfig | 1 + configs/evb-px30_defconfig | 1 + configs/evb-px5_defconfig | 1 + configs/evb-rk3308_defconfig | 1 + configs/evb-rk3328_defconfig | 1 + configs/evb-rk3399_defconfig | 1 + configs/evb-rk3568_defconfig | 1 + configs/firefly-px30_defconfig | 1 + configs/firefly-rk3399_defconfig | 1 + configs/hihope_rzg2_defconfig | 1 + configs/hikey960_defconfig | 1 + configs/hikey_defconfig | 1 + configs/imx8qm_mek_defconfig | 1 + configs/imx8qm_rom7720_a1_4G_defconfig | 1 + configs/imx8qxp_mek_defconfig | 1 + configs/khadas-edge-captain-rk3399_defconfig | 1 + configs/khadas-edge-rk3399_defconfig | 1 + configs/khadas-edge-v-rk3399_defconfig | 1 + configs/kontron_sl28_defconfig | 1 + configs/leez-rk3399_defconfig | 1 + configs/ls1012a2g5rdb_qspi_defconfig | 1 + configs/ls1012a2g5rdb_tfa_defconfig | 1 + configs/ls1021aiot_qspi_defconfig | 1 + configs/ls1021aiot_sdcard_defconfig | 1 + configs/ls1021aqds_ddr4_nor_defconfig | 1 + configs/ls1021aqds_ddr4_nor_lpuart_defconfig | 1 + configs/ls1021aqds_nand_defconfig | 1 + configs/ls1021aqds_nor_SECURE_BOOT_defconfig | 1 + configs/ls1021aqds_nor_defconfig | 1 + configs/ls1021aqds_nor_lpuart_defconfig | 1 + configs/ls1021aqds_qspi_defconfig | 1 + configs/ls1021aqds_sdcard_ifc_defconfig | 1 + configs/ls1021aqds_sdcard_qspi_defconfig | 1 + configs/ls1021atsn_qspi_defconfig | 1 + configs/ls1021atsn_sdcard_defconfig | 1 + configs/ls1021atwr_nor_SECURE_BOOT_defconfig | 1 + configs/ls1021atwr_nor_defconfig | 1 + configs/ls1021atwr_nor_lpuart_defconfig | 1 + configs/ls1021atwr_qspi_defconfig | 1 + configs/ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig | 1 + configs/ls1021atwr_sdcard_ifc_defconfig | 1 + configs/ls1021atwr_sdcard_qspi_defconfig | 1 + configs/ls1043aqds_defconfig | 1 + configs/ls1043aqds_lpuart_defconfig | 1 + configs/ls1043aqds_nand_defconfig | 1 + configs/ls1043aqds_nor_ddr3_defconfig | 1 + configs/ls1043aqds_qspi_defconfig | 1 + configs/ls1043aqds_sdcard_ifc_defconfig | 1 + configs/ls1043aqds_sdcard_qspi_defconfig | 1 + configs/ls1043aqds_tfa_SECURE_BOOT_defconfig | 1 + configs/ls1043aqds_tfa_defconfig | 1 + configs/ls1046afrwy_tfa_SECURE_BOOT_defconfig | 1 + configs/ls1046afrwy_tfa_defconfig | 1 + configs/ls1088ardb_qspi_SECURE_BOOT_defconfig | 1 + configs/ls1088ardb_qspi_defconfig | 1 + configs/ls1088ardb_sdcard_qspi_SECURE_BOOT_defconfig | 1 + configs/ls1088ardb_sdcard_qspi_defconfig | 1 + configs/ls1088ardb_tfa_SECURE_BOOT_defconfig | 1 + configs/ls1088ardb_tfa_defconfig | 1 + configs/mt8183_pumpkin_defconfig | 1 + configs/mt8512_bm1_emmc_defconfig | 1 + configs/mt8516_pumpkin_defconfig | 1 + configs/mt8518_ap1_emmc_defconfig | 1 + configs/nanopc-t4-rk3399_defconfig | 1 + configs/nanopi-m4-2gb-rk3399_defconfig | 1 + configs/nanopi-m4-rk3399_defconfig | 1 + configs/nanopi-m4b-rk3399_defconfig | 1 + configs/nanopi-neo4-rk3399_defconfig | 1 + configs/nanopi-r2s-rk3328_defconfig | 1 + configs/nanopi-r4s-rk3399_defconfig | 1 + configs/orangepi-rk3399_defconfig | 1 + configs/p2371-2180_defconfig | 1 + configs/p2771-0000-000_defconfig | 1 + configs/p2771-0000-500_defconfig | 1 + configs/p3450-0000_defconfig | 1 + configs/pg_wcom_expu1_defconfig | 1 + configs/pg_wcom_expu1_update_defconfig | 1 + configs/pg_wcom_seli8_defconfig | 1 + configs/pg_wcom_seli8_update_defconfig | 1 + configs/r8a77970_eagle_defconfig | 1 + configs/r8a77980_condor_defconfig | 1 + configs/r8a77990_ebisu_defconfig | 1 + configs/r8a77995_draak_defconfig | 1 + configs/r8a779a0_falcon_defconfig | 1 + configs/rcar3_salvator-x_defconfig | 1 + configs/rcar3_ulcb_defconfig | 1 + configs/roc-cc-rk3328_defconfig | 1 + configs/rock-pi-4-rk3399_defconfig | 1 + configs/rock-pi-4c-rk3399_defconfig | 1 + configs/rock-pi-e-rk3328_defconfig | 1 + configs/rock-pi-n10-rk3399pro_defconfig | 1 + configs/rock64-rk3328_defconfig | 1 + configs/silinux_ek874_defconfig | 1 + configs/socfpga_agilex_atf_defconfig | 1 + configs/socfpga_agilex_defconfig | 1 + configs/socfpga_agilex_vab_defconfig | 1 + configs/starqltechn_defconfig | 1 + configs/ten64_tfa_defconfig | 1 + configs/thunderx_88xx_defconfig | 1 + configs/vexpress_aemv8a_juno_defconfig | 1 + configs/vexpress_aemv8a_semi_defconfig | 1 + configs/vexpress_aemv8r_defconfig | 1 + 117 files changed, 117 insertions(+)
configs/a3y17lte_defconfig +1 -0
@@ -1,6 +1,7 @@ CONFIG_ARM=y CONFIG_SYS_CONFIG_NAME="exynos78x0-common" CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=26000000 CONFIG_ARCH_EXYNOS=y CONFIG_SYS_TEXT_BASE=0x40001000 CONFIG_ARCH_EXYNOS7=y
configs/a5y17lte_defconfig +1 -0
@@ -1,6 +1,7 @@ CONFIG_ARM=y CONFIG_SYS_CONFIG_NAME="exynos78x0-common" CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=26000000 CONFIG_ARCH_EXYNOS=y CONFIG_SYS_TEXT_BASE=0x40001000 CONFIG_ARCH_EXYNOS7=y
configs/a7y17lte_defconfig +1 -0
@@ -1,6 +1,7 @@ CONFIG_ARM=y CONFIG_SYS_CONFIG_NAME="exynos78x0-common" CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=26000000 CONFIG_ARCH_EXYNOS=y CONFIG_SYS_TEXT_BASE=0x40001000 CONFIG_ARCH_EXYNOS7=y
configs/apalis-imx8_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=8000000 CONFIG_ARCH_IMX8=y CONFIG_SYS_TEXT_BASE=0x80020000 CONFIG_SYS_MALLOC_LEN=0x2800000
configs/apalis-imx8x_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=8000000 CONFIG_ARCH_IMX8=y CONFIG_SYS_TEXT_BASE=0x80020000 CONFIG_SYS_MALLOC_LEN=0x2800000
configs/bubblegum_96_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_OWL=y CONFIG_SYS_MALLOC_LEN=0x2000000 CONFIG_ENV_SIZE=0x2000
configs/cgtqmx8_defconfig +1 -0
@@ -1,6 +1,7 @@ CONFIG_ARM=y CONFIG_SPL_SYS_ICACHE_OFF=y CONFIG_SPL_SYS_DCACHE_OFF=y +CONFIG_COUNTER_FREQUENCY=8000000 CONFIG_ARCH_IMX8=y CONFIG_SYS_TEXT_BASE=0x80020000 CONFIG_SYS_MALLOC_LEN=0x2400000
configs/colibri-imx8x_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=8000000 CONFIG_ARCH_IMX8=y CONFIG_SYS_TEXT_BASE=0x80020000 CONFIG_SYS_MALLOC_LEN=0x2800000
configs/cortina_presidio-asic-base_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=25000000 # CONFIG_SYS_ARCH_TIMER is not set CONFIG_TARGET_PRESIDIO_ASIC=y CONFIG_SYS_TEXT_BASE=0x04000000
configs/cortina_presidio-asic-emmc_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=25000000 # CONFIG_SYS_ARCH_TIMER is not set CONFIG_TARGET_PRESIDIO_ASIC=y CONFIG_SYS_TEXT_BASE=0x04000000
configs/cortina_presidio-asic-pnand_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=25000000 # CONFIG_SYS_ARCH_TIMER is not set CONFIG_TARGET_PRESIDIO_ASIC=y CONFIG_SYS_TEXT_BASE=0x04000000
configs/cubieboard7_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_OWL=y CONFIG_SYS_MALLOC_LEN=0x2000000 CONFIG_DEFAULT_DEVICE_TREE="s700-cubieboard7"
configs/deneb_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=8000000 CONFIG_ARCH_IMX8=y CONFIG_SYS_TEXT_BASE=0x80020000 CONFIG_SYS_MALLOC_LEN=0x2800000
configs/dragonboard410c_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=19000000 CONFIG_ARCH_SNAPDRAGON=y CONFIG_SYS_TEXT_BASE=0x8f600000 CONFIG_SYS_MALLOC_LEN=0x802000
configs/dragonboard820c_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=19000000 CONFIG_ARCH_SNAPDRAGON=y CONFIG_SYS_TEXT_BASE=0x80080000 CONFIG_SYS_MALLOC_LEN=0x804000
configs/espresso7420_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_EXYNOS=y CONFIG_SYS_TEXT_BASE=0x43E00000
configs/evb-px30_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00200000 CONFIG_SYS_MALLOC_F_LEN=0x2000
configs/evb-px5_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00200000 CONFIG_NR_DRAM_BANKS=1
configs/evb-rk3308_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00600000 CONFIG_SYS_MALLOC_F_LEN=0x2000
configs/evb-rk3328_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00200000 CONFIG_NR_DRAM_BANKS=1
configs/evb-rk3399_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00200000 CONFIG_NR_DRAM_BANKS=1
configs/evb-rk3568_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00a00000 CONFIG_SPL_LIBCOMMON_SUPPORT=y
configs/firefly-px30_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00200000 CONFIG_SYS_MALLOC_F_LEN=0x2000
configs/firefly-rk3399_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00200000 CONFIG_NR_DRAM_BANKS=1
configs/hihope_rzg2_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=16666666 CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_RMOBILE=y CONFIG_SYS_TEXT_BASE=0x50000000
configs/hikey960_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=19000000 CONFIG_TARGET_HIKEY960=y CONFIG_SYS_TEXT_BASE=0x1ac98000 CONFIG_SYS_MALLOC_LEN=0x801000
configs/hikey_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=19000000 CONFIG_SYS_TEXT_BASE=0x35000000 CONFIG_SYS_MALLOC_LEN=0x801000 CONFIG_SYS_MALLOC_F_LEN=0x2000
configs/imx8qm_mek_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=8000000 CONFIG_ARCH_IMX8=y CONFIG_SYS_TEXT_BASE=0x80020000 CONFIG_SYS_MALLOC_LEN=0x2400000
configs/imx8qm_rom7720_a1_4G_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=8000000 CONFIG_ARCH_IMX8=y CONFIG_SYS_TEXT_BASE=0x80020000 CONFIG_SYS_MALLOC_LEN=0x2800000
configs/imx8qxp_mek_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=8000000 CONFIG_ARCH_IMX8=y CONFIG_SYS_TEXT_BASE=0x80020000 CONFIG_SYS_MALLOC_LEN=0x2400000
configs/khadas-edge-captain-rk3399_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00200000 CONFIG_NR_DRAM_BANKS=1
configs/khadas-edge-rk3399_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00200000 CONFIG_NR_DRAM_BANKS=1
configs/khadas-edge-v-rk3399_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00200000 CONFIG_NR_DRAM_BANKS=1
configs/kontron_sl28_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=25000000 CONFIG_TARGET_SL28=y CONFIG_SYS_MALLOC_LEN=0x202000 CONFIG_SYS_MALLOC_F_LEN=0x4000
configs/leez-rk3399_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00200000 CONFIG_NR_DRAM_BANKS=1
configs/ls1012a2g5rdb_qspi_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=25000000 CONFIG_TARGET_LS1012A2G5RDB=y CONFIG_SYS_TEXT_BASE=0x40100000 CONFIG_SYS_MALLOC_LEN=0x500000
configs/ls1012a2g5rdb_tfa_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=25000000 CONFIG_TARGET_LS1012A2G5RDB=y CONFIG_TFABOOT=y CONFIG_SYS_TEXT_BASE=0x82000000
configs/ls1021aiot_qspi_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=12500000 CONFIG_TARGET_LS1021AIOT=y CONFIG_SYS_TEXT_BASE=0x40010000 CONFIG_SYS_MALLOC_LEN=0x1002000
configs/ls1021aiot_sdcard_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=12500000 CONFIG_TARGET_LS1021AIOT=y CONFIG_SYS_TEXT_BASE=0x82000000 CONFIG_SYS_MALLOC_LEN=0x1002000
configs/ls1021aqds_ddr4_nor_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=12500000 CONFIG_TARGET_LS1021AQDS=y CONFIG_SYS_TEXT_BASE=0x60100000 CONFIG_SYS_MALLOC_LEN=0x1002000
configs/ls1021aqds_ddr4_nor_lpuart_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=12500000 CONFIG_TARGET_LS1021AQDS=y CONFIG_SYS_TEXT_BASE=0x60100000 CONFIG_SYS_MALLOC_LEN=0x1002000
configs/ls1021aqds_nand_defconfig +1 -0
@@ -1,6 +1,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_SPL_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=12500000 CONFIG_TARGET_LS1021AQDS=y CONFIG_SYS_TEXT_BASE=0x82000000 CONFIG_SYS_MALLOC_LEN=0x1002000
configs/ls1021aqds_nor_SECURE_BOOT_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=12500000 CONFIG_TARGET_LS1021AQDS=y CONFIG_SYS_TEXT_BASE=0x60100000 CONFIG_SYS_MALLOC_LEN=0x1002000
configs/ls1021aqds_nor_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=12500000 CONFIG_TARGET_LS1021AQDS=y CONFIG_SYS_TEXT_BASE=0x60100000 CONFIG_SYS_MALLOC_LEN=0x1002000
configs/ls1021aqds_nor_lpuart_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=12500000 CONFIG_TARGET_LS1021AQDS=y CONFIG_SYS_TEXT_BASE=0x60100000 CONFIG_SYS_MALLOC_LEN=0x1002000
configs/ls1021aqds_qspi_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=12500000 CONFIG_TARGET_LS1021AQDS=y CONFIG_SYS_TEXT_BASE=0x40100000 CONFIG_SYS_MALLOC_LEN=0x1002000
configs/ls1021aqds_sdcard_ifc_defconfig +1 -0
@@ -1,6 +1,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_SPL_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=12500000 CONFIG_TARGET_LS1021AQDS=y CONFIG_SYS_TEXT_BASE=0x82000000 CONFIG_SYS_MALLOC_LEN=0x1002000
configs/ls1021aqds_sdcard_qspi_defconfig +1 -0
@@ -1,6 +1,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_SPL_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=12500000 CONFIG_TARGET_LS1021AQDS=y CONFIG_SYS_TEXT_BASE=0x82000000 CONFIG_SYS_MALLOC_LEN=0x1002000
configs/ls1021atsn_qspi_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=12500000 CONFIG_TARGET_LS1021ATSN=y CONFIG_SYS_TEXT_BASE=0x40100000 CONFIG_SYS_MALLOC_LEN=0x1002000
configs/ls1021atsn_sdcard_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=12500000 CONFIG_TARGET_LS1021ATSN=y CONFIG_SYS_TEXT_BASE=0x82000000 CONFIG_SYS_MALLOC_LEN=0x1020000
configs/ls1021atwr_nor_SECURE_BOOT_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=12500000 CONFIG_TARGET_LS1021ATWR=y CONFIG_SYS_TEXT_BASE=0x60100000 CONFIG_SYS_MALLOC_LEN=0x1020000
configs/ls1021atwr_nor_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=12500000 CONFIG_TARGET_LS1021ATWR=y CONFIG_SYS_TEXT_BASE=0x60100000 CONFIG_SYS_MALLOC_LEN=0x1020000
configs/ls1021atwr_nor_lpuart_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=12500000 CONFIG_TARGET_LS1021ATWR=y CONFIG_SYS_TEXT_BASE=0x60100000 CONFIG_SYS_MALLOC_LEN=0x1020000
configs/ls1021atwr_qspi_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=12500000 CONFIG_TARGET_LS1021ATWR=y CONFIG_SYS_TEXT_BASE=0x40100000 CONFIG_SYS_MALLOC_LEN=0x1002000
configs/ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig +1 -0
@@ -1,6 +1,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_SPL_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=12500000 CONFIG_TARGET_LS1021ATWR=y CONFIG_SYS_TEXT_BASE=0x82000000 CONFIG_SYS_MALLOC_LEN=0x1020000
configs/ls1021atwr_sdcard_ifc_defconfig +1 -0
@@ -1,6 +1,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_SPL_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=12500000 CONFIG_TARGET_LS1021ATWR=y CONFIG_SYS_TEXT_BASE=0x82000000 CONFIG_SYS_MALLOC_LEN=0x1020000
configs/ls1021atwr_sdcard_qspi_defconfig +1 -0
@@ -1,6 +1,7 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_SPL_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=12500000 CONFIG_TARGET_LS1021ATWR=y CONFIG_SYS_TEXT_BASE=0x82000000 CONFIG_SYS_MALLOC_LEN=0x1020000
configs/ls1043aqds_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=25000000 CONFIG_TARGET_LS1043AQDS=y CONFIG_SYS_TEXT_BASE=0x60100000 CONFIG_SYS_MALLOC_LEN=0x120000
configs/ls1043aqds_lpuart_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=25000000 CONFIG_TARGET_LS1043AQDS=y CONFIG_SYS_TEXT_BASE=0x60100000 CONFIG_SYS_MALLOC_LEN=0x120000
configs/ls1043aqds_nand_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=25000000 CONFIG_TARGET_LS1043AQDS=y CONFIG_SYS_TEXT_BASE=0x82000000 CONFIG_SYS_MALLOC_LEN=0x102000
configs/ls1043aqds_nor_ddr3_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=25000000 CONFIG_TARGET_LS1043AQDS=y CONFIG_SYS_TEXT_BASE=0x60100000 CONFIG_SYS_MALLOC_LEN=0x120000
configs/ls1043aqds_qspi_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=25000000 CONFIG_TARGET_LS1043AQDS=y CONFIG_SYS_TEXT_BASE=0x40100000 CONFIG_SYS_MALLOC_LEN=0x102000
configs/ls1043aqds_sdcard_ifc_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=25000000 CONFIG_TARGET_LS1043AQDS=y CONFIG_SYS_TEXT_BASE=0x82000000 CONFIG_SYS_MALLOC_LEN=0x102000
configs/ls1043aqds_sdcard_qspi_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=25000000 CONFIG_TARGET_LS1043AQDS=y CONFIG_SYS_TEXT_BASE=0x82000000 CONFIG_SYS_MALLOC_LEN=0x102000
configs/ls1043aqds_tfa_SECURE_BOOT_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=25000000 CONFIG_TARGET_LS1043AQDS=y CONFIG_TFABOOT=y CONFIG_SYS_TEXT_BASE=0x82000000
configs/ls1043aqds_tfa_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=25000000 CONFIG_TARGET_LS1043AQDS=y CONFIG_TFABOOT=y CONFIG_SYS_TEXT_BASE=0x82000000
configs/ls1046afrwy_tfa_SECURE_BOOT_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=25000000 CONFIG_TARGET_LS1046AFRWY=y CONFIG_TFABOOT=y CONFIG_SYS_TEXT_BASE=0x82000000
configs/ls1046afrwy_tfa_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=25000000 CONFIG_TARGET_LS1046AFRWY=y CONFIG_TFABOOT=y CONFIG_SYS_TEXT_BASE=0x82000000
configs/ls1088ardb_qspi_SECURE_BOOT_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=25000000 CONFIG_GIC_V3_ITS=y CONFIG_TARGET_LS1088ARDB=y CONFIG_SYS_TEXT_BASE=0x20100000
configs/ls1088ardb_qspi_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=25000000 CONFIG_GIC_V3_ITS=y CONFIG_TARGET_LS1088ARDB=y CONFIG_SYS_TEXT_BASE=0x20100000
configs/ls1088ardb_sdcard_qspi_SECURE_BOOT_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=25000000 CONFIG_GIC_V3_ITS=y CONFIG_TARGET_LS1088ARDB=y CONFIG_SYS_TEXT_BASE=0x80400000
configs/ls1088ardb_sdcard_qspi_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=25000000 CONFIG_GIC_V3_ITS=y CONFIG_TARGET_LS1088ARDB=y CONFIG_SYS_TEXT_BASE=0x80400000
configs/ls1088ardb_tfa_SECURE_BOOT_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=25000000 CONFIG_GIC_V3_ITS=y CONFIG_TARGET_LS1088ARDB=y CONFIG_TFABOOT=y
configs/ls1088ardb_tfa_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=25000000 CONFIG_GIC_V3_ITS=y CONFIG_TARGET_LS1088ARDB=y CONFIG_TFABOOT=y
configs/mt8183_pumpkin_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=13000000 CONFIG_POSITION_INDEPENDENT=y CONFIG_ARCH_MEDIATEK=y CONFIG_SYS_TEXT_BASE=0x4c000000
configs/mt8512_bm1_emmc_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=13000000 CONFIG_POSITION_INDEPENDENT=y CONFIG_ARCH_MEDIATEK=y CONFIG_SYS_TEXT_BASE=0x44e00000
configs/mt8516_pumpkin_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=13000000 CONFIG_POSITION_INDEPENDENT=y CONFIG_ARCH_MEDIATEK=y CONFIG_SYS_TEXT_BASE=0x4C000000
configs/mt8518_ap1_emmc_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=13000000 CONFIG_POSITION_INDEPENDENT=y CONFIG_ARCH_MEDIATEK=y CONFIG_SYS_TEXT_BASE=0x40008000
configs/nanopc-t4-rk3399_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00200000 CONFIG_NR_DRAM_BANKS=1
configs/nanopi-m4-2gb-rk3399_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00200000 CONFIG_NR_DRAM_BANKS=1
configs/nanopi-m4-rk3399_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00200000 CONFIG_NR_DRAM_BANKS=1
configs/nanopi-m4b-rk3399_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00200000 CONFIG_NR_DRAM_BANKS=1
configs/nanopi-neo4-rk3399_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00200000 CONFIG_NR_DRAM_BANKS=1
configs/nanopi-r2s-rk3328_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00200000 CONFIG_SPL_GPIO=y
configs/nanopi-r4s-rk3399_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00200000 CONFIG_NR_DRAM_BANKS=1
configs/orangepi-rk3399_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00200000 CONFIG_NR_DRAM_BANKS=1
configs/p2371-2180_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=19200000 CONFIG_SYS_L2CACHE_OFF=y CONFIG_ARCH_TEGRA=y CONFIG_SYS_TEXT_BASE=0x80080000
configs/p2771-0000-000_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=19200000 CONFIG_SYS_L2CACHE_OFF=y CONFIG_ARCH_TEGRA=y CONFIG_SYS_TEXT_BASE=0x80080000
configs/p2771-0000-500_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=19200000 CONFIG_SYS_L2CACHE_OFF=y CONFIG_ARCH_TEGRA=y CONFIG_SYS_TEXT_BASE=0x80080000
configs/p3450-0000_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=19200000 CONFIG_SYS_L2CACHE_OFF=y CONFIG_ARCH_TEGRA=y CONFIG_SYS_TEXT_BASE=0x80080000
configs/pg_wcom_expu1_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=8333333 CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_TARGET_PG_WCOM_EXPU1=y CONFIG_SYS_TEXT_BASE=0x60100000
configs/pg_wcom_expu1_update_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=8333333 CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_TARGET_PG_WCOM_EXPU1=y CONFIG_SYS_TEXT_BASE=0x60240000
configs/pg_wcom_seli8_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=8333333 CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_TARGET_PG_WCOM_SELI8=y CONFIG_SYS_TEXT_BASE=0x60100000
configs/pg_wcom_seli8_update_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=8333333 CONFIG_SKIP_LOWLEVEL_INIT=y CONFIG_TARGET_PG_WCOM_SELI8=y CONFIG_SYS_TEXT_BASE=0x60240000
configs/r8a77970_eagle_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=16666666 CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_RMOBILE=y CONFIG_SYS_TEXT_BASE=0x50000000
configs/r8a77980_condor_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=16666666 CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_RMOBILE=y CONFIG_SYS_TEXT_BASE=0x50000000
configs/r8a77990_ebisu_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=16666666 CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_RMOBILE=y CONFIG_SYS_TEXT_BASE=0x50000000
configs/r8a77995_draak_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=16666666 CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_RMOBILE=y CONFIG_SYS_TEXT_BASE=0x50000000
configs/r8a779a0_falcon_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=16666666 CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_RMOBILE=y CONFIG_SYS_TEXT_BASE=0x50000000
configs/rcar3_salvator-x_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=16666666 CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_RMOBILE=y CONFIG_SYS_MALLOC_LEN=0x4000000
configs/rcar3_ulcb_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=16666666 CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_RMOBILE=y CONFIG_SYS_TEXT_BASE=0x50000000
configs/roc-cc-rk3328_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00200000 CONFIG_SPL_GPIO=y
configs/rock-pi-4-rk3399_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00200000 CONFIG_NR_DRAM_BANKS=1
configs/rock-pi-4c-rk3399_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00200000 CONFIG_NR_DRAM_BANKS=1
configs/rock-pi-e-rk3328_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00200000 CONFIG_SPL_GPIO=y
configs/rock-pi-n10-rk3399pro_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00200000 CONFIG_SPL_GPIO=y
configs/rock64-rk3328_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00200000 CONFIG_SPL_GPIO=y
configs/silinux_ek874_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=16666666 CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_RMOBILE=y CONFIG_SYS_TEXT_BASE=0x50000000
configs/socfpga_agilex_atf_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=400000000 CONFIG_SPL_LDSCRIPT="arch/arm/mach-socfpga/u-boot-spl-soc64.lds" CONFIG_ARCH_SOCFPGA=y CONFIG_SYS_TEXT_BASE=0x200000
configs/socfpga_agilex_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=400000000 CONFIG_ARCH_SOCFPGA=y CONFIG_SYS_TEXT_BASE=0x1000 CONFIG_SYS_MALLOC_LEN=0x500000
configs/socfpga_agilex_vab_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=400000000 CONFIG_SPL_LDSCRIPT="arch/arm/mach-socfpga/u-boot-spl-soc64.lds" CONFIG_ARCH_SOCFPGA=y CONFIG_SYS_TEXT_BASE=0x200000
configs/starqltechn_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=19000000 CONFIG_POSITION_INDEPENDENT=y CONFIG_ARCH_SNAPDRAGON=y CONFIG_DEFAULT_DEVICE_TREE="starqltechn"
configs/ten64_tfa_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=25000000 CONFIG_TARGET_TEN64=y CONFIG_TFABOOT=y CONFIG_SYS_TEXT_BASE=0x82000000
configs/thunderx_88xx_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=25165824 CONFIG_TARGET_THUNDERX_88XX=y CONFIG_SYS_TEXT_BASE=0x00500000 CONFIG_SYS_MALLOC_LEN=0x101000
configs/vexpress_aemv8a_juno_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_VEXPRESS64=y CONFIG_NR_DRAM_BANKS=2 CONFIG_DEFAULT_DEVICE_TREE="juno-r2"
configs/vexpress_aemv8a_semi_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y # CONFIG_ARM64_CRC32 is not set +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_VEXPRESS64=y CONFIG_NR_DRAM_BANKS=2 CONFIG_DEFAULT_DEVICE_TREE="fvp-base-revc"
configs/vexpress_aemv8r_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_COUNTER_FREQUENCY=24000000 CONFIG_ARCH_VEXPRESS64=y CONFIG_NR_DRAM_BANKS=2 CONFIG_DEFAULT_DEVICE_TREE="arm_fvp"
Signature · 1 line
2.35.1
Re: [PATCH V4 4/6] configs: set CONFIG_COUNTER_FREQUENCY
Quoted 6 lines · Peng Fan (OSS)
From: Peng Fan <[email protected]>
Set
CONFIG_COUNTER_FREQUENCYaccording toCOUNTER_FREQUENCYin config header file.Signed-off-by Peng Fan <[email protected]>
Applied to u-boot/master, thanks!
Signature · 1 line
Tom
PATCH v4 5/6 include/configs: drop COUNTER_FREQUENCY
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Since we have CONFIG_COUNTER_FREQUENCY enabled, no need COUNTER_FREQUENCY
--- arch/arm/cpu/armv8/fsl-layerscape/spintable.S | 2 +- include/configs/apalis-imx8.h | 3 --- include/configs/apalis-imx8x.h | 3 --- include/configs/capricorn-common.h | 3 --- include/configs/cgtqmx8.h | 3 --- include/configs/colibri-imx8x.h | 1 - include/configs/condor.h | 3 --- include/configs/draak.h | 3 --- include/configs/dragonboard410c.h | 3 --- include/configs/dragonboard820c.h | 3 --- include/configs/eagle.h | 3 --- include/configs/ebisu.h | 3 --- include/configs/exynos-common.h | 1 - include/configs/exynos7420-common.h | 3 --- include/configs/exynos78x0-common.h | 3 --- include/configs/falcon.h | 3 --- include/configs/hihope-rzg2.h | 3 --- include/configs/hikey.h | 3 --- include/configs/hikey960.h | 3 --- include/configs/imx8qm_mek.h | 3 --- include/configs/imx8qm_rom7720.h | 3 --- include/configs/imx8qxp_mek.h | 3 --- include/configs/kontron_sl28.h | 1 - include/configs/ls1012a_common.h | 3 --- include/configs/ls1021aiot.h | 1 - include/configs/ls1021aqds.h | 1 - include/configs/ls1021atsn.h | 1 - include/configs/ls1021atwr.h | 1 - include/configs/ls1028a_common.h | 3 --- include/configs/ls1043a_common.h | 3 --- include/configs/ls1046a_common.h | 3 --- include/configs/ls1088aqds.h | 1 - include/configs/ls1088ardb.h | 1 - include/configs/ls2080a_common.h | 2 -- include/configs/lx2160a_common.h | 1 - include/configs/mt8183.h | 1 - include/configs/mt8512.h | 1 - include/configs/mt8516.h | 1 - include/configs/mt8518.h | 1 - include/configs/mx6_common.h | 1 - include/configs/mx7_common.h | 1 - include/configs/owl-common.h | 3 --- include/configs/p2371-2180.h | 3 --- include/configs/p2771-0000.h | 3 --- include/configs/p3450-0000.h | 3 --- include/configs/presidio_asic.h | 3 +-- include/configs/px30_common.h | 1 - include/configs/rk3036_common.h | 1 - include/configs/rk3128_common.h | 1 - include/configs/rk322x_common.h | 1 - include/configs/rk3288_common.h | 1 - include/configs/rk3308_common.h | 1 - include/configs/rk3328_common.h | 1 - include/configs/rk3368_common.h | 1 - include/configs/rk3399_common.h | 1 - include/configs/rk3568_common.h | 1 - include/configs/salvator-x.h | 3 --- include/configs/sdm845.h | 3 --- include/configs/silinux-ek874.h | 3 --- include/configs/socfpga_soc64_common.h | 5 ----- include/configs/sunxi-common.h | 1 - include/configs/ten64.h | 1 - include/configs/thunderx_88xx.h | 3 --- include/configs/ulcb.h | 3 --- include/configs/vexpress_aemv8.h | 3 --- include/configs/xilinx_versal.h | 5 ----- include/configs/xilinx_zynqmp.h | 5 ----- 67 files changed, 2 insertions(+), 147 deletions(-)
arch/arm/cpu/armv8/fsl-layerscape/spintable.S +1 -1
@@ -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:
include/configs/apalis-imx8.h +0 -3
@@ -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 */
include/configs/apalis-imx8x.h +0 -3
@@ -115,9 +115,6 @@#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
include/configs/capricorn-common.h +0 -3
@@ -123,9 +123,6 @@#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 */
include/configs/cgtqmx8.h +0 -3
@@ -131,9 +131,6 @@#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
include/configs/colibri-imx8x.h +0 -1
@@ -119,7 +119,6 @@ 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 */
include/configs/condor.h +0 -3
@@ -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 */
include/configs/draak.h +0 -3
@@ -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
include/configs/dragonboard410c.h +0 -3
@@ -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
include/configs/dragonboard820c.h +0 -3
@@ -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
include/configs/eagle.h +0 -3
@@ -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 */
include/configs/ebisu.h +0 -3
@@ -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
include/configs/exynos-common.h +0 -1
@@ -19,7 +19,6 @@/* Keep L2 Cache Disabled */ /* input clock of PLL: 24MHz input clock */ -#define COUNTER_FREQUENCY 24000000/* select serial console configuration */
include/configs/exynos7420-common.h +0 -3
@@ -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
include/configs/exynos78x0-common.h +0 -3
@@ -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 \
include/configs/falcon.h +0 -3
@@ -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 */
include/configs/hihope-rzg2.h +0 -3
@@ -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 */
include/configs/hikey.h +0 -3
@@ -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
include/configs/hikey960.h +0 -3
@@ -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
include/configs/imx8qm_mek.h +0 -3
@@ -130,7 +130,4 @@#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 */
include/configs/imx8qm_rom7720.h +0 -3
@@ -124,8 +124,5 @@/* 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 */
include/configs/imx8qxp_mek.h +0 -3
@@ -129,9 +129,6 @@/* 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
include/configs/kontron_sl28.h +0 -1
@@ -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
include/configs/ls1012a_common.h +0 -3
@@ -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
include/configs/ls1021aiot.h +0 -1
@@ -119,7 +119,6 @@#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
include/configs/ls1021aqds.h +0 -1
@@ -334,7 +334,6 @@#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
include/configs/ls1021atsn.h +0 -1
@@ -99,7 +99,6 @@#endif #define CONFIG_LAYERSCAPE_NS_ACCESS -#define COUNTER_FREQUENCY 12500000#define CONFIG_HWCONFIG #define HWCONFIG_BUFFER_SIZE 256
include/configs/ls1021atwr.h +0 -1
@@ -192,7 +192,6 @@#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
include/configs/ls1028a_common.h +0 -3
@@ -25,9 +25,6 @@*/ #define CPU_RELEASE_ADDR secondary_boot_addr -/* Generic Timer Definitions */ -#define COUNTER_FREQUENCY 25000000/* 25MHz */ -/* GPIO */ /* I2C */
include/configs/ls1043a_common.h +0 -3
@@ -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
include/configs/ls1046a_common.h +0 -3
@@ -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
include/configs/ls1088aqds.h +0 -1
@@ -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
include/configs/ls1088ardb.h +0 -1
@@ -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
include/configs/ls2080a_common.h +0 -2
@@ -41,12 +41,10 @@#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 */
include/configs/lx2160a_common.h +0 -1
@@ -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)
include/configs/mt8183.h +0 -1
@@ -11,7 +11,6 @@#include <linux/sizes.h> -#define COUNTER_FREQUENCY 13000000#define CONFIG_SYS_NS16550_SERIAL #define CONFIG_SYS_NS16550_REG_SIZE -4
include/configs/mt8512.h +0 -1
@@ -13,7 +13,6 @@#define CONFIG_SYS_NONCACHED_MEMORY SZ_1M -#define COUNTER_FREQUENCY 13000000#define CONFIG_SYS_BOOTM_LEN SZ_64M
include/configs/mt8516.h +0 -1
@@ -11,7 +11,6 @@#include <linux/sizes.h> -#define COUNTER_FREQUENCY 13000000#define CONFIG_SYS_NS16550_SERIAL #define CONFIG_SYS_NS16550_REG_SIZE -4
include/configs/mt8518.h +0 -1
@@ -13,7 +13,6 @@#define CONFIG_SYS_NONCACHED_MEMORY SZ_1M -#define COUNTER_FREQUENCY 13000000/* DRAM definition */ #define CONFIG_SYS_SDRAM_BASE 0x40000000
include/configs/mx6_common.h +0 -1
@@ -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
include/configs/mx7_common.h +0 -1
@@ -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
include/configs/owl-common.h +0 -3
@@ -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 */ /*
include/configs/p2371-2180.h +0 -3
@@ -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 */
include/configs/p2771-0000.h +0 -3
@@ -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
include/configs/p3450-0000.h +0 -3
@@ -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 */
include/configs/presidio_asic.h +1 -2
@@ -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
include/configs/px30_common.h +0 -1
@@ -13,7 +13,6 @@#define CONFIG_SYS_NS16550_MEM32 #define CONFIG_ROCKCHIP_STIMER_BASE 0xff220020 -#define COUNTER_FREQUENCY 24000000/* FIXME: ff020000 is pmu_mem (10k), while ff0e0000 is regular int_mem */ #define CONFIG_IRAM_BASE 0xff020000
include/configs/rk3036_common.h +0 -1
@@ -11,7 +11,6 @@#define CONFIG_SYS_CBSIZE 1024#define CONFIG_ROCKCHIP_STIMER_BASE 0x200440a0 -#define COUNTER_FREQUENCY 24000000#define CONFIG_SYS_HZ_CLOCK 24000000#define CONFIG_SYS_INIT_SP_ADDR 0x60100000
include/configs/rk3128_common.h +0 -1
@@ -12,7 +12,6 @@#define CONFIG_SYS_CBSIZE 1024#define CONFIG_ROCKCHIP_STIMER_BASE 0x200440a0 -#define COUNTER_FREQUENCY 24000000#define CONFIG_SYS_HZ_CLOCK 24000000#define CONFIG_IRAM_BASE 0x10080000
include/configs/rk322x_common.h +0 -1
@@ -12,7 +12,6 @@#define CONFIG_SYS_BOOTM_LEN (64 << 20)/* 64M */ #define CONFIG_ROCKCHIP_STIMER_BASE 0x110d0020 -#define COUNTER_FREQUENCY 24000000#define CONFIG_SYS_HZ_CLOCK 24000000#define CONFIG_SYS_INIT_SP_ADDR 0x61100000
include/configs/rk3288_common.h +0 -1
@@ -14,7 +14,6 @@#define CONFIG_SYS_CBSIZE 1024#define CONFIG_ROCKCHIP_STIMER_BASE 0xff810020 -#define COUNTER_FREQUENCY 24000000#define CONFIG_SYS_HZ_CLOCK 24000000#ifdef CONFIG_SPL_ROCKCHIP_BACK_TO_BROM
include/configs/rk3308_common.h +0 -1
@@ -21,7 +21,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 */
include/configs/rk3328_common.h +0 -1
@@ -11,7 +11,6 @@#define CONFIG_IRAM_BASE 0xff090000#define CONFIG_ROCKCHIP_STIMER_BASE 0xff1d0020 -#define COUNTER_FREQUENCY 24000000#define CONFIG_SYS_CBSIZE 1024
include/configs/rk3368_common.h +0 -1
@@ -16,7 +16,6 @@#define CONFIG_SYS_CBSIZE 1024#define CONFIG_ROCKCHIP_STIMER_BASE 0xff830020 -#define COUNTER_FREQUENCY 24000000#define CONFIG_IRAM_BASE 0xff8c0000
include/configs/rk3399_common.h +0 -1
@@ -10,7 +10,6 @@#define CONFIG_SYS_CBSIZE 1024 -#define COUNTER_FREQUENCY 24000000#define CONFIG_ROCKCHIP_STIMER_BASE 0xff8680a0#define CONFIG_IRAM_BASE 0xff8c0000
include/configs/rk3568_common.h +0 -1
@@ -10,7 +10,6 @@#define CONFIG_SYS_CBSIZE 1024 -#define COUNTER_FREQUENCY 24000000#define CONFIG_ROCKCHIP_STIMER_BASE 0xfdd1c020#define CONFIG_IRAM_BASE 0xfdcc0000
include/configs/salvator-x.h +0 -3
@@ -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
include/configs/sdm845.h +0 -3
@@ -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" \
include/configs/silinux-ek874.h +0 -3
@@ -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 */
include/configs/socfpga_soc64_common.h +0 -5
@@ -108,11 +108,6 @@#define CONFIG_SYS_NS16550_CLK 100000000#define CONFIG_SYS_NS16550_MEM32 -/* -* Timer & watchdog configurations -*/ -#define COUNTER_FREQUENCY 400000000 -/* * SDMMC configurations */
include/configs/sunxi-common.h +0 -1
@@ -38,7 +38,6 @@#endif /* CPU */ -#define COUNTER_FREQUENCY 24000000/* * The DRAM Base differs between some models. We cannot use macros for the
include/configs/ten64.h +0 -1
@@ -9,7 +9,6 @@#include "ls1088a_common.h" -#define COUNTER_FREQUENCY 25000000/* 25MHz */ #define CONFIG_SYS_LS_MC_BOOT_TIMEOUT_MS 5000
include/configs/thunderx_88xx.h +0 -3
@@ -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
include/configs/ulcb.h +0 -3
@@ -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
include/configs/vexpress_aemv8.h +0 -3
@@ -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)
include/configs/xilinx_versal.h +0 -5
@@ -16,11 +16,6 @@#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 }
include/configs/xilinx_zynqmp.h +0 -5
@@ -16,11 +16,6 @@#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 }
Signature · 1 line
2.35.1
Re: [PATCH V4 5/6] include/configs: drop COUNTER_FREQUENCY
Quoted 5 lines · Peng Fan (OSS)
From: Peng Fan <[email protected]>
Since we have
CONFIG_COUNTER_FREQUENCYenabled, no needCOUNTER_FREQUENCYSigned-off-by Peng Fan <[email protected]>
Applied to u-boot/master, thanks!
Signature · 1 line
Tom
PATCH v4 6/6 arm: set cntfrq_el0 if CONFIG_COUNTER_FREQUENCY is valid
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Since COUNTER_FREQUENCY is obselete, so set cntfrq_el0 if CONFIG_COUNTER_FREQUENCY is valid
--- arch/arm/cpu/armv7/ls102xa/psci.S | 2 +- arch/arm/cpu/armv7/ls102xa/timer.c | 2 +- arch/arm/cpu/armv7/nonsec_virt.S | 4 ++-- arch/arm/cpu/armv7/sunxi/psci.c | 2 +- arch/arm/cpu/armv8/start.S | 4 ++-- arch/arm/mach-rockchip/rk3036-board-spl.c | 2 +- arch/arm/mach-rockchip/spl.c | 2 +- arch/arm/mach-rockchip/tpl.c | 2 +- board/sunxi/board.c | 6 +++--- 9 files changed, 13 insertions(+), 13 deletions(-)
arch/arm/cpu/armv7/ls102xa/psci.S +1 -1
@@ -36,7 +36,7 @@ .align 5 -#define ONE_MS (COUNTER_FREQUENCY / 1000) +#define ONE_MS (CONFIG_COUNTER_FREQUENCY / 1000) #define RESET_WAIT (30 * ONE_MS) .globl psci_version
arch/arm/cpu/armv7/ls102xa/timer.c +1 -1
@@ -65,7 +65,7 @@ int timer_init(void)/* Enable System Counter */ writel (SYS_COUNTER_CTRL_ENABLE , &sctr->cntcr); - freq =COUNTER_FREQUENCY ; + freq =CONFIG_COUNTER_FREQUENCY ; asm("mcr p15, 0, %0, c14, c0, 0" : :"r" (freq));/* Set PL1 Physical Timer Ctrl */
arch/arm/cpu/armv7/nonsec_virt.S +2 -2
@@ -189,11 +189,11 @@ ENTRY(_nonsec_init) * we do this here instead. * But first check if we have the generic timer. */ -#ifdef COUNTER_FREQUENCY +#if CONFIG_COUNTER_FREQUENCY mrc p15, 0, r0, c0, c1, 1 @ read ID_PFR1 and r0, r0, #CPUID_ARM_GENTIMER_MASK @ mask arch timer bits cmp r0, #(1 << CPUID_ARM_GENTIMER_SHIFT) - ldreq r1, =COUNTER_FREQUENCY + ldreq r1, =CONFIG_COUNTER_FREQUENCY mcreq p15, 0, r1, c14, c0, 0 @ write CNTFRQ #endif
arch/arm/cpu/armv7/sunxi/psci.c +1 -1
@@ -57,7 +57,7 @@ static u32 __secure cp15_read_cntp_ctl(void)return val; } -#define ONE_MS (COUNTER_FREQUENCY / 1000) +#define ONE_MS (CONFIG_COUNTER_FREQUENCY / 1000) static void __secure __mdelay(u32 ms) {
arch/arm/cpu/armv8/start.S +2 -2
@@ -138,9 +138,9 @@ pie_fixup_done: 0: msr daifclr, #0x4 /* Unmask SError interrupts */ -#ifdef COUNTER_FREQUENCY +#if CONFIG_COUNTER_FREQUENCY branch_if_not_highest_el x0, 4f - ldr x0, =COUNTER_FREQUENCY + ldr x0, =CONFIG_COUNTER_FREQUENCY msr cntfrq_el0, x0 /* Initialize CNTFRQ */ #endif
arch/arm/mach-rockchip/rk3036-board-spl.c +1 -1
@@ -20,7 +20,7 @@void rockchip_stimer_init (void ) { asmvolatile ("mcr p15, 0, %0, c14, c0, 0" - : :"r" (COUNTER_FREQUENCY )); + : :"r" (CONFIG_COUNTER_FREQUENCY ));writel (0 ,CONFIG_ROCKCHIP_STIMER_BASE +TIMER_CONTROL_REG );writel (0xffffffff ,CONFIG_ROCKCHIP_STIMER_BASE );
arch/arm/mach-rockchip/spl.c +1 -1
@@ -88,7 +88,7 @@ __weak void rockchip_stimer_init(void)return ;#ifndef CONFIG_ARM64 asmvolatile ("mcr p15, 0, %0, c14, c0, 0" - : :"r" (COUNTER_FREQUENCY )); + : :"r" (CONFIG_COUNTER_FREQUENCY ));#endif writel (0 ,CONFIG_ROCKCHIP_STIMER_BASE +TIMER_CONTROL_REG );writel (0xffffffff ,CONFIG_ROCKCHIP_STIMER_BASE );
arch/arm/mach-rockchip/tpl.c +1 -1
@@ -37,7 +37,7 @@ __weak void rockchip_stimer_init(void)#ifndef CONFIG_ARM64 asmvolatile ("mcr p15, 0, %0, c14, c0, 0" - : :"r" (COUNTER_FREQUENCY )); + : :"r" (CONFIG_COUNTER_FREQUENCY ));#endif writel (0 ,CONFIG_ROCKCHIP_STIMER_BASE +TIMER_CONTROL_REG );
board/sunxi/board.c +3 -3
@@ -202,14 +202,14 @@ int board_init(void)* we avoid the risk of writing to it. */ asmvolatile ("mrc p15, 0, %0, c14, c0, 0" :"=r" (freq)); -if (freq !=COUNTER_FREQUENCY ) { +if (freq !=CONFIG_COUNTER_FREQUENCY ) {debug ("arch timer frequency is %d Hz, should be %d, fixing ...\n" , - freq,COUNTER_FREQUENCY ); + freq,CONFIG_COUNTER_FREQUENCY );#ifdef CONFIG_NON_SECURE printf ("arch timer frequency is wrong, but cannot adjust it\n" );#else asmvolatile ("mcr p15, 0, %0, c14, c0, 0" - : :"r" (COUNTER_FREQUENCY )); + : :"r" (CONFIG_COUNTER_FREQUENCY ));#endif } }
Signature · 1 line
2.35.1
Re: [PATCH V4 6/6] arm: set cntfrq_el0 if CONFIG_COUNTER_FREQUENCY is valid
Quoted 7 lines · Peng Fan (OSS)
From: Peng Fan <[email protected]>
Since
COUNTER_FREQUENCYis obselete, so setcntfrq_el0ifCONFIG_COUNTER_FREQUENCYis validSigned-off-by Peng Fan <[email protected]>
Re: [PATCH V4 6/6] arm: set cntfrq_el0 if CONFIG_COUNTER_FREQUENCY is valid
In reply to Peng Fan (OSS)Quoted 7 lines · Peng Fan (OSS)
From: Peng Fan <[email protected]>
Since
COUNTER_FREQUENCYis obselete, so setcntfrq_el0ifCONFIG_COUNTER_FREQUENCYis validSigned-off-by Peng Fan <[email protected]>Reviewed-by Philipp Tomsich <[email protected]>
Applied to u-boot/master, thanks!
Signature · 1 line
Tom