[U-Boot] [PATCH 1/2] ARM: AM43xx: Add support for RTC only mode

Keerthy j-keerthy at ti.com
Thu Mar 15 12:28:47 UTC 2018



On Thursday 15 March 2018 05:56 PM, Tom Rini wrote:
> On Thu, Mar 15, 2018 at 04:09:52PM +0530, Keerthy wrote:
> 
>> From: Tero Kristo <t-kristo at ti.com>
>>
>> Kernel stores information to the RTC_SCRATCH0 and RTC_SCRATCH1 registers
>> for wakeup from RTC-only mode. Parse these registers during SPL boot and
>> jump to the kernel resume vector if the device is waking up from RTC-only
>> mode.
> [snip]
>> diff --git a/arch/arm/mach-omap2/am33xx/Kconfig b/arch/arm/mach-omap2/am33xx/Kconfig
>> index 9a9ccd7..5ff4a85 100644
>> --- a/arch/arm/mach-omap2/am33xx/Kconfig
>> +++ b/arch/arm/mach-omap2/am33xx/Kconfig
>> @@ -239,6 +239,13 @@ config TARGET_CM_T43
>>  
>>  endchoice
>>  
>> +config SPL_RTC_ONLY_SUPPORT
>> +	bool
>> +	depends on SPL
>> +	prompt "Enable RTC ONLY Support"
>> +	help
>> +	  If you want RTC ONLY Support, say Y.
> 
> Please expand on the help content here.

Sure

> 
> [snip]
>> +/*
>> + * RTC only mode magic value, checked against during boot to see if we have
>> + * a valid config
>> + */
>> +#define RTC_MAGIC_VAL		0x8cd0
> 
> Update the comment to include where this value needs to be kept in sync
> with (what file in the kernel?).

Okay.

> 
> [snip]
>> +CONFIG_OF_LIST="am437x-gp-evm am437x-sk-evm am43x-epos-evm am437x-idk-evm"
> 
> We don't support this on all of those, do we?  I thought the comments
> said you can't do it on ePOS...  Thanks!

The config should surely have all the above booting. The RTC-Only mode
will not be supported in ePOS.

> 


More information about the U-Boot mailing list