public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 5/7] bootcount: add support for bootcounter on EXT filesystem
Date: Tue, 31 Oct 2017 22:09:11 -0400	[thread overview]
Message-ID: <20171101020911.GL4635@bill-the-cat> (raw)
In-Reply-To: <1509452190-12368-6-git-send-email-martyn.welch@collabora.co.uk>

On Tue, Oct 31, 2017 at 12:16:28PM +0000, Martyn Welch wrote:
> From: Ian Ray <ian.ray@ge.com>
> 
> Add support for bootcounter on an EXT filesystem.
> Sync configuration whitelist.
> 
> Signed-off-by: Ian Ray <ian.ray@ge.com>
> Signed-off-by: Martyn Welch <martyn.welch@collabora.co.uk>
> ---
> Changes for v2:
>    - Adding Kconfig for EXT bootcount.
> 
>  README                            |  7 +++++
>  drivers/Kconfig                   |  2 ++
>  drivers/bootcount/Kconfig         | 46 ++++++++++++++++++++++++++++++
>  drivers/bootcount/Makefile        |  1 +
>  drivers/bootcount/bootcount_ext.c | 59 +++++++++++++++++++++++++++++++++++++++
>  5 files changed, 115 insertions(+)
>  create mode 100644 drivers/bootcount/Kconfig
>  create mode 100644 drivers/bootcount/bootcount_ext.c
> 
> diff --git a/README b/README
> index f288176..6336c5c 100644
> --- a/README
> +++ b/README
> @@ -2362,6 +2362,13 @@ The following options need to be configured:
>  			CONFIG_SYS_BOOTCOUNT_ADDR = i2c addr which is used for
>  						    the bootcounter.
>  			CONFIG_BOOTCOUNT_ALEN = address len
> +		CONFIG_BOOTCOUNT_EXT
> +		enable support for the bootcounter in EXT filesystem
> +			CONFIG_SYS_BOOTCOUNT_ADDR = RAM address used for read
> +                                                    and write.
> +			CONFIG_SYS_BOOTCOUNT_EXT_INTERFACE = interface
> +			CONFIG_SYS_BOOTCOUNT_EXT_DEVPART = device and part
> +			CONFIG_SYS_BOOTCOUNT_EXT_NAME = filename
>  
>  - Show boot progress:
>  		CONFIG_SHOW_BOOT_PROGRESS
> diff --git a/drivers/Kconfig b/drivers/Kconfig
> index 613e602..c2e813f 100644
> --- a/drivers/Kconfig
> +++ b/drivers/Kconfig
> @@ -10,6 +10,8 @@ source "drivers/ata/Kconfig"
>  
>  source "drivers/block/Kconfig"
>  
> +source "drivers/bootcount/Kconfig"
> +
>  source "drivers/clk/Kconfig"
>  
>  source "drivers/cpu/Kconfig"
> diff --git a/drivers/bootcount/Kconfig b/drivers/bootcount/Kconfig
> new file mode 100644
> index 0000000..a261ec9
> --- /dev/null
> +++ b/drivers/bootcount/Kconfig
> @@ -0,0 +1,46 @@
> +#
> +# Boot count configuration
> +#
> +
> +menu "Boot count support"
> +
> +config BOOTCOUNT_EXT
> +	bool "Boot counter on EXT filesystem"
> +	help
> +	  Add support for bootcounter on an EXT filesystem.
> +
> +if BOOTCOUNT_EXT

Can you add an entry for BOOTCOUNT itself please too?  Yes, that would
be a new symbol, but that will make the rest of the migrations easier I
think.  Thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171031/75b27776/attachment.sig>

  reply	other threads:[~2017-11-01  2:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-31 12:16 [U-Boot] [PATCH v2 0/7] Add support for GE PPD Martyn Welch
2017-10-31 12:16 ` [U-Boot] [PATCH v2 1/7] imx: mxc_i2c: tweak the i2c transfer method Martyn Welch
2017-10-31 12:44   ` Heiko Schocher
2017-10-31 12:16 ` [U-Boot] [PATCH v2 2/7] ext4: recover from filesystem corruption when reading Martyn Welch
2017-11-01  2:07   ` Tom Rini
2017-10-31 12:16 ` [U-Boot] [PATCH v2 3/7] pwm: imx: Enable PWM support on i.MX53 Martyn Welch
2017-10-31 12:16 ` [U-Boot] [PATCH v2 4/7] arm: mx5: Add more register definitions Martyn Welch
2017-10-31 12:16 ` [U-Boot] [PATCH v2 5/7] bootcount: add support for bootcounter on EXT filesystem Martyn Welch
2017-11-01  2:09   ` Tom Rini [this message]
2017-10-31 12:16 ` [U-Boot] [PATCH v2 6/7] rtc: add support for s35392a Martyn Welch
2017-10-31 12:16 ` [U-Boot] [PATCH v2 7/7] mx53: Add Board support for GE PPD Martyn Welch

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=20171101020911.GL4635@bill-the-cat \
    --to=trini@konsulko.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