[PATCH V2 2/6] arch: arm: move COUNTER_FREQUENCY from versal to arm

Peng Fan (OSS) peng.fan at oss.nxp.com
Mon Apr 11 04:02:13 CEST 2022



On 2022/4/10 23:28, Tom Rini wrote:
> On Sun, Apr 10, 2022 at 04:31:57PM +0800, Peng Fan (OSS) wrote:
>> From: Peng Fan <peng.fan at nxp.com>
>>
>> Make COUNTER_FREQUENCY usable to armv8 and armv7-a, not limited to
>> versal.
>>
>> Signed-off-by: Peng Fan <peng.fan at nxp.com>
>> ---
>>   arch/arm/Kconfig             | 7 +++++++
>>   arch/arm/mach-versal/Kconfig | 6 ------
>>   2 files changed, 7 insertions(+), 6 deletions(-)
>>
>> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
>> index 6771f14b1059..d84c10d732e5 100644
>> --- a/arch/arm/Kconfig
>> +++ b/arch/arm/Kconfig
>> @@ -19,6 +19,13 @@ config ARM64_CRC32
>>   	  not be present on all ARMv8.0, but is always present on ARMv8.1 and
>>   	  newer.
>>   
>> +config COUNTER_FREQUENCY
>> +	int "Timer clock frequency"
>> +	depends on ARM64 || CPU_V7A
>> +	default 0
>> +	help
>> +	  Setup time clock frequency for certain platform
> 
> We need to expand this help text more to note what it is for, and when
> zero is a valid value.  Thanks.
> 

zero is not a valid value. When it is 0, it means U-Boot no need 
configure cntfrq_el0. Will post out v3 later, see whether people
have comments on other patches in this patchset.

Thanks,
Peng.


More information about the U-Boot mailing list