]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Finish conversion of CONFIG_SYS_CLK_FREQ to Kconfig
authorTom Rini <trini@konsulko.com>
Tue, 14 Dec 2021 18:36:40 +0000 (13:36 -0500)
committerTom Rini <trini@konsulko.com>
Mon, 27 Dec 2021 21:20:18 +0000 (16:20 -0500)
In order to finish moving this symbol to Kconfig for all platforms, we
need to do a few more things.  First, for all platforms that define this
to a function, introduce CONFIG_DYNAMIC_SYS_CLK_FREQ, similar to
CONFIG_DYNAMIC_DDR_CLK_FREQ and populate clock_legacy.h.  This entails
also switching all users from CONFIG_SYS_CLK_FREQ to get_board_sys_clk()
and updating a few preprocessor tests.

With that done, all platforms that define a value here can be converted
to Kconfig, and a fall-back of zero is sufficiently safe to use (and
what is used today in cases where code may or may not have this
available).  Make sure that code which calls this function includes
<clock_legacy.h> to get the prototype.

Signed-off-by: Tom Rini <trini@konsulko.com>
208 files changed:
arch/arc/lib/cpu.c
arch/arm/cpu/arm920t/ep93xx/speed.c
arch/arm/cpu/arm920t/imx/speed.c
arch/arm/cpu/armv7/ls102xa/clock.c
arch/arm/cpu/armv7/ls102xa/fdt.c
arch/arm/cpu/armv8/fsl-layerscape/cpu.c
arch/arm/cpu/armv8/fsl-layerscape/fdt.c
arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c
arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c
arch/arm/cpu/armv8/fsl-layerscape/mp.c
arch/arm/mach-davinci/cpu.c
arch/arm/mach-exynos/clock.c
arch/nds32/cpu/n1213/ag101/timer.c
arch/powerpc/cpu/mpc83xx/pcie.c
arch/powerpc/cpu/mpc83xx/speed.c
arch/powerpc/cpu/mpc83xx/spl_minimal.c
arch/powerpc/cpu/mpc85xx/fdt.c
arch/powerpc/cpu/mpc85xx/speed.c
arch/sh/include/asm/config.h
arch/xtensa/lib/time.c
board/cadence/xtfpga/xtfpga.c
board/freescale/common/cadmus.c
board/freescale/common/ics307_clk.c
board/freescale/ls1043aqds/ls1043aqds.c
board/freescale/ls1046aqds/ls1046aqds.c
board/freescale/ls1088a/ls1088a.c
board/freescale/ls2080aqds/ls2080aqds.c
board/freescale/ls2080ardb/ls2080ardb.c
board/freescale/p1010rdb/spl.c
board/freescale/p1010rdb/spl_minimal.c
board/freescale/p1_p2_rdb_pc/spl.c
board/freescale/p1_p2_rdb_pc/spl_minimal.c
board/freescale/p2041rdb/p2041rdb.c
board/freescale/t102xrdb/spl.c
board/freescale/t104xrdb/spl.c
board/freescale/t208xqds/t208xqds.c
board/freescale/t208xrdb/spl.c
board/freescale/t4rdb/spl.c
board/renesas/eagle/eagle.c
board/renesas/gose/gose.c
board/renesas/koelsch/koelsch.c
board/renesas/lager/lager.c
board/renesas/porter/porter.c
board/renesas/stout/stout.c
board/socrates/socrates.c
board/sunxi/board.c
board/xes/common/fsl_8xxx_clk.c
boot/Kconfig
configs/MPC8548CDS_36BIT_defconfig
configs/MPC8548CDS_defconfig
configs/MPC8548CDS_legacy_defconfig
configs/P2041RDB_NAND_defconfig
configs/P2041RDB_SDCARD_defconfig
configs/P2041RDB_SPIFLASH_defconfig
configs/P2041RDB_defconfig
configs/P3041DS_NAND_defconfig
configs/P3041DS_SDCARD_defconfig
configs/P3041DS_SPIFLASH_defconfig
configs/P3041DS_defconfig
configs/P4080DS_SDCARD_defconfig
configs/P4080DS_SPIFLASH_defconfig
configs/P4080DS_defconfig
configs/P5040DS_NAND_defconfig
configs/P5040DS_SDCARD_defconfig
configs/P5040DS_SPIFLASH_defconfig
configs/P5040DS_defconfig
configs/T2080QDS_NAND_defconfig
configs/T2080QDS_SDCARD_defconfig
configs/T2080QDS_SECURE_BOOT_defconfig
configs/T2080QDS_SPIFLASH_defconfig
configs/T2080QDS_SRIO_PCIE_BOOT_defconfig
configs/T2080QDS_defconfig
configs/adp-ae3xx_defconfig
configs/adp-ag101p_defconfig
configs/armadillo-800eva_defconfig
configs/da850evm_defconfig
configs/da850evm_direct_nor_defconfig
configs/da850evm_nand_defconfig
configs/grpeach_defconfig
configs/kmcent2_defconfig
configs/legoev3_defconfig
configs/ls1021aqds_ddr4_nor_defconfig
configs/ls1021aqds_ddr4_nor_lpuart_defconfig
configs/ls1021aqds_nand_defconfig
configs/ls1021aqds_nor_SECURE_BOOT_defconfig
configs/ls1021aqds_nor_defconfig
configs/ls1021aqds_nor_lpuart_defconfig
configs/ls1021aqds_sdcard_ifc_defconfig
configs/ls1043aqds_defconfig
configs/ls1043aqds_lpuart_defconfig
configs/ls1043aqds_nand_defconfig
configs/ls1043aqds_nor_ddr3_defconfig
configs/ls1043aqds_qspi_defconfig
configs/ls1043aqds_sdcard_ifc_defconfig
configs/ls1043aqds_sdcard_qspi_defconfig
configs/ls1043aqds_tfa_SECURE_BOOT_defconfig
configs/ls1043aqds_tfa_defconfig
configs/ls1046aqds_SECURE_BOOT_defconfig
configs/ls1046aqds_defconfig
configs/ls1046aqds_lpuart_defconfig
configs/ls1046aqds_nand_defconfig
configs/ls1046aqds_qspi_defconfig
configs/ls1046aqds_sdcard_ifc_defconfig
configs/ls1046aqds_sdcard_qspi_defconfig
configs/ls1046aqds_tfa_SECURE_BOOT_defconfig
configs/ls1046aqds_tfa_defconfig
configs/ls1088aqds_defconfig
configs/ls1088aqds_sdcard_ifc_defconfig
configs/ls1088aqds_tfa_defconfig
configs/ls2080aqds_SECURE_BOOT_defconfig
configs/ls2080aqds_defconfig
configs/ls2080aqds_nand_defconfig
configs/ls2080aqds_qspi_defconfig
configs/ls2080aqds_sdcard_defconfig
configs/ls2080ardb_SECURE_BOOT_defconfig
configs/ls2080ardb_defconfig
configs/ls2080ardb_nand_defconfig
configs/ls2081ardb_defconfig
configs/ls2088aqds_tfa_defconfig
configs/ls2088ardb_qspi_SECURE_BOOT_defconfig
configs/ls2088ardb_qspi_defconfig
configs/ls2088ardb_tfa_SECURE_BOOT_defconfig
configs/ls2088ardb_tfa_defconfig
configs/lx2160aqds_tfa_SECURE_BOOT_defconfig
configs/lx2160aqds_tfa_defconfig
configs/lx2160ardb_tfa_SECURE_BOOT_defconfig
configs/lx2160ardb_tfa_defconfig
configs/lx2160ardb_tfa_stmm_defconfig
configs/lx2162aqds_tfa_SECURE_BOOT_defconfig
configs/lx2162aqds_tfa_defconfig
configs/lx2162aqds_tfa_verified_boot_defconfig
configs/omapl138_lcdk_defconfig
configs/pg_wcom_expu1_defconfig
configs/pg_wcom_seli8_defconfig
configs/qemu-ppce500_defconfig
configs/r2dplus_defconfig
configs/r8a779a0_falcon_defconfig
configs/smdkc100_defconfig
configs/ti816x_evm_defconfig
configs/xtfpga_defconfig
drivers/clk/mpc83xx_clk.h
drivers/serial/serial_lpuart.c
drivers/timer/ostm_timer.c
include/clock_legacy.h
include/configs/MPC8540ADS.h
include/configs/MPC8548CDS.h
include/configs/MPC8560ADS.h
include/configs/P1010RDB.h
include/configs/P2041RDB.h
include/configs/T102xRDB.h
include/configs/T104xRDB.h
include/configs/T208xQDS.h
include/configs/T208xRDB.h
include/configs/T4240RDB.h
include/configs/adp-ae3xx.h
include/configs/adp-ag101p.h
include/configs/alt.h
include/configs/armadillo-800eva.h
include/configs/blanche.h
include/configs/condor.h
include/configs/corenet_ds.h
include/configs/da850evm.h
include/configs/eagle.h
include/configs/exynos-common.h
include/configs/falcon.h
include/configs/gose.h
include/configs/grpeach.h
include/configs/km/km-mpc8309.h
include/configs/km/km-mpc832x.h
include/configs/km/pg-wcom-ls102xa.h
include/configs/kmcent2.h
include/configs/kmcoge5ne.h
include/configs/koelsch.h
include/configs/kontron_sl28.h
include/configs/kzm9g.h
include/configs/lager.h
include/configs/legoev3.h
include/configs/ls1012a_common.h
include/configs/ls1021aiot.h
include/configs/ls1021aqds.h
include/configs/ls1021atsn.h
include/configs/ls1021atwr.h
include/configs/ls1028aqds.h
include/configs/ls1028ardb.h
include/configs/ls1043aqds.h
include/configs/ls1043ardb.h
include/configs/ls1046afrwy.h
include/configs/ls1046aqds.h
include/configs/ls1046ardb.h
include/configs/ls1088aqds.h
include/configs/ls1088ardb.h
include/configs/ls2080aqds.h
include/configs/ls2080ardb.h
include/configs/lx2160a_common.h
include/configs/omapl138_lcdk.h
include/configs/p1_p2_rdb_pc.h
include/configs/porter.h
include/configs/qemu-ppce500.h
include/configs/r2dplus.h
include/configs/rcar-gen2-common.h
include/configs/silk.h
include/configs/smdkc100.h
include/configs/socrates.h
include/configs/stout.h
include/configs/ti816x_evm.h
include/configs/xtfpga.h
include/faraday/ftwdt010_wdt.h
lib/time.c

index 07f57878ef14c792f5932159ed960d8d0d5ecc29..6b215206a2728d4821d7e82b520b8f4f64e201fa 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <init.h>
 #include <malloc.h>
 #include <vsprintf.h>
@@ -18,7 +19,7 @@ int arch_cpu_init(void)
 {
        timer_init();
 
-       gd->cpu_clk = CONFIG_SYS_CLK_FREQ;
+       gd->cpu_clk = get_board_sys_clk();
        gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
 
        cache_init();
index 51e9dda0550d8ca804dd6c641c3bd1481fd258e8..8dd3904e82c8ad123fd931a8039e47b9a5bd73b6 100644 (file)
@@ -6,12 +6,13 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <asm/arch/ep93xx.h>
 #include <asm/io.h>
 #include <div64.h>
 
 /*
- * CONFIG_SYS_CLK_FREQ should be defined as the input frequency of the PLL.
+ * get_board_sys_clk() should be defined as the input frequency of the PLL.
  *
  * get_FCLK(), get_HCLK(), get_PCLK() and get_UCLK() return the clock of
  * the specified bus in HZ.
 /*
  * return the PLL output frequency
  *
- * PLL rate = CONFIG_SYS_CLK_FREQ * (X1FBD + 1) * (X2FBD + 1)
+ * PLL rate = get_board_sys_clk() * (X1FBD + 1) * (X2FBD + 1)
  * / (X2IPD + 1) / 2^PS
  */
 static ulong get_PLLCLK(uint32_t *pllreg)
 {
        uint8_t i;
        const uint32_t clkset = readl(pllreg);
-       uint64_t rate = CONFIG_SYS_CLK_FREQ;
+       uint64_t rate = get_board_sys_clk();
        rate *= ((clkset >> SYSCON_CLKSET_PLL_X1FBD1_SHIFT) & 0x1f) + 1;
        rate *= ((clkset >> SYSCON_CLKSET_PLL_X2FBD2_SHIFT) & 0x3f) + 1;
        do_div(rate, (clkset  & 0x1f) + 1);                     /* X2IPD */
@@ -87,9 +88,9 @@ ulong get_UCLK(void)
 
        const uint32_t value = readl(&syscon->pwrcnt);
        if (value & SYSCON_PWRCNT_UART_BAUD)
-               uclk_rate = CONFIG_SYS_CLK_FREQ;
+               uclk_rate = get_board_sys_clk();
        else
-               uclk_rate = CONFIG_SYS_CLK_FREQ / 2;
+               uclk_rate = get_board_sys_clk() / 2;
 
        return uclk_rate;
 }
index eff611319d567b2091f7ddb1e0969aebcc89434d..c19206ac39a72ef98c02ce5806c7e42d7e02d8ab 100644 (file)
@@ -7,13 +7,14 @@
 
 #include <common.h>
 #if defined (CONFIG_IMX)
+#include <clock_legacy.h>
 
 #include <asm/arch/imx-regs.h>
 
 /* ------------------------------------------------------------------------- */
 /* NOTE: This describes the proper use of this file.
  *
- * CONFIG_SYS_CLK_FREQ should be defined as the input frequency of the PLL.
+ * get_board_sys_clk() should be defined as the input frequency of the PLL.
  * SH FIXME: 16780000 in our case
  * get_FCLK(), get_HCLK(), get_PCLK() and get_UCLK() return the clock of
  * the specified bus in HZ.
@@ -45,7 +46,7 @@ ulong get_mcuPLLCLK(void)
 
        mfi = mfi<=5 ? 5 : mfi;
 
-       return (2*(CONFIG_SYS_CLK_FREQ>>10)*( (mfi<<10) + (mfn<<10)/(mfd+1)))/(pd+1);
+       return (2*(get_board_sys_clk()>>10)*( (mfi<<10) + (mfn<<10)/(mfd+1)))/(pd+1);
 }
 
 ulong get_FCLK(void)
index 984ae8b87bd6c3cbcc5049a59ec29adb35c14bfd..c5e6118cba5da734219e1825960ec66f5448c6d8 100644 (file)
@@ -39,7 +39,7 @@ void get_sys_info(struct sys_info *sys_info)
        uint i;
        uint freq_c_pll[CONFIG_SYS_FSL_NUM_CC_PLLS];
        uint ratio[CONFIG_SYS_FSL_NUM_CC_PLLS];
-       unsigned long sysclk = CONFIG_SYS_CLK_FREQ;
+       unsigned long sysclk = get_board_sys_clk();
 
        sys_info->freq_systembus = sysclk;
 #if defined(CONFIG_DYNAMIC_DDR_CLK_FREQ) || defined(CONFIG_STATIC_DDR_CLK_FREQ)
index bf6cc6d4e76ac772d92020c0d518144eebbe4be7..e63a905eda189f706409c9578f8e19809849c314 100644 (file)
@@ -131,9 +131,9 @@ void ft_cpu_setup(void *blob, struct bd_info *bd)
        sysclk_path = fdt_get_alias(blob, "sysclk");
        if (sysclk_path)
                do_fixup_by_path_u32(blob, sysclk_path, "clock-frequency",
-                                    CONFIG_SYS_CLK_FREQ, 1);
+                                    get_board_sys_clk(), 1);
        do_fixup_by_compat_u32(blob, "fsl,qoriq-sysclk-2.0",
-                              "clock-frequency", CONFIG_SYS_CLK_FREQ, 1);
+                              "clock-frequency", get_board_sys_clk(), 1);
 
 #if defined(CONFIG_DEEP_SLEEP) && defined(CONFIG_SD_BOOT)
 #define UBOOT_HEAD_LEN 0x1000
index 1a359d060e82e53f78d788704832fdd6e968e1d2..2ded3e4efc902037a29321db69b41fb8be90b923 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <cpu_func.h>
 #include <env.h>
 #include <fsl_ddr_sdram.h>
index 4ec0dbf516d397e351a7079a6d97ae0eef123488..4354aa251e16b7c55997c695e2f2795f680c6abd 100644 (file)
@@ -161,7 +161,7 @@ void fsl_fdt_disable_usb(void *blob)
         * controller is used, SYSCLK must meet the additional requirement
         * of 100 MHz.
         */
-       if (CONFIG_SYS_CLK_FREQ != 100000000) {
+       if (get_board_sys_clk() != 100000000) {
                off = fdt_node_offset_by_compatible(blob, -1, "snps,dwc3");
                while (off != -FDT_ERR_NOTFOUND) {
                        fdt_status_disabled(blob, off);
@@ -655,7 +655,7 @@ void ft_cpu_setup(void *blob, struct bd_info *bd)
 #endif
 
        do_fixup_by_path_u32(blob, "/sysclk", "clock-frequency",
-                            CONFIG_SYS_CLK_FREQ, 1);
+                            get_board_sys_clk(), 1);
 
 #ifdef CONFIG_GIC_V3_ITS
        ls_gic_rd_tables_init(blob);
index 3f97c8aee4abf462f1eba775e493388eeccb69c5..570105a75ed1b87bde174a1a59fd4b2c059fef29 100644 (file)
@@ -52,12 +52,12 @@ void get_sys_info(struct sys_info *sys_info)
        uint i, cluster;
        uint freq_c_pll[CONFIG_SYS_FSL_NUM_CC_PLLS];
        uint ratio[CONFIG_SYS_FSL_NUM_CC_PLLS];
-       unsigned long sysclk = CONFIG_SYS_CLK_FREQ;
+       unsigned long sysclk = get_board_sys_clk();
        unsigned long cluster_clk;
 
        sys_info->freq_systembus = sysclk;
 #ifndef CONFIG_CLUSTER_CLK_FREQ
-#define CONFIG_CLUSTER_CLK_FREQ        CONFIG_SYS_CLK_FREQ
+#define CONFIG_CLUSTER_CLK_FREQ        get_board_sys_clk()
 #endif
        cluster_clk = CONFIG_CLUSTER_CLK_FREQ;
 
index 6f50cbad2ba94ac6ee2f3bb3df6225c69e71d051..1c04a5b5b7ea974caa54677c40de5a20a719b4a0 100644 (file)
@@ -72,7 +72,7 @@ void get_sys_info(struct sys_info *sys_info)
 #endif
        uint freq_c_pll[CONFIG_SYS_FSL_NUM_CC_PLLS];
        uint ratio[CONFIG_SYS_FSL_NUM_CC_PLLS];
-       unsigned long sysclk = CONFIG_SYS_CLK_FREQ;
+       unsigned long sysclk = get_board_sys_clk();
        int cc_group[12] = CONFIG_SYS_FSL_CLUSTER_CLOCKS;
        u32 c_pll_sel, cplx_pll;
        void *offset;
index d28ab265335f183ce56a459042165a835371a700..2e2688eadca562be5e219bdf00b016f7640616a9 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <cpu_func.h>
 #include <image.h>
 #include <log.h>
index 439d2e2b4d28f1f09ffa5e17a07bc009dd43e3a7..0f68f9fe59e5377b42e1a331dcd26b26004850ad 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <init.h>
 #include <asm/arch/hardware.h>
 #include <asm/global_data.h>
index ef48d35aa4c216be628188c5b2cb1071422a5ae9..99bca549b604de0a5c3e6c4dd265f02cdd76acf0 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <log.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
@@ -136,7 +137,7 @@ static int exynos_get_pll_clk(int pllreg, unsigned int r, unsigned int k)
        /* SDIV [2:0] */
        s = r & 0x7;
 
-       freq = CONFIG_SYS_CLK_FREQ;
+       freq = get_board_sys_clk();
 
        if (pllreg == EPLL || pllreg == RPLL) {
                k = k & 0xffff;
@@ -1051,7 +1052,7 @@ static unsigned long exynos5800_get_lcd_clk(void)
                                                                        RPLL};
                sclk = get_pll_clk(reg_map[sel]);
        } else
-               sclk = CONFIG_SYS_CLK_FREQ;
+               sclk = get_board_sys_clk();
        /*
         * CLK_DIV_DISP10
         * FIMD1_RATIO [3:0]
index 394fc10ec3ad6b13f9cab9f5bac10b576eef4f80..f6dcbf199c7497283fc0fb3399c9db494c5d6f3c 100644 (file)
@@ -9,6 +9,7 @@
  */
 #ifndef CONFIG_TIMER
 #include <common.h>
+#include <clock_legacy.h>
 #include <init.h>
 #include <irq_func.h>
 #include <log.h>
@@ -76,7 +77,7 @@ void reset_timer_masked(void)
        lastdec = readl(&tmr->timer3_counter) / (TIMER_CLOCK / CONFIG_SYS_HZ);
 #else
        lastdec = readl(&tmr->timer3_counter) /
-                       (CONFIG_SYS_CLK_FREQ / 2 / CONFIG_SYS_HZ);
+                       (get_board_sys_clk() / 2 / CONFIG_SYS_HZ);
 #endif
        timestamp = 0;          /* start "advancing" time stamp from 0 */
 
@@ -101,7 +102,7 @@ ulong get_timer_masked(void)
        ulong now = readl(&tmr->timer3_counter) / (TIMER_CLOCK / CONFIG_SYS_HZ);
 #else
        ulong now = readl(&tmr->timer3_counter) /
-                       (CONFIG_SYS_CLK_FREQ / 2 / CONFIG_SYS_HZ);
+                       (get_board_sys_clk() / 2 / CONFIG_SYS_HZ);
 #endif
 
        debug("%s(): now = %lx, lastdec = %lx\n", __func__, now, lastdec);
@@ -155,7 +156,7 @@ void __udelay(unsigned long usec)
 #ifdef CONFIG_FTTMR010_EXT_CLK
        long tmo = usec * (TIMER_CLOCK / 1000) / 1000;
 #else
-       long tmo = usec * ((CONFIG_SYS_CLK_FREQ / 2) / 1000) / 1000;
+       long tmo = usec * ((get_board_sys_clk() / 2) / 1000) / 1000;
 #endif
        unsigned long now, last = readl(&tmr->timer3_counter);
 
@@ -190,7 +191,7 @@ ulong get_tbclk(void)
 #ifdef CONFIG_FTTMR010_EXT_CLK
        return CONFIG_SYS_HZ;
 #else
-       return CONFIG_SYS_CLK_FREQ;
+       return get_board_sys_clk();
 #endif
 }
 #endif /* CONFIG_TIMER */
index c386e4ed3fde5330bfd040b29f28da10a105ce15..d2b6b05bdaf9c1ec5d457f56be06da5f7ca3c069 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <pci.h>
 #include <mpc83xx.h>
 #include <asm/global_data.h>
@@ -46,7 +47,7 @@ int get_pcie_clk(int index)
 
        clkin_div = ((im->clk.spmr & SPMR_CKID) >> SPMR_CKID_SHIFT);
        sccr = im->clk.sccr;
-       pci_sync_in = CONFIG_SYS_CLK_FREQ / (1 + clkin_div);
+       pci_sync_in = get_board_sys_clk() / (1 + clkin_div);
        spmf = (im->clk.spmr & SPMR_SPMF) >> SPMR_SPMF_SHIFT;
        csb_clk = pci_sync_in * (1 + clkin_div) * spmf;
 
index e5db96b328d5966e0170cf7bc8ed879fa4221ed4..f835263f25d8ff9431916b7c98dc443baae58e34 100644 (file)
@@ -137,8 +137,8 @@ int get_clocks(void)
        clkin_div = ((im->clk.spmr & SPMR_CKID) >> SPMR_CKID_SHIFT);
 
        if (im->reset.rcwh & HRCWH_PCI_HOST) {
-#if defined(CONFIG_SYS_CLK_FREQ)
-               pci_sync_in = CONFIG_SYS_CLK_FREQ / (1 + clkin_div);
+#if CONFIG_SYS_CLK_FREQ != 0
+               pci_sync_in = get_board_sys_clk() / (1 + clkin_div);
 #else
                pci_sync_in = 0xDEADBEEF;
 #endif
index 00cb2bd044efb89b6959d81ed6336893465f1693..11b1e613fb90da056ea1f3868f12a37b4555a971 100644 (file)
@@ -102,5 +102,5 @@ ulong get_bus_freq(ulong dummy)
        volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        u8 spmf = (im->clk.spmr & SPMR_SPMF) >> SPMR_SPMF_SHIFT;
 
-       return CONFIG_SYS_CLK_FREQ * spmf;
+       return get_board_sys_clk() * spmf;
 }
index 3f2fc062b2b0719b90bc61d9c4baba52dbbfe321..d4b828e3824cf77155d66ed5cb3666cb646cbdc4 100644 (file)
@@ -662,9 +662,9 @@ void ft_cpu_setup(void *blob, struct bd_info *bd)
 
 #ifdef CONFIG_FSL_CORENET
        do_fixup_by_compat_u32(blob, "fsl,qoriq-clockgen-1.0",
-               "clock-frequency", CONFIG_SYS_CLK_FREQ, 1);
+               "clock-frequency", get_board_sys_clk(), 1);
        do_fixup_by_compat_u32(blob, "fsl,qoriq-clockgen-2.0",
-               "clock-frequency", CONFIG_SYS_CLK_FREQ, 1);
+               "clock-frequency", get_board_sys_clk(), 1);
        do_fixup_by_compat_u32(blob, "fsl,mpic",
                "clock-frequency", get_bus_freq(0)/2, 1);
 #else
index 1fe914a4e43157dba9cd074139b976e385282105..5a9cd281617b4c54386341d228d387add0de8b06 100644 (file)
@@ -75,7 +75,7 @@ void get_sys_info(sys_info_t *sys_info)
        uint rcw_tmp;
 #endif
        uint ratio[CONFIG_SYS_FSL_NUM_CC_PLLS];
-       unsigned long sysclk = CONFIG_SYS_CLK_FREQ;
+       unsigned long sysclk = get_board_sys_clk();
        uint mem_pll_rat;
 
        sys_info->freq_systembus = sysclk;
@@ -102,7 +102,7 @@ void get_sys_info(sys_info_t *sys_info)
         * are driven by differential sysclock.
         */
        if (ddr_refclk_sel == FSL_CORENET2_RCWSR5_DDR_REFCLK_SINGLE_CLK)
-               sys_info->freq_ddrbus = CONFIG_SYS_CLK_FREQ;
+               sys_info->freq_ddrbus = get_board_sys_clk();
        else
 #endif
 #if defined(CONFIG_DYNAMIC_DDR_CLK_FREQ) || defined(CONFIG_STATIC_DDR_CLK_FREQ)
@@ -526,7 +526,7 @@ void get_sys_info(sys_info_t *sys_info)
 
        plat_ratio = (gur->porpllsr) & 0x0000003e;
        plat_ratio >>= 1;
-       sys_info->freq_systembus = plat_ratio * CONFIG_SYS_CLK_FREQ;
+       sys_info->freq_systembus = plat_ratio * get_board_sys_clk();
 
        /* Divide before multiply to avoid integer
         * overflow for processor speeds above 2GHz */
@@ -554,7 +554,7 @@ void get_sys_info(sys_info_t *sys_info)
 #else
        qe_ratio = ((gur->porpllsr) & MPC85xx_PORPLLSR_QE_RATIO)
                        >> MPC85xx_PORPLLSR_QE_RATIO_SHIFT;
-       sys_info->freq_qe = qe_ratio * CONFIG_SYS_CLK_FREQ;
+       sys_info->freq_qe = qe_ratio * get_board_sys_clk();
 #endif
 #endif
 
index 406156dff51d612ba30d43a68b2c0e12ed33085e..09a15da4859d605080f45008453d1e3aa97726ef 100644 (file)
@@ -11,6 +11,6 @@
 /* Timer */
 #define CONFIG_SYS_TIMER_COUNTS_DOWN
 #define CONFIG_SYS_TIMER_COUNTER       (TMU_BASE + 0xc)        /* TCNT0 */
-#define CONFIG_SYS_TIMER_RATE          (CONFIG_SYS_CLK_FREQ / 4)
+#define CONFIG_SYS_TIMER_RATE          (get_board_sys_clk() / 4)
 
 #endif
index 3a02c384934cf58c37eff989cc796f83f044254d..1c927d2a6a3cdcdd3eac807a60064f4544dd37ba 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <linux/delay.h>
@@ -51,7 +52,7 @@ static void delay_cycles(unsigned cycles)
 void __udelay(unsigned long usec)
 {
        ulong lo, hi, i;
-       ulong mhz = CONFIG_SYS_CLK_FREQ / 1000000;
+       ulong mhz = get_board_sys_clk() / 1000000;
 
        /* Scale to support full 32-bit usec range */
 
@@ -74,7 +75,7 @@ ulong get_timer(ulong base)
 #if XCHAL_HAVE_CCOUNT
        register ulong ccount;
        __asm__ volatile ("rsr %0, CCOUNT" : "=a"(ccount));
-       return ccount / (CONFIG_SYS_CLK_FREQ / CONFIG_SYS_HZ) - base;
+       return ccount / (get_board_sys_clk() / CONFIG_SYS_HZ) - base;
 #else
        /*
         * Add at least the overhead of this call (in cycles).
@@ -85,7 +86,7 @@ ulong get_timer(ulong base)
         */
 
        fake_ccount += 20;
-       return fake_ccount / (CONFIG_SYS_CLK_FREQ / CONFIG_SYS_HZ) - base;
+       return fake_ccount / (get_board_sys_clk() / CONFIG_SYS_HZ) - base;
 #endif
 }
 
@@ -114,6 +115,6 @@ unsigned long timer_get_us(void)
        unsigned long ccount;
 
        __asm__ volatile ("rsr %0, CCOUNT" : "=a"(ccount));
-       return ccount / (CONFIG_SYS_CLK_FREQ / 1000000);
+       return ccount / (get_board_sys_clk() / 1000000);
 }
 #endif
index d30940d7c3e3fe4d294e33a9e5497ea4002528a6..ade7f9d120aeaf3cd8b9fc89f3cd3b8192a81106 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <command.h>
 #include <dm.h>
 #include <init.h>
index b14abac9a1c43bd61e00794ebe404e10b2e6d020..8f3fb5fa81b246900a2af6d092ce5ac7909a4314 100644 (file)
@@ -5,7 +5,7 @@
 
 
 #include <common.h>
-
+#include <clock_legacy.h>
 
 /*
  * CADMUS Board System Registers
index 03be8be303477411b2e79bac8e145dd59ee85159..01662d36e9fb99d13b88676d0980966f5e789994 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <log.h>
 #include <asm/io.h>
 
index 2d5322406aa1043c80553243bdc66d672e22fc9d..13359f947bb56a83562166a804b0f944a8f81b47 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <i2c.h>
 #include <fdt_support.h>
 #include <fsl_ddr_sdram.h>
index cc95d441b607c05256202c1fc4b485c2aaf9fe05..8481c45a583ae314ae9cf4e39049deaa6a8fa0d7 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <i2c.h>
 #include <fdt_support.h>
 #include <fsl_ddr_sdram.h>
index 8a112a699a6b3382bbe0982df05f30428686a9ab..aa548b20d7f79e0266df213f796bf9c18368e613 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright 2017-2018 NXP
  */
 #include <common.h>
+#include <clock_legacy.h>
 #include <env.h>
 #include <i2c.h>
 #include <init.h>
index 2f0139edef49118ab880dc8540794b0f4d19dd01..297629d5efb869e3cbaf8ac9dcb89a152217d3e8 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright 2015 Freescale Semiconductor
  */
 #include <common.h>
+#include <clock_legacy.h>
 #include <env.h>
 #include <init.h>
 #include <malloc.h>
index bf660a8e656104088542f7bf3afc3e4d079d870a..1975b0f47ddc47d115b250a0116b92a9c7b0592f 100644 (file)
@@ -4,6 +4,7 @@
  * Copyright 2017 NXP
  */
 #include <common.h>
+#include <clock_legacy.h>
 #include <env.h>
 #include <init.h>
 #include <malloc.h>
index 6c84eef398e234d0be0e3afee62c64ea2d06fd3a..7eaa2047facb076501e2f91852fd0ddb1450ce31 100644 (file)
@@ -43,7 +43,7 @@ void board_init_f(ulong bootflag)
        /* initialize selected port with appropriate baud rate */
        plat_ratio = in_be32(&gur->porpllsr) & MPC85xx_PORPLLSR_PLAT_RATIO;
        plat_ratio >>= 1;
-       gd->bus_clk = CONFIG_SYS_CLK_FREQ * plat_ratio;
+       gd->bus_clk = get_board_sys_clk() * plat_ratio;
 
        ns16550_init((struct ns16550 *)CONFIG_SYS_NS16550_COM1,
                     gd->bus_clk / 16 / CONFIG_BAUDRATE);
index 989c5b139aca9b8e41ddab0611932d75cd0944a1..a956c5af5b00e8d673eb7370c18ac7db57b360c9 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright 2011 Freescale Semiconductor, Inc.
  */
 #include <common.h>
+#include <clock_legacy.h>
 #include <init.h>
 #include <mpc85xx.h>
 #include <asm/io.h>
@@ -29,7 +30,7 @@ void board_init_f(ulong bootflag)
        /* initialize selected port with appropriate baud rate */
        plat_ratio = in_be32(&gur->porpllsr) & MPC85xx_PORPLLSR_PLAT_RATIO;
        plat_ratio >>= 1;
-       gd->bus_clk = CONFIG_SYS_CLK_FREQ * plat_ratio;
+       gd->bus_clk = get_board_sys_clk() * plat_ratio;
 
        ns16550_init((struct ns16550 *)CONFIG_SYS_NS16550_COM1,
                     gd->bus_clk / 16 / CONFIG_BAUDRATE);
index 118468408e2bc47257e0b92e3fa0736a72372c4f..f855f3a81c3df72e0f6cbd6dca8f844f08d419bc 100644 (file)
@@ -48,7 +48,7 @@ void board_init_f(ulong bootflag)
        /* initialize selected port with appropriate baud rate */
        plat_ratio = in_be32(&gur->porpllsr) & MPC85xx_PORPLLSR_PLAT_RATIO;
        plat_ratio >>= 1;
-       bus_clk = CONFIG_SYS_CLK_FREQ * plat_ratio;
+       bus_clk = get_board_sys_clk() * plat_ratio;
        gd->bus_clk = bus_clk;
 
        ns16550_init((struct ns16550 *)CONFIG_SYS_NS16550_COM1,
index eb3f2c83fa2636955adc3dad978e1a68a75e467e..72beeadf55c45e3ad3c9e2929b28de809c3c4072 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <init.h>
 #include <ns16550.h>
 #include <asm/io.h>
@@ -28,7 +29,7 @@ void board_init_f(ulong bootflag)
        /* initialize selected port with appropriate baud rate */
        plat_ratio = in_be32(&gur->porpllsr) & MPC85xx_PORPLLSR_PLAT_RATIO;
        plat_ratio >>= 1;
-       gd->bus_clk = CONFIG_SYS_CLK_FREQ * plat_ratio;
+       gd->bus_clk = get_board_sys_clk() * plat_ratio;
 
        ns16550_init((struct ns16550 *)CONFIG_SYS_NS16550_COM1,
                     gd->bus_clk / 16 / CONFIG_BAUDRATE);
index 894fe8ee2794e202b6ac59b33ac4429ead51ac06..5bd2b9950602a114f622a5a1258350dff7c49cfb 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <command.h>
 #include <env.h>
 #include <fdt_support.h>
index 7f59172076be5a5f04970eb0c1f4513ab919bafe..af15da5427c75ee73bbd8fdb91f0b808076bad07 100644 (file)
@@ -69,7 +69,7 @@ void board_init_f(ulong bootflag)
 #endif
 
        /* initialize selected port with appropriate baud rate */
-       sys_clk = CONFIG_SYS_CLK_FREQ;
+       sys_clk = get_board_sys_clk();
        plat_ratio = (in_be32(&gur->rcwsr[0]) >> 25) & 0x1f;
        ccb_clk = sys_clk * plat_ratio / 2;
 
index 6acc5161b6dd629361be4123c5c8f5bf9900a17e..dfaff1a9165ceffa4b306c938f9e671ee19213e1 100644 (file)
@@ -68,7 +68,7 @@ void board_init_f(ulong bootflag)
        console_init_f();
 
        /* initialize selected port with appropriate baud rate */
-       sys_clk = CONFIG_SYS_CLK_FREQ;
+       sys_clk = get_board_sys_clk();
        plat_ratio = (in_be32(&gur->rcwsr[0]) >> 25) & 0x1f;
        uart_clk = sys_clk * plat_ratio / 2;
 
index e54672a80ba40caca299b2f49874d72813b4aa8d..1da3a714f27f8481469009f7c6ad50ca9b09e3e5 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <command.h>
 #include <env.h>
 #include <fdt_support.h>
index 40aa0c5df39e889d94ce81a9caf13f8f418e9131..60fe084bbb2a8e10eeb7e06f95dae210b62c78a0 100644 (file)
@@ -38,7 +38,7 @@ void board_init_f(ulong bootflag)
        console_init_f();
 
        /* initialize selected port with appropriate baud rate */
-       sys_clk = CONFIG_SYS_CLK_FREQ;
+       sys_clk = get_board_sys_clk();
        plat_ratio = (in_be32(&gur->rcwsr[0]) >> 25) & 0x1f;
        ccb_clk = sys_clk * plat_ratio / 2;
 
index 8c7421da81c8e15b5cce1e18f8dd971c9a0f04cb..c7d5de35d58b013241fdd01b5103a20fb8318127 100644 (file)
@@ -47,7 +47,7 @@ void board_init_f(ulong bootflag)
        console_init_f();
 
        /* initialize selected port with appropriate baud rate */
-       sys_clk = CONFIG_SYS_CLK_FREQ;
+       sys_clk = get_board_sys_clk();
        plat_ratio = (in_be32(&gur->rcwsr[0]) >> 25) & 0x1f;
        ccb_clk = sys_clk * plat_ratio / 2;
 
index 3417b50f3b0d0c0e839c1b6d25aabe0170e67558..9af935c33f6de92752aea6b4f0070928eff942ab 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <cpu_func.h>
 #include <hang.h>
 #include <init.h>
@@ -50,7 +51,7 @@ void s_init(void)
        writel(0xA5A5A500, &swdt->swtcsra);
 
        /* CPU frequency setting. Set to 0.8GHz */
-       stc = ((800 / CLK2MHZ(CONFIG_SYS_CLK_FREQ)) - 1) << PLL0_STC_OFFSET;
+       stc = ((800 / CLK2MHZ(get_board_sys_clk())) - 1) << PLL0_STC_OFFSET;
        clrsetbits_le32(PLL0CR, PLL0_STC_MASK, stc);
 }
 
index 51768c315ef5a69f37708bcb1c24eea2de5a8644..6197e549c2e51b77d0d1399550a9b9769e0728c7 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <cpu_func.h>
 #include <env.h>
 #include <hang.h>
@@ -45,7 +46,7 @@ void s_init(void)
        writel(0xA5A5A500, &swdt->swtcsra);
 
        /* CPU frequency setting. Set to 1.5GHz */
-       stc = ((1500 / CLK2MHZ(CONFIG_SYS_CLK_FREQ)) - 1) << PLL0_STC_BIT;
+       stc = ((1500 / CLK2MHZ(get_board_sys_clk())) - 1) << PLL0_STC_BIT;
        clrsetbits_le32(PLL0CR, PLL0_STC_MASK, stc);
 
        /* QoS */
index 7e94bd82052477213e7fd8376b5fb86a7ece994b..87607df20d5eee9919a6d276e7be6907f927b9e9 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <cpu_func.h>
 #include <env.h>
 #include <hang.h>
@@ -47,7 +48,7 @@ void s_init(void)
        writel(0xA5A5A500, &swdt->swtcsra);
 
        /* CPU frequency setting. Set to 1.5GHz */
-       stc = ((1500 / CLK2MHZ(CONFIG_SYS_CLK_FREQ)) - 1) << PLL0_STC_BIT;
+       stc = ((1500 / CLK2MHZ(get_board_sys_clk())) - 1) << PLL0_STC_BIT;
        clrsetbits_le32(PLL0CR, PLL0_STC_MASK, stc);
 
        /* QoS */
index 87c5e013711dfd5c3f302b62ef1679bffbf84ff8..8e24ac013c05a305c7464183f5716c3ad2c9e675 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <cpu_func.h>
 #include <env.h>
 #include <env_internal.h>
@@ -50,7 +51,7 @@ void s_init(void)
        /* CPU frequency setting. Set to 1.4GHz */
        if (rmobile_get_cpu_rev_integer() >= R8A7790_CUT_ES2X) {
                u32 stat = 0;
-               u32 stc = ((1400 / CLK2MHZ(CONFIG_SYS_CLK_FREQ)) - 1)
+               u32 stc = ((1400 / CLK2MHZ(get_board_sys_clk())) - 1)
                        << PLL0_STC_BIT;
                clrsetbits_le32(PLL0CR, PLL0_STC_MASK, stc);
 
index b0f8505252aa3b5ae167d7f568168fc09d48b711..1a3a4c11a17267ef0f28259d774604ded42d3a47 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <cpu_func.h>
 #include <env.h>
 #include <hang.h>
@@ -47,7 +48,7 @@ void s_init(void)
        writel(0xA5A5A500, &swdt->swtcsra);
 
        /* CPU frequency setting. Set to 1.5GHz */
-       stc = ((1500 / CLK2MHZ(CONFIG_SYS_CLK_FREQ)) - 1) << PLL0_STC_BIT;
+       stc = ((1500 / CLK2MHZ(get_board_sys_clk())) - 1) << PLL0_STC_BIT;
        clrsetbits_le32(PLL0CR, PLL0_STC_MASK, stc);
 
        /* QoS */
index 3fdf936ddcac6b8e743cdd7f263bd876823376f3..56bdb34329a7f0ec31dfd73502be50bfed6ce73c 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <env.h>
 #include <init.h>
 #include <malloc.h>
@@ -50,7 +51,7 @@ void s_init(void)
        /* CPU frequency setting. Set to 1.4GHz */
        if (rmobile_get_cpu_rev_integer() >= R8A7790_CUT_ES2X) {
                u32 stat = 0;
-               u32 stc = ((1400 / CLK2MHZ(CONFIG_SYS_CLK_FREQ)) - 1)
+               u32 stc = ((1400 / CLK2MHZ(get_board_sys_clk())) - 1)
                        << PLL0_STC_BIT;
                clrsetbits_le32(PLL0CR, PLL0_STC_MASK, stc);
 
index a81cb7b2ba661a610e540d76511ce3c8ebfc3fa7..f6a3cc1793cd40c62b4071dd633c1a35a005a23e 100644 (file)
@@ -57,7 +57,7 @@ int checkboard (void)
        /* Check the PCI_clk sel bit */
        if (in_be32(&gur->porpllsr) & (1<<15)) {
                src = "SYSCLK";
-               f = CONFIG_SYS_CLK_FREQ;
+               f = get_board_sys_clk();
        } else {
                src = "PCI_CLK";
                f = CONFIG_PCI_CLK_FREQ;
index fdbcd4026938f4a16f6b34b315d5e3ff7fd2975d..2790a0f9e874477f646fb2963970ec5a869540c1 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <dm.h>
 #include <env.h>
 #include <hang.h>
@@ -667,7 +668,7 @@ void sunxi_board_init(void)
         * assured it's being powered with suitable core voltage
         */
        if (!power_failed)
-               clock_set_pll1(CONFIG_SYS_CLK_FREQ);
+               clock_set_pll1(get_board_sys_clk());
        else
                printf("Failed to set core voltage! Can't set CPU frequency\n");
 }
index 8c72c1544567aa9ee66f59cacb33be8430ac2ea4..20e88d43604fff7df8857e4c6ffa4b1f7b884a55 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <asm/io.h>
 
 /*
index e58157589f2d3ab010e413dbd788b086071c6c15..f1ce576ab2f01b3887cfafb5cc0b8a0555e7b5d6 100644 (file)
@@ -358,11 +358,27 @@ config SYS_TEXT_BASE
        help
          The address in memory that U-Boot will be running from, initially.
 
+config DYNAMIC_SYS_CLK_FREQ
+       bool "Determine CPU clock frequency at run-time"
+       help
+         Implement a get_board_sys_clk function that will determine the CPU
+         clock frequency at run time, rather than define it statically.
+
 config SYS_CLK_FREQ
-       depends on ARC || ARCH_SUNXI || MPC83xx
+       depends on !DYNAMIC_SYS_CLK_FREQ
        int "CPU clock frequency"
+       default 125000000 if ARCH_LS1012A
+       default 100000000 if ARCH_P2020 || ARCH_T1024 || ARCH_T1042 || \
+                            ARCH_LS1021A || FSL_LSCH2 || FSL_LSCH3
+       default 66666666 if ARCH_P1010 || ARCH_P1020 || ARCH_T4240
+       default 66660000 if ARCH_T2080
+       default 33333333 if RCAR_GEN3
+       default 24000000 if ARCH_EXYNOS
+       default 20000000 if RCAR_GEN2
+       default 0
        help
-         TODO: Move CONFIG_SYS_CLK_FREQ for all the architecture
+         A static value for the CPU frequency.  Note that if not required
+         for a given SoC, this can be left at 0.
 
 config ARCH_FIXUP_FDT_MEMORY
        bool "Enable arch_fixup_memory_banks() call"
index be88669911a791f5e991ad4ca3fdf7ab2a6b9feb..e2afcdee7c673d54cbbbc020b08b7bc5d93926f2 100644 (file)
@@ -11,6 +11,7 @@ CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
 CONFIG_PHYS_64BIT=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTCOMMAND=y
 CONFIG_BOOTCOMMAND="setenv bootargs root=/dev/nfs rw nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off console=$consoledev,$baudrate $othbootargs;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr - $fdtaddr"
index 368aab272cfccb0cee43972deb3836a4303224ee..e8f44cfcd41f0e981e9826e7faa580fd7b5dbfda 100644 (file)
@@ -10,6 +10,7 @@ CONFIG_TARGET_MPC8548CDS=y
 CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTCOMMAND=y
 CONFIG_BOOTCOMMAND="setenv bootargs root=/dev/nfs rw nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off console=$consoledev,$baudrate $othbootargs;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr - $fdtaddr"
index 93b9364503b739a0d139969cc6ebc7c747d404e9..577385d60efb70e4e324b4d9b96f1e22fe2103dc 100644 (file)
@@ -11,6 +11,7 @@ CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
 CONFIG_SYS_EXTRA_OPTIONS="LEGACY"
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTCOMMAND=y
 CONFIG_BOOTCOMMAND="setenv bootargs root=/dev/nfs rw nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off console=$consoledev,$baudrate $othbootargs;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr - $fdtaddr"
index 3d7d42aa18fe4c4be55ef5a9b361480542f73082..b7acfe05ae30c9c78580bfa4e4f3ab529957c5e1 100644 (file)
@@ -11,6 +11,7 @@ CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_RAMBOOT_PBL=y
 CONFIG_SYS_FSL_PBL_PBI="board/freescale/corenet_ds/pbi.cfg"
 CONFIG_SYS_FSL_PBL_RCW="board/freescale/corenet_ds/rcw_p2041rdb.cfg"
index c31d4672b97142c5aa66795144361bfb11d050d5..fa21910b421a7aa770b46a3f6732cba1ff48a35a 100644 (file)
@@ -12,6 +12,7 @@ CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
 CONFIG_SYS_EXTRA_OPTIONS="SDCARD"
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_RAMBOOT_PBL=y
 CONFIG_SYS_FSL_PBL_PBI="board/freescale/corenet_ds/pbi.cfg"
 CONFIG_SYS_FSL_PBL_RCW="board/freescale/corenet_ds/rcw_p2041rdb.cfg"
index 259d4c9d79dfdf948b313add61059b2ab2868db2..ba9b8dfb5f1faa903d7516213d0a8ae618f936a3 100644 (file)
@@ -13,6 +13,7 @@ CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
 CONFIG_SYS_EXTRA_OPTIONS="SPIFLASH"
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_RAMBOOT_PBL=y
 CONFIG_SYS_FSL_PBL_PBI="board/freescale/corenet_ds/pbi.cfg"
 CONFIG_SYS_FSL_PBL_RCW="board/freescale/corenet_ds/rcw_p2041rdb.cfg"
index 8fd27deaada0716e9144d38e85a274e87d49c1d3..53130ccf822880ee2d2660da9fd30499ce006fb5 100644 (file)
@@ -11,6 +11,7 @@ CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTCOMMAND=y
 CONFIG_BOOTCOMMAND="setenv bootargs root=/dev/$bdev rw console=$consoledev,$baudrate $othbootargs;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr - $fdtaddr"
index a80a280ea43242196e301c969328a18cba17727c..29a968d9a328a07f15c99c3c02caee23caf48f6f 100644 (file)
@@ -11,6 +11,7 @@ CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_RAMBOOT_PBL=y
 CONFIG_SYS_FSL_PBL_PBI="board/freescale/corenet_ds/pbi.cfg"
 CONFIG_SYS_FSL_PBL_RCW="board/freescale/corenet_ds/rcw_p3041ds.cfg"
index f4e9478c7b709701bd61ea7bc9ef5bed11c970cb..72c3b7af295d5df54b5a808c116fbcb242bd7170 100644 (file)
@@ -12,6 +12,7 @@ CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
 CONFIG_SYS_EXTRA_OPTIONS="SDCARD"
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_RAMBOOT_PBL=y
 CONFIG_SYS_FSL_PBL_PBI="board/freescale/corenet_ds/pbi.cfg"
 CONFIG_SYS_FSL_PBL_RCW="board/freescale/corenet_ds/rcw_p3041ds.cfg"
index 9598379515414646bff28c4501986cf34f6e8f8c..abb9ce611d358075dcaa2a9c2a49edd28d6dcf7a 100644 (file)
@@ -13,6 +13,7 @@ CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
 CONFIG_SYS_EXTRA_OPTIONS="SPIFLASH"
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_RAMBOOT_PBL=y
 CONFIG_SYS_FSL_PBL_PBI="board/freescale/corenet_ds/pbi.cfg"
 CONFIG_SYS_FSL_PBL_RCW="board/freescale/corenet_ds/rcw_p3041ds.cfg"
index abf3f7bc75b2a780bcc71d8b44998b0b54f2ed0c..39dd70888cde3221f6dbd86e7bcce05e8bf15141 100644 (file)
@@ -11,6 +11,7 @@ CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTCOMMAND=y
 CONFIG_BOOTCOMMAND="setenv bootargs root=/dev/$bdev rw console=$consoledev,$baudrate $othbootargs;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr - $fdtaddr"
index 888a0e0e06e5208f1c4b67e7b724056f9843e2f4..bd66e31fe134624dd57a543bf1b23bedd0b8fa28 100644 (file)
@@ -12,6 +12,7 @@ CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
 CONFIG_SYS_EXTRA_OPTIONS="SDCARD"
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_RAMBOOT_PBL=y
 CONFIG_SYS_FSL_PBL_PBI="board/freescale/corenet_ds/pbi.cfg"
 CONFIG_SYS_FSL_PBL_RCW="board/freescale/corenet_ds/rcw_p4080ds.cfg"
index b21d87b88a6f08773259a8e46fe5b9ee3b5f924a..79f51c91d43430c8f2def5824ccbb10063a4b187 100644 (file)
@@ -13,6 +13,7 @@ CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
 CONFIG_SYS_EXTRA_OPTIONS="SPIFLASH"
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_RAMBOOT_PBL=y
 CONFIG_SYS_FSL_PBL_PBI="board/freescale/corenet_ds/pbi.cfg"
 CONFIG_SYS_FSL_PBL_RCW="board/freescale/corenet_ds/rcw_p4080ds.cfg"
index 4952d27130509f734e982df10faead78032f7586..43f16d45e2c0af7838d82ba4789b489381c95e1d 100644 (file)
@@ -11,6 +11,7 @@ CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTCOMMAND=y
 CONFIG_BOOTCOMMAND="setenv bootargs root=/dev/$bdev rw console=$consoledev,$baudrate $othbootargs;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr - $fdtaddr"
index 16c883adf0ad73706c8b0be55b1e9b9016daf404..6f31034573b348b02bdc947b27150e878539cdaa 100644 (file)
@@ -11,6 +11,7 @@ CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_RAMBOOT_PBL=y
 CONFIG_SYS_FSL_PBL_PBI="board/freescale/corenet_ds/pbi.cfg"
 CONFIG_SYS_FSL_PBL_RCW="board/freescale/corenet_ds/rcw_p5040ds.cfg"
index 0d078be5f8a61a0ecf1749017aababcb399d92e3..0a881d8417b700ad163bb3e9c4ab8253547ddc21 100644 (file)
@@ -12,6 +12,7 @@ CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
 CONFIG_SYS_EXTRA_OPTIONS="SDCARD"
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_RAMBOOT_PBL=y
 CONFIG_SYS_FSL_PBL_PBI="board/freescale/corenet_ds/pbi.cfg"
 CONFIG_SYS_FSL_PBL_RCW="board/freescale/corenet_ds/rcw_p5040ds.cfg"
index 4059e916424342f14feb38a9ffe5f7af6a9ae6f9..0e4a5457efd988e1cbb5af58ed167a99e32c4ba3 100644 (file)
@@ -13,6 +13,7 @@ CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
 CONFIG_SYS_EXTRA_OPTIONS="SPIFLASH"
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_RAMBOOT_PBL=y
 CONFIG_SYS_FSL_PBL_PBI="board/freescale/corenet_ds/pbi.cfg"
 CONFIG_SYS_FSL_PBL_RCW="board/freescale/corenet_ds/rcw_p5040ds.cfg"
index 0ed53f7cd107eec362668ff63ad5d0d5839fdeec..d614917385c652f5b1b3b23e0f25b62c3fa096e4 100644 (file)
@@ -11,6 +11,7 @@ CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTCOMMAND=y
 CONFIG_BOOTCOMMAND="setenv bootargs root=/dev/$bdev rw console=$consoledev,$baudrate $othbootargs;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr - $fdtaddr"
index f442c4ce1097a18aacc793c2780aee3fc7125cad..ba07ce8feb07e0da70e6698a455fc30f41ca9c42 100644 (file)
@@ -22,6 +22,7 @@ CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_RAMBOOT_PBL=y
 CONFIG_SYS_FSL_PBL_PBI="board/freescale/t208xqds/t208x_pbi.cfg"
 CONFIG_SYS_FSL_PBL_RCW="board/freescale/t208xqds/t2080_nand_rcw.cfg"
index bd843f744bdc526412ed88d13325722322050bfd..bf5410b34470985c58eda54cdbef684249fc2109 100644 (file)
@@ -22,6 +22,7 @@ CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
 CONFIG_SYS_EXTRA_OPTIONS="SDCARD"
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_RAMBOOT_PBL=y
 CONFIG_SYS_FSL_PBL_PBI="board/freescale/t208xqds/t208x_pbi.cfg"
 CONFIG_SYS_FSL_PBL_RCW="board/freescale/t208xqds/t2080_sd_rcw.cfg"
index b04708d917fce1a8625ed7a235e079796beb79cf..3165b9090ad017c5a491ef3467481f7347e029d4 100644 (file)
@@ -16,6 +16,7 @@ CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTCOMMAND=y
 CONFIG_BOOTCOMMAND="setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs;setenv ramdiskaddr 0x02000000;setenv fdtaddr 0x00c00000;setenv loadaddr 0x1000000;bootm $loadaddr $ramdiskaddr $fdtaddr"
index 93664cf56f9ad50fee43da9b693e51ec8754139c..367416f33741d2a01fbf9ea1d66648d09dbe15a5 100644 (file)
@@ -24,6 +24,7 @@ CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
 CONFIG_SYS_EXTRA_OPTIONS="SPIFLASH"
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_RAMBOOT_PBL=y
 CONFIG_SYS_FSL_PBL_PBI="board/freescale/t208xqds/t208x_pbi.cfg"
 CONFIG_SYS_FSL_PBL_RCW="board/freescale/t208xqds/t2080_spi_rcw.cfg"
index 445e0e057b637d31c7b5115aaa9b053452609116..ef4d8888b6708cbead95c50e2d5d3613a2d934dc 100644 (file)
@@ -15,6 +15,7 @@ CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
 CONFIG_SYS_EXTRA_OPTIONS="SRIO_PCIE_BOOT_SLAVE"
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTCOMMAND=y
 CONFIG_BOOTCOMMAND="setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs;setenv ramdiskaddr 0x02000000;setenv fdtaddr 0x00c00000;setenv loadaddr 0x1000000;bootm $loadaddr $ramdiskaddr $fdtaddr"
index bd9c2142344da6026a1c09d91e051788c69b3239..db9e970e647a8f164a387973ff8f0bb78c302cff 100644 (file)
@@ -15,6 +15,7 @@ CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTCOMMAND=y
 CONFIG_BOOTCOMMAND="setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs;setenv ramdiskaddr 0x02000000;setenv fdtaddr 0x00c00000;setenv loadaddr 0x1000000;bootm $loadaddr $ramdiskaddr $fdtaddr"
index 3fa00fb4cc40faf0e48697edf24265f9290449a4..b79b5b6ffa8d004efe8df2b29bf71a411b8a38ab 100644 (file)
@@ -7,6 +7,7 @@ CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_OFFSET=0x140000
 CONFIG_ENV_SECT_SIZE=0x1000
 CONFIG_DEFAULT_DEVICE_TREE="ae3xx"
+CONFIG_SYS_CLK_FREQ=39062500
 CONFIG_TARGET_ADP_AE3XX=y
 CONFIG_SYS_LOAD_ADDR=0x300000
 CONFIG_FIT=y
index cc6541b1e3b265578964dabd29ac40bc7c5cdd1f..503f2ae13120f883433db4f5e7eee55d828a0b71 100644 (file)
@@ -6,6 +6,7 @@ CONFIG_NR_DRAM_BANKS=2
 CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_SECT_SIZE=0x20000
 CONFIG_DEFAULT_DEVICE_TREE="ag101p"
+CONFIG_SYS_CLK_FREQ=39062500
 CONFIG_TARGET_ADP_AG101P=y
 CONFIG_SYS_LOAD_ADDR=0x300000
 CONFIG_FIT=y
index 4a72ae4876d3a15a58f7a9e44af5851b77fef57b..2f5c115d84f47f390c9c24a824e193829ffc7ef2 100644 (file)
@@ -11,6 +11,7 @@ CONFIG_ENV_SECT_SIZE=0x20000
 CONFIG_ARCH_RMOBILE_BOARD_STRING="Armadillo-800EVA Board"
 CONFIG_R8A7740=y
 CONFIG_TARGET_ARMADILLO_800EVA=y
+CONFIG_SYS_CLK_FREQ=50000000
 CONFIG_SYS_LOAD_ADDR=0x44000000
 CONFIG_BOOTDELAY=3
 # CONFIG_CMDLINE_EDITING is not set
index 8437a2714b6917387a2626c04df6ebcca228bd91..0c276775470e77544d4e8949b588471586c21cc8 100644 (file)
@@ -24,6 +24,7 @@ CONFIG_SPL_SPI=y
 CONFIG_LTO=y
 CONFIG_SYS_LOAD_ADDR=0xc0700000
 CONFIG_SYS_EXTRA_OPTIONS="MAC_ADDR_IN_SPIFLASH"
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=3
 CONFIG_USE_BOOTCOMMAND=y
 CONFIG_BOOTCOMMAND="run envboot; run mmcboot; "
index 8561f8d23e29f6c4ae535d279f2ec8ec00c6ac30..694e17c1847933966932b89e667a9307bec8bc35 100644 (file)
@@ -15,6 +15,7 @@ CONFIG_DM_GPIO=y
 CONFIG_DEFAULT_DEVICE_TREE="da850-evm"
 CONFIG_LTO=y
 CONFIG_SYS_LOAD_ADDR=0xc0700000
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=3
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="mem=32M console=ttyS2,115200n8 root=/dev/mtdblock2 rw noinitrd ip=dhcp"
index 78dd697bab6c57f6e7cbabbea497be00595dbeae..aeb9c35b5dcf1f198e54a881d8883409d7c43ba2 100644 (file)
@@ -22,6 +22,7 @@ CONFIG_SPL_SPI=y
 CONFIG_LTO=y
 CONFIG_SYS_LOAD_ADDR=0xc0700000
 CONFIG_SYS_EXTRA_OPTIONS="MAC_ADDR_IN_SPIFLASH"
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=3
 CONFIG_USE_BOOTCOMMAND=y
 CONFIG_BOOTCOMMAND="run envboot; run mmcboot; "
index 4b2f6999f963283b8557d92238a0b7fb5392a597..678dbd31d5cdfe939c5a78a9ad5403fa6abf2e17 100644 (file)
@@ -10,6 +10,7 @@ CONFIG_ENV_SECT_SIZE=0x10000
 CONFIG_DM_GPIO=y
 CONFIG_DEFAULT_DEVICE_TREE="r7s72100-gr-peach-u-boot"
 CONFIG_RZA1=y
+CONFIG_SYS_CLK_FREQ=66666666
 CONFIG_SYS_LOAD_ADDR=0x20400000
 CONFIG_BOOTDELAY=3
 CONFIG_USE_BOOTARGS=y
index 9361e81e8039c9131b4b384fe405870f2c7da653..baffe81a35e1267eaa461773a2ed5faf2d52a764 100644 (file)
@@ -7,6 +7,7 @@ CONFIG_ENV_SIZE=0x4000
 CONFIG_ENV_SECT_SIZE=0x20000
 CONFIG_DEFAULT_DEVICE_TREE="kmcent2"
 CONFIG_SYS_BOOTCOUNT_ADDR=0xFB000020
+CONFIG_SYS_CLK_FREQ=66666666
 CONFIG_MPC85xx=y
 CONFIG_TARGET_KMCENT2=y
 CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
index 796934abde186bc0abd4251c4f28e688b82eb675..87890cd6a7e96a7a6fc3f9d6f77f7557a40ded56 100644 (file)
@@ -8,6 +8,7 @@ CONFIG_NR_DRAM_BANKS=1
 CONFIG_ENV_SIZE=0x4000
 CONFIG_DEFAULT_DEVICE_TREE="da850-lego-ev3"
 CONFIG_SYS_LOAD_ADDR=0xc0700000
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=0
 CONFIG_AUTOBOOT_KEYED=y
 CONFIG_AUTOBOOT_PROMPT="Autoboot in %d seconds - press 'l' to stop...\n"
index 7d75af2869b6d636fd061258964b71675ab3d125..79ccc41a4398b4137cd643bec73dfb019824f294 100644 (file)
@@ -20,6 +20,7 @@ CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=3
 CONFIG_SILENT_CONSOLE=y
 CONFIG_SYS_CONSOLE_IS_IN_ENV=y
index bab98ad475eb0d0fb93d784707d1d281b6518d8b..0a2a0763321c77fc1a170a726c24e5e4c164b67b 100644 (file)
@@ -21,6 +21,7 @@ CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
 CONFIG_SYS_EXTRA_OPTIONS="LPUART"
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=3
 CONFIG_SILENT_CONSOLE=y
 CONFIG_SYS_CONSOLE_IS_IN_ENV=y
index dfec94ebd2a0917f06743d9aff615a926ef28737..0b12f100d46fa28b2d4cb08012f8b9133ef0c871 100644 (file)
@@ -28,6 +28,7 @@ CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
 CONFIG_SYS_EXTRA_OPTIONS="NAND_BOOT"
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_RAMBOOT_PBL=y
 CONFIG_SYS_FSL_PBL_PBI="board/freescale/ls1021aqds/ls102xa_pbi.cfg"
 CONFIG_SYS_FSL_PBL_RCW="board/freescale/ls1021aqds/ls102xa_rcw_nand.cfg"
index c6d66de90ac7518a018a73cd740f65d4b05a862d..63930e4a1310a0363972027329552940c606ae9e 100644 (file)
@@ -21,6 +21,7 @@ CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=3
 CONFIG_SILENT_CONSOLE=y
 CONFIG_SYS_CONSOLE_IS_IN_ENV=y
index 9659278e356e0a7ac005b9bc732a7e3e172f63b1..f4e2274fb8a7df3b5e6af3b52c51c7e1fdd5efa5 100644 (file)
@@ -20,6 +20,7 @@ CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=3
 CONFIG_SILENT_CONSOLE=y
 CONFIG_SYS_CONSOLE_IS_IN_ENV=y
index f4ea44f183cb1da6cc1d217188c14929d471338a..0eacaa3354ed5248db0a5a9729bf678773a1aeb4 100644 (file)
@@ -21,6 +21,7 @@ CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
 CONFIG_SYS_EXTRA_OPTIONS="LPUART"
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=3
 CONFIG_SILENT_CONSOLE=y
 CONFIG_SYS_CONSOLE_IS_IN_ENV=y
index 52825caa0c260f288b0b516579fe756622bde6d5..fa190a7502aea8072724f869c76d2ca388ddb56d 100644 (file)
@@ -26,6 +26,7 @@ CONFIG_AHCI=y
 CONFIG_SYS_LOAD_ADDR=0x82000000
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_RAMBOOT_PBL=y
 CONFIG_SYS_FSL_PBL_PBI="board/freescale/ls1021aqds/ls102xa_pbi.cfg"
 CONFIG_SYS_FSL_PBL_RCW="board/freescale/ls1021aqds/ls102xa_rcw_sd_ifc.cfg"
index f92ac847213e85596c200967411ed7286b89bcda..1a484ff483a012376aaa4268311ba9a7fa943357 100644 (file)
@@ -23,6 +23,7 @@ CONFIG_AHCI=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 mtdparts=60000000.nor:2m@0x100000(nor_bank0_uboot),40m@0x1100000(nor_bank0_fit),7m(nor_bank0_user),2m@0x4100000(nor_bank4_uboot),40m@0x5100000(nor_bank4_fit),-(nor_bank4_user);7e800000.flash:1m(nand_uboot),1m(nand_uboot_env),20m(nand_fit);spi0.0:1m(uboot),5m(kernel),1m(dtb),9m(file_system)"
index a25288bc52ec4e1e86cce6b29e42fa7ae704b8a0..dfd7fb881b3694bc75203b346d989d6774f89093 100644 (file)
@@ -24,6 +24,7 @@ CONFIG_DISTRO_DEFAULTS=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_SYS_EXTRA_OPTIONS="LPUART"
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 mtdparts=60000000.nor:2m@0x100000(nor_bank0_uboot),40m@0x1100000(nor_bank0_fit),7m(nor_bank0_user),2m@0x4100000(nor_bank4_uboot),40m@0x5100000(nor_bank4_fit),-(nor_bank4_user);7e800000.flash:1m(nand_uboot),1m(nand_uboot_env),20m(nand_fit);spi0.0:1m(uboot),5m(kernel),1m(dtb),9m(file_system)"
index e4984bc6084ab2a08c6abdd1e0d5e559b88487ce..9e87f0fd8864803c368330ef78b1cada1d07ad17 100644 (file)
@@ -30,6 +30,7 @@ CONFIG_DISTRO_DEFAULTS=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_SYS_EXTRA_OPTIONS="NAND_BOOT"
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_RAMBOOT_PBL=y
 CONFIG_SYS_FSL_PBL_PBI="board/freescale/ls1043aqds/ls1043aqds_pbi.cfg"
 CONFIG_SYS_FSL_PBL_RCW="board/freescale/ls1043aqds/ls1043aqds_rcw_nand.cfg"
index e4222ad6973c1cb4531a82cd2684d16f6c7c6aa1..bffe105220edf656762027aeb0ecfe2058447605 100644 (file)
@@ -23,6 +23,7 @@ CONFIG_AHCI=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 mtdparts=60000000.nor:2m@0x100000(nor_bank0_uboot),40m@0x1100000(nor_bank0_fit),7m(nor_bank0_user),2m@0x4100000(nor_bank4_uboot),40m@0x5100000(nor_bank4_fit),-(nor_bank4_user);7e800000.flash:1m(nand_uboot),1m(nand_uboot_env),20m(nand_fit);spi0.0:1m(uboot),5m(kernel),1m(dtb),9m(file_system)"
index 5c92102c66e4abb08529c669fcfe7b6c88026afd..e01324ccef6810f817db3b21a42715d6f91ba3af 100644 (file)
@@ -24,6 +24,7 @@ CONFIG_AHCI=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_QSPI_BOOT=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTARGS=y
index 0ed26543208fd5b2cfc6c84b00784e6eff9cf687..b487b370b52565188e94140393109d422aba809d 100644 (file)
@@ -30,6 +30,7 @@ CONFIG_AHCI=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_RAMBOOT_PBL=y
 CONFIG_SYS_FSL_PBL_PBI="board/freescale/ls1043aqds/ls1043aqds_pbi.cfg"
 CONFIG_SYS_FSL_PBL_RCW="board/freescale/ls1043aqds/ls1043aqds_rcw_sd_ifc.cfg"
index 565d371e7876b697c31ae9026a3078312dda5f47..084d104ea44442614da3f6f33c05dfd191c529ce 100644 (file)
@@ -30,6 +30,7 @@ CONFIG_AHCI=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_RAMBOOT_PBL=y
 CONFIG_SYS_FSL_PBL_PBI="board/freescale/ls1043aqds/ls1043aqds_pbi.cfg"
 CONFIG_SYS_FSL_PBL_RCW="board/freescale/ls1043aqds/ls1043aqds_rcw_sd_qspi.cfg"
index 8f07442c4cb3d82ef1cc3e0580a51e468f29400e..3e303c5311f6cdc14c09c5d6b04352d658daaaf1 100644 (file)
@@ -25,6 +25,7 @@ CONFIG_AHCI=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 mtdparts=60000000.nor:2m@0x100000(nor_bank0_uboot),40m@0x1100000(nor_bank0_fit),7m(nor_bank0_user),2m@0x4100000(nor_bank4_uboot),40m@0x5100000(nor_bank4_fit),-(nor_bank4_user);7e800000.flash:1m(nand_uboot),1m(nand_uboot_env),20m(nand_fit);spi0.0:1m(uboot),5m(kernel),1m(dtb),9m(file_system)"
index 3f157335d40905307160e1fe9e509b8a035fbab3..8d02bed8e1c80fa973af5af69121b8bdcd956583 100644 (file)
@@ -26,6 +26,7 @@ CONFIG_AHCI=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 mtdparts=60000000.nor:2m@0x100000(nor_bank0_uboot),40m@0x1100000(nor_bank0_fit),7m(nor_bank0_user),2m@0x4100000(nor_bank4_uboot),40m@0x5100000(nor_bank4_fit),-(nor_bank4_user);7e800000.flash:1m(nand_uboot),1m(nand_uboot_env),20m(nand_fit);spi0.0:1m(uboot),5m(kernel),1m(dtb),9m(file_system)"
index 367272a352342914fbd19050a8b4be6fb58eadb9..55426320d8076753657686c1a8c5d99d95edf9b0 100644 (file)
@@ -23,6 +23,7 @@ CONFIG_AHCI=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 mtdparts=60000000.nor:2m@0x100000(nor_bank0_uboot),40m@0x1100000(nor_bank0_fit),7m(nor_bank0_user),2m@0x4100000(nor_bank4_uboot),40m@0x5100000(nor_bank4_fit),-(nor_bank4_user);7e800000.flash:4m(nand_uboot),36m(nand_kernel),472m(nand_free);spi0.0:2m(uboot),14m(free)"
index 63da306fe0fed3f58e08af09b2c2c2a7811d51d7..f136aeafaefe682c1cef32af0ddfdfadd3e58890 100644 (file)
@@ -23,6 +23,7 @@ CONFIG_AHCI=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 mtdparts=60000000.nor:2m@0x100000(nor_bank0_uboot),40m@0x1100000(nor_bank0_fit),7m(nor_bank0_user),2m@0x4100000(nor_bank4_uboot),40m@0x5100000(nor_bank4_fit),-(nor_bank4_user);7e800000.flash:4m(nand_uboot),36m(nand_kernel),472m(nand_free);spi0.0:2m(uboot),14m(free)"
index 0687e411c9aa219d85d2f429dd7999499c69ce58..6d448905ef431612e332152fb7eefaa114e4a8b8 100644 (file)
@@ -24,6 +24,7 @@ CONFIG_DISTRO_DEFAULTS=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_SYS_EXTRA_OPTIONS="LPUART"
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 mtdparts=60000000.nor:2m@0x100000(nor_bank0_uboot),40m@0x1100000(nor_bank0_fit),7m(nor_bank0_user),2m@0x4100000(nor_bank4_uboot),40m@0x5100000(nor_bank4_fit),-(nor_bank4_user);7e800000.flash:4m(nand_uboot),36m(nand_kernel),472m(nand_free);spi0.0:2m(uboot),14m(free)"
index d87f45e5fe94cbd3f31d630fc16a856dcf2f17d3..e4cd4a2f6005df7e188f8ac6a54f9784631db005 100644 (file)
@@ -29,6 +29,7 @@ CONFIG_AHCI=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_RAMBOOT_PBL=y
 CONFIG_SYS_FSL_PBL_PBI="board/freescale/ls1046aqds/ls1046aqds_pbi.cfg"
 CONFIG_SYS_FSL_PBL_RCW="board/freescale/ls1046aqds/ls1046aqds_rcw_nand.cfg"
index 90dc41f75fa28e7f3f25a8b9b1dec9fc017b6530..fe295c51e42ce58a7646e2927b39ffb02a9373dc 100644 (file)
@@ -24,6 +24,7 @@ CONFIG_AHCI=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_QSPI_BOOT=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTARGS=y
index db9b28381e69ae72c4a3969858d92aeecc9b7c16..fe1fe6f1626ae02d0218ead4f2c1f5d8ef958369 100644 (file)
@@ -30,6 +30,7 @@ CONFIG_AHCI=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_RAMBOOT_PBL=y
 CONFIG_SYS_FSL_PBL_PBI="board/freescale/ls1046aqds/ls1046aqds_pbi.cfg"
 CONFIG_SYS_FSL_PBL_RCW="board/freescale/ls1046aqds/ls1046aqds_rcw_sd_ifc.cfg"
index 2e1f8954ab6a0ead39a9884ac1d128621926b566..18f560e9473df81a5a238a70772349876a09fdb6 100644 (file)
@@ -30,6 +30,7 @@ CONFIG_AHCI=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_RAMBOOT_PBL=y
 CONFIG_SYS_FSL_PBL_PBI="board/freescale/ls1046aqds/ls1046aqds_pbi.cfg"
 CONFIG_SYS_FSL_PBL_RCW="board/freescale/ls1046aqds/ls1046aqds_rcw_sd_qspi.cfg"
index 0db84af4c508317fe250223ed3a3132f334abf48..b84f8772c619039a0cf8966f689369588122f479 100644 (file)
@@ -25,6 +25,7 @@ CONFIG_AHCI=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 mtdparts=60000000.nor:2m@0x100000(nor_bank0_uboot),40m@0x1100000(nor_bank0_fit),7m(nor_bank0_user),2m@0x4100000(nor_bank4_uboot),40m@0x5100000(nor_bank4_fit),-(nor_bank4_user);7e800000.flash:4m(nand_uboot),36m(nand_kernel),472m(nand_free);spi0.0:2m(uboot),14m(free)"
index d52d0ffd34cef431ba9a6565f280e1950240c960..f706dd6179c4488688134c622b62e852c7f2a42c 100644 (file)
@@ -26,6 +26,7 @@ CONFIG_AHCI=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 mtdparts=60000000.nor:2m@0x100000(nor_bank0_uboot),40m@0x1100000(nor_bank0_fit),7m(nor_bank0_user),2m@0x4100000(nor_bank4_uboot),40m@0x5100000(nor_bank4_fit),-(nor_bank4_user);7e800000.flash:4m(nand_uboot),36m(nand_kernel),472m(nand_free);spi0.0:2m(uboot),14m(free)"
index 2e88adc7ac1dfb3be6bdd926968c7859ec843cc6..a2b2a34e3f3990c38ef9c1730c3c2948d803913c 100644 (file)
@@ -22,6 +22,7 @@ CONFIG_AHCI=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 ramdisk_size=0x3000000 default_hugepagesz=2m hugepagesz=2m hugepages=256"
 CONFIG_USE_BOOTCOMMAND=y
index bd6c9822c02663cc45ba86218bd01436a2eb8219..e5372317c3c228a5f2517b80a07848a3c2adae8c 100644 (file)
@@ -27,6 +27,7 @@ CONFIG_SPL=y
 CONFIG_AHCI=y
 # CONFIG_SYS_MALLOC_F is not set
 CONFIG_OF_BOARD_SETUP=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_SD_BOOT=y
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 ramdisk_size=0x3000000 default_hugepagesz=2m hugepagesz=2m hugepages=256"
index d78ea5c091b1c318b9ca55cae69d5c6d18d3a84c..aac8486bc3b7227ef53a4bb325ffabe8204b77c6 100644 (file)
@@ -27,6 +27,7 @@ CONFIG_DISTRO_DEFAULTS=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 ramdisk_size=0x3000000 default_hugepagesz=2m hugepagesz=2m hugepages=256"
 # CONFIG_DISPLAY_BOARDINFO is not set
index ea903938d65c86c8bb7d508190b79d2fc30231c8..0ad25aca76a0856f3f154b9b8a55092f059d5765 100644 (file)
@@ -14,6 +14,7 @@ CONFIG_AHCI=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 ramdisk_size=0x2000000 default_hugepagesz=2m hugepagesz=2m hugepages=256"
index efe005424ced4d7159720132e138af4e234e6771..30cdad6fbec098ce7689119ce7a6d2eec1a147bd 100644 (file)
@@ -14,6 +14,7 @@ CONFIG_AHCI=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 ramdisk_size=0x2000000 default_hugepagesz=2m hugepagesz=2m hugepages=256"
index 4b75453f6e9b3a6513df4eb796ed5f2f131a0fef..47f09b6288c5a200a7c631bcd30822cc153f4605 100644 (file)
@@ -19,6 +19,7 @@ CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_NAND_BOOT=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTARGS=y
index 0c203373dfed9b65cbbe2bb63919be177071c0f9..bbc9f3d113c80b3f4223fd0db6cd040227a36878 100644 (file)
@@ -14,6 +14,7 @@ CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_QSPI_BOOT=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTARGS=y
index 912ab4a161ed5eba3ab068d57339540ffe2d338c..c7a6e2a8512fcbebfabdc9bda88121f5e2c84e7e 100644 (file)
@@ -20,6 +20,7 @@ CONFIG_AHCI=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_SD_BOOT=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTARGS=y
index 686dbff5a64e6f75cd927310f8d3b2c6eedb2c2a..15dec62dd43101f73030f8f3c70a3df9326c0106 100644 (file)
@@ -18,6 +18,7 @@ CONFIG_AHCI=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyS1,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0600 ramdisk_size=0x2000000 default_hugepagesz=2m hugepagesz=2m hugepages=256"
index be979f6bf21a61791f961147f2d132474e27f2e7..909c10b631633128ef2f2c33c8511102dafbb653 100644 (file)
@@ -18,6 +18,7 @@ CONFIG_AHCI=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyS1,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0600 ramdisk_size=0x2000000 default_hugepagesz=2m hugepagesz=2m hugepages=256"
index 33f1bfa243cd79d7b917469e869c58cd773bbe5e..f40ecb7e68463e881a0e5a3adca0bb749ed2ac79 100644 (file)
@@ -23,6 +23,7 @@ CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_NAND_BOOT=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTARGS=y
index 3fe8b5bce7934f42fc2f1b34d3413766f2f796dc..ed0b1b762295a0d22e7ada6db7c86b5396ee97b5 100644 (file)
@@ -20,6 +20,7 @@ CONFIG_AHCI=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_QSPI_BOOT=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTARGS=y
index 8d39aca66222c97591cd87579c90d0f9d1388b25..61e0fdf1131e22ed4f6fe3f4c0fd5ca13e4b26c4 100644 (file)
@@ -18,6 +18,7 @@ CONFIG_AHCI=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 ramdisk_size=0x2000000 default_hugepagesz=2m hugepagesz=2m hugepages=256"
index a299db95c89931c64e205dcc03f88e39c82c6157..c49d163346ce5b86984e0443115124110dfe6ab3 100644 (file)
@@ -20,6 +20,7 @@ CONFIG_AHCI=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_QSPI_BOOT=y
 CONFIG_BOOTDELAY=10
 CONFIG_BOOTCOMMAND="sf probe 0:0; sf read 0x806c0000 0x6c0000 0x40000; env exists mcinitcmd && env exists secureboot && esbc_validate 0x806C0000; sf read 0x80d00000 0xd00000 0x100000; env exists mcinitcmd && fsl_mc lazyapply dpl 0x80d00000; run distro_bootcmd;run qspi_bootcmd; env exists secureboot && esbc_halt;"
index 01c7d3230597f59edc926a8646367aeb6564c9c7..b8c7c78b8e684a766e0c6812112cf0706e24fca2 100644 (file)
@@ -21,6 +21,7 @@ CONFIG_AHCI=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_QSPI_BOOT=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTARGS=y
index 22fb73f70148fd06160a27b1b8ce3e71bca3a95a..3cc9168290dfca8bec0989e28b80454663fce1ef 100644 (file)
@@ -22,6 +22,7 @@ CONFIG_AHCI=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyS1,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0600 ramdisk_size=0x2000000 default_hugepagesz=2m hugepagesz=2m hugepages=256"
index 5564c10e8780aa0b52b06d36cce2e33dec1aa98c..a28b45b1296ca41eb14e2077cb0475182bbc5021 100644 (file)
@@ -23,6 +23,7 @@ CONFIG_AHCI=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyS1,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0600 ramdisk_size=0x2000000 default_hugepagesz=2m hugepagesz=2m hugepages=256"
index de76bf538a4568f9592cf3f49e806cd5519c661f..a9a0a27888ce9c38afd8d63fdf7aa7a189d41302 100644 (file)
@@ -25,6 +25,7 @@ CONFIG_OF_BOARD_FIXUP=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyAMA0,115200 root=/dev/ram0 earlycon=pl011,mmio32,0x21c0000 ramdisk_size=0x2000000 default_hugepagesz=1024m hugepagesz=1024m hugepages=2 pci=pcie_bus_perf"
 CONFIG_BOARD_EARLY_INIT_R=y
index a4a51e5aed89463b5e264f608f89145bbb6eb4d9..de8dc553d10bfe60cb678427f89e58d4b912b260 100644 (file)
@@ -26,6 +26,7 @@ CONFIG_OF_BOARD_FIXUP=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyAMA0,115200 root=/dev/ram0 earlycon=pl011,mmio32,0x21c0000 ramdisk_size=0x2000000 default_hugepagesz=1024m hugepagesz=1024m hugepages=2 pci=pcie_bus_perf"
index 84ff1256cde2cb9f0e8d026764b2de700015d772..ac42c2508cda0e7b7956044933685d6bb029db5e 100644 (file)
@@ -26,6 +26,7 @@ CONFIG_OF_BOARD_FIXUP=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyAMA0,115200 root=/dev/ram0 earlycon=pl011,mmio32,0x21c0000 ramdisk_size=0x2000000 default_hugepagesz=1024m hugepagesz=1024m hugepages=2 pci=pcie_bus_perf"
 CONFIG_MISC_INIT_R=y
index 75a395c2b2e5b357fd39ca3e9986783baa1451bf..59955eebbeb646571f38b1e674b466fc266e0562 100644 (file)
@@ -27,6 +27,7 @@ CONFIG_OF_BOARD_FIXUP=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyAMA0,115200 root=/dev/ram0 earlycon=pl011,mmio32,0x21c0000 ramdisk_size=0x2000000 default_hugepagesz=1024m hugepagesz=1024m hugepages=2 pci=pcie_bus_perf"
index 7cb503a8ddc33d5bc9ba74b441bd3daaa1442964..149e82bed37e64216368538197107bf3c8e209f5 100644 (file)
@@ -27,6 +27,7 @@ CONFIG_OF_BOARD_FIXUP=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyAMA0,115200 root=/dev/ram0 earlycon=pl011,mmio32,0x21c0000 ramdisk_size=0x2000000 default_hugepagesz=1024m hugepagesz=1024m hugepages=2 pci=pcie_bus_perf"
index 61cbd265c104be74786a4e90ab006ff1e6f7c060..d017a53efff865ac8ca8ce1994f87f833f10f01e 100644 (file)
@@ -25,6 +25,7 @@ CONFIG_OF_BOARD_FIXUP=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyAMA0,115200 root=/dev/ram0 earlycon=pl011,mmio32,0x21c0000 ramdisk_size=0x2000000 default_hugepagesz=1024m hugepagesz=1024m hugepages=2 pci=pcie_bus_perf"
 CONFIG_BOARD_EARLY_INIT_R=y
index aa118d972d9e06dd42ff2a68c984b22c65f50f09..203554b61f3a7b7db8c3fc930414831cede87d81 100644 (file)
@@ -26,6 +26,7 @@ CONFIG_OF_BOARD_FIXUP=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyAMA0,115200 root=/dev/ram0 earlycon=pl011,mmio32,0x21c0000 ramdisk_size=0x2000000 default_hugepagesz=1024m hugepagesz=1024m hugepages=2 pci=pcie_bus_perf"
index 15fe67af9819217eed5cd1a3a204534cb2eea8a8..32487eb41cf42e2ac05408b5b9a6b71b9398962c 100644 (file)
@@ -27,6 +27,7 @@ CONFIG_FIT_SIGNATURE=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=10
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyAMA0,115200 root=/dev/ram0 earlycon=pl011,mmio32,0x21c0000 ramdisk_size=0x2000000 default_hugepagesz=1024m hugepagesz=1024m hugepages=2 pci=pcie_bus_perf"
index da256431ab5961b7bf3a0383d7e32f37aba97638..ca1a58178e81872259215a94f34e68d305304a70 100644 (file)
@@ -22,6 +22,7 @@ CONFIG_SPL_MMC=y
 CONFIG_SPL_SERIAL=y
 CONFIG_SPL=y
 CONFIG_SYS_LOAD_ADDR=0xc0700000
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_BOOTDELAY=3
 CONFIG_USE_BOOTCOMMAND=y
 CONFIG_BOOTCOMMAND="run envboot; run mmcboot; "
index 267864f9ce8a1159c1c16604ab0098b5712a3f61..53d57e0ba20e62be88c77343c334ee6647ffc7a0 100644 (file)
@@ -17,6 +17,7 @@ CONFIG_SYS_I2C_MXC_I2C3=y
 CONFIG_DEFAULT_DEVICE_TREE="ls1021a-pg-wcom-expu1"
 CONFIG_BOOTCOUNT_BOOTLIMIT=3
 CONFIG_SYS_BOOTCOUNT_ADDR=0x70000020
+CONFIG_SYS_CLK_FREQ=66666666
 CONFIG_AHCI=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_SYS_LOAD_ADDR=0x82000000
index 5b1aa8f1d7b637f235cac9b084bf0b7400c352b5..3eaf7fde9c91c6d3503803f0822c11447578911b 100644 (file)
@@ -17,6 +17,7 @@ CONFIG_SYS_I2C_MXC_I2C3=y
 CONFIG_DEFAULT_DEVICE_TREE="ls1021a-pg-wcom-seli8"
 CONFIG_BOOTCOUNT_BOOTLIMIT=3
 CONFIG_SYS_BOOTCOUNT_ADDR=0x70000020
+CONFIG_SYS_CLK_FREQ=66666666
 CONFIG_AHCI=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_SYS_LOAD_ADDR=0x82000000
index 894203d75ba367d012b514b3f42018f7fc7c33c3..d1f928d69128b47c45572245ed83c911d9de467a 100644 (file)
@@ -2,6 +2,7 @@ CONFIG_PPC=y
 CONFIG_SYS_TEXT_BASE=0xf01000
 CONFIG_ENV_SIZE=0x2000
 CONFIG_DEFAULT_DEVICE_TREE="qemu-ppce500"
+CONFIG_SYS_CLK_FREQ=33000000
 CONFIG_MPC85xx=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_QEMU_PPCE500=y
index 7d06dea72135e210e3c02fb5c594835220124a5b..9e2036a946b9a23e9cb8f747c629519d0f14eeb6 100644 (file)
@@ -4,6 +4,7 @@ CONFIG_SYS_MALLOC_LEN=0x100000
 CONFIG_ENV_SIZE=0x40000
 CONFIG_ENV_SECT_SIZE=0x40000
 CONFIG_DEFAULT_DEVICE_TREE="sh7751-r2dplus"
+CONFIG_SYS_CLK_FREQ=60000000
 CONFIG_TARGET_R2DPLUS=y
 CONFIG_SYS_LOAD_ADDR=0x8e000000
 CONFIG_BOOTDELAY=-1
index 4a6006ad917789099ac6237e35468b0684af007d..e857da96ca07011f748c026b660494a7a2097fc1 100644 (file)
@@ -11,6 +11,7 @@ CONFIG_DEFAULT_DEVICE_TREE="r8a779a0-falcon-u-boot"
 CONFIG_SPL_TEXT_BASE=0xe6338000
 CONFIG_RCAR_GEN3=y
 CONFIG_TARGET_FALCON=y
+CONFIG_SYS_CLK_FREQ=16666666
 # CONFIG_PSCI_RESET is not set
 CONFIG_ARMV8_PSCI=y
 CONFIG_SYS_LOAD_ADDR=0x58000000
index 474698589f4cc3467d021968545b97c1a8f984b7..f2d0845d207059fa3a8c8e3b5249ff4109629a05 100644 (file)
@@ -8,6 +8,7 @@ CONFIG_ENV_SIZE=0x20000
 CONFIG_DEFAULT_DEVICE_TREE="s5pc1xx-smdkc100"
 CONFIG_TARGET_SMDKC100=y
 CONFIG_IDENT_STRING=" for SMDKC100"
+CONFIG_SYS_CLK_FREQ=12000000
 CONFIG_SYS_LOAD_ADDR=0x30000000
 CONFIG_BOOTDELAY=3
 CONFIG_USE_BOOTARGS=y
index 16edca1f29fc5e94861fac6cbf81293eb8303a2c..9631395d38c701636911d2d05a4923cef8b1f20f 100644 (file)
@@ -15,6 +15,7 @@ CONFIG_SPL_MMC=y
 CONFIG_SPL_SERIAL=y
 CONFIG_SPL=y
 CONFIG_ENV_OFFSET_REDUND=0x1E0000
+CONFIG_SYS_CLK_FREQ=27000000
 CONFIG_SPL_FS_FAT=y
 CONFIG_SPL_LIBDISK_SUPPORT=y
 CONFIG_DISTRO_DEFAULTS=y
index daa17d1502ca5193e49d148d5d943494741730a9..1c8d57b555c1a6c76ab1edbae7a63c1e7d756a96 100644 (file)
@@ -5,6 +5,7 @@ CONFIG_ENV_SIZE=0x20000
 CONFIG_ENV_SECT_SIZE=0x20000
 CONFIG_XTFPGA_KC705=y
 CONFIG_SYS_LOAD_ADDR=0x02000000
+CONFIG_DYNAMIC_SYS_CLK_FREQ=y
 CONFIG_SHOW_BOOT_PROGRESS=y
 CONFIG_BOOTDELAY=10
 CONFIG_AUTOBOOT_KEYED=y
index 8a31a4c868f1c0eb0f2ea364563f369120104915..c06a51ecd43a426e8ecd4e99a3f8ff3e902f9106 100644 (file)
@@ -317,7 +317,7 @@ static inline u32 get_pci_sync_in(immap_t *im)
        u8 clkin_div;
 
        clkin_div = (get_spmr(im) & SPMR_CKID) >> SPMR_CKID_SHIFT;
-       return CONFIG_SYS_CLK_FREQ / (1 + clkin_div);
+       return get_board_sys_clk() / (1 + clkin_div);
 }
 
 /**
@@ -331,7 +331,7 @@ static inline u32 get_csb_clk(immap_t *im)
        u8 spmf;
 
        spmf = (get_spmr(im) & SPMR_SPMF) >> SPMR_SPMF_SHIFT;
-       return CONFIG_SYS_CLK_FREQ * spmf;
+       return get_board_sys_clk() * spmf;
 }
 
 /**
index 3c9a69598ad7ef88bf044ab926b468661a55608d..ca49ef73723b80f6142d59eb7a3204668f0f142a 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <clk.h>
 #include <dm.h>
 #include <fsl_lpuart.h>
@@ -102,13 +103,9 @@ static void lpuart_write32(u32 flags, u32 *addr, u32 val)
 }
 
 
-#ifndef CONFIG_SYS_CLK_FREQ
-#define CONFIG_SYS_CLK_FREQ    0
-#endif
-
 u32 __weak get_lpuart_clk(void)
 {
-       return CONFIG_SYS_CLK_FREQ;
+       return get_board_sys_clk();
 }
 
 #if CONFIG_IS_ENABLED(CLK)
index 24813de265301b8efdb2fc04c05937160737ae63..3ec729d2c43a1eaee0a4ecb827646ed5b4fa5154 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <malloc.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
@@ -51,7 +52,7 @@ static int ostm_probe(struct udevice *dev)
 
        clk_free(&clk);
 #else
-       uc_priv->clock_rate = CONFIG_SYS_CLK_FREQ / 2;
+       uc_priv->clock_rate = get_board_sys_clk() / 2;
 #endif
 
        readb(priv->regs + OSTM_CTL);
index 29261b680d0025aad79dcb9f7b99ba68596bb1fb..efa483117dac9e6b232c4e5b077a6834b6270b35 100644 (file)
@@ -22,4 +22,15 @@ unsigned long get_board_ddr_clk(void);
 #define get_board_ddr_clk()            CONFIG_DDR_CLK_FREQ
 #endif
 
+/*
+ * If we have CONFIG_DYNAMIC_SYS_CLK_FREQ then there will be an
+ * implentation of get_board_sys_clk() somewhere.  Otherwise we have
+ * a static value to use now.
+ */
+#ifdef CONFIG_DYNAMIC_SYS_CLK_FREQ
+unsigned long get_board_sys_clk(void);
+#else
+#define get_board_sys_clk()            CONFIG_SYS_CLK_FREQ
+#endif
+
 #endif
index 94ac0526b1df6454a061cebdfb23c1728acab68d..84e05eafa619eb7a68bb4c31d4a03973e3cad7ec 100644 (file)
  * Note that PCI-X won't work at 33MHz.
  */
 
-#ifndef CONFIG_SYS_CLK_FREQ
-#define CONFIG_SYS_CLK_FREQ    33000000
-#endif
-
 /*
  * These can be toggled for performance analysis, otherwise use default.
  */
index 5c1d9b522eb798f615e6a38f2a34093d92c50119..f583aa8b36d538a3f0af5a0fec6b7a4beca3694f 100644 (file)
@@ -24,9 +24,7 @@
 
 #ifndef __ASSEMBLY__
 #include <linux/stringify.h>
-extern unsigned long get_board_sys_clk(void);
 #endif
-#define CONFIG_SYS_CLK_FREQ    get_board_sys_clk() /* sysclk for MPC85xx */
 
 /*
  * These can be toggled for performance analysis, otherwise use default.
index 32b0f40ceca811e943de06ec2de1141caf854b1d..b8a72d01dd8ca3a68e4ee1b7e304a57a25160183 100644 (file)
  * in the README.mpc85xxads.
  */
 
-#ifndef CONFIG_SYS_CLK_FREQ
-#define CONFIG_SYS_CLK_FREQ    33000000
-#endif
-
 /*
  * These can be toggled for performance analysis, otherwise use default.
  */
index abc76c92cb9c2f6081816e9b1c8645c11753739d..6a9c86c9c4fdc7a429b0ce2cc765347169e109a4 100644 (file)
 #define CONFIG_PCI_SCAN_SHOW           /* show pci devices on startup */
 #endif
 
-#define CONFIG_SYS_CLK_FREQ    66666666 /* SYSCLK for P1010 RDB */
-
 #define CONFIG_HWCONFIG
 /*
  * These can be toggled for performance analysis, otherwise use default.
index 424dd72d2e6d34e79a8474f7623481e74bc32c7d..8ada25dcc7a762dcf24b2ba925a24232bf9fcf63 100644 (file)
 #endif
 
 #ifndef __ASSEMBLY__
-unsigned long get_board_sys_clk(void);
 #include <linux/stringify.h>
 #endif
-#define CONFIG_SYS_CLK_FREQ    get_board_sys_clk()
 
 /*
  * These can be toggled for performance analysis, otherwise use default.
index aecf2452ad489357ebb9758c46807b34ee40aaf4..9b7784a0f3e755cb62e7fc4bc8a11040bc1de126 100644 (file)
 #define CONFIG_RESET_VECTOR_ADDRESS 0xfffffffc
 #endif
 
-#define CONFIG_SYS_CLK_FREQ    100000000
-
 /*
  * These can be toggled for performance analysis, otherwise use default.
  */
index a3085ac3decdf2ee2be24e73b550050d4182f773..7f3b1909dc15d54207cb2070f2130d3c46a97861 100644 (file)
@@ -92,8 +92,6 @@
 #endif
 #endif
 
-#define CONFIG_SYS_CLK_FREQ    100000000
-
 /*
  * These can be toggled for performance analysis, otherwise use default.
  */
index da20d81f03f75907ca1d405d4e1d7f710e93a274..aaea314e4587a523e2c9a3d91e1fba3e88bd635f 100644 (file)
 #define CONFIG_MEM_INIT_VALUE          0xdeadbeef
 #endif
 
-#ifndef __ASSEMBLY__
-unsigned long get_board_sys_clk(void);
-#endif
-
-#define CONFIG_SYS_CLK_FREQ    get_board_sys_clk()
-
 /*
  * Config the L3 Cache as L3 SRAM
  */
index e90b30db52667b011a492abb07c7bfb60f780833..467f6344faf5f52585f9a6794cb671ca3170ac28 100644 (file)
@@ -88,8 +88,6 @@
 #define CONFIG_MEM_INIT_VALUE          0xdeadbeef
 #endif
 
-#define CONFIG_SYS_CLK_FREQ    66660000
-
 /*
  * Config the L3 Cache as L3 SRAM
  */
index 037425bba1dbc73e200e67432717615feee435e0..2d632493c1947fdaf2b388b2dc9d1261ba47896e 100644 (file)
        "setenv bootargs config-addr=0x60000000; "      \
        "bootm 0x01000000 - 0x00f00000"
 
-#define CONFIG_SYS_CLK_FREQ    66666666
-
 /*
  * DDR Setup
  */
index d583733971aa942c6585cf392d4876246a031f58..58e8526048987b7bd89cb58506d869a89649a0db 100644 (file)
@@ -28,8 +28,7 @@
 /*
  * Timer
  */
-#define CONFIG_SYS_CLK_FREQ    39062500
-#define VERSION_CLOCK          CONFIG_SYS_CLK_FREQ
+#define VERSION_CLOCK          get_board_sys_clk()
 
 /*
  * Use Externel CLOCK or PCLK
index f2c0a0002d63effd53bee6d0a68cdb1bc5ae7d20..1022764985a2ebfc1242b29fd68477513ec641a5 100644 (file)
@@ -30,8 +30,7 @@
 /*
  * Timer
  */
-#define CONFIG_SYS_CLK_FREQ    39062500
-#define VERSION_CLOCK          CONFIG_SYS_CLK_FREQ
+#define VERSION_CLOCK          get_board_sys_clk()
 
 /*
  * Use Externel CLOCK or PCLK
index 079d2d719401d4e9e0bfcc2532949defa0999b0f..37b5800d6ef5c9f16bc936cafc6e70913320a058 100644 (file)
@@ -34,7 +34,6 @@
 #define CONFIG_BITBANGMII_MULTI
 
 /* Board Clock */
-#define CONFIG_SYS_CLK_FREQ    20000000
 
 #define CONFIG_EXTRA_ENV_SETTINGS      \
        "bootm_size=0x10000000\0"       \
index 73f63c5a9f005f4d3573e765a1fba7cf73471fd3..7714da40dc73e321928fc1417f77188257ddb383 100644 (file)
@@ -17,7 +17,7 @@
 #define CONFIG_TMU_TIMER
 #define CONFIG_SYS_TIMER_COUNTS_DOWN
 #define CONFIG_SYS_TIMER_COUNTER       (TMU_BASE + 0xc)        /* TCNT0 */
-#define CONFIG_SYS_TIMER_RATE          (CONFIG_SYS_CLK_FREQ / 4)
+#define CONFIG_SYS_TIMER_RATE          (get_board_sys_clk() / 4)
 
 /* STACK */
 #define CONFIG_SYS_INIT_SP_ADDR                0xE8083000
@@ -72,7 +72,6 @@
 #define CONFIG_BITBANGMII_MULTI
 
 /* Board Clock */
-#define CONFIG_SYS_CLK_FREQ    50000000
-#define CONFIG_SH_SCIF_CLK_FREQ CONFIG_SYS_CLK_FREQ
+#define CONFIG_SH_SCIF_CLK_FREQ get_board_sys_clk()
 
 #endif /* __ARMADILLO_800EVA_H */
index f2cc765b96a67dca81a15f93e0b8958387f26a40..882b94f55a773f8028667d935882098d901c3e5c 100644 (file)
@@ -45,7 +45,6 @@
 #endif
 
 /* Board Clock */
-#define CONFIG_SYS_CLK_FREQ    20000000
 
 /* ENV setting */
 
index 429047b1129300f972ff5a64138009df72b81efc..822ef7118e1712caf762e9f3845d2099b3496679 100644 (file)
@@ -27,7 +27,6 @@
 
 /* Board Clock */
 /* XTAL_CLK : 33.33MHz */
-#define CONFIG_SYS_CLK_FREQ    33333333
 
 /* Generic Timer Definitions (use in assembler source) */
 #define COUNTER_FREQUENCY      0xFE502A        /* 16.66MHz from CPclk */
index c8f46ebdb2d59ec364d5d1dead4aad14aededac8..f6e0b2a7ea85d54f6ce9283cf0fc49fb2f1e92b4 100644 (file)
@@ -53,8 +53,6 @@
 #define CONFIG_FSL_FIXED_MMC_LOCATION
 #endif
 
-#define CONFIG_SYS_CLK_FREQ    get_board_sys_clk() /* sysclk for MPC85xx */
-
 /*
  * These can be toggled for performance analysis, otherwise use default.
  */
index d1c0cc2363d1f3e3fb0151d719d81524d7284fd9..97c9276e0e22357872af2ec4f1da747cafae32d1 100644 (file)
 /*
  * SoC Configuration
  */
-#ifndef __ASSEMBLY__
-unsigned long get_board_sys_clk(void);
-#endif
 #define CONFIG_SYS_EXCEPTION_VECTORS_HIGH
-#define CONFIG_SYS_CLK_FREQ            get_board_sys_clk()
 #define CONFIG_SYS_OSCIN_FREQ          24000000
 #define CONFIG_SYS_TIMERBASE           DAVINCI_TIMER0_BASE
 #define CONFIG_SYS_HZ_CLOCK            clk_get(DAVINCI_AUXCLK_CLKID)
index 6d17b065fe7d90e39a77886928cfefdce8a6f397..b8a7b5a9169318d16b9de192727eae746348c784 100644 (file)
@@ -18,7 +18,6 @@
 
 /* Board Clock */
 /* XTAL_CLK : 33.33MHz */
-#define CONFIG_SYS_CLK_FREQ    33333333
 
 /* Generic Timer Definitions (use in assembler source) */
 #define COUNTER_FREQUENCY      0xFE502A        /* 16.66MHz from CPclk */
index 95aaa747e4bea01cb2a82386f6e8497b7edf9642..eb2606905f8a8be9e6f0c51bf4ab52dcda7c73e7 100644 (file)
@@ -19,8 +19,7 @@
 /* Keep L2 Cache Disabled */
 
 /* input clock of PLL: 24MHz input clock */
-#define CONFIG_SYS_CLK_FREQ            24000000
-#define COUNTER_FREQUENCY              CONFIG_SYS_CLK_FREQ
+#define COUNTER_FREQUENCY              24000000
 
 /* select serial console configuration */
 
index f9c3c2b9c76bfe0172b9142db13c9426493add12..1d6a9b9b73448b449808ee8f09f64c72c3b44af2 100644 (file)
@@ -26,7 +26,6 @@
 
 /* Board Clock */
 /* XTAL_CLK : 16.66MHz */
-#define CONFIG_SYS_CLK_FREQ    16666666
 
 /* Generic Timer Definitions (use in assembler source) */
 #define COUNTER_FREQUENCY      0xFE502A        /* 16.66MHz from CPclk */
index 2e35752664b0811eea8eb7d12aecca4fd7e3468e..01657d7a669e2386e2f4ad900e2923014e31f2bb 100644 (file)
@@ -30,7 +30,6 @@
 #define CONFIG_BITBANGMII_MULTI
 
 /* Board Clock */
-#define CONFIG_SYS_CLK_FREQ    20000000
 
 #define CONFIG_EXTRA_ENV_SETTINGS      \
        "bootm_size=0x10000000\0"
index 29a446c2f5d44837ccb3e27d4c75196c3994a4f1..fb01c5614b6cb29d6120bf448abeaebb25ae1298 100644 (file)
@@ -9,7 +9,6 @@
 #define __GRPEACH_H
 
 /* Board Clock , P1 clock frequency (XTAL=13.33MHz) */
-#define CONFIG_SYS_CLK_FREQ    66666666
 
 /* Miscellaneous */
 #define CONFIG_SYS_PBSIZE      256
index 869bd9b30a9d70018da2106a67b86babd00181f8..47a335bcf8ff0a338bfafd99a0a5bb3d03f0d73f 100644 (file)
@@ -8,7 +8,6 @@
 /*
  * System Clock Setup
  */
-#define CONFIG_SYS_CLK_FREQ            66000000
 #define CONFIG_83XX_PCICLK             66000000
 
 /* QE microcode/firmware address */
index de6e7daf066dbf0fc6f20a38bdbbdc0bcf4a98a9..d985ab7a65a913558956563c24fe731ae4f87acb 100644 (file)
@@ -6,7 +6,6 @@
 /*
  * System Clock Setup
  */
-#define CONFIG_SYS_CLK_FREQ            66000000
 #define CONFIG_83XX_PCICLK             66000000
 
 /*
index d94572d3abf6faafc836fc596f42798062829f73..ba0e4dd5c6ad3cbc0999482ffdd44b688db442a6 100644 (file)
@@ -16,8 +16,6 @@
                                          CONFIG_KM_PHRAM + \
                                          CONFIG_KM_RESERVED_PRAM) >> 10)
 
-#define CONFIG_SYS_CLK_FREQ            66666666
-
 #define PHYS_SDRAM                     0x80000000
 #define PHYS_SDRAM_SIZE                        (1u * 1024 * 1024 * 1024)
 
index 45371ee72361375b14d5c4733f2b896000cdb0a6..98e572397b5ed73d3326e026e2bb5686c92be16c 100644 (file)
 #define CONFIG_ENV_TOTAL_SIZE          0x040000
 #define ENV_DEL_ADDR           0xebf00000      /*direct for newenv*/
 
-#define CONFIG_SYS_CLK_FREQ    66666666
-
 /*
  * These can be toggled for performance analysis, otherwise use default.
  */
index 60fe4ae3839e970673694e3231bef78ddb9a4bd3..9e1f802e4e575131af70239fa91501ee016a8bd6 100644 (file)
@@ -27,7 +27,6 @@
 /*
  * System Clock Setup
  */
-#define CONFIG_SYS_CLK_FREQ            66000000
 #define CONFIG_83XX_PCICLK             66000000
 
 /**
index 18a1ebd45632dd0e3a8b2c05a75cd53da691e599..eca8998a515bc604f4bdb50530f87d1c43c1ef37 100644 (file)
@@ -30,7 +30,6 @@
 #define CONFIG_BITBANGMII_MULTI
 
 /* Board Clock */
-#define CONFIG_SYS_CLK_FREQ    20000000
 
 #define CONFIG_EXTRA_ENV_SETTINGS      \
        "bootm_size=0x10000000\0"
index 84dd818aa9c81bf72972c1d04c5bb4f49546e256..448749a7f81d93d353c662ad555d6c50c5d5ac59 100644 (file)
@@ -42,8 +42,7 @@
 /* serial port */
 #define CONFIG_SYS_NS16550_CLK          (get_bus_freq(0) / 2)
 
-#define CONFIG_SYS_CLK_FREQ            100000000
-#define COUNTER_FREQUENCY_REAL         (CONFIG_SYS_CLK_FREQ / 4)
+#define COUNTER_FREQUENCY_REAL         (get_board_sys_clk() / 4)
 
 /* ethernet */
 #define CONFIG_SYS_RX_ETH_BUFFER       8
index c3f690c7d70ee92a524fb8563c2a73b44b77e3e4..1eb6dafe203a78e5823947b0366b56d0da365621 100644 (file)
@@ -68,9 +68,8 @@
 
 /* Clock */
 #define CONFIG_GLOBAL_TIMER
-#define CONFIG_SYS_CLK_FREQ    (48000000)
 #define CONFIG_SYS_CPU_CLK     (1196000000)
-#define CONFIG_SH_SCIF_CLK_FREQ CONFIG_SYS_CLK_FREQ
+#define CONFIG_SH_SCIF_CLK_FREQ get_board_sys_clk()
 #define TMU_CLK_DIVIDER                (4)     /* 4 (default), 16, 64, 256 or 1024 */
 
 #define CONFIG_NFS_TIMEOUT 10000UL
index 6e003e846620eaa23a60ff7ccf45d76874ee6b86..4c291aa89beffe7339fc0cce6581690cc1187017 100644 (file)
@@ -31,7 +31,6 @@
 #define CONFIG_BITBANGMII_MULTI
 
 /* Board Clock */
-#define CONFIG_SYS_CLK_FREQ    20000000
 
 #define CONFIG_EXTRA_ENV_SETTINGS      \
        "bootm_size=0x10000000\0"
index 21ba9b8da8c46f89b0dc61bfe971c13d01330001..b912db11d00ee53ba4be78724cf702692d8c51a7 100644 (file)
 /*
  * SoC Configuration
  */
-#ifndef __ASSEMBLY__
-unsigned long get_board_sys_clk(void);
-#endif
 #define CONFIG_SYS_EXCEPTION_VECTORS_HIGH
-#define CONFIG_SYS_CLK_FREQ            get_board_sys_clk()
 #define CONFIG_SYS_OSCIN_FREQ          24000000
 #define CONFIG_SYS_TIMERBASE           DAVINCI_TIMER0_BASE
 #define CONFIG_SYS_HZ_CLOCK            clk_get(DAVINCI_AUXCLK_CLKID)
index 7cbea26924526f1d8a47a7b5419d073b79f39eb5..5d561009c563abfdfe5b16f8015a58555f813ad6 100644 (file)
@@ -10,8 +10,6 @@
 #include <asm/arch/stream_id_lsch2.h>
 #include <linux/sizes.h>
 
-#define CONFIG_SYS_CLK_FREQ            125000000
-
 #ifdef CONFIG_TFABOOT
 #define CONFIG_SYS_INIT_SP_ADDR                CONFIG_SYS_TEXT_BASE
 #else
index 3d504599f317a30f5da35fbd7d4b0ee206897ed7..7b4044fba724ceea7e33c1b567643dd30d778383 100644 (file)
@@ -12,8 +12,6 @@
 #define CONFIG_SYS_INIT_RAM_ADDR       OCRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       OCRAM_SIZE
 
-#define CONFIG_SYS_CLK_FREQ            100000000
-
 /*
  * DDR: 800 MHz ( 1600 MT/s data rate )
  */
index d8ce83b33fa1805388375a7c58f60592310809eb..7ef42a6d8c3d245e36f917fb0eec86cfbdf3cd42 100644 (file)
 #define CONFIG_SYS_INIT_RAM_ADDR       OCRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       OCRAM_SIZE
 
-#ifndef __ASSEMBLY__
-unsigned long get_board_sys_clk(void);
-#endif
-
 #if defined(CONFIG_QSPI_BOOT) || defined(CONFIG_SD_BOOT_QSPI)
-#define CONFIG_SYS_CLK_FREQ            100000000
 #define CONFIG_QIXIS_I2C_ACCESS
-#else
-#define CONFIG_SYS_CLK_FREQ            get_board_sys_clk()
 #endif
 
 #ifdef CONFIG_SD_BOOT
index 08fbd72008b480ffdc8ef0311e6de2af8e26fb92..5f6c2a0037072e6b093b90795843882d2b6a3212 100644 (file)
@@ -16,8 +16,6 @@
 /* XHCI Support - enabled by default */
 #define CONFIG_USB_MAX_CONTROLLER_COUNT        1
 
-#define CONFIG_SYS_CLK_FREQ            100000000
-
 #define DDR_SDRAM_CFG                  0x470c0008
 #define DDR_CS0_BNDS                   0x008000bf
 #define DDR_CS0_CONFIG                 0x80014302
index c5ccaa84e52ee28e0d8054fc2817975d2c7850ec..75fab4328a079425e8cd9c03506564aea37e832d 100644 (file)
@@ -14,8 +14,6 @@
 #define CONFIG_SYS_INIT_RAM_ADDR       OCRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       OCRAM_SIZE
 
-#define CONFIG_SYS_CLK_FREQ            100000000
-
 #define DDR_SDRAM_CFG                  0x470c0008
 #define DDR_CS0_BNDS                   0x008000bf
 #define DDR_CS0_CONFIG                 0x80014302
index fe20363e690f7e32de12ebbb6d6f93d112f10e47..8e3bd7790fe1ccbdd653c74bee96efafb34ac678 100644 (file)
@@ -8,8 +8,7 @@
 
 #include "ls1028a_common.h"
 
-#define CONFIG_SYS_CLK_FREQ            100000000
-#define COUNTER_FREQUENCY_REAL         (CONFIG_SYS_CLK_FREQ / 4)
+#define COUNTER_FREQUENCY_REAL         (get_board_sys_clk() / 4)
 
 /* DDR */
 #define CONFIG_DIMM_SLOTS_PER_CTLR             2
index 348db1e2f8c160cffc350fdcf3c600e22f4cbd09..5ce9ebbae93f1ada6e11d1830b4e661c98c5f280 100644 (file)
@@ -8,8 +8,7 @@
 
 #include "ls1028a_common.h"
 
-#define CONFIG_SYS_CLK_FREQ            100000000
-#define COUNTER_FREQUENCY_REAL         (CONFIG_SYS_CLK_FREQ / 4)
+#define COUNTER_FREQUENCY_REAL         (get_board_sys_clk() / 4)
 
 #define CONFIG_SYS_RTC_BUS_NUM         0
 
index 929830e693a979b1347eb514f9b5b6f8a4a4535b..80eff7b1a902a6702a7fd45cb8a0cb0d6b2cf8aa 100644 (file)
@@ -8,12 +8,6 @@
 
 #include "ls1043a_common.h"
 
-#ifndef __ASSEMBLY__
-unsigned long get_board_sys_clk(void);
-#endif
-
-#define CONFIG_SYS_CLK_FREQ            get_board_sys_clk()
-
 #define CONFIG_LAYERSCAPE_NS_ACCESS
 
 #define CONFIG_DIMM_SLOTS_PER_CTLR     1
index 0d071c4ab748535605a40e99822048fb8fdbdd6a..7b6d19374e76168a9de28e415421872c57e72a85 100644 (file)
@@ -8,8 +8,6 @@
 
 #include "ls1043a_common.h"
 
-#define CONFIG_SYS_CLK_FREQ            100000000
-
 #define CONFIG_LAYERSCAPE_NS_ACCESS
 
 #define CONFIG_DIMM_SLOTS_PER_CTLR     1
index 472550311107475b533a4276cfff6977f3b90ff5..14ad84a1ef462b92e46f23c1f7badeaac9b9b7a2 100644 (file)
@@ -8,8 +8,6 @@
 
 #include "ls1046a_common.h"
 
-#define CONFIG_SYS_CLK_FREQ            100000000
-
 #define CONFIG_LAYERSCAPE_NS_ACCESS
 
 #define CONFIG_DIMM_SLOTS_PER_CTLR     1
index d1803d2623aa2e0922466c5201cdb77d69a51bc5..97bf4182be167b99afb244cf800f92c6b25e6762 100644 (file)
@@ -8,12 +8,6 @@
 
 #include "ls1046a_common.h"
 
-#ifndef __ASSEMBLY__
-unsigned long get_board_sys_clk(void);
-#endif
-
-#define CONFIG_SYS_CLK_FREQ            get_board_sys_clk()
-
 #define CONFIG_LAYERSCAPE_NS_ACCESS
 
 #define CONFIG_DIMM_SLOTS_PER_CTLR     1
index 4fc954c5384976b34625cc30bc724d1c6d7c7bab..8ed1dceb234371e658ded68998c42a465cb97ce0 100644 (file)
@@ -9,8 +9,6 @@
 
 #include "ls1046a_common.h"
 
-#define CONFIG_SYS_CLK_FREQ            100000000
-
 #define CONFIG_LAYERSCAPE_NS_ACCESS
 
 #define CONFIG_DIMM_SLOTS_PER_CTLR     1
index dcf73a914bf17942db7b84155dfaecf89e87bae0..5912fe95ccfbc9c632bd3900046b950aa8d4e327 100644 (file)
@@ -8,22 +8,14 @@
 
 #include "ls1088a_common.h"
 
-
-#ifndef __ASSEMBLY__
-unsigned long get_board_sys_clk(void);
-#endif
-
 #if defined(CONFIG_QSPI_BOOT) || defined(CONFIG_SD_BOOT_QSPI)
 #define CONFIG_QIXIS_I2C_ACCESS
 #define SYS_NO_FLASH
-
-#define CONFIG_SYS_CLK_FREQ            100000000
 #else
 #define CONFIG_QIXIS_I2C_ACCESS
-#define CONFIG_SYS_CLK_FREQ            get_board_sys_clk()
 #endif
 
-#define COUNTER_FREQUENCY_REAL         (CONFIG_SYS_CLK_FREQ/4)
+#define COUNTER_FREQUENCY_REAL         (get_board_sys_clk()/4)
 #define COUNTER_FREQUENCY              25000000        /* 25MHz */
 
 #define CONFIG_DIMM_SLOTS_PER_CTLR     1
index 0f7778c58ee319986b8fcdb6ca67948fa7fe3bda..400b8adb24c47861cab143ddfbaddae370ac366c 100644 (file)
@@ -16,7 +16,6 @@
 #define SYS_NO_FLASH
 #endif
 
-#define CONFIG_SYS_CLK_FREQ            100000000
 #define COUNTER_FREQUENCY_REAL         25000000        /* 25MHz */
 #define COUNTER_FREQUENCY              25000000        /* 25MHz */
 
index 3fe0ce7bcfa4b0b4f7fb074616a8a27f2ea41388..b0a05dd8071c75321b7477f7340234e0afe566c1 100644 (file)
@@ -9,18 +9,13 @@
 
 #include "ls2080a_common.h"
 
-#ifndef __ASSEMBLY__
-unsigned long get_board_sys_clk(void);
-#endif
-
 #ifdef CONFIG_FSL_QSPI
 #define CONFIG_QIXIS_I2C_ACCESS
 #define CONFIG_SYS_I2C_IFDR_DIV                0x7e
 #endif
 
 #define CONFIG_SYS_I2C_FPGA_ADDR       0x66
-#define CONFIG_SYS_CLK_FREQ            get_board_sys_clk()
-#define COUNTER_FREQUENCY_REAL         (CONFIG_SYS_CLK_FREQ/4)
+#define COUNTER_FREQUENCY_REAL         (get_board_sys_clk()/4)
 
 #define CONFIG_MEM_INIT_VALUE          0xdeadbeef
 #define SPD_EEPROM_ADDRESS1    0x51
index 96b804b57f42388c914d424d8c124176aad2f7c7..a54387e16ca729a18aa03371a3d0251569eaa031 100644 (file)
 #define VDD_MV_MIN                     819
 #define VDD_MV_MAX                     1212
 
-#ifndef __ASSEMBLY__
-unsigned long get_board_sys_clk(void);
-#endif
-
-#define CONFIG_SYS_CLK_FREQ            get_board_sys_clk()
-#define COUNTER_FREQUENCY_REAL         (CONFIG_SYS_CLK_FREQ/4)
+#define COUNTER_FREQUENCY_REAL         (get_board_sys_clk()/4)
 
 #define CONFIG_MEM_INIT_VALUE          0xdeadbeef
 #define SPD_EEPROM_ADDRESS1    0x51
index 767980fa94e5db1f59469c24045b9c93e344b003..e285109cbba26c13aebf0e038fbafa76c96ac298 100644 (file)
 #endif
 #endif
 
-/* GPIO */
-
-#ifndef __ASSEMBLY__
-unsigned long get_board_sys_clk(void);
-#endif
-
-#define CONFIG_SYS_CLK_FREQ            get_board_sys_clk()
-#define COUNTER_FREQUENCY_REAL         (CONFIG_SYS_CLK_FREQ / 4)
+#define COUNTER_FREQUENCY_REAL         (get_board_sys_clk() / 4)
 
 #define CONFIG_HWCONFIG
 #define HWCONFIG_BUFFER_SIZE           128
index 1036a05a29087ef4860217ff1b51b77b4b1dd177..45297b9a612aff2a32c9bf2ef257eeb58c2bcf1d 100644 (file)
 /*
  * SoC Configuration
  */
-#ifndef __ASSEMBLY__
-unsigned long get_board_sys_clk(void);
-#endif
-#define CONFIG_SYS_CLK_FREQ            get_board_sys_clk()
 #define CONFIG_SYS_OSCIN_FREQ          24000000
 #define CONFIG_SYS_TIMERBASE           DAVINCI_TIMER0_BASE
 #define CONFIG_SYS_HZ_CLOCK            clk_get(DAVINCI_AUXCLK_CLKID)
index e2330ee87f74444f60a84302e51c876d4d8112e4..2e1331b9b075b33cfb9af994bf9e0c04d2cdf479 100644 (file)
 #define CONFIG_SYS_SATA_MAX_DEVICE     2
 #define CONFIG_LBA48
 
-#if defined(CONFIG_TARGET_P2020RDB)
-#define CONFIG_SYS_CLK_FREQ    100000000
-#else
-#define CONFIG_SYS_CLK_FREQ    66666666
-#endif
-
 #define CONFIG_HWCONFIG
 /*
  * These can be toggled for performance analysis, otherwise use default.
index da2e171e002bce8b39a4bf4f2dc097147d9cf1e5..867dadaedd031a93838f91f759b01fb93814eb0b 100644 (file)
@@ -35,7 +35,6 @@
 #define CONFIG_BITBANGMII_MULTI
 
 /* Board Clock */
-#define CONFIG_SYS_CLK_FREQ    20000000
 
 #define CONFIG_EXTRA_ENV_SETTINGS      \
        "bootm_size=0x10000000\0"
index 7d8db6f60ddf4df37c4056db147dfa1af33fc582..e257c0ec1f4da3407d88bae99110adfe5416b049 100644 (file)
@@ -45,8 +45,6 @@ extern unsigned long long get_phys_ccsrbar_addr_early(void);
 
 #define CONFIG_CHIP_SELECTS_PER_CTRL   0
 
-#define CONFIG_SYS_CLK_FREQ        33000000
-
 #define CONFIG_SYS_BOOT_BLOCK          0x00000000      /* boot TLB */
 
 #define CONFIG_SYS_MONITOR_BASE                CONFIG_SYS_TEXT_BASE
index 1dd83dbf64d3a84a3d68f3e604bd69b29d38c829..680d16d547c421907a1d614588c7ee51d135934a 100644 (file)
@@ -29,7 +29,6 @@
 /*
  * SuperH Clock setting
  */
-#define CONFIG_SYS_CLK_FREQ    60000000
 #define        CONFIG_SYS_PLL_SETTLING_TIME    100/* in us */
 
 /*
index 595482c22e90e9eccc2f09fe0ada55108d754c9a..f1f5d07bf81a63b8c45fd606eeda1664d54dbf79 100644 (file)
@@ -42,6 +42,6 @@
 #define CONFIG_TMU_TIMER
 #define CONFIG_SYS_TIMER_COUNTS_DOWN
 #define CONFIG_SYS_TIMER_COUNTER       (TMU_BASE + 0xc)        /* TCNT0 */
-#define CONFIG_SYS_TIMER_RATE          (CONFIG_SYS_CLK_FREQ / 8)
+#define CONFIG_SYS_TIMER_RATE          (get_board_sys_clk() / 8)
 
 #endif /* __RCAR_GEN2_COMMON_H */
index 785caa7b89af147f3e675909b42fdc7445e6b5d6..29350a635b2799603bfc6e9c3f0394088def9548 100644 (file)
@@ -35,7 +35,6 @@
 #define CONFIG_BITBANGMII_MULTI
 
 /* Board Clock */
-#define CONFIG_SYS_CLK_FREQ    20000000
 
 #define CONFIG_EXTRA_ENV_SETTINGS      \
        "bootm_size=0x10000000\0"
index 8fdb692713cb928d0176bc518eccec104fa53468..28ff48bf3d774d2f1b99dfe639334a7c8524367c 100644 (file)
@@ -22,7 +22,6 @@
 #include <asm/arch/cpu.h>              /* get chip and board defs */
 
 /* input clock of PLL: SMDKC100 has 12MHz input clock */
-#define CONFIG_SYS_CLK_FREQ            12000000
 
 /* DRAM Base */
 #define CONFIG_SYS_SDRAM_BASE          0x30000000
index 5052c72f54b6dfd9a2fb4059d350443a217fff8c..15e93d044ef1b1e4ef1ac81b63d278926242cfd7 100644 (file)
  * in the README.mpc85xxads.
  */
 
-#ifndef CONFIG_SYS_CLK_FREQ
-#define CONFIG_SYS_CLK_FREQ    66666666
-#endif
-
 /*
  * These can be toggled for performance analysis, otherwise use default.
  */
index 0d077ea031b11a70ca5f24a5943a36a9bb9bfcd5..df2d9676b5e993ed79d3a974664e67dd88e36f7a 100644 (file)
@@ -39,7 +39,6 @@
 #define CONFIG_BITBANGMII_MULTI
 
 /* Board Clock */
-#define CONFIG_SYS_CLK_FREQ    20000000
 
 #define CONFIG_EXTRA_ENV_SETTINGS      \
        "bootm_size=0x10000000\0"
index 44dca25b43c5fb00c0363b6c46ae6002dd357a2e..533673ba5d37a7ff072c38a04920eca86ad3c289 100644 (file)
@@ -27,7 +27,6 @@
 /**
  * Platform/Board specific defs
  */
-#define CONFIG_SYS_CLK_FREQ     27000000
 #define CONFIG_SYS_TIMERBASE    0x4802E000
 #define CONFIG_SYS_PTV          2   /* Divisor: 2^(PTV+1) => 8 */
 
index d1ba78a0309980298d590c2927be06e7d68cb7da..c8a6e9a61af4cc8d49b26574ced75e76996b7e2b 100644 (file)
 
 #define CONFIG_XTFPGA
 
-/* FPGA CPU freq after init */
-#ifndef __ASSEMBLY__
-unsigned long get_board_sys_clk(void);
-#endif
-#define CONFIG_SYS_CLK_FREQ            get_board_sys_clk()
-
 /*===================*/
 /* RAM Layout        */
 /*===================*/
@@ -172,7 +166,7 @@ unsigned long get_board_sys_clk(void);
 #define CONFIG_SYS_NS16550_COM1                IOADDR(0x0D050020) /* Base address */
 
 /* Input clk to NS16550 (in Hz; the SYS_CLK_FREQ is in kHz) */
-#define CONFIG_SYS_NS16550_CLK         CONFIG_SYS_CLK_FREQ
+#define CONFIG_SYS_NS16550_CLK         get_board_sys_clk()
 
 /*======================*/
 /* Ethernet Driver Info */
index 20bf6d3125250d91dee3bce90c7c406bef9036a6..804907d64558df3f5cc2dddf7e56d23251eded75 100644 (file)
@@ -16,6 +16,8 @@
 #ifndef __FTWDT010_H
 #define __FTWDT010_H
 
+#include <clock_legacy.h>
+
 struct ftwdt010_wdt {
        unsigned int    wdcounter;      /* Counter Reg          - 0x00 */
        unsigned int    wdload;         /* Counter Auto Reload Reg - 0x04 */
@@ -82,10 +84,10 @@ struct ftwdt010_wdt {
 
 /*
  * Variable timeout should be set in ms.
- * (CONFIG_SYS_CLK_FREQ/1000) equals 1 ms.
+ * (get_board_sys_clk()/1000) equals 1 ms.
  * WDLOAD = timeout * TIMEOUT_FACTOR.
  */
-#define FTWDT010_TIMEOUT_FACTOR                (CONFIG_SYS_CLK_FREQ / 1000) /* 1 ms */
+#define FTWDT010_TIMEOUT_FACTOR                (get_board_sys_clk() / 1000) /* 1 ms */
 
 void ftwdt010_wdt_reset(void);
 void ftwdt010_wdt_disable(void);
index 38a9758292a5ef4182466d62df22de7e2606f61e..96074b84af69342f1e58b10a5c9fe4ab9299d264 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <bootstage.h>
 #include <dm.h>
 #include <errno.h>