All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] config: versal: Update mini u-boot timer clock to 100Mhz
@ 2020-10-07  7:59 Michal Simek
  2020-10-27  7:14 ` Michal Simek
  0 siblings, 1 reply; 2+ messages in thread
From: Michal Simek @ 2020-10-07  7:59 UTC (permalink / raw)
  To: u-boot

From: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>

Mini u-boot timer clock is not updated when u-boot is migrated from
emulator to silicon. Due to this slower clock of 2.72Mhz, delay() functions
are not working accurately. Update CONFIG_COUNTER_FREQUENCY to 100Mhz.

Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 configs/xilinx_versal_mini_defconfig       | 2 +-
 configs/xilinx_versal_mini_emmc0_defconfig | 2 +-
 configs/xilinx_versal_mini_emmc1_defconfig | 2 +-
 configs/xilinx_versal_virt_defconfig       | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/configs/xilinx_versal_mini_defconfig b/configs/xilinx_versal_mini_defconfig
index 609fb9afb55c..57492a72dad5 100644
--- a/configs/xilinx_versal_mini_defconfig
+++ b/configs/xilinx_versal_mini_defconfig
@@ -7,7 +7,7 @@ CONFIG_NR_DRAM_BANKS=3
 CONFIG_ENV_SIZE=0x80
 CONFIG_SYS_MALLOC_LEN=0x2000
 CONFIG_SYS_MEM_RSVD_FOR_MMU=y
-CONFIG_COUNTER_FREQUENCY=2720000
+CONFIG_COUNTER_FREQUENCY=100000000
 # CONFIG_PSCI_RESET is not set
 CONFIG_DEFAULT_DEVICE_TREE="versal-mini"
 # CONFIG_EXPERT is not set
diff --git a/configs/xilinx_versal_mini_emmc0_defconfig b/configs/xilinx_versal_mini_emmc0_defconfig
index e8fb2f98b6d7..ce14b42fd23d 100644
--- a/configs/xilinx_versal_mini_emmc0_defconfig
+++ b/configs/xilinx_versal_mini_emmc0_defconfig
@@ -6,7 +6,7 @@ CONFIG_SYS_TEXT_BASE=0x10000
 CONFIG_NR_DRAM_BANKS=1
 CONFIG_ENV_SIZE=0x80
 CONFIG_SYS_MALLOC_LEN=0x80000
-CONFIG_COUNTER_FREQUENCY=2720000
+CONFIG_COUNTER_FREQUENCY=100000000
 # CONFIG_PSCI_RESET is not set
 CONFIG_DEFAULT_DEVICE_TREE="versal-mini-emmc0"
 # CONFIG_EXPERT is not set
diff --git a/configs/xilinx_versal_mini_emmc1_defconfig b/configs/xilinx_versal_mini_emmc1_defconfig
index f9c84ca1dedf..bffc5db79518 100644
--- a/configs/xilinx_versal_mini_emmc1_defconfig
+++ b/configs/xilinx_versal_mini_emmc1_defconfig
@@ -6,7 +6,7 @@ CONFIG_SYS_TEXT_BASE=0x10000
 CONFIG_NR_DRAM_BANKS=1
 CONFIG_ENV_SIZE=0x80
 CONFIG_SYS_MALLOC_LEN=0x80000
-CONFIG_COUNTER_FREQUENCY=2720000
+CONFIG_COUNTER_FREQUENCY=100000000
 # CONFIG_PSCI_RESET is not set
 CONFIG_DEFAULT_DEVICE_TREE="versal-mini-emmc1"
 # CONFIG_EXPERT is not set
diff --git a/configs/xilinx_versal_virt_defconfig b/configs/xilinx_versal_virt_defconfig
index b4123a9bfe9d..b6ca566ed8cd 100644
--- a/configs/xilinx_versal_virt_defconfig
+++ b/configs/xilinx_versal_virt_defconfig
@@ -5,7 +5,7 @@ CONFIG_SYS_TEXT_BASE=0x8000000
 CONFIG_SYS_MALLOC_F_LEN=0x100000
 CONFIG_DM_GPIO=y
 CONFIG_DEFINE_TCM_OCM_MMAP=y
-CONFIG_COUNTER_FREQUENCY=62500000
+CONFIG_COUNTER_FREQUENCY=100000000
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
-- 
2.28.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] config: versal: Update mini u-boot timer clock to 100Mhz
  2020-10-07  7:59 [PATCH] config: versal: Update mini u-boot timer clock to 100Mhz Michal Simek
@ 2020-10-27  7:14 ` Michal Simek
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2020-10-27  7:14 UTC (permalink / raw)
  To: u-boot

st 7. 10. 2020 v 9:59 odes?latel Michal Simek <michal.simek@xilinx.com> napsal:
>
> From: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
>
> Mini u-boot timer clock is not updated when u-boot is migrated from
> emulator to silicon. Due to this slower clock of 2.72Mhz, delay() functions
> are not working accurately. Update CONFIG_COUNTER_FREQUENCY to 100Mhz.
>
> Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> ---
>
>  configs/xilinx_versal_mini_defconfig       | 2 +-
>  configs/xilinx_versal_mini_emmc0_defconfig | 2 +-
>  configs/xilinx_versal_mini_emmc1_defconfig | 2 +-
>  configs/xilinx_versal_virt_defconfig       | 2 +-
>  4 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/configs/xilinx_versal_mini_defconfig b/configs/xilinx_versal_mini_defconfig
> index 609fb9afb55c..57492a72dad5 100644
> --- a/configs/xilinx_versal_mini_defconfig
> +++ b/configs/xilinx_versal_mini_defconfig
> @@ -7,7 +7,7 @@ CONFIG_NR_DRAM_BANKS=3
>  CONFIG_ENV_SIZE=0x80
>  CONFIG_SYS_MALLOC_LEN=0x2000
>  CONFIG_SYS_MEM_RSVD_FOR_MMU=y
> -CONFIG_COUNTER_FREQUENCY=2720000
> +CONFIG_COUNTER_FREQUENCY=100000000
>  # CONFIG_PSCI_RESET is not set
>  CONFIG_DEFAULT_DEVICE_TREE="versal-mini"
>  # CONFIG_EXPERT is not set
> diff --git a/configs/xilinx_versal_mini_emmc0_defconfig b/configs/xilinx_versal_mini_emmc0_defconfig
> index e8fb2f98b6d7..ce14b42fd23d 100644
> --- a/configs/xilinx_versal_mini_emmc0_defconfig
> +++ b/configs/xilinx_versal_mini_emmc0_defconfig
> @@ -6,7 +6,7 @@ CONFIG_SYS_TEXT_BASE=0x10000
>  CONFIG_NR_DRAM_BANKS=1
>  CONFIG_ENV_SIZE=0x80
>  CONFIG_SYS_MALLOC_LEN=0x80000
> -CONFIG_COUNTER_FREQUENCY=2720000
> +CONFIG_COUNTER_FREQUENCY=100000000
>  # CONFIG_PSCI_RESET is not set
>  CONFIG_DEFAULT_DEVICE_TREE="versal-mini-emmc0"
>  # CONFIG_EXPERT is not set
> diff --git a/configs/xilinx_versal_mini_emmc1_defconfig b/configs/xilinx_versal_mini_emmc1_defconfig
> index f9c84ca1dedf..bffc5db79518 100644
> --- a/configs/xilinx_versal_mini_emmc1_defconfig
> +++ b/configs/xilinx_versal_mini_emmc1_defconfig
> @@ -6,7 +6,7 @@ CONFIG_SYS_TEXT_BASE=0x10000
>  CONFIG_NR_DRAM_BANKS=1
>  CONFIG_ENV_SIZE=0x80
>  CONFIG_SYS_MALLOC_LEN=0x80000
> -CONFIG_COUNTER_FREQUENCY=2720000
> +CONFIG_COUNTER_FREQUENCY=100000000
>  # CONFIG_PSCI_RESET is not set
>  CONFIG_DEFAULT_DEVICE_TREE="versal-mini-emmc1"
>  # CONFIG_EXPERT is not set
> diff --git a/configs/xilinx_versal_virt_defconfig b/configs/xilinx_versal_virt_defconfig
> index b4123a9bfe9d..b6ca566ed8cd 100644
> --- a/configs/xilinx_versal_virt_defconfig
> +++ b/configs/xilinx_versal_virt_defconfig
> @@ -5,7 +5,7 @@ CONFIG_SYS_TEXT_BASE=0x8000000
>  CONFIG_SYS_MALLOC_F_LEN=0x100000
>  CONFIG_DM_GPIO=y
>  CONFIG_DEFINE_TCM_OCM_MMAP=y
> -CONFIG_COUNTER_FREQUENCY=62500000
> +CONFIG_COUNTER_FREQUENCY=100000000
>  CONFIG_DISTRO_DEFAULTS=y
>  CONFIG_FIT=y
>  CONFIG_FIT_VERBOSE=y
> --
> 2.28.0
>

Applied.
M

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-27  7:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-07  7:59 [PATCH] config: versal: Update mini u-boot timer clock to 100Mhz Michal Simek
2020-10-27  7:14 ` Michal Simek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.