From: Tom Rini Date: Thu, 15 Mar 2018 08:50:39 -0400 Subject: [U-Boot] [PATCH 1/2] ARM: AM43xx: Add support for RTC only mode In-Reply-To: References: <1521110393-31244-1-git-send-email-j-keerthy@ti.com> <1521110393-31244-2-git-send-email-j-keerthy@ti.com> <20180315122636.GO1770@bill-the-cat.ec.rr.com> Message-ID: <20180315125039.GT1770@bill-the-cat.ec.rr.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Mar 15, 2018 at 05:58:47PM +0530, Keerthy wrote: > > > 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 > >> > >> 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. So we keep ePOS here to ensure that enabling it doesn't break on HW it's not supported on? OK.. Thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: