All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kever Yang <kever.yang@rock-chips.com>
To: Jagan Teki <jagan@amarulasolutions.com>
Cc: "open list:ARM/Rockchip SoC..."
	<linux-rockchip@lists.infradead.org>,
	U-Boot-Denx <u-boot@lists.denx.de>,
	Akash Gajjar <akash@openedev.com>,
	linux-amarula <linux-amarula@amarulasolutions.com>
Subject: Re: [PATCH 12/15] include: rk3399: Disable watchdog in TPL
Date: Mon, 26 Aug 2019 09:34:12 +0800	[thread overview]
Message-ID: <cdf1402e-2aa2-b806-2790-9152ab58637b@rock-chips.com> (raw)
In-Reply-To: <CAMty3ZC6xKM3VaKEjtMGDu4mLamuHLPP8DLc_L2KdDD9kzOrxw@mail.gmail.com>

Jagan,

On 2019/8/26 上午4:14, Jagan Teki wrote:
> On Mon, Aug 5, 2019 at 6:13 PM Kever Yang <kever.yang@rock-chips.com> wrote:
>>
>> On 2019/7/29 下午3:47, Jagan Teki wrote:
>>> Disable watchdog for TPL, since there is no support it.
>>>
>>> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
>>> ---
>>>    include/configs/rk3399_common.h | 5 +++++
>>>    1 file changed, 5 insertions(+)
>>>
>>> diff --git a/include/configs/rk3399_common.h b/include/configs/rk3399_common.h
>>> index 8df0180284..67b48e03ba 100644
>>> --- a/include/configs/rk3399_common.h
>>> +++ b/include/configs/rk3399_common.h
>>> @@ -46,6 +46,11 @@
>>>    #define CONFIG_SYS_SDRAM_BASE               0
>>>    #define SDRAM_MAX_SIZE                      0xf8000000
>>>
>>> +#ifdef CONFIG_TPL_BUILD
>>> +# undef CONFIG_WDT
>>> +# undef CONFIG_WATCHDOG
>>> +#endif
>>
>> It will be better to use CONFIG_${SPL_TPL}WDT in watchdog Makefile,
>>
>> because all the SoC needs treat this driver separate in TPL/SPL/U-Boot
>> proper.
> Enabling TPL (via DM or so) cannot be an optimal solutions as of now,


I'm not suggesting enable WDT in TPL, but only about how the WDT module 
is enabled in Makefile system;

If useing CONFIG_${SPL_TPL}WDT in Makefile, then the WDT is not enabled 
in TPL if there is no

CONFIG_TPL_WDT, so you don't have to write the 'undef ...' code for 
CONFIG_TPL_BUILD.


Thanks,

- Kever

> since if it continuously resetting we need to take boot switch based
> on bootcount, ie possible with SPL and U-Boot proper now. Making a
> boot switch to TPL might increase code size, so will check this
> decision later based on the requirement.
>


_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

WARNING: multiple messages have this Message-ID (diff)
From: Kever Yang <kever.yang@rock-chips.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 12/15] include: rk3399: Disable watchdog in TPL
Date: Mon, 26 Aug 2019 09:34:12 +0800	[thread overview]
Message-ID: <cdf1402e-2aa2-b806-2790-9152ab58637b@rock-chips.com> (raw)
In-Reply-To: <CAMty3ZC6xKM3VaKEjtMGDu4mLamuHLPP8DLc_L2KdDD9kzOrxw@mail.gmail.com>

Jagan,

On 2019/8/26 上午4:14, Jagan Teki wrote:
> On Mon, Aug 5, 2019 at 6:13 PM Kever Yang <kever.yang@rock-chips.com> wrote:
>>
>> On 2019/7/29 下午3:47, Jagan Teki wrote:
>>> Disable watchdog for TPL, since there is no support it.
>>>
>>> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
>>> ---
>>>    include/configs/rk3399_common.h | 5 +++++
>>>    1 file changed, 5 insertions(+)
>>>
>>> diff --git a/include/configs/rk3399_common.h b/include/configs/rk3399_common.h
>>> index 8df0180284..67b48e03ba 100644
>>> --- a/include/configs/rk3399_common.h
>>> +++ b/include/configs/rk3399_common.h
>>> @@ -46,6 +46,11 @@
>>>    #define CONFIG_SYS_SDRAM_BASE               0
>>>    #define SDRAM_MAX_SIZE                      0xf8000000
>>>
>>> +#ifdef CONFIG_TPL_BUILD
>>> +# undef CONFIG_WDT
>>> +# undef CONFIG_WATCHDOG
>>> +#endif
>>
>> It will be better to use CONFIG_${SPL_TPL}WDT in watchdog Makefile,
>>
>> because all the SoC needs treat this driver separate in TPL/SPL/U-Boot
>> proper.
> Enabling TPL (via DM or so) cannot be an optimal solutions as of now,


I'm not suggesting enable WDT in TPL, but only about how the WDT module 
is enabled in Makefile system;

If useing CONFIG_${SPL_TPL}WDT in Makefile, then the WDT is not enabled 
in TPL if there is no

CONFIG_TPL_WDT, so you don't have to write the 'undef ...' code for 
CONFIG_TPL_BUILD.


Thanks,

- Kever

> since if it continuously resetting we need to take boot switch based
> on bootcount, ie possible with SPL and U-Boot proper now. Making a
> boot switch to TPL might increase code size, so will check this
> decision later based on the requirement.
>

  reply	other threads:[~2019-08-26  1:34 UTC|newest]

Thread overview: 67+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-29  7:46 [PATCH 00/15] rk3399: Add redundant boot support Jagan Teki
2019-07-29  7:46 ` [U-Boot] " Jagan Teki
     [not found] ` <20190729074711.16988-1-jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org>
2019-07-29  7:46   ` [PATCH 01/15] arm: rockchip: Add common cru.h Jagan Teki
2019-07-29  7:46     ` [U-Boot] " Jagan Teki
     [not found]     ` <20190729074711.16988-2-jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org>
2019-08-05 12:25       ` Kever Yang
2019-08-05 12:25         ` [U-Boot] " Kever Yang
2019-08-25 17:25         ` Jagan Teki
2019-08-25 17:25           ` [U-Boot] " Jagan Teki
2019-07-29  7:46   ` [PATCH 02/15] rockchip: Add cpu-info Jagan Teki
2019-07-29  7:46     ` [U-Boot] " Jagan Teki
     [not found]     ` <20190729074711.16988-3-jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org>
2019-08-05 12:27       ` Kever Yang
2019-08-05 12:27         ` [U-Boot] " Kever Yang
2019-07-29  7:46   ` [PATCH 03/15] rockchip: rk3288: Print reset reason Jagan Teki
2019-07-29  7:46     ` [U-Boot] " Jagan Teki
     [not found]     ` <20190729074711.16988-4-jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org>
2019-07-29  7:57       ` Matthias Urlichs
2019-08-05 12:30       ` Kever Yang
2019-08-05 12:30         ` [U-Boot] " Kever Yang
     [not found]         ` <98408a3c-84bd-d54b-1b3a-49901c85ba3c-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2019-08-14  9:40           ` Jagan Teki
2019-08-14  9:40             ` [U-Boot] " Jagan Teki
2019-08-14 10:43             ` Wadim Egorov
2019-08-14 10:43               ` [U-Boot] " Wadim Egorov
2019-08-14 10:46               ` Michael Nazzareno Trimarchi
2019-08-14 10:46                 ` [U-Boot] " Michael Nazzareno Trimarchi
2019-07-29  7:47   ` [PATCH 04/15] rockchip: Add common " Jagan Teki
2019-07-29  7:47     ` [U-Boot] " Jagan Teki
2019-07-29  7:47   ` [PATCH 05/15] rockchip: rk3288/rk3399: Enable DISPLAY_CPUINFO Jagan Teki
2019-07-29  7:47     ` [U-Boot] " Jagan Teki
2019-08-05 12:35     ` Kever Yang
2019-08-05 12:35       ` [U-Boot] " Kever Yang
2019-07-29  7:47   ` [PATCH 06/15] wdt: designware: Simplify is_enabled function Jagan Teki
2019-07-29  7:47     ` [U-Boot] " Jagan Teki
2019-07-29  7:47   ` [PATCH 07/15] wdt: designware: Simplify enable function Jagan Teki
2019-07-29  7:47     ` [U-Boot] " Jagan Teki
2019-07-29  7:47   ` [PATCH 08/15] wdt: dw: Add driver-model support Jagan Teki
2019-07-29  7:47     ` [U-Boot] " Jagan Teki
     [not found]     ` <20190729074711.16988-9-jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org>
2019-07-29  9:09       ` Andy Shevchenko
2019-07-29  9:09         ` Andy Shevchenko
2019-07-29  7:47   ` [PATCH 09/15] wdt: dw: Rename to dw_wdt.c Jagan Teki
2019-07-29  7:47     ` [U-Boot] " Jagan Teki
2019-08-05 12:40     ` Kever Yang
2019-08-05 12:40       ` [U-Boot] " Kever Yang
     [not found]       ` <e7507f4e-de8d-e61c-5538-0a3cc203ceba-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2019-08-14  9:44         ` Jagan Teki
2019-08-14  9:44           ` [U-Boot] " Jagan Teki
2019-07-29  7:47   ` [PATCH 10/15] rockchip: dts: rk3399: Add u-boot, dm-pre-reloc for watchdog Jagan Teki
2019-07-29  7:47     ` [U-Boot] " Jagan Teki
2019-07-29  7:47   ` [PATCH 11/15] wdt: Kconfig: Add WDT_DW entry Jagan Teki
2019-07-29  7:47     ` [U-Boot] " Jagan Teki
2019-07-29  7:47   ` [PATCH 12/15] include: rk3399: Disable watchdog in TPL Jagan Teki
2019-07-29  7:47     ` [U-Boot] " Jagan Teki
     [not found]     ` <20190729074711.16988-13-jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org>
2019-08-05 12:43       ` Kever Yang
2019-08-05 12:43         ` [U-Boot] " Kever Yang
2019-08-25 20:14         ` Jagan Teki
2019-08-25 20:14           ` [U-Boot] " Jagan Teki
2019-08-26  1:34           ` Kever Yang [this message]
2019-08-26  1:34             ` Kever Yang
2019-07-29  7:47   ` [DO NOT MERGE] [PATCH 13/15] rk3399: rockpro64: Enable watchdog Jagan Teki
2019-07-29  7:47     ` [U-Boot] " Jagan Teki
2019-07-29  7:47   ` [PATCH 14/15] rockchip: rk3399: Add bootcount support Jagan Teki
2019-07-29  7:47     ` [U-Boot] " Jagan Teki
2019-08-12 12:16     ` Kever Yang
2019-08-12 12:16       ` [U-Boot] " Kever Yang
2019-08-13  1:02       ` [PATCH 14/15] rockchip: rk3399: Add bootcount support【请注意,邮件由u-boot-bounces@lists.denx.de代发】 Kever Yang
2019-08-13  1:02         ` [U-Boot] " Kever Yang
2019-07-29  7:47   ` [DO NOT MERGE] [PATCH 15/15] rk3399: rockpro64: Enable bootcount Jagan Teki
2019-07-29  7:47     ` [U-Boot] " Jagan Teki
2019-08-05 12:18 ` [PATCH 00/15] rk3399: Add redundant boot support Kever Yang
2019-08-05 12:18   ` [U-Boot] " Kever Yang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cdf1402e-2aa2-b806-2790-9152ab58637b@rock-chips.com \
    --to=kever.yang@rock-chips.com \
    --cc=akash@openedev.com \
    --cc=jagan@amarulasolutions.com \
    --cc=linux-amarula@amarulasolutions.com \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.