]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
MIPS: convert CONFIG_SYS_MIPS_TIMER_FREQ to Kconfig
authorDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Sun, 10 Jul 2022 15:15:14 +0000 (17:15 +0200)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Wed, 2 Nov 2022 20:42:32 +0000 (21:42 +0100)
This converts the following to Kconfig:
    CONFIG_SYS_MIPS_TIMER_REQ

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
71 files changed:
arch/mips/Kconfig
configs/ap121_defconfig
configs/ap143_defconfig
configs/ap152_defconfig
configs/bcm968380gerg_ram_defconfig
configs/boston32r2_defconfig
configs/boston32r2el_defconfig
configs/boston32r6_defconfig
configs/boston32r6el_defconfig
configs/boston64r2_defconfig
configs/boston64r2el_defconfig
configs/boston64r6_defconfig
configs/boston64r6el_defconfig
configs/ci20_mmc_defconfig
configs/comtrend_ar5315u_ram_defconfig
configs/comtrend_ar5387un_ram_defconfig
configs/comtrend_ct5361_ram_defconfig
configs/comtrend_vr3032u_ram_defconfig
configs/comtrend_wap5813n_ram_defconfig
configs/gardena-smart-gateway-mt7688_defconfig
configs/huawei_hg556a_ram_defconfig
configs/imgtec_xilfpga_defconfig
configs/linkit-smart-7688_defconfig
configs/malta64_defconfig
configs/malta64el_defconfig
configs/malta_defconfig
configs/maltael_defconfig
configs/mscc_jr2_defconfig
configs/mscc_luton_defconfig
configs/mscc_ocelot_defconfig
configs/mscc_serval_defconfig
configs/mscc_servalt_defconfig
configs/mt7620_mt7530_rfb_defconfig
configs/mt7620_rfb_defconfig
configs/mt7621_nand_rfb_defconfig
configs/mt7621_rfb_defconfig
configs/mt7628_rfb_defconfig
configs/netgear_cg3100d_ram_defconfig
configs/netgear_dgnd3700v2_ram_defconfig
configs/pic32mzdask_defconfig
configs/sagem_f@st1704_ram_defconfig
configs/sfr_nb4-ser_ram_defconfig
configs/tplink_wdr4300_defconfig
configs/vocore2_defconfig
include/configs/ap121.h
include/configs/ap143.h
include/configs/ap152.h
include/configs/bmips_bcm3380.h
include/configs/bmips_bcm6318.h
include/configs/bmips_bcm63268.h
include/configs/bmips_bcm6328.h
include/configs/bmips_bcm6338.h
include/configs/bmips_bcm6348.h
include/configs/bmips_bcm6358.h
include/configs/bmips_bcm6362.h
include/configs/bmips_bcm6368.h
include/configs/bmips_bcm6838.h
include/configs/boston.h
include/configs/ci20.h
include/configs/gardena-smart-gateway-mt7688.h
include/configs/imgtec_xilfpga.h
include/configs/linkit-smart-7688.h
include/configs/malta.h
include/configs/mt7620.h
include/configs/mt7621.h
include/configs/mt7628.h
include/configs/pic32mzdask.h
include/configs/tplink_wdr4300.h
include/configs/vcoreiii.h
include/configs/vocore2.h
scripts/config_whitelist.txt

index 8bef63cbb7415ed5cc879ab1b43e18ee1cf4693e..9af0133f1068646da36771f1c7ea258593d3bd8a 100644 (file)
@@ -14,6 +14,7 @@ choice
 
 config TARGET_MALTA
        bool "Support malta"
+       select HAS_FIXED_TIMER_FREQUENCY
        select BOARD_EARLY_INIT_R
        select DM
        select DM_SERIAL
@@ -41,17 +42,20 @@ config TARGET_MALTA
 
 config ARCH_ATH79
        bool "Support QCA/Atheros ath79"
+       select HAS_FIXED_TIMER_FREQUENCY
        select DM
        select OF_CONTROL
        imply CMD_DM
 
 config ARCH_MSCC
        bool "Support MSCC VCore-III"
+       select HAS_FIXED_TIMER_FREQUENCY
        select OF_CONTROL
        select DM
 
 config ARCH_BMIPS
        bool "Support BMIPS SoCs"
+       select HAS_FIXED_TIMER_FREQUENCY
        select CLK
        select CPU
        select DM
@@ -62,6 +66,7 @@ config ARCH_BMIPS
 
 config ARCH_MTMIPS
        bool "Support MediaTek MIPS platforms"
+       select HAS_FIXED_TIMER_FREQUENCY
        select CLK
        imply CMD_DM
        select DISPLAY_CPUINFO
@@ -88,6 +93,7 @@ config ARCH_MTMIPS
 config ARCH_JZ47XX
        bool "Support Ingenic JZ47xx"
        select SUPPORT_SPL
+       select HAS_FIXED_TIMER_FREQUENCY
        select OF_CONTROL
        select DM
 
@@ -116,12 +122,14 @@ config ARCH_OCTEON
 
 config MACH_PIC32
        bool "Support Microchip PIC32"
+       select HAS_FIXED_TIMER_FREQUENCY
        select DM
        select OF_CONTROL
        imply CMD_DM
 
 config TARGET_BOSTON
        bool "Support Boston"
+       select HAS_FIXED_TIMER_FREQUENCY
        select DM
        imply DM_EVENT
        select DM_SERIAL
@@ -143,6 +151,7 @@ config TARGET_BOSTON
 
 config TARGET_XILFPGA
        bool "Support Imagination Xilfpga"
+       select HAS_FIXED_TIMER_FREQUENCY
        select DM
        select DM_ETH
        select DM_GPIO
@@ -246,6 +255,12 @@ config ROM_EXCEPTION_VECTORS
          Disable this, if the U-Boot image is booted from DRAM (e.g. by SPL).
          In that case the image size will be reduced by 0x500 bytes.
 
+config SYS_MIPS_TIMER_FREQ
+       int "Fixed MIPS CPU timer frequency in Hz"
+       depends on HAS_FIXED_TIMER_FREQUENCY
+       help
+         Configures a fixed CPU timer frequency.
+
 config MIPS_CM_BASE
        hex "MIPS CM GCR Base Address"
        depends on MIPS_CM
@@ -427,6 +442,9 @@ config SUPPORTS_CPU_MIPS64_R6
 config SUPPORTS_CPU_MIPS64_OCTEON
        bool
 
+config HAS_FIXED_TIMER_FREQUENCY
+       bool
+
 config CPU_CAVIUM_OCTEON
        bool
 
index 1f4a79395eebfbb6ef183a833df7df08828de07b..77d2d1f3c10b524474ff679b6a653b566e4b1344 100644 (file)
@@ -11,6 +11,7 @@ CONFIG_DEBUG_UART_CLOCK=25000000
 CONFIG_DEBUG_UART_BOARD_INIT=y
 CONFIG_SYS_LOAD_ADDR=0x81000000
 CONFIG_ARCH_ATH79=y
+CONFIG_SYS_MIPS_TIMER_FREQ=200000000
 CONFIG_DEBUG_UART=y
 CONFIG_SYS_MEMTEST_START=0x80100000
 CONFIG_SYS_MEMTEST_END=0x83f00000
index b902657dce1f7a1c56da0fafe3024666408ff4c9..96a86b6ddc295604f7eb79cb624df25c831cf0a3 100644 (file)
@@ -13,6 +13,7 @@ CONFIG_DEBUG_UART_BOARD_INIT=y
 CONFIG_SYS_LOAD_ADDR=0x81000000
 CONFIG_ARCH_ATH79=y
 CONFIG_TARGET_AP143=y
+CONFIG_SYS_MIPS_TIMER_FREQ=325000000
 CONFIG_DEBUG_UART=y
 CONFIG_SYS_MEMTEST_START=0x80100000
 CONFIG_SYS_MEMTEST_END=0x83f00000
index b46b18121b8280dbe8063f9385bf962340d3c38b..a2e547ecf4e4461a818de0608b16ddcdade87f0b 100644 (file)
@@ -13,6 +13,7 @@ CONFIG_DEBUG_UART_BOARD_INIT=y
 CONFIG_SYS_LOAD_ADDR=0x81000000
 CONFIG_ARCH_ATH79=y
 CONFIG_TARGET_AP152=y
+CONFIG_SYS_MIPS_TIMER_FREQ=375000000
 CONFIG_DEBUG_UART=y
 CONFIG_SYS_MEMTEST_START=0x80100000
 CONFIG_SYS_MEMTEST_END=0x83f00000
index 6ddec1b063eb8ae951dbbff04360db6a6b73ef0c..f0a13175da0ea2aabd9a54a934b382bcff3ef3f6 100644 (file)
@@ -9,6 +9,7 @@ CONFIG_SYS_PROMPT="bcm968380gerg # "
 CONFIG_SYS_LOAD_ADDR=0x80100000
 CONFIG_ARCH_BMIPS=y
 CONFIG_SOC_BMIPS_BCM6838=y
+CONFIG_SYS_MIPS_TIMER_FREQ=160000000
 CONFIG_MIPS_CACHE_SETUP=y
 CONFIG_MIPS_CACHE_DISABLE=y
 # CONFIG_MIPS_BOOT_CMDLINE_LEGACY is not set
index c680995805b64ad1e12ab90f74a86a1da8c1ec52..d80152be0f365d6d352e6f253c262b2c7644748d 100644 (file)
@@ -9,6 +9,7 @@ CONFIG_SYS_PROMPT="boston # "
 CONFIG_SYS_LOAD_ADDR=0x88000000
 CONFIG_ENV_ADDR=0xBFFE0000
 CONFIG_TARGET_BOSTON=y
+CONFIG_SYS_MIPS_TIMER_FREQ=30000000
 # CONFIG_MIPS_BOOT_CMDLINE_LEGACY is not set
 # CONFIG_MIPS_BOOT_ENV_LEGACY is not set
 CONFIG_MIPS_BOOT_FDT=y
index 831ee94b0c73f5c6d26aa82daa6e743385a55718..8624853ebac80fa085fa74029bc703d948874b65 100644 (file)
@@ -9,6 +9,7 @@ CONFIG_SYS_PROMPT="boston # "
 CONFIG_SYS_LOAD_ADDR=0x88000000
 CONFIG_ENV_ADDR=0xBFFE0000
 CONFIG_TARGET_BOSTON=y
+CONFIG_SYS_MIPS_TIMER_FREQ=30000000
 # CONFIG_MIPS_BOOT_CMDLINE_LEGACY is not set
 # CONFIG_MIPS_BOOT_ENV_LEGACY is not set
 CONFIG_MIPS_BOOT_FDT=y
index 312616a4c2057ca76d01d38cdb3a15adf09b9d6a..464b2559202e0f7d4c6a2a946eed7c3aae2eb959 100644 (file)
@@ -10,6 +10,7 @@ CONFIG_SYS_LOAD_ADDR=0x88000000
 CONFIG_ENV_ADDR=0xBFFE0000
 CONFIG_TARGET_BOSTON=y
 CONFIG_CPU_MIPS32_R6=y
+CONFIG_SYS_MIPS_TIMER_FREQ=30000000
 # CONFIG_MIPS_BOOT_CMDLINE_LEGACY is not set
 # CONFIG_MIPS_BOOT_ENV_LEGACY is not set
 CONFIG_MIPS_BOOT_FDT=y
index 50032dd3dba07fa59d0e7dd0e126fd88869db7f1..67abbb9f7fa213ec80655835429028b6f87cd69c 100644 (file)
@@ -10,6 +10,7 @@ CONFIG_SYS_LOAD_ADDR=0x88000000
 CONFIG_ENV_ADDR=0xBFFE0000
 CONFIG_TARGET_BOSTON=y
 CONFIG_CPU_MIPS32_R6=y
+CONFIG_SYS_MIPS_TIMER_FREQ=30000000
 # CONFIG_MIPS_BOOT_CMDLINE_LEGACY is not set
 # CONFIG_MIPS_BOOT_ENV_LEGACY is not set
 CONFIG_MIPS_BOOT_FDT=y
index 9bfe4a72f884628b18efa07c3dde116d65f66ee7..253d2323749e408931a1e53a98ca8d0c0b9ea421 100644 (file)
@@ -10,6 +10,7 @@ CONFIG_SYS_LOAD_ADDR=0xffffffff88000000
 CONFIG_ENV_ADDR=0xFFFFFFFFBFFE0000
 CONFIG_TARGET_BOSTON=y
 CONFIG_CPU_MIPS64_R2=y
+CONFIG_SYS_MIPS_TIMER_FREQ=30000000
 # CONFIG_MIPS_BOOT_CMDLINE_LEGACY is not set
 # CONFIG_MIPS_BOOT_ENV_LEGACY is not set
 CONFIG_MIPS_BOOT_FDT=y
index 9d28e07df66179ad8f11c0b8df66a290bd98a284..190c993725a0c5c0ec18053cc7dfe041e2c4cee0 100644 (file)
@@ -10,6 +10,7 @@ CONFIG_SYS_LOAD_ADDR=0xffffffff88000000
 CONFIG_ENV_ADDR=0xFFFFFFFFBFFE0000
 CONFIG_TARGET_BOSTON=y
 CONFIG_CPU_MIPS64_R2=y
+CONFIG_SYS_MIPS_TIMER_FREQ=30000000
 # CONFIG_MIPS_BOOT_CMDLINE_LEGACY is not set
 # CONFIG_MIPS_BOOT_ENV_LEGACY is not set
 CONFIG_MIPS_BOOT_FDT=y
index 7f6c158a4c34366cbeb581f460aeebb8e849dbb2..f6e246e07f4e151bf41549e41a65f4ca93b6ba77 100644 (file)
@@ -10,6 +10,7 @@ CONFIG_SYS_LOAD_ADDR=0xffffffff88000000
 CONFIG_ENV_ADDR=0xFFFFFFFFBFFE0000
 CONFIG_TARGET_BOSTON=y
 CONFIG_CPU_MIPS64_R6=y
+CONFIG_SYS_MIPS_TIMER_FREQ=30000000
 # CONFIG_MIPS_BOOT_CMDLINE_LEGACY is not set
 # CONFIG_MIPS_BOOT_ENV_LEGACY is not set
 CONFIG_MIPS_BOOT_FDT=y
index e203d2085f5a53578c240d9dfb89691951387998..82e01bb21f7a2d5ca02024660d32dd2b53631cbf 100644 (file)
@@ -10,6 +10,7 @@ CONFIG_SYS_LOAD_ADDR=0xffffffff88000000
 CONFIG_ENV_ADDR=0xFFFFFFFFBFFE0000
 CONFIG_TARGET_BOSTON=y
 CONFIG_CPU_MIPS64_R6=y
+CONFIG_SYS_MIPS_TIMER_FREQ=30000000
 # CONFIG_MIPS_BOOT_CMDLINE_LEGACY is not set
 # CONFIG_MIPS_BOOT_ENV_LEGACY is not set
 CONFIG_MIPS_BOOT_FDT=y
index 8b75883c03153689e28b32ed568dc67028b0b0ec..ecb3c9ca2fd5efeeb3719cb1346ff80e95242ec9 100644 (file)
@@ -13,6 +13,7 @@ CONFIG_SPL_MMC=y
 CONFIG_SPL=y
 CONFIG_SYS_LOAD_ADDR=0x81000000
 CONFIG_ARCH_JZ47XX=y
+CONFIG_SYS_MIPS_TIMER_FREQ=1200000000
 CONFIG_FIT=y
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyS4,115200 rw rootwait root=/dev/mmcblk0p1"
index b7b5865c02c6934eef3ae791aa35efd1c54b87ff..14dcd60fa111550f151bf7cbe58f7366743d0d4a 100644 (file)
@@ -9,6 +9,7 @@ CONFIG_SYS_PROMPT="AR-5315un # "
 CONFIG_SYS_LOAD_ADDR=0x80100000
 CONFIG_ARCH_BMIPS=y
 CONFIG_SOC_BMIPS_BCM6318=y
+CONFIG_SYS_MIPS_TIMER_FREQ=166500000
 CONFIG_MIPS_CACHE_SETUP=y
 CONFIG_MIPS_CACHE_DISABLE=y
 # CONFIG_MIPS_BOOT_CMDLINE_LEGACY is not set
index f1647a0c8f60fe5584c094656a490feb8062391d..d98a36e83dafad19f94e91a72d0b7b60edf6eee9 100644 (file)
@@ -9,6 +9,7 @@ CONFIG_SYS_PROMPT="AR-5387un # "
 CONFIG_SYS_LOAD_ADDR=0x80100000
 CONFIG_ARCH_BMIPS=y
 CONFIG_SOC_BMIPS_BCM6328=y
+CONFIG_SYS_MIPS_TIMER_FREQ=160000000
 CONFIG_MIPS_CACHE_SETUP=y
 CONFIG_MIPS_CACHE_DISABLE=y
 # CONFIG_MIPS_BOOT_CMDLINE_LEGACY is not set
index e2f44d552e983d771e0908d5eaad8104c9915c50..c5e4c690de1500544562816e038b48de37003145 100644 (file)
@@ -9,6 +9,7 @@ CONFIG_SYS_PROMPT="CT-5361 # "
 CONFIG_SYS_LOAD_ADDR=0x80100000
 CONFIG_ARCH_BMIPS=y
 CONFIG_SOC_BMIPS_BCM6348=y
+CONFIG_SYS_MIPS_TIMER_FREQ=128000000
 CONFIG_MIPS_CACHE_SETUP=y
 CONFIG_MIPS_CACHE_DISABLE=y
 # CONFIG_MIPS_BOOT_CMDLINE_LEGACY is not set
index c92059d3457a36ae8bef1df8ffa6b72c791dc843..51c2248a836e60ceacb2cd573645c24d91b60cdc 100644 (file)
@@ -9,6 +9,7 @@ CONFIG_SYS_PROMPT="VR-3032u # "
 CONFIG_SYS_LOAD_ADDR=0x80100000
 CONFIG_ARCH_BMIPS=y
 CONFIG_SOC_BMIPS_BCM63268=y
+CONFIG_SYS_MIPS_TIMER_FREQ=200000000
 CONFIG_MIPS_CACHE_SETUP=y
 CONFIG_MIPS_CACHE_DISABLE=y
 # CONFIG_MIPS_BOOT_CMDLINE_LEGACY is not set
index 0663418fb7bf1b8d95580056b56507be46bf73e8..79568cfef254b047d21663eb749c843e287c84cf 100644 (file)
@@ -9,6 +9,7 @@ CONFIG_SYS_PROMPT="WAP-5813n # "
 CONFIG_SYS_LOAD_ADDR=0x80100000
 CONFIG_ARCH_BMIPS=y
 CONFIG_SOC_BMIPS_BCM6368=y
+CONFIG_SYS_MIPS_TIMER_FREQ=200000000
 CONFIG_MIPS_CACHE_SETUP=y
 CONFIG_MIPS_CACHE_DISABLE=y
 # CONFIG_MIPS_BOOT_CMDLINE_LEGACY is not set
index 992e85099938b44b03727ca374b844dc48ebebca..aecd6fbfd625301fd21109d40409fffeae914280 100644 (file)
@@ -17,6 +17,7 @@ CONFIG_ENV_OFFSET_REDUND=0xB0000
 CONFIG_SYS_LOAD_ADDR=0x80100000
 CONFIG_ARCH_MTMIPS=y
 CONFIG_SOC_MT7628=y
+CONFIG_SYS_MIPS_TIMER_FREQ=290000000
 CONFIG_MIPS_CACHE_SETUP=y
 CONFIG_MIPS_CACHE_DISABLE=y
 CONFIG_RESTORE_EXCEPTION_VECTOR_BASE=y
index aafec58c8191c918323877d7bef88a9b488cdabe..b53fc9a264a1f60ea40264008442723572a75028 100644 (file)
@@ -9,6 +9,7 @@ CONFIG_SYS_PROMPT="HG556a # "
 CONFIG_SYS_LOAD_ADDR=0x80100000
 CONFIG_ARCH_BMIPS=y
 CONFIG_SOC_BMIPS_BCM6358=y
+CONFIG_SYS_MIPS_TIMER_FREQ=150000000
 CONFIG_MIPS_CACHE_SETUP=y
 CONFIG_MIPS_CACHE_DISABLE=y
 # CONFIG_MIPS_BOOT_CMDLINE_LEGACY is not set
index c27599040f09fa5bac0b8110e3f823f363119c9c..a0632bcbc419821f2fb192f8996429fb6dad37f5 100644 (file)
@@ -7,6 +7,7 @@ CONFIG_DEFAULT_DEVICE_TREE="nexys4ddr"
 CONFIG_SYS_PROMPT="MIPSfpga # "
 CONFIG_SYS_LOAD_ADDR=0x80500000
 CONFIG_TARGET_XILFPGA=y
+CONFIG_SYS_MIPS_TIMER_FREQ=50000000
 CONFIG_MIPS_CACHE_SETUP=y
 CONFIG_MIPS_CACHE_DISABLE=y
 # CONFIG_MIPS_BOOT_ENV_LEGACY is not set
index a129679e9d45a4014a8ea492265892bc79ace9d9..0bdb4e612c54293c9d17377fadb0d2b76cfc3c43 100644 (file)
@@ -15,6 +15,7 @@ CONFIG_SYS_LOAD_ADDR=0x80100000
 CONFIG_ARCH_MTMIPS=y
 CONFIG_SOC_MT7628=y
 CONFIG_BOARD_LINKIT_SMART_7688=y
+CONFIG_SYS_MIPS_TIMER_FREQ=290000000
 CONFIG_MIPS_CACHE_SETUP=y
 CONFIG_MIPS_CACHE_DISABLE=y
 CONFIG_RESTORE_EXCEPTION_VECTOR_BASE=y
index f6bb2d01cfa110907c1ef4a1fc742caaebd26fec..054c5e6d618ed9cec7ba77ef3c3ae498f0bde74e 100644 (file)
@@ -10,6 +10,7 @@ CONFIG_SYS_LOAD_ADDR=0xffffffff81000000
 CONFIG_ENV_ADDR=0xFFFFFFFFBE3E0000
 CONFIG_TARGET_MALTA=y
 CONFIG_CPU_MIPS64_R2=y
+CONFIG_SYS_MIPS_TIMER_FREQ=250000000
 # CONFIG_AUTOBOOT is not set
 CONFIG_BOARD_EARLY_INIT_F=y
 CONFIG_MISC_INIT_R=y
index 7d11966878744d17c338814784d1775fd2008091..55f624bbeeb9ec705f8d336af97b42871a9b138f 100644 (file)
@@ -11,6 +11,7 @@ CONFIG_ENV_ADDR=0xFFFFFFFFBE3E0000
 CONFIG_TARGET_MALTA=y
 CONFIG_BUILD_TARGET="u-boot-swap.bin"
 CONFIG_CPU_MIPS64_R2=y
+CONFIG_SYS_MIPS_TIMER_FREQ=250000000
 CONFIG_SYS_LITTLE_ENDIAN=y
 # CONFIG_AUTOBOOT is not set
 CONFIG_BOARD_EARLY_INIT_F=y
index f0b46bf668922943e7b9dac432eba497f3844fb7..53762a94e2a34ff70bee2052f8850f33a9f02d14 100644 (file)
@@ -9,6 +9,7 @@ CONFIG_SYS_PROMPT="malta # "
 CONFIG_SYS_LOAD_ADDR=0x81000000
 CONFIG_ENV_ADDR=0xBE3E0000
 CONFIG_TARGET_MALTA=y
+CONFIG_SYS_MIPS_TIMER_FREQ=250000000
 # CONFIG_AUTOBOOT is not set
 CONFIG_BOARD_EARLY_INIT_F=y
 CONFIG_MISC_INIT_R=y
index c1829acb2890ab65a37bba8d9859f545a2508053..8b86d74dc41addcf4a0024002e3867d2e88ae6b8 100644 (file)
@@ -10,6 +10,7 @@ CONFIG_SYS_LOAD_ADDR=0x81000000
 CONFIG_ENV_ADDR=0xBE3E0000
 CONFIG_TARGET_MALTA=y
 CONFIG_BUILD_TARGET="u-boot-swap.bin"
+CONFIG_SYS_MIPS_TIMER_FREQ=250000000
 CONFIG_SYS_LITTLE_ENDIAN=y
 # CONFIG_AUTOBOOT is not set
 CONFIG_BOARD_EARLY_INIT_F=y
index 1b0d32e396c3469993a8f80c9bf8fe40c6309bc8..b30b804dbf258738c9a8dfdd1b8fc3a182de180b 100644 (file)
@@ -14,6 +14,7 @@ CONFIG_ENV_OFFSET_REDUND=0x140000
 CONFIG_SYS_LOAD_ADDR=0x100000
 CONFIG_ARCH_MSCC=y
 CONFIG_SOC_JR2=y
+CONFIG_SYS_MIPS_TIMER_FREQ=250000000
 CONFIG_DEBUG_UART=y
 CONFIG_SYS_MEMTEST_START=0x80000000
 CONFIG_SYS_MEMTEST_END=0x9fc00000
index 30f7802482d93cc87c6ba02e7759b8b8186af1ce..9a1e0c3e064bf90e70ea269e305bb1a294aef932 100644 (file)
@@ -15,6 +15,7 @@ CONFIG_SYS_LOAD_ADDR=0x100000
 CONFIG_ARCH_MSCC=y
 CONFIG_SOC_LUTON=y
 CONFIG_DDRTYPE_MT47H128M8HQ=y
+CONFIG_SYS_MIPS_TIMER_FREQ=208333333
 CONFIG_MIPS_BOOT_FDT=y
 CONFIG_DEBUG_UART=y
 CONFIG_SYS_MEMTEST_START=0x80000000
index cd1d92316d4b9a0ff224c8df32d90544d1c02c8f..a372b21f66b0f4ffd610bb73a35f4dca96e7b7d3 100644 (file)
@@ -13,6 +13,7 @@ CONFIG_DEBUG_UART_BOARD_INIT=y
 CONFIG_ENV_OFFSET_REDUND=0x140000
 CONFIG_SYS_LOAD_ADDR=0x100000
 CONFIG_ARCH_MSCC=y
+CONFIG_SYS_MIPS_TIMER_FREQ=250000000
 CONFIG_DEBUG_UART=y
 CONFIG_SYS_MEMTEST_START=0x80000000
 CONFIG_SYS_MEMTEST_END=0x9fc00000
index b5d019009d544eab0d2897ab6c7ce0cd04d02eae..055ed68305a2b2c0bdebac33f94f20197989dd51 100644 (file)
@@ -12,6 +12,7 @@ CONFIG_SYS_LOAD_ADDR=0x100000
 CONFIG_ARCH_MSCC=y
 CONFIG_SOC_SERVAL=y
 CONFIG_DDRTYPE_H5TQ1G63BFA=y
+CONFIG_SYS_MIPS_TIMER_FREQ=208333333
 CONFIG_SYS_MEMTEST_START=0x80000000
 CONFIG_SYS_MEMTEST_END=0x87c00000
 CONFIG_SYS_LITTLE_ENDIAN=y
index d471654f8e16e8af5255a5e1d2cb2729aa059b11..6e225a69389032d3aee7765c519691cc4dca2613 100644 (file)
@@ -11,6 +11,7 @@ CONFIG_ENV_OFFSET_REDUND=0x140000
 CONFIG_SYS_LOAD_ADDR=0x100000
 CONFIG_ARCH_MSCC=y
 CONFIG_SOC_SERVALT=y
+CONFIG_SYS_MIPS_TIMER_FREQ=250000000
 CONFIG_SYS_MEMTEST_START=0x80000000
 CONFIG_SYS_MEMTEST_END=0x9fc00000
 CONFIG_SYS_LITTLE_ENDIAN=y
index 8c64bb740a305cf2e166ee0704009d86e55e7f8a..96f10926b1364ea1d334d38ffc65d8a16577b7f3 100644 (file)
@@ -16,6 +16,7 @@ CONFIG_DEBUG_UART_CLOCK=40000000
 CONFIG_SYS_LOAD_ADDR=0x80010000
 CONFIG_ARCH_MTMIPS=y
 CONFIG_BOARD_MT7620_MT7530_RFB=y
+CONFIG_SYS_MIPS_TIMER_FREQ=290000000
 CONFIG_MIPS_CACHE_SETUP=y
 CONFIG_MIPS_CACHE_DISABLE=y
 CONFIG_RESTORE_EXCEPTION_VECTOR_BASE=y
index 2aa6eb7e2697fc53fbf72cb9d4a6e0aa16bb5b1a..d96da91df364325cb115814cbd088dc2663279be 100644 (file)
@@ -15,6 +15,7 @@ CONFIG_DEBUG_UART_BASE=0xb0000c00
 CONFIG_DEBUG_UART_CLOCK=40000000
 CONFIG_SYS_LOAD_ADDR=0x80010000
 CONFIG_ARCH_MTMIPS=y
+CONFIG_SYS_MIPS_TIMER_FREQ=290000000
 CONFIG_MIPS_CACHE_SETUP=y
 CONFIG_MIPS_CACHE_DISABLE=y
 CONFIG_RESTORE_EXCEPTION_VECTOR_BASE=y
index 0ad4849eb2aea68c5f7d949a5db7cae479a7b1f1..ee30f48fc3f6fbd75bce872db96bb6f537f5eb53 100644 (file)
@@ -15,6 +15,7 @@ CONFIG_ARCH_MTMIPS=y
 CONFIG_SOC_MT7621=y
 CONFIG_MT7621_BOOT_FROM_NAND=y
 CONFIG_BOARD_MT7621_NAND_RFB=y
+CONFIG_SYS_MIPS_TIMER_FREQ=440000000
 # CONFIG_MIPS_CACHE_SETUP is not set
 # CONFIG_MIPS_CACHE_DISABLE is not set
 CONFIG_RESTORE_EXCEPTION_VECTOR_BASE=y
index fa663648173d33ab6b2428234b77e8205c39f012..9987cc5769a4c1f1824990d99719c4b7dc0e7887 100644 (file)
@@ -13,6 +13,7 @@ CONFIG_DEBUG_UART_CLOCK=50000000
 CONFIG_SYS_LOAD_ADDR=0x83000000
 CONFIG_ARCH_MTMIPS=y
 CONFIG_SOC_MT7621=y
+CONFIG_SYS_MIPS_TIMER_FREQ=440000000
 # CONFIG_MIPS_CACHE_SETUP is not set
 # CONFIG_MIPS_CACHE_DISABLE is not set
 CONFIG_RESTORE_EXCEPTION_VECTOR_BASE=y
index 14fc8b05e3cfa3ea29a768a5dd36fb860369a202..0e100fca498b8f033eb6736d8dc57e3280790110 100644 (file)
@@ -15,6 +15,7 @@ CONFIG_SYS_LOAD_ADDR=0x80010000
 CONFIG_ARCH_MTMIPS=y
 CONFIG_SOC_MT7628=y
 CONFIG_BOARD_MT7628_RFB=y
+CONFIG_SYS_MIPS_TIMER_FREQ=290000000
 CONFIG_MIPS_CACHE_SETUP=y
 CONFIG_MIPS_CACHE_DISABLE=y
 CONFIG_RESTORE_EXCEPTION_VECTOR_BASE=y
index ef7c60adc239884fd5d513dcb5e5d7aeed1f3bd8..734a093ea3f9429459c3694397af39f91b307855 100644 (file)
@@ -8,6 +8,7 @@ CONFIG_DEFAULT_DEVICE_TREE="netgear,cg3100d"
 CONFIG_SYS_PROMPT="CG3100D # "
 CONFIG_SYS_LOAD_ADDR=0x80100000
 CONFIG_ARCH_BMIPS=y
+CONFIG_SYS_MIPS_TIMER_FREQ=166500000
 CONFIG_MIPS_CACHE_SETUP=y
 CONFIG_MIPS_CACHE_DISABLE=y
 # CONFIG_MIPS_BOOT_CMDLINE_LEGACY is not set
index 8cf5f1bc54ac18ae16c8cc72f78be181660f13bc..b94fe4b4cdac662c3b006b82ca80580c5590f306 100644 (file)
@@ -9,6 +9,7 @@ CONFIG_SYS_PROMPT="DGND3700v2 # "
 CONFIG_SYS_LOAD_ADDR=0x80100000
 CONFIG_ARCH_BMIPS=y
 CONFIG_SOC_BMIPS_BCM6362=y
+CONFIG_SYS_MIPS_TIMER_FREQ=200000000
 CONFIG_MIPS_CACHE_SETUP=y
 CONFIG_MIPS_CACHE_DISABLE=y
 # CONFIG_MIPS_BOOT_CMDLINE_LEGACY is not set
index d4eb6f42088c931f2cf5618b7ab9bb8f15aa4f4e..529444f8a127fd1a0f2c5e6416e5696aa563818f 100644 (file)
@@ -8,6 +8,7 @@ CONFIG_DEFAULT_DEVICE_TREE="pic32mzda_sk"
 CONFIG_SYS_PROMPT="dask # "
 CONFIG_SYS_LOAD_ADDR=0x88500000
 CONFIG_MACH_PIC32=y
+CONFIG_SYS_MIPS_TIMER_FREQ=100000000
 # CONFIG_MIPS_BOOT_ENV_LEGACY is not set
 CONFIG_MIPS_BOOT_FDT=y
 CONFIG_SYS_MEMTEST_START=0x88000000
index 744e132ed6ffecc4360051eb3792affc64cbd4da..ac3719ca438c1d36a741071be77333d43de80a88 100644 (file)
@@ -9,6 +9,7 @@ CONFIG_SYS_PROMPT="F@ST1704 # "
 CONFIG_SYS_LOAD_ADDR=0x80100000
 CONFIG_ARCH_BMIPS=y
 CONFIG_SOC_BMIPS_BCM6338=y
+CONFIG_SYS_MIPS_TIMER_FREQ=120000000
 CONFIG_MIPS_CACHE_SETUP=y
 CONFIG_MIPS_CACHE_DISABLE=y
 # CONFIG_MIPS_BOOT_CMDLINE_LEGACY is not set
index 6260939553b9926f1b93c23d107dc44bfb9bb537..704a6d4fda0483463021a35e6f2c0863dd6e2389 100644 (file)
@@ -10,6 +10,7 @@ CONFIG_SYS_LOAD_ADDR=0x80100000
 CONFIG_ARCH_BMIPS=y
 CONFIG_SOC_BMIPS_BCM6358=y
 CONFIG_BOARD_SFR_NB4_SER=y
+CONFIG_SYS_MIPS_TIMER_FREQ=150000000
 CONFIG_MIPS_CACHE_SETUP=y
 CONFIG_MIPS_CACHE_DISABLE=y
 # CONFIG_MIPS_BOOT_CMDLINE_LEGACY is not set
index b60f63497ace7e144e77bfd589b9ceec809e818e..87289069b8bd8daca0bd3d3f4824426fa0346c79 100644 (file)
@@ -6,6 +6,7 @@ CONFIG_DEFAULT_DEVICE_TREE="tplink_wdr4300"
 CONFIG_SYS_LOAD_ADDR=0xa1000000
 CONFIG_ARCH_ATH79=y
 CONFIG_BOARD_TPLINK_WDR4300=y
+CONFIG_SYS_MIPS_TIMER_FREQ=280000000
 CONFIG_SYS_MEMTEST_START=0x80100000
 CONFIG_SYS_MEMTEST_END=0x83f00000
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
index b362d549a21d4618b3441cf301f9df51447ef59f..98429a69a77754e525eaa8a71df7d18d4898df58 100644 (file)
@@ -16,6 +16,7 @@ CONFIG_SYS_LOAD_ADDR=0x80100000
 CONFIG_ARCH_MTMIPS=y
 CONFIG_SOC_MT7628=y
 CONFIG_BOARD_VOCORE2=y
+CONFIG_SYS_MIPS_TIMER_FREQ=290000000
 CONFIG_MIPS_CACHE_SETUP=y
 CONFIG_MIPS_CACHE_DISABLE=y
 CONFIG_RESTORE_EXCEPTION_VECTOR_BASE=y
index 61cc073a8a558fb882e3e9630a608580aca4f2d3..650140bb724c62609c851d4233214bf4ae0ac093 100644 (file)
@@ -6,8 +6,6 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#define CONFIG_SYS_MIPS_TIMER_FREQ      200000000
-
 #define CONFIG_SYS_SDRAM_BASE           0x80000000
 
 #define CONFIG_SYS_INIT_RAM_ADDR        0xbd000000
index 579b9b4f2c028f67c0138a373b4763229551d043..0eed8db23bd9259c88132f93dfa2135278fc7a5e 100644 (file)
@@ -6,8 +6,6 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#define CONFIG_SYS_MIPS_TIMER_FREQ      325000000
-
 #define CONFIG_SYS_SDRAM_BASE           0x80000000
 
 #define CONFIG_SYS_INIT_RAM_ADDR        0xbd000000
index 283762fd220b99700f6ab55c1e0dd2371fbecb3c..7124711119095949e4bbf2e7f6325bf729466b0a 100644 (file)
@@ -6,8 +6,6 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#define CONFIG_SYS_MIPS_TIMER_FREQ      375000000
-
 #define CONFIG_SYS_SDRAM_BASE           0x80000000
 
 #define CONFIG_SYS_INIT_RAM_ADDR        0xbd000000
index 66c23cd1d7a8e7cf07037890c10981df82081af8..c328f41420159ef571b2cb05b8eb8010deb1d611 100644 (file)
@@ -8,9 +8,6 @@
 
 #include <linux/sizes.h>
 
-/* CPU */
-#define CONFIG_SYS_MIPS_TIMER_FREQ     166500000
-
 /* RAM */
 #define CONFIG_SYS_SDRAM_BASE          0x80000000
 
index 55c1d439d58bfd317224057e5a12a69d746eacd6..d16d50e5ec2fc18dee89df7b18e07aed03f2507d 100644 (file)
@@ -8,9 +8,6 @@
 
 #include <linux/sizes.h>
 
-/* CPU */
-#define CONFIG_SYS_MIPS_TIMER_FREQ     166500000
-
 /* RAM */
 #define CONFIG_SYS_SDRAM_BASE          0x80000000
 
index f046b7e6622f697afb377479cc2b1c09d7441a8a..f69c46b11c4b12942fa0dca052d490dbe633bd1b 100644 (file)
@@ -8,9 +8,6 @@
 
 #include <linux/sizes.h>
 
-/* CPU */
-#define CONFIG_SYS_MIPS_TIMER_FREQ     200000000
-
 /* RAM */
 #define CONFIG_SYS_SDRAM_BASE          0x80000000
 
index 7e488072edc0b1302a5aaf1a665fcd4ee2e97e08..acd021ecadcc88f44727bcaa312aae0ee9edf7be 100644 (file)
@@ -8,9 +8,6 @@
 
 #include <linux/sizes.h>
 
-/* CPU */
-#define CONFIG_SYS_MIPS_TIMER_FREQ     160000000
-
 /* RAM */
 #define CONFIG_SYS_SDRAM_BASE          0x80000000
 
index b8a962dfa2fbdd81bc3851752faf6c82f492c780..fa9e5f02a085013cd3cf081eb813383aa924a05d 100644 (file)
@@ -8,9 +8,6 @@
 
 #include <linux/sizes.h>
 
-/* CPU */
-#define CONFIG_SYS_MIPS_TIMER_FREQ     120000000
-
 /* RAM */
 #define CONFIG_SYS_SDRAM_BASE          0x80000000
 
index b23ab6a13cc97de689f68927a2b0fcb746c81416..bcf5c874d3223cbd674e60a475890b4f77fe0c35 100644 (file)
@@ -8,9 +8,6 @@
 
 #include <linux/sizes.h>
 
-/* CPU */
-#define CONFIG_SYS_MIPS_TIMER_FREQ     128000000
-
 /* RAM */
 #define CONFIG_SYS_SDRAM_BASE          0x80000000
 
index 106af2d2772754c08caf4b5683605fc27a967a6b..e31b8bc719e6952fbf991714bfb51bfc43ef05b1 100644 (file)
@@ -8,9 +8,6 @@
 
 #include <linux/sizes.h>
 
-/* CPU */
-#define CONFIG_SYS_MIPS_TIMER_FREQ     150000000
-
 /* RAM */
 #define CONFIG_SYS_SDRAM_BASE          0x80000000
 
index 34e542544cb890e947a7892fb3becb3c9f38ac83..6e707d341b7fea1e6085dc7f85a7e91dad7a856a 100644 (file)
@@ -8,9 +8,6 @@
 
 #include <linux/sizes.h>
 
-/* CPU */
-#define CONFIG_SYS_MIPS_TIMER_FREQ     200000000
-
 /* RAM */
 #define CONFIG_SYS_SDRAM_BASE          0x80000000
 
index fb1d760a8f3a146ee5975abc53c7954d4000e990..bb72c8cb533b6127bf90fcb118879bdb7a350c30 100644 (file)
@@ -8,9 +8,6 @@
 
 #include <linux/sizes.h>
 
-/* CPU */
-#define CONFIG_SYS_MIPS_TIMER_FREQ     200000000
-
 /* RAM */
 #define CONFIG_SYS_SDRAM_BASE          0x80000000
 
index 481dfc20b3c052274e8270a3a06a5d52ffd5089b..a1c992b7a6e61e718bd376f7c599def509b5d189 100644 (file)
@@ -8,9 +8,6 @@
 
 #include <linux/sizes.h>
 
-/* CPU */
-#define CONFIG_SYS_MIPS_TIMER_FREQ     160000000
-
 /* RAM */
 #define CONFIG_SYS_SDRAM_BASE          0x80000000
 
index 5d6da772059d0813bbe012e976600ac111eb79c2..a09e831c540eb3963f863fc649967432c21e3e53 100644 (file)
@@ -13,7 +13,6 @@
 /*
  * CPU
  */
-#define CONFIG_SYS_MIPS_TIMER_FREQ     30000000
 
 /*
  * PCI
index 7e8a9fcb801ce3f5378f0013fe73e9539942100c..d094fb594fc6c0a771732a08f7f8e9a22b6095cb 100644 (file)
@@ -9,9 +9,6 @@
 #ifndef __CONFIG_CI20_H__
 #define __CONFIG_CI20_H__
 
-/* Ingenic JZ4780 clock configuration. */
-#define CONFIG_SYS_MIPS_TIMER_FREQ     1200000000
-
 /* Memory configuration */
 #define CONFIG_SYS_MONITOR_LEN         (512 * 1024)
 
index 5f33470dfc0cd9474c73b959fe7b4d8a74f942ab..965fa87c6577cab77a4669b8545ec52183b5693e 100644 (file)
@@ -6,9 +6,6 @@
 #ifndef __CONFIG_GARDENA_SMART_GATEWAY_H
 #define __CONFIG_GARDENA_SMART_GATEWAY_H
 
-/* CPU */
-#define CONFIG_SYS_MIPS_TIMER_FREQ     290000000
-
 /* RAM */
 #define CONFIG_SYS_SDRAM_BASE          0x80000000
 
index 599b0c50defe64a7cb0277242cfcb0b85b90672d..1fc45f9060bb41a307aef5d7eb2d3c5fba9aa0ad 100644 (file)
@@ -15,8 +15,6 @@
 /*--------------------------------------------
  * CPU configuration
  */
-/* CPU Timer rate */
-#define CONFIG_SYS_MIPS_TIMER_FREQ     50000000
 
 /*----------------------------------------------------------------------
  * Memory Layout
index a65decd3fd3c2f058aa48ddb852e42da82243050..9eedd47c07e5f9baec78b4c2e894645387a0ef4e 100644 (file)
@@ -6,9 +6,6 @@
 #ifndef __CONFIG_LINKIT_SMART_7688_H
 #define __CONFIG_LINKIT_SMART_7688_H
 
-/* CPU */
-#define CONFIG_SYS_MIPS_TIMER_FREQ     290000000
-
 /* RAM */
 #define CONFIG_SYS_SDRAM_BASE          0x80000000
 
index 080d8aa862c9cbe6de556e80816e85ef8dfeff1a..ff70a5972a50b1919ef88f82130db6b19f9d182e 100644 (file)
@@ -18,7 +18,6 @@
 /*
  * CPU Configuration
  */
-#define CONFIG_SYS_MIPS_TIMER_FREQ     250000000
 
 /*
  * Memory map
index c6bee5f140360e8aef8b70e7864cfb0f67794dac..c76e1fcaed9e785bd3f88acd263894c4247248b5 100644 (file)
@@ -8,8 +8,6 @@
 #ifndef __CONFIG_MT7620_H
 #define __CONFIG_MT7620_H
 
-#define CONFIG_SYS_MIPS_TIMER_FREQ     290000000
-
 #define CONFIG_SYS_SDRAM_BASE          0x80000000
 
 #define CONFIG_SYS_INIT_SP_OFFSET      0x400000
index 1f6899708033512b76d7120ec397abe6cabde37f..554c435842bd377214a60d145e7ba8e733291e3e 100644 (file)
@@ -8,8 +8,6 @@
 #ifndef __CONFIG_MT7621_H
 #define __CONFIG_MT7621_H
 
-#define CONFIG_SYS_MIPS_TIMER_FREQ     440000000
-
 #define CONFIG_SYS_SDRAM_BASE          0x80000000
 
 #define CONFIG_VERY_BIG_RAM
index 317d1d2b0f0f6669f6426f162fe4ee58d0a39b4b..43527017d84a20587fd47242279792affd6c12b9 100644 (file)
@@ -8,8 +8,6 @@
 #ifndef __CONFIG_MT7628_H
 #define __CONFIG_MT7628_H
 
-#define CONFIG_SYS_MIPS_TIMER_FREQ     290000000
-
 #define CONFIG_SYS_SDRAM_BASE          0x80000000
 
 #define CONFIG_SYS_INIT_SP_OFFSET      0x80000
index 0a07c9c29c18ec0e67fc7705d1ad7b533d6ff5a9..9d796f9f341a2bbec2bf7cf274fbdaf9960d6a41 100644 (file)
@@ -13,8 +13,6 @@
 /*--------------------------------------------
  * CPU configuration
  */
-/* CPU Timer rate */
-#define CONFIG_SYS_MIPS_TIMER_FREQ     100000000
 
 /*----------------------------------------------------------------------
  * Memory Layout
index 1400a211e3ad05eaa1a3f61dd6803bcba4741f21..b14726ad234fbbc2588d7c931f9ba380ebb3cd1c 100644 (file)
@@ -6,8 +6,6 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#define CONFIG_SYS_MIPS_TIMER_FREQ     280000000
-
 #define CONFIG_SYS_SDRAM_BASE          0xa0000000
 
 #define CONFIG_SYS_INIT_RAM_ADDR       0xbd000000
index 5c5036b8be65a689cdb8568f65746757f318b4b8..02ddc6fb6e0b4797938b4faaeb38e1a961e8c8db 100644 (file)
 
 #define CONFIG_SYS_INIT_SP_OFFSET       0x400000
 
-#if defined(CONFIG_SOC_LUTON) || defined(CONFIG_SOC_SERVAL)
-#define CONFIG_SYS_MIPS_TIMER_FREQ     208333333
-#else
-#define CONFIG_SYS_MIPS_TIMER_FREQ     250000000
-#endif
 #define CONFIG_SYS_NS16550_CLK         CONFIG_SYS_MIPS_TIMER_FREQ
 
 #define CONFIG_SYS_SDRAM_BASE          0x80000000
index b2572caaf273a90ef520c0931113940553fa6175..6f36d6964b9bd41467ba58391e6f5ec3b3c881bb 100644 (file)
@@ -6,9 +6,6 @@
 #ifndef __VOCORE2_CONFIG_H__
 #define __VOCORE2_CONFIG_H__
 
-/* CPU */
-#define CONFIG_SYS_MIPS_TIMER_FREQ     290000000
-
 /* RAM */
 #define CONFIG_SYS_SDRAM_BASE          0x80000000
 
index e679df4f15e2a4b6e0a4e5b029a6e49646c92a3f..c3e0f532f7d7fc8f4429261fbfed6fbef91ae002 100644 (file)
@@ -872,7 +872,6 @@ CONFIG_SYS_MDIO1_OFFSET
 CONFIG_SYS_MEMORY_BASE
 CONFIG_SYS_MEM_RESERVE_SECURE
 CONFIG_SYS_MFD
-CONFIG_SYS_MIPS_TIMER_FREQ
 CONFIG_SYS_MMC_CD_PIN
 CONFIG_SYS_MMC_CLK_OD
 CONFIG_SYS_MMC_MAX_BLK_COUNT