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 3/8] Convert CONFIG_BOOTCOUNT_AM33XX to Kconfig
Date: Sun, 11 Feb 2018 20:08:53 +0100	[thread overview]
Message-ID: <20180211200853.3b1c44d5@jawa> (raw)
In-Reply-To: <1518350813-3418-4-git-send-email-alex.kiernan@gmail.com>

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

> This converts the following to Kconfig:
>   CONFIG_BOOTCOUNT_AM33XX
> 
> Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
> ---
> 
>  drivers/bootcount/Kconfig     | 9 +++++++++
>  drivers/bootcount/Makefile    | 1 -
>  include/configs/am335x_evm.h  | 1 -
>  include/configs/am335x_sl50.h | 1 -
>  include/configs/baltos.h      | 2 --
>  include/configs/bav335x.h     | 1 -
>  include/configs/brppt1.h      | 1 -
>  include/configs/chiliboard.h  | 1 -
>  scripts/config_whitelist.txt  | 1 -
>  9 files changed, 9 insertions(+), 9 deletions(-)
> 
> diff --git a/drivers/bootcount/Kconfig b/drivers/bootcount/Kconfig
> index 26fec89..e905295 100644
> --- a/drivers/bootcount/Kconfig
> +++ b/drivers/bootcount/Kconfig
> @@ -12,6 +12,7 @@ if BOOTCOUNT_LIMIT
>  
>  choice
>  	prompt "Boot count device"
> +	default BOOTCOUNT_AM33XX if AM33XX || SOC_DA8XX
>  
>  config BOOTCOUNT_EXT
>  	bool "Boot counter on EXT filesystem"
> @@ -19,6 +20,14 @@ config BOOTCOUNT_EXT
>  	  Add support for maintaining boot count in a file on an EXT
>  	  filesystem.
>  
> +config BOOTCOUNT_AM33XX
> +	bool "Boot counter in AM33XX RTC IP block"
> +	depends on AM33XX || SOC_DA8XX
> +	help
> +	  A bootcount driver for the RTC IP block found on many TI
> platforms.
> +	  This requires the RTC clocks, etc, to be enabled prior to
> use and
> +	  not all boards with this IP block on it will have the RTC
> in use. +
>  endchoice
>  
>  config SYS_BOOTCOUNT_SINGLEWORD
> diff --git a/drivers/bootcount/Makefile b/drivers/bootcount/Makefile
> index 45445d2..62bf55e 100644
> --- a/drivers/bootcount/Makefile
> +++ b/drivers/bootcount/Makefile
> @@ -4,7 +4,6 @@
>  
>  obj-y				+= bootcount.o
>  obj-$(CONFIG_AT91SAM9XE)	+= bootcount_at91.o
> -obj-$(CONFIG_SOC_DA8XX)		+= bootcount_davinci.o
>  obj-$(CONFIG_BOOTCOUNT_AM33XX)	+= bootcount_davinci.o
>  obj-$(CONFIG_BOOTCOUNT_RAM)	+= bootcount_ram.o
>  obj-$(CONFIG_BOOTCOUNT_ENV)	+= bootcount_env.o
> diff --git a/include/configs/am335x_evm.h
> b/include/configs/am335x_evm.h index 03791de..fff463e 100644
> --- a/include/configs/am335x_evm.h
> +++ b/include/configs/am335x_evm.h
> @@ -177,7 +177,6 @@
>  /* SPL */
>  #ifndef CONFIG_NOR_BOOT
>  /* Bootcount using the RTC block */
> -#define CONFIG_BOOTCOUNT_AM33XX
>  #define CONFIG_SYS_BOOTCOUNT_BE
>  
>  /* USB gadget RNDIS */
> diff --git a/include/configs/am335x_sl50.h
> b/include/configs/am335x_sl50.h index 1cb3578..4bcbaee 100644
> --- a/include/configs/am335x_sl50.h
> +++ b/include/configs/am335x_sl50.h
> @@ -74,7 +74,6 @@
>  /* SPL */
>  
>  /* Bootcount using the RTC block */
> -#define CONFIG_BOOTCOUNT_AM33XX
>  #define CONFIG_SYS_BOOTCOUNT_BE
>  
>  #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_USBETH_SUPPORT)
> diff --git a/include/configs/baltos.h b/include/configs/baltos.h
> index 440dbf5..10979c7 100644
> --- a/include/configs/baltos.h
> +++ b/include/configs/baltos.h
> @@ -230,8 +230,6 @@
>  
>  /* SPL */
>  #ifndef CONFIG_NOR_BOOT
> -/* Bootcount using the RTC block */
> -#define CONFIG_BOOTCOUNT_AM33XX
>  
>  /* USB gadget RNDIS */
>  
> diff --git a/include/configs/bav335x.h b/include/configs/bav335x.h
> index 7bbb7d1..27cb8f6 100644
> --- a/include/configs/bav335x.h
> +++ b/include/configs/bav335x.h
> @@ -339,7 +339,6 @@ DEFAULT_LINUX_BOOT_ENV \
>  /* SPL */
>  #ifndef CONFIG_NOR_BOOT
>  /* Bootcount using the RTC block */
> -#define CONFIG_BOOTCOUNT_AM33XX
>  #define CONFIG_SYS_BOOTCOUNT_BE
>  
>  /* USB gadget RNDIS */
> diff --git a/include/configs/brppt1.h b/include/configs/brppt1.h
> index fb2845f..30ea2d2 100644
> --- a/include/configs/brppt1.h
> +++ b/include/configs/brppt1.h
> @@ -22,7 +22,6 @@
>  
>  /* Bootcount using the RTC block */
>  #define CONFIG_SYS_BOOTCOUNT_ADDR	0x44E3E000
> -#define CONFIG_BOOTCOUNT_AM33XX
>  
>  /* memory */
>  #define CONFIG_SYS_MALLOC_LEN		(5 * 1024 * 1024)
> diff --git a/include/configs/chiliboard.h
> b/include/configs/chiliboard.h index 234cd6a..92e0479 100644
> --- a/include/configs/chiliboard.h
> +++ b/include/configs/chiliboard.h
> @@ -123,7 +123,6 @@
>  
>  /* SPL */
>  /* Bootcount using the RTC block */
> -#define CONFIG_BOOTCOUNT_AM33XX
>  #define CONFIG_SYS_BOOTCOUNT_BE
>  
>  /* NAND: device related configs */
> diff --git a/scripts/config_whitelist.txt
> b/scripts/config_whitelist.txt index 1be3f23..46d9d5c 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_AM33XX
>  CONFIG_BOOTCOUNT_ENV
>  CONFIG_BOOTCOUNT_I2C
>  CONFIG_BOOTCOUNT_LIMIT

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/ffa6b63c/attachment.sig>

  reply	other threads:[~2018-02-11 19:08 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 [this message]
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
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=20180211200853.3b1c44d5@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