Re: [U-Boot] [PATCH 7/8] armv8: ls1046a: disable SATA ECC in DCSR

2016-08-29 Thread Mingkai Hu


> -Original Message-
> From: Shaohui Xie
> Sent: Monday, August 29, 2016 12:45 PM
> To: york sun ; Qianyu Gong ;
> u-boot@lists.denx.de
> Cc: Prabhakar Kushwaha ; Mingkai Hu
> ; Zhiqiang Hou ; Wenbin
> Song 
> Subject: RE: [PATCH 7/8] armv8: ls1046a: disable SATA ECC in DCSR
> 
> > -Original Message-
> > From: york sun
> > Sent: Saturday, August 27, 2016 12:08 AM
> > To: Qianyu Gong ; u-boot@lists.denx.de
> > Cc: Prabhakar Kushwaha ; Mingkai Hu
> > ; Shaohui Xie ; Zhiqiang
> Hou
> > ; Wenbin Song 
> > Subject: Re: [PATCH 7/8] armv8: ls1046a: disable SATA ECC in DCSR
> >
> > On 08/26/2016 04:40 AM, Gong Qianyu wrote:
> > > From: Shaohui Xie 
> > >
> > > So to fix SATA CRC error.
> >
> > Does ECC cause the CRC error? Please explain more what you are doing
> > in this patch.
> [S.H] We only know disable ECC can fix CRC error which provided by
> validation team As a workaround, the root cause is not clear.
> 
> Maybe we can drop it for now, there might be a better solution for this issue
> in future, or the solution is still the same, but we know exactly what is 
> going
> on.
> 
> Thanks,
> Shaohui

Maybe we keep this patch and add the description in the git log, and remove the
Disabling ECC when the root cause has found. At lease, disabling ECC can make 
the SATA working.

Thanks,
Mingkai

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 1/3] ARM: AM437X: Add Silicon ID support

2016-08-29 Thread Lokesh Vutla
Add silicon ID code for AM437x silicon. This can be used to print
the cpu info using CONFIG_DISPLAY_CPUINFO.
Also printing "CPU :" along with cpu name in order to be consistent
with other OMAP platforms.

Signed-off-by: Lokesh Vutla 
---
 arch/arm/cpu/armv7/am33xx/sys_info.c   | 5 -
 arch/arm/include/asm/arch-am33xx/cpu.h | 3 ++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/arch/arm/cpu/armv7/am33xx/sys_info.c 
b/arch/arm/cpu/armv7/am33xx/sys_info.c
index 52a6824..808faf4 100644
--- a/arch/arm/cpu/armv7/am33xx/sys_info.c
+++ b/arch/arm/cpu/armv7/am33xx/sys_info.c
@@ -97,6 +97,9 @@ int print_cpuinfo(void)
case TI81XX:
cpu_s = "TI81XX";
break;
+   case AM437X:
+   cpu_s = "AM437X";
+   break;
default:
cpu_s = "Unknown CPU type";
break;
@@ -112,7 +115,7 @@ int print_cpuinfo(void)
else
sec_s = "?";
 
-   printf("%s-%s rev %s\n", cpu_s, sec_s, rev_s);
+   printf("CPU  : %s-%s rev %s\n", cpu_s, sec_s, rev_s);
 
return 0;
 }
diff --git a/arch/arm/include/asm/arch-am33xx/cpu.h 
b/arch/arm/include/asm/arch-am33xx/cpu.h
index 62bca8c..4a0dce9 100644
--- a/arch/arm/include/asm/arch-am33xx/cpu.h
+++ b/arch/arm/include/asm/arch-am33xx/cpu.h
@@ -43,7 +43,8 @@
 #define HS_DEVICE  0x2
 #define GP_DEVICE  0x3
 
-/* cpu-id for AM33XX and TI81XX family */
+/* cpu-id for AM43XX AM33XX and TI81XX family */
+#define AM437X 0xB98C
 #define AM335X 0xB944
 #define TI81XX 0xB81E
 #define DEVICE_ID  (CTRL_BASE + 0x0600)
-- 
2.9.3

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 3/3] ARM: TI: Enable DISPLAY_BOARDINFO on all boards

2016-08-29 Thread Lokesh Vutla
Delete board specific Kconfig entries for DISPLAY_BOARDINFO and create a common
entry. Select it for all TI SoCs and the boards that already has Kconfig entry.

Signed-off-by: Lokesh Vutla 
---
 arch/arm/cpu/armv7/am33xx/Kconfig | 11 +++
 arch/arm/cpu/armv7/omap3/Kconfig  |  8 
 arch/arm/cpu/armv7/omap5/Kconfig  |  4 
 arch/arm/mach-keystone/Kconfig|  4 
 arch/powerpc/cpu/ppc4xx/Kconfig   | 14 ++
 board/amcc/acadia/Kconfig |  4 
 board/amcc/bamboo/Kconfig |  4 
 board/amcc/bubinga/Kconfig|  4 
 board/amcc/canyonlands/Kconfig|  4 
 board/amcc/katmai/Kconfig |  4 
 board/amcc/kilauea/Kconfig|  4 
 board/amcc/luan/Kconfig   |  4 
 board/amcc/makalu/Kconfig |  4 
 board/amcc/redwood/Kconfig|  4 
 board/amcc/sequoia/Kconfig|  4 
 board/amcc/walnut/Kconfig |  4 
 board/amcc/yosemite/Kconfig   |  4 
 board/amcc/yucca/Kconfig  |  4 
 board/liebherr/lwmon5/Kconfig |  4 
 common/Kconfig|  8 
 include/configs/ti_omap4_common.h |  1 -
 include/configs/ti_omap5_common.h |  2 --
 22 files changed, 49 insertions(+), 59 deletions(-)

diff --git a/arch/arm/cpu/armv7/am33xx/Kconfig 
b/arch/arm/cpu/armv7/am33xx/Kconfig
index e57e6fb..394db1a 100644
--- a/arch/arm/cpu/armv7/am33xx/Kconfig
+++ b/arch/arm/cpu/armv7/am33xx/Kconfig
@@ -10,6 +10,7 @@ config TARGET_AM335X_EVM
select DM_SERIAL
select DM_GPIO
select TI_I2C_BOARD_DETECT
+   select DISPLAY_BOARDINFO
help
  This option specifies support for the AM335x
  GP and HS EVM development platforms. The AM335x
@@ -23,28 +24,33 @@ config TARGET_AM335X_BALTOS
select DM
select DM_SERIAL
select DM_GPIO
+   select DISPLAY_BOARDINFO
 
 config TARGET_AM335X_IGEP0033
bool "Support am335x_igep0033"
select DM
select DM_SERIAL
select DM_GPIO
+   select DISPLAY_BOARDINFO
 
 config TARGET_AM335X_SHC
bool "Support am335x based shc board from bosch"
select DM
select DM_SERIAL
select DM_GPIO
+   select DISPLAY_BOARDINFO
 
 config TARGET_AM335X_SL50
bool "Support am335x_sl50"
select DM
select DM_SERIAL
+   select DISPLAY_BOARDINFO
 
 config TARGET_BAV335X
bool "Support bav335x"
select DM
select DM_SERIAL
+   select DISPLAY_BOARDINFO
help
  The BAV335x OEM Network Processor integrates all the functions of an
  embedded network computer in a small, easy to use SODIMM module which
@@ -59,24 +65,28 @@ config TARGET_CM_T335
select DM
select DM_SERIAL
select DM_GPIO
+   select DISPLAY_BOARDINFO
 
 config TARGET_PCM051
bool "Support pcm051"
select DM
select DM_SERIAL
select DM_GPIO
+   select DISPLAY_BOARDINFO
 
 config TARGET_PENGWYN
bool "Support pengwyn"
select DM
select DM_SERIAL
select DM_GPIO
+   select DISPLAY_BOARDINFO
 
 config TARGET_PEPPER
bool "Support pepper"
select DM
select DM_SERIAL
select DM_GPIO
+   select DISPLAY_BOARDINFO
 
 endchoice
 
@@ -86,6 +96,7 @@ if AM43XX
 config TARGET_AM43XX_EVM
bool "Support am43xx_evm"
select TI_I2C_BOARD_DETECT
+   select DISPLAY_BOARDINFO
help
  This option specifies support for the AM43xx
  GP and HS EVM development platforms.The AM437x
diff --git a/arch/arm/cpu/armv7/omap3/Kconfig b/arch/arm/cpu/armv7/omap3/Kconfig
index 99a25f9..c4f1808 100644
--- a/arch/arm/cpu/armv7/omap3/Kconfig
+++ b/arch/arm/cpu/armv7/omap3/Kconfig
@@ -15,6 +15,7 @@ config TARGET_OMAP3_BEAGLE
select DM
select DM_SERIAL
select DM_GPIO
+   select DISPLAY_BOARDINFO
 
 config TARGET_CM_T35
bool "CompuLab CM-T3530 and CM-T3730 boards"
@@ -27,6 +28,7 @@ config TARGET_DEVKIT8000
select DM
select DM_SERIAL
select DM_GPIO
+   select DISPLAY_BOARDINFO
 
 config TARGET_OMAP3_EVM
bool "TI OMAP3 EVM"
@@ -36,18 +38,21 @@ config TARGET_OMAP3_IGEP00X0
select DM
select DM_SERIAL
select DM_GPIO
+   select DISPLAY_BOARDINFO
 
 config TARGET_OMAP3_OVERO
bool "OMAP35xx Gumstix Overo"
select DM
select DM_SERIAL
select DM_GPIO
+   select DISPLAY_BOARDINFO
 
 config TARGET_OMAP3_ZOOM1
bool "TI Zoom1"
select DM
select DM_SERIAL
select DM_GPIO
+   select DISPLAY_BOARDINFO
 
 config TARGET_AM3517_CRANE
bool "am3517_crane"
@@ -69,6 +74,7 @@ config TARGET_OMAP3_LOGIC
select DM
select DM_SERIAL
select DM_GPIO
+   select DISPLAY_BOARDINFO
 
 config TARGET_NOKIA_RX51
bool "Nokia RX51"
@@ -84,12 +90,14 @@ config TARGET_OMAP3_CAIRO
select DM
  

[U-Boot] [PATCH v2 0/3] ARM: TI: Enable DISPLAY_{CPU/BOARD}INFO

2016-08-29 Thread Lokesh Vutla
This series adds ID code detection support for AM437x and enables
CONFIG_DISPLAY_{CPU/BOARD}INFO on all TI platforms.

This series is based on top of Andrew's (Kconfig: Separate AM33XX SOC config
from target board config) patch[1]

I specifically did not use tools/moveconfig.py as Tom suggested to select
these configs from targets instead of enabling it in defconfigs.

[1] http://patchwork.ozlabs.org/patch/662954/

Lokesh Vutla (3):
  ARM: AM437X: Add Silicon ID support
  ARM: TI: Enable DISPLAY_CPUINFO on all SoCs
  ARM: TI: Enable DISPLAY_BOARDINFO on all boards

 arch/arm/Kconfig   |  6 ++
 arch/arm/cpu/armv7/am33xx/Kconfig  | 11 +++
 arch/arm/cpu/armv7/am33xx/sys_info.c   |  5 -
 arch/arm/cpu/armv7/omap3/Kconfig   |  8 
 arch/arm/cpu/armv7/omap5/Kconfig   |  4 
 arch/arm/include/asm/arch-am33xx/cpu.h |  3 ++-
 arch/arm/mach-keystone/Kconfig |  4 
 arch/powerpc/cpu/ppc4xx/Kconfig| 14 ++
 board/amcc/acadia/Kconfig  |  4 
 board/amcc/bamboo/Kconfig  |  4 
 board/amcc/bubinga/Kconfig |  4 
 board/amcc/canyonlands/Kconfig |  4 
 board/amcc/katmai/Kconfig  |  4 
 board/amcc/kilauea/Kconfig |  4 
 board/amcc/luan/Kconfig|  4 
 board/amcc/makalu/Kconfig  |  4 
 board/amcc/redwood/Kconfig |  4 
 board/amcc/sequoia/Kconfig |  4 
 board/amcc/walnut/Kconfig  |  4 
 board/amcc/yosemite/Kconfig|  4 
 board/amcc/yucca/Kconfig   |  4 
 board/liebherr/lwmon5/Kconfig  |  4 
 common/Kconfig | 16 
 include/configs/ti_armv7_keystone2.h   |  1 -
 include/configs/ti_omap4_common.h  |  2 --
 include/configs/ti_omap5_common.h  |  3 ---
 26 files changed, 69 insertions(+), 64 deletions(-)

-- 
2.9.3

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 2/3] ARM: TI: Enable DISPLAY_CPUINFO on all SoCs

2016-08-29 Thread Lokesh Vutla
Create a common Kconfig entry for DISPLAY_CPUINFO and select it for all
TI SoCs.

Signed-off-by: Lokesh Vutla 
---
 arch/arm/Kconfig | 6 ++
 common/Kconfig   | 8 
 include/configs/ti_armv7_keystone2.h | 1 -
 include/configs/ti_omap4_common.h| 1 -
 include/configs/ti_omap5_common.h| 1 -
 5 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 26d7707..7b030ab 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -419,6 +419,7 @@ config ARCH_KEYSTONE
select CPU_V7
select SUPPORT_SPL
select CMD_POWEROFF
+   select DISPLAY_CPUINFO
 
 config ARCH_MESON
bool "Amlogic Meson"
@@ -469,22 +470,26 @@ config OMAP34XX
select CPU_V7
select SUPPORT_SPL
select USE_TINY_PRINTF
+   select DISPLAY_CPUINFO
 
 config OMAP44XX
bool "OMAP44XX SoC"
select CPU_V7
select SUPPORT_SPL
select USE_TINY_PRINTF
+   select DISPLAY_CPUINFO
 
 config OMAP54XX
bool "OMAP54XX SoC"
select CPU_V7
select SUPPORT_SPL
+   select DISPLAY_CPUINFO
 
 config AM43XX
bool "AM43XX SoC"
select CPU_V7
select SUPPORT_SPL
+   select DISPLAY_CPUINFO
help
  Support for AM43xx SOC from Texas Instruments.
  The AM43xx high performance SOC features a Cortex-A9
@@ -496,6 +501,7 @@ config AM33XX
bool "AM33XX SoC"
select CPU_V7
select SUPPORT_SPL
+   select DISPLAY_CPUINFO
help
  Support for AM335x SOC from Texas Instruments.
  The AM335x high performance SOC features a Cortex-A8
diff --git a/common/Kconfig b/common/Kconfig
index 46e7173..041c493 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -203,3 +203,11 @@ config SYS_NO_FLASH
default n
help
  This option is used to disable support for parallel NOR flash.
+
+config DISPLAY_CPUINFO
+   bool
+   default n
+   help
+ Display information about the CPU that U-Boot is running on
+ when U-Boot starts up. The function print_cpuinfo() is called
+ to do this.
diff --git a/include/configs/ti_armv7_keystone2.h 
b/include/configs/ti_armv7_keystone2.h
index 4aa262e..9241323 100644
--- a/include/configs/ti_armv7_keystone2.h
+++ b/include/configs/ti_armv7_keystone2.h
@@ -15,7 +15,6 @@
 /* U-Boot Build Configuration */
 #define CONFIG_SKIP_LOWLEVEL_INIT  /* U-Boot is a 2nd stage loader */
 #define CONFIG_BOARD_EARLY_INIT_F
-#define CONFIG_DISPLAY_CPUINFO
 
 /* SoC Configuration */
 #define CONFIG_ARCH_CPU_INIT
diff --git a/include/configs/ti_omap4_common.h 
b/include/configs/ti_omap4_common.h
index 5fad3c1..5c2360d 100644
--- a/include/configs/ti_omap4_common.h
+++ b/include/configs/ti_omap4_common.h
@@ -17,7 +17,6 @@
  */
 #define CONFIG_OMAP44301   /* which is in a 4430 */
 #define CONFIG_MISC_INIT_R
-#define CONFIG_DISPLAY_CPUINFO 1
 #define CONFIG_DISPLAY_BOARDINFO   1
 
 #define CONFIG_SYS_THUMB_BUILD
diff --git a/include/configs/ti_omap5_common.h 
b/include/configs/ti_omap5_common.h
index 3589cdc..98031a2 100644
--- a/include/configs/ti_omap5_common.h
+++ b/include/configs/ti_omap5_common.h
@@ -17,7 +17,6 @@
 #ifndef __CONFIG_TI_OMAP5_COMMON_H
 #define __CONFIG_TI_OMAP5_COMMON_H
 
-#define CONFIG_DISPLAY_CPUINFO
 #define CONFIG_DISPLAY_BOARDINFO
 
 /* Common ARM Erratas */
-- 
2.9.3

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v2 00/44] Kconfig: Move CONFIG_SPL_..._SUPPORT to Kconfig

2016-08-29 Thread Heiko Schocher

Hello Simon,

Am 30.08.2016 um 02:21 schrieb Simon Glass:

This series moves all the CONFIG_SPL_..._SUPPORT options to Kconfig and
fixes up existing boards to continue to build.

It also adds a few small but useful features to moveconfig.

There is existing work going on in this area, so some of these patches may
be superseded. It has taken me a while to get this building cleanly. But I
have run out of time so want to get this out.

As mentioned on a recent thread [1] there is some confusion about whether an
option means enabling driver support or media support. Andrew's recent
series seems like a good vehicle to tidy that up. But I hope this series
will make it easier.

NOTE: in the v2 series I have tried to use common things in Kconfig to
reduce the diffs in the defconfig files. This has helped a fair bit. But it
is very error-prone and time consuming. Also I have had to add some
exceptions (disabling an option in specific board configs). Overall it was
not a pleasant experience :-(

There are a few strange features of this conversion. The main difficulty is
that some PowerPC boards do things like this in their board config file:

  #ifdef CONFIG_TPL_BUILD
  #define CONFIG_SPL_SERIAL_SUPPORT
  #define CONFIG_SPL_ENV_SUPPORT
  #else
  #define CONFIG_SPL_SERIAL_SUPPORT
  #endif

This means that TPL reuses the SPL options. We can't support this in Kconfig
so I have added a small number of CONFIG_TPL_xxx_SUPPORT options to cope
with this. This made the conversion more painful than it should have been.

A related issue is boards using a common header file and setting options only
for SPL:

  #ifdef CONFIG_SPL_BUILD
  #define CONFIG_SPL_SERIAL_SUPPORT
  #endif

This is not noticed by moveconfig so we have to clean it up manually. Also
there are a few incorrect things where Kconfig options are set with #define:

  #ifdef CONFIG_SPL_BUILD
  #define CONFIG_SPL_DM
  #endif

Finally, many defconfig files are not ordered correctly, resulting in larger
patches than we might like. It would be great to have a solution for this,
perhaps with buildman providing a warning. But it might slow down
development.

The series is fully build-tested (for bisectability) and causes no failures
for the boards that already pass. The following boards fail for me at
present on mainline (which I have not yet looked at):

   openrisc:  +   openrisc-generic
  sparc:  +   grsim grsim_leon2 gr_cpci_ax2000 gr_xc3s_1500 gr_ep2s60
   blackfin:  +   bf609-ezkit

This build is also config tested (with buildman -K). The changes are with
spear (to rename options) and am335x_evm_usbspl (which I think is correct).

boards.cfg is up to date. Nothing to do.
Summary of 49 commits for 1185 boards (32 threads, 1 job per thread)
01: cfg
   openrisc:  +   openrisc-generic
  sparc:  +   grsim grsim_leon2 gr_cpci_ax2000 gr_xc3s_1500 gr_ep2s60
   blackfin:  +   bf609-ezkit
02: move
03: buildman
04: Correct defconfigs using savedefconfig
05: moveconfig: Add an option to skip prompts
06: moveconfig: Add an option to commit changes
07: Kconfig: Move SPL settings into their own file
08: arm: fsl: Adjust ordering of #ifndef CONFIG_SPL_BUILD
09: Drop CONFIG_SPL_RAM_SUPPORT
10: Use separate options for TPL support
11: Kconfig: spl: Add SPL support options to Kconfig
12: Kconfig: tpl: Add some TPL support options to Kconfig
13: Move existing use of CONFIG_SPL_DM to Kconfig
14: Move existing use of CONFIG_SPL_RSA to Kconfig
15: spear: Use upper case for CONFIG options
arm:
+ u-boot.cfg: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE + 
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1 
CONFIG_ENV_SECT_SIZE=0x0001 CONFIG_NAND=1 CONFIG_STV0991=1 
CONFIG_SYS_MONITOR_LEN=0x0004 CONFIG_USBTTY=1
- u-boot.cfg: CONFIG_DW_UDC=1 CONFIG_ENV_IS_IN_NAND=1 CONFIG_ENV_OFFSET=0x6 
CONFIG_ENV_RANGE=0x1 CONFIG_SPEAR_USBTTY=1 CONFIG_USBD_HS=1 CONFIG_USBD_MANUFACTURER="ST 
Microelectronics" CONFIG_USBD_PRODUCT_NAME="SPEAr SoC" CONFIG_USB_DEVICE=1 
CONFIG_USB_TTY=1 CONFIG_nand=1 CONFIG_spear300=1 CONFIG_spear310=1 CONFIG_spear320=1 
CONFIG_spear600=1 CONFIG_stv0991=1 CONFIG_usbtty=1
+ all: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN) 
CONFIG_ENV_IS_IN_FLASH=1 CONFIG_ENV_SECT_SIZE=0x0001 CONFIG_NAND=1 
CONFIG_STV0991=1 CONFIG_SYS_MONITOR_LEN=0x0004 CONFIG_USBTTY=1
- all: CONFIG_DW_UDC=1 CONFIG_ENV_IS_IN_NAND=1 CONFIG_ENV_OFFSET=0x6 
CONFIG_ENV_RANGE=0x1 CONFIG_SPEAR_USBTTY=1 CONFIG_USBD_HS=1 CONFIG_USBD_MANUFACTURER="ST 
Microelectronics" CONFIG_USBD_PRODUCT_NAME="SPEAr SoC" CONFIG_USB_DEVICE=1 
CONFIG_USB_TTY=1 CONFIG_nand=1 CONFIG_spear300=1 CONFIG_spear310=1 CONFIG_spear320=1 
CONFIG_spear600=1 CONFIG_stv0991=1 CONFIG_usbtty=1
spear600_nand :
+ u-boot.cfg: CONFIG_NAND=1
- u-boot.cfg: CONFIG_nand=1 CONFIG_spear600=1
+ all: CONFIG_NAND=1
- all: CONFIG_nand=1 CONFIG_spear600=1
spear300_nand :
+ u-boot.cfg: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE + 
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1 

[U-Boot] [PATCH v2 25/44] Convert CONFIG_SPL_LIBGENERIC_SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
Move this option to Kconfig and tidy up existing uses.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 arch/arm/cpu/armv7/omap3/Kconfig| 3 +++
 arch/arm/cpu/armv7/omap4/Kconfig| 3 +++
 arch/arm/cpu/armv7/omap5/Kconfig| 3 +++
 arch/arm/cpu/armv8/zynqmp/Kconfig   | 3 +++
 arch/arm/mach-exynos/Kconfig| 3 +++
 arch/arm/mach-rockchip/rk3288/Kconfig   | 3 +++
 arch/arm/mach-socfpga/Kconfig   | 3 +++
 arch/arm/mach-tegra/Kconfig | 3 +++
 arch/arm/mach-uniphier/Kconfig  | 3 +++
 arch/arm/mach-zynq/Kconfig  | 3 +++
 board/sunxi/Kconfig | 3 +++
 board/ti/common/Kconfig | 3 +++
 configs/B4420QDS_NAND_defconfig | 1 +
 configs/B4860QDS_NAND_defconfig | 1 +
 configs/C29XPCIE_NAND_defconfig | 1 +
 configs/P1010RDB-PA_36BIT_NAND_defconfig| 1 +
 configs/P1010RDB-PA_36BIT_SDCARD_defconfig  | 1 +
 configs/P1010RDB-PA_36BIT_SPIFLASH_defconfig| 1 +
 configs/P1010RDB-PA_NAND_defconfig  | 1 +
 configs/P1010RDB-PA_SDCARD_defconfig| 1 +
 configs/P1010RDB-PA_SPIFLASH_defconfig  | 1 +
 configs/P1010RDB-PB_36BIT_NAND_defconfig| 1 +
 configs/P1010RDB-PB_36BIT_SDCARD_defconfig  | 1 +
 configs/P1010RDB-PB_36BIT_SPIFLASH_defconfig| 1 +
 configs/P1010RDB-PB_NAND_defconfig  | 1 +
 configs/P1010RDB-PB_SDCARD_defconfig| 1 +
 configs/P1010RDB-PB_SPIFLASH_defconfig  | 1 +
 configs/P1020MBG-PC_36BIT_SDCARD_defconfig  | 1 +
 configs/P1020MBG-PC_SDCARD_defconfig| 1 +
 configs/P1020RDB-PC_36BIT_NAND_defconfig| 1 +
 configs/P1020RDB-PC_36BIT_SDCARD_defconfig  | 1 +
 configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig| 1 +
 configs/P1020RDB-PC_NAND_defconfig  | 1 +
 configs/P1020RDB-PC_SDCARD_defconfig| 1 +
 configs/P1020RDB-PC_SPIFLASH_defconfig  | 1 +
 configs/P1020RDB-PD_NAND_defconfig  | 1 +
 configs/P1020RDB-PD_SDCARD_defconfig| 1 +
 configs/P1020RDB-PD_SPIFLASH_defconfig  | 1 +
 configs/P1020UTM-PC_36BIT_SDCARD_defconfig  | 1 +
 configs/P1020UTM-PC_SDCARD_defconfig| 1 +
 configs/P1021RDB-PC_36BIT_NAND_defconfig| 1 +
 configs/P1021RDB-PC_36BIT_SDCARD_defconfig  | 1 +
 configs/P1021RDB-PC_36BIT_SPIFLASH_defconfig| 1 +
 configs/P1021RDB-PC_NAND_defconfig  | 1 +
 configs/P1021RDB-PC_SDCARD_defconfig| 1 +
 configs/P1021RDB-PC_SPIFLASH_defconfig  | 1 +
 configs/P1022DS_36BIT_NAND_defconfig| 1 +
 configs/P1022DS_36BIT_SDCARD_defconfig  | 1 +
 configs/P1022DS_36BIT_SPIFLASH_defconfig| 1 +
 configs/P1022DS_NAND_defconfig  | 1 +
 configs/P1022DS_SDCARD_defconfig| 1 +
 configs/P1022DS_SPIFLASH_defconfig  | 1 +
 configs/P1024RDB_NAND_defconfig | 1 +
 configs/P1024RDB_SDCARD_defconfig   | 1 +
 configs/P1024RDB_SPIFLASH_defconfig | 1 +
 configs/P1025RDB_NAND_defconfig | 1 +
 configs/P1025RDB_SDCARD_defconfig   | 1 +
 configs/P1025RDB_SPIFLASH_defconfig | 1 +
 configs/P2020RDB-PC_36BIT_NAND_defconfig| 1 +
 configs/P2020RDB-PC_36BIT_SDCARD_defconfig  | 1 +
 configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig| 1 +
 configs/P2020RDB-PC_NAND_defconfig  | 1 +
 configs/P2020RDB-PC_SDCARD_defconfig| 1 +
 configs/P2020RDB-PC_SPIFLASH_defconfig  | 1 +
 configs/T1023RDB_NAND_defconfig | 1 +
 configs/T1023RDB_SDCARD_defconfig   | 1 +
 configs/T1023RDB_SPIFLASH_defconfig | 1 +
 configs/T1024QDS_NAND_defconfig | 1 +
 configs/T1024QDS_SDCARD_defconfig   | 1 +
 configs/T1024QDS_SPIFLASH_defconfig | 1 +
 configs/T1024RDB_NAND_defconfig | 1 +
 configs/T1024RDB_SDCARD_defconfig   | 1 +
 configs/T1024RDB_SPIFLASH_defconfig | 1 +
 configs/T1040D4RDB_NAND_defconfig   | 1 +
 configs/T1040D4RDB_SDCARD_defconfig | 1 +
 configs/T1040D4RDB_SPIFLASH_defconfig   | 1 +
 configs/T1040RDB_NAND_defconfig | 1 +
 configs/T1040RDB_SDCARD_defconfig   | 1 +
 configs/T1040RDB_SPIFLASH_defconfig | 1 +
 configs/T1042D4RDB_NAND_defconfig   | 1 +
 configs/T1042D4RDB_SDCARD_defconfig | 1 +
 configs/T1042D4RDB_SPIFLASH_defconfig   | 1 +
 

[U-Boot] [PATCH v2 23/44] Convert CONFIG_SPL_LIBCOMMON_SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
Move this option to Kconfig and tidy up existing uses.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 arch/arm/cpu/armv7/omap3/Kconfig| 3 +++
 arch/arm/cpu/armv7/omap4/Kconfig| 3 +++
 arch/arm/cpu/armv7/omap5/Kconfig| 3 +++
 arch/arm/cpu/armv8/zynqmp/Kconfig   | 3 +++
 arch/arm/mach-exynos/Kconfig| 3 +++
 arch/arm/mach-rockchip/rk3288/Kconfig   | 3 +++
 arch/arm/mach-socfpga/Kconfig   | 3 +++
 arch/arm/mach-tegra/Kconfig | 3 +++
 arch/arm/mach-uniphier/Kconfig  | 3 +++
 arch/arm/mach-zynq/Kconfig  | 3 +++
 board/sunxi/Kconfig | 3 +++
 board/ti/common/Kconfig | 3 +++
 configs/B4420QDS_NAND_defconfig | 1 +
 configs/B4860QDS_NAND_defconfig | 1 +
 configs/C29XPCIE_NAND_defconfig | 1 +
 configs/P1010RDB-PA_36BIT_NAND_defconfig| 1 +
 configs/P1010RDB-PA_36BIT_SDCARD_defconfig  | 1 +
 configs/P1010RDB-PA_36BIT_SPIFLASH_defconfig| 1 +
 configs/P1010RDB-PA_NAND_defconfig  | 1 +
 configs/P1010RDB-PA_SDCARD_defconfig| 1 +
 configs/P1010RDB-PA_SPIFLASH_defconfig  | 1 +
 configs/P1010RDB-PB_36BIT_NAND_defconfig| 1 +
 configs/P1010RDB-PB_36BIT_SDCARD_defconfig  | 1 +
 configs/P1010RDB-PB_36BIT_SPIFLASH_defconfig| 1 +
 configs/P1010RDB-PB_NAND_defconfig  | 1 +
 configs/P1010RDB-PB_SDCARD_defconfig| 1 +
 configs/P1010RDB-PB_SPIFLASH_defconfig  | 1 +
 configs/P1020MBG-PC_36BIT_SDCARD_defconfig  | 1 +
 configs/P1020MBG-PC_SDCARD_defconfig| 1 +
 configs/P1020RDB-PC_36BIT_NAND_defconfig| 1 +
 configs/P1020RDB-PC_36BIT_SDCARD_defconfig  | 1 +
 configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig| 1 +
 configs/P1020RDB-PC_NAND_defconfig  | 1 +
 configs/P1020RDB-PC_SDCARD_defconfig| 1 +
 configs/P1020RDB-PC_SPIFLASH_defconfig  | 1 +
 configs/P1020RDB-PD_NAND_defconfig  | 1 +
 configs/P1020RDB-PD_SDCARD_defconfig| 1 +
 configs/P1020RDB-PD_SPIFLASH_defconfig  | 1 +
 configs/P1020UTM-PC_36BIT_SDCARD_defconfig  | 1 +
 configs/P1020UTM-PC_SDCARD_defconfig| 1 +
 configs/P1021RDB-PC_36BIT_NAND_defconfig| 1 +
 configs/P1021RDB-PC_36BIT_SDCARD_defconfig  | 1 +
 configs/P1021RDB-PC_36BIT_SPIFLASH_defconfig| 1 +
 configs/P1021RDB-PC_NAND_defconfig  | 1 +
 configs/P1021RDB-PC_SDCARD_defconfig| 1 +
 configs/P1021RDB-PC_SPIFLASH_defconfig  | 1 +
 configs/P1022DS_36BIT_NAND_defconfig| 1 +
 configs/P1022DS_36BIT_SDCARD_defconfig  | 1 +
 configs/P1022DS_36BIT_SPIFLASH_defconfig| 1 +
 configs/P1022DS_NAND_defconfig  | 1 +
 configs/P1022DS_SDCARD_defconfig| 1 +
 configs/P1022DS_SPIFLASH_defconfig  | 1 +
 configs/P1024RDB_NAND_defconfig | 1 +
 configs/P1024RDB_SDCARD_defconfig   | 1 +
 configs/P1024RDB_SPIFLASH_defconfig | 1 +
 configs/P1025RDB_NAND_defconfig | 1 +
 configs/P1025RDB_SDCARD_defconfig   | 1 +
 configs/P1025RDB_SPIFLASH_defconfig | 1 +
 configs/P2020RDB-PC_36BIT_NAND_defconfig| 1 +
 configs/P2020RDB-PC_36BIT_SDCARD_defconfig  | 1 +
 configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig| 1 +
 configs/P2020RDB-PC_NAND_defconfig  | 1 +
 configs/P2020RDB-PC_SDCARD_defconfig| 1 +
 configs/P2020RDB-PC_SPIFLASH_defconfig  | 1 +
 configs/T1023RDB_NAND_defconfig | 1 +
 configs/T1023RDB_SDCARD_defconfig   | 1 +
 configs/T1023RDB_SPIFLASH_defconfig | 1 +
 configs/T1024QDS_NAND_defconfig | 1 +
 configs/T1024QDS_SDCARD_defconfig   | 1 +
 configs/T1024QDS_SPIFLASH_defconfig | 1 +
 configs/T1024RDB_NAND_defconfig | 1 +
 configs/T1024RDB_SDCARD_defconfig   | 1 +
 configs/T1024RDB_SPIFLASH_defconfig | 1 +
 configs/T1040D4RDB_NAND_defconfig   | 1 +
 configs/T1040D4RDB_SDCARD_defconfig | 1 +
 configs/T1040D4RDB_SPIFLASH_defconfig   | 1 +
 configs/T1040RDB_NAND_defconfig | 1 +
 configs/T1040RDB_SDCARD_defconfig   | 1 +
 configs/T1040RDB_SPIFLASH_defconfig | 1 +
 configs/T1042D4RDB_NAND_defconfig   | 1 +
 configs/T1042D4RDB_SDCARD_defconfig | 1 +
 configs/T1042D4RDB_SPIFLASH_defconfig   | 1 +
 

[U-Boot] [PATCH v2 01/44] Correct defconfigs using savedefconfig

2016-08-29 Thread Simon Glass
Update the defconfig files to match their canonical form, as produced by
'make safedefconfig'.

This is the result of running 'tools/moveconfig.py -s' on the tree.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 configs/10m50_defconfig|  2 +-
 configs/3c120_defconfig|  2 +-
 configs/A20-OLinuXino_MICRO_defconfig  |  2 +-
 configs/A20-Olimex-SOM-EVB_defconfig   |  2 +-
 configs/B4860QDS_SECURE_BOOT_defconfig |  2 +-
 configs/BSC9132QDS_NAND_DDRCLK100_SECURE_defconfig |  2 +-
 configs/BSC9132QDS_NAND_DDRCLK133_SECURE_defconfig |  2 +-
 configs/BSC9132QDS_NOR_DDRCLK100_SECURE_defconfig  |  2 +-
 configs/BSC9132QDS_NOR_DDRCLK133_SECURE_defconfig  |  2 +-
 .../BSC9132QDS_SDCARD_DDRCLK100_SECURE_defconfig   |  2 +-
 .../BSC9132QDS_SDCARD_DDRCLK133_SECURE_defconfig   |  2 +-
 .../BSC9132QDS_SPIFLASH_DDRCLK100_SECURE_defconfig |  2 +-
 .../BSC9132QDS_SPIFLASH_DDRCLK133_SECURE_defconfig |  2 +-
 configs/C29XPCIE_NOR_SECBOOT_defconfig |  2 +-
 configs/C29XPCIE_SPIFLASH_SECBOOT_defconfig|  2 +-
 configs/CHIP_defconfig |  2 +-
 configs/Cubietruck_plus_defconfig  |  1 -
 configs/Merrii_A80_Optimus_defconfig   |  1 -
 configs/P1010RDB-PA_NAND_SECBOOT_defconfig |  2 +-
 configs/P1010RDB-PA_NOR_SECBOOT_defconfig  |  2 +-
 configs/P1010RDB-PA_SPIFLASH_SECBOOT_defconfig |  2 +-
 configs/P1010RDB-PB_NAND_SECBOOT_defconfig |  2 +-
 configs/P1010RDB-PB_NOR_SECBOOT_defconfig  |  2 +-
 configs/P1010RDB-PB_SPIFLASH_SECBOOT_defconfig |  2 +-
 configs/P2041RDB_SECURE_BOOT_defconfig |  2 +-
 configs/P3041DS_NAND_SECURE_BOOT_defconfig |  2 +-
 configs/P3041DS_SECURE_BOOT_defconfig  |  2 +-
 configs/P4080DS_SECURE_BOOT_defconfig  |  2 +-
 configs/P5020DS_NAND_SECURE_BOOT_defconfig |  2 +-
 configs/P5020DS_SECURE_BOOT_defconfig  |  2 +-
 configs/P5040DS_NAND_SECURE_BOOT_defconfig |  2 +-
 configs/P5040DS_SECURE_BOOT_defconfig  |  2 +-
 configs/T1023RDB_SECURE_BOOT_defconfig |  2 +-
 configs/T1024QDS_DDR4_SECURE_BOOT_defconfig|  2 +-
 configs/T1024QDS_SECURE_BOOT_defconfig |  2 +-
 configs/T1024RDB_SECURE_BOOT_defconfig |  2 +-
 configs/T1040D4RDB_SECURE_BOOT_defconfig   |  2 +-
 configs/T1040QDS_SECURE_BOOT_defconfig |  2 +-
 configs/T1040RDB_SECURE_BOOT_defconfig |  2 +-
 configs/T1042D4RDB_SECURE_BOOT_defconfig   |  2 +-
 configs/T1042RDB_PI_NAND_SECURE_BOOT_defconfig |  4 +--
 configs/T1042RDB_SECURE_BOOT_defconfig |  2 +-
 configs/T2080QDS_SECURE_BOOT_defconfig |  2 +-
 configs/T2080RDB_SECURE_BOOT_defconfig |  2 +-
 configs/T4160QDS_SECURE_BOOT_defconfig |  2 +-
 configs/T4240QDS_SECURE_BOOT_defconfig |  2 +-
 configs/Wobo_i5_defconfig  |  2 +-
 configs/alt_defconfig  |  2 +-
 configs/am335x_boneblack_vboot_defconfig   |  2 +-
 configs/am335x_evm_defconfig   | 10 +++-
 configs/am335x_evm_nor_defconfig   |  1 -
 configs/am335x_evm_norboot_defconfig   |  3 +--
 configs/am335x_evm_usbspl_defconfig|  1 -
 configs/am43xx_evm_defconfig   | 10 
 configs/am43xx_evm_ethboot_defconfig   |  1 -
 configs/am43xx_evm_usbhost_boot_defconfig  | 14 +-
 configs/am43xx_hs_evm_defconfig| 12 -
 configs/am57xx_evm_defconfig   | 24 -
 configs/am57xx_evm_nodt_defconfig  | 10 
 configs/am57xx_hs_evm_defconfig| 25 +-
 configs/ap121_defconfig|  4 +--
 configs/ap143_defconfig|  4 +--
 configs/apalis_t30_defconfig   |  3 +--
 configs/arndale_defconfig  |  2 +-
 configs/axm_defconfig  |  2 +-
 configs/beaver_defconfig   |  3 +--
 configs/birdland_bav335a_defconfig |  1 -
 configs/birdland_bav335b_defconfig |  1 -
 configs/cardhu_defconfig   |  3 +--
 configs/chromebook_jerry_defconfig |  4 +--
 configs/chromebook_link_defconfig  |  2 +-
 configs/cm_t43_defconfig   |  2 +-
 configs/colibri_t20_defconfig  |  3 +--
 configs/colibri_t30_defconfig  |  3 +--
 configs/colibri_vf_defconfig   |  4 +--
 ...conga-qeval20-qa3-e3845-internal-uart_defconfig |  2 +-
 configs/conga-qeval20-qa3-e3845_defconfig  |  2 +-
 configs/corvus_defconfig   |  7 ++---
 

[U-Boot] [PATCH v2 22/44] Convert CONFIG_SPL_I2C_SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
Move this option to Kconfig and tidy up existing uses.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 arch/arm/cpu/armv7/am33xx/Kconfig   | 3 +++
 arch/arm/cpu/armv7/omap3/Kconfig| 3 +++
 arch/arm/cpu/armv7/omap4/Kconfig| 3 +++
 arch/arm/cpu/armv7/omap5/Kconfig| 3 +++
 board/ti/common/Kconfig | 3 +++
 configs/A10-OLinuXino-Lime_defconfig| 1 +
 configs/A10s-OLinuXino-M_defconfig  | 1 +
 configs/A13-OLinuXino_defconfig | 1 +
 configs/A20-OLinuXino-Lime2_defconfig   | 1 +
 configs/A20-OLinuXino-Lime_defconfig| 1 +
 configs/A20-OLinuXino_MICRO_defconfig   | 1 +
 configs/A20-Olimex-SOM-EVB_defconfig| 1 +
 configs/Ainol_AW1_defconfig | 1 +
 configs/Ampe_A76_defconfig  | 1 +
 configs/Auxtek-T003_defconfig   | 1 +
 configs/Auxtek-T004_defconfig   | 1 +
 configs/B4420QDS_NAND_defconfig | 1 +
 configs/B4860QDS_NAND_defconfig | 1 +
 configs/Bananapi_defconfig  | 1 +
 configs/Bananapro_defconfig | 1 +
 configs/C29XPCIE_NAND_defconfig | 1 +
 configs/CHIP_defconfig  | 1 +
 configs/Chuwi_V7_CW0825_defconfig   | 1 +
 configs/Cubieboard2_defconfig   | 1 +
 configs/Cubieboard_defconfig| 1 +
 configs/Cubietruck_defconfig| 1 +
 configs/Empire_electronix_d709_defconfig| 1 +
 configs/Hyundai_A7HD_defconfig  | 1 +
 configs/Itead_Ibox_A20_defconfig| 1 +
 configs/Lamobo_R1_defconfig | 1 +
 configs/Linksprite_pcDuino3_Nano_defconfig  | 1 +
 configs/Linksprite_pcDuino3_defconfig   | 1 +
 configs/Linksprite_pcDuino_defconfig| 1 +
 configs/MK808C_defconfig| 1 +
 configs/MSI_Primo73_defconfig   | 1 +
 configs/Mele_A1000_defconfig| 1 +
 configs/Mele_M3_defconfig   | 1 +
 configs/Mele_M5_defconfig   | 1 +
 configs/Mini-X_defconfig| 1 +
 configs/Orangepi_defconfig  | 1 +
 configs/Orangepi_mini_defconfig | 1 +
 configs/P1010RDB-PA_36BIT_NAND_defconfig| 1 +
 configs/P1010RDB-PA_36BIT_SDCARD_defconfig  | 1 +
 configs/P1010RDB-PA_36BIT_SPIFLASH_defconfig| 1 +
 configs/P1010RDB-PA_NAND_defconfig  | 1 +
 configs/P1010RDB-PA_SDCARD_defconfig| 1 +
 configs/P1010RDB-PA_SPIFLASH_defconfig  | 1 +
 configs/P1010RDB-PB_36BIT_NAND_defconfig| 1 +
 configs/P1010RDB-PB_36BIT_SDCARD_defconfig  | 1 +
 configs/P1010RDB-PB_36BIT_SPIFLASH_defconfig| 1 +
 configs/P1010RDB-PB_NAND_defconfig  | 1 +
 configs/P1010RDB-PB_SDCARD_defconfig| 1 +
 configs/P1010RDB-PB_SPIFLASH_defconfig  | 1 +
 configs/P1020MBG-PC_36BIT_SDCARD_defconfig  | 1 +
 configs/P1020MBG-PC_SDCARD_defconfig| 1 +
 configs/P1020RDB-PC_36BIT_NAND_defconfig| 1 +
 configs/P1020RDB-PC_36BIT_SDCARD_defconfig  | 1 +
 configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig| 1 +
 configs/P1020RDB-PC_NAND_defconfig  | 1 +
 configs/P1020RDB-PC_SDCARD_defconfig| 1 +
 configs/P1020RDB-PC_SPIFLASH_defconfig  | 1 +
 configs/P1020RDB-PD_NAND_defconfig  | 1 +
 configs/P1020RDB-PD_SDCARD_defconfig| 1 +
 configs/P1020RDB-PD_SPIFLASH_defconfig  | 1 +
 configs/P1020UTM-PC_36BIT_SDCARD_defconfig  | 1 +
 configs/P1020UTM-PC_SDCARD_defconfig| 1 +
 configs/P1021RDB-PC_36BIT_NAND_defconfig| 1 +
 configs/P1021RDB-PC_36BIT_SDCARD_defconfig  | 1 +
 configs/P1021RDB-PC_36BIT_SPIFLASH_defconfig| 1 +
 configs/P1021RDB-PC_NAND_defconfig  | 1 +
 configs/P1021RDB-PC_SDCARD_defconfig| 1 +
 configs/P1021RDB-PC_SPIFLASH_defconfig  | 1 +
 configs/P1022DS_36BIT_NAND_defconfig| 1 +
 configs/P1022DS_36BIT_SDCARD_defconfig  | 1 +
 configs/P1022DS_36BIT_SPIFLASH_defconfig| 1 +
 configs/P1022DS_NAND_defconfig  | 1 +
 configs/P1022DS_SDCARD_defconfig| 1 +
 configs/P1022DS_SPIFLASH_defconfig  | 1 +
 configs/P1024RDB_NAND_defconfig | 1 +
 configs/P1024RDB_SDCARD_defconfig   | 1 +
 configs/P1024RDB_SPIFLASH_defconfig | 1 +
 configs/P1025RDB_NAND_defconfig | 1 +
 

Re: [U-Boot] [PATCH v2 03/44] moveconfig: Add an option to commit changes

2016-08-29 Thread Masahiro Yamada
Hi Simon,

2016-08-30 9:21 GMT+09:00 Simon Glass :
> The moveconfig tool is quite clever and generally produces results that
> are suitable for sending as a patch without further work. The main required
> step is to add the changes to a commit.
>
> Add an option to do this automatically. This allows moveconfig to be used
> from a script to convert multiple CONFIG options, once per commit.
>
> Signed-off-by: Simon Glass 
> ---


Again, you need to describe the option
in the "Available options" section.


> Changes in v2: None
>
>  tools/moveconfig.py | 10 ++
>  1 file changed, 10 insertions(+)
>
> diff --git a/tools/moveconfig.py b/tools/moveconfig.py
> index 290270a..cf21318 100755
> --- a/tools/moveconfig.py
> +++ b/tools/moveconfig.py
> @@ -1199,6 +1199,8 @@ def main():
>  # Add options here
>  parser.add_option('-c', '--color', action='store_true', default=False,
>help='display the log in color')
> +parser.add_option('-C', '--commit', action='store_true', default=False,
> +  help='Create a git commit for the operation')
>  parser.add_option('-d', '--defconfigs', type='string',
>help='a file containing a list of defconfigs to move')
>  parser.add_option('-n', '--dry-run', action='store_true', default=False,
> @@ -1242,5 +1244,13 @@ def main():
>  cleanup_headers(configs, options)
>  cleanup_extra_options(configs, options)
>
> +if options.commit:
> +os.system('git add -u')
> +msg = '''Convert %s to Kconfig
> +
> +Move this option to Kconfig and tidy up existing uses.
> +''' % ', '.join(configs)
> +os.system('git commit -s -m "%s"' % msg)
> +
>  if __name__ == '__main__':
>  main()

This breaks indentation.
Please re-write the code.


Also, use subprocess, instead of os.system.

http://www.pythonforbeginners.com/os/subprocess-for-system-administrators




-- 
Best Regards
Masahiro Yamada
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v2 02/44] moveconfig: Add an option to skip prompts

2016-08-29 Thread Masahiro Yamada
2016-08-30 9:21 GMT+09:00 Simon Glass :
> At present it is not easy to use moveconfig from a script since it asks
> for user input a few times. Add a -y option to skip this and assume that
> 'y' was entered.
>
> Signed-off-by: Simon Glass 
> ---

Please describe the option
in the "Available options" section.





-- 
Best Regards
Masahiro Yamada
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v2 34/44] Convert CONFIG_SPL_PINCTRL_SUPPORT to Kconfig

2016-08-29 Thread Masahiro Yamada
2016-08-30 9:21 GMT+09:00 Simon Glass :
> Move this option to Kconfig and tidy up existing uses.
>
> Signed-off-by: Simon Glass 

NACK.
See v1.
http://patchwork.ozlabs.org/patch/662394/




-- 
Best Regards
Masahiro Yamada
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v2 21/44] Convert CONFIG_SPL_GPIO_SUPPORT to Kconfig

2016-08-29 Thread Masahiro Yamada
2016-08-30 9:21 GMT+09:00 Simon Glass :
> Move this option to Kconfig and tidy up existing uses.
>
> Signed-off-by: Simon Glass 

>
> diff --git a/arch/arm/cpu/armv7/am33xx/Kconfig 
> b/arch/arm/cpu/armv7/am33xx/Kconfig
> index efbc219..54474c2 100644
> --- a/arch/arm/cpu/armv7/am33xx/Kconfig
> +++ b/arch/arm/cpu/armv7/am33xx/Kconfig
> @@ -3,6 +3,9 @@ if AM43XX
>  config SPL_EXT_SUPPORT
> default y
>
> +config SPL_GPIO_SUPPORT
> +   default y
> +
>  config TARGET_AM43XX_EVM
> bool "Support am43xx_evm"
> select TI_I2C_BOARD_DETECT
> diff --git a/arch/arm/cpu/armv7/omap3/Kconfig 
> b/arch/arm/cpu/armv7/omap3/Kconfig
> index de65ac6..e1c981e 100644
> --- a/arch/arm/cpu/armv7/omap3/Kconfig
> +++ b/arch/arm/cpu/armv7/omap3/Kconfig
> @@ -6,6 +6,9 @@ config SPL_EXT_SUPPORT
>  config SPL_FAT_SUPPORT
> default y
>
> +config SPL_GPIO_SUPPORT
> +   default y
> +
>  choice
> prompt "OMAP3 board select"
> optional
> diff --git a/arch/arm/cpu/armv7/omap4/Kconfig 
> b/arch/arm/cpu/armv7/omap4/Kconfig
> index 92eb2f4..48ce9d3 100644
> --- a/arch/arm/cpu/armv7/omap4/Kconfig
> +++ b/arch/arm/cpu/armv7/omap4/Kconfig
> @@ -6,6 +6,9 @@ config SPL_EXT_SUPPORT
>  config SPL_FAT_SUPPORT
> default y
>
> +config SPL_GPIO_SUPPORT
> +   default y
> +
>  choice
> prompt "OMAP4 board select"
> optional
> diff --git a/arch/arm/cpu/armv7/omap5/Kconfig 
> b/arch/arm/cpu/armv7/omap5/Kconfig
> index e367828..5b049ad 100644
> --- a/arch/arm/cpu/armv7/omap5/Kconfig
> +++ b/arch/arm/cpu/armv7/omap5/Kconfig
> @@ -6,6 +6,9 @@ config SPL_EXT_SUPPORT
>  config SPL_FAT_SUPPORT
> default y
>
> +config SPL_GPIO_SUPPORT
> +   default y
> +
>  choice
> prompt "OMAP5 board select"
> optional
> diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig
> index c25fcf3..d4a5bc9 100644
> --- a/arch/arm/mach-exynos/Kconfig
> +++ b/arch/arm/mach-exynos/Kconfig
> @@ -61,6 +61,9 @@ endif
>
>  if ARCH_EXYNOS5
>
> +config SPL_GPIO_SUPPORT
> +   default y
> +


As we discussed before,
we decided to not do this.





-- 
Best Regards
Masahiro Yamada
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v2 3/4] usb: dwc3: add support for 16 bit UTMI+ interface

2016-08-29 Thread Kever Yang

Hi Marek,

On 08/29/2016 09:01 AM, Marek Vasut wrote:

On 08/29/2016 02:55 AM, Kever Yang wrote:

Hi Marek,

On 08/26/2016 05:09 PM, Marek Vasut wrote:

On 08/25/2016 03:17 AM, Kever Yang wrote:

Hi Marek,

On 08/24/2016 07:38 PM, Marek Vasut wrote:

On 08/24/2016 05:46 AM, Kever Yang wrote:

The dwc3 controller is using 8 bit UTMI+ interface for USB2.0 PHY,
add one variable in dwc3/dwc3_device struct to support 16 bit
UTMI+ interface on some SoCs like Rockchip rk3399.

Signed-off-by: Kever Yang 
---

Changes in v2:
- use a variable to identify utmi+ bus width instead of CONFIG MACRO

drivers/usb/dwc3/core.c |  6 ++
drivers/usb/dwc3/core.h | 12 
include/dwc3-uboot.h|  1 +
3 files changed, 19 insertions(+)

diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index 85cc96a..0613508 100644
--- a/drivers/usb/dwc3/core.c
+++ b/drivers/usb/dwc3/core.c
@@ -388,6 +388,11 @@ static void dwc3_phy_setup(struct dwc3 *dwc)
if (dwc->dis_u2_susphy_quirk)
reg &= ~DWC3_GUSB2PHYCFG_SUSPHY;
+if (dwc->usb2_phyif_utmi_width == 16) {
+reg &= ~DWC3_GUSB2PHYCFG_USBTRDTIM_MASK;
+reg |= DWC3_GUSB2PHYCFG_USBTRDTIM_16BIT;
+reg |= DWC3_GUSB2PHYCFG_PHYIF_16BIT;
+}

Didn't we agree to pull this info from OF ?

Yes, the dwc->usb2_phyif_utmi_width is from OF,  but I make the DT parse
in board file instead of in the dwc3 driver,  see my patch:
[PATCH v2 2/4] board: evb-rk3399: add api to support dwc3 gadget

So this is basically a passing of platform data ?

Yes, this is what other platform do, I just extend one more setting.

Platform data should go away in favor of the DT probing.


I think implement in this way won't affect other soc also using dwc3
controller,
the DT parse would cost some time which may not necessary for other soc.

The time needed to run the DT parsing is completely insignificant.
This sounds like a premature optimization.

Which way of implement this DT parse do you prefer and more reasonable,
in dwc3 driver or in board init and dwc3 driver use it as platform data?

Driver should parse the DT.


I'm going to parse the DT for this new 16bit UTMI+ interface, and keep 
other part "as is"

because the dwc3 device node for different SoC are different now.

Does this make sense to you?

Thanks,
- Kever



Thanks,
- Kever

[...]




___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 7/7] config: evb-rk3399: enable pwm regulator

2016-08-29 Thread Kever Yang
This patch enable the pwm regulator for evb-rk3399.

Signed-off-by: Kever Yang 
---

 configs/evb-rk3399_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configs/evb-rk3399_defconfig b/configs/evb-rk3399_defconfig
index 9a6d422..62081a4 100644
--- a/configs/evb-rk3399_defconfig
+++ b/configs/evb-rk3399_defconfig
@@ -29,6 +29,7 @@ CONFIG_PINCTRL=y
 CONFIG_ROCKCHIP_RK3399_PINCTRL=y
 CONFIG_DM_PWM=y
 CONFIG_PWM_ROCKCHIP=y
+CONFIG_REGULATOR_PWM=y
 CONFIG_RAM=y
 CONFIG_SYS_NS16550=y
 CONFIG_DEBUG_UART=y
-- 
1.9.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 6/7] dts: evb-rk3399: add init voltage node for vdd-center

2016-08-29 Thread Kever Yang
This patch add regulator-init-microvolt for pwm regulator
to get a init value when driver do probe init.

Signed-off-by: Kever Yang 
---

 arch/arm/dts/rk3399-evb.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/dts/rk3399-evb.dts b/arch/arm/dts/rk3399-evb.dts
index bd7801b..fa60e19 100644
--- a/arch/arm/dts/rk3399-evb.dts
+++ b/arch/arm/dts/rk3399-evb.dts
@@ -23,6 +23,7 @@
regulator-name = "vdd_center";
regulator-min-microvolt = <80>;
regulator-max-microvolt = <140>;
+   regulator-init-microvolt = <95>;
regulator-always-on;
regulator-boot-on;
status = "okay";
-- 
1.9.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 5/7] Kconfig: rockchip: enable DM_PWM and DM_REGULATOR

2016-08-29 Thread Kever Yang
This patch enable DM_PWM and DM_REGULATOR on rockchip SoCs.

Signed-off-by: Kever Yang 
---

 arch/arm/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 4928206..c877f5d 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -863,6 +863,8 @@ config ARCH_ROCKCHIP
select DM_SPI
select DM_SPI_FLASH
select DM_USB if USB
+   select DM_PWM
+   select DM_REGULATOR
 
 config TARGET_THUNDERX_88XX
bool "Support ThunderX 88xx"
-- 
1.9.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 4/7] rockchip: evb_rk3399: init vdd_center regulator

2016-08-29 Thread Kever Yang
This patch add vdd_center pwm regulator get_device to
enable this regulator.

Signed-off-by: Kever Yang 
---

 board/rockchip/evb_rk3399/evb-rk3399.c | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/board/rockchip/evb_rk3399/evb-rk3399.c 
b/board/rockchip/evb_rk3399/evb-rk3399.c
index 5b245e4..863e746 100644
--- a/board/rockchip/evb_rk3399/evb-rk3399.c
+++ b/board/rockchip/evb_rk3399/evb-rk3399.c
@@ -6,6 +6,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -41,6 +42,11 @@ int board_init(void)
goto out;
}
 
+   /* rk3399 need init vdd_center to get correct output voltage */
+   ret = regulator_get_by_platname("vdd_center", );
+   if (ret)
+   debug("%s: Cannot get vdd_center regulator\n", __func__);
+
ret = regulator_get_by_platname("vcc5v0_host", );
if (ret) {
debug("%s vcc5v0_host init fail! ret %d\n", __func__, ret);
-- 
1.9.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 2/7] rockchip: rkpwm: fix the register sequence

2016-08-29 Thread Kever Yang
Reference to kernel source code, rockchip pwm has three
type, we are using v2 for rk3288 and rk3399, so let's
update the register to sync with pwm_data_v2 in kernel.

Signed-off-by: Kever Yang 
---

 arch/arm/include/asm/arch-rockchip/pwm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/include/asm/arch-rockchip/pwm.h 
b/arch/arm/include/asm/arch-rockchip/pwm.h
index 08ff945..5d9a178 100644
--- a/arch/arm/include/asm/arch-rockchip/pwm.h
+++ b/arch/arm/include/asm/arch-rockchip/pwm.h
@@ -10,8 +10,8 @@
 
 struct rk3288_pwm {
u32 cnt;
-   u32 period_hpr;
u32 duty_lpr;
+   u32 period_hpr;
u32 ctrl;
 };
 check_member(rk3288_pwm, ctrl, 0xc);
-- 
1.9.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 3/7] power: regulator: add pwm regulator

2016-08-29 Thread Kever Yang
This driver add support for pwm regulator.

Signed-off-by: Elaine Zhang 
Signed-off-by: Kever Yang 
---

 drivers/power/regulator/Kconfig |   9 ++
 drivers/power/regulator/Makefile|   1 +
 drivers/power/regulator/pwm_regulator.c | 157 
 3 files changed, 167 insertions(+)
 create mode 100644 drivers/power/regulator/pwm_regulator.c

diff --git a/drivers/power/regulator/Kconfig b/drivers/power/regulator/Kconfig
index 17f22dd..c2eaa84 100644
--- a/drivers/power/regulator/Kconfig
+++ b/drivers/power/regulator/Kconfig
@@ -42,6 +42,15 @@ config DM_REGULATOR_PFUZE100
features for REGULATOR PFUZE100. The driver implements get/set api for:
value, enable and mode.
 
+config REGULATOR_PWM
+   bool "Enable driver for PWM regulators"
+   depends on DM_REGULATOR
+   ---help---
+   Enable support for the regulator functions of the PWM. The
+   driver implements get/set api for the various BUCKS.
+   This driver is controlled by a device tree node
+   which includes voltage limits.
+
 config DM_REGULATOR_MAX77686
bool "Enable Driver Model for REGULATOR MAX77686"
depends on DM_REGULATOR && DM_PMIC_MAX77686
diff --git a/drivers/power/regulator/Makefile b/drivers/power/regulator/Makefile
index 1590d85..ab461ec 100644
--- a/drivers/power/regulator/Makefile
+++ b/drivers/power/regulator/Makefile
@@ -9,6 +9,7 @@ obj-$(CONFIG_$(SPL_)DM_REGULATOR) += regulator-uclass.o
 obj-$(CONFIG_REGULATOR_ACT8846) += act8846.o
 obj-$(CONFIG_DM_REGULATOR_MAX77686) += max77686.o
 obj-$(CONFIG_DM_REGULATOR_PFUZE100) += pfuze100.o
+obj-$(CONFIG_REGULATOR_PWM) += pwm_regulator.o
 obj-$(CONFIG_$(SPL_)DM_REGULATOR_FIXED) += fixed.o
 obj-$(CONFIG_REGULATOR_RK808) += rk808.o
 obj-$(CONFIG_REGULATOR_S5M8767) += s5m8767.o
diff --git a/drivers/power/regulator/pwm_regulator.c 
b/drivers/power/regulator/pwm_regulator.c
new file mode 100644
index 000..f75731b
--- /dev/null
+++ b/drivers/power/regulator/pwm_regulator.c
@@ -0,0 +1,157 @@
+/*
+ * Copyright (C) 2016 Rockchip Electronics Co., Ltd
+ *
+ * Based on kernel drivers/regulator/pwm-regulator.c
+ * Copyright (C) 2014 - STMicroelectronics Inc.
+ * Author: Lee Jones 
+ *
+ * SPDX-License-Identifier:GPL-2.0+
+ */
+
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+DECLARE_GLOBAL_DATA_PTR;
+
+struct pwm_regulator_info {
+   int pwm_id;
+   int period;
+   struct udevice *pwm;
+   unsigned int init_voltage;
+   unsigned int max_voltage;
+   unsigned int min_voltage;
+   unsigned int boot_on;
+   unsigned int volt_uV;
+};
+
+static int pwm_regulator_enable(struct udevice *dev, bool enable)
+{
+   struct pwm_regulator_info *priv = dev_get_priv(dev);
+
+   return pwm_set_enable(priv->pwm, priv->pwm_id, enable);
+}
+
+static int pwm_voltage_to_duty_cycle_percentage(struct udevice *dev, int 
req_uV)
+{
+   struct pwm_regulator_info *priv = dev_get_priv(dev);
+   int min_uV = priv->min_voltage;
+   int max_uV = priv->max_voltage;
+   int diff = max_uV - min_uV;
+
+   return 100 - (((req_uV * 100) - (min_uV * 100)) / diff);
+}
+
+static int pwm_regulator_get_voltage(struct udevice *dev)
+{
+   struct pwm_regulator_info *priv = dev_get_priv(dev);
+
+   return priv->volt_uV;
+}
+
+static int pwm_regulator_set_voltage(struct udevice *dev, int uvolt)
+{
+   struct pwm_regulator_info *priv = dev_get_priv(dev);
+   int duty_cycle;
+   int ret = 0;
+
+   duty_cycle = pwm_voltage_to_duty_cycle_percentage(dev, uvolt);
+
+   ret = pwm_set_config(priv->pwm, priv->pwm_id,
+   (priv->period / 100) * duty_cycle, priv->period);
+   if (ret) {
+   dev_err(dev, "Failed to configure PWM\n");
+   return ret;
+   }
+
+   ret = pwm_set_enable(priv->pwm, priv->pwm_id, true);
+   if (ret) {
+   dev_err(dev, "Failed to enable PWM\n");
+   return ret;
+   }
+   priv->volt_uV = uvolt;
+   return ret;
+}
+
+static int pwm_regulator_ofdata_to_platdata(struct udevice *dev)
+{
+   struct pwm_regulator_info *priv = dev_get_priv(dev);
+   struct fdtdec_phandle_args args;
+   const void *blob = gd->fdt_blob;
+   int node = dev->of_offset;
+   int ret;
+
+   ret = fdtdec_parse_phandle_with_args(blob, node, "pwms", "#pwm-cells",
+0, 0, );
+   if (ret) {
+   debug("%s: Cannot get PWM phandle: ret=%d\n", __func__, ret);
+   return ret;
+   }
+
+   priv->period = args.args[1];
+
+   /* rkpwm do not use the pwm_id, set it to 0 */
+   priv->pwm_id = 0;
+
+   priv->init_voltage = fdtdec_get_int(blob, node,
+   "regulator-init-microvolt", 0);
+   if (priv->init_voltage < 0)
+   printf("Cannot find 

[U-Boot] [PATCH 0/7] add pwm regulator driver

2016-08-29 Thread Kever Yang

This patch set add pwm regulator driver and enable it
on rk3399, also do some update and fix to make the regulator
driver work properly.



Kever Yang (7):
  rockchip: rk3399: update PPLL and pmu_pclk frequency
  rockchip: rkpwm: fix the register sequence
  power: regulator: add pwm regulator
  rockchip: evb_rk3399: init vdd_center regulator
  Kconfig: rockchip: enable DM_PWM and DM_REGULATOR
  dts: evb-rk3399: add init voltage node for vdd-center
  config: evb-rk3399: enable pwm regulator

 arch/arm/Kconfig|   2 +
 arch/arm/dts/rk3399-evb.dts |   1 +
 arch/arm/include/asm/arch-rockchip/cru_rk3399.h |   4 +-
 arch/arm/include/asm/arch-rockchip/pwm.h|   2 +-
 board/rockchip/evb_rk3399/evb-rk3399.c  |   6 +
 configs/evb-rk3399_defconfig|   1 +
 drivers/power/regulator/Kconfig |   9 ++
 drivers/power/regulator/Makefile|   1 +
 drivers/power/regulator/pwm_regulator.c | 157 
 9 files changed, 180 insertions(+), 3 deletions(-)
 create mode 100644 drivers/power/regulator/pwm_regulator.c

-- 
1.9.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 1/7] rockchip: rk3399: update PPLL and pmu_pclk frequency

2016-08-29 Thread Kever Yang
This patch update PPLL to 676MHz and PMU_PCLK to 48MHz.

Signed-off-by: Kever Yang 
---

 arch/arm/include/asm/arch-rockchip/cru_rk3399.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/include/asm/arch-rockchip/cru_rk3399.h 
b/arch/arm/include/asm/arch-rockchip/cru_rk3399.h
index c919f47..6776e48 100644
--- a/arch/arm/include/asm/arch-rockchip/cru_rk3399.h
+++ b/arch/arm/include/asm/arch-rockchip/cru_rk3399.h
@@ -64,9 +64,9 @@ check_member(rk3399_cru, sdio1_con[1], 0x594);
 #define APLL_HZ(600*MHz)
 #define GPLL_HZ(594*MHz)
 #define CPLL_HZ(384*MHz)
-#define PPLL_HZ(594*MHz)
+#define PPLL_HZ(676*MHz)
 
-#define PMU_PCLK_HZ(99*MHz)
+#define PMU_PCLK_HZ(48*MHz)
 
 #define ACLKM_CORE_HZ  (300*MHz)
 #define ATCLK_CORE_HZ  (300*MHz)
-- 
1.9.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] rockchip: rk3288-firefly: enable boot from eMMC

2016-08-29 Thread 陈豪
Hi,

You probably did not short the clock of eMMC.
If we don't press maskrom buttons(short the clock of eMMC), SPL will
detect eMMC and try to load image from eMMC. if the eMMC is blank, it
hangs.
So if we specifies board_boot_order and want to boot from SD in
FireFly, we have to short the clock of eMMC.

The current code(spl_boot_device)  will force to boot from SD rather
than boot from whatever media it started
with,.So we have to specifies board_boot_order if we want to boot from eMMC.

Of course, It might be inconvenie to short the clock of eMMC in
FireFly. Do you have any better idea?

2016-08-30 0:17 GMT+08:00 陈豪 :
> Hi,
>
> I just copied thos code from the other boards.
>
> On the other boards, I didn't meet this situation.It will load u-boot
> from sd if it didn't detect u-boot in eMMC.
>
> I'll check why it's different in firefly.
>
> 2016-08-28 0:06 GMT+08:00, Simon Glass :
>> Hi,
>>
>> On 12 August 2016 at 11:20, Simon Glass  wrote:
>>> On 9 August 2016 at 19:56, Jacob Chen  wrote:
 Add eMMC dt node and define fallback boot devices.

 Signed-off-by: Jacob Chen 
 ---

  arch/arm/dts/rk3288-firefly.dts   | 5 +
  board/firefly/firefly-rk3288/firefly-rk3288.c | 8 
  2 files changed, 13 insertions(+)
>>>
>>> Acked-by: Simon Glass 
>>
>> Unfortunately I cannot apply this. It appears to actually force
>> booting from eMMC. So if the eMMC is blank, it hangs at 'Trying to
>> boot from MMC2'.
>>
>> I think it should continue to boot from whatever media it started
>> with. So if it booted SPL from SD then it should load U-Boot from SD.
>>
>> Regards,
>> Simon
>> ___
>> U-Boot mailing list
>> U-Boot@lists.denx.de
>> http://lists.denx.de/mailman/listinfo/u-boot
>>
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Please pull u-boot-x86

2016-08-29 Thread Tom Rini
On Tue, Aug 30, 2016 at 09:33:03AM +0800, Bin Meng wrote:

> Hi Tom,
> 
> This includes minor updates on IvyBridge support, as well as fixes to
> EFI payload.
> 
> The following changes since commit ff62bdfbd5dd67d37901002a35b541f2c65ad78d:
> 
>   Merge branch 'master' of git://git.denx.de/u-boot-uniphier
> (2016-08-28 10:36:20 -0400)
> 
> are available in the git repository at:
> 
>   git://git.denx.de/u-boot-x86.git master
> 
> for you to fetch changes up to cb1cbdd96962931de2ac948a184874e2672f3f96:
> 
>   x86: qemu: efi: Add two boards for EFI 32-bit and 64-bit payload
> (2016-08-30 09:26:05 +0800)
> 

Applied to u-boot/master, thanks!

-- 
Tom


signature.asc
Description: Digital signature
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] Please pull u-boot-x86

2016-08-29 Thread Bin Meng
Hi Tom,

This includes minor updates on IvyBridge support, as well as fixes to
EFI payload.

The following changes since commit ff62bdfbd5dd67d37901002a35b541f2c65ad78d:

  Merge branch 'master' of git://git.denx.de/u-boot-uniphier
(2016-08-28 10:36:20 -0400)

are available in the git repository at:

  git://git.denx.de/u-boot-x86.git master

for you to fetch changes up to cb1cbdd96962931de2ac948a184874e2672f3f96:

  x86: qemu: efi: Add two boards for EFI 32-bit and 64-bit payload
(2016-08-30 09:26:05 +0800)


Bin Meng (3):
  x86: efi: payload: Make EFI payload build again
  x86: efi: Fix EFI 64-bit payload build warnings
  x86: qemu: efi: Add two boards for EFI 32-bit and 64-bit payload

Simon Glass (3):
  x86: Add debugging when a microcode update fails
  x86: ivybridge: Allow microcode to be collated
  x86: Add debugging when cpu_common_init() fails

 arch/x86/cpu/intel_common/cpu.c  |  4 +++-
 arch/x86/cpu/intel_common/microcode.c| 12 +++-
 arch/x86/cpu/ivybridge/cpu.c |  4 +++-
 arch/x86/include/asm/types.h |  4 
 board/emulation/qemu-x86/MAINTAINERS |  2 ++
 configs/qemu-x86_efi_payload32_defconfig | 48

 configs/qemu-x86_efi_payload64_defconfig | 49
+
 include/efi.h| 34
+-
 lib/efi/efi_stub.c   |  6 +++---
 9 files changed, 140 insertions(+), 23 deletions(-)
 create mode 100644 configs/qemu-x86_efi_payload32_defconfig
 create mode 100644 configs/qemu-x86_efi_payload64_defconfig

Regards,
Bin
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v2 3/3] x86: qemu: efi: Add two boards for EFI 32-bit and 64-bit payload

2016-08-29 Thread Bin Meng
On Thu, Aug 25, 2016 at 4:47 PM, Bin Meng  wrote:
> This introduces two board defconfig files for generating EFI 32-bit
> and 64-bit payloads, to run on QEMU x86 target.
>
> With these in place, hopefully buildman will catch any build error
> with EFI payload support on x86.
>
> Signed-off-by: Bin Meng 
> Reviewed-by: Simon Glass 
>
> ---
>
> Changes in v2:
> - Add maintainter entry for the two boards
>
>  board/emulation/qemu-x86/MAINTAINERS |  2 ++
>  configs/qemu-x86_efi_payload32_defconfig | 48 +++
>  configs/qemu-x86_efi_payload64_defconfig | 49 
> 
>  3 files changed, 99 insertions(+)
>  create mode 100644 configs/qemu-x86_efi_payload32_defconfig
>  create mode 100644 configs/qemu-x86_efi_payload64_defconfig
>

applied to u-boot-x86, thanks!
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v2 2/3] x86: efi: Fix EFI 64-bit payload build warnings

2016-08-29 Thread Bin Meng
On Tue, Aug 30, 2016 at 3:38 AM, Simon Glass  wrote:
> On 25 August 2016 at 02:47, Bin Meng  wrote:
>> There are lots of warnings when building EFI 64-bit payload.
>>
>> include/asm-generic/bitops/__fls.h:17:2:
>>   warning: left shift count >= width of type
>> if (!(word & (~0ul << 32))) {
>> ^
>>
>> In fact, U-Boot itself as EFI payload is running in 32-bit mode.
>> So BITS_PER_LONG needs to still be 32, but EFI status codes are
>> 64-bit when booting from 64-bit EFI. Introduce EFI_BITS_PER_LONG
>> to bridge those status codes with U-Boot's BITS_PER_LONG.
>>
>> Signed-off-by: Bin Meng 
>>
>> ---
>>
>> Changes in v2:
>> - Rework the patch to fix 64-bit payload boot issue
>>
>>  arch/x86/include/asm/types.h |  4 
>>  include/efi.h| 32 
>>  2 files changed, 20 insertions(+), 16 deletions(-)
>
> Reviewed-by: Simon Glass 

applied to u-boot-x86, thanks!
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v2 1/3] x86: efi: payload: Make EFI payload build again

2016-08-29 Thread Bin Meng
On Thu, Aug 25, 2016 at 4:47 PM, Bin Meng  wrote:
> Since commit 73c5c39 "Makefile: Drop unnecessary -dtb suffixes",
> EFI payload does not build anymore. This fixes the build.
>
> Signed-off-by: Bin Meng 
> Reviewed-by: Simon Glass 
> ---
>
> Changes in v2: None
>
>  include/efi.h  | 2 +-
>  lib/efi/efi_stub.c | 6 +++---
>  2 files changed, 4 insertions(+), 4 deletions(-)
>

applied to u-boot-x86, thanks!
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 2/2] Fix cache misalignment after network load operations

2016-08-29 Thread Peter.Chubb
After any operation that downloads a file (e.g., pxe get, or dhcp), the
buffer containing the downloaded data is flushed.  This patch rounds
up the flushed size to a cacheline boundary, preventing a cache
misalignment message from u-boot.

Signed-off-by: Peter Chubb 
---
 cmd/net.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/net.c b/cmd/net.c
index b2f3c7b..540daeb 100644
--- a/cmd/net.c
+++ b/cmd/net.c
@@ -244,7 +244,7 @@ static int netboot_common(enum proto_t proto, cmd_tbl_t 
*cmdtp, int argc,
}
 
/* flush cache */
-   flush_cache(load_addr, size);
+   flush_cache(load_addr, ALIGN(size, CONFIG_SYS_CACHELINE_SIZE));
 
bootstage_mark(BOOTSTAGE_ID_NET_LOADED);
 
-- 
2.9.3
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 1/2] rtl8169: fix cache misalignment message on transmit.

2016-08-29 Thread Peter.Chubb
The call to flush cache on the transmit buffer was misplaced (for very
short packets) and asked to flush less than a cacheline.

Move the flush cache call to after a short packet has been padded
to minimum length (so the padding is flushed too), and round the size
up to a cacheline.

Signed-off-by: Peter Chubb 
---
 drivers/net/rtl8169.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/rtl8169.c b/drivers/net/rtl8169.c
index 1cc0b40..a3f4423 100644
--- a/drivers/net/rtl8169.c
+++ b/drivers/net/rtl8169.c
@@ -629,11 +629,12 @@ static int rtl_send_common(pci_dev_t dev, unsigned long 
dev_iobase,
/* point to the current txb incase multiple tx_rings are used */
ptxb = tpc->Tx_skbuff[entry * MAX_ETH_FRAME_SIZE];
memcpy(ptxb, (char *)packet, (int)length);
-   rtl_flush_buffer(ptxb, length);
 
while (len < ETH_ZLEN)
ptxb[len++] = '\0';
 
+   rtl_flush_buffer(ptxb, ALIGN(len, RTL8169_ALIGN));
+
tpc->TxDescArray[entry].buf_Haddr = 0;
 #ifdef CONFIG_DM_ETH
tpc->TxDescArray[entry].buf_addr = cpu_to_le32(
-- 
2.9.3
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] ARM: tegra: Add support for TK1-SOM board from Colorado Engineering

2016-08-29 Thread Peter.Chubb
The Colorado TK1 SOM is a small form factor board similar to the
Jetson TK1.  The main differences lie in the pinmux, and in that the
PCIe controller is set to use in 4lanes+1lane, rather than 2+2.

The pinmux header here was generated from a spreadsheet provided by
Colorado Engineering using the tegra-pinmux scripts.  The spreadsheet
was converted from v09 to v11 by me.

Signed-off-by: Peter Chubb 
---
 arch/arm/dts/Makefile |   1 +
 arch/arm/dts/tegra124-cei-tk1-som.dts | 477 ++
 arch/arm/mach-tegra/tegra124/Kconfig  |  11 +
 board/cei/cei-tk1-som/Kconfig |  12 +
 board/cei/cei-tk1-som/MAINTAINERS |   6 +
 board/cei/cei-tk1-som/Makefile|   9 +
 board/cei/cei-tk1-som/cei-tk1-som.c   |  65 +++
 board/cei/cei-tk1-som/pinmux-config-cei-tk1-som.h | 301 ++
 board/nvidia/venice2/as3722_init.h|   8 +-
 configs/cei-tk1-som_defconfig |  47 +++
 include/configs/cei-tk1-som.h |  71 
 11 files changed, 1004 insertions(+), 4 deletions(-)
 create mode 100644 arch/arm/dts/tegra124-cei-tk1-som.dts
 create mode 100644 board/cei/cei-tk1-som/Kconfig
 create mode 100644 board/cei/cei-tk1-som/MAINTAINERS
 create mode 100644 board/cei/cei-tk1-som/Makefile
 create mode 100644 board/cei/cei-tk1-som/cei-tk1-som.c
 create mode 100644 board/cei/cei-tk1-som/pinmux-config-cei-tk1-som.h
 create mode 100644 configs/cei-tk1-som_defconfig
 create mode 100644 include/configs/cei-tk1-som.h

diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index 7d1944f..25fc22f 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -57,6 +57,7 @@ dtb-$(CONFIG_TEGRA) += tegra20-harmony.dtb \
tegra114-dalmore.dtb \
tegra124-jetson-tk1.dtb \
tegra124-nyan-big.dtb \
+   tegra124-cei-tk1-som.dtb \
tegra124-venice2.dtb \
tegra186-p2771--a02.dtb \
tegra186-p2771--b00.dtb \
diff --git a/arch/arm/dts/tegra124-cei-tk1-som.dts 
b/arch/arm/dts/tegra124-cei-tk1-som.dts
new file mode 100644
index 000..d22c0ca
--- /dev/null
+++ b/arch/arm/dts/tegra124-cei-tk1-som.dts
@@ -0,0 +1,477 @@
+/dts-v1/;
+
+#include "tegra124.dtsi"
+
+/ {
+   model = "Colorado Engineering TK1-SOM";
+   compatible = "nvidia,cei-tk1-som", "nvidia,tegra124";
+
+   chosen {
+   stdout-path = 
+   };
+
+   aliases {
+   i2c0 = "/i2c@7000d000";
+   i2c1 = "/i2c@7000c000";
+   i2c2 = "/i2c@7000c400";
+   i2c3 = "/i2c@7000c500";
+   i2c4 = "/i2c@7000c700";
+   sdhci0 = "/sdhci@700b0600";
+   sdhci1 = "/sdhci@700b0400";
+   spi0 = "/spi@7000d400";
+   spi1 = "/spi@7000da00";
+   usb0 = "/usb@7d00";
+   usb1 = "/usb@7d008000";
+   };
+
+   memory {
+   device_type = "memory";
+   reg = <0x8000 0x8000>;
+   };
+
+   pcie-controller@01003000 {
+   status = "okay";
+
+   avddio-pex-supply = <_1v05_run>;
+   dvddio-pex-supply = <_1v05_run>;
+   avdd-pex-pll-supply = <_1v05_run>;
+   hvdd-pex-supply = <_3v3_lp0>;
+   hvdd-pex-pll-e-supply = <_3v3_lp0>;
+   vddio-pex-ctl-supply = <_3v3_lp0>;
+   avdd-pll-erefe-supply = <_1v05_run>;
+
+   pci@1,0 {
+   status = "okay";
+   nvidia,num-lanes = <4>;
+   };
+
+   pci@2,0 {
+   status = "okay";
+   };
+   };
+
+   i2c@7000c000 {
+   status = "okay";
+   clock-frequency = <10>;
+   };
+
+   i2c@7000c400 {
+   status = "okay";
+   clock-frequency = <10>;
+   };
+
+   i2c@7000c500 {
+   status = "okay";
+   clock-frequency = <10>;
+   };
+
+   i2c@7000c700 {
+   status = "okay";
+   clock-frequency = <10>;
+   };
+
+   /* Expansion PWR_I2C_*, on-board components */
+   i2c@7000d000 {
+   status = "okay";
+   clock-frequency = <40>;
+
+   pmic: pmic@40 {
+   compatible = "ams,as3722";
+   reg = <0x40>;
+   interrupts = <0 86 IRQ_TYPE_LEVEL_HIGH>;
+
+   ams,system-power-controller;
+
+   #interrupt-cells = <2>;
+   interrupt-controller;
+
+   gpio-controller;
+   #gpio-cells = <2>;
+
+   pinctrl-names = "default";
+   pinctrl-0 = <_default>;
+
+   as3722_default: pinmux {
+   gpio0 {
+ 

Re: [U-Boot] [BUG] divide by 0 in spi flash probe

2016-08-29 Thread Chris Packham
On Tue, Aug 30, 2016 at 12:52 AM, Jagan Teki  wrote:
> On Mon, Aug 29, 2016 at 1:34 PM, Chris Packham  
> wrote:
>> On Mon, Aug 29, 2016 at 5:55 PM, Stefan Roese  wrote:
>>> Hi Chris,
>>>
>>> (added Tom to Cc)
>>>
>>> On 29.08.2016 07:49, Chris Packham wrote:

 I'm updating support for a board which uses the Armada-385 from u-boot
 v2016.05 to use the latest master (v2016.09-rc2 plus a bit).

 When I run "sf probe" I get a divide by 0 in mvebu_spi_set_speed
 because hz has made it through as 0.
>
> Did you find this for first 'sf probe' it self?
>

First "sf probe" command but internally a probe has already occurred
because the environment is in SPI.


 When I run saveenv (env is in SPI) I don't get the divide by 0.

 I'll do some more digging tomorrow but just thought I'd get this email
 off now in case it rings any bells for anyone.
>>>
>>>
>>> I've also stumbled over this issue last week. You (and everyone else)
>>> need this patch:
>>>
>>> https://patchwork.ozlabs.org/patch/659979/
>>>
>>> Jagan or Tom, please make sure that this patch gets added really soon.
>>> Its really annoying. As updating the image in SPI nor does not work
>>> without it.
>>>
>>
>> Thanks Stefan and Vignesh for pointing me at the fix. It works on my board.
>
> Just wondered why would this worked with the second time unbound fix.
>
> --
> Jagan Teki
> Free Software Engineer | www.openedev.com
> U-Boot, Linux | Upstream Maintainer
> Hyderabad, India.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v4 2/4] mx6ul_14x14_evk: Pass refsel and refr fields to avoid hang

2016-08-29 Thread Eric Nelson
Hi Fabio,

On 08/29/2016 04:37 PM, Fabio Estevam wrote:
> From: Fabio Estevam 
> 
> When running a NXP 4.1 kernel with U-Boot mainline on a mx6ul-evk,
> we observe a hang when going into the lowest operational point of cpufreq.
> 
> This hang issue does not happen on the NXP U-Boot version.
> 
> After comparing the SPL DDR initialization against the DCD table
> from NXP U-Boot, the key difference that causes the hang is the
> MDREF register setting:
> 
> DATA 4 0x021B0020 0x0800
> 
> ,which means:
> 
> REF_SEL = 0 --> Periodic refresh cycle: 64kHz
> REFR = 1 ---> Refresh Rate - 2 refreshes
> 
> So adjust the MDREF initialization for mx6ul_evk accordingly
> to fix the kernel hang issue at low bus frequency.
> 
> Reported-by: Eric Nelson 
> Signed-off-by: Fabio Estevam 
> ---
> Changes since v3:
> - Just adapt due to previous patch
> 
>  board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c 
> b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
> index 5e39108..2ca0921 100644
> --- a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
> +++ b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
> @@ -806,8 +806,8 @@ struct mx6_ddr_sysinfo ddr_sysinfo = {
>   .sde_to_rst = 0x10, /* 14 cycles, 200us (JEDEC default) */
>   .rst_to_cke = 0x23, /* 33 cycles, 500us (JEDEC default) */
>   .ddr_type = DDR_TYPE_DDR3,
> - .refsel = 1,/* Refresh cycles at 32KHz */
> - .refr = 7,  /* 8 refresh commands per refresh cycle */
> + .refsel = 0,/* Refresh cycles at 64KHz */
> + .refr = 1,  /* 2 refresh commands per refresh cycle */
>  };
>  
>  static struct mx6_ddr3_cfg mem_ddr = {
> 

Reviewed-by: Eric Nelson 

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v4 1/4] mx6: ddr: Allow changing REFSEL and REFR fields

2016-08-29 Thread Eric Nelson
Hi Fabio,

On 08/29/2016 04:37 PM, Fabio Estevam wrote:
> From: Fabio Estevam 
> 
> Currently MX6 SPL DDR initialization hardcodes the REF_SEL and
> REFR fields of the MDREF register as 1 and 7, respectively for
> DDR3 and 0 and 3 for LPDDR2.
> 
> Looking at the MDREF initialization done via DCD we see that
> boards do need to initialize these fields differently:
> 
> $ git grep 0x021b0020 board/
> board/bachmann/ot1200/mx6q_4x_mt41j128.cfg:DATA 4 0x021b0020 0x5800
> board/ccv/xpress/imximage.cfg:DATA 4 0x021b0020 0x0800 /* MMDC0_MDREF */
> board/freescale/mx6qarm2/imximage.cfg:DATA 4 0x021b0020 0x7800
> board/freescale/mx6qarm2/imximage.cfg:DATA 4 0x021b0020 0x5800
> board/freescale/mx6qarm2/imximage_mx6dl.cfg:DATA 4 0x021b0020 0x5800
> board/freescale/mx6qarm2/imximage_mx6dl.cfg:DATA 4 0x021b0020 0x5800
> board/freescale/mx6qsabreauto/imximage.cfg:DATA 4 0x021b0020 0x5800
> board/freescale/mx6qsabreauto/mx6dl.cfg:DATA 4 0x021b0020 0x5800
> board/freescale/mx6qsabreauto/mx6qp.cfg:DATA 4 0x021b0020 0x5800
> board/freescale/mx6sabresd/mx6dlsabresd.cfg:DATA 4  0x021b0020 0x5800
> board/freescale/mx6sabresd/mx6q_4x_mt41j128.cfg:DATA 4 0x021b0020 0x5800
> board/freescale/mx6slevk/imximage.cfg:DATA 4 0x021b0020 0x1800
> board/freescale/mx6sxsabreauto/imximage.cfg:DATA 4 0x021b0020 0x0800
> board/freescale/mx6sxsabresd/imximage.cfg:DATA 4 0x021b0020 0x0800
> board/warp/imximage.cfg:DATA 4 0x021b0020 0x1800
> 
> So introduce a mechanism for users to be able to configure
> REFSEL and REFR fields as needed.
> 
> Keep all the mx6 SPL users in their current REF_SEL and REFR values,
> so no functional changes for the existing users.
> 
> Signed-off-by: Fabio Estevam 
> ---
> Changes since v3:
> - Fix the logic for setting refsel/refr registers (Eric)
> 
>  arch/arm/cpu/armv7/mx6/ddr.c  | 6 ++
>  arch/arm/include/asm/arch-mx6/mx6-ddr.h   | 2 ++
>  board/bachmann/ot1200/ot1200_spl.c| 2 ++
>  board/barco/platinum/spl_picon.c  | 2 ++
>  board/barco/platinum/spl_titanium.c   | 2 ++
>  board/ccv/xpress/spl.c| 2 ++
>  board/compulab/cm_fx6/spl.c   | 4 
>  board/congatec/cgtqmx6eval/cgtqmx6eval.c  | 2 ++
>  board/el/el6x/el6x.c  | 2 ++
>  board/freescale/mx6sabresd/mx6sabresd.c   | 2 ++
>  board/freescale/mx6slevk/mx6slevk.c   | 2 ++
>  board/freescale/mx6sxsabresd/mx6sxsabresd.c   | 2 ++
>  board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 4 
>  board/gateworks/gw_ventana/gw_ventana_spl.c   | 2 ++
>  board/kosagi/novena/novena_spl.c  | 2 ++
>  board/phytec/pcm058/pcm058.c  | 2 ++
>  board/solidrun/mx6cuboxi/mx6cuboxi.c  | 2 ++
>  board/udoo/udoo_spl.c | 2 ++
>  board/wandboard/spl.c | 6 ++
>  19 files changed, 46 insertions(+), 4 deletions(-)
> 
> diff --git a/arch/arm/cpu/armv7/mx6/ddr.c b/arch/arm/cpu/armv7/mx6/ddr.c
> index f151eec..7beb7ea 100644
> --- a/arch/arm/cpu/armv7/mx6/ddr.c
> +++ b/arch/arm/cpu/armv7/mx6/ddr.c
> @@ -1166,8 +1166,7 @@ void mx6_lpddr2_cfg(const struct mx6_ddr_sysinfo 
> *sysinfo,
>   mmdc0->mpzqhwctrl = val;
>  
>   /* Step 12: Configure and activate periodic refresh */
> - mmdc0->mdref = (0 << 14) | /* REF_SEL: Periodic refresh cycle: 64kHz */
> -(3 << 11);  /* REFR: Refresh Rate - 4 refreshes */
> + mmdc0->mdref = (sysinfo->refsel << 14) | (sysinfo->refr << 11);
>  
>   /* Step 13: Deassert config request - init complete */
>   mmdc0->mdscr = 0x;
> @@ -1472,8 +1471,7 @@ void mx6_ddr3_cfg(const struct mx6_ddr_sysinfo *sysinfo,
>   MMDC1(mpzqhwctrl, val);
>  
>   /* Step 12: Configure and activate periodic refresh */
> - mmdc0->mdref = (1 << 14) | /* REF_SEL: Periodic refresh cycle: 32kHz */
> -(7 << 11);  /* REFR: Refresh Rate - 8 refreshes */
> + mmdc0->mdref = (sysinfo->refsel << 14) | (sysinfo->refr << 11);
>  
>   /* Step 13: Deassert config request - init complete */
>   mmdc0->mdscr = 0x;
> diff --git a/arch/arm/include/asm/arch-mx6/mx6-ddr.h 
> b/arch/arm/include/asm/arch-mx6/mx6-ddr.h
> index 12c30d2..9922409 100644
> --- a/arch/arm/include/asm/arch-mx6/mx6-ddr.h
> +++ b/arch/arm/include/asm/arch-mx6/mx6-ddr.h
> @@ -408,6 +408,8 @@ struct mx6_ddr_sysinfo {
>   u8 sde_to_rst;  /* Time from SDE enable until DDR reset# is high */
>   u8 pd_fast_exit;/* enable precharge powerdown fast-exit */
>   u8 ddr_type;/* DDR type: DDR3(0) or LPDDR2(1) */
> + u8 refsel;  /* REF_SEL field of register MDREF */
> + u8 refr;/* REFR field of register MDREF */
>  };
>  
>  /*
> diff --git a/board/bachmann/ot1200/ot1200_spl.c 
> 

Re: [U-Boot] [PATCH v4 3/4] mx6ul_14x14_evk: Adjust SPL DDR3 settings

2016-08-29 Thread Eric Nelson
Hi Fabio,

On 08/29/2016 04:37 PM, Fabio Estevam wrote:
> From: Fabio Estevam 
> 
> Adjust DDR3 initialization done in SPL by comparing them against
> the NXP DCD table.
> 
> Signed-off-by: Fabio Estevam 
> ---
> Changes since v3:
> - None
> 
>  board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 14 +++---
>  1 file changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c 
> b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
> index 2ca0921..9243ec5 100644
> --- a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
> +++ b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
> @@ -779,17 +779,17 @@ static struct mx6ul_iomux_ddr_regs mx6_ddr_ioregs = {
>   .dram_odt0 = 0x0030,
>   .dram_odt1 = 0x0030,
>   .dram_sdba2 = 0x,
> - .dram_sdclk_0 = 0x0008,
> - .dram_sdqs0 = 0x0038,
> + .dram_sdclk_0 = 0x0030,
> + .dram_sdqs0 = 0x0030,
>   .dram_sdqs1 = 0x0030,
>   .dram_reset = 0x0030,
>  };
>  
>  static struct mx6_mmdc_calibration mx6_mmcd_calib = {
> - .p0_mpwldectrl0 = 0x00070007,
> - .p0_mpdgctrl0 = 0x41490145,
> - .p0_mprddlctl = 0x40404546,
> - .p0_mpwrdlctl = 0x4040524D,

Hmmm. I don't think I've ever seen a value of zero for dectrl0,
but it does match the DCD.

When time permits, I'll try running the DDR stress tool on my
EVK and also see what it takes to get the mx6memcal rig to
run on the 6UL.

> + .p0_mpwldectrl0 = 0x,
> + .p0_mpdgctrl0 = 0x41570155,
> + .p0_mprddlctl = 0x4040474A,
> + .p0_mpwrdlctl = 0x40405550,
>  };
>  
>  struct mx6_ddr_sysinfo ddr_sysinfo = {
> @@ -799,7 +799,7 @@ struct mx6_ddr_sysinfo ddr_sysinfo = {
>   .cs1_mirror = 0,
>   .rtt_wr = 2,
>   .rtt_nom = 1,   /* RTT_Nom = RZQ/2 */
> - .walat = 1, /* Write additional latency */
> + .walat = 0, /* Write additional latency */
>   .ralat = 5, /* Read additional latency */
>   .mif3_mode = 3, /* Command prediction working mode */
>   .bi_on = 1, /* Bank interleaving enabled */
> 

Reviewed-by: Eric Nelson 
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 35/44] Convert CONFIG_SPL_POWER_SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
Move this option to Kconfig and tidy up existing uses.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 arch/arm/cpu/armv7/omap3/Kconfig   | 3 +++
 arch/arm/cpu/armv7/omap4/Kconfig   | 3 +++
 arch/arm/cpu/armv7/omap5/Kconfig   | 3 +++
 board/sunxi/Kconfig| 3 +++
 board/ti/common/Kconfig| 3 +++
 configs/am335x_baltos_defconfig| 3 ++-
 configs/am335x_evm_defconfig   | 1 -
 configs/am335x_evm_nor_defconfig   | 1 -
 configs/am335x_evm_usbspl_defconfig| 1 -
 configs/am335x_igep0033_defconfig  | 3 ++-
 configs/am335x_shc_defconfig   | 1 +
 configs/am335x_shc_ict_defconfig   | 1 +
 configs/am335x_shc_netboot_defconfig   | 1 +
 configs/am335x_shc_prompt_defconfig| 1 +
 configs/am335x_shc_sdboot_defconfig| 1 +
 configs/am335x_shc_sdboot_prompt_defconfig | 1 +
 configs/am335x_sl50_defconfig  | 1 +
 configs/am3517_evm_defconfig   | 1 -
 configs/am43xx_evm_defconfig   | 1 -
 configs/am43xx_evm_ethboot_defconfig   | 1 -
 configs/am43xx_evm_usbhost_boot_defconfig  | 1 -
 configs/am43xx_hs_evm_defconfig| 1 -
 configs/birdland_bav335a_defconfig | 1 +
 configs/birdland_bav335b_defconfig | 1 +
 configs/brppt1_mmc_defconfig   | 1 +
 configs/brppt1_nand_defconfig  | 3 ++-
 configs/brppt1_spi_defconfig   | 1 +
 configs/brxre1_defconfig   | 1 +
 configs/cairo_defconfig| 1 -
 configs/chromebook_jerry_defconfig | 1 +
 configs/cm_t335_defconfig  | 3 ++-
 configs/cm_t43_defconfig   | 1 +
 configs/gwventana_defconfig| 1 +
 configs/igep0020_defconfig | 1 -
 configs/igep0030_defconfig | 1 -
 configs/igep0030_nand_defconfig| 1 -
 configs/igep0032_defconfig | 1 -
 configs/k2e_evm_defconfig  | 1 +
 configs/k2g_evm_defconfig  | 1 +
 configs/k2hk_evm_defconfig | 1 +
 configs/k2l_evm_defconfig  | 1 +
 configs/omap3_beagle_defconfig | 1 -
 configs/omap3_logic_defconfig  | 1 -
 configs/omap3_overo_defconfig  | 1 -
 configs/pcm051_rev1_defconfig  | 1 +
 configs/pcm051_rev3_defconfig  | 1 +
 configs/pengwyn_defconfig  | 3 ++-
 configs/pepper_defconfig   | 1 +
 include/configs/am335x_evm.h   | 1 -
 include/configs/am335x_shc.h   | 1 -
 include/configs/am335x_sl50.h  | 1 -
 include/configs/am3517_crane.h | 1 -
 include/configs/am3517_evm.h   | 1 -
 include/configs/am43xx_evm.h   | 1 -
 include/configs/baltos.h   | 1 -
 include/configs/bav335x.h  | 1 -
 include/configs/bur_am335x_common.h| 1 -
 include/configs/chromebook_jerry.h | 2 --
 include/configs/cm_t35.h   | 1 -
 include/configs/cm_t43.h   | 2 --
 include/configs/gw_ventana.h   | 1 -
 include/configs/kc1.h  | 1 -
 include/configs/mcx.h  | 1 -
 include/configs/omap3_evm.h| 1 -
 include/configs/pengwyn.h  | 1 -
 include/configs/sniper.h   | 1 -
 include/configs/sunxi-common.h | 1 -
 include/configs/tam3517-common.h   | 1 -
 include/configs/tao3530.h  | 1 -
 include/configs/ti_armv7_common.h  | 1 -
 include/configs/ti_omap3_common.h  | 1 -
 include/configs/tricorder.h| 1 -
 72 files changed, 47 insertions(+), 47 deletions(-)

diff --git a/arch/arm/cpu/armv7/omap3/Kconfig b/arch/arm/cpu/armv7/omap3/Kconfig
index 98056b1..5cb6b81 100644
--- a/arch/arm/cpu/armv7/omap3/Kconfig
+++ b/arch/arm/cpu/armv7/omap3/Kconfig
@@ -27,6 +27,9 @@ config SPL_MMC_SUPPORT
 config SPL_NAND_SUPPORT
default y
 
+config SPL_POWER_SUPPORT
+   default y
+
 choice
prompt "OMAP3 board select"
optional
diff --git a/arch/arm/cpu/armv7/omap4/Kconfig b/arch/arm/cpu/armv7/omap4/Kconfig
index 15287af..f24be67 100644
--- a/arch/arm/cpu/armv7/omap4/Kconfig
+++ b/arch/arm/cpu/armv7/omap4/Kconfig
@@ -27,6 +27,9 @@ config SPL_MMC_SUPPORT
 config SPL_NAND_SUPPORT
default y
 
+config SPL_POWER_SUPPORT
+   default y
+
 choice
prompt "OMAP4 board select"
optional
diff --git a/arch/arm/cpu/armv7/omap5/Kconfig b/arch/arm/cpu/armv7/omap5/Kconfig
index 3186202..b8e9fe2 100644
--- a/arch/arm/cpu/armv7/omap5/Kconfig
+++ b/arch/arm/cpu/armv7/omap5/Kconfig
@@ -27,6 +27,9 @@ config SPL_MMC_SUPPORT
 config SPL_NAND_SUPPORT
default y
 
+config SPL_POWER_SUPPORT
+   default y
+
 choice
prompt "OMAP5 board select"
optional
diff --git a/board/sunxi/Kconfig 

[U-Boot] [PATCH v2 26/44] Convert CONFIG_SPL_MMC_SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
Move this option to Kconfig and tidy up existing uses.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 arch/arm/cpu/armv7/omap3/Kconfig| 3 +++
 arch/arm/cpu/armv7/omap4/Kconfig| 3 +++
 arch/arm/cpu/armv7/omap5/Kconfig| 3 +++
 arch/arm/cpu/armv8/zynqmp/Kconfig   | 3 +++
 arch/arm/mach-rockchip/rk3288/Kconfig   | 3 +++
 arch/arm/mach-socfpga/Kconfig   | 3 +++
 arch/arm/mach-uniphier/Kconfig  | 3 +++
 arch/arm/mach-zynq/Kconfig  | 3 +++
 board/sunxi/Kconfig | 3 +++
 board/ti/common/Kconfig | 3 +++
 configs/CHIP_defconfig  | 1 +
 configs/P1010RDB-PA_36BIT_SDCARD_defconfig  | 1 +
 configs/P1010RDB-PA_SDCARD_defconfig| 1 +
 configs/P1010RDB-PB_36BIT_SDCARD_defconfig  | 1 +
 configs/P1010RDB-PB_SDCARD_defconfig| 1 +
 configs/P1020MBG-PC_36BIT_SDCARD_defconfig  | 1 +
 configs/P1020MBG-PC_SDCARD_defconfig| 1 +
 configs/P1020RDB-PC_36BIT_SDCARD_defconfig  | 1 +
 configs/P1020RDB-PC_SDCARD_defconfig| 1 +
 configs/P1020RDB-PD_SDCARD_defconfig| 1 +
 configs/P1020UTM-PC_36BIT_SDCARD_defconfig  | 1 +
 configs/P1020UTM-PC_SDCARD_defconfig| 1 +
 configs/P1021RDB-PC_36BIT_SDCARD_defconfig  | 1 +
 configs/P1021RDB-PC_SDCARD_defconfig| 1 +
 configs/P1022DS_36BIT_SDCARD_defconfig  | 1 +
 configs/P1022DS_SDCARD_defconfig| 1 +
 configs/P1024RDB_SDCARD_defconfig   | 1 +
 configs/P1025RDB_SDCARD_defconfig   | 1 +
 configs/P2020RDB-PC_36BIT_SDCARD_defconfig  | 1 +
 configs/P2020RDB-PC_SDCARD_defconfig| 1 +
 configs/T1023RDB_SDCARD_defconfig   | 1 +
 configs/T1024QDS_SDCARD_defconfig   | 1 +
 configs/T1024RDB_SDCARD_defconfig   | 1 +
 configs/T1040D4RDB_SDCARD_defconfig | 1 +
 configs/T1040RDB_SDCARD_defconfig   | 1 +
 configs/T1042D4RDB_SDCARD_defconfig | 1 +
 configs/T1042RDB_PI_SDCARD_defconfig| 1 +
 configs/T2080QDS_SDCARD_defconfig   | 1 +
 configs/T2080RDB_SDCARD_defconfig   | 1 +
 configs/T2081QDS_SDCARD_defconfig   | 1 +
 configs/T4160QDS_SDCARD_defconfig   | 1 +
 configs/T4240QDS_SDCARD_defconfig   | 1 +
 configs/T4240RDB_SDCARD_defconfig   | 1 +
 configs/am335x_baltos_defconfig | 1 +
 configs/am335x_igep0033_defconfig   | 1 +
 configs/am335x_shc_defconfig| 1 +
 configs/am335x_shc_ict_defconfig| 1 +
 configs/am335x_shc_netboot_defconfig| 1 +
 configs/am335x_shc_prompt_defconfig | 1 +
 configs/am335x_shc_sdboot_defconfig | 1 +
 configs/am335x_shc_sdboot_prompt_defconfig  | 1 +
 configs/am335x_sl50_defconfig   | 1 +
 configs/at91sam9m10g45ek_mmc_defconfig  | 1 +
 configs/birdland_bav335a_defconfig  | 1 +
 configs/birdland_bav335b_defconfig  | 1 +
 configs/brppt1_mmc_defconfig| 1 +
 configs/brppt1_spi_defconfig| 1 +
 configs/brxre1_defconfig| 1 +
 configs/cgtqmx6eval_defconfig   | 1 +
 configs/clearfog_defconfig  | 1 +
 configs/cm_fx6_defconfig| 1 +
 configs/cm_t335_defconfig   | 1 +
 configs/cm_t43_defconfig| 1 +
 configs/draco_defconfig | 1 +
 configs/etamin_defconfig| 1 +
 configs/gwventana_defconfig | 1 +
 configs/ls1021aqds_sdcard_ifc_defconfig | 1 +
 configs/ls1021aqds_sdcard_qspi_defconfig| 1 +
 configs/ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig | 1 +
 configs/ls1021atwr_sdcard_ifc_defconfig | 1 +
 configs/ls1021atwr_sdcard_qspi_defconfig| 1 +
 configs/ls1043aqds_sdcard_ifc_defconfig | 1 +
 configs/ls1043aqds_sdcard_qspi_defconfig| 1 +
 configs/ls1043ardb_sdcard_defconfig | 1 +
 configs/mx6cuboxi_defconfig | 1 +
 configs/mx6sabresd_spl_defconfig| 1 +
 configs/mx6slevk_spl_defconfig  | 1 +
 configs/mx6sxsabresd_spl_defconfig  | 1 +
 configs/mx6ul_14x14_evk_defconfig   | 1 +
 configs/mx6ul_9x9_evk_defconfig | 1 +
 configs/novena_defconfig| 1 +
 configs/pcm051_rev1_defconfig   | 1 +
 

[U-Boot] [PATCH v2 44/44] Convert CONFIG_SPL_YMODEM_SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
Move this option to Kconfig and tidy up existing uses.

Signed-off-by: Simon Glass 
---

Changes in v2:
- Lots of work to make use of common values across multiple boards
- Added a patch to change 'spear' CONFIGs to upper case

 board/ti/am335x/Kconfig| 3 +++
 configs/am335x_baltos_defconfig| 1 +
 configs/am335x_igep0033_defconfig  | 1 +
 configs/am335x_shc_defconfig   | 1 +
 configs/am335x_shc_ict_defconfig   | 1 +
 configs/am335x_shc_netboot_defconfig   | 1 +
 configs/am335x_shc_prompt_defconfig| 1 +
 configs/am335x_shc_sdboot_defconfig| 1 +
 configs/am335x_shc_sdboot_prompt_defconfig | 1 +
 configs/am335x_sl50_defconfig  | 1 +
 configs/am43xx_evm_defconfig   | 1 +
 configs/am43xx_evm_ethboot_defconfig   | 1 +
 configs/am43xx_evm_usbhost_boot_defconfig  | 1 +
 configs/am43xx_hs_evm_defconfig| 1 +
 configs/birdland_bav335a_defconfig | 1 +
 configs/birdland_bav335b_defconfig | 1 +
 configs/brppt1_mmc_defconfig   | 1 +
 configs/brppt1_nand_defconfig  | 1 +
 configs/brppt1_spi_defconfig   | 1 +
 configs/brxre1_defconfig   | 1 +
 configs/draco_defconfig| 1 +
 configs/etamin_defconfig   | 1 +
 configs/pcm051_rev1_defconfig  | 1 +
 configs/pcm051_rev3_defconfig  | 1 +
 configs/pcm058_defconfig   | 1 +
 configs/pengwyn_defconfig  | 1 +
 configs/pxm2_defconfig | 1 +
 configs/rastaban_defconfig | 1 +
 configs/rut_defconfig  | 1 +
 configs/thuban_defconfig   | 1 +
 configs/ti814x_evm_defconfig   | 1 +
 configs/ti816x_evm_defconfig   | 1 +
 include/configs/am335x_evm.h   | 3 ---
 include/configs/am335x_igep0033.h  | 1 -
 include/configs/am335x_shc.h   | 1 -
 include/configs/am335x_sl50.h  | 2 --
 include/configs/am43xx_evm.h   | 1 -
 include/configs/baltos.h   | 2 --
 include/configs/bav335x.h  | 2 --
 include/configs/bur_am335x_common.h| 1 -
 include/configs/pcm051.h   | 1 -
 include/configs/pcm058.h   | 1 -
 include/configs/pengwyn.h  | 1 -
 include/configs/siemens-am33x-common.h | 2 --
 include/configs/ti814x_evm.h   | 1 -
 include/configs/ti816x_evm.h   | 1 -
 46 files changed, 34 insertions(+), 20 deletions(-)

diff --git a/board/ti/am335x/Kconfig b/board/ti/am335x/Kconfig
index 753d652..a84e91b 100644
--- a/board/ti/am335x/Kconfig
+++ b/board/ti/am335x/Kconfig
@@ -6,6 +6,9 @@ config SPL_ENV_SUPPORT
 config SPL_WATCHDOG_SUPPORT
default y
 
+config SPL_YMODEM_SUPPORT
+   default y
+
 config SYS_BOARD
default "am335x"
 
diff --git a/configs/am335x_baltos_defconfig b/configs/am335x_baltos_defconfig
index 931bd37..77eb014 100644
--- a/configs/am335x_baltos_defconfig
+++ b/configs/am335x_baltos_defconfig
@@ -13,6 +13,7 @@ CONFIG_SPL_POWER_SUPPORT=y
 CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_WATCHDOG_SUPPORT=y
 CONFIG_SPL_STACK_R_ADDR=0x8200
+CONFIG_SPL_YMODEM_SUPPORT=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
diff --git a/configs/am335x_igep0033_defconfig 
b/configs/am335x_igep0033_defconfig
index 7ff11d6..5f9c373 100644
--- a/configs/am335x_igep0033_defconfig
+++ b/configs/am335x_igep0033_defconfig
@@ -13,6 +13,7 @@ CONFIG_SPL_POWER_SUPPORT=y
 CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_WATCHDOG_SUPPORT=y
 CONFIG_SPL_STACK_R_ADDR=0x8200
+CONFIG_SPL_YMODEM_SUPPORT=y
 CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
 CONFIG_SPL_MTD_SUPPORT=y
diff --git a/configs/am335x_shc_defconfig b/configs/am335x_shc_defconfig
index 774d520..0252a45 100644
--- a/configs/am335x_shc_defconfig
+++ b/configs/am335x_shc_defconfig
@@ -13,6 +13,7 @@ CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_WATCHDOG_SUPPORT=y
 CONFIG_SERIES=y
 CONFIG_SPL_STACK_R_ADDR=0x8200
+CONFIG_SPL_YMODEM_SUPPORT=y
 CONFIG_FIT=y
 CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
diff --git a/configs/am335x_shc_ict_defconfig b/configs/am335x_shc_ict_defconfig
index d90381a..28c8134 100644
--- a/configs/am335x_shc_ict_defconfig
+++ b/configs/am335x_shc_ict_defconfig
@@ -14,6 +14,7 @@ CONFIG_SPL_WATCHDOG_SUPPORT=y
 CONFIG_SHC_ICT=y
 CONFIG_SERIES=y
 CONFIG_SPL_STACK_R_ADDR=0x8200
+CONFIG_SPL_YMODEM_SUPPORT=y
 CONFIG_FIT=y
 CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
diff --git a/configs/am335x_shc_netboot_defconfig 
b/configs/am335x_shc_netboot_defconfig
index a0ad39a..8c85d7c 100644
--- a/configs/am335x_shc_netboot_defconfig
+++ b/configs/am335x_shc_netboot_defconfig
@@ -15,6 +15,7 @@ CONFIG_SPL_WATCHDOG_SUPPORT=y
 CONFIG_SHC_NETBOOT=y
 CONFIG_SERIES=y
 CONFIG_SPL_STACK_R_ADDR=0x8200
+CONFIG_SPL_YMODEM_SUPPORT=y
 CONFIG_FIT=y
 CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
diff --git 

[U-Boot] [PATCH v2 38/44] Convert CONFIG_SPL_SPI_FLASH_SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
Move this option to Kconfig and tidy up existing uses.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 arch/arm/cpu/armv8/zynqmp/Kconfig| 3 +++
 arch/arm/mach-socfpga/Kconfig| 3 +++
 arch/arm/mach-zynq/Kconfig   | 3 +++
 configs/P1010RDB-PA_36BIT_SPIFLASH_defconfig | 1 +
 configs/P1010RDB-PA_SPIFLASH_defconfig   | 1 +
 configs/P1010RDB-PB_36BIT_SPIFLASH_defconfig | 1 +
 configs/P1010RDB-PB_SPIFLASH_defconfig   | 1 +
 configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig | 1 +
 configs/P1020RDB-PC_SPIFLASH_defconfig   | 1 +
 configs/P1020RDB-PD_SPIFLASH_defconfig   | 1 +
 configs/P1021RDB-PC_36BIT_SPIFLASH_defconfig | 1 +
 configs/P1021RDB-PC_SPIFLASH_defconfig   | 1 +
 configs/P1022DS_36BIT_SPIFLASH_defconfig | 1 +
 configs/P1022DS_SPIFLASH_defconfig   | 1 +
 configs/P1024RDB_SPIFLASH_defconfig  | 1 +
 configs/P1025RDB_SPIFLASH_defconfig  | 1 +
 configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig | 1 +
 configs/P2020RDB-PC_SPIFLASH_defconfig   | 1 +
 configs/T1023RDB_SPIFLASH_defconfig  | 1 +
 configs/T1024QDS_SPIFLASH_defconfig  | 1 +
 configs/T1024RDB_SPIFLASH_defconfig  | 1 +
 configs/T1040D4RDB_SPIFLASH_defconfig| 1 +
 configs/T1040RDB_SPIFLASH_defconfig  | 1 +
 configs/T1042D4RDB_SPIFLASH_defconfig| 1 +
 configs/T1042RDB_PI_SPIFLASH_defconfig   | 1 +
 configs/T2080QDS_SPIFLASH_defconfig  | 1 +
 configs/T2080RDB_SPIFLASH_defconfig  | 1 +
 configs/T2081QDS_SPIFLASH_defconfig  | 1 +
 configs/am335x_evm_spiboot_defconfig | 1 +
 configs/am57xx_evm_defconfig | 1 +
 configs/am57xx_evm_nodt_defconfig| 1 +
 configs/am57xx_hs_evm_defconfig  | 1 +
 configs/at91sam9n12ek_spiflash_defconfig | 1 +
 configs/at91sam9x5ek_spiflash_defconfig  | 1 +
 configs/axm_defconfig| 1 +
 configs/brppt1_spi_defconfig | 1 +
 configs/cgtqmx6eval_defconfig| 1 +
 configs/chromebook_jerry_defconfig   | 1 +
 configs/cm_fx6_defconfig | 1 +
 configs/cm_t43_defconfig | 1 +
 configs/da850_am18xxevm_defconfig| 1 +
 configs/da850evm_defconfig   | 1 +
 configs/db-88f6720_defconfig | 1 +
 configs/db-88f6820-gp_defconfig  | 1 +
 configs/db-mv784mp-gp_defconfig  | 1 +
 configs/dra7xx_evm_defconfig | 1 +
 configs/dra7xx_hs_evm_defconfig  | 1 +
 configs/draco_defconfig  | 1 +
 configs/ds414_defconfig  | 1 +
 configs/etamin_defconfig | 1 +
 configs/k2e_evm_defconfig| 1 +
 configs/k2g_evm_defconfig| 1 +
 configs/k2hk_evm_defconfig   | 1 +
 configs/k2l_evm_defconfig| 1 +
 configs/ma5d4evk_defconfig   | 1 +
 configs/maxbcm_defconfig | 1 +
 configs/ot1200_spl_defconfig | 1 +
 configs/pcm058_defconfig | 1 +
 configs/pxm2_defconfig   | 1 +
 configs/rastaban_defconfig   | 1 +
 configs/rut_defconfig| 1 +
 configs/sama5d2_ptc_spiflash_defconfig   | 1 +
 configs/sama5d2_xplained_spiflash_defconfig  | 1 +
 configs/sama5d3xek_spiflash_defconfig| 1 +
 configs/sama5d4_xplained_spiflash_defconfig  | 1 +
 configs/sama5d4ek_spiflash_defconfig | 1 +
 configs/taurus_defconfig | 1 +
 configs/theadorable_debug_defconfig  | 1 +
 configs/theadorable_defconfig| 1 +
 configs/thuban_defconfig | 1 +
 configs/zc5202_defconfig | 1 +
 configs/zc5601_defconfig | 1 +
 include/configs/P1010RDB.h   | 1 -
 include/configs/P1022DS.h| 1 -
 include/configs/T102xQDS.h   | 1 -
 include/configs/T102xRDB.h   | 1 -
 include/configs/T104xRDB.h   | 1 -
 include/configs/T208xQDS.h   | 1 -
 include/configs/T208xRDB.h   | 1 -
 include/configs/am335x_evm.h | 1 -
 include/configs/am57xx_evm.h | 1 -
 include/configs/at91sam9n12ek.h  | 1 -
 include/configs/at91sam9x5ek.h   | 1 -
 include/configs/bav335x.h| 1 -
 include/configs/brppt1.h | 1 -
 include/configs/cgtqmx6eval.h| 1 -
 include/configs/chromebook_jerry.h   | 1 -
 include/configs/clearfog.h   | 1 -
 include/configs/cm_fx6.h | 1 -
 include/configs/cm_t43.h | 1 -
 include/configs/da850evm.h   | 2 --
 include/configs/db-88f6720.h | 1 -
 include/configs/db-88f6820-gp.h  | 1 -
 

[U-Boot] [PATCH v2 42/44] Convert CONFIG_SPL_USB_SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
Move this option to Kconfig and tidy up existing uses.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 configs/am43xx_evm_usbhost_boot_defconfig | 1 +
 include/configs/am43xx_evm.h  | 3 ---
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/configs/am43xx_evm_usbhost_boot_defconfig 
b/configs/am43xx_evm_usbhost_boot_defconfig
index 7b0..73b2a70 100644
--- a/configs/am43xx_evm_usbhost_boot_defconfig
+++ b/configs/am43xx_evm_usbhost_boot_defconfig
@@ -13,6 +13,7 @@ CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
 CONFIG_SPL_MTD_SUPPORT=y
 CONFIG_SPL_USB_HOST_SUPPORT=y
+CONFIG_SPL_USB_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/include/configs/am43xx_evm.h b/include/configs/am43xx_evm.h
index 9f33beb..552060f 100644
--- a/include/configs/am43xx_evm.h
+++ b/include/configs/am43xx_evm.h
@@ -91,9 +91,6 @@
 #define CONFIG_SPL_LDSCRIPT"$(CPUDIR)/omap-common/u-boot-spl.lds"
 
 /* SPL USB Support */
-#ifdef CONFIG_SPL_USB_HOST_SUPPORT
-#define CONFIG_SPL_USB_SUPPORT
-#endif
 
 #if defined(CONFIG_SPL_USB_HOST_SUPPORT) || !defined(CONFIG_SPL_BUILD)
 #define CONFIG_SYS_USB_FAT_BOOT_PARTITION  1
-- 
2.8.0.rc3.226.g39d4020

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 43/44] Convert CONFIG_SPL_WATCHDOG_SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
Move this option to Kconfig and tidy up existing uses.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 arch/arm/Kconfig| 1 +
 arch/arm/mach-socfpga/Kconfig   | 3 +++
 board/ti/am335x/Kconfig | 3 +++
 configs/am335x_baltos_defconfig | 1 +
 configs/am335x_igep0033_defconfig   | 1 +
 configs/am335x_shc_defconfig| 1 +
 configs/am335x_shc_ict_defconfig| 1 +
 configs/am335x_shc_netboot_defconfig| 1 +
 configs/am335x_shc_prompt_defconfig | 1 +
 configs/am335x_shc_sdboot_defconfig | 1 +
 configs/am335x_shc_sdboot_prompt_defconfig  | 1 +
 configs/am335x_sl50_defconfig   | 1 +
 configs/birdland_bav335a_defconfig  | 1 +
 configs/birdland_bav335b_defconfig  | 1 +
 configs/brppt1_mmc_defconfig| 1 +
 configs/brppt1_nand_defconfig   | 1 +
 configs/brppt1_spi_defconfig| 1 +
 configs/cgtqmx6eval_defconfig   | 1 +
 configs/cm_fx6_defconfig| 1 +
 configs/cm_t335_defconfig   | 1 +
 configs/draco_defconfig | 1 +
 configs/etamin_defconfig| 1 +
 configs/gwventana_defconfig | 1 +
 configs/ls1021aqds_nand_defconfig   | 1 +
 configs/ls1021aqds_sdcard_ifc_defconfig | 1 +
 configs/ls1021aqds_sdcard_qspi_defconfig| 1 +
 configs/ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig | 1 +
 configs/ls1021atwr_sdcard_ifc_defconfig | 1 +
 configs/ls1021atwr_sdcard_qspi_defconfig| 1 +
 configs/ls1043aqds_nand_defconfig   | 1 +
 configs/ls1043aqds_sdcard_ifc_defconfig | 1 +
 configs/ls1043aqds_sdcard_qspi_defconfig| 1 +
 configs/ls1043ardb_nand_defconfig   | 1 +
 configs/ls1043ardb_sdcard_defconfig | 1 +
 configs/mx6cuboxi_defconfig | 1 +
 configs/mx6sabresd_spl_defconfig| 1 +
 configs/mx6slevk_spl_defconfig  | 1 +
 configs/mx6sxsabresd_spl_defconfig  | 1 +
 configs/mx6ul_14x14_evk_defconfig   | 1 +
 configs/mx6ul_9x9_evk_defconfig | 1 +
 configs/novena_defconfig| 1 +
 configs/ot1200_spl_defconfig| 1 +
 configs/pcm051_rev1_defconfig   | 1 +
 configs/pcm051_rev3_defconfig   | 1 +
 configs/pcm058_defconfig| 1 +
 configs/pengwyn_defconfig   | 1 +
 configs/pepper_defconfig| 1 +
 configs/picosam9g45_defconfig   | 1 +
 configs/platinum_picon_defconfig| 1 +
 configs/platinum_titanium_defconfig | 1 +
 configs/pxm2_defconfig  | 1 +
 configs/rastaban_defconfig  | 1 +
 configs/rut_defconfig   | 1 +
 configs/thuban_defconfig| 1 +
 configs/udoo_defconfig  | 1 +
 configs/wandboard_defconfig | 1 +
 configs/xpress_spl_defconfig| 1 +
 configs/zc5202_defconfig| 1 +
 configs/zc5601_defconfig| 1 +
 include/configs/brppt1.h| 1 -
 include/configs/imx6_spl.h  | 1 -
 include/configs/ls1021aqds.h| 2 --
 include/configs/ls1021atwr.h| 1 -
 include/configs/ls1043a_common.h| 2 --
 include/configs/picosam9g45.h   | 2 --
 include/configs/siemens-am33x-common.h  | 2 --
 include/configs/socfpga_common.h| 2 --
 include/configs/ti_am335x_common.h  | 1 -
 68 files changed, 63 insertions(+), 14 deletions(-)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index aef901c..1203e1d 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -790,6 +790,7 @@ config TARGET_LS1021AQDS
bool "Support ls1021aqds"
select CPU_V7
select SUPPORT_SPL
+
 config TARGET_LS1021ATWR
bool "Support ls1021atwr"
select CPU_V7
diff --git a/arch/arm/mach-socfpga/Kconfig b/arch/arm/mach-socfpga/Kconfig
index e2bbe14..5dfc200 100644
--- a/arch/arm/mach-socfpga/Kconfig
+++ b/arch/arm/mach-socfpga/Kconfig
@@ -24,6 +24,9 @@ config SPL_SPI_FLASH_SUPPORT
 config SPL_SPI_SUPPORT
default y
 
+config SPL_WATCHDOG_SUPPORT
+   default y
+
 config TARGET_SOCFPGA_ARRIA5
bool
select TARGET_SOCFPGA_GEN5
diff --git a/board/ti/am335x/Kconfig b/board/ti/am335x/Kconfig

[U-Boot] [PATCH v2 41/44] Convert CONFIG_SPL_USB_HOST_SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
Move this option to Kconfig and tidy up existing uses.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 configs/am43xx_evm_usbhost_boot_defconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configs/am43xx_evm_usbhost_boot_defconfig 
b/configs/am43xx_evm_usbhost_boot_defconfig
index 249460a..7b0 100644
--- a/configs/am43xx_evm_usbhost_boot_defconfig
+++ b/configs/am43xx_evm_usbhost_boot_defconfig
@@ -7,11 +7,12 @@ CONFIG_DM_GPIO=y
 CONFIG_DM_SERIAL=y
 CONFIG_DEFAULT_DEVICE_TREE="am437x-gp-evm"
 CONFIG_FIT=y
-CONFIG_SYS_EXTRA_OPTIONS="SERIAL1,CONS_INDEX=1,NAND,SPL_USB_HOST_SUPPORT"
+CONFIG_SYS_EXTRA_OPTIONS="SERIAL1,CONS_INDEX=1,NAND"
 CONFIG_SPL_LOAD_FIT=y
 CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
 CONFIG_SPL_MTD_SUPPORT=y
+CONFIG_SPL_USB_HOST_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
-- 
2.8.0.rc3.226.g39d4020

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 36/44] Convert CONFIG_SPL_SATA_SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
Move this option to Kconfig and tidy up existing uses.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 configs/cm_t54_defconfig | 1 +
 include/configs/cm_t54.h | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/configs/cm_t54_defconfig b/configs/cm_t54_defconfig
index d333ea1..788b9e4 100644
--- a/configs/cm_t54_defconfig
+++ b/configs/cm_t54_defconfig
@@ -4,6 +4,7 @@ CONFIG_TARGET_CM_T54=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_BOOTDELAY=3
 CONFIG_SPL=y
+CONFIG_SPL_SATA_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_SYS_PROMPT="CM-T54 # "
 CONFIG_CMD_BOOTZ=y
diff --git a/include/configs/cm_t54.h b/include/configs/cm_t54.h
index 8e9444e..d02116c 100644
--- a/include/configs/cm_t54.h
+++ b/include/configs/cm_t54.h
@@ -56,7 +56,6 @@
 #define CONFIG_SUPPORT_EMMC_BOOT
 
 /* SATA Boot related defines */
-#define CONFIG_SPL_SATA_SUPPORT
 #define CONFIG_SPL_SATA_BOOT_DEVICE0
 #define CONFIG_SYS_SATA_FAT_BOOT_PARTITION 1
 
-- 
2.8.0.rc3.226.g39d4020

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 34/44] Convert CONFIG_SPL_PINCTRL_SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
Move this option to Kconfig and tidy up existing uses.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 configs/chromebook_jerry_defconfig | 1 +
 configs/evb-rk3288_defconfig   | 1 +
 configs/fennec-rk3288_defconfig| 1 +
 configs/firefly-rk3288_defconfig   | 1 +
 configs/miniarm-rk3288_defconfig   | 1 +
 configs/popmetal-rk3288_defconfig  | 1 +
 configs/rock2_defconfig| 1 +
 include/configs/rk3288_common.h| 2 --
 8 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/configs/chromebook_jerry_defconfig 
b/configs/chromebook_jerry_defconfig
index e4fcb07..cb89fd8 100644
--- a/configs/chromebook_jerry_defconfig
+++ b/configs/chromebook_jerry_defconfig
@@ -10,6 +10,7 @@ CONFIG_DM_KEYBOARD=y
 CONFIG_DEFAULT_DEVICE_TREE="rk3288-jerry"
 CONFIG_SPL_STACK_R=y
 CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x2000
+CONFIG_SPL_PINCTRL_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/evb-rk3288_defconfig b/configs/evb-rk3288_defconfig
index c7396a5..3e464fc 100644
--- a/configs/evb-rk3288_defconfig
+++ b/configs/evb-rk3288_defconfig
@@ -7,6 +7,7 @@ CONFIG_SPL_STACK_R_ADDR=0x8
 CONFIG_DEFAULT_DEVICE_TREE="rk3288-evb"
 CONFIG_SPL_STACK_R=y
 CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x2000
+CONFIG_SPL_PINCTRL_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/fennec-rk3288_defconfig b/configs/fennec-rk3288_defconfig
index a5c089b..2e6cdc0 100644
--- a/configs/fennec-rk3288_defconfig
+++ b/configs/fennec-rk3288_defconfig
@@ -7,6 +7,7 @@ CONFIG_SPL_STACK_R_ADDR=0x8
 CONFIG_DEFAULT_DEVICE_TREE="rk3288-fennec"
 CONFIG_SPL_STACK_R=y
 CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x2000
+CONFIG_SPL_PINCTRL_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/firefly-rk3288_defconfig b/configs/firefly-rk3288_defconfig
index ba461b9..871af7e 100644
--- a/configs/firefly-rk3288_defconfig
+++ b/configs/firefly-rk3288_defconfig
@@ -7,6 +7,7 @@ CONFIG_SPL_STACK_R_ADDR=0x8
 CONFIG_DEFAULT_DEVICE_TREE="rk3288-firefly"
 CONFIG_SPL_STACK_R=y
 CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x2000
+CONFIG_SPL_PINCTRL_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/miniarm-rk3288_defconfig b/configs/miniarm-rk3288_defconfig
index 6354d1a..57b8921 100644
--- a/configs/miniarm-rk3288_defconfig
+++ b/configs/miniarm-rk3288_defconfig
@@ -7,6 +7,7 @@ CONFIG_SPL_STACK_R_ADDR=0x8
 CONFIG_DEFAULT_DEVICE_TREE="rk3288-miniarm"
 CONFIG_SPL_STACK_R=y
 CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x2000
+CONFIG_SPL_PINCTRL_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/popmetal-rk3288_defconfig 
b/configs/popmetal-rk3288_defconfig
index 112e6ae..879abdb 100644
--- a/configs/popmetal-rk3288_defconfig
+++ b/configs/popmetal-rk3288_defconfig
@@ -7,6 +7,7 @@ CONFIG_SPL_STACK_R_ADDR=0x8
 CONFIG_DEFAULT_DEVICE_TREE="rk3288-popmetal"
 CONFIG_SPL_STACK_R=y
 CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x2000
+CONFIG_SPL_PINCTRL_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/rock2_defconfig b/configs/rock2_defconfig
index fc9ff78..08067b6 100644
--- a/configs/rock2_defconfig
+++ b/configs/rock2_defconfig
@@ -7,6 +7,7 @@ CONFIG_SPL_STACK_R_ADDR=0x8
 CONFIG_DEFAULT_DEVICE_TREE="rk3288-rock2-square"
 CONFIG_SPL_STACK_R=y
 CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x2000
+CONFIG_SPL_PINCTRL_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/include/configs/rk3288_common.h b/include/configs/rk3288_common.h
index a6f399b..39da5a0 100644
--- a/include/configs/rk3288_common.h
+++ b/include/configs/rk3288_common.h
@@ -65,8 +65,6 @@
 #define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1
 #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME"u-boot.img"
 
-#define CONFIG_SPL_PINCTRL_SUPPORT
-
 #define CONFIG_SYS_SDRAM_BASE  0
 #define CONFIG_NR_DRAM_BANKS   1
 #define SDRAM_BANK_SIZE(2UL << 30)
-- 
2.8.0.rc3.226.g39d4020

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 39/44] Convert CONFIG_SPL_SPI_SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
Move this option to Kconfig and tidy up existing uses.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 arch/arm/cpu/armv8/zynqmp/Kconfig| 3 +++
 arch/arm/mach-socfpga/Kconfig| 3 +++
 arch/arm/mach-zynq/Kconfig   | 3 +++
 configs/P1010RDB-PA_36BIT_SPIFLASH_defconfig | 1 +
 configs/P1010RDB-PA_SPIFLASH_defconfig   | 1 +
 configs/P1010RDB-PB_36BIT_SPIFLASH_defconfig | 1 +
 configs/P1010RDB-PB_SPIFLASH_defconfig   | 1 +
 configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig | 1 +
 configs/P1020RDB-PC_SPIFLASH_defconfig   | 1 +
 configs/P1020RDB-PD_SPIFLASH_defconfig   | 1 +
 configs/P1021RDB-PC_36BIT_SPIFLASH_defconfig | 1 +
 configs/P1021RDB-PC_SPIFLASH_defconfig   | 1 +
 configs/P1022DS_36BIT_SPIFLASH_defconfig | 1 +
 configs/P1022DS_SPIFLASH_defconfig   | 1 +
 configs/P1024RDB_SPIFLASH_defconfig  | 1 +
 configs/P1025RDB_SPIFLASH_defconfig  | 1 +
 configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig | 1 +
 configs/P2020RDB-PC_SPIFLASH_defconfig   | 1 +
 configs/T1023RDB_SPIFLASH_defconfig  | 1 +
 configs/T1024QDS_SPIFLASH_defconfig  | 1 +
 configs/T1024RDB_SPIFLASH_defconfig  | 1 +
 configs/T1040D4RDB_SPIFLASH_defconfig| 1 +
 configs/T1040RDB_SPIFLASH_defconfig  | 1 +
 configs/T1042D4RDB_SPIFLASH_defconfig| 1 +
 configs/T1042RDB_PI_SPIFLASH_defconfig   | 1 +
 configs/T2080QDS_SPIFLASH_defconfig  | 1 +
 configs/T2080RDB_SPIFLASH_defconfig  | 1 +
 configs/T2081QDS_SPIFLASH_defconfig  | 1 +
 configs/am335x_evm_spiboot_defconfig | 1 +
 configs/am57xx_evm_defconfig | 1 +
 configs/am57xx_evm_nodt_defconfig| 1 +
 configs/am57xx_hs_evm_defconfig  | 1 +
 configs/at91sam9n12ek_spiflash_defconfig | 1 +
 configs/at91sam9x5ek_spiflash_defconfig  | 1 +
 configs/axm_defconfig| 1 +
 configs/brppt1_spi_defconfig | 1 +
 configs/cgtqmx6eval_defconfig| 1 +
 configs/chromebook_jerry_defconfig   | 1 +
 configs/cm_fx6_defconfig | 1 +
 configs/cm_t43_defconfig | 1 +
 configs/da850_am18xxevm_defconfig| 1 +
 configs/da850evm_defconfig   | 1 +
 configs/db-88f6720_defconfig | 1 +
 configs/db-88f6820-gp_defconfig  | 1 +
 configs/db-mv784mp-gp_defconfig  | 1 +
 configs/dra7xx_evm_defconfig | 1 +
 configs/dra7xx_hs_evm_defconfig  | 1 +
 configs/draco_defconfig  | 1 +
 configs/ds414_defconfig  | 1 +
 configs/etamin_defconfig | 1 +
 configs/k2e_evm_defconfig| 1 +
 configs/k2g_evm_defconfig| 1 +
 configs/k2hk_evm_defconfig   | 1 +
 configs/k2l_evm_defconfig| 1 +
 configs/ma5d4evk_defconfig   | 1 +
 configs/maxbcm_defconfig | 1 +
 configs/ot1200_spl_defconfig | 1 +
 configs/pcm058_defconfig | 1 +
 configs/pxm2_defconfig   | 1 +
 configs/rastaban_defconfig   | 1 +
 configs/rut_defconfig| 1 +
 configs/sama5d2_ptc_spiflash_defconfig   | 1 +
 configs/sama5d2_xplained_spiflash_defconfig  | 1 +
 configs/sama5d3xek_spiflash_defconfig| 1 +
 configs/sama5d4_xplained_spiflash_defconfig  | 1 +
 configs/sama5d4ek_spiflash_defconfig | 1 +
 configs/theadorable_debug_defconfig  | 1 +
 configs/theadorable_defconfig| 1 +
 configs/thuban_defconfig | 1 +
 configs/zc5202_defconfig | 1 +
 configs/zc5601_defconfig | 1 +
 include/configs/P1010RDB.h   | 1 -
 include/configs/P1022DS.h| 1 -
 include/configs/T102xQDS.h   | 1 -
 include/configs/T102xRDB.h   | 1 -
 include/configs/T104xRDB.h   | 1 -
 include/configs/T208xQDS.h   | 1 -
 include/configs/T208xRDB.h   | 1 -
 include/configs/am335x_evm.h | 1 -
 include/configs/am57xx_evm.h | 1 -
 include/configs/at91sam9n12ek.h  | 1 -
 include/configs/at91sam9x5ek.h   | 1 -
 include/configs/bav335x.h| 1 -
 include/configs/brppt1.h | 1 -
 include/configs/cgtqmx6eval.h| 1 -
 include/configs/chromebook_jerry.h   | 1 -
 include/configs/clearfog.h   | 1 -
 include/configs/cm_fx6.h | 1 -
 include/configs/cm_t43.h | 1 -
 include/configs/da850evm.h   | 3 ---
 include/configs/db-88f6720.h | 1 -
 include/configs/db-88f6820-gp.h  | 1 -
 include/configs/db-mv784mp-gp.h  | 1 -
 

[U-Boot] [PATCH v2 40/44] Convert CONFIG_SPL_USBETH_SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
Move this option to Kconfig and tidy up existing uses.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 configs/am335x_evm_usbspl_defconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configs/am335x_evm_usbspl_defconfig 
b/configs/am335x_evm_usbspl_defconfig
index 83e97b1..b2c0a18 100644
--- a/configs/am335x_evm_usbspl_defconfig
+++ b/configs/am335x_evm_usbspl_defconfig
@@ -2,12 +2,13 @@ CONFIG_ARM=y
 CONFIG_TARGET_AM335X_EVM=y
 CONFIG_SPL_STACK_R_ADDR=0x8200
 CONFIG_FIT=y
-CONFIG_SYS_EXTRA_OPTIONS="NAND,SPL_USBETH_SUPPORT"
+CONFIG_SYS_EXTRA_OPTIONS="NAND"
 CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
 CONFIG_SPL_MTD_SUPPORT=y
 CONFIG_SPL_MUSB_NEW_SUPPORT=y
 CONFIG_SPL_NET_SUPPORT=y
+CONFIG_SPL_USBETH_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
-- 
2.8.0.rc3.226.g39d4020

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 32/44] Convert CONFIG_SPL_NOR_SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
Move this option to Kconfig and tidy up existing uses.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 configs/a3m071_defconfig | 1 +
 configs/a4m2k_defconfig  | 1 +
 configs/edminiv2_defconfig   | 1 +
 configs/microblaze-generic_defconfig | 1 +
 configs/uniphier_ld11_defconfig  | 1 +
 configs/uniphier_ld20_defconfig  | 1 +
 configs/uniphier_ld4_sld8_defconfig  | 1 +
 configs/uniphier_pro4_defconfig  | 1 +
 configs/uniphier_pxs2_ld6b_defconfig | 1 +
 configs/uniphier_sld3_defconfig  | 1 +
 configs/x600_defconfig   | 1 +
 include/configs/a3m071.h | 1 -
 include/configs/edminiv2.h   | 1 -
 include/configs/microblaze-generic.h | 1 -
 include/configs/uniphier.h   | 1 -
 include/configs/x600.h   | 1 -
 16 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/configs/a3m071_defconfig b/configs/a3m071_defconfig
index cfb4ca4..67f59ab 100644
--- a/configs/a3m071_defconfig
+++ b/configs/a3m071_defconfig
@@ -8,6 +8,7 @@ CONFIG_FIT=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_BOOTDELAY=3
 CONFIG_SPL=y
+CONFIG_SPL_NOR_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_LOOPW=y
 # CONFIG_CMD_SETEXPR is not set
diff --git a/configs/a4m2k_defconfig b/configs/a4m2k_defconfig
index ef1c6e5..e688efe 100644
--- a/configs/a4m2k_defconfig
+++ b/configs/a4m2k_defconfig
@@ -9,6 +9,7 @@ CONFIG_OF_BOARD_SETUP=y
 CONFIG_SYS_EXTRA_OPTIONS="A4M2K"
 CONFIG_BOOTDELAY=3
 CONFIG_SPL=y
+CONFIG_SPL_NOR_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_LOOPW=y
 # CONFIG_CMD_SETEXPR is not set
diff --git a/configs/edminiv2_defconfig b/configs/edminiv2_defconfig
index fd0a497..d04aef2 100644
--- a/configs/edminiv2_defconfig
+++ b/configs/edminiv2_defconfig
@@ -5,6 +5,7 @@ CONFIG_SPL_LIBGENERIC_SUPPORT=y
 CONFIG_TARGET_EDMINIV2=y
 CONFIG_BOOTDELAY=3
 CONFIG_SPL=y
+CONFIG_SPL_NOR_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_SYS_PROMPT="EDMiniV2> "
 CONFIG_CMD_I2C=y
diff --git a/configs/microblaze-generic_defconfig 
b/configs/microblaze-generic_defconfig
index 094952a..374b109 100644
--- a/configs/microblaze-generic_defconfig
+++ b/configs/microblaze-generic_defconfig
@@ -13,6 +13,7 @@ CONFIG_FIT_VERBOSE=y
 CONFIG_BOOTDELAY=-1
 CONFIG_SPL=y
 CONFIG_SPL_SYS_MALLOC_SIMPLE=y
+CONFIG_SPL_NOR_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_SYS_PROMPT="U-Boot-mONStR> "
 CONFIG_CMD_ASKENV=y
diff --git a/configs/uniphier_ld11_defconfig b/configs/uniphier_ld11_defconfig
index 57b9c07..e9e5e48 100644
--- a/configs/uniphier_ld11_defconfig
+++ b/configs/uniphier_ld11_defconfig
@@ -5,6 +5,7 @@ CONFIG_ARCH_UNIPHIER_LD11=y
 CONFIG_MICRO_SUPPORT_CARD=y
 CONFIG_SYS_TEXT_BASE=0x8400
 CONFIG_DEFAULT_DEVICE_TREE="uniphier-ph1-ld11-ref"
+CONFIG_SPL_NOR_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 # CONFIG_CMD_XIMG is not set
 # CONFIG_CMD_ENV_EXISTS is not set
diff --git a/configs/uniphier_ld20_defconfig b/configs/uniphier_ld20_defconfig
index e6aa525..bbd5ed1 100644
--- a/configs/uniphier_ld20_defconfig
+++ b/configs/uniphier_ld20_defconfig
@@ -5,6 +5,7 @@ CONFIG_ARCH_UNIPHIER_LD20=y
 CONFIG_MICRO_SUPPORT_CARD=y
 CONFIG_SYS_TEXT_BASE=0x8400
 CONFIG_DEFAULT_DEVICE_TREE="uniphier-ph1-ld20-ref"
+CONFIG_SPL_NOR_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 # CONFIG_CMD_XIMG is not set
 # CONFIG_CMD_ENV_EXISTS is not set
diff --git a/configs/uniphier_ld4_sld8_defconfig 
b/configs/uniphier_ld4_sld8_defconfig
index 47b577a..0981686 100644
--- a/configs/uniphier_ld4_sld8_defconfig
+++ b/configs/uniphier_ld4_sld8_defconfig
@@ -5,6 +5,7 @@ CONFIG_ARCH_UNIPHIER_LD4_SLD8=y
 CONFIG_MICRO_SUPPORT_CARD=y
 CONFIG_SYS_TEXT_BASE=0x8400
 CONFIG_DEFAULT_DEVICE_TREE="uniphier-ph1-ld4-ref"
+CONFIG_SPL_NOR_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_XIMG is not set
diff --git a/configs/uniphier_pro4_defconfig b/configs/uniphier_pro4_defconfig
index e156ec5..de7c3a8 100644
--- a/configs/uniphier_pro4_defconfig
+++ b/configs/uniphier_pro4_defconfig
@@ -4,6 +4,7 @@ CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_MICRO_SUPPORT_CARD=y
 CONFIG_SYS_TEXT_BASE=0x8400
 CONFIG_DEFAULT_DEVICE_TREE="uniphier-ph1-pro4-ref"
+CONFIG_SPL_NOR_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_XIMG is not set
diff --git a/configs/uniphier_pxs2_ld6b_defconfig 
b/configs/uniphier_pxs2_ld6b_defconfig
index f943516..dd00d4e 100644
--- a/configs/uniphier_pxs2_ld6b_defconfig
+++ b/configs/uniphier_pxs2_ld6b_defconfig
@@ -5,6 +5,7 @@ CONFIG_ARCH_UNIPHIER_PRO5_PXS2_LD6B=y
 CONFIG_MICRO_SUPPORT_CARD=y
 CONFIG_SYS_TEXT_BASE=0x8400
 CONFIG_DEFAULT_DEVICE_TREE="uniphier-proxstream2-vodka"
+CONFIG_SPL_NOR_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_XIMG is not set
diff --git a/configs/uniphier_sld3_defconfig b/configs/uniphier_sld3_defconfig
index 598cde2..0c6d35a 100644
--- a/configs/uniphier_sld3_defconfig
+++ b/configs/uniphier_sld3_defconfig
@@ -4,6 +4,7 @@ CONFIG_ARCH_UNIPHIER_SLD3=y
 CONFIG_MICRO_SUPPORT_CARD=y
 CONFIG_SYS_TEXT_BASE=0x8400
 

[U-Boot] [PATCH v2 30/44] Convert CONFIG_SPL_NAND_SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
Move this option to Kconfig and tidy up existing uses.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 arch/arm/cpu/armv7/omap3/Kconfig   | 3 +++
 arch/arm/cpu/armv7/omap4/Kconfig   | 3 +++
 arch/arm/cpu/armv7/omap5/Kconfig   | 3 +++
 arch/arm/mach-socfpga/Kconfig  | 3 +++
 arch/arm/mach-uniphier/Kconfig | 3 +++
 board/ti/common/Kconfig| 3 +++
 configs/B4420QDS_NAND_defconfig| 1 +
 configs/B4860QDS_NAND_defconfig| 1 +
 configs/BSC9131RDB_NAND_SYSCLK100_defconfig| 1 +
 configs/BSC9131RDB_NAND_defconfig  | 1 +
 configs/BSC9132QDS_NAND_DDRCLK100_defconfig| 1 +
 configs/BSC9132QDS_NAND_DDRCLK133_defconfig| 1 +
 configs/C29XPCIE_NAND_defconfig| 1 +
 configs/MPC8313ERDB_NAND_33_defconfig  | 1 +
 configs/MPC8313ERDB_NAND_66_defconfig  | 1 +
 configs/P1010RDB-PA_36BIT_NAND_defconfig   | 1 +
 configs/P1010RDB-PA_NAND_defconfig | 1 +
 configs/P1010RDB-PB_36BIT_NAND_defconfig   | 1 +
 configs/P1010RDB-PB_NAND_defconfig | 2 ++
 configs/P1020RDB-PC_36BIT_NAND_defconfig   | 1 +
 configs/P1020RDB-PC_NAND_defconfig | 1 +
 configs/P1020RDB-PD_NAND_defconfig | 1 +
 configs/P1021RDB-PC_36BIT_NAND_defconfig   | 1 +
 configs/P1021RDB-PC_NAND_defconfig | 1 +
 configs/P1022DS_36BIT_NAND_defconfig   | 1 +
 configs/P1022DS_NAND_defconfig | 2 ++
 configs/P1024RDB_NAND_defconfig| 1 +
 configs/P1025RDB_NAND_defconfig| 2 ++
 configs/P2020RDB-PC_36BIT_NAND_defconfig   | 2 ++
 configs/P2020RDB-PC_NAND_defconfig | 1 +
 configs/T1023RDB_NAND_defconfig| 1 +
 configs/T1024QDS_NAND_defconfig| 1 +
 configs/T1024RDB_NAND_defconfig| 1 +
 configs/T1040D4RDB_NAND_defconfig  | 1 +
 configs/T1040RDB_NAND_defconfig| 1 +
 configs/T1042D4RDB_NAND_defconfig  | 1 +
 configs/T1042RDB_PI_NAND_SECURE_BOOT_defconfig | 1 +
 configs/T1042RDB_PI_NAND_defconfig | 1 +
 configs/T2080QDS_NAND_defconfig| 1 +
 configs/T2080RDB_NAND_defconfig| 1 +
 configs/T2081QDS_NAND_defconfig| 1 +
 configs/T4160QDS_NAND_defconfig| 1 +
 configs/T4240QDS_NAND_defconfig| 1 +
 configs/am335x_baltos_defconfig| 1 +
 configs/am335x_evm_defconfig   | 1 +
 configs/am335x_evm_nor_defconfig   | 1 +
 configs/am335x_evm_usbspl_defconfig| 1 +
 configs/am335x_igep0033_defconfig  | 1 +
 configs/am3517_evm_defconfig   | 1 +
 configs/am43xx_evm_defconfig   | 1 +
 configs/am43xx_evm_ethboot_defconfig   | 1 +
 configs/am43xx_evm_usbhost_boot_defconfig  | 1 +
 configs/am43xx_hs_evm_defconfig| 1 +
 configs/apf27_defconfig| 1 +
 configs/at91sam9m10g45ek_nandflash_defconfig   | 1 +
 configs/at91sam9n12ek_nandflash_defconfig  | 1 +
 configs/at91sam9x5ek_nandflash_defconfig   | 1 +
 configs/axm_defconfig  | 1 +
 configs/brppt1_nand_defconfig  | 1 +
 configs/cairo_defconfig| 1 +
 configs/cm_t335_defconfig  | 1 +
 configs/corvus_defconfig   | 1 +
 configs/devkit3250_defconfig   | 1 +
 configs/draco_defconfig| 1 +
 configs/duovero_defconfig  | 3 ++-
 configs/etamin_defconfig   | 1 +
 configs/gwventana_defconfig| 1 +
 configs/igep0020_defconfig | 1 +
 configs/igep0030_defconfig | 1 +
 configs/igep0030_nand_defconfig| 1 +
 configs/igep0032_defconfig | 1 +
 configs/ipam390_defconfig  | 1 +
 configs/ls1021aqds_nand_defconfig  | 1 +
 configs/ls1043aqds_nand_defconfig  | 1 +
 configs/ls1043ardb_nand_defconfig  | 1 +
 configs/ls2080aqds_nand_defconfig  | 1 +
 configs/ls2080ardb_nand_defconfig  | 1 +
 configs/m53evk_defconfig   | 1 +
 configs/mx31pdk_defconfig  | 1 +
 configs/omap3_beagle_defconfig | 1 +
 configs/omap3_logic_defconfig  | 1 +
 configs/omap3_overo_defconfig  | 1 +
 configs/omap4_panda_defconfig  | 3 ++-
 configs/omap4_sdp4430_defconfig| 3 ++-
 configs/pengwyn_defconfig  | 1 +
 configs/platinum_picon_defconfig   | 1 +
 configs/platinum_titanium_defconfig| 1 +
 configs/pxm2_defconfig | 1 +
 configs/rastaban_defconfig | 1 +
 configs/rut_defconfig

[U-Boot] [PATCH v2 31/44] Convert CONFIG_SPL_NET_SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
Move this option to Kconfig and tidy up existing uses.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 configs/am335x_evm_usbspl_defconfig  | 1 +
 configs/am43xx_evm_ethboot_defconfig | 1 +
 configs/pcm051_rev1_defconfig| 1 +
 configs/pcm051_rev3_defconfig| 1 +
 configs/pengwyn_defconfig| 1 +
 include/configs/am335x_evm.h | 1 -
 include/configs/am335x_shc.h | 1 -
 include/configs/am335x_sl50.h| 1 -
 include/configs/am43xx_evm.h | 1 -
 include/configs/baltos.h | 1 -
 include/configs/bav335x.h| 1 -
 include/configs/draco.h  | 1 -
 include/configs/etamin.h | 1 -
 include/configs/pcm051.h | 1 -
 include/configs/pengwyn.h| 1 -
 include/configs/pxm2.h   | 1 -
 include/configs/rastaban.h   | 1 -
 include/configs/rut.h| 1 -
 include/configs/thuban.h | 1 -
 19 files changed, 5 insertions(+), 14 deletions(-)

diff --git a/configs/am335x_evm_usbspl_defconfig 
b/configs/am335x_evm_usbspl_defconfig
index ed48e82..96df852 100644
--- a/configs/am335x_evm_usbspl_defconfig
+++ b/configs/am335x_evm_usbspl_defconfig
@@ -8,6 +8,7 @@ CONFIG_SPL_STACK_R=y
 CONFIG_SPL_MTD_SUPPORT=y
 CONFIG_SPL_MUSB_NEW_SUPPORT=y
 CONFIG_SPL_NAND_SUPPORT=y
+CONFIG_SPL_NET_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/am43xx_evm_ethboot_defconfig 
b/configs/am43xx_evm_ethboot_defconfig
index 436c94c..14f520c 100644
--- a/configs/am43xx_evm_ethboot_defconfig
+++ b/configs/am43xx_evm_ethboot_defconfig
@@ -6,6 +6,7 @@ CONFIG_SPL=y
 CONFIG_SPL_ETH_SUPPORT=y
 CONFIG_SPL_MTD_SUPPORT=y
 CONFIG_SPL_NAND_SUPPORT=y
+CONFIG_SPL_NET_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/pcm051_rev1_defconfig b/configs/pcm051_rev1_defconfig
index 41031d4..8e7e64d 100644
--- a/configs/pcm051_rev1_defconfig
+++ b/configs/pcm051_rev1_defconfig
@@ -12,6 +12,7 @@ CONFIG_SPL_ENV_SUPPORT=y
 CONFIG_SYS_EXTRA_OPTIONS="REV1"
 CONFIG_SPL=y
 CONFIG_SPL_ETH_SUPPORT=y
+CONFIG_SPL_NET_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/pcm051_rev3_defconfig b/configs/pcm051_rev3_defconfig
index 4c0e426..6cd4ef9 100644
--- a/configs/pcm051_rev3_defconfig
+++ b/configs/pcm051_rev3_defconfig
@@ -12,6 +12,7 @@ CONFIG_SPL_ENV_SUPPORT=y
 CONFIG_SYS_EXTRA_OPTIONS="REV3"
 CONFIG_SPL=y
 CONFIG_SPL_ETH_SUPPORT=y
+CONFIG_SPL_NET_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/pengwyn_defconfig b/configs/pengwyn_defconfig
index c695e7a..3edc5eb 100644
--- a/configs/pengwyn_defconfig
+++ b/configs/pengwyn_defconfig
@@ -13,6 +13,7 @@ CONFIG_SPL=y
 CONFIG_SPL_ETH_SUPPORT=y
 CONFIG_SPL_MTD_SUPPORT=y
 CONFIG_SPL_NAND_SUPPORT=y
+CONFIG_SPL_NET_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index 0b63a4a..3ad17aa 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -337,7 +337,6 @@
 #undef CONFIG_PARTITION_UUIDS
 #undef CONFIG_EFI_PARTITION
 /* General network SPL  */
-#define CONFIG_SPL_NET_SUPPORT
 #define CONFIG_SPL_NET_VCI_STRING  "AM335x U-Boot SPL"
 #endif
 
diff --git a/include/configs/am335x_shc.h b/include/configs/am335x_shc.h
index bc9123c..907775c 100644
--- a/include/configs/am335x_shc.h
+++ b/include/configs/am335x_shc.h
@@ -328,7 +328,6 @@
 
 #if defined CONFIG_SHC_NETBOOT
 #ifdef CONFIG_SPL_BUILD
-#define CONFIG_SPL_NET_SUPPORT
 #define CONFIG_SPL_NET_VCI_STRING  "AM335x U-Boot SPL"
 #define CONFIG_ENV_IS_NOWHERE
 #undef CONFIG_ENV_IS_IN_MMC
diff --git a/include/configs/am335x_sl50.h b/include/configs/am335x_sl50.h
index 3aaa91e..c559758 100644
--- a/include/configs/am335x_sl50.h
+++ b/include/configs/am335x_sl50.h
@@ -107,7 +107,6 @@
 #undef CONFIG_PARTITION_UUIDS
 #undef CONFIG_EFI_PARTITION
 /* General network SPL  */
-#define CONFIG_SPL_NET_SUPPORT
 #define CONFIG_SPL_NET_VCI_STRING  "AM335x U-Boot SPL"
 #endif
 
diff --git a/include/configs/am43xx_evm.h b/include/configs/am43xx_evm.h
index 9334c67..fb578d4 100644
--- a/include/configs/am43xx_evm.h
+++ b/include/configs/am43xx_evm.h
@@ -329,7 +329,6 @@
 #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_ETH_SUPPORT)
 #undef CONFIG_ENV_IS_IN_FAT
 #define CONFIG_ENV_IS_NOWHERE
-#define CONFIG_SPL_NET_SUPPORT
 #endif
 
 #define CONFIG_SYS_RX_ETH_BUFFER   64
diff --git a/include/configs/baltos.h b/include/configs/baltos.h
index f30af66..ff03a38 100644
--- a/include/configs/baltos.h
+++ b/include/configs/baltos.h
@@ -227,7 +227,6 @@
 /* USB gadget RNDIS */
 
 /* General network SPL, both CPSW and USB gadget RNDIS */
-/*#define CONFIG_SPL_NET_SUPPORT
 #define CONFIG_SPL_NET_VCI_STRING  "AM335x U-Boot SPL"*/
 
 #define CONFIG_SPL_LDSCRIPT

[U-Boot] [PATCH v2 33/44] Convert CONFIG_SPL_ONENAND_SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
Move this option to Kconfig and tidy up existing uses.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 configs/igep0020_defconfig   | 1 +
 configs/igep0030_defconfig   | 1 +
 configs/igep0030_nand_defconfig  | 1 +
 configs/igep0032_defconfig   | 1 +
 include/configs/omap3_igep00x0.h | 1 -
 5 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/configs/igep0020_defconfig b/configs/igep0020_defconfig
index 9fa7662..ae07740 100644
--- a/configs/igep0020_defconfig
+++ b/configs/igep0020_defconfig
@@ -7,6 +7,7 @@ CONFIG_BOOTDELAY=3
 CONFIG_SPL=y
 CONFIG_SPL_MTD_SUPPORT=y
 CONFIG_SPL_NAND_SUPPORT=y
+CONFIG_SPL_ONENAND_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/igep0030_defconfig b/configs/igep0030_defconfig
index 2ad1fee..b9fd9f3 100644
--- a/configs/igep0030_defconfig
+++ b/configs/igep0030_defconfig
@@ -6,6 +6,7 @@ 
CONFIG_SYS_EXTRA_OPTIONS="MACH_TYPE=MACH_TYPE_IGEP0030,BOOT_ONENAND"
 CONFIG_SPL=y
 CONFIG_SPL_MTD_SUPPORT=y
 CONFIG_SPL_NAND_SUPPORT=y
+CONFIG_SPL_ONENAND_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/igep0030_nand_defconfig b/configs/igep0030_nand_defconfig
index 2916621..3fd79f4 100644
--- a/configs/igep0030_nand_defconfig
+++ b/configs/igep0030_nand_defconfig
@@ -6,6 +6,7 @@ 
CONFIG_SYS_EXTRA_OPTIONS="MACH_TYPE=MACH_TYPE_IGEP0030,BOOT_NAND"
 CONFIG_SPL=y
 CONFIG_SPL_MTD_SUPPORT=y
 CONFIG_SPL_NAND_SUPPORT=y
+CONFIG_SPL_ONENAND_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/igep0032_defconfig b/configs/igep0032_defconfig
index 021ee17..3922d07 100644
--- a/configs/igep0032_defconfig
+++ b/configs/igep0032_defconfig
@@ -6,6 +6,7 @@ 
CONFIG_SYS_EXTRA_OPTIONS="MACH_TYPE=MACH_TYPE_IGEP0032,BOOT_ONENAND"
 CONFIG_SPL=y
 CONFIG_SPL_MTD_SUPPORT=y
 CONFIG_SPL_NAND_SUPPORT=y
+CONFIG_SPL_ONENAND_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/include/configs/omap3_igep00x0.h b/include/configs/omap3_igep00x0.h
index 792803b..3614432 100644
--- a/include/configs/omap3_igep00x0.h
+++ b/include/configs/omap3_igep00x0.h
@@ -116,7 +116,6 @@
 #define CONFIG_SYS_MTDPARTS_RUNTIME
 
 /* OneNAND config */
-#define CONFIG_SPL_ONENAND_SUPPORT
 #define CONFIG_USE_ONENAND_BOARD_INIT
 #define CONFIG_SYS_ONENAND_BASEONENAND_MAP
 #define CONFIG_SYS_ONENAND_BLOCK_SIZE  (128*1024)
-- 
2.8.0.rc3.226.g39d4020

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 27/44] Convert CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
Move this option to Kconfig and tidy up existing uses.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 configs/B4420QDS_NAND_defconfig | 1 +
 configs/B4860QDS_NAND_defconfig | 1 +
 configs/C29XPCIE_NAND_defconfig | 1 +
 configs/P1010RDB-PA_36BIT_NAND_defconfig| 1 +
 configs/P1010RDB-PA_36BIT_SDCARD_defconfig  | 1 +
 configs/P1010RDB-PA_36BIT_SPIFLASH_defconfig| 1 +
 configs/P1010RDB-PA_NAND_defconfig  | 1 +
 configs/P1010RDB-PA_SDCARD_defconfig| 1 +
 configs/P1010RDB-PA_SPIFLASH_defconfig  | 1 +
 configs/P1010RDB-PB_36BIT_NAND_defconfig| 1 +
 configs/P1010RDB-PB_36BIT_SDCARD_defconfig  | 1 +
 configs/P1010RDB-PB_36BIT_SPIFLASH_defconfig| 1 +
 configs/P1010RDB-PB_NAND_defconfig  | 1 +
 configs/P1010RDB-PB_SDCARD_defconfig| 1 +
 configs/P1010RDB-PB_SPIFLASH_defconfig  | 1 +
 configs/P1020MBG-PC_36BIT_SDCARD_defconfig  | 1 +
 configs/P1020MBG-PC_SDCARD_defconfig| 1 +
 configs/P1020RDB-PC_36BIT_NAND_defconfig| 1 +
 configs/P1020RDB-PC_36BIT_SDCARD_defconfig  | 1 +
 configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig| 1 +
 configs/P1020RDB-PC_NAND_defconfig  | 1 +
 configs/P1020RDB-PC_SDCARD_defconfig| 1 +
 configs/P1020RDB-PC_SPIFLASH_defconfig  | 1 +
 configs/P1020RDB-PD_NAND_defconfig  | 1 +
 configs/P1020RDB-PD_SDCARD_defconfig| 1 +
 configs/P1020RDB-PD_SPIFLASH_defconfig  | 1 +
 configs/P1020UTM-PC_36BIT_SDCARD_defconfig  | 1 +
 configs/P1020UTM-PC_SDCARD_defconfig| 1 +
 configs/P1021RDB-PC_36BIT_NAND_defconfig| 1 +
 configs/P1021RDB-PC_36BIT_SDCARD_defconfig  | 1 +
 configs/P1021RDB-PC_36BIT_SPIFLASH_defconfig| 1 +
 configs/P1021RDB-PC_NAND_defconfig  | 1 +
 configs/P1021RDB-PC_SDCARD_defconfig| 1 +
 configs/P1021RDB-PC_SPIFLASH_defconfig  | 1 +
 configs/P1022DS_36BIT_NAND_defconfig| 1 +
 configs/P1022DS_36BIT_SDCARD_defconfig  | 1 +
 configs/P1022DS_36BIT_SPIFLASH_defconfig| 1 +
 configs/P1022DS_NAND_defconfig  | 1 +
 configs/P1022DS_SDCARD_defconfig| 1 +
 configs/P1022DS_SPIFLASH_defconfig  | 1 +
 configs/P1024RDB_NAND_defconfig | 1 +
 configs/P1024RDB_SDCARD_defconfig   | 1 +
 configs/P1024RDB_SPIFLASH_defconfig | 1 +
 configs/P1025RDB_NAND_defconfig | 1 +
 configs/P1025RDB_SDCARD_defconfig   | 1 +
 configs/P1025RDB_SPIFLASH_defconfig | 1 +
 configs/P2020RDB-PC_36BIT_NAND_defconfig| 1 +
 configs/P2020RDB-PC_36BIT_SDCARD_defconfig  | 1 +
 configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig| 1 +
 configs/P2020RDB-PC_NAND_defconfig  | 1 +
 configs/P2020RDB-PC_SDCARD_defconfig| 1 +
 configs/P2020RDB-PC_SPIFLASH_defconfig  | 1 +
 configs/T1023RDB_NAND_defconfig | 1 +
 configs/T1023RDB_SDCARD_defconfig   | 1 +
 configs/T1023RDB_SPIFLASH_defconfig | 1 +
 configs/T1024QDS_NAND_defconfig | 1 +
 configs/T1024QDS_SDCARD_defconfig   | 1 +
 configs/T1024QDS_SPIFLASH_defconfig | 1 +
 configs/T1024RDB_NAND_defconfig | 1 +
 configs/T1024RDB_SDCARD_defconfig   | 1 +
 configs/T1024RDB_SPIFLASH_defconfig | 1 +
 configs/T1040D4RDB_NAND_defconfig   | 1 +
 configs/T1040D4RDB_SDCARD_defconfig | 1 +
 configs/T1040D4RDB_SPIFLASH_defconfig   | 1 +
 configs/T1040RDB_NAND_defconfig | 1 +
 configs/T1040RDB_SDCARD_defconfig   | 1 +
 configs/T1040RDB_SPIFLASH_defconfig | 1 +
 configs/T1042D4RDB_NAND_defconfig   | 1 +
 configs/T1042D4RDB_SDCARD_defconfig | 1 +
 configs/T1042D4RDB_SPIFLASH_defconfig   | 1 +
 configs/T1042RDB_PI_NAND_SECURE_BOOT_defconfig  | 1 +
 configs/T1042RDB_PI_NAND_defconfig  | 1 +
 configs/T1042RDB_PI_SDCARD_defconfig| 1 +
 configs/T1042RDB_PI_SPIFLASH_defconfig  | 1 +
 configs/T2080QDS_NAND_defconfig | 1 +
 configs/T2080QDS_SDCARD_defconfig   | 1 +
 configs/T2080QDS_SPIFLASH_defconfig | 1 +
 configs/T2080RDB_NAND_defconfig | 1 +
 configs/T2080RDB_SDCARD_defconfig   | 1 +
 configs/T2080RDB_SPIFLASH_defconfig | 1 +
 configs/T2081QDS_NAND_defconfig | 1 +
 configs/T2081QDS_SDCARD_defconfig   | 1 +
 

[U-Boot] [PATCH v2 29/44] Convert CONFIG_SPL_MUSB_NEW_SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
Move this option to Kconfig and tidy up existing uses.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 configs/am335x_boneblack_defconfig   | 1 +
 configs/am335x_boneblack_vboot_defconfig | 1 +
 configs/am335x_evm_defconfig | 1 +
 configs/am335x_evm_nor_defconfig | 1 +
 configs/am335x_evm_spiboot_defconfig | 1 +
 configs/am335x_evm_usbspl_defconfig  | 1 +
 configs/birdland_bav335a_defconfig   | 1 +
 configs/birdland_bav335b_defconfig   | 1 +
 include/configs/am335x_evm.h | 1 -
 include/configs/baltos.h | 1 -
 include/configs/bav335x.h| 1 -
 11 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/configs/am335x_boneblack_defconfig 
b/configs/am335x_boneblack_defconfig
index 624167e..156f4a5 100644
--- a/configs/am335x_boneblack_defconfig
+++ b/configs/am335x_boneblack_defconfig
@@ -5,6 +5,7 @@ CONFIG_FIT=y
 CONFIG_SYS_EXTRA_OPTIONS="EMMC_BOOT"
 CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
+CONFIG_SPL_MUSB_NEW_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_AUTOBOOT_KEYED=y
 CONFIG_AUTOBOOT_PROMPT="Press SPACE to abort autoboot in %d seconds\n"
diff --git a/configs/am335x_boneblack_vboot_defconfig 
b/configs/am335x_boneblack_vboot_defconfig
index b6bda13..5274b04 100644
--- a/configs/am335x_boneblack_vboot_defconfig
+++ b/configs/am335x_boneblack_vboot_defconfig
@@ -8,6 +8,7 @@ CONFIG_FIT_SIGNATURE=y
 CONFIG_SYS_EXTRA_OPTIONS="EMMC_BOOT,ENABLE_VBOOT"
 CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
+CONFIG_SPL_MUSB_NEW_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_AUTOBOOT_KEYED=y
 CONFIG_AUTOBOOT_PROMPT="Press SPACE to abort autoboot in %d seconds\n"
diff --git a/configs/am335x_evm_defconfig b/configs/am335x_evm_defconfig
index ead086b..99e41d6 100644
--- a/configs/am335x_evm_defconfig
+++ b/configs/am335x_evm_defconfig
@@ -8,6 +8,7 @@ CONFIG_SPL_LOAD_FIT=y
 CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
 CONFIG_SPL_MTD_SUPPORT=y
+CONFIG_SPL_MUSB_NEW_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/am335x_evm_nor_defconfig b/configs/am335x_evm_nor_defconfig
index 54408fd..cd53592 100644
--- a/configs/am335x_evm_nor_defconfig
+++ b/configs/am335x_evm_nor_defconfig
@@ -7,6 +7,7 @@ CONFIG_SYS_EXTRA_OPTIONS="NAND"
 CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
 CONFIG_SPL_MTD_SUPPORT=y
+CONFIG_SPL_MUSB_NEW_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/am335x_evm_spiboot_defconfig 
b/configs/am335x_evm_spiboot_defconfig
index 4324251..6decaa0 100644
--- a/configs/am335x_evm_spiboot_defconfig
+++ b/configs/am335x_evm_spiboot_defconfig
@@ -6,6 +6,7 @@ CONFIG_SYS_EXTRA_OPTIONS="SPI_BOOT"
 CONFIG_SPI_BOOT=y
 CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
+CONFIG_SPL_MUSB_NEW_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/am335x_evm_usbspl_defconfig 
b/configs/am335x_evm_usbspl_defconfig
index 3b5d8e9..cd37092 100644
--- a/configs/am335x_evm_usbspl_defconfig
+++ b/configs/am335x_evm_usbspl_defconfig
@@ -6,6 +6,7 @@ CONFIG_SYS_EXTRA_OPTIONS="NAND,SPL_USBETH_SUPPORT"
 CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
 CONFIG_SPL_MTD_SUPPORT=y
+CONFIG_SPL_MUSB_NEW_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/birdland_bav335a_defconfig 
b/configs/birdland_bav335a_defconfig
index 843185e..599c552 100644
--- a/configs/birdland_bav335a_defconfig
+++ b/configs/birdland_bav335a_defconfig
@@ -12,6 +12,7 @@ CONFIG_BAV_VERSION=1
 CONFIG_FIT=y
 CONFIG_SYS_EXTRA_OPTIONS="SERIAL1,CONS_INDEX=1"
 CONFIG_SPL=y
+CONFIG_SPL_MUSB_NEW_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/birdland_bav335b_defconfig 
b/configs/birdland_bav335b_defconfig
index 22b2f61..f6c8ff1 100644
--- a/configs/birdland_bav335b_defconfig
+++ b/configs/birdland_bav335b_defconfig
@@ -12,6 +12,7 @@ CONFIG_BAV_VERSION=2
 CONFIG_FIT=y
 CONFIG_SYS_EXTRA_OPTIONS="SERIAL1,CONS_INDEX=1"
 CONFIG_SPL=y
+CONFIG_SPL_MUSB_NEW_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index f3ddcef..5ef77c9 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -215,7 +215,6 @@
 #define CONFIG_SYS_BOOTCOUNT_BE
 
 /* USB gadget RNDIS */
-#define CONFIG_SPL_MUSB_NEW_SUPPORT
 
 #define CONFIG_SPL_LDSCRIPT"$(CPUDIR)/am33xx/u-boot-spl.lds"
 #endif
diff --git a/include/configs/baltos.h b/include/configs/baltos.h
index 5e9e253..f30af66 100644
--- a/include/configs/baltos.h
+++ b/include/configs/baltos.h
@@ -225,7 +225,6 @@
 #define CONFIG_BOOTCOUNT_AM33XX
 
 /* USB gadget RNDIS */
-/*#define CONFIG_SPL_MUSB_NEW_SUPPORT*/
 
 /* General network SPL, both CPSW and USB gadget RNDIS */
 /*#define CONFIG_SPL_NET_SUPPORT
diff --git a/include/configs/bav335x.h b/include/configs/bav335x.h
index 79a05d1..a435f2c 100644
--- a/include/configs/bav335x.h
+++ 

[U-Boot] [PATCH v2 24/44] Convert CONFIG_SPL_LIBDISK_SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
Move this option to Kconfig and tidy up existing uses.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 arch/arm/cpu/armv7/omap3/Kconfig   | 3 +++
 arch/arm/cpu/armv7/omap4/Kconfig   | 3 +++
 arch/arm/cpu/armv7/omap5/Kconfig   | 3 +++
 arch/arm/cpu/armv8/zynqmp/Kconfig  | 3 +++
 arch/arm/mach-socfpga/Kconfig  | 3 +++
 arch/arm/mach-zynq/Kconfig | 3 +++
 board/sunxi/Kconfig| 3 +++
 board/ti/common/Kconfig| 3 +++
 configs/am335x_baltos_defconfig| 1 +
 configs/am335x_igep0033_defconfig  | 1 +
 configs/am335x_shc_defconfig   | 1 +
 configs/am335x_shc_ict_defconfig   | 1 +
 configs/am335x_shc_netboot_defconfig   | 1 +
 configs/am335x_shc_prompt_defconfig| 1 +
 configs/am335x_shc_sdboot_defconfig| 1 +
 configs/am335x_shc_sdboot_prompt_defconfig | 1 +
 configs/am335x_sl50_defconfig  | 1 +
 configs/at91sam9m10g45ek_mmc_defconfig | 1 +
 configs/birdland_bav335a_defconfig | 1 +
 configs/birdland_bav335b_defconfig | 1 +
 configs/cgtqmx6eval_defconfig  | 1 +
 configs/clearfog_defconfig | 1 +
 configs/cm_t335_defconfig  | 1 +
 configs/cm_t43_defconfig   | 1 +
 configs/draco_defconfig| 1 +
 configs/etamin_defconfig   | 1 +
 configs/mx6cuboxi_defconfig| 1 +
 configs/mx6sabresd_spl_defconfig   | 1 +
 configs/mx6slevk_spl_defconfig | 1 +
 configs/mx6sxsabresd_spl_defconfig | 1 +
 configs/mx6ul_14x14_evk_defconfig  | 1 +
 configs/mx6ul_9x9_evk_defconfig| 1 +
 configs/novena_defconfig   | 1 +
 configs/pcm051_rev1_defconfig  | 1 +
 configs/pcm051_rev3_defconfig  | 1 +
 configs/pcm058_defconfig   | 1 +
 configs/pengwyn_defconfig  | 1 +
 configs/pepper_defconfig   | 1 +
 configs/picosam9g45_defconfig  | 1 +
 configs/platinum_picon_defconfig   | 1 +
 configs/platinum_titanium_defconfig| 1 +
 configs/pxm2_defconfig | 1 +
 configs/rastaban_defconfig | 1 +
 configs/rut_defconfig  | 1 +
 configs/sama5d2_xplained_mmc_defconfig | 1 +
 configs/sama5d3_xplained_mmc_defconfig | 1 +
 configs/sama5d3xek_mmc_defconfig   | 1 +
 configs/sama5d4_xplained_mmc_defconfig | 1 +
 configs/sama5d4ek_mmc_defconfig| 1 +
 configs/thuban_defconfig   | 1 +
 configs/ti814x_evm_defconfig   | 1 +
 configs/ti816x_evm_defconfig   | 1 +
 configs/udoo_defconfig | 1 +
 configs/wandboard_defconfig| 1 +
 configs/woodburn_sd_defconfig  | 1 +
 configs/xpress_spl_defconfig   | 1 +
 configs/zc5202_defconfig   | 1 +
 configs/zc5601_defconfig   | 1 +
 include/configs/am3517_crane.h | 1 -
 include/configs/am3517_evm.h   | 1 -
 include/configs/at91sam9m10g45ek.h | 1 -
 include/configs/at91sam9n12ek.h| 1 -
 include/configs/at91sam9x5ek.h | 1 -
 include/configs/clearfog.h | 1 -
 include/configs/cm_t35.h   | 1 -
 include/configs/da850evm.h | 1 -
 include/configs/db-88f6820-gp.h| 1 -
 include/configs/imx6_spl.h | 1 -
 include/configs/kc1.h  | 1 -
 include/configs/mcx.h  | 1 -
 include/configs/omap3_evm.h| 1 -
 include/configs/picosam9g45.h  | 1 -
 include/configs/sama5d2_xplained.h | 1 -
 include/configs/sama5d3_xplained.h | 1 -
 include/configs/sama5d3xek.h   | 1 -
 include/configs/sama5d4_xplained.h | 1 -
 include/configs/sama5d4ek.h| 1 -
 include/configs/siemens-am33x-common.h | 1 -
 include/configs/sniper.h   | 1 -
 include/configs/socfpga_common.h   | 2 --
 include/configs/sunxi-common.h | 2 --
 include/configs/tam3517-common.h   | 1 -
 include/configs/tao3530.h  | 1 -
 include/configs/ti814x_evm.h   | 1 -
 include/configs/ti816x_evm.h   | 1 -
 include/configs/ti_armv7_common.h  | 1 -
 include/configs/ti_armv7_keystone2.h   | 1 -
 include/configs/tricorder.h| 1 -
 include/configs/woodburn_sd.h  | 1 -
 include/configs/xilinx_zynqmp.h| 1 -
 include/configs/zynq-common.h  | 1 -
 91 files changed, 74 insertions(+), 35 deletions(-)

diff --git a/arch/arm/cpu/armv7/omap3/Kconfig b/arch/arm/cpu/armv7/omap3/Kconfig
index 6c8a684..abb8563 100644
--- a/arch/arm/cpu/armv7/omap3/Kconfig
+++ b/arch/arm/cpu/armv7/omap3/Kconfig
@@ -15,6 +15,9 @@ config SPL_I2C_SUPPORT
 config 

[U-Boot] [PATCH v2 28/44] Convert CONFIG_SPL_MTD_SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
Move this option to Kconfig and tidy up existing uses.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 configs/am335x_baltos_defconfig   | 1 +
 configs/am335x_evm_defconfig  | 1 +
 configs/am335x_evm_nor_defconfig  | 1 +
 configs/am335x_evm_usbspl_defconfig   | 1 +
 configs/am335x_igep0033_defconfig | 1 +
 configs/am3517_evm_defconfig  | 1 +
 configs/am43xx_evm_defconfig  | 1 +
 configs/am43xx_evm_ethboot_defconfig  | 1 +
 configs/am43xx_evm_usbhost_boot_defconfig | 1 +
 configs/am43xx_hs_evm_defconfig   | 1 +
 configs/cairo_defconfig   | 1 +
 configs/cm_t335_defconfig | 1 +
 configs/cm_t43_defconfig  | 1 +
 configs/igep0020_defconfig| 3 ++-
 configs/igep0030_defconfig| 3 ++-
 configs/igep0030_nand_defconfig   | 3 ++-
 configs/igep0032_defconfig| 3 ++-
 configs/omap3_beagle_defconfig| 1 +
 configs/omap3_logic_defconfig | 1 +
 configs/omap3_overo_defconfig | 1 +
 configs/pengwyn_defconfig | 1 +
 include/configs/am3517_evm.h  | 1 -
 include/configs/devkit8000.h  | 1 -
 include/configs/ti_armv7_common.h | 1 -
 24 files changed, 25 insertions(+), 7 deletions(-)

diff --git a/configs/am335x_baltos_defconfig b/configs/am335x_baltos_defconfig
index d272156..1e26b6f 100644
--- a/configs/am335x_baltos_defconfig
+++ b/configs/am335x_baltos_defconfig
@@ -15,6 +15,7 @@ CONFIG_OF_BOARD_SETUP=y
 CONFIG_SYS_EXTRA_OPTIONS="NAND"
 CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
+CONFIG_SPL_MTD_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/am335x_evm_defconfig b/configs/am335x_evm_defconfig
index 292f39c..ead086b 100644
--- a/configs/am335x_evm_defconfig
+++ b/configs/am335x_evm_defconfig
@@ -7,6 +7,7 @@ CONFIG_SYS_EXTRA_OPTIONS="NAND"
 CONFIG_SPL_LOAD_FIT=y
 CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
+CONFIG_SPL_MTD_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/am335x_evm_nor_defconfig b/configs/am335x_evm_nor_defconfig
index 40465d4..54408fd 100644
--- a/configs/am335x_evm_nor_defconfig
+++ b/configs/am335x_evm_nor_defconfig
@@ -6,6 +6,7 @@ CONFIG_FIT=y
 CONFIG_SYS_EXTRA_OPTIONS="NAND"
 CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
+CONFIG_SPL_MTD_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/am335x_evm_usbspl_defconfig 
b/configs/am335x_evm_usbspl_defconfig
index 8d9a7fa..3b5d8e9 100644
--- a/configs/am335x_evm_usbspl_defconfig
+++ b/configs/am335x_evm_usbspl_defconfig
@@ -5,6 +5,7 @@ CONFIG_FIT=y
 CONFIG_SYS_EXTRA_OPTIONS="NAND,SPL_USBETH_SUPPORT"
 CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
+CONFIG_SPL_MTD_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/am335x_igep0033_defconfig 
b/configs/am335x_igep0033_defconfig
index b85bd44..d7f1335 100644
--- a/configs/am335x_igep0033_defconfig
+++ b/configs/am335x_igep0033_defconfig
@@ -11,6 +11,7 @@ CONFIG_SPL_MMC_SUPPORT=y
 CONFIG_SPL_STACK_R_ADDR=0x8200
 CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
+CONFIG_SPL_MTD_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/am3517_evm_defconfig b/configs/am3517_evm_defconfig
index 84930af..feb8e74 100644
--- a/configs/am3517_evm_defconfig
+++ b/configs/am3517_evm_defconfig
@@ -5,6 +5,7 @@ CONFIG_FIT=y
 CONFIG_SYS_EXTRA_OPTIONS="NAND"
 CONFIG_BOOTDELAY=10
 CONFIG_SPL=y
+CONFIG_SPL_MTD_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_SYS_PROMPT="AM3517_EVM # "
 CONFIG_CMD_BOOTZ=y
diff --git a/configs/am43xx_evm_defconfig b/configs/am43xx_evm_defconfig
index 8464087..3670e14 100644
--- a/configs/am43xx_evm_defconfig
+++ b/configs/am43xx_evm_defconfig
@@ -10,6 +10,7 @@ CONFIG_SYS_EXTRA_OPTIONS="CONS_INDEX=1,NAND"
 CONFIG_SPL_LOAD_FIT=y
 CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
+CONFIG_SPL_MTD_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/am43xx_evm_ethboot_defconfig 
b/configs/am43xx_evm_ethboot_defconfig
index e13be23..7b03eb8 100644
--- a/configs/am43xx_evm_ethboot_defconfig
+++ b/configs/am43xx_evm_ethboot_defconfig
@@ -4,6 +4,7 @@ CONFIG_TARGET_AM43XX_EVM=y
 CONFIG_SYS_EXTRA_OPTIONS="SERIAL1,CONS_INDEX=1,NAND"
 CONFIG_SPL=y
 CONFIG_SPL_ETH_SUPPORT=y
+CONFIG_SPL_MTD_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/am43xx_evm_usbhost_boot_defconfig 
b/configs/am43xx_evm_usbhost_boot_defconfig
index d78da52..249460a 100644
--- a/configs/am43xx_evm_usbhost_boot_defconfig
+++ b/configs/am43xx_evm_usbhost_boot_defconfig
@@ -11,6 +11,7 @@ 
CONFIG_SYS_EXTRA_OPTIONS="SERIAL1,CONS_INDEX=1,NAND,SPL_USB_HOST_SUPPORT"
 CONFIG_SPL_LOAD_FIT=y
 CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
+CONFIG_SPL_MTD_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 

[U-Boot] [PATCH v2 19/44] Convert CONFIG_SPL_EXT_SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
Move this option to Kconfig and tidy up existing uses.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 arch/arm/cpu/armv7/am33xx/Kconfig  | 4 
 arch/arm/cpu/armv7/omap3/Kconfig   | 3 +++
 arch/arm/cpu/armv7/omap4/Kconfig   | 3 +++
 arch/arm/cpu/armv7/omap5/Kconfig   | 3 +++
 board/ti/common/Kconfig| 3 +++
 configs/am335x_baltos_defconfig| 1 +
 configs/am335x_igep0033_defconfig  | 1 +
 configs/am335x_shc_defconfig   | 1 +
 configs/am335x_shc_ict_defconfig   | 1 +
 configs/am335x_shc_netboot_defconfig   | 1 +
 configs/am335x_shc_prompt_defconfig| 1 +
 configs/am335x_shc_sdboot_defconfig| 1 +
 configs/am335x_shc_sdboot_prompt_defconfig | 1 +
 configs/am335x_sl50_defconfig  | 1 +
 configs/birdland_bav335a_defconfig | 1 +
 configs/birdland_bav335b_defconfig | 1 +
 configs/cgtqmx6eval_defconfig  | 1 +
 configs/cm_t335_defconfig  | 1 +
 configs/cm_t35_defconfig   | 1 +
 configs/cm_t43_defconfig   | 1 +
 configs/igep0020_defconfig | 1 +
 configs/igep0030_defconfig | 1 +
 configs/igep0030_nand_defconfig| 1 +
 configs/igep0032_defconfig | 1 +
 configs/mx6cuboxi_defconfig| 1 +
 configs/mx6sabresd_spl_defconfig   | 1 +
 configs/mx6slevk_spl_defconfig | 1 +
 configs/mx6sxsabresd_spl_defconfig | 1 +
 configs/mx6ul_14x14_evk_defconfig  | 1 +
 configs/mx6ul_9x9_evk_defconfig| 1 +
 configs/novena_defconfig   | 1 +
 configs/omap3_evm_defconfig| 1 +
 configs/omap3_ha_defconfig | 1 +
 configs/pcm051_rev1_defconfig  | 1 +
 configs/pcm051_rev3_defconfig  | 1 +
 configs/pcm058_defconfig   | 1 +
 configs/pengwyn_defconfig  | 1 +
 configs/pepper_defconfig   | 1 +
 configs/platinum_picon_defconfig   | 1 +
 configs/platinum_titanium_defconfig| 1 +
 configs/sniper_defconfig   | 1 +
 configs/tao3530_defconfig  | 1 +
 configs/twister_defconfig  | 1 +
 configs/udoo_defconfig | 1 +
 configs/wandboard_defconfig| 1 +
 configs/xpress_spl_defconfig   | 1 +
 configs/zc5202_defconfig   | 1 +
 configs/zc5601_defconfig   | 1 +
 include/configs/gw_ventana.h   | 1 -
 include/configs/imx6_spl.h | 2 --
 include/configs/omap3_igep00x0.h   | 2 --
 include/configs/ti_armv7_common.h  | 1 -
 include/configs/ti_armv7_keystone2.h   | 1 -
 53 files changed, 59 insertions(+), 7 deletions(-)

diff --git a/arch/arm/cpu/armv7/am33xx/Kconfig 
b/arch/arm/cpu/armv7/am33xx/Kconfig
index dc51e9b..efbc219 100644
--- a/arch/arm/cpu/armv7/am33xx/Kconfig
+++ b/arch/arm/cpu/armv7/am33xx/Kconfig
@@ -1,4 +1,8 @@
 if AM43XX
+
+config SPL_EXT_SUPPORT
+   default y
+
 config TARGET_AM43XX_EVM
bool "Support am43xx_evm"
select TI_I2C_BOARD_DETECT
diff --git a/arch/arm/cpu/armv7/omap3/Kconfig b/arch/arm/cpu/armv7/omap3/Kconfig
index 99a25f9..85ea140 100644
--- a/arch/arm/cpu/armv7/omap3/Kconfig
+++ b/arch/arm/cpu/armv7/omap3/Kconfig
@@ -1,5 +1,8 @@
 if OMAP34XX
 
+config SPL_EXT_SUPPORT
+   default y
+
 choice
prompt "OMAP3 board select"
optional
diff --git a/arch/arm/cpu/armv7/omap4/Kconfig b/arch/arm/cpu/armv7/omap4/Kconfig
index 49adb8e..6a05625 100644
--- a/arch/arm/cpu/armv7/omap4/Kconfig
+++ b/arch/arm/cpu/armv7/omap4/Kconfig
@@ -1,5 +1,8 @@
 if OMAP44XX
 
+config SPL_EXT_SUPPORT
+   default y
+
 choice
prompt "OMAP4 board select"
optional
diff --git a/arch/arm/cpu/armv7/omap5/Kconfig b/arch/arm/cpu/armv7/omap5/Kconfig
index a8600b1..5460d7a 100644
--- a/arch/arm/cpu/armv7/omap5/Kconfig
+++ b/arch/arm/cpu/armv7/omap5/Kconfig
@@ -1,5 +1,8 @@
 if OMAP54XX
 
+config SPL_EXT_SUPPORT
+   default y
+
 choice
prompt "OMAP5 board select"
optional
diff --git a/board/ti/common/Kconfig b/board/ti/common/Kconfig
index 77c92a1..5173e6b 100644
--- a/board/ti/common/Kconfig
+++ b/board/ti/common/Kconfig
@@ -6,3 +6,6 @@ config TI_I2C_BOARD_DETECT
help
   Support for detection board information on Texas Instrument's
   Evaluation Boards which have I2C based EEPROM detection
+
+config SPL_EXT_SUPPORT
+   default y
diff --git a/configs/am335x_baltos_defconfig b/configs/am335x_baltos_defconfig
index 6f12347..6f491d8 100644
--- a/configs/am335x_baltos_defconfig
+++ b/configs/am335x_baltos_defconfig
@@ -1,5 +1,6 @@
 CONFIG_ARM=y
 CONFIG_TARGET_AM335X_BALTOS=y
+CONFIG_SPL_EXT_SUPPORT=y
 CONFIG_SPL_STACK_R_ADDR=0x8200
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
diff --git a/configs/am335x_igep0033_defconfig 

[U-Boot] [PATCH v2 20/44] Convert CONFIG_SPL_FAT_SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
Move this option to Kconfig and tidy up existing uses.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 arch/arm/cpu/armv7/omap3/Kconfig   | 3 +++
 arch/arm/cpu/armv7/omap4/Kconfig   | 3 +++
 arch/arm/cpu/armv7/omap5/Kconfig   | 3 +++
 arch/arm/cpu/armv8/zynqmp/Kconfig  | 3 +++
 arch/arm/mach-zynq/Kconfig | 3 +++
 board/ti/common/Kconfig| 3 +++
 configs/am335x_baltos_defconfig| 1 +
 configs/am335x_igep0033_defconfig  | 1 +
 configs/am335x_shc_defconfig   | 1 +
 configs/am335x_shc_ict_defconfig   | 1 +
 configs/am335x_shc_netboot_defconfig   | 1 +
 configs/am335x_shc_prompt_defconfig| 1 +
 configs/am335x_shc_sdboot_defconfig| 1 +
 configs/am335x_shc_sdboot_prompt_defconfig | 1 +
 configs/am335x_sl50_defconfig  | 1 +
 configs/at91sam9m10g45ek_mmc_defconfig | 1 +
 configs/birdland_bav335a_defconfig | 1 +
 configs/birdland_bav335b_defconfig | 1 +
 configs/cm_t335_defconfig  | 1 +
 configs/cm_t43_defconfig   | 1 +
 configs/draco_defconfig| 1 +
 configs/etamin_defconfig   | 1 +
 configs/novena_defconfig   | 1 +
 configs/pcm051_rev1_defconfig  | 1 +
 configs/pcm051_rev3_defconfig  | 1 +
 configs/pengwyn_defconfig  | 1 +
 configs/pepper_defconfig   | 1 +
 configs/picosam9g45_defconfig  | 1 +
 configs/pxm2_defconfig | 1 +
 configs/rastaban_defconfig | 1 +
 configs/rut_defconfig  | 1 +
 configs/sama5d2_xplained_mmc_defconfig | 1 +
 configs/sama5d3_xplained_mmc_defconfig | 1 +
 configs/sama5d3xek_mmc_defconfig   | 1 +
 configs/sama5d4_xplained_mmc_defconfig | 1 +
 configs/sama5d4ek_mmc_defconfig| 1 +
 configs/thuban_defconfig   | 1 +
 configs/ti814x_evm_defconfig   | 1 +
 configs/ti816x_evm_defconfig   | 1 +
 include/configs/am3517_crane.h | 1 -
 include/configs/am3517_evm.h   | 1 -
 include/configs/at91sam9m10g45ek.h | 1 -
 include/configs/at91sam9n12ek.h| 1 -
 include/configs/at91sam9x5ek.h | 1 -
 include/configs/cm_t35.h   | 1 -
 include/configs/mcx.h  | 1 -
 include/configs/novena.h   | 1 -
 include/configs/omap3_evm.h| 1 -
 include/configs/picosam9g45.h  | 1 -
 include/configs/sama5d2_xplained.h | 1 -
 include/configs/sama5d3_xplained.h | 1 -
 include/configs/sama5d3xek.h   | 1 -
 include/configs/sama5d4_xplained.h | 1 -
 include/configs/sama5d4ek.h| 1 -
 include/configs/siemens-am33x-common.h | 1 -
 include/configs/sniper.h   | 1 -
 include/configs/tam3517-common.h   | 1 -
 include/configs/tao3530.h  | 1 -
 include/configs/ti814x_evm.h   | 1 -
 include/configs/ti816x_evm.h   | 1 -
 include/configs/ti_armv7_common.h  | 1 -
 include/configs/ti_armv7_keystone2.h   | 1 -
 include/configs/tqma6.h| 1 -
 include/configs/tricorder.h| 1 -
 include/configs/xilinx_zynqmp.h| 1 -
 include/configs/zynq-common.h  | 1 -
 66 files changed, 51 insertions(+), 27 deletions(-)

diff --git a/arch/arm/cpu/armv7/omap3/Kconfig b/arch/arm/cpu/armv7/omap3/Kconfig
index 85ea140..de65ac6 100644
--- a/arch/arm/cpu/armv7/omap3/Kconfig
+++ b/arch/arm/cpu/armv7/omap3/Kconfig
@@ -3,6 +3,9 @@ if OMAP34XX
 config SPL_EXT_SUPPORT
default y
 
+config SPL_FAT_SUPPORT
+   default y
+
 choice
prompt "OMAP3 board select"
optional
diff --git a/arch/arm/cpu/armv7/omap4/Kconfig b/arch/arm/cpu/armv7/omap4/Kconfig
index 6a05625..92eb2f4 100644
--- a/arch/arm/cpu/armv7/omap4/Kconfig
+++ b/arch/arm/cpu/armv7/omap4/Kconfig
@@ -3,6 +3,9 @@ if OMAP44XX
 config SPL_EXT_SUPPORT
default y
 
+config SPL_FAT_SUPPORT
+   default y
+
 choice
prompt "OMAP4 board select"
optional
diff --git a/arch/arm/cpu/armv7/omap5/Kconfig b/arch/arm/cpu/armv7/omap5/Kconfig
index 5460d7a..e367828 100644
--- a/arch/arm/cpu/armv7/omap5/Kconfig
+++ b/arch/arm/cpu/armv7/omap5/Kconfig
@@ -3,6 +3,9 @@ if OMAP54XX
 config SPL_EXT_SUPPORT
default y
 
+config SPL_FAT_SUPPORT
+   default y
+
 choice
prompt "OMAP5 board select"
optional
diff --git a/arch/arm/cpu/armv8/zynqmp/Kconfig 
b/arch/arm/cpu/armv8/zynqmp/Kconfig
index ed3305d..a049fad 100644
--- a/arch/arm/cpu/armv8/zynqmp/Kconfig
+++ b/arch/arm/cpu/armv8/zynqmp/Kconfig
@@ -1,5 +1,8 @@
 if ARCH_ZYNQMP
 
+config SPL_FAT_SUPPORT
+   default y
+
 config SYS_BOARD
default "zynqmp"
 
diff --git a/arch/arm/mach-zynq/Kconfig b/arch/arm/mach-zynq/Kconfig
index 

[U-Boot] [PATCH v2 18/44] Convert CONFIG_SPL_ETH_SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
Move this option to Kconfig and tidy up existing uses.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 configs/am43xx_evm_ethboot_defconfig | 3 ++-
 configs/pcm051_rev1_defconfig| 1 +
 configs/pcm051_rev3_defconfig| 1 +
 configs/pengwyn_defconfig| 1 +
 include/configs/am335x_shc.h | 1 -
 include/configs/baltos.h | 1 -
 include/configs/draco.h  | 1 -
 include/configs/etamin.h | 1 -
 include/configs/pcm051.h | 1 -
 include/configs/pengwyn.h| 2 --
 include/configs/pxm2.h   | 1 -
 include/configs/rastaban.h   | 1 -
 include/configs/rut.h| 1 -
 include/configs/thuban.h | 1 -
 14 files changed, 5 insertions(+), 12 deletions(-)

diff --git a/configs/am43xx_evm_ethboot_defconfig 
b/configs/am43xx_evm_ethboot_defconfig
index ec9dd6f..e13be23 100644
--- a/configs/am43xx_evm_ethboot_defconfig
+++ b/configs/am43xx_evm_ethboot_defconfig
@@ -1,8 +1,9 @@
 CONFIG_ARM=y
 CONFIG_AM43XX=y
 CONFIG_TARGET_AM43XX_EVM=y
-CONFIG_SYS_EXTRA_OPTIONS="SERIAL1,CONS_INDEX=1,NAND,SPL_ETH_SUPPORT"
+CONFIG_SYS_EXTRA_OPTIONS="SERIAL1,CONS_INDEX=1,NAND"
 CONFIG_SPL=y
+CONFIG_SPL_ETH_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/pcm051_rev1_defconfig b/configs/pcm051_rev1_defconfig
index e472287..12a9dfe 100644
--- a/configs/pcm051_rev1_defconfig
+++ b/configs/pcm051_rev1_defconfig
@@ -3,6 +3,7 @@ CONFIG_TARGET_PCM051=y
 CONFIG_SPL_ENV_SUPPORT=y
 CONFIG_SYS_EXTRA_OPTIONS="REV1"
 CONFIG_SPL=y
+CONFIG_SPL_ETH_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/pcm051_rev3_defconfig b/configs/pcm051_rev3_defconfig
index ec7fee8..cdfce63 100644
--- a/configs/pcm051_rev3_defconfig
+++ b/configs/pcm051_rev3_defconfig
@@ -3,6 +3,7 @@ CONFIG_TARGET_PCM051=y
 CONFIG_SPL_ENV_SUPPORT=y
 CONFIG_SYS_EXTRA_OPTIONS="REV3"
 CONFIG_SPL=y
+CONFIG_SPL_ETH_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/pengwyn_defconfig b/configs/pengwyn_defconfig
index 0e4524c..be9ddec 100644
--- a/configs/pengwyn_defconfig
+++ b/configs/pengwyn_defconfig
@@ -2,6 +2,7 @@ CONFIG_ARM=y
 CONFIG_TARGET_PENGWYN=y
 CONFIG_SPL_ENV_SUPPORT=y
 CONFIG_SPL=y
+CONFIG_SPL_ETH_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/include/configs/am335x_shc.h b/include/configs/am335x_shc.h
index 660dca4..b4f7432 100644
--- a/include/configs/am335x_shc.h
+++ b/include/configs/am335x_shc.h
@@ -329,7 +329,6 @@
 #if defined CONFIG_SHC_NETBOOT
 #ifdef CONFIG_SPL_BUILD
 #define CONFIG_SPL_NET_SUPPORT
-#define CONFIG_SPL_ETH_SUPPORT
 #define CONFIG_SPL_NET_VCI_STRING  "AM335x U-Boot SPL"
 #define CONFIG_SPL_MMC_SUPPORT
 #define CONFIG_ENV_IS_NOWHERE
diff --git a/include/configs/baltos.h b/include/configs/baltos.h
index 6f22e14..5e9e253 100644
--- a/include/configs/baltos.h
+++ b/include/configs/baltos.h
@@ -294,7 +294,6 @@
 /*
  * Disable CPSW SPL support so we fit within the 101KiB limit.
  */
-#undef CONFIG_SPL_ETH_SUPPORT
 #endif
 
 /* Network. */
diff --git a/include/configs/draco.h b/include/configs/draco.h
index 889178c..f4d9331 100644
--- a/include/configs/draco.h
+++ b/include/configs/draco.h
@@ -50,7 +50,6 @@
 
 #undef CONFIG_SPL_NET_SUPPORT
 #undef CONFIG_SPL_NET_VCI_STRING
-#undef CONFIG_SPL_ETH_SUPPORT
 
 #undef CONFIG_MII
 #undef CONFIG_PHY_GIGE
diff --git a/include/configs/etamin.h b/include/configs/etamin.h
index 4919cfe..32334ad 100644
--- a/include/configs/etamin.h
+++ b/include/configs/etamin.h
@@ -108,7 +108,6 @@
 
 #undef CONFIG_SPL_NET_SUPPORT
 #undef CONFIG_SPL_NET_VCI_STRING
-#undef CONFIG_SPL_ETH_SUPPORT
 
 #undef CONFIG_MII
 #undef CONFIG_PHY_GIGE
diff --git a/include/configs/pcm051.h b/include/configs/pcm051.h
index 231fd82..ddb36f5 100644
--- a/include/configs/pcm051.h
+++ b/include/configs/pcm051.h
@@ -123,7 +123,6 @@
 #define CONFIG_SPL_YMODEM_SUPPORT
 #define CONFIG_SPL_NET_SUPPORT
 #define CONFIG_SPL_NET_VCI_STRING  "pcm051 U-Boot SPL"
-#define CONFIG_SPL_ETH_SUPPORT
 #define CONFIG_SPL_LDSCRIPT"$(CPUDIR)/am33xx/u-boot-spl.lds"
 
 #ifdef CONFIG_SPI_BOOT
diff --git a/include/configs/pengwyn.h b/include/configs/pengwyn.h
index 5028535..447d02b 100644
--- a/include/configs/pengwyn.h
+++ b/include/configs/pengwyn.h
@@ -205,7 +205,6 @@
 #if defined(CONFIG_SPL_BUILD)
 /* disable host part of MUSB in SPL */
 /* Disable CPSW SPL support so we fit within the 101KiB limit. */
-#undef CONFIG_SPL_ETH_SUPPORT
 #endif
 
 /* CPSW ethernet */
@@ -218,7 +217,6 @@
 #define CONFIG_PHY_REALTEK
 
 /* CPSW support */
-#define CONFIG_SPL_ETH_SUPPORT
 
 #define CONFIG_SPL_LDSCRIPT"$(CPUDIR)/am33xx/u-boot-spl.lds"
 
diff --git a/include/configs/pxm2.h b/include/configs/pxm2.h
index 990fd84..55b0bac 100644
--- a/include/configs/pxm2.h
+++ b/include/configs/pxm2.h
@@ -44,7 +44,6 @@
 
 #undef 

[U-Boot] [PATCH v2 15/44] Convert CONFIG_SPL_DMA_SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
Move this option to Kconfig and tidy up existing uses.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 configs/am57xx_evm_defconfig| 1 +
 configs/am57xx_evm_nodt_defconfig   | 1 +
 configs/am57xx_hs_evm_defconfig | 1 +
 configs/dra7xx_evm_defconfig| 1 +
 configs/dra7xx_hs_evm_defconfig | 1 +
 configs/gwventana_defconfig | 1 +
 configs/pcm058_defconfig| 1 +
 configs/platinum_picon_defconfig| 1 +
 configs/platinum_titanium_defconfig | 1 +
 include/configs/am57xx_evm.h| 1 -
 include/configs/dra7xx_evm.h| 1 -
 include/configs/imx6_spl.h  | 1 -
 include/configs/pcm058.h| 1 -
 13 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/configs/am57xx_evm_defconfig b/configs/am57xx_evm_defconfig
index 37de969..c661030 100644
--- a/configs/am57xx_evm_defconfig
+++ b/configs/am57xx_evm_defconfig
@@ -10,6 +10,7 @@ CONFIG_OF_BOARD_SETUP=y
 CONFIG_SPL_LOAD_FIT=y
 CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
+CONFIG_SPL_DMA_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/am57xx_evm_nodt_defconfig 
b/configs/am57xx_evm_nodt_defconfig
index 94c326b..ffc23e9 100644
--- a/configs/am57xx_evm_nodt_defconfig
+++ b/configs/am57xx_evm_nodt_defconfig
@@ -2,6 +2,7 @@ CONFIG_ARM=y
 CONFIG_OMAP54XX=y
 CONFIG_TARGET_AM57XX_EVM=y
 CONFIG_SPL=y
+CONFIG_SPL_DMA_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/am57xx_hs_evm_defconfig b/configs/am57xx_hs_evm_defconfig
index c81e21a..bafd64e 100644
--- a/configs/am57xx_hs_evm_defconfig
+++ b/configs/am57xx_hs_evm_defconfig
@@ -12,6 +12,7 @@ CONFIG_SPL_LOAD_FIT=y
 CONFIG_SPL_FIT_IMAGE_POST_PROCESS=y
 CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
+CONFIG_SPL_DMA_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/dra7xx_evm_defconfig b/configs/dra7xx_evm_defconfig
index 14d4a4b..a88b9f6 100644
--- a/configs/dra7xx_evm_defconfig
+++ b/configs/dra7xx_evm_defconfig
@@ -10,6 +10,7 @@ CONFIG_OF_BOARD_SETUP=y
 CONFIG_SPL_LOAD_FIT=y
 CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
+CONFIG_SPL_DMA_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/dra7xx_hs_evm_defconfig b/configs/dra7xx_hs_evm_defconfig
index 92b4246..4f44a90 100644
--- a/configs/dra7xx_hs_evm_defconfig
+++ b/configs/dra7xx_hs_evm_defconfig
@@ -13,6 +13,7 @@ CONFIG_SPL_LOAD_FIT=y
 CONFIG_SPL_FIT_IMAGE_POST_PROCESS=y
 CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
+CONFIG_SPL_DMA_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/gwventana_defconfig b/configs/gwventana_defconfig
index c31bff8..02a4600 100644
--- a/configs/gwventana_defconfig
+++ b/configs/gwventana_defconfig
@@ -10,6 +10,7 @@ 
CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg,MX6QDL"
 CONFIG_BOOTDELAY=3
 CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
+CONFIG_SPL_DMA_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_SYS_PROMPT="Ventana > "
 CONFIG_CMD_BOOTZ=y
diff --git a/configs/pcm058_defconfig b/configs/pcm058_defconfig
index 60c80cd..e7305d3 100644
--- a/configs/pcm058_defconfig
+++ b/configs/pcm058_defconfig
@@ -5,6 +5,7 @@ CONFIG_FIT=y
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg,MX6Q"
 CONFIG_BOOTDELAY=3
 CONFIG_SPL=y
+CONFIG_SPL_DMA_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMLS is not set
diff --git a/configs/platinum_picon_defconfig b/configs/platinum_picon_defconfig
index 0eec7ae..68f8f1d 100644
--- a/configs/platinum_picon_defconfig
+++ b/configs/platinum_picon_defconfig
@@ -4,6 +4,7 @@ CONFIG_TARGET_PLATINUM_PICON=y
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg,MX6DL"
 CONFIG_BOOTDELAY=3
 CONFIG_SPL=y
+CONFIG_SPL_DMA_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_SYS_PROMPT="picon > "
 CONFIG_CMD_BOOTZ=y
diff --git a/configs/platinum_titanium_defconfig 
b/configs/platinum_titanium_defconfig
index 45e71cc..acf8c7c 100644
--- a/configs/platinum_titanium_defconfig
+++ b/configs/platinum_titanium_defconfig
@@ -4,6 +4,7 @@ CONFIG_TARGET_PLATINUM_TITANIUM=y
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg,MX6Q"
 CONFIG_BOOTDELAY=3
 CONFIG_SPL=y
+CONFIG_SPL_DMA_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_SYS_PROMPT="titanium > "
 CONFIG_CMD_BOOTZ=y
diff --git a/include/configs/am57xx_evm.h b/include/configs/am57xx_evm.h
index 46e8d4c..1035a5b 100644
--- a/include/configs/am57xx_evm.h
+++ b/include/configs/am57xx_evm.h
@@ -108,7 +108,6 @@
 
 /* SPI SPL */
 #define CONFIG_SPL_SPI_SUPPORT
-#define CONFIG_SPL_DMA_SUPPORT
 #define CONFIG_TI_EDMA3
 #define CONFIG_SPL_SPI_LOAD
 #define CONFIG_SPL_SPI_FLASH_SUPPORT
diff --git a/include/configs/dra7xx_evm.h b/include/configs/dra7xx_evm.h
index b66949f..4d862ac 100644
--- a/include/configs/dra7xx_evm.h
+++ b/include/configs/dra7xx_evm.h
@@ -200,7 +200,6 @@
 
 /* SPI SPL */
 #define CONFIG_SPL_SPI_SUPPORT
-#define 

[U-Boot] [PATCH v2 21/44] Convert CONFIG_SPL_GPIO_SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
Move this option to Kconfig and tidy up existing uses.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 arch/arm/cpu/armv7/am33xx/Kconfig| 3 +++
 arch/arm/cpu/armv7/omap3/Kconfig | 3 +++
 arch/arm/cpu/armv7/omap4/Kconfig | 3 +++
 arch/arm/cpu/armv7/omap5/Kconfig | 3 +++
 arch/arm/mach-exynos/Kconfig | 3 +++
 arch/arm/mach-tegra/Kconfig  | 3 +++
 board/sunxi/Kconfig  | 3 +++
 board/ti/common/Kconfig  | 3 +++
 configs/am335x_baltos_defconfig  | 1 +
 configs/am335x_igep0033_defconfig| 1 +
 configs/am335x_shc_defconfig | 1 +
 configs/am335x_shc_ict_defconfig | 1 +
 configs/am335x_shc_netboot_defconfig | 1 +
 configs/am335x_shc_prompt_defconfig  | 1 +
 configs/am335x_shc_sdboot_defconfig  | 1 +
 configs/am335x_shc_sdboot_prompt_defconfig   | 1 +
 configs/am335x_sl50_defconfig| 1 +
 configs/apx4devkit_defconfig | 1 +
 configs/at91sam9m10g45ek_mmc_defconfig   | 1 +
 configs/at91sam9m10g45ek_nandflash_defconfig | 1 +
 configs/at91sam9n12ek_nandflash_defconfig| 1 +
 configs/at91sam9n12ek_spiflash_defconfig | 1 +
 configs/at91sam9x5ek_nandflash_defconfig | 1 +
 configs/at91sam9x5ek_spiflash_defconfig  | 1 +
 configs/axm_defconfig| 1 +
 configs/bg0900_defconfig | 1 +
 configs/birdland_bav335a_defconfig   | 1 +
 configs/birdland_bav335b_defconfig   | 1 +
 configs/brppt1_mmc_defconfig | 1 +
 configs/brppt1_nand_defconfig| 1 +
 configs/brppt1_spi_defconfig | 1 +
 configs/brxre1_defconfig | 1 +
 configs/cgtqmx6eval_defconfig| 1 +
 configs/cm_fx6_defconfig | 1 +
 configs/cm_t335_defconfig| 1 +
 configs/corvus_defconfig | 1 +
 configs/draco_defconfig  | 1 +
 configs/etamin_defconfig | 1 +
 configs/gwventana_defconfig  | 1 +
 configs/ipam390_defconfig| 1 +
 configs/m28evk_defconfig | 1 +
 configs/m53evk_defconfig | 1 +
 configs/ma5d4evk_defconfig   | 1 +
 configs/mx23_olinuxino_defconfig | 1 +
 configs/mx23evk_defconfig| 1 +
 configs/mx28evk_auart_console_defconfig  | 1 +
 configs/mx28evk_defconfig| 1 +
 configs/mx28evk_nand_defconfig   | 1 +
 configs/mx28evk_spi_defconfig| 1 +
 configs/mx6cuboxi_defconfig  | 1 +
 configs/mx6sabresd_spl_defconfig | 1 +
 configs/mx6slevk_spl_defconfig   | 1 +
 configs/mx6sxsabresd_spl_defconfig   | 1 +
 configs/mx6ul_14x14_evk_defconfig| 1 +
 configs/mx6ul_9x9_evk_defconfig  | 1 +
 configs/novena_defconfig | 1 +
 configs/ot1200_spl_defconfig | 1 +
 configs/pcm051_rev1_defconfig| 1 +
 configs/pcm051_rev3_defconfig| 1 +
 configs/pcm058_defconfig | 1 +
 configs/pengwyn_defconfig| 1 +
 configs/pepper_defconfig | 1 +
 configs/picosam9g45_defconfig| 1 +
 configs/platinum_picon_defconfig | 1 +
 configs/platinum_titanium_defconfig  | 1 +
 configs/pxm2_defconfig   | 1 +
 configs/rastaban_defconfig   | 1 +
 configs/rut_defconfig| 1 +
 configs/sama5d2_ptc_nandflash_defconfig  | 1 +
 configs/sama5d2_ptc_spiflash_defconfig   | 1 +
 configs/sama5d2_xplained_mmc_defconfig   | 1 +
 configs/sama5d2_xplained_spiflash_defconfig  | 1 +
 configs/sama5d3_xplained_mmc_defconfig   | 1 +
 configs/sama5d3_xplained_nandflash_defconfig | 1 +
 configs/sama5d3xek_mmc_defconfig | 1 +
 configs/sama5d3xek_nandflash_defconfig   | 1 +
 configs/sama5d3xek_spiflash_defconfig| 1 +
 configs/sama5d4_xplained_mmc_defconfig   | 1 +
 configs/sama5d4_xplained_nandflash_defconfig | 1 +
 configs/sama5d4_xplained_spiflash_defconfig  | 1 +
 configs/sama5d4ek_mmc_defconfig  | 1 +
 configs/sama5d4ek_nandflash_defconfig| 1 +
 configs/sama5d4ek_spiflash_defconfig | 1 +
 configs/sansa_fuze_plus_defconfig| 1 +
 configs/sc_sps_1_defconfig   | 1 +
 configs/smartweb_defconfig   | 1 +
 configs/taurus_defconfig | 1 +
 configs/thuban_defconfig | 1 +
 configs/ti814x_evm_defconfig | 1 +
 configs/ti816x_evm_defconfig | 1 +
 configs/udoo_defconfig   | 1 +
 configs/wandboard_defconfig  | 1 +
 configs/woodburn_sd_defconfig| 1 +
 

[U-Boot] [PATCH v2 13/44] Convert CONFIG_SPL_CRYPTO_SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
Move this option to Kconfig and tidy up existing uses.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 arch/arm/include/asm/fsl_secure_boot.h  | 1 -
 arch/powerpc/include/asm/fsl_secure_boot.h  | 1 -
 configs/T1042RDB_PI_NAND_SECURE_BOOT_defconfig  | 1 +
 configs/ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig | 1 +
 4 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/include/asm/fsl_secure_boot.h 
b/arch/arm/include/asm/fsl_secure_boot.h
index b6ca7bb..b9aad04 100644
--- a/arch/arm/include/asm/fsl_secure_boot.h
+++ b/arch/arm/include/asm/fsl_secure_boot.h
@@ -27,7 +27,6 @@
 #endif
 
 #define CONFIG_SPL_BOARD_INIT
-#define CONFIG_SPL_CRYPTO_SUPPORT
 #define CONFIG_SPL_HASH_SUPPORT
 #define CONFIG_SPL_DRIVERS_MISC_SUPPORT
 #ifdef CONFIG_SPL_BUILD
diff --git a/arch/powerpc/include/asm/fsl_secure_boot.h 
b/arch/powerpc/include/asm/fsl_secure_boot.h
index 5d93fdc..8fa1908 100644
--- a/arch/powerpc/include/asm/fsl_secure_boot.h
+++ b/arch/powerpc/include/asm/fsl_secure_boot.h
@@ -80,7 +80,6 @@
 
 #ifdef CONFIG_CHAIN_OF_TRUST
 
-#define CONFIG_SPL_CRYPTO_SUPPORT
 #define CONFIG_SPL_HASH_SUPPORT
 #define CONFIG_SPL_DRIVERS_MISC_SUPPORT
 
diff --git a/configs/T1042RDB_PI_NAND_SECURE_BOOT_defconfig 
b/configs/T1042RDB_PI_NAND_SECURE_BOOT_defconfig
index 9a3837e..ec92872 100644
--- a/configs/T1042RDB_PI_NAND_SECURE_BOOT_defconfig
+++ b/configs/T1042RDB_PI_NAND_SECURE_BOOT_defconfig
@@ -8,6 +8,7 @@ CONFIG_OF_STDOUT_VIA_ALIAS=y
 
CONFIG_SYS_EXTRA_OPTIONS="PPC_T1042,T1042RDB_PI,RAMBOOT_PBL,SPL_FSL_PBL,NAND,SECURE_BOOT"
 CONFIG_BOOTDELAY=0
 CONFIG_SPL=y
+CONFIG_SPL_CRYPTO_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_GREPENV=y
 CONFIG_CMD_MMC=y
diff --git a/configs/ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig 
b/configs/ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig
index 797b9f5..1866cb9 100644
--- a/configs/ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig
+++ b/configs/ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig
@@ -7,6 +7,7 @@ CONFIG_OF_STDOUT_VIA_ALIAS=y
 CONFIG_SYS_EXTRA_OPTIONS="RAMBOOT_PBL,SPL_FSL_PBL,SD_BOOT,SECURE_BOOT"
 CONFIG_BOOTDELAY=0
 CONFIG_SPL=y
+CONFIG_SPL_CRYPTO_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 CONFIG_CMD_GREPENV=y
-- 
2.8.0.rc3.226.g39d4020

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 05/44] arm: fsl: Adjust ordering of #ifndef CONFIG_SPL_BUILD

2016-08-29 Thread Simon Glass
The secure boot header files incorrectly define SPL options only if
CONFIG_SPL_BUILD is defined. This means that the options are only enabled
in an SPL build, and not with a normal 'make xxx_defconfig'. This means
that moveconfig.py cannot work, since it sees the options as disabled even
when they may be manually enabled in an SPL build.

Fix this by changing the order.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 arch/arm/include/asm/fsl_secure_boot.h | 2 +-
 arch/powerpc/include/asm/fsl_secure_boot.h | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/arm/include/asm/fsl_secure_boot.h 
b/arch/arm/include/asm/fsl_secure_boot.h
index b35c271..1d379c7 100644
--- a/arch/arm/include/asm/fsl_secure_boot.h
+++ b/arch/arm/include/asm/fsl_secure_boot.h
@@ -26,13 +26,13 @@
 #define CONFIG_FSL_CAAM
 #endif
 
-#ifdef CONFIG_SPL_BUILD
 #define CONFIG_SPL_BOARD_INIT
 #define CONFIG_SPL_DM  1
 #define CONFIG_SPL_CRYPTO_SUPPORT
 #define CONFIG_SPL_HASH_SUPPORT
 #define CONFIG_SPL_RSA
 #define CONFIG_SPL_DRIVERS_MISC_SUPPORT
+#ifdef CONFIG_SPL_BUILD
 /*
  * Define the key hash for U-Boot here if public/private key pair used to
  * sign U-boot are different from the SRK hash put in the fuse
diff --git a/arch/powerpc/include/asm/fsl_secure_boot.h 
b/arch/powerpc/include/asm/fsl_secure_boot.h
index 2e937f0..01255d8 100644
--- a/arch/powerpc/include/asm/fsl_secure_boot.h
+++ b/arch/powerpc/include/asm/fsl_secure_boot.h
@@ -80,12 +80,13 @@
 
 #ifdef CONFIG_CHAIN_OF_TRUST
 
-#ifdef CONFIG_SPL_BUILD
 #define CONFIG_SPL_DM  1
 #define CONFIG_SPL_CRYPTO_SUPPORT
 #define CONFIG_SPL_HASH_SUPPORT
 #define CONFIG_SPL_RSA
 #define CONFIG_SPL_DRIVERS_MISC_SUPPORT
+
+#ifdef CONFIG_SPL_BUILD
 /*
  * PPAACT and SPAACT table for PAMU must be placed on DDR after DDR init
  * due to space crunch on CPC and thus malloc will not work.
-- 
2.8.0.rc3.226.g39d4020

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 17/44] Convert CONFIG_SPL_ENV_SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
Move this option to Kconfig and tidy up existing uses.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 board/ti/am335x/Kconfig | 3 +++
 board/ti/common/Kconfig | 3 +++
 configs/B4420QDS_NAND_defconfig | 1 +
 configs/B4860QDS_NAND_defconfig | 1 +
 configs/C29XPCIE_NAND_defconfig | 1 +
 configs/P1010RDB-PA_36BIT_NAND_defconfig| 3 ++-
 configs/P1010RDB-PA_36BIT_SDCARD_defconfig  | 1 +
 configs/P1010RDB-PA_36BIT_SPIFLASH_defconfig| 1 +
 configs/P1010RDB-PA_NAND_defconfig  | 3 ++-
 configs/P1010RDB-PA_SDCARD_defconfig| 1 +
 configs/P1010RDB-PA_SPIFLASH_defconfig  | 1 +
 configs/P1010RDB-PB_36BIT_NAND_defconfig| 3 ++-
 configs/P1010RDB-PB_36BIT_SDCARD_defconfig  | 1 +
 configs/P1010RDB-PB_36BIT_SPIFLASH_defconfig| 1 +
 configs/P1010RDB-PB_NAND_defconfig  | 3 ++-
 configs/P1010RDB-PB_SDCARD_defconfig| 1 +
 configs/P1010RDB-PB_SPIFLASH_defconfig  | 1 +
 configs/P1020MBG-PC_36BIT_SDCARD_defconfig  | 1 +
 configs/P1020MBG-PC_SDCARD_defconfig| 1 +
 configs/P1020RDB-PC_36BIT_NAND_defconfig| 1 +
 configs/P1020RDB-PC_36BIT_SDCARD_defconfig  | 1 +
 configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig| 1 +
 configs/P1020RDB-PC_NAND_defconfig  | 1 +
 configs/P1020RDB-PC_SDCARD_defconfig| 1 +
 configs/P1020RDB-PC_SPIFLASH_defconfig  | 1 +
 configs/P1020RDB-PD_NAND_defconfig  | 1 +
 configs/P1020RDB-PD_SDCARD_defconfig| 1 +
 configs/P1020RDB-PD_SPIFLASH_defconfig  | 1 +
 configs/P1020UTM-PC_36BIT_SDCARD_defconfig  | 1 +
 configs/P1020UTM-PC_SDCARD_defconfig| 1 +
 configs/P1021RDB-PC_36BIT_NAND_defconfig| 1 +
 configs/P1021RDB-PC_36BIT_SDCARD_defconfig  | 1 +
 configs/P1021RDB-PC_36BIT_SPIFLASH_defconfig| 1 +
 configs/P1021RDB-PC_NAND_defconfig  | 1 +
 configs/P1021RDB-PC_SDCARD_defconfig| 1 +
 configs/P1021RDB-PC_SPIFLASH_defconfig  | 1 +
 configs/P1022DS_36BIT_NAND_defconfig| 1 +
 configs/P1022DS_36BIT_SDCARD_defconfig  | 1 +
 configs/P1022DS_36BIT_SPIFLASH_defconfig| 1 +
 configs/P1022DS_NAND_defconfig  | 1 +
 configs/P1022DS_SDCARD_defconfig| 1 +
 configs/P1022DS_SPIFLASH_defconfig  | 1 +
 configs/P1024RDB_NAND_defconfig | 1 +
 configs/P1024RDB_SDCARD_defconfig   | 1 +
 configs/P1024RDB_SPIFLASH_defconfig | 1 +
 configs/P1025RDB_NAND_defconfig | 1 +
 configs/P1025RDB_SDCARD_defconfig   | 1 +
 configs/P1025RDB_SPIFLASH_defconfig | 1 +
 configs/P2020RDB-PC_36BIT_NAND_defconfig| 1 +
 configs/P2020RDB-PC_36BIT_SDCARD_defconfig  | 1 +
 configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig| 1 +
 configs/P2020RDB-PC_NAND_defconfig  | 1 +
 configs/P2020RDB-PC_SDCARD_defconfig| 1 +
 configs/P2020RDB-PC_SPIFLASH_defconfig  | 1 +
 configs/T1023RDB_NAND_defconfig | 1 +
 configs/T1023RDB_SDCARD_defconfig   | 1 +
 configs/T1023RDB_SPIFLASH_defconfig | 1 +
 configs/T1024QDS_NAND_defconfig | 1 +
 configs/T1024QDS_SDCARD_defconfig   | 1 +
 configs/T1024QDS_SPIFLASH_defconfig | 1 +
 configs/T1024RDB_NAND_defconfig | 1 +
 configs/T1024RDB_SDCARD_defconfig   | 1 +
 configs/T1024RDB_SPIFLASH_defconfig | 1 +
 configs/T1040D4RDB_NAND_defconfig   | 1 +
 configs/T1040D4RDB_SDCARD_defconfig | 1 +
 configs/T1040D4RDB_SPIFLASH_defconfig   | 1 +
 configs/T1040RDB_NAND_defconfig | 1 +
 configs/T1040RDB_SDCARD_defconfig   | 1 +
 configs/T1040RDB_SPIFLASH_defconfig | 1 +
 configs/T1042D4RDB_NAND_defconfig   | 1 +
 configs/T1042D4RDB_SDCARD_defconfig | 1 +
 configs/T1042D4RDB_SPIFLASH_defconfig   | 1 +
 configs/T1042RDB_PI_NAND_SECURE_BOOT_defconfig  | 1 +
 configs/T1042RDB_PI_NAND_defconfig  | 1 +
 configs/T1042RDB_PI_SDCARD_defconfig| 1 +
 configs/T1042RDB_PI_SPIFLASH_defconfig  | 1 +
 configs/T2080QDS_NAND_defconfig | 1 +
 configs/T2080QDS_SDCARD_defconfig   | 1 +
 configs/T2080QDS_SPIFLASH_defconfig | 1 +
 configs/T2080RDB_NAND_defconfig | 1 +
 configs/T2080RDB_SDCARD_defconfig   | 1 +
 configs/T2080RDB_SPIFLASH_defconfig | 1 +
 

[U-Boot] [PATCH v2 12/44] spear: Use upper case for CONFIG options

2016-08-29 Thread Simon Glass
There are a few options which use lower case. We should use upper case for
all CONFIG options.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 arch/arm/cpu/arm926ejs/spear/timer.c   | 2 +-
 configs/spear300_defconfig | 2 +-
 configs/spear300_nand_defconfig| 2 +-
 configs/spear300_usbtty_defconfig  | 2 +-
 configs/spear300_usbtty_nand_defconfig | 2 +-
 configs/spear310_defconfig | 2 +-
 configs/spear310_nand_defconfig| 2 +-
 configs/spear310_pnor_defconfig| 2 +-
 configs/spear310_usbtty_defconfig  | 2 +-
 configs/spear310_usbtty_nand_defconfig | 2 +-
 configs/spear310_usbtty_pnor_defconfig | 2 +-
 configs/spear320_defconfig | 2 +-
 configs/spear320_nand_defconfig| 2 +-
 configs/spear320_pnor_defconfig| 2 +-
 configs/spear320_usbtty_defconfig  | 2 +-
 configs/spear320_usbtty_nand_defconfig | 2 +-
 configs/spear320_usbtty_pnor_defconfig | 2 +-
 configs/spear600_defconfig | 2 +-
 configs/spear600_nand_defconfig| 2 +-
 configs/spear600_usbtty_defconfig  | 2 +-
 configs/spear600_usbtty_nand_defconfig | 2 +-
 configs/stv0991_defconfig  | 2 +-
 include/configs/spear3xx_evb.h | 9 +++--
 include/configs/spear6xx_evb.h | 6 ++
 24 files changed, 27 insertions(+), 32 deletions(-)

diff --git a/arch/arm/cpu/arm926ejs/spear/timer.c 
b/arch/arm/cpu/arm926ejs/spear/timer.c
index c88e962..89fd54f 100644
--- a/arch/arm/cpu/arm926ejs/spear/timer.c
+++ b/arch/arm/cpu/arm926ejs/spear/timer.c
@@ -37,7 +37,7 @@ int timer_init(void)
writel(MISC_PRSC_CFG, _regs_p->prsc1_clk_cfg);
synth = MISC_GPT3SYNTH;
 #else
-# error Incorrect config. Can only be spear{600|300|310|320}
+# error Incorrect config. Can only be SPEAR{600|300|310|320}
 #endif
 
writel(readl(_regs_p->periph_clk_cfg) | synth,
diff --git a/configs/spear300_defconfig b/configs/spear300_defconfig
index 2ef309c..ed45de8 100644
--- a/configs/spear300_defconfig
+++ b/configs/spear300_defconfig
@@ -1,6 +1,6 @@
 CONFIG_ARM=y
 CONFIG_TARGET_SPEAR300=y
-CONFIG_SYS_EXTRA_OPTIONS="spear300"
+CONFIG_SYS_EXTRA_OPTIONS="SPEAR300"
 CONFIG_BOOTDELAY=1
 CONFIG_CMD_I2C=y
 # CONFIG_CMD_SETEXPR is not set
diff --git a/configs/spear300_nand_defconfig b/configs/spear300_nand_defconfig
index 611631e..d525455 100644
--- a/configs/spear300_nand_defconfig
+++ b/configs/spear300_nand_defconfig
@@ -1,6 +1,6 @@
 CONFIG_ARM=y
 CONFIG_TARGET_SPEAR300=y
-CONFIG_SYS_EXTRA_OPTIONS="spear300,nand"
+CONFIG_SYS_EXTRA_OPTIONS="SPEAR300,NAND"
 CONFIG_BOOTDELAY=1
 CONFIG_CMD_I2C=y
 # CONFIG_CMD_SETEXPR is not set
diff --git a/configs/spear300_usbtty_defconfig 
b/configs/spear300_usbtty_defconfig
index 5338418..5c67aeb 100644
--- a/configs/spear300_usbtty_defconfig
+++ b/configs/spear300_usbtty_defconfig
@@ -1,6 +1,6 @@
 CONFIG_ARM=y
 CONFIG_TARGET_SPEAR300=y
-CONFIG_SYS_EXTRA_OPTIONS="spear300,usbtty"
+CONFIG_SYS_EXTRA_OPTIONS="SPEAR300,USBTTY"
 CONFIG_BOOTDELAY=-1
 CONFIG_CMD_I2C=y
 # CONFIG_CMD_SETEXPR is not set
diff --git a/configs/spear300_usbtty_nand_defconfig 
b/configs/spear300_usbtty_nand_defconfig
index d525edf..e08a5d6 100644
--- a/configs/spear300_usbtty_nand_defconfig
+++ b/configs/spear300_usbtty_nand_defconfig
@@ -1,6 +1,6 @@
 CONFIG_ARM=y
 CONFIG_TARGET_SPEAR300=y
-CONFIG_SYS_EXTRA_OPTIONS="spear300,usbtty,nand"
+CONFIG_SYS_EXTRA_OPTIONS="SPEAR300,USBTTY,NAND"
 CONFIG_BOOTDELAY=-1
 CONFIG_CMD_I2C=y
 # CONFIG_CMD_SETEXPR is not set
diff --git a/configs/spear310_defconfig b/configs/spear310_defconfig
index 3f20387..cdead20 100644
--- a/configs/spear310_defconfig
+++ b/configs/spear310_defconfig
@@ -1,6 +1,6 @@
 CONFIG_ARM=y
 CONFIG_TARGET_SPEAR310=y
-CONFIG_SYS_EXTRA_OPTIONS="spear310"
+CONFIG_SYS_EXTRA_OPTIONS="SPEAR310"
 CONFIG_BOOTDELAY=1
 CONFIG_CMD_I2C=y
 # CONFIG_CMD_SETEXPR is not set
diff --git a/configs/spear310_nand_defconfig b/configs/spear310_nand_defconfig
index 2feb9cc..2ae7bf2 100644
--- a/configs/spear310_nand_defconfig
+++ b/configs/spear310_nand_defconfig
@@ -1,6 +1,6 @@
 CONFIG_ARM=y
 CONFIG_TARGET_SPEAR310=y
-CONFIG_SYS_EXTRA_OPTIONS="spear310,nand"
+CONFIG_SYS_EXTRA_OPTIONS="SPEAR310,NAND"
 CONFIG_BOOTDELAY=1
 CONFIG_CMD_I2C=y
 # CONFIG_CMD_SETEXPR is not set
diff --git a/configs/spear310_pnor_defconfig b/configs/spear310_pnor_defconfig
index 4ab49d9..e0ad7dc 100644
--- a/configs/spear310_pnor_defconfig
+++ b/configs/spear310_pnor_defconfig
@@ -1,6 +1,6 @@
 CONFIG_ARM=y
 CONFIG_TARGET_SPEAR310=y
-CONFIG_SYS_EXTRA_OPTIONS="spear310,FLASH_PNOR"
+CONFIG_SYS_EXTRA_OPTIONS="SPEAR310,FLASH_PNOR"
 CONFIG_BOOTDELAY=1
 CONFIG_CMD_I2C=y
 # CONFIG_CMD_SETEXPR is not set
diff --git a/configs/spear310_usbtty_defconfig 
b/configs/spear310_usbtty_defconfig
index 299cf6d..a690e3a 100644
--- a/configs/spear310_usbtty_defconfig
+++ b/configs/spear310_usbtty_defconfig
@@ -1,6 +1,6 @@
 CONFIG_ARM=y
 CONFIG_TARGET_SPEAR310=y
-CONFIG_SYS_EXTRA_OPTIONS="spear310,usbtty"

[U-Boot] [PATCH v2 16/44] Convert CONFIG_SPL_DRIVERS_MISC_SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
Move this option to Kconfig and tidy up existing uses.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 arch/arm/include/asm/fsl_secure_boot.h  | 1 -
 arch/arm/mach-rockchip/rk3288/Kconfig   | 3 +++
 arch/powerpc/include/asm/fsl_secure_boot.h  | 3 ---
 configs/B4420QDS_NAND_defconfig | 1 +
 configs/B4860QDS_NAND_defconfig | 1 +
 configs/C29XPCIE_NAND_defconfig | 1 +
 configs/P1010RDB-PA_36BIT_NAND_defconfig| 1 +
 configs/P1010RDB-PA_36BIT_SDCARD_defconfig  | 1 +
 configs/P1010RDB-PA_36BIT_SPIFLASH_defconfig| 1 +
 configs/P1010RDB-PA_NAND_defconfig  | 1 +
 configs/P1010RDB-PA_SDCARD_defconfig| 1 +
 configs/P1010RDB-PA_SPIFLASH_defconfig  | 1 +
 configs/P1010RDB-PB_36BIT_NAND_defconfig| 1 +
 configs/P1010RDB-PB_36BIT_SDCARD_defconfig  | 1 +
 configs/P1010RDB-PB_36BIT_SPIFLASH_defconfig| 1 +
 configs/P1010RDB-PB_NAND_defconfig  | 1 +
 configs/P1010RDB-PB_SDCARD_defconfig| 1 +
 configs/P1010RDB-PB_SPIFLASH_defconfig  | 1 +
 configs/T1023RDB_NAND_defconfig | 1 +
 configs/T1023RDB_SDCARD_defconfig   | 1 +
 configs/T1023RDB_SPIFLASH_defconfig | 1 +
 configs/T1024QDS_NAND_defconfig | 1 +
 configs/T1024QDS_SDCARD_defconfig   | 1 +
 configs/T1024QDS_SPIFLASH_defconfig | 1 +
 configs/T1024RDB_NAND_defconfig | 1 +
 configs/T1024RDB_SDCARD_defconfig   | 1 +
 configs/T1024RDB_SPIFLASH_defconfig | 1 +
 configs/T1040D4RDB_NAND_defconfig   | 1 +
 configs/T1040D4RDB_SDCARD_defconfig | 1 +
 configs/T1040D4RDB_SPIFLASH_defconfig   | 1 +
 configs/T1040RDB_NAND_defconfig | 1 +
 configs/T1040RDB_SDCARD_defconfig   | 1 +
 configs/T1040RDB_SPIFLASH_defconfig | 1 +
 configs/T1042D4RDB_NAND_defconfig   | 1 +
 configs/T1042D4RDB_SDCARD_defconfig | 1 +
 configs/T1042D4RDB_SPIFLASH_defconfig   | 1 +
 configs/T1042RDB_PI_NAND_SECURE_BOOT_defconfig  | 1 +
 configs/T1042RDB_PI_NAND_defconfig  | 1 +
 configs/T1042RDB_PI_SDCARD_defconfig| 1 +
 configs/T1042RDB_PI_SPIFLASH_defconfig  | 1 +
 configs/T2080QDS_NAND_defconfig | 1 +
 configs/T2080QDS_SDCARD_defconfig   | 1 +
 configs/T2080QDS_SPIFLASH_defconfig | 1 +
 configs/T2080RDB_NAND_defconfig | 1 +
 configs/T2080RDB_SDCARD_defconfig   | 1 +
 configs/T2080RDB_SPIFLASH_defconfig | 1 +
 configs/T2081QDS_NAND_defconfig | 1 +
 configs/T2081QDS_SDCARD_defconfig   | 1 +
 configs/T2081QDS_SPIFLASH_defconfig | 1 +
 configs/T4160QDS_NAND_defconfig | 1 +
 configs/T4160QDS_SDCARD_defconfig   | 1 +
 configs/T4240QDS_NAND_defconfig | 1 +
 configs/T4240QDS_SDCARD_defconfig   | 1 +
 configs/T4240RDB_SDCARD_defconfig   | 1 +
 configs/ls1021aqds_nand_defconfig   | 1 +
 configs/ls1021aqds_sdcard_ifc_defconfig | 1 +
 configs/ls1021aqds_sdcard_qspi_defconfig| 1 +
 configs/ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig | 1 +
 configs/ls1043aqds_nand_defconfig   | 1 +
 configs/ls1043aqds_sdcard_ifc_defconfig | 1 +
 configs/ls1043aqds_sdcard_qspi_defconfig| 1 +
 configs/ls1043ardb_nand_defconfig   | 1 +
 configs/ls1043ardb_sdcard_defconfig | 1 +
 configs/ls2080aqds_nand_defconfig   | 1 +
 configs/ls2080ardb_nand_defconfig   | 1 +
 configs/sandbox_spl_defconfig   | 1 +
 include/configs/B4860QDS.h  | 1 -
 include/configs/P1010RDB.h  | 3 ---
 include/configs/T102xQDS.h  | 1 -
 include/configs/T102xRDB.h  | 1 -
 include/configs/T104xRDB.h  | 1 -
 include/configs/T208xQDS.h  | 1 -
 include/configs/T208xRDB.h  | 1 -
 include/configs/T4240QDS.h  | 1 -
 include/configs/T4240RDB.h  | 1 -
 include/configs/ls1021aqds.h| 2 --
 include/configs/ls1043a_common.h| 2 --
 include/configs/ls2080a_common.h| 1 -
 include/configs/rk3288_common.h | 2 --
 include/configs/sandbox_spl.h   | 1 -
 80 files changed, 66 insertions(+), 23 deletions(-)

diff --git a/arch/arm/include/asm/fsl_secure_boot.h 

[U-Boot] [PATCH v2 14/44] Convert CONFIG_SPL_HASH_SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
Move this option to Kconfig and tidy up existing uses.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 arch/arm/include/asm/fsl_secure_boot.h  | 1 -
 arch/powerpc/include/asm/fsl_secure_boot.h  | 1 -
 configs/T1042RDB_PI_NAND_SECURE_BOOT_defconfig  | 1 +
 configs/ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig | 1 +
 4 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/include/asm/fsl_secure_boot.h 
b/arch/arm/include/asm/fsl_secure_boot.h
index b9aad04..ddc77a5 100644
--- a/arch/arm/include/asm/fsl_secure_boot.h
+++ b/arch/arm/include/asm/fsl_secure_boot.h
@@ -27,7 +27,6 @@
 #endif
 
 #define CONFIG_SPL_BOARD_INIT
-#define CONFIG_SPL_HASH_SUPPORT
 #define CONFIG_SPL_DRIVERS_MISC_SUPPORT
 #ifdef CONFIG_SPL_BUILD
 /*
diff --git a/arch/powerpc/include/asm/fsl_secure_boot.h 
b/arch/powerpc/include/asm/fsl_secure_boot.h
index 8fa1908..ae50b86 100644
--- a/arch/powerpc/include/asm/fsl_secure_boot.h
+++ b/arch/powerpc/include/asm/fsl_secure_boot.h
@@ -80,7 +80,6 @@
 
 #ifdef CONFIG_CHAIN_OF_TRUST
 
-#define CONFIG_SPL_HASH_SUPPORT
 #define CONFIG_SPL_DRIVERS_MISC_SUPPORT
 
 #ifdef CONFIG_SPL_BUILD
diff --git a/configs/T1042RDB_PI_NAND_SECURE_BOOT_defconfig 
b/configs/T1042RDB_PI_NAND_SECURE_BOOT_defconfig
index ec92872..1b6493a 100644
--- a/configs/T1042RDB_PI_NAND_SECURE_BOOT_defconfig
+++ b/configs/T1042RDB_PI_NAND_SECURE_BOOT_defconfig
@@ -9,6 +9,7 @@ 
CONFIG_SYS_EXTRA_OPTIONS="PPC_T1042,T1042RDB_PI,RAMBOOT_PBL,SPL_FSL_PBL,NAND,SEC
 CONFIG_BOOTDELAY=0
 CONFIG_SPL=y
 CONFIG_SPL_CRYPTO_SUPPORT=y
+CONFIG_SPL_HASH_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_GREPENV=y
 CONFIG_CMD_MMC=y
diff --git a/configs/ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig 
b/configs/ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig
index 1866cb9..df1f959 100644
--- a/configs/ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig
+++ b/configs/ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig
@@ -8,6 +8,7 @@ 
CONFIG_SYS_EXTRA_OPTIONS="RAMBOOT_PBL,SPL_FSL_PBL,SD_BOOT,SECURE_BOOT"
 CONFIG_BOOTDELAY=0
 CONFIG_SPL=y
 CONFIG_SPL_CRYPTO_SUPPORT=y
+CONFIG_SPL_HASH_SUPPORT=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
 CONFIG_CMD_GREPENV=y
-- 
2.8.0.rc3.226.g39d4020

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 09/44] Kconfig: tpl: Add some TPL support options to Kconfig

2016-08-29 Thread Simon Glass
Some of the SPL options have TPL equivalents. Add these to Kconfig so that
we can convert these options over to work from Kconfig.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 common/spl/Kconfig | 67 ++
 1 file changed, 67 insertions(+)

diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index d10699c..6d6d7ca 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -474,4 +474,71 @@ config SPL_YMODEM_SUPPORT
  means of transmitting U-Boot over a serial line for using in SPL,
  with a checksum to ensure correctness.
 
+config TPL_ENV_SUPPORT
+   bool "Support an environment"
+   depends on TPL
+   help
+ Enable environment support in TPL. See SPL_ENV_SUPPORT for details.
+
+config TPL_I2C_SUPPORT
+   bool "Support I2C"
+   depends on TPL
+   help
+ Enable support for the I2C bus in SPL. See SPL_I2C_SUPPORT for
+ details.
+
+config TPL_LIBCOMMON_SUPPORT
+   bool "Support common libraries"
+   depends on TPL
+   help
+ Enable support for common U-Boot libraries within TPL. See
+ SPL_LIBCOMMON_SUPPORT for details.
+
+config TPL_LIBGENERIC_SUPPORT
+   bool "Support generic libraries"
+   depends on TPL
+   help
+ Enable support for generic U-Boot libraries within TPL. See
+ SPL_LIBGENERIC_SUPPORT for details.
+
+config TPL_MPC8XXX_INIT_DDR_SUPPORT
+   bool "Support MPC8XXX DDR init"
+   depends on TPL
+   help
+ Enable support for DDR-SDRAM on the MPC8XXX family within TPL. See
+ SPL_MPC8XXX_INIT_DDR_SUPPORT for details.
+
+config TPL_MMC_SUPPORT
+   bool "Support MMC"
+   depends on TPL
+   help
+ Enable support for MMC within TPL. See SPL_MMC_SUPPORT for details.
+
+config TPL_NAND_SUPPORT
+   bool "Support NAND flash"
+   depends on TPL
+   help
+ Enable support for NAND in SPL. See SPL_NAND_SUPPORT for details.
+
+config TPL_SERIAL_SUPPORT
+   bool "Support serial"
+   depends on TPL
+   help
+ Enable support for serial in SPL. See SPL_SERIAL_SUPPORT for
+ details.
+
+config TPL_SPI_FLASH_SUPPORT
+   bool "Support SPI flash drivers"
+   depends on TPL
+   help
+ Enable support for using SPI flash in SPL. See SPL_SPI_FLASH_SUPPORT
+ for details.
+
+config TPL_SPI_SUPPORT
+   bool "Support SPI drivers"
+   depends on TPL
+   help
+ Enable support for using SPI in SPL. See SPL_SPI_SUPPORT for
+ details.
+
 endmenu
-- 
2.8.0.rc3.226.g39d4020

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 08/44] Kconfig: spl: Add SPL support options to Kconfig

2016-08-29 Thread Simon Glass
There are a lot of SPL options in U-Boot to enable various features and
drivers. Currently these do not use Kconfig. Add them to Kconfig along
with suitable help, and drop them from the README.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 README |  49 ---
 common/spl/Kconfig | 410 +
 2 files changed, 410 insertions(+), 49 deletions(-)

diff --git a/README b/README
index 30d7ee3..ebc83d2 100644
--- a/README
+++ b/README
@@ -3508,21 +3508,6 @@ FIT uImage format:
CONFIG_SPL_INIT_MINIMAL
Arch init code should be built for a very small image
 
-   CONFIG_SPL_LIBCOMMON_SUPPORT
-   Support for common/libcommon.o in SPL binary
-
-   CONFIG_SPL_LIBDISK_SUPPORT
-   Support for disk/libdisk.o in SPL binary
-
-   CONFIG_SPL_I2C_SUPPORT
-   Support for drivers/i2c/libi2c.o in SPL binary
-
-   CONFIG_SPL_GPIO_SUPPORT
-   Support for drivers/gpio/libgpio.o in SPL binary
-
-   CONFIG_SPL_MMC_SUPPORT
-   Support for drivers/mmc/libmmc.o in SPL binary
-
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR,
CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS,
Address and partition on the MMC to load U-Boot from
@@ -3546,12 +3531,6 @@ FIT uImage format:
Partition on the MMC to load U-Boot from when the MMC is being
used in fs mode
 
-   CONFIG_SPL_FAT_SUPPORT
-   Support for fs/fat/libfat.o in SPL binary
-
-   CONFIG_SPL_EXT_SUPPORT
-   Support for EXT filesystem in SPL binary
-
CONFIG_SPL_FS_LOAD_PAYLOAD_NAME
Filename to read to load U-Boot when reading from filesystem
 
@@ -3590,18 +3569,10 @@ FIT uImage format:
Support for a lightweight UBI (fastmap) scanner and
loader
 
-   CONFIG_SPL_MTD_SUPPORT
-   Support for the MTD subsystem within SPL.  Useful for
-   environment on NAND support within SPL.
-
CONFIG_SPL_NAND_RAW_ONLY
Support to boot only raw u-boot.bin images. Use this only
if you need to save space.
 
-   CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT
-   Set for the SPL on PPC mpc8xxx targets, support for
-   drivers/ddr/fsl/libddr.o in SPL binary.
-
CONFIG_SPL_COMMON_INIT_DDR
Set for common ddr init with serial presence detect in
SPL binary.
@@ -3637,29 +3608,9 @@ FIT uImage format:
Support for an OMAP3-specific set of functions to return the
ID and MFR of the first attached NAND chip, if present.
 
-   CONFIG_SPL_SERIAL_SUPPORT
-   Support for drivers/serial/libserial.o in SPL binary
-
-   CONFIG_SPL_SPI_FLASH_SUPPORT
-   Support for drivers/mtd/spi/libspi_flash.o in SPL binary
-
-   CONFIG_SPL_SPI_SUPPORT
-   Support for drivers/spi/libspi.o in SPL binary
-
CONFIG_SPL_RAM_DEVICE
Support for running image already present in ram, in SPL binary
 
-   CONFIG_SPL_LIBGENERIC_SUPPORT
-   Support for lib/libgeneric.o in SPL binary
-
-   CONFIG_SPL_ENV_SUPPORT
-   Support for the environment operating in SPL binary
-
-   CONFIG_SPL_NET_SUPPORT
-   Support for the net/libnet.o in SPL binary.
-   It conflicts with SPL env from storage medium specified by
-   CONFIG_ENV_IS_xxx but CONFIG_ENV_IS_NOWHERE
-
CONFIG_SPL_PAD_TO
Image offset to which the SPL should be padded before appending
the SPL payload. By default, this is defined as
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 2d2256a..d10699c 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -1,3 +1,5 @@
+menu "SPL / TPL"
+
 config SUPPORT_SPL
bool
 
@@ -65,3 +67,411 @@ config TPL
prompt "Enable TPL"
help
  If you want to build TPL as well as the normal image and SPL, say Y.
+
+config SPL_CRC32_SUPPORT
+   bool "Support CRC32"
+   depends on SPL_FIT
+   help
+ Enable this to support CRC32 in FIT images within SPL. This is a
+ 32-bit checksum value that can be used to verify images. This is
+ the least secure type of checksum, suitable for detected
+ accidental image corruption. For secure applications you should
+ consider SHA1 or SHA256.
+
+config SPL_MD5_SUPPORT
+   bool "Support MD5"
+   depends on SPL_FIT
+   help
+ Enable this to support MD5 in FIT images within SPL. An MD5
+ checksum is a 128-bit hash value used to check that the image
+ contents have not been corrupted. Note that MD5 is not 

[U-Boot] [PATCH v2 10/44] Move existing use of CONFIG_SPL_DM to Kconfig

2016-08-29 Thread Simon Glass
A few boards define this in a header file which is incorrect. It means that
Kconfig options that rely on this cannot be used. Move it.

Note that quite a few boards defined this options but do not appear to
actually use SPL:

BSC9132QDS_NOR_DDRCLK100_SECURE
BSC9132QDS_NOR_DDRCLK133_SECURE
BSC9132QDS_SDCARD_DDRCLK100_SECURE
BSC9132QDS_SDCARD_DDRCLK133_SECURE
BSC9132QDS_SPIFLASH_DDRCLK100_SECURE
BSC9132QDS_SPIFLASH_DDRCLK133_SECURE
C29XPCIE_NOR_SECBOOT
P1010RDB-PA_36BIT_NAND_SECBOOT
P1010RDB-PA_36BIT_SPIFLASH_SECBOOT
P1010RDB-PA_NAND_SECBOOT
P1010RDB-PA_NOR_SECBOOT
P1010RDB-PB_36BIT_NOR_SECBOOT
P1010RDB-PB_36BIT_SPIFLASH_SECBOOT
P1010RDB-PB_NAND_SECBOOT
P1010RDB-PB_NOR_SECBOOT
P3041DS_SECURE_BOOT
P4080DS_SECURE_BOOT
P5020DS_NAND_SECURE_BOOT
P5040DS_SECURE_BOOT
T1023RDB_SECURE_BOOT
T1024QDS_DDR4_SECURE_BOOT
T1024QDS_SECURE_BOOT
T1024RDB_SECURE_BOOT
T1040RDB_SECURE_BOOT
T1042D4RDB_SECURE_BOOT
T1042RDB_SECURE_BOOT
T2080QDS_SECURE_BOOT
T2080RDB_SECURE_BOOT
T4160QDS_SECURE_BOOT
T4240QDS_SECURE_BOOT
ls1021aqds_nor_SECURE_BOOT
ls1021atwr_nor_SECURE_BOOT
ls1043ardb_SECURE_BOOT

For these boards CONFIG_SPL_DM will no-longer be defined in SPL. But since
they apparently don't have an SPL, this should not matter.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 arch/arm/include/asm/fsl_secure_boot.h  | 1 -
 arch/powerpc/include/asm/fsl_secure_boot.h  | 1 -
 configs/T1042RDB_PI_NAND_SECURE_BOOT_defconfig  | 1 +
 configs/ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig | 1 +
 4 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/include/asm/fsl_secure_boot.h 
b/arch/arm/include/asm/fsl_secure_boot.h
index 1d379c7..fd25e15 100644
--- a/arch/arm/include/asm/fsl_secure_boot.h
+++ b/arch/arm/include/asm/fsl_secure_boot.h
@@ -27,7 +27,6 @@
 #endif
 
 #define CONFIG_SPL_BOARD_INIT
-#define CONFIG_SPL_DM  1
 #define CONFIG_SPL_CRYPTO_SUPPORT
 #define CONFIG_SPL_HASH_SUPPORT
 #define CONFIG_SPL_RSA
diff --git a/arch/powerpc/include/asm/fsl_secure_boot.h 
b/arch/powerpc/include/asm/fsl_secure_boot.h
index 01255d8..e8da4c7 100644
--- a/arch/powerpc/include/asm/fsl_secure_boot.h
+++ b/arch/powerpc/include/asm/fsl_secure_boot.h
@@ -80,7 +80,6 @@
 
 #ifdef CONFIG_CHAIN_OF_TRUST
 
-#define CONFIG_SPL_DM  1
 #define CONFIG_SPL_CRYPTO_SUPPORT
 #define CONFIG_SPL_HASH_SUPPORT
 #define CONFIG_SPL_RSA
diff --git a/configs/T1042RDB_PI_NAND_SECURE_BOOT_defconfig 
b/configs/T1042RDB_PI_NAND_SECURE_BOOT_defconfig
index a68b7a6..4f7059f 100644
--- a/configs/T1042RDB_PI_NAND_SECURE_BOOT_defconfig
+++ b/configs/T1042RDB_PI_NAND_SECURE_BOOT_defconfig
@@ -20,6 +20,7 @@ CONFIG_CMD_PING=y
 CONFIG_CMD_EXT2=y
 CONFIG_CMD_FAT=y
 CONFIG_DM=y
+CONFIG_SPL_DM=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_NETDEVICES=y
diff --git a/configs/ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig 
b/configs/ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig
index 4958300..6b8e56b 100644
--- a/configs/ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig
+++ b/configs/ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig
@@ -21,6 +21,7 @@ CONFIG_CMD_PING=y
 CONFIG_CMD_EXT2=y
 CONFIG_CMD_FAT=y
 CONFIG_DM=y
+CONFIG_SPL_DM=y
 CONFIG_NETDEVICES=y
 CONFIG_E1000=y
 CONFIG_SYS_NS16550=y
-- 
2.8.0.rc3.226.g39d4020

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 07/44] Use separate options for TPL support

2016-08-29 Thread Simon Glass
At present TPL uses the same options as SPL support. In a few cases the board
config enables or disables the SPL options depending on whether
CONFIG_TPL_BUILD is defined.

With the move to Kconfig, options are determined for the whole build and
(without a hack like an #undef in a header file) cannot be controlled in this
way.

Create new TPL options for these and update users. This will allow Kconfig
conversion to proceed for these boards.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 common/Makefile| 12 +++-
 drivers/Makefile   | 16 +++-
 include/common.h   | 15 +--
 include/configs/C29XPCIE.h | 16 
 include/configs/P1010RDB.h | 14 +++---
 include/configs/P1022DS.h  | 14 +++---
 include/configs/p1_p2_rdb_pc.h | 14 +++---
 lib/Makefile   |  9 +++--
 scripts/Makefile.spl   | 10 +-
 9 files changed, 80 insertions(+), 40 deletions(-)

diff --git a/common/Makefile b/common/Makefile
index 21619b3..9a9a065 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -99,10 +99,16 @@ obj-$(CONFIG_SPL_USB_SUPPORT) += usb.o usb_hub.o
 obj-$(CONFIG_USB_STORAGE) += usb_storage.o
 endif
 # environment
-ifdef CONFIG_SPL_ENV_SUPPORT
+ifdef CONFIG_TPL_BUILD
+obj-$(CONFIG_TPL_ENV_SUPPORT) += env_attr.o
+obj-$(CONFIG_TPL_ENV_SUPPORT) += env_flags.o
+obj-$(CONFIG_TPL_ENV_SUPPORT) += env_callback.o
+else
 obj-$(CONFIG_SPL_ENV_SUPPORT) += env_attr.o
 obj-$(CONFIG_SPL_ENV_SUPPORT) += env_flags.o
 obj-$(CONFIG_SPL_ENV_SUPPORT) += env_callback.o
+endif
+ifneq ($(CONFIG_TPL_ENV_SUPPORT)$(CONFIG_SPL_ENV_SUPPORT),)
 obj-$(CONFIG_ENV_IS_NOWHERE) += env_nowhere.o
 obj-$(CONFIG_ENV_IS_IN_MMC) += env_mmc.o
 obj-$(CONFIG_ENV_IS_IN_FAT) += env_fat.o
@@ -123,7 +129,11 @@ obj-$(CONFIG_SPD_EEPROM) += ddr_spd.o
 obj-$(CONFIG_HWCONFIG) += hwconfig.o
 obj-$(CONFIG_BOUNCE_BUFFER) += bouncebuf.o
 ifdef CONFIG_SPL_BUILD
+ifdef CONFIG_TPL_BUILD
+obj-$(CONFIG_TPL_SERIAL_SUPPORT) += console.o
+else
 obj-$(CONFIG_SPL_SERIAL_SUPPORT) += console.o
+endif
 else
 obj-y += console.o
 endif
diff --git a/drivers/Makefile b/drivers/Makefile
index 7861d34..ca98273 100644
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -40,8 +40,22 @@ obj-$(CONFIG_OMAP_USB_PHY) += usb/phy/
 obj-$(CONFIG_SPL_SATA_SUPPORT) += block/
 obj-$(CONFIG_SPL_USB_HOST_SUPPORT) += block/
 obj-$(CONFIG_SPL_MMC_SUPPORT) += block/
+endif
+
+ifdef CONFIG_TPL_BUILD
+
+obj-$(CONFIG_TPL_I2C_SUPPORT) += i2c/
+obj-$(CONFIG_TPL_DRIVERS_MISC_SUPPORT) += misc/ sysreset/
+obj-$(CONFIG_TPL_MMC_SUPPORT) += mmc/
+obj-$(CONFIG_TPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
+obj-$(CONFIG_TPL_NAND_SUPPORT) += mtd/nand/
+obj-$(CONFIG_TPL_SERIAL_SUPPORT) += serial/
+obj-$(CONFIG_TPL_SPI_FLASH_SUPPORT) += mtd/spi/
+obj-$(CONFIG_TPL_SPI_SUPPORT) += spi/
+
+endif
 
-else
+ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
 
 obj-y += adc/
 obj-$(CONFIG_DM_DEMO) += demo/
diff --git a/include/common.h b/include/common.h
index e9f0dea..a8d833b 100644
--- a/include/common.h
+++ b/include/common.h
@@ -866,17 +866,20 @@ int   getc(void);
 inttstc(void);
 
 /* stdout */
-#if defined(CONFIG_SPL_BUILD) && !defined(CONFIG_SPL_SERIAL_SUPPORT)
-#defineputc(...) do { } while (0)
-#define puts(...) do { } while (0)
-#define printf(...) do { } while (0)
-#define vprintf(...) do { } while (0)
-#else
+#if !defined(CONFIG_SPL_BUILD) || \
+   (defined(CONFIG_TPL_BUILD) && defined(CONFIG_TPL_SERIAL_SUPPORT)) || \
+   (defined(CONFIG_SPL_BUILD) && !defined(CONFIG_TPL_BUILD) && \
+   defined(CONFIG_SPL_SERIAL_SUPPORT))
 void   putc(const char c);
 void   puts(const char *s);
 intprintf(const char *fmt, ...)
__attribute__ ((format (__printf__, 1, 2)));
 intvprintf(const char *fmt, va_list args);
+#else
+#defineputc(...) do { } while (0)
+#define puts(...) do { } while (0)
+#define printf(...) do { } while (0)
+#define vprintf(...) do { } while (0)
 #endif
 
 /* stderr */
diff --git a/include/configs/C29XPCIE.h b/include/configs/C29XPCIE.h
index f75919d..8ec1a90 100644
--- a/include/configs/C29XPCIE.h
+++ b/include/configs/C29XPCIE.h
@@ -27,15 +27,15 @@
 #ifdef CONFIG_TPL_BUILD
 #define CONFIG_SPL_NAND_BOOT
 #define CONFIG_SPL_FLUSH_IMAGE
-#define CONFIG_SPL_ENV_SUPPORT
+#define CONFIG_TPL_ENV_SUPPORT
 #define CONFIG_SPL_NAND_INIT
-#define CONFIG_SPL_SERIAL_SUPPORT
-#define CONFIG_SPL_LIBGENERIC_SUPPORT
-#define CONFIG_SPL_LIBCOMMON_SUPPORT
-#define CONFIG_SPL_I2C_SUPPORT
-#define CONFIG_SPL_DRIVERS_MISC_SUPPORT
-#define CONFIG_SPL_NAND_SUPPORT
-#define CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT
+#define CONFIG_TPL_SERIAL_SUPPORT
+#define CONFIG_TPL_LIBGENERIC_SUPPORT
+#define CONFIG_TPL_LIBCOMMON_SUPPORT
+#define CONFIG_TPL_I2C_SUPPORT
+#define CONFIG_TPL_DRIVERS_MISC_SUPPORT
+#define CONFIG_TPL_NAND_SUPPORT
+#define CONFIG_TPL_MPC8XXX_INIT_DDR_SUPPORT
 #define CONFIG_SPL_COMMON_INIT_DDR
 #define 

[U-Boot] [PATCH v2 11/44] Move existing use of CONFIG_SPL_RSA to Kconfig

2016-08-29 Thread Simon Glass
A few boards define this in a header file which is incorrect. It means that
Kconfig options that rely on this cannot be used. Move it.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 arch/arm/include/asm/fsl_secure_boot.h | 1 -
 arch/powerpc/include/asm/fsl_secure_boot.h | 1 -
 configs/B4860QDS_SECURE_BOOT_defconfig | 1 +
 configs/BSC9132QDS_NAND_DDRCLK100_SECURE_defconfig | 1 +
 configs/BSC9132QDS_NAND_DDRCLK133_SECURE_defconfig | 1 +
 configs/BSC9132QDS_NOR_DDRCLK100_SECURE_defconfig  | 1 +
 configs/BSC9132QDS_NOR_DDRCLK133_SECURE_defconfig  | 1 +
 configs/BSC9132QDS_SDCARD_DDRCLK100_SECURE_defconfig   | 1 +
 configs/BSC9132QDS_SDCARD_DDRCLK133_SECURE_defconfig   | 1 +
 configs/BSC9132QDS_SPIFLASH_DDRCLK100_SECURE_defconfig | 1 +
 configs/BSC9132QDS_SPIFLASH_DDRCLK133_SECURE_defconfig | 1 +
 configs/C29XPCIE_NOR_SECBOOT_defconfig | 1 +
 configs/C29XPCIE_SPIFLASH_SECBOOT_defconfig| 1 +
 configs/P1010RDB-PA_36BIT_NAND_SECBOOT_defconfig   | 1 +
 configs/P1010RDB-PA_36BIT_NOR_SECBOOT_defconfig| 1 +
 configs/P1010RDB-PA_36BIT_SPIFLASH_SECBOOT_defconfig   | 1 +
 configs/P1010RDB-PA_NAND_SECBOOT_defconfig | 1 +
 configs/P1010RDB-PA_NOR_SECBOOT_defconfig  | 1 +
 configs/P1010RDB-PA_SPIFLASH_SECBOOT_defconfig | 1 +
 configs/P1010RDB-PB_36BIT_NAND_SECBOOT_defconfig   | 1 +
 configs/P1010RDB-PB_36BIT_NOR_SECBOOT_defconfig| 1 +
 configs/P1010RDB-PB_36BIT_SPIFLASH_SECBOOT_defconfig   | 1 +
 configs/P1010RDB-PB_NAND_SECBOOT_defconfig | 1 +
 configs/P1010RDB-PB_NOR_SECBOOT_defconfig  | 1 +
 configs/P1010RDB-PB_SPIFLASH_SECBOOT_defconfig | 1 +
 configs/P2041RDB_SECURE_BOOT_defconfig | 1 +
 configs/P3041DS_NAND_SECURE_BOOT_defconfig | 1 +
 configs/P3041DS_SECURE_BOOT_defconfig  | 1 +
 configs/P4080DS_SECURE_BOOT_defconfig  | 1 +
 configs/P5020DS_NAND_SECURE_BOOT_defconfig | 1 +
 configs/P5020DS_SECURE_BOOT_defconfig  | 1 +
 configs/P5040DS_NAND_SECURE_BOOT_defconfig | 1 +
 configs/P5040DS_SECURE_BOOT_defconfig  | 1 +
 configs/T1023RDB_SECURE_BOOT_defconfig | 1 +
 configs/T1024QDS_DDR4_SECURE_BOOT_defconfig| 1 +
 configs/T1024QDS_SECURE_BOOT_defconfig | 1 +
 configs/T1024RDB_SECURE_BOOT_defconfig | 1 +
 configs/T1040D4RDB_SECURE_BOOT_defconfig   | 1 +
 configs/T1040QDS_SECURE_BOOT_defconfig | 1 +
 configs/T1040RDB_SECURE_BOOT_defconfig | 1 +
 configs/T1042D4RDB_SECURE_BOOT_defconfig   | 1 +
 configs/T1042RDB_PI_NAND_SECURE_BOOT_defconfig | 1 +
 configs/T1042RDB_SECURE_BOOT_defconfig | 1 +
 configs/T2080QDS_SECURE_BOOT_defconfig | 1 +
 configs/T2080RDB_SECURE_BOOT_defconfig | 1 +
 configs/T4160QDS_SECURE_BOOT_defconfig | 1 +
 configs/T4240QDS_SECURE_BOOT_defconfig | 1 +
 configs/ls1021aqds_nor_SECURE_BOOT_defconfig   | 1 +
 configs/ls1021atwr_nor_SECURE_BOOT_defconfig   | 1 +
 configs/ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig| 1 +
 configs/ls1043ardb_SECURE_BOOT_defconfig   | 1 +
 configs/ls2080aqds_SECURE_BOOT_defconfig   | 1 +
 configs/ls2080ardb_SECURE_BOOT_defconfig   | 1 +
 53 files changed, 51 insertions(+), 2 deletions(-)

diff --git a/arch/arm/include/asm/fsl_secure_boot.h 
b/arch/arm/include/asm/fsl_secure_boot.h
index fd25e15..b6ca7bb 100644
--- a/arch/arm/include/asm/fsl_secure_boot.h
+++ b/arch/arm/include/asm/fsl_secure_boot.h
@@ -29,7 +29,6 @@
 #define CONFIG_SPL_BOARD_INIT
 #define CONFIG_SPL_CRYPTO_SUPPORT
 #define CONFIG_SPL_HASH_SUPPORT
-#define CONFIG_SPL_RSA
 #define CONFIG_SPL_DRIVERS_MISC_SUPPORT
 #ifdef CONFIG_SPL_BUILD
 /*
diff --git a/arch/powerpc/include/asm/fsl_secure_boot.h 
b/arch/powerpc/include/asm/fsl_secure_boot.h
index e8da4c7..5d93fdc 100644
--- a/arch/powerpc/include/asm/fsl_secure_boot.h
+++ b/arch/powerpc/include/asm/fsl_secure_boot.h
@@ -82,7 +82,6 @@
 
 #define CONFIG_SPL_CRYPTO_SUPPORT
 #define CONFIG_SPL_HASH_SUPPORT
-#define CONFIG_SPL_RSA
 #define CONFIG_SPL_DRIVERS_MISC_SUPPORT
 
 #ifdef CONFIG_SPL_BUILD
diff --git a/configs/B4860QDS_SECURE_BOOT_defconfig 
b/configs/B4860QDS_SECURE_BOOT_defconfig
index b978494..dc0d99a 100644
--- a/configs/B4860QDS_SECURE_BOOT_defconfig
+++ b/configs/B4860QDS_SECURE_BOOT_defconfig
@@ -25,4 +25,5 @@ CONFIG_E1000=y
 CONFIG_SYS_NS16550=y
 CONFIG_FSL_ESPI=y
 CONFIG_RSA=y
+CONFIG_SPL_RSA=y
 CONFIG_OF_LIBFDT=y
diff --git a/configs/BSC9132QDS_NAND_DDRCLK100_SECURE_defconfig 
b/configs/BSC9132QDS_NAND_DDRCLK100_SECURE_defconfig
index b2e1642..dfa80fe 100644
--- a/configs/BSC9132QDS_NAND_DDRCLK100_SECURE_defconfig
+++ b/configs/BSC9132QDS_NAND_DDRCLK100_SECURE_defconfig
@@ -26,4 

[U-Boot] [PATCH v2 02/44] moveconfig: Add an option to skip prompts

2016-08-29 Thread Simon Glass
At present it is not easy to use moveconfig from a script since it asks
for user input a few times. Add a -y option to skip this and assume that
'y' was entered.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 tools/moveconfig.py | 33 +++--
 1 file changed, 19 insertions(+), 14 deletions(-)

diff --git a/tools/moveconfig.py b/tools/moveconfig.py
index 5eebab8..290270a 100755
--- a/tools/moveconfig.py
+++ b/tools/moveconfig.py
@@ -473,14 +473,15 @@ def cleanup_headers(configs, options):
   configs: A list of CONFIGs to remove.
   options: option flags.
 """
-while True:
-choice = raw_input('Clean up headers? [y/n]: ').lower()
-print choice
-if choice == 'y' or choice == 'n':
-break
+if not options.yes:
+while True:
+choice = raw_input('Clean up headers? [y/n]: ').lower()
+print choice
+if choice == 'y' or choice == 'n':
+break
 
-if choice == 'n':
-return
+if choice == 'n':
+return
 
 patterns = []
 for config in configs:
@@ -552,14 +553,16 @@ def cleanup_extra_options(configs, options):
   configs: A list of CONFIGs to remove.
   options: option flags.
 """
-while True:
-choice = raw_input('Clean up CONFIG_SYS_EXTRA_OPTIONS? [y/n]: 
').lower()
-print choice
-if choice == 'y' or choice == 'n':
-break
+if not options.yes:
+while True:
+choice = (raw_input('Clean up CONFIG_SYS_EXTRA_OPTIONS? [y/n]: ').
+  lower())
+print choice
+if choice == 'y' or choice == 'n':
+break
 
-if choice == 'n':
-return
+if choice == 'n':
+return
 
 configs = [ config[len('CONFIG_'):] for config in configs ]
 
@@ -1212,6 +1215,8 @@ def main():
   help='the number of jobs to run simultaneously')
 parser.add_option('-r', '--git-ref', type='string',
   help='the git ref to clone for building the autoconf.mk')
+parser.add_option('-y', '--yes', action='store_true', default=False,
+  help="respond 'yes' to any prompts")
 parser.add_option('-v', '--verbose', action='store_true', default=False,
   help='show any build errors as boards are built')
 parser.usage += ' CONFIG ...'
-- 
2.8.0.rc3.226.g39d4020

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 03/44] moveconfig: Add an option to commit changes

2016-08-29 Thread Simon Glass
The moveconfig tool is quite clever and generally produces results that
are suitable for sending as a patch without further work. The main required
step is to add the changes to a commit.

Add an option to do this automatically. This allows moveconfig to be used
from a script to convert multiple CONFIG options, once per commit.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 tools/moveconfig.py | 10 ++
 1 file changed, 10 insertions(+)

diff --git a/tools/moveconfig.py b/tools/moveconfig.py
index 290270a..cf21318 100755
--- a/tools/moveconfig.py
+++ b/tools/moveconfig.py
@@ -1199,6 +1199,8 @@ def main():
 # Add options here
 parser.add_option('-c', '--color', action='store_true', default=False,
   help='display the log in color')
+parser.add_option('-C', '--commit', action='store_true', default=False,
+  help='Create a git commit for the operation')
 parser.add_option('-d', '--defconfigs', type='string',
   help='a file containing a list of defconfigs to move')
 parser.add_option('-n', '--dry-run', action='store_true', default=False,
@@ -1242,5 +1244,13 @@ def main():
 cleanup_headers(configs, options)
 cleanup_extra_options(configs, options)
 
+if options.commit:
+os.system('git add -u')
+msg = '''Convert %s to Kconfig
+
+Move this option to Kconfig and tidy up existing uses.
+''' % ', '.join(configs)
+os.system('git commit -s -m "%s"' % msg)
+
 if __name__ == '__main__':
 main()
-- 
2.8.0.rc3.226.g39d4020

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 06/44] Drop CONFIG_SPL_RAM_SUPPORT

2016-08-29 Thread Simon Glass
This option does not exist in U-Boot. Drop it.

Signed-off-by: Simon Glass 
---

Changes in v2: None

 include/configs/rk3288_common.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/include/configs/rk3288_common.h b/include/configs/rk3288_common.h
index d3d4c68..9b2fe32 100644
--- a/include/configs/rk3288_common.h
+++ b/include/configs/rk3288_common.h
@@ -69,7 +69,6 @@
 #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME"u-boot.img"
 
 #define CONFIG_SPL_PINCTRL_SUPPORT
-#define CONFIG_SPL_RAM_SUPPORT
 #define CONFIG_SPL_DRIVERS_MISC_SUPPORT
 
 #define CONFIG_SYS_SDRAM_BASE  0
-- 
2.8.0.rc3.226.g39d4020

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 00/44] Kconfig: Move CONFIG_SPL_..._SUPPORT to Kconfig

2016-08-29 Thread Simon Glass
This series moves all the CONFIG_SPL_..._SUPPORT options to Kconfig and
fixes up existing boards to continue to build.

It also adds a few small but useful features to moveconfig.

There is existing work going on in this area, so some of these patches may
be superseded. It has taken me a while to get this building cleanly. But I
have run out of time so want to get this out.

As mentioned on a recent thread [1] there is some confusion about whether an
option means enabling driver support or media support. Andrew's recent
series seems like a good vehicle to tidy that up. But I hope this series
will make it easier.

NOTE: in the v2 series I have tried to use common things in Kconfig to
reduce the diffs in the defconfig files. This has helped a fair bit. But it
is very error-prone and time consuming. Also I have had to add some
exceptions (disabling an option in specific board configs). Overall it was
not a pleasant experience :-(

There are a few strange features of this conversion. The main difficulty is
that some PowerPC boards do things like this in their board config file:

 #ifdef CONFIG_TPL_BUILD
 #define CONFIG_SPL_SERIAL_SUPPORT
 #define CONFIG_SPL_ENV_SUPPORT
 #else
 #define CONFIG_SPL_SERIAL_SUPPORT
 #endif

This means that TPL reuses the SPL options. We can't support this in Kconfig
so I have added a small number of CONFIG_TPL_xxx_SUPPORT options to cope
with this. This made the conversion more painful than it should have been.

A related issue is boards using a common header file and setting options only
for SPL:

 #ifdef CONFIG_SPL_BUILD
 #define CONFIG_SPL_SERIAL_SUPPORT
 #endif

This is not noticed by moveconfig so we have to clean it up manually. Also
there are a few incorrect things where Kconfig options are set with #define:

 #ifdef CONFIG_SPL_BUILD
 #define CONFIG_SPL_DM
 #endif

Finally, many defconfig files are not ordered correctly, resulting in larger
patches than we might like. It would be great to have a solution for this,
perhaps with buildman providing a warning. But it might slow down
development.

The series is fully build-tested (for bisectability) and causes no failures
for the boards that already pass. The following boards fail for me at
present on mainline (which I have not yet looked at):

  openrisc:  +   openrisc-generic
 sparc:  +   grsim grsim_leon2 gr_cpci_ax2000 gr_xc3s_1500 gr_ep2s60
  blackfin:  +   bf609-ezkit

This build is also config tested (with buildman -K). The changes are with
spear (to rename options) and am335x_evm_usbspl (which I think is correct).

boards.cfg is up to date. Nothing to do.
Summary of 49 commits for 1185 boards (32 threads, 1 job per thread)
01: cfg
  openrisc:  +   openrisc-generic
 sparc:  +   grsim grsim_leon2 gr_cpci_ax2000 gr_xc3s_1500 gr_ep2s60
  blackfin:  +   bf609-ezkit
02: move
03: buildman
04: Correct defconfigs using savedefconfig
05: moveconfig: Add an option to skip prompts
06: moveconfig: Add an option to commit changes
07: Kconfig: Move SPL settings into their own file
08: arm: fsl: Adjust ordering of #ifndef CONFIG_SPL_BUILD
09: Drop CONFIG_SPL_RAM_SUPPORT
10: Use separate options for TPL support
11: Kconfig: spl: Add SPL support options to Kconfig
12: Kconfig: tpl: Add some TPL support options to Kconfig
13: Move existing use of CONFIG_SPL_DM to Kconfig
14: Move existing use of CONFIG_SPL_RSA to Kconfig
15: spear: Use upper case for CONFIG options
arm:
   + u-boot.cfg: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE + 
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1 
CONFIG_ENV_SECT_SIZE=0x0001 CONFIG_NAND=1 CONFIG_STV0991=1 
CONFIG_SYS_MONITOR_LEN=0x0004 CONFIG_USBTTY=1
   - u-boot.cfg: CONFIG_DW_UDC=1 CONFIG_ENV_IS_IN_NAND=1 
CONFIG_ENV_OFFSET=0x6 CONFIG_ENV_RANGE=0x1 CONFIG_SPEAR_USBTTY=1 
CONFIG_USBD_HS=1 CONFIG_USBD_MANUFACTURER="ST Microelectronics" 
CONFIG_USBD_PRODUCT_NAME="SPEAr SoC" CONFIG_USB_DEVICE=1 CONFIG_USB_TTY=1 
CONFIG_nand=1 CONFIG_spear300=1 CONFIG_spear310=1 CONFIG_spear320=1 
CONFIG_spear600=1 CONFIG_stv0991=1 CONFIG_usbtty=1
   + all: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN) 
CONFIG_ENV_IS_IN_FLASH=1 CONFIG_ENV_SECT_SIZE=0x0001 CONFIG_NAND=1 
CONFIG_STV0991=1 CONFIG_SYS_MONITOR_LEN=0x0004 CONFIG_USBTTY=1
   - all: CONFIG_DW_UDC=1 CONFIG_ENV_IS_IN_NAND=1 CONFIG_ENV_OFFSET=0x6 
CONFIG_ENV_RANGE=0x1 CONFIG_SPEAR_USBTTY=1 CONFIG_USBD_HS=1 
CONFIG_USBD_MANUFACTURER="ST Microelectronics" CONFIG_USBD_PRODUCT_NAME="SPEAr 
SoC" CONFIG_USB_DEVICE=1 CONFIG_USB_TTY=1 CONFIG_nand=1 CONFIG_spear300=1 
CONFIG_spear310=1 CONFIG_spear320=1 CONFIG_spear600=1 CONFIG_stv0991=1 
CONFIG_usbtty=1
spear600_nand :
   + u-boot.cfg: CONFIG_NAND=1
   - u-boot.cfg: CONFIG_nand=1 CONFIG_spear600=1
   + all: CONFIG_NAND=1
   - all: CONFIG_nand=1 CONFIG_spear600=1
spear300_nand :
   + u-boot.cfg: CONFIG_ENV_ADDR=(CONFIG_SYS_FLASH_BASE + 
CONFIG_SYS_MONITOR_LEN) CONFIG_ENV_IS_IN_FLASH=1 
CONFIG_ENV_SECT_SIZE=0x0001 CONFIG_NAND=1 CONFIG_SYS_MONITOR_LEN=0x0004
   - 

Re: [U-Boot] [PATCH] pxe: Fix pxe boot with FIT image

2016-08-29 Thread Tom Rini
On Thu, Aug 04, 2016 at 03:44:50PM +0800, Wenbin song wrote:

> From: York Sun 
> 
> When FIT image is used, a single image provides kernel, device
> tree and optionally ramdisk. Argc and argv need to be adjusted
> to support this.
> 
> Signed-off-by: York Sun 
> ---
>  cmd/pxe.c | 9 +
>  1 file changed, 5 insertions(+), 4 deletions(-)

Can you please confirm you tested the other common cases of PXE booting
still work with this change?  Thanks!

-- 
Tom


signature.asc
Description: Digital signature
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] armv8: Remove the codes about switching to EL1 before jumping to kernel

2016-08-29 Thread Huan Wang
> On 18.07.16 05:24, Huan Wang wrote:
> > Hi, Alex,
> >
> >
> >
> >   As there is strong objection to remove the codes about
> > switching to EL1, I think we have to remain it, do you agree?
> 
> I agree, yes.
> 
> > If it is remained, I think your suggestion about
> > **always** jumping to ep for both switching to AArch64 and AArch32
> > modes will make the code hard to realize and very complicated. So I
> > prefer to  keep the process in v4 patches. What is your opinion?
> 
> I think we should still convert it to a function call based approach.
> You can either just convert the current flow to functions:
> 
> static void enter_in_el1(...)
> {
> call_in_el1(payload_pc, payload_bits, ...); }
> 
> #ifdef ENTER_PAYLOAD_IN_EL1
> call_in_el2(enter_in_el1, 64bit, ...);
> #else
> call_in_el2(payload_pc, payload_bits, ...); #endif
> 
> Or you could add a check in the EL1 caller if you are in EL3 that you
> want to go to EL2 first:
> 
> long call_in_el1(...)
> {
>   if (current_el() == 3)
> return call_in_el2(call_in_el1, ...);
> 
>   asm_call_in_el1(...);
> }
> 
> 
[Alison Wang] Yes, it can work for primary core and secondary cores for 
LayerScape.

For other ARMv8 platforms, such as
arch/arm/mach-exynos/soc.c,
void lowlevel_init(void)
{
armv8_switch_to_el2();
armv8_switch_to_el1();
}
Is there any appropriate ep we can transfer for these functions?

Even for the common arch/arm/cpu/armv8/start.S,
bl  armv8_switch_to_el2
#ifdef CONFIG_ARMV8_SWITCH_TO_EL1
bl  armv8_switch_to_el1
#endif
The ep is hard to define.

"msr elr_el3, lr" really make sense.

Best Regards,
Alison Wang
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v4 4/4] mx6ul_14x14_ev: Enable the CCGR clocks earlier

2016-08-29 Thread Fabio Estevam
From: Fabio Estevam 

To be in the safe side we need to enable the CCGR clocks prior
to calling arch_cpu_init().

Inspired by Tim Harvey's commit d783c2744f9 ("imx: ventana: fix boot to SD").

Signed-off-by: Fabio Estevam 
Reviewed-by: Eric Nelson 
Tested-by: Eric Nelson 
---
Changes since v3:
- None

 board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c 
b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
index 9243ec5..51876dc 100644
--- a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
+++ b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
@@ -846,11 +846,11 @@ static void spl_dram_init(void)
 
 void board_init_f(ulong dummy)
 {
+   ccgr_init();
+
/* setup AIPS and disable watchdog */
arch_cpu_init();
 
-   ccgr_init();
-
/* iomux and setup of i2c */
board_early_init_f();
 
-- 
1.9.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v4 3/4] mx6ul_14x14_evk: Adjust SPL DDR3 settings

2016-08-29 Thread Fabio Estevam
From: Fabio Estevam 

Adjust DDR3 initialization done in SPL by comparing them against
the NXP DCD table.

Signed-off-by: Fabio Estevam 
---
Changes since v3:
- None

 board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 14 +++---
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c 
b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
index 2ca0921..9243ec5 100644
--- a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
+++ b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
@@ -779,17 +779,17 @@ static struct mx6ul_iomux_ddr_regs mx6_ddr_ioregs = {
.dram_odt0 = 0x0030,
.dram_odt1 = 0x0030,
.dram_sdba2 = 0x,
-   .dram_sdclk_0 = 0x0008,
-   .dram_sdqs0 = 0x0038,
+   .dram_sdclk_0 = 0x0030,
+   .dram_sdqs0 = 0x0030,
.dram_sdqs1 = 0x0030,
.dram_reset = 0x0030,
 };
 
 static struct mx6_mmdc_calibration mx6_mmcd_calib = {
-   .p0_mpwldectrl0 = 0x00070007,
-   .p0_mpdgctrl0 = 0x41490145,
-   .p0_mprddlctl = 0x40404546,
-   .p0_mpwrdlctl = 0x4040524D,
+   .p0_mpwldectrl0 = 0x,
+   .p0_mpdgctrl0 = 0x41570155,
+   .p0_mprddlctl = 0x4040474A,
+   .p0_mpwrdlctl = 0x40405550,
 };
 
 struct mx6_ddr_sysinfo ddr_sysinfo = {
@@ -799,7 +799,7 @@ struct mx6_ddr_sysinfo ddr_sysinfo = {
.cs1_mirror = 0,
.rtt_wr = 2,
.rtt_nom = 1,   /* RTT_Nom = RZQ/2 */
-   .walat = 1, /* Write additional latency */
+   .walat = 0, /* Write additional latency */
.ralat = 5, /* Read additional latency */
.mif3_mode = 3, /* Command prediction working mode */
.bi_on = 1, /* Bank interleaving enabled */
-- 
1.9.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v4 2/4] mx6ul_14x14_evk: Pass refsel and refr fields to avoid hang

2016-08-29 Thread Fabio Estevam
From: Fabio Estevam 

When running a NXP 4.1 kernel with U-Boot mainline on a mx6ul-evk,
we observe a hang when going into the lowest operational point of cpufreq.

This hang issue does not happen on the NXP U-Boot version.

After comparing the SPL DDR initialization against the DCD table
from NXP U-Boot, the key difference that causes the hang is the
MDREF register setting:

DATA 4 0x021B0020 0x0800

,which means:

REF_SEL = 0 --> Periodic refresh cycle: 64kHz
REFR = 1 ---> Refresh Rate - 2 refreshes

So adjust the MDREF initialization for mx6ul_evk accordingly
to fix the kernel hang issue at low bus frequency.

Reported-by: Eric Nelson 
Signed-off-by: Fabio Estevam 
---
Changes since v3:
- Just adapt due to previous patch

 board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c 
b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
index 5e39108..2ca0921 100644
--- a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
+++ b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
@@ -806,8 +806,8 @@ struct mx6_ddr_sysinfo ddr_sysinfo = {
.sde_to_rst = 0x10, /* 14 cycles, 200us (JEDEC default) */
.rst_to_cke = 0x23, /* 33 cycles, 500us (JEDEC default) */
.ddr_type = DDR_TYPE_DDR3,
-   .refsel = 1,/* Refresh cycles at 32KHz */
-   .refr = 7,  /* 8 refresh commands per refresh cycle */
+   .refsel = 0,/* Refresh cycles at 64KHz */
+   .refr = 1,  /* 2 refresh commands per refresh cycle */
 };
 
 static struct mx6_ddr3_cfg mem_ddr = {
-- 
1.9.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v4 1/4] mx6: ddr: Allow changing REFSEL and REFR fields

2016-08-29 Thread Fabio Estevam
From: Fabio Estevam 

Currently MX6 SPL DDR initialization hardcodes the REF_SEL and
REFR fields of the MDREF register as 1 and 7, respectively for
DDR3 and 0 and 3 for LPDDR2.

Looking at the MDREF initialization done via DCD we see that
boards do need to initialize these fields differently:

$ git grep 0x021b0020 board/
board/bachmann/ot1200/mx6q_4x_mt41j128.cfg:DATA 4 0x021b0020 0x5800
board/ccv/xpress/imximage.cfg:DATA 4 0x021b0020 0x0800 /* MMDC0_MDREF */
board/freescale/mx6qarm2/imximage.cfg:DATA 4 0x021b0020 0x7800
board/freescale/mx6qarm2/imximage.cfg:DATA 4 0x021b0020 0x5800
board/freescale/mx6qarm2/imximage_mx6dl.cfg:DATA 4 0x021b0020 0x5800
board/freescale/mx6qarm2/imximage_mx6dl.cfg:DATA 4 0x021b0020 0x5800
board/freescale/mx6qsabreauto/imximage.cfg:DATA 4 0x021b0020 0x5800
board/freescale/mx6qsabreauto/mx6dl.cfg:DATA 4 0x021b0020 0x5800
board/freescale/mx6qsabreauto/mx6qp.cfg:DATA 4 0x021b0020 0x5800
board/freescale/mx6sabresd/mx6dlsabresd.cfg:DATA 4  0x021b0020 0x5800
board/freescale/mx6sabresd/mx6q_4x_mt41j128.cfg:DATA 4 0x021b0020 0x5800
board/freescale/mx6slevk/imximage.cfg:DATA 4 0x021b0020 0x1800
board/freescale/mx6sxsabreauto/imximage.cfg:DATA 4 0x021b0020 0x0800
board/freescale/mx6sxsabresd/imximage.cfg:DATA 4 0x021b0020 0x0800
board/warp/imximage.cfg:DATA 4 0x021b0020 0x1800

So introduce a mechanism for users to be able to configure
REFSEL and REFR fields as needed.

Keep all the mx6 SPL users in their current REF_SEL and REFR values,
so no functional changes for the existing users.

Signed-off-by: Fabio Estevam 
---
Changes since v3:
- Fix the logic for setting refsel/refr registers (Eric)

 arch/arm/cpu/armv7/mx6/ddr.c  | 6 ++
 arch/arm/include/asm/arch-mx6/mx6-ddr.h   | 2 ++
 board/bachmann/ot1200/ot1200_spl.c| 2 ++
 board/barco/platinum/spl_picon.c  | 2 ++
 board/barco/platinum/spl_titanium.c   | 2 ++
 board/ccv/xpress/spl.c| 2 ++
 board/compulab/cm_fx6/spl.c   | 4 
 board/congatec/cgtqmx6eval/cgtqmx6eval.c  | 2 ++
 board/el/el6x/el6x.c  | 2 ++
 board/freescale/mx6sabresd/mx6sabresd.c   | 2 ++
 board/freescale/mx6slevk/mx6slevk.c   | 2 ++
 board/freescale/mx6sxsabresd/mx6sxsabresd.c   | 2 ++
 board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 4 
 board/gateworks/gw_ventana/gw_ventana_spl.c   | 2 ++
 board/kosagi/novena/novena_spl.c  | 2 ++
 board/phytec/pcm058/pcm058.c  | 2 ++
 board/solidrun/mx6cuboxi/mx6cuboxi.c  | 2 ++
 board/udoo/udoo_spl.c | 2 ++
 board/wandboard/spl.c | 6 ++
 19 files changed, 46 insertions(+), 4 deletions(-)

diff --git a/arch/arm/cpu/armv7/mx6/ddr.c b/arch/arm/cpu/armv7/mx6/ddr.c
index f151eec..7beb7ea 100644
--- a/arch/arm/cpu/armv7/mx6/ddr.c
+++ b/arch/arm/cpu/armv7/mx6/ddr.c
@@ -1166,8 +1166,7 @@ void mx6_lpddr2_cfg(const struct mx6_ddr_sysinfo *sysinfo,
mmdc0->mpzqhwctrl = val;
 
/* Step 12: Configure and activate periodic refresh */
-   mmdc0->mdref = (0 << 14) | /* REF_SEL: Periodic refresh cycle: 64kHz */
-  (3 << 11);  /* REFR: Refresh Rate - 4 refreshes */
+   mmdc0->mdref = (sysinfo->refsel << 14) | (sysinfo->refr << 11);
 
/* Step 13: Deassert config request - init complete */
mmdc0->mdscr = 0x;
@@ -1472,8 +1471,7 @@ void mx6_ddr3_cfg(const struct mx6_ddr_sysinfo *sysinfo,
MMDC1(mpzqhwctrl, val);
 
/* Step 12: Configure and activate periodic refresh */
-   mmdc0->mdref = (1 << 14) | /* REF_SEL: Periodic refresh cycle: 32kHz */
-  (7 << 11);  /* REFR: Refresh Rate - 8 refreshes */
+   mmdc0->mdref = (sysinfo->refsel << 14) | (sysinfo->refr << 11);
 
/* Step 13: Deassert config request - init complete */
mmdc0->mdscr = 0x;
diff --git a/arch/arm/include/asm/arch-mx6/mx6-ddr.h 
b/arch/arm/include/asm/arch-mx6/mx6-ddr.h
index 12c30d2..9922409 100644
--- a/arch/arm/include/asm/arch-mx6/mx6-ddr.h
+++ b/arch/arm/include/asm/arch-mx6/mx6-ddr.h
@@ -408,6 +408,8 @@ struct mx6_ddr_sysinfo {
u8 sde_to_rst;  /* Time from SDE enable until DDR reset# is high */
u8 pd_fast_exit;/* enable precharge powerdown fast-exit */
u8 ddr_type;/* DDR type: DDR3(0) or LPDDR2(1) */
+   u8 refsel;  /* REF_SEL field of register MDREF */
+   u8 refr;/* REFR field of register MDREF */
 };
 
 /*
diff --git a/board/bachmann/ot1200/ot1200_spl.c 
b/board/bachmann/ot1200/ot1200_spl.c
index f651a40..9d28da4 100644
--- a/board/bachmann/ot1200/ot1200_spl.c
+++ b/board/bachmann/ot1200/ot1200_spl.c
@@ -85,6 +85,8 @@ static struct mx6_ddr_sysinfo ot1200_ddr_sysinfo = {
.bi_on  = 1, 

Re: [U-Boot] [PATCH 5/8] armv8: fsl-layerscape: add define CONFIG_STANDALONE_LOAD_ADDR for standalone app

2016-08-29 Thread Shaohui Xie
> On 08/26/2016 04:40 AM, Gong Qianyu wrote:
> > From: Shaohui Xie 
> >
> > The CONFIG_STANDALONE_LOAD_ADDR is set to 0x8030 by default.
> >
> > Signed-off-by: Shaohui Xie 
> > Signed-off-by: Gong Qianyu 
> > ---
> >  arch/arm/include/asm/arch-fsl-layerscape/config.h | 2 ++
> >  1 file changed, 2 insertions(+)
> >
> > diff --git a/arch/arm/include/asm/arch-fsl-layerscape/config.h
> b/arch/arm/include/asm/arch-fsl-layerscape/config.h
> > index b0ad4b4..c7e374c 100644
> > --- a/arch/arm/include/asm/arch-fsl-layerscape/config.h
> > +++ b/arch/arm/include/asm/arch-fsl-layerscape/config.h
> > @@ -9,6 +9,8 @@
> >
> >  #include 
> >
> > +#define CONFIG_STANDALONE_LOAD_ADDR0x8030
> > +
> 
> Do you really need this? It is default to 0x8030 in arch/arm/config.mk.
[S.H] It's needed, in the arch/arm/config.mk, it's defined as:

ifndef CONFIG_STANDALONE_LOAD_ADDR
ifneq ($(CONFIG_OMAP_COMMON),)
CONFIG_STANDALONE_LOAD_ADDR = 0x8030
else
CONFIG_STANDALONE_LOAD_ADDR = 0xc10
endif
endif

we need the CONFIG_STANDALONE_LOAD_ADDR defined as a valid address for ARM.
The proposed patch is to clearly define the CONFIG_STANDALONE_LOAD_ADDR for our 
SOCs.

Thanks,
Shaohui



___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v3 1/4] mx6: ddr: Allow changing REFSEL and REFR fields

2016-08-29 Thread Fabio Estevam
On Mon, Aug 29, 2016 at 6:15 PM, Eric Nelson  wrote:

> Right, but this patch will change it back to a 1:

Sorry, Eric. My mistake. Will send a v4.

Thanks
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] nand: Fix nand info for no device

2016-08-29 Thread Scott Wood
On Mon, 2016-08-29 at 09:11 -0700, Tony Lindgren wrote:
> Looks like we have few more places where we're testing for
> nand_info[i]->name. We can now use just test for nand_info[i]
> instead.
> 
> This fixes a data abort on devices with no NAND when doing
> nand info.
> 
> Signed-off-by: Tony Lindgren 
> ---
>  cmd/nand.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

I also see a few instances of this in drivers/dfu/dfu_nand.c and
drivers/mtd/nand/omap_gpmc.c.

-Scott

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v3 1/4] mx6: ddr: Allow changing REFSEL and REFR fields

2016-08-29 Thread Fabio Estevam
On Mon, Aug 29, 2016 at 6:15 PM, Eric Nelson  wrote:

> Right, but this patch will change it back to a 1:
>
> +   if (!sysinfo->refsel)
> +   refsel = 1; /* REF_SEL: Periodic refresh cycle: 32kHz */
> +   else
> +   refsel = sysinfo->refsel;

It only goes to 1 if refsel is not defined in the board file.

refsel = 1 is the current behavior and I need to keep it.

After patch 2/4, refsel will be 0 in imx6ul_evk.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] Suspected Spam: Do not open attachements![PATCH 4/6] tools/env: flash_write_buf: enforce offset to be start of environment

2016-08-29 Thread Andreas Fenkart
This allows to take advantage of the environment being block aligned.
This is not a new constraint. Writes always start at the begin of the
environment, since the header with CRC/length as there.
Every environment modification requires updating the header

Signed-off-by: Andreas Fenkart 
---
 tools/env/fw_env.c | 15 ---
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
index 0f0eaa4..3dc0d53 100644
--- a/tools/env/fw_env.c
+++ b/tools/env/fw_env.c
@@ -765,12 +765,12 @@ static int flash_read_buf (int dev, int fd, void *buf, 
size_t count,
 }
 
 /*
- * Write count bytes at offset, but stay within ENVSECTORS (dev) sectors of
+ * Write count bytes from begin of environment, but stay within
+ * ENVSECTORS(dev) sectors of
  * DEVOFFSET (dev). Similar to the read case above, on NOR and dataflash we
  * erase and write the whole data at once.
  */
-static int flash_write_buf (int dev, int fd, void *buf, size_t count,
-   off_t offset)
+static int flash_write_buf(int dev, int fd, void *buf, size_t count)
 {
void *data;
struct erase_info_user erase;
@@ -796,20 +796,21 @@ static int flash_write_buf (int dev, int fd, void *buf, 
size_t count,
if (DEVTYPE(dev) == MTD_ABSENT) {
blocklen = count;
erase_len = blocklen;
-   blockstart = offset;
+   blockstart = DEVOFFSET(dev);
block_seek = 0;
write_total = blocklen;
} else {
blocklen = DEVESIZE(dev);
 
-   erase_offset = (offset / blocklen) * blocklen;
+   erase_offset = DEVOFFSET(dev);
 
/* Maximum area we may use */
erase_len = environment_end(dev) - erase_offset;
 
blockstart = erase_offset;
+
/* Offset inside a block */
-   block_seek = offset - erase_offset;
+   block_seek = DEVOFFSET(dev) - erase_offset;
 
/*
 * Data size we actually write: from the start of the block
@@ -1007,7 +1008,7 @@ static int flash_write (int fd_current, int fd_target, 
int dev_target)
 #endif
 
rc = flash_write_buf(dev_target, fd_target, environment.image,
-CUR_ENVSIZE, DEVOFFSET(dev_target));
+CUR_ENVSIZE);
if (rc < 0)
return rc;
 
-- 
2.8.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 3/6] tools/env: lookup dev_type directly from flash_read_buf/flash_write_buf

2016-08-29 Thread Andreas Fenkart
flash_write_buf already looks up size/offset/#sector from struct
envdev_s. It can look up mtd_type as well. Same applies to
flash_read_buf. Makes the interface simpler

Signed-off-by: Andreas Fenkart 
---
 tools/env/fw_env.c | 28 +---
 1 file changed, 13 insertions(+), 15 deletions(-)

diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
index 86849b7..0f0eaa4 100644
--- a/tools/env/fw_env.c
+++ b/tools/env/fw_env.c
@@ -689,7 +689,7 @@ static int flash_bad_block(int fd, uint8_t mtd_type, loff_t 
blockstart)
  * the DEVOFFSET (dev) block. On NOR the loop is only run once.
  */
 static int flash_read_buf (int dev, int fd, void *buf, size_t count,
-  off_t offset, uint8_t mtd_type)
+  off_t offset)
 {
size_t blocklen;/* erase / write length - one block on NAND,
   0 on NOR */
@@ -706,7 +706,7 @@ static int flash_read_buf (int dev, int fd, void *buf, 
size_t count,
/* Offset inside a block */
block_seek = offset - blockstart;
 
-   if (mtd_type == MTD_NANDFLASH) {
+   if (DEVTYPE(dev) == MTD_NANDFLASH) {
/*
 * NAND: calculate which blocks we are reading. We have
 * to read one block at a time to skip bad blocks.
@@ -722,7 +722,7 @@ static int flash_read_buf (int dev, int fd, void *buf, 
size_t count,
 
/* This only runs once on NOR flash */
while (processed < count) {
-   rc = flash_bad_block(fd, mtd_type, blockstart);
+   rc = flash_bad_block(fd, DEVTYPE(dev), blockstart);
if (rc < 0) /* block test failed */
return -1;
 
@@ -770,7 +770,7 @@ static int flash_read_buf (int dev, int fd, void *buf, 
size_t count,
  * erase and write the whole data at once.
  */
 static int flash_write_buf (int dev, int fd, void *buf, size_t count,
-   off_t offset, uint8_t mtd_type)
+   off_t offset)
 {
void *data;
struct erase_info_user erase;
@@ -793,7 +793,7 @@ static int flash_write_buf (int dev, int fd, void *buf, 
size_t count,
/*
 * For mtd devices only offset and size of the environment do matter
 */
-   if (mtd_type == MTD_ABSENT) {
+   if (DEVTYPE(dev) == MTD_ABSENT) {
blocklen = count;
erase_len = blocklen;
blockstart = offset;
@@ -834,8 +834,7 @@ static int flash_write_buf (int dev, int fd, void *buf, 
size_t count,
return -1;
}
 
-   rc = flash_read_buf (dev, fd, data, write_total, erase_offset,
-mtd_type);
+   rc = flash_read_buf(dev, fd, data, write_total, erase_offset);
if (write_total != rc)
return -1;
 
@@ -862,7 +861,7 @@ static int flash_write_buf (int dev, int fd, void *buf, 
size_t count,
data = buf;
}
 
-   if (mtd_type == MTD_NANDFLASH) {
+   if (DEVTYPE(dev) == MTD_NANDFLASH) {
/*
 * NAND: calculate which blocks we are writing. We have
 * to write one block at a time to skip bad blocks.
@@ -876,7 +875,7 @@ static int flash_write_buf (int dev, int fd, void *buf, 
size_t count,
 
/* This only runs once on NOR flash and SPI-dataflash */
while (processed < write_total) {
-   rc = flash_bad_block(fd, mtd_type, blockstart);
+   rc = flash_bad_block(fd, DEVTYPE(dev), blockstart);
if (rc < 0) /* block test failed */
return rc;
 
@@ -890,11 +889,11 @@ static int flash_write_buf (int dev, int fd, void *buf, 
size_t count,
continue;
}
 
-   if (mtd_type != MTD_ABSENT) {
+   if (DEVTYPE(dev) != MTD_ABSENT) {
erase.start = blockstart;
ioctl(fd, MEMUNLOCK, );
/* These do not need an explicit erase cycle */
-   if (mtd_type != MTD_DATAFLASH)
+   if (DEVTYPE(dev) != MTD_DATAFLASH)
if (ioctl(fd, MEMERASE, ) != 0) {
fprintf(stderr,
"MTD erase error on %s: %s\n",
@@ -921,7 +920,7 @@ static int flash_write_buf (int dev, int fd, void *buf, 
size_t count,
return -1;
}
 
-   if (mtd_type != MTD_ABSENT)
+   if (DEVTYPE(dev) != MTD_ABSENT)
ioctl(fd, MEMLOCK, );
 
processed  += erasesize;
@@ -1008,8 +1007,7 @@ static int flash_write (int fd_current, int fd_target, 
int dev_target)
 #endif
 
rc = flash_write_buf(dev_target, fd_target, environment.image,
-  

[U-Boot] [PATCH 2/6] tools/env: pass bad block offset by value

2016-08-29 Thread Andreas Fenkart
the offset is not modified by linux ioctl call
see mtd_ioctl{drivers/mtd/mtdchar.c}
Makes the interface less ambiguous, since the caller can
now exclude a modification of blockstart

Signed-off-by: Andreas Fenkart 
---
 tools/env/fw_env.c | 10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
index 90eb5fa..86849b7 100644
--- a/tools/env/fw_env.c
+++ b/tools/env/fw_env.c
@@ -661,10 +661,10 @@ off_t environment_end(int dev)
  * > 0 - block is bad
  * < 0 - failed to test
  */
-static int flash_bad_block (int fd, uint8_t mtd_type, loff_t *blockstart)
+static int flash_bad_block(int fd, uint8_t mtd_type, loff_t blockstart)
 {
if (mtd_type == MTD_NANDFLASH) {
-   int badblock = ioctl (fd, MEMGETBADBLOCK, blockstart);
+   int badblock = ioctl(fd, MEMGETBADBLOCK, );
 
if (badblock < 0) {
perror ("Cannot read bad block mark");
@@ -674,7 +674,7 @@ static int flash_bad_block (int fd, uint8_t mtd_type, 
loff_t *blockstart)
if (badblock) {
 #ifdef DEBUG
fprintf (stderr, "Bad block at 0x%llx, skipping\n",
-   (unsigned long long) *blockstart);
+   (unsigned long long)blockstart);
 #endif
return badblock;
}
@@ -722,7 +722,7 @@ static int flash_read_buf (int dev, int fd, void *buf, 
size_t count,
 
/* This only runs once on NOR flash */
while (processed < count) {
-   rc = flash_bad_block (fd, mtd_type, );
+   rc = flash_bad_block(fd, mtd_type, blockstart);
if (rc < 0) /* block test failed */
return -1;
 
@@ -876,7 +876,7 @@ static int flash_write_buf (int dev, int fd, void *buf, 
size_t count,
 
/* This only runs once on NOR flash and SPI-dataflash */
while (processed < write_total) {
-   rc = flash_bad_block (fd, mtd_type, );
+   rc = flash_bad_block(fd, mtd_type, blockstart);
if (rc < 0) /* block test failed */
return rc;
 
-- 
2.8.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 1/6] tools/env: factor out environment_end function

2016-08-29 Thread Andreas Fenkart
instead of adhoc computation of the environment end,
use a function with a proper name

Signed-off-by: Andreas Fenkart 
---
 tools/env/fw_env.c | 32 +++-
 1 file changed, 15 insertions(+), 17 deletions(-)

diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
index d27f57e..90eb5fa 100644
--- a/tools/env/fw_env.c
+++ b/tools/env/fw_env.c
@@ -643,6 +643,18 @@ int fw_parse_script(char *fname, struct env_opts *opts)
return ret;
 }
 
+/**
+ * environment_end() - compute offset of first byte right after environemnt
+ * @dev - index of enviroment buffer
+ * Return:
+ *  device offset of first byte right after environemnt
+ */
+off_t environment_end(int dev)
+{
+   /* environment is block aligned */
+   return DEVOFFSET(dev) + ENVSECTORS(dev) * DEVESIZE(dev);
+}
+
 /*
  * Test for bad block on NAND, just returns 0 on NOR, on NAND:
  * 0   - block is good
@@ -683,7 +695,6 @@ static int flash_read_buf (int dev, int fd, void *buf, 
size_t count,
   0 on NOR */
size_t processed = 0;   /* progress counter */
size_t readlen = count; /* current read length */
-   off_t top_of_range; /* end of the last block we may use */
off_t block_seek;   /* offset inside the current block to the start
   of the data */
loff_t blockstart;  /* running start of the current block -
@@ -702,19 +713,11 @@ static int flash_read_buf (int dev, int fd, void *buf, 
size_t count,
 */
blocklen = DEVESIZE (dev);
 
-   /*
-* To calculate the top of the range, we have to use the
-* global DEVOFFSET (dev), which can be different from offset
-*/
-   top_of_range = ((DEVOFFSET(dev) / blocklen) +
-   ENVSECTORS (dev)) * blocklen;
-
/* Limit to one block for the first read */
if (readlen > blocklen - block_seek)
readlen = blocklen - block_seek;
} else {
blocklen = 0;
-   top_of_range = offset + count;
}
 
/* This only runs once on NOR flash */
@@ -723,7 +726,7 @@ static int flash_read_buf (int dev, int fd, void *buf, 
size_t count,
if (rc < 0) /* block test failed */
return -1;
 
-   if (blockstart + block_seek + readlen > top_of_range) {
+   if (blockstart + block_seek + readlen > environment_end(dev)) {
/* End of range is reached */
fprintf (stderr,
 "Too few good blocks within range\n");
@@ -783,7 +786,6 @@ static int flash_write_buf (int dev, int fd, void *buf, 
size_t count,
   below offset */
off_t block_seek;   /* offset inside the erase block to the start
   of the data */
-   off_t top_of_range; /* end of the last block we may use */
loff_t blockstart;  /* running start of the current block -
   MEMGETBADBLOCK needs 64 bits */
int rc;
@@ -793,7 +795,6 @@ static int flash_write_buf (int dev, int fd, void *buf, 
size_t count,
 */
if (mtd_type == MTD_ABSENT) {
blocklen = count;
-   top_of_range = offset + count;
erase_len = blocklen;
blockstart = offset;
block_seek = 0;
@@ -801,13 +802,10 @@ static int flash_write_buf (int dev, int fd, void *buf, 
size_t count,
} else {
blocklen = DEVESIZE(dev);
 
-   top_of_range = ((DEVOFFSET(dev) / blocklen) +
-   ENVSECTORS(dev)) * blocklen;
-
erase_offset = (offset / blocklen) * blocklen;
 
/* Maximum area we may use */
-   erase_len = top_of_range - erase_offset;
+   erase_len = environment_end(dev) - erase_offset;
 
blockstart = erase_offset;
/* Offset inside a block */
@@ -882,7 +880,7 @@ static int flash_write_buf (int dev, int fd, void *buf, 
size_t count,
if (rc < 0) /* block test failed */
return rc;
 
-   if (blockstart + erasesize > top_of_range) {
+   if (blockstart + erasesize > environment_end(dev)) {
fprintf (stderr, "End of range reached, aborting\n");
return -1;
}
-- 
2.8.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 0/6] tools/env: refactor flash read/write function

2016-08-29 Thread Andreas Fenkart
Take advantage of the environment being block aligned
block alignment is enforced since 183923d3e4

Andreas Fenkart (6):
  tools/env: factor out environment_end function
  tools/env: pass bad block offset by value
  tools/env: lookup dev_type directly from
flash_read_buf/flash_write_buf
  tools/env: flash_write_buf: enforce offset to be start of environment
  tools/env: flash_write_buf: remove block alignment calculations
  tools/env: flash_read_buf: enforce offset to be start of environment

 tools/env/fw_env.c | 121 -
 1 file changed, 45 insertions(+), 76 deletions(-)

-- 
2.8.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v3 1/4] mx6: ddr: Allow changing REFSEL and REFR fields

2016-08-29 Thread Eric Nelson
On 08/29/2016 01:59 PM, Fabio Estevam wrote:
> Hi Eric,
> 
> On Mon, Aug 29, 2016 at 5:56 PM, Eric Nelson  wrote:
> 
>>>   /* Step 12: Configure and activate periodic refresh */
>>> - mmdc0->mdref = (1 << 14) | /* REF_SEL: Periodic refresh cycle: 32kHz 
>>> */
>>> -(7 << 11);  /* REFR: Refresh Rate - 8 refreshes */
>>
>> Oops.
>>
>> Your original patch (and what we want for the 6UL EVK) has a refsel
>> of zero, right?
>> http://lists.denx.de/pipermail/u-boot/2016-August/265128.html
> 
> Yes, in this v3 series I change refsel to 0 in patch 2/4.
> 

Right, but this patch will change it back to a 1:

+   if (!sysinfo->refsel)
+   refsel = 1; /* REF_SEL: Periodic refresh cycle: 32kHz */
+   else
+   refsel = sysinfo->refsel;

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v3 1/4] mx6: ddr: Allow changing REFSEL and REFR fields

2016-08-29 Thread Fabio Estevam
Hi Eric,

On Mon, Aug 29, 2016 at 5:56 PM, Eric Nelson  wrote:

>>   /* Step 12: Configure and activate periodic refresh */
>> - mmdc0->mdref = (1 << 14) | /* REF_SEL: Periodic refresh cycle: 32kHz */
>> -(7 << 11);  /* REFR: Refresh Rate - 8 refreshes */
>
> Oops.
>
> Your original patch (and what we want for the 6UL EVK) has a refsel
> of zero, right?
> http://lists.denx.de/pipermail/u-boot/2016-August/265128.html

Yes, in this v3 series I change refsel to 0 in patch 2/4.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v3 1/4] mx6: ddr: Allow changing REFSEL and REFR fields

2016-08-29 Thread Eric Nelson
Hi Fabio,

On 08/29/2016 01:35 PM, Fabio Estevam wrote:
> From: Fabio Estevam 
> 
> Currently MX6 SPL DDR initialization hardcodes the REF_SEL and
> REFR fields of the MDREF register as 1 and 7, respectively.
> 
> Looking at the MDREF initialization done via DCD we see that
> boards do need to initialize these fields differently:
> 
> $ git grep 0x021b0020 board/
> board/bachmann/ot1200/mx6q_4x_mt41j128.cfg:DATA 4 0x021b0020 0x5800
> board/ccv/xpress/imximage.cfg:DATA 4 0x021b0020 0x0800 /* MMDC0_MDREF */
> board/freescale/mx6qarm2/imximage.cfg:DATA 4 0x021b0020 0x7800
> board/freescale/mx6qarm2/imximage.cfg:DATA 4 0x021b0020 0x5800
> board/freescale/mx6qarm2/imximage_mx6dl.cfg:DATA 4 0x021b0020 0x5800
> board/freescale/mx6qarm2/imximage_mx6dl.cfg:DATA 4 0x021b0020 0x5800
> board/freescale/mx6qsabreauto/imximage.cfg:DATA 4 0x021b0020 0x5800
> board/freescale/mx6qsabreauto/mx6dl.cfg:DATA 4 0x021b0020 0x5800
> board/freescale/mx6qsabreauto/mx6qp.cfg:DATA 4 0x021b0020 0x5800
> board/freescale/mx6sabresd/mx6dlsabresd.cfg:DATA 4  0x021b0020 0x5800
> board/freescale/mx6sabresd/mx6q_4x_mt41j128.cfg:DATA 4 0x021b0020 0x5800
> board/freescale/mx6slevk/imximage.cfg:DATA 4 0x021b0020 0x1800
> board/freescale/mx6sxsabreauto/imximage.cfg:DATA 4 0x021b0020 0x0800
> board/freescale/mx6sxsabresd/imximage.cfg:DATA 4 0x021b0020 0x0800
> board/warp/imximage.cfg:DATA 4 0x021b0020 0x1800
> 
> So introduce a mechanism for users to configure REFSEL and REFR fields
> as needed.
> 
> Signed-off-by: Fabio Estevam 
> ---
> Changes since v2:
> - Do not make this mx6ul specific (Eric)
> 
>  arch/arm/cpu/armv7/mx6/ddr.c| 15 ---
>  arch/arm/include/asm/arch-mx6/mx6-ddr.h |  2 ++
>  2 files changed, 14 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/arm/cpu/armv7/mx6/ddr.c b/arch/arm/cpu/armv7/mx6/ddr.c
> index f151eec..ebc7903 100644
> --- a/arch/arm/cpu/armv7/mx6/ddr.c
> +++ b/arch/arm/cpu/armv7/mx6/ddr.c
> @@ -1183,7 +1183,7 @@ void mx6_ddr3_cfg(const struct mx6_ddr_sysinfo *sysinfo,
>   volatile struct mmdc_p_regs *mmdc0;
>   volatile struct mmdc_p_regs *mmdc1;
>   u32 val;
> - u8 tcke, tcksrx, tcksre, txpdll, taofpd, taonpd, trrd;
> + u8 tcke, tcksrx, tcksre, txpdll, taofpd, taonpd, trrd, refsel, refr;
>   u8 todtlon, taxpd, tanpd, tcwl, txp, tfaw, tcl;
>   u8 todt_idle_off = 0x4; /* from DDR3 Script Aid spreadsheet */
>   u16 trcd, trc, tras, twr, tmrd, trtp, trp, twtr, trfc, txs, txpr;
> @@ -1472,8 +1472,17 @@ void mx6_ddr3_cfg(const struct mx6_ddr_sysinfo 
> *sysinfo,
>   MMDC1(mpzqhwctrl, val);
>  
>   /* Step 12: Configure and activate periodic refresh */
> - mmdc0->mdref = (1 << 14) | /* REF_SEL: Periodic refresh cycle: 32kHz */
> -(7 << 11);  /* REFR: Refresh Rate - 8 refreshes */

Oops.

Your original patch (and what we want for the 6UL EVK) has a refsel
of zero, right?
http://lists.denx.de/pipermail/u-boot/2016-August/265128.html

> + if (!sysinfo->refsel)
> + refsel = 1; /* REF_SEL: Periodic refresh cycle: 32kHz */
> + else
> + refsel = sysinfo->refsel;
> +
> + if (!sysinfo->refr)
> + refr = 7; /* REFR: Refresh Rate - 8 refreshes */
> + else
> + refr = sysinfo->refr;
> +
> + mmdc0->mdref = (refsel << 14) | (refr << 11);
>  
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] gunzip: cache-align write buffer memory

2016-08-29 Thread Stefan Agner
On 2016-08-29 08:10, Clemens Gruber wrote:
> When using gzwrite to eMMC on an i.MX6Q board, the following warning
> occurs repeatedly:
> CACHE: Misaligned operation at range [4fd63318, 4fe63318]
> 
> This patch cache-aligns the memory allocation for the gzwrite writebuf,
> therefore avoiding the misaligned dcache flush and the warning from
> check_cache_range.
> 
> Signed-off-by: Clemens Gruber 
> ---
>  lib/gunzip.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/lib/gunzip.c b/lib/gunzip.c
> index bc746d6..832b306 100644
> --- a/lib/gunzip.c
> +++ b/lib/gunzip.c
> @@ -11,6 +11,7 @@
>  #include 
>  #include 
>  #include 
> +#include 
>  #include 
>  #include 
>  
> @@ -193,7 +194,7 @@ int gzwrite(unsigned char *src, int len,
>  
>   s.next_in = src + i;
>   s.avail_in = payload_size+8;
> - writebuf = (unsigned char *)malloc(szwritebuf);
> + writebuf = (unsigned char *)malloc_cache_aligned(szwritebuf);
>  
>   /* decompress until deflate stream ends or end of file */
>   do {

I wondered about the length of the buffer, but szwritebuf is forced to
be a multiple of the device block size, which is typically quite a bit
bigger than a cache line, so I think we are fine there.

Reviewed-by: Stefan Agner 

--
Stefan
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] ARM: tegra: use numeric versioning for p2771-0000

2016-08-29 Thread Stephen Warren
From: Stephen Warren 

The board ID EEPROM and board ID stickers on p2771- will use a numeric
versioning scheme, with version numbers such as 000/100/200/300/400/500.
Within NVIDIA, these versions are also known as A00/A01/A02/A03/A04/B00.
However, that numbering scheme is not easily visible outside of NVIDIA,
and so does not make much sense to use. Convert U-Boot to use the readily
visible numeric scheme.

Also, it turns out that the current A02 DT actually applies to board
versions 000/100/200 (A00..A02). Consequently rename this to 000 not 200
so that all U-Boot builds are named after the first version of the HW they
support.

Signed-off-by: Stephen Warren 
---
 arch/arm/dts/Makefile | 4 ++--
 .../dts/{tegra186-p2771--a02.dts => tegra186-p2771--000.dts}  | 2 +-
 .../dts/{tegra186-p2771--b00.dts => tegra186-p2771--500.dts}  | 2 +-
 configs/{p2771--a02_defconfig => p2771--000_defconfig}| 4 ++--
 configs/{p2771--b00_defconfig => p2771--500_defconfig}| 4 ++--
 5 files changed, 8 insertions(+), 8 deletions(-)
 rename arch/arm/dts/{tegra186-p2771--a02.dts => 
tegra186-p2771--000.dts} (88%)
 rename arch/arm/dts/{tegra186-p2771--b00.dts => 
tegra186-p2771--500.dts} (88%)
 rename configs/{p2771--a02_defconfig => p2771--000_defconfig} (87%)
 rename configs/{p2771--b00_defconfig => p2771--500_defconfig} (87%)

diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index 223124e791b6..93165877029e 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -58,8 +58,8 @@ dtb-$(CONFIG_TEGRA) += tegra20-harmony.dtb \
tegra124-jetson-tk1.dtb \
tegra124-nyan-big.dtb \
tegra124-venice2.dtb \
-   tegra186-p2771--a02.dtb \
-   tegra186-p2771--b00.dtb \
+   tegra186-p2771--000.dtb \
+   tegra186-p2771--500.dtb \
tegra210-e2220-1170.dtb \
tegra210-p2371-.dtb \
tegra210-p2371-2180.dtb \
diff --git a/arch/arm/dts/tegra186-p2771--a02.dts 
b/arch/arm/dts/tegra186-p2771--000.dts
similarity index 88%
rename from arch/arm/dts/tegra186-p2771--a02.dts
rename to arch/arm/dts/tegra186-p2771--000.dts
index 36a3c21a55de..d2664bd596b6 100644
--- a/arch/arm/dts/tegra186-p2771--a02.dts
+++ b/arch/arm/dts/tegra186-p2771--000.dts
@@ -4,7 +4,7 @@
 
 / {
model = "NVIDIA P2771- A02";
-   compatible = "nvidia,p2771--a02", "nvidia,p2771-", 
"nvidia,tegra186";
+   compatible = "nvidia,p2771--000", "nvidia,p2771-", 
"nvidia,tegra186";
 
sdhci@340 {
cd-gpios = <_main TEGRA_MAIN_GPIO(P, 6) GPIO_ACTIVE_LOW>;
diff --git a/arch/arm/dts/tegra186-p2771--b00.dts 
b/arch/arm/dts/tegra186-p2771--500.dts
similarity index 88%
rename from arch/arm/dts/tegra186-p2771--b00.dts
rename to arch/arm/dts/tegra186-p2771--500.dts
index 0f1d0e83e80d..10595ea6683f 100644
--- a/arch/arm/dts/tegra186-p2771--b00.dts
+++ b/arch/arm/dts/tegra186-p2771--500.dts
@@ -4,7 +4,7 @@
 
 / {
model = "NVIDIA P2771- B00";
-   compatible = "nvidia,p2771--b00", "nvidia,p2771-", 
"nvidia,tegra186";
+   compatible = "nvidia,p2771--500", "nvidia,p2771-", 
"nvidia,tegra186";
 
sdhci@340 {
cd-gpios = <_main TEGRA_MAIN_GPIO(P, 5) GPIO_ACTIVE_LOW>;
diff --git a/configs/p2771--a02_defconfig b/configs/p2771--000_defconfig
similarity index 87%
rename from configs/p2771--a02_defconfig
rename to configs/p2771--000_defconfig
index 5ce369c6d330..25ff8ae7a7f0 100644
--- a/configs/p2771--a02_defconfig
+++ b/configs/p2771--000_defconfig
@@ -2,10 +2,10 @@ CONFIG_ARM=y
 CONFIG_TEGRA=y
 CONFIG_TEGRA186=y
 CONFIG_TARGET_P2771_=y
-CONFIG_DEFAULT_DEVICE_TREE="tegra186-p2771--a02"
+CONFIG_DEFAULT_DEVICE_TREE="tegra186-p2771--000"
 CONFIG_OF_SYSTEM_SETUP=y
 CONFIG_HUSH_PARSER=y
-CONFIG_SYS_PROMPT="Tegra186 (P2771- A02) # "
+CONFIG_SYS_PROMPT="Tegra186 (P2771--000) # "
 # CONFIG_CMD_IMI is not set
 # CONFIG_CMD_IMLS is not set
 # CONFIG_CMD_FLASH is not set
diff --git a/configs/p2771--b00_defconfig b/configs/p2771--500_defconfig
similarity index 87%
rename from configs/p2771--b00_defconfig
rename to configs/p2771--500_defconfig
index 27393f3a5d46..9432a13bcc8e 100644
--- a/configs/p2771--b00_defconfig
+++ b/configs/p2771--500_defconfig
@@ -2,10 +2,10 @@ CONFIG_ARM=y
 CONFIG_TEGRA=y
 CONFIG_TEGRA186=y
 CONFIG_TARGET_P2771_=y
-CONFIG_DEFAULT_DEVICE_TREE="tegra186-p2771--b00"
+CONFIG_DEFAULT_DEVICE_TREE="tegra186-p2771--500"
 CONFIG_OF_SYSTEM_SETUP=y
 CONFIG_HUSH_PARSER=y
-CONFIG_SYS_PROMPT="Tegra186 (P2771- B00) # "
+CONFIG_SYS_PROMPT="Tegra186 (P2771--500) # "
 # CONFIG_CMD_IMI is not set
 # CONFIG_CMD_IMLS is not set
 # CONFIG_CMD_FLASH is not set
-- 
2.9.3


Re: [U-Boot] [PATCH v2 1/3] mx6: ddr: Adjust MDREF register settings for MX6UL

2016-08-29 Thread Eric Nelson
Hi Fabio,

On 08/29/2016 12:53 PM, Fabio Estevam wrote:
> Hi Eric,
> 
> On Mon, Aug 29, 2016 at 3:48 PM, Eric Nelson  wrote:
> 
>> I think this commit message needs work.
>>
>> "we have" seems to mean that the NXP U-Boot fork has this
>> setting, but this isn't an explanation of why.
> 
> Would you prefer something like this in ddr.c?
> http://pastebin.com/GYBTSFkM
> 
> and then on the board file:
> 
> http://pastebin.com/cEqvUJwg
> 

I'm actually not sure because I haven't quite figured out
where the 32k and 64k clock roots are being passed into
the MMDC.

If these are configured in a way that allow the kernel
implementations to disable one of them, then this should
be a board-specific setting to allow different choices.

Or is the inability to use the 64k clock driven by the
i.MX6UL somehow? If that's the case, then your original
patch is more correct.

I'm also not sure why the NXP U-Boot is decreasing the
refresh rate on the 6UL EVK.

Regards,


Eric
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v3 4/4] mx6ul_14x14_ev: Enable the CCGR clocks earlier

2016-08-29 Thread Fabio Estevam
From: Fabio Estevam 

To be in the safe side we need to enable the CCGR clocks prior
to calling arch_cpu_init().

Inspired by Tim Harvey's commit d783c2744f9 ("imx: ventana: fix boot to SD").

Signed-off-by: Fabio Estevam 
Reviewed-by: Eric Nelson 
Tested-by: Eric Nelson 
---
Changes since v2:
- None

 board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c 
b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
index 82d6a3a..95303c7 100644
--- a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
+++ b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
@@ -844,11 +844,11 @@ static void spl_dram_init(void)
 
 void board_init_f(ulong dummy)
 {
+   ccgr_init();
+
/* setup AIPS and disable watchdog */
arch_cpu_init();
 
-   ccgr_init();
-
/* iomux and setup of i2c */
board_early_init_f();
 
-- 
1.9.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v3 3/4] mx6ul_14x14_evk: Adjust SPL DDR3 settings

2016-08-29 Thread Fabio Estevam
From: Fabio Estevam 

Adjust DDR3 initialization done in SPL by comparing them against
the NXP DCD table.

Signed-off-by: Fabio Estevam 
---
Changes since v2:
- None

 board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 14 +++---
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c 
b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
index c3a5cd5..82d6a3a 100644
--- a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
+++ b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
@@ -777,17 +777,17 @@ static struct mx6ul_iomux_ddr_regs mx6_ddr_ioregs = {
.dram_odt0 = 0x0030,
.dram_odt1 = 0x0030,
.dram_sdba2 = 0x,
-   .dram_sdclk_0 = 0x0008,
-   .dram_sdqs0 = 0x0038,
+   .dram_sdclk_0 = 0x0030,
+   .dram_sdqs0 = 0x0030,
.dram_sdqs1 = 0x0030,
.dram_reset = 0x0030,
 };
 
 static struct mx6_mmdc_calibration mx6_mmcd_calib = {
-   .p0_mpwldectrl0 = 0x00070007,
-   .p0_mpdgctrl0 = 0x41490145,
-   .p0_mprddlctl = 0x40404546,
-   .p0_mpwrdlctl = 0x4040524D,
+   .p0_mpwldectrl0 = 0x,
+   .p0_mpdgctrl0 = 0x41570155,
+   .p0_mprddlctl = 0x4040474A,
+   .p0_mpwrdlctl = 0x40405550,
 };
 
 struct mx6_ddr_sysinfo ddr_sysinfo = {
@@ -797,7 +797,7 @@ struct mx6_ddr_sysinfo ddr_sysinfo = {
.cs1_mirror = 0,
.rtt_wr = 2,
.rtt_nom = 1,   /* RTT_Nom = RZQ/2 */
-   .walat = 1, /* Write additional latency */
+   .walat = 0, /* Write additional latency */
.ralat = 5, /* Read additional latency */
.mif3_mode = 3, /* Command prediction working mode */
.bi_on = 1, /* Bank interleaving enabled */
-- 
1.9.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v3 1/4] mx6: ddr: Allow changing REFSEL and REFR fields

2016-08-29 Thread Fabio Estevam
From: Fabio Estevam 

Currently MX6 SPL DDR initialization hardcodes the REF_SEL and
REFR fields of the MDREF register as 1 and 7, respectively.

Looking at the MDREF initialization done via DCD we see that
boards do need to initialize these fields differently:

$ git grep 0x021b0020 board/
board/bachmann/ot1200/mx6q_4x_mt41j128.cfg:DATA 4 0x021b0020 0x5800
board/ccv/xpress/imximage.cfg:DATA 4 0x021b0020 0x0800 /* MMDC0_MDREF */
board/freescale/mx6qarm2/imximage.cfg:DATA 4 0x021b0020 0x7800
board/freescale/mx6qarm2/imximage.cfg:DATA 4 0x021b0020 0x5800
board/freescale/mx6qarm2/imximage_mx6dl.cfg:DATA 4 0x021b0020 0x5800
board/freescale/mx6qarm2/imximage_mx6dl.cfg:DATA 4 0x021b0020 0x5800
board/freescale/mx6qsabreauto/imximage.cfg:DATA 4 0x021b0020 0x5800
board/freescale/mx6qsabreauto/mx6dl.cfg:DATA 4 0x021b0020 0x5800
board/freescale/mx6qsabreauto/mx6qp.cfg:DATA 4 0x021b0020 0x5800
board/freescale/mx6sabresd/mx6dlsabresd.cfg:DATA 4  0x021b0020 0x5800
board/freescale/mx6sabresd/mx6q_4x_mt41j128.cfg:DATA 4 0x021b0020 0x5800
board/freescale/mx6slevk/imximage.cfg:DATA 4 0x021b0020 0x1800
board/freescale/mx6sxsabreauto/imximage.cfg:DATA 4 0x021b0020 0x0800
board/freescale/mx6sxsabresd/imximage.cfg:DATA 4 0x021b0020 0x0800
board/warp/imximage.cfg:DATA 4 0x021b0020 0x1800

So introduce a mechanism for users to configure REFSEL and REFR fields
as needed.

Signed-off-by: Fabio Estevam 
---
Changes since v2:
- Do not make this mx6ul specific (Eric)

 arch/arm/cpu/armv7/mx6/ddr.c| 15 ---
 arch/arm/include/asm/arch-mx6/mx6-ddr.h |  2 ++
 2 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/arch/arm/cpu/armv7/mx6/ddr.c b/arch/arm/cpu/armv7/mx6/ddr.c
index f151eec..ebc7903 100644
--- a/arch/arm/cpu/armv7/mx6/ddr.c
+++ b/arch/arm/cpu/armv7/mx6/ddr.c
@@ -1183,7 +1183,7 @@ void mx6_ddr3_cfg(const struct mx6_ddr_sysinfo *sysinfo,
volatile struct mmdc_p_regs *mmdc0;
volatile struct mmdc_p_regs *mmdc1;
u32 val;
-   u8 tcke, tcksrx, tcksre, txpdll, taofpd, taonpd, trrd;
+   u8 tcke, tcksrx, tcksre, txpdll, taofpd, taonpd, trrd, refsel, refr;
u8 todtlon, taxpd, tanpd, tcwl, txp, tfaw, tcl;
u8 todt_idle_off = 0x4; /* from DDR3 Script Aid spreadsheet */
u16 trcd, trc, tras, twr, tmrd, trtp, trp, twtr, trfc, txs, txpr;
@@ -1472,8 +1472,17 @@ void mx6_ddr3_cfg(const struct mx6_ddr_sysinfo *sysinfo,
MMDC1(mpzqhwctrl, val);
 
/* Step 12: Configure and activate periodic refresh */
-   mmdc0->mdref = (1 << 14) | /* REF_SEL: Periodic refresh cycle: 32kHz */
-  (7 << 11);  /* REFR: Refresh Rate - 8 refreshes */
+   if (!sysinfo->refsel)
+   refsel = 1; /* REF_SEL: Periodic refresh cycle: 32kHz */
+   else
+   refsel = sysinfo->refsel;
+
+   if (!sysinfo->refr)
+   refr = 7; /* REFR: Refresh Rate - 8 refreshes */
+   else
+   refr = sysinfo->refr;
+
+   mmdc0->mdref = (refsel << 14) | (refr << 11);
 
/* Step 13: Deassert config request - init complete */
mmdc0->mdscr = 0x;
diff --git a/arch/arm/include/asm/arch-mx6/mx6-ddr.h 
b/arch/arm/include/asm/arch-mx6/mx6-ddr.h
index 12c30d2..9922409 100644
--- a/arch/arm/include/asm/arch-mx6/mx6-ddr.h
+++ b/arch/arm/include/asm/arch-mx6/mx6-ddr.h
@@ -408,6 +408,8 @@ struct mx6_ddr_sysinfo {
u8 sde_to_rst;  /* Time from SDE enable until DDR reset# is high */
u8 pd_fast_exit;/* enable precharge powerdown fast-exit */
u8 ddr_type;/* DDR type: DDR3(0) or LPDDR2(1) */
+   u8 refsel;  /* REF_SEL field of register MDREF */
+   u8 refr;/* REFR field of register MDREF */
 };
 
 /*
-- 
1.9.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v3 2/4] mx6ul_14x14_evk: Pass refsel and refr fields to avoid hang

2016-08-29 Thread Fabio Estevam
From: Fabio Estevam 

When running a NXP 4.1 kernel with U-Boot mainline on a mx6ul-evk,
we observe a hang when going into the lowest operational point of cpufreq.

This hang issue does not happen on the NXP U-Boot version.

After comparing the SPL DDR initialization against the DCD table
from NXP U-Boot, the key difference that causes the hang is the
MDREF register setting:

DATA 4 0x021B0020 0x0800

,which means:

REF_SEL = 0 --> Periodic refresh cycle: 64kHz
REFR = 1 ---> Refresh Rate - 2 refreshes

So adjust the MDREF initialization for mx6ul_evk accordingly
to fix the kernel hang issue at low bus frequency.

Reported-by: Eric Nelson 
Signed-off-by: Fabio Estevam 
---
Changes since v2:
- Newly intriduced in this series.

 board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c 
b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
index c213861..c3a5cd5 100644
--- a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
+++ b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
@@ -804,6 +804,8 @@ struct mx6_ddr_sysinfo ddr_sysinfo = {
.sde_to_rst = 0x10, /* 14 cycles, 200us (JEDEC default) */
.rst_to_cke = 0x23, /* 33 cycles, 500us (JEDEC default) */
.ddr_type = DDR_TYPE_DDR3,
+   .refsel = 0,/* Refresh cycles at 64KHz */
+   .refr = 1,  /* 2 refresh commands per refresh cycle */
 };
 
 static struct mx6_ddr3_cfg mem_ddr = {
-- 
1.9.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


  1   2   >