public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Lukasz Majewski <lukma@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 6/8] Convert CONFIG_BOOTCOUNT_I2C to Kconfig
Date: Sun, 11 Feb 2018 20:05:25 +0100	[thread overview]
Message-ID: <20180211200525.7c429743@jawa> (raw)
In-Reply-To: <1518350813-3418-7-git-send-email-alex.kiernan@gmail.com>

On Sun, 11 Feb 2018 12:06:51 +0000
Alex Kiernan <alex.kiernan@gmail.com> wrote:

> This converts the following to Kconfig:
>   CONFIG_BOOTCOUNT_I2C
> 
> Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
> ---
> 
>  README                       | 6 ------
>  configs/ids8313_defconfig    | 1 +
>  drivers/bootcount/Kconfig    | 9 +++++++++
>  include/configs/ids8313.h    | 1 -
>  scripts/config_whitelist.txt | 1 -
>  5 files changed, 10 insertions(+), 8 deletions(-)
> 
> diff --git a/README b/README
> index 20637e0..a7b0890 100644
> --- a/README
> +++ b/README
> @@ -2321,12 +2321,6 @@ The following options need to be configured:
>  		enable special bootcounter support on at91sam9xe
> based boards. CONFIG_SOC_DA8XX
>  		enable special bootcounter support on da850 based
> boards.
> -		CONFIG_BOOTCOUNT_I2C
> -		enable support for the bootcounter on an i2c (like
> RTC) device.
> -			CONFIG_SYS_I2C_RTC_ADDR = i2c chip address
> -			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 diff --git a/configs/ids8313_defconfig
> b/configs/ids8313_defconfig index 3e67c55..eb931ce 100644
> --- a/configs/ids8313_defconfig
> +++ b/configs/ids8313_defconfig
> @@ -30,6 +30,7 @@
> CONFIG_MTDIDS_DEFAULT="nor0=ff800000.flash,nand0=e1000000.flash"
> CONFIG_MTDPARTS_DEFAULT="mtdparts=ff800000.flash:7m(dum),768k(BOOT-BIN),128k(BOOT-ENV),128k(BOOT-REDENV);e1000000.flash:-(ubi)"
> CONFIG_CMD_UBI=y CONFIG_BOOTCOUNT_LIMIT=y
> +CONFIG_BOOTCOUNT_I2C=y
>  # CONFIG_MMC is not set
>  CONFIG_MTD_NOR_FLASH=y
>  CONFIG_PHYLIB=y
> diff --git a/drivers/bootcount/Kconfig b/drivers/bootcount/Kconfig
> index eabfd13..8c19ae6 100644
> --- a/drivers/bootcount/Kconfig
> +++ b/drivers/bootcount/Kconfig
> @@ -46,6 +46,15 @@ config BOOTCOUNT_RAM
>  	  Store the bootcount in DRAM protected against against bit
> errors due to short power loss or holding a system in RESET.
>  
> +config BOOTCOUNT_I2C
> +	bool "Boot counter on I2C device"
> +	help
> +	  Enable support for the bootcounter on an i2c (like RTC)
> device.
> +	  CONFIG_SYS_I2C_RTC_ADDR = i2c chip address
> +	  CONFIG_SYS_BOOTCOUNT_ADDR = i2c addr which is used for
> +	                              the bootcounter.
> +	  CONFIG_BOOTCOUNT_ALEN = address len
> +
>  endchoice
>  
>  config SYS_BOOTCOUNT_SINGLEWORD
> diff --git a/include/configs/ids8313.h b/include/configs/ids8313.h
> index 529cbf1..fe39221 100644
> --- a/include/configs/ids8313.h
> +++ b/include/configs/ids8313.h
> @@ -516,7 +516,6 @@
>  #define CONFIG_MTD_PARTITIONS
>  
>  /* bootcount support */
> -#define CONFIG_BOOTCOUNT_I2C
>  #define CONFIG_BOOTCOUNT_ALEN	1
>  #define CONFIG_SYS_BOOTCOUNT_ADDR	0x9
>  
> diff --git a/scripts/config_whitelist.txt
> b/scripts/config_whitelist.txt index 487c790..aa1d51f 100644
> --- a/scripts/config_whitelist.txt
> +++ b/scripts/config_whitelist.txt
> @@ -148,7 +148,6 @@ CONFIG_BOOGER
>  CONFIG_BOOM
>  CONFIG_BOOTBLOCK
>  CONFIG_BOOTCOUNT_ALEN
> -CONFIG_BOOTCOUNT_I2C
>  CONFIG_BOOTCOUNT_LIMIT
>  CONFIG_BOOTFILE
>  CONFIG_BOOTMAPSZ

Reviewed-by: Lukasz Majewski <lukma@denx.de>


Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180211/1a01812c/attachment.sig>

  reply	other threads:[~2018-02-11 19:05 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1518350813-3418-1-git-send-email-alex.kiernan@gmail.com>
2018-02-11 12:06 ` [U-Boot] [PATCH 1/8] Merge CONFIG_BOOTCOUNT and CONFIG_BOOTCOUNT_LIMIT Alex Kiernan
2018-02-11 19:08   ` Lukasz Majewski
2018-02-16  2:13     ` Heinrich Schuchardt
2018-02-12  7:29   ` [U-Boot] EXT: " Ray, Ian
2018-02-11 12:06 ` [U-Boot] [PATCH 2/8] Prepare for multiple bootcount drivers Alex Kiernan
2018-02-11 19:08   ` Lukasz Majewski
2018-02-11 12:06 ` [U-Boot] [PATCH 3/8] Convert CONFIG_BOOTCOUNT_AM33XX to Kconfig Alex Kiernan
2018-02-11 19:08   ` Lukasz Majewski
2018-02-12  7:58   ` [U-Boot] Antwort: " Hannes Schmelzer
2018-02-11 12:06 ` [U-Boot] [PATCH 4/8] Convert CONFIG_BOOTCOUNT_ENV " Alex Kiernan
2018-02-11 19:09   ` Lukasz Majewski
2018-02-13  9:30   ` Lukasz Majewski
2018-02-13  9:52     ` Alex Kiernan
2018-02-11 12:06 ` [U-Boot] [PATCH 5/8] Convert CONFIG_BOOTCOUNT_RAM " Alex Kiernan
2018-02-11 19:04   ` Lukasz Majewski
2018-02-11 12:06 ` [U-Boot] [PATCH 6/8] Convert CONFIG_BOOTCOUNT_I2C " Alex Kiernan
2018-02-11 19:05   ` Lukasz Majewski [this message]
2018-02-11 12:06 ` [U-Boot] [PATCH 7/8] Integrate AT91 bootcount driver Alex Kiernan
2018-02-11 19:05   ` Lukasz Majewski
2018-02-11 12:06 ` [U-Boot] [PATCH 8/8] Migrate generic bootcount to Kconfig Alex Kiernan
2018-02-11 19:36   ` Lukasz Majewski
2018-02-11 21:04     ` Alex Kiernan
2018-02-11 21:44       ` Lukasz Majewski
2018-02-12  5:55         ` Alex Kiernan
2018-02-12  8:48           ` Lukasz Majewski
2018-02-12 10:27             ` Lukasz Majewski
2018-02-13  9:51             ` Alex Kiernan
2018-02-13 14:41               ` Lukasz Majewski
2018-02-14  6:23                 ` Alex Kiernan
2018-02-14  8:53                   ` Lukasz Majewski
2018-02-14 16:34                     ` Alex Kiernan
2018-02-14 19:13                       ` Lukasz Majewski
2018-02-15 14:04                         ` Alex Kiernan

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=20180211200525.7c429743@jawa \
    --to=lukma@denx.de \
    --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