[RFC,10/10] env: sunxi: Enable FAT-based environment support by default

Message ID 20171116092231.27740-11-maxime.ripard@free-electrons.com
State Superseded
Headers show
Series
  • env: Multiple env support and env transition for sunxi
Related show

Commit Message

Maxime Ripard Nov. 16, 2017, 9:22 a.m.
Now that we have everything in place to implement the transition scheme,
let's enable it by default.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
 env/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Lukasz Majewski Nov. 17, 2017, 9:27 a.m. | #1
On Thu, 16 Nov 2017 10:22:31 +0100
Maxime Ripard <maxime.ripard@free-electrons.com> wrote:

> Now that we have everything in place to implement the transition

> scheme, let's enable it by default.

> 

> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>

> ---

>  env/Kconfig | 4 ++++

>  1 file changed, 4 insertions(+)

> 

> diff --git a/env/Kconfig b/env/Kconfig

> index bf6eab6b4ace..19524638e6e1 100644

> --- a/env/Kconfig

> +++ b/env/Kconfig

> @@ -55,6 +55,7 @@ config ENV_IS_IN_FAT

>  	bool "Environment is in a FAT filesystem"

>  	depends on !CHAIN_OF_TRUST

>  	default y if ARCH_BCM283X

> +	default y if ARCH_SUNXI

>  	default y if MMC_OMAP_HS && TI_COMMON_CMD_OPTIONS

>  	select FAT_WRITE

>  	help

> @@ -370,6 +371,7 @@ config ENV_AES

>  config ENV_FAT_INTERFACE

>  	string "Name of the block device for the environment"

>  	depends on ENV_IS_IN_FAT

> +	default "mmc" if ARCH_SUNXI

>  	default "mmc" if TI_COMMON_CMD_OPTIONS || ARCH_ZYNQMP ||

> ARCH_AT91 help

>  	  Define this to a string that is the name of the block

> device. @@ -379,6 +381,8 @@ config ENV_FAT_DEVICE_AND_PART

>  	depends on ENV_IS_IN_FAT

>  	default "0:1" if TI_COMMON_CMD_OPTIONS

>  	default "0:auto" if ARCH_ZYNQMP

> +	default "0:auto" if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA = -1

> +	default "1:auto" if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA != -1

>  	default "0" if ARCH_AT91

>  	help

>  	  Define this to a string to specify the partition of the

> device. It can


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@denx.de

Patch

diff --git a/env/Kconfig b/env/Kconfig
index bf6eab6b4ace..19524638e6e1 100644
--- a/env/Kconfig
+++ b/env/Kconfig
@@ -55,6 +55,7 @@  config ENV_IS_IN_FAT
 	bool "Environment is in a FAT filesystem"
 	depends on !CHAIN_OF_TRUST
 	default y if ARCH_BCM283X
+	default y if ARCH_SUNXI
 	default y if MMC_OMAP_HS && TI_COMMON_CMD_OPTIONS
 	select FAT_WRITE
 	help
@@ -370,6 +371,7 @@  config ENV_AES
 config ENV_FAT_INTERFACE
 	string "Name of the block device for the environment"
 	depends on ENV_IS_IN_FAT
+	default "mmc" if ARCH_SUNXI
 	default "mmc" if TI_COMMON_CMD_OPTIONS || ARCH_ZYNQMP || ARCH_AT91
 	help
 	  Define this to a string that is the name of the block device.
@@ -379,6 +381,8 @@  config ENV_FAT_DEVICE_AND_PART
 	depends on ENV_IS_IN_FAT
 	default "0:1" if TI_COMMON_CMD_OPTIONS
 	default "0:auto" if ARCH_ZYNQMP
+	default "0:auto" if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA = -1
+	default "1:auto" if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA != -1
 	default "0" if ARCH_AT91
 	help
 	  Define this to a string to specify the partition of the device. It can