public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Jan Kiszka <jan.kiszka@siemens.com>
Cc: U-Boot Mailing List <u-boot@lists.denx.de>
Subject: Re: [PATCH V5 04/12] iot2050: Add watchdog start to bootcmd
Date: Fri, 3 Feb 2023 13:51:25 -0500	[thread overview]
Message-ID: <Y91XrfufF75ThIQF@bill-the-cat> (raw)
In-Reply-To: <62e2c566f6f79950b8081f5d565d954e126ba13e.1675427201.git.jan.kiszka@siemens.com>

[-- Attachment #1: Type: text/plain, Size: 1618 bytes --]

On Fri, Feb 03, 2023 at 01:26:33PM +0100, Jan Kiszka wrote:

> From: Jan Kiszka <jan.kiszka@siemens.com>
> 
> Allows run-time control over watchdog auto-start and the timeout via
> setting the environment variable watchdog_timeout_ms. A value of zero
> means "do not start". Use CONFIG_WATCHDOG_TIMEOUT_MSECS as initial value
> and this to zero by default. Users can then enable the watchdog once the
> use and OS which picks it up during boot.
> 
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
[snip]
> diff --git a/include/configs/iot2050.h b/include/configs/iot2050.h
> index 7d087413362..5186dfd8ff8 100644
> --- a/include/configs/iot2050.h
> +++ b/include/configs/iot2050.h
> @@ -15,6 +15,14 @@
>  
>  /* SPL Loader Configuration */
>  
> +#define WATCHDOG_ENV							\
> +	"watchdog_timeout_ms=" __stringify(CONFIG_WATCHDOG_TIMEOUT_MSECS) "\0" \
> +	"start_watchdog=if test ${watchdog_timeout_ms} -gt 0; then "	\
> +		"wdt dev watchdog@40610000; "				\
> +		"wdt start ${watchdog_timeout_ms}; "			\
> +		"echo Watchdog started, timeout ${watchdog_timeout_ms} ms; " \
> +		"fi\0"
> +
>  /* U-Boot general configuration */
>  #define EXTRA_ENV_IOT2050_BOARD_SETTINGS				\
>  	"usb_pgood_delay=900\0"
> @@ -43,6 +51,7 @@
>  #define CFG_EXTRA_ENV_SETTINGS					\
>  	DEFAULT_LINUX_BOOT_ENV						\
>  	BOOTENV								\
> +	WATCHDOG_ENV							\
>  	EXTRA_ENV_IOT2050_BOARD_SETTINGS

As a follow-up I would like to see all of this migrated to the plain
text environment, see board/*/*/*.env for various more and less complex
examples of this kind of conversion.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

  reply	other threads:[~2023-02-03 18:51 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-03 12:26 [PATCH V5 00/12] IOT2050-related enhancements Jan Kiszka
2023-02-03 12:26 ` [PATCH V5 01/12] board: siemens: iot2050: Split the build for PG1 and PG2 Jan Kiszka
2023-02-03 12:26 ` [PATCH V5 02/12] arm: dts: iot2050: Use the auto generator nodes for fdt Jan Kiszka
2023-02-03 12:26 ` [PATCH V5 03/12] iot2050: Update firmware layout Jan Kiszka
2023-02-03 12:26 ` [PATCH V5 04/12] iot2050: Add watchdog start to bootcmd Jan Kiszka
2023-02-03 18:51   ` Tom Rini [this message]
2023-02-04  6:35     ` Jan Kiszka
2023-02-03 12:26 ` [PATCH V5 05/12] iot2050: Add CONFIG_ENV_FLAGS_LIST_STATIC Jan Kiszka
2023-02-03 18:52   ` Tom Rini
2023-02-04  6:34     ` Jan Kiszka
2023-02-03 12:26 ` [PATCH V5 06/12] arm: dts: iot2050: Allow verifying U-Boot proper by SPL Jan Kiszka
2023-02-03 12:26 ` [PATCH V5 07/12] tools: Add script for converting public key into device tree include Jan Kiszka
2023-02-04  0:20   ` Simon Glass
2023-02-04  6:35     ` Jan Kiszka
2023-02-04 22:23       ` Simon Glass
2023-02-06 10:42         ` Jan Kiszka
2023-02-06 10:44           ` Jan Kiszka
2023-02-07  4:02           ` Simon Glass
2023-02-07  5:47             ` Jan Kiszka
2023-02-07 13:38               ` Simon Glass
2023-02-03 12:26 ` [PATCH V5 08/12] iot2050: Add script for signing artifacts Jan Kiszka
2023-02-03 18:51   ` Tom Rini
2023-02-04  6:34     ` Jan Kiszka
2023-02-04 16:21       ` Tom Rini
2023-02-04 22:26       ` Simon Glass
2023-02-06 10:47         ` Jan Kiszka
2023-02-06 11:57           ` Jan Kiszka
2023-02-07 15:28             ` Simon Glass
2023-02-07 16:45               ` Jan Kiszka
2023-02-07 18:39                 ` Simon Glass
2023-02-13  4:26                   ` Simon Glass
2023-02-13  6:33                     ` Jan Kiszka
2023-03-11  1:38                       ` Simon Glass
2023-02-03 12:26 ` [PATCH V5 09/12] arm: dts: iot2050: Optionally embed OTP programming data into image Jan Kiszka
2023-02-03 12:37   ` Lothar Waßmann
2023-02-03 12:40     ` Jan Kiszka
2023-02-03 12:26 ` [PATCH V5 10/12] doc: iot2050: Add a note about the watchdog firmware Jan Kiszka
2023-02-03 12:26 ` [PATCH V5 11/12] board: siemens: iot2050: use the named gpio to control the user-button Jan Kiszka
2023-02-03 12:26 ` [PATCH V5 12/12] iot2050: Refresh defconfigs and activate CONFIG_EFI_SCROLL_ON_CLEAR_SCREEN Jan Kiszka

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=Y91XrfufF75ThIQF@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=jan.kiszka@siemens.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox