oweals/u-boot.git
7 years agoengicam: Set console env on board_late_init
Jagan Teki [Fri, 12 May 2017 11:48:26 +0000 (17:18 +0530)]
engicam: Set console env on board_late_init

Set console env on board_late_init instead of configs.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
7 years agoicorem6: Remove unused FEC configs
Jagan Teki [Fri, 12 May 2017 11:48:25 +0000 (17:18 +0530)]
icorem6: Remove unused FEC configs

- IMX_FEC_BASE:  icorem6 using dts, no need for explicit base.
- CONFIG_ETHPRIME: ethprime env not using anywhere in the board.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
7 years agoengicam: Move PHY configs to defconfig
Jagan Teki [Fri, 12 May 2017 11:48:24 +0000 (17:18 +0530)]
engicam: Move PHY configs to defconfig

- CONFIG_PHYLIB
- CONFIG_PHY_SMSC
- CONFIG_PHY_MICREL
- CONFIG_PHY_MICREL_KSZ9021

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
7 years agodrivers: net: Kconfig: Add PHY_MICREL_KSZ9021 entry
Jagan Teki [Fri, 12 May 2017 11:48:23 +0000 (17:18 +0530)]
drivers: net: Kconfig: Add PHY_MICREL_KSZ9021 entry

Add kconfig entry for Micrel KSZ9021 PHY support.

Cc: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
7 years agoicorem6: Recover missing nand defconfig
Jagan Teki [Fri, 12 May 2017 11:48:22 +0000 (17:18 +0530)]
icorem6: Recover missing nand defconfig

nand defconfig is accidentally removed from below
commit, so recover the same.
"icorem6: Make SPL to pick suitable fdt"
(sha1: 15455a6b01d97d575afe2f494cfc9722424230c0)

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
7 years agoengicam: Move SPL mmc configs under CONFIG_SPL_BUILD
Jagan Teki [Fri, 12 May 2017 11:48:21 +0000 (17:18 +0530)]
engicam: Move SPL mmc configs under CONFIG_SPL_BUILD

- CONFIG_SYS_FSL_USDHC_NUM
- CONFIG_SYS_FSL_ESDHC_ADDR

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
7 years agommc: fsl_esdhc: Move non DM_MMC code in #ifndef CONFIG_DM_MMC
Jagan Teki [Fri, 12 May 2017 11:48:20 +0000 (17:18 +0530)]
mmc: fsl_esdhc: Move non DM_MMC code in #ifndef CONFIG_DM_MMC

Don't build non DM_MMC code when DM_MMC defined so move
them into #ifndef CONFIG_DM_MMC

Cc: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
7 years agoregulator: pfuze100: unsigned compared against 0
Peng Fan [Thu, 11 May 2017 02:35:01 +0000 (10:35 +0800)]
regulator: pfuze100: unsigned compared against 0

Fix unsigned compared against 0.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agoregulator: pfuze100: add SPDX License
Peng Fan [Thu, 11 May 2017 02:35:00 +0000 (10:35 +0800)]
regulator: pfuze100: add SPDX License

Add SPDX license

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agomx25pdk: Set the eSDHC PER clock to 48 MHz
Benoît Thébaudeau [Wed, 3 May 2017 09:59:06 +0000 (11:59 +0200)]
mx25pdk: Set the eSDHC PER clock to 48 MHz

The maximum SD clock frequency in High Speed mode is 50 MHz. This change
makes it possible to get 48 MHz from the USB PLL (240 MHz / 5 / 1)
instead of the previous 33.25 MHz from the AHB clock (133 MHz / 2 / 2).

Signed-off-by: Benoît Thébaudeau <benoit@wsystem.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
7 years agomx25: Add function to set PER clocks
Benoît Thébaudeau [Wed, 3 May 2017 09:59:05 +0000 (11:59 +0200)]
mx25: Add function to set PER clocks

Introduce the imx_set_perclk() function to make it possible to set the
PER clocks.

Signed-off-by: Benoît Thébaudeau <benoit@wsystem.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
7 years agomx25: Fix imx_get_perclk()
Benoît Thébaudeau [Wed, 3 May 2017 09:59:04 +0000 (11:59 +0200)]
mx25: Fix imx_get_perclk()

imx_get_perclk() used the AHB clock as the clock source for all PER
clocks, but the USB PLL output can also be a PER clock source if the
corresponding PER CLK MUX bit is set in CCM.MCR.

Signed-off-by: Benoît Thébaudeau <benoit@wsystem.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
7 years agommc: fsl_esdhc: Allow all supported prescaler values
Benoît Thébaudeau [Wed, 3 May 2017 09:59:03 +0000 (11:59 +0200)]
mmc: fsl_esdhc: Allow all supported prescaler values

On i.MX, SYSCTL.SDCLKFS may be set to 0 in order to make the SD clock
frequency prescaler divide by 1 in SDR mode. In DDR mode, the prescaler
can divide by up to 512. Allow both of these settings.

The maximum SD clock frequency in High Speed mode is 50 MHz. On i.MX25,
this change makes it possible to get 48 MHz from the USB PLL
(240 MHz / 5 / 1) instead of only 40 MHz from the USB PLL
(240 MHz / 3 / 2) or 33.25 MHz from the AHB clock (133 MHz / 2 / 2).

Signed-off-by: Benoît Thébaudeau <benoit@wsystem.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
7 years agoarm: mx6: remove unused config variable CONFIG_SPL_NAND_MXS
Lothar Waßmann [Fri, 26 May 2017 08:12:09 +0000 (10:12 +0200)]
arm: mx6: remove unused config variable CONFIG_SPL_NAND_MXS

The config variable CONFIG_SPL_NAND_MXS is only set in
include/configs/imx6_spl.h but used nowhere.
Remove it.

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
7 years agodrivers: pci: imx: add imx_pcie_remove function
Tim Harvey [Fri, 12 May 2017 19:58:41 +0000 (12:58 -0700)]
drivers: pci: imx: add imx_pcie_remove function

There is no dedicated reset signal wired up for the MX6QDL thus if the
bootloader enables the link we need some special handling to get the core
back into a state where it is safe to touch it for configuration.

While there has been some special handling in the Linux kernel to do this,
it was removed in 4.11 thus we need to do it properly in the bootloader
and therefore without this if you enable PCI in the bootloader you will hang
while booting the 4.11 kernel.

This puts the PCIe controller back into a safe state for the kernel driver
before launching the kernel.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Tested-by: Peter Senna Tschudin <peter.senna@collabora.com>
7 years agomx7dsabresd: Increase CONFIG_ENV_OFFSET
Fabio Estevam [Sun, 28 May 2017 17:07:24 +0000 (14:07 -0300)]
mx7dsabresd: Increase CONFIG_ENV_OFFSET

After running 'saveenv' we can no longer boot.

Adjust CONFIG_ENV_OFFSET so that U-Boot binary and the environment
section do not overlap.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
7 years agopico-imx7d: Add initial support
Vanessa Maegima [Mon, 8 May 2017 16:17:28 +0000 (13:17 -0300)]
pico-imx7d: Add initial support

Add the initial support for pico-imx7d board based on Wig Cheng's
source code.

Add support for eMMC, USB gadget, I2C, PMIC and Ethernet.

For more information about this board, please visit:
http://www.technexion.org/products/pico/pico-som/pico-imx7-emmc

Signed-off-by: Vanessa Maegima <vanessa.maegima@nxp.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
7 years agoMerge branch 'master' of git://git.denx.de/u-boot-mmc
Tom Rini [Tue, 30 May 2017 18:07:23 +0000 (14:07 -0400)]
Merge branch 'master' of git://git.denx.de/u-boot-mmc

7 years agodoc: document u-boot, mmc-env-offset and u-boot, mmc-env-offset-redund
Philipp Tomsich [Mon, 15 May 2017 22:16:32 +0000 (00:16 +0200)]
doc: document u-boot, mmc-env-offset and u-boot, mmc-env-offset-redund

Adding documentation on the new config properties:
       'u-boot,mmc-env-offset' - overrides CONFIG_ENV_OFFSET
       'u-boot,mmc-env-offset-redundant'
                               - overrides CONFIG_ENV_OFFSET_REDUND

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agoenv_mmc: configure environment offsets via device tree
Philipp Tomsich [Mon, 15 May 2017 22:16:31 +0000 (00:16 +0200)]
env_mmc: configure environment offsets via device tree

This introduces the ability to override the environment offets from the
device tree by setting the following nodes in '/config':
'u-boot,mmc-env-offset' - overrides CONFIG_ENV_OFFSET
'u-boot,mmc-env-offset-redundant'
- overrides CONFIG_ENV_OFFSET_REDUND

To keep with the previous logic, the CONFIG_* defines still need to
be available and the statically defined values become the defaults,
when the corresponding properties are not set in the device-tree.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Acked-by: Simon Glass <sjg@chromium.org>
7 years agopower: pmic: tps65218: Fix tps65218_voltage_update function
Keerthy [Wed, 24 May 2017 04:49:27 +0000 (10:19 +0530)]
power: pmic: tps65218: Fix tps65218_voltage_update function

Currently while setting the vsel value for dcdc1 and dcdc2
the driver is wrongly masking the entire 8 bits in the process
clearing PFM (bit7) field as well. Hence describe an appropriate
mask for vsel field and modify only those bits in the vsel
mask.

Source: http://www.ti.com/lit/ds/symlink/tps65218.pdf

Signed-off-by: Keerthy <j-keerthy@ti.com>
Fixes: 86db550b38 ("power: Add support for the TPS65218 PMIC")
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agommc: meson: increase max block number per request
Heiner Kallweit [Fri, 14 Apr 2017 08:10:19 +0000 (10:10 +0200)]
mmc: meson: increase max block number per request

Number of blocks is a 9 bit field where 0 stands for a unlimited
number of blocks. Therefore the max number of blocks which can
be set is 511.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
7 years agodrivers/power/regulator/max77686.c: Fix comparisons of unsigned expressions
Tom Rini [Wed, 10 May 2017 19:20:17 +0000 (15:20 -0400)]
drivers/power/regulator/max77686.c: Fix comparisons of unsigned expressions

Inside of
max77686_buck_volt2hex/max77686_buck_hex2volt/max77686_ldo_volt2hex we
check that the value we calculate is >= 0 however we declare 'hex' as
unsigned int making these always true.  Mark these as 'int' instead.  We
also move hex_max to int as they are constants that are 0x3f/0xff.
Given that the above functions are marked as returning an int, make the
variables we assign their return value to also be int to be able to
catch the error condition now.  Reported by clang-3.8.

Cc: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
7 years agommc: Change 'part_config' to be a u8 not char.
Tom Rini [Wed, 10 May 2017 19:20:16 +0000 (15:20 -0400)]
mmc: Change 'part_config' to be a u8 not char.

In some places we check if part_config is set to MMCPART_NOAVAILABLE
(0xff).  With part_config being a char this is always false.  We should
be using a u8 to store this value instead, after a quick consultation
with the Linux Kernel.  Reported by clang-3.8.

Cc: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
7 years agoMerge git://git.denx.de/u-boot-fsl-qoriq
Tom Rini [Fri, 26 May 2017 15:19:27 +0000 (11:19 -0400)]
Merge git://git.denx.de/u-boot-fsl-qoriq

7 years agoMerge branch 'master' of git://git.denx.de/u-boot-nds32
Tom Rini [Fri, 26 May 2017 15:18:53 +0000 (11:18 -0400)]
Merge branch 'master' of git://git.denx.de/u-boot-nds32

Move FTMAC100 to where it should be, alphabetically in
drivers/net/Kconfig

Signed-off-by: Tom Rini <trini@konsulko.com>
Conflicts:
drivers/net/Kconfig

7 years agoMerge branch 'rmobile' of git://git.denx.de/u-boot-sh
Tom Rini [Tue, 23 May 2017 20:22:03 +0000 (16:22 -0400)]
Merge branch 'rmobile' of git://git.denx.de/u-boot-sh

7 years agoarmv8: LS2080A: Adjust memory map for secure boot headers for NOR-boot
Udit Agarwal [Tue, 2 May 2017 12:13:57 +0000 (17:43 +0530)]
armv8: LS2080A: Adjust memory map for secure boot headers for NOR-boot

This patch adjusts memory map for secure boot headers on LS2080AQDS
and LS2080ARDB platforms. Secure boot headers are placed on NOR
flash at offset 0x00600000.

Signed-off-by: Udit Agarwal <udit.agarwal@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
7 years agoarmv8: ls2080ardb, ls2080aqds: Adjust memory map for NOR-boot
Santan Kumar [Fri, 28 Apr 2017 07:17:24 +0000 (12:47 +0530)]
armv8: ls2080ardb, ls2080aqds: Adjust memory map for NOR-boot

This patch adjusts memory map for images on LS2080ARDB and
LS2080AQDS NOR flash as below

Image Flash Offset
RCW+PBI 0x00000000
Boot firmware (U-Boot) 0x00100000
Boot firmware Environment 0x00300000
PPA firmware 0x00400000
PHY firmware 0x00980000
DPAA2 MC 0x00A00000
DPAA2 DPL 0x00D00000
DPAA2 DPC 0x00E00000
Kernel.itb 0x01000000

Signed-off-by: Santan Kumar <santan.kumar@nxp.com>
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
7 years agoarmv8: layerscape: Adjust memory mapping for Flash/SD card on LS1046A
Alison Wang [Tue, 16 May 2017 02:45:59 +0000 (10:45 +0800)]
armv8: layerscape: Adjust memory mapping for Flash/SD card on LS1046A

This patch is to adjust the memory mapping for FLash/SD card on
LS1046AQDS and LS1046ARDB, such as FMAN firmware load address, U-Boot
start address on serial flash and environment address.

Signed-off-by: Alison Wang <alison.wang@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
7 years agoarmv8: layerscape: Adjust memory mapping for Flash/SD card on LS1043A
Alison Wang [Tue, 16 May 2017 02:45:58 +0000 (10:45 +0800)]
armv8: layerscape: Adjust memory mapping for Flash/SD card on LS1043A

This patch is to adjust the memory mapping for FLash/SD card on
LS1043AQDS and LS1043ARDB, such as PPA firmware load address, FMAN
firmware load address, QE firmware load address, U-Boot start address
on serial flash and environment address.

Signed-off-by: Alison Wang <alison.wang@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
7 years agoarm: ls1021a: Adjust memory mapping for Flash/SD card on LS1021AQDS/TWR
Alison Wang [Tue, 16 May 2017 02:45:57 +0000 (10:45 +0800)]
arm: ls1021a: Adjust memory mapping for Flash/SD card on LS1021AQDS/TWR

This patch is to adjust the memory mapping for FLash/SD card on
LS1021AQDS and LS1021ATWR, such as U-Boot start address on serial
Flash, QE firmware load address and environment address.

Signed-off-by: Alison Wang <alison.wang@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
7 years agoarmv8: ls2080ardb: Add LS2081ARDB board support
Priyanka Jain [Thu, 27 Apr 2017 09:38:07 +0000 (15:08 +0530)]
armv8: ls2080ardb: Add LS2081ARDB board support

LS2081ARDB board is similar to LS2080ARDB board with few differences
 It hosts LS2081A SoC
 Default boot source is QSPI-boot
 It does not have IFC interface
 RTC and QSPI flash device are different
 It provides QIXIS access via I2C

Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
Signed-off-by: Santan Kumar <santan.kumar@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
7 years agoarmv8: fsl-layerscape: Add NXP LS2081A, LS2041A SoC support
Priyanka Jain [Thu, 27 Apr 2017 09:38:06 +0000 (15:08 +0530)]
armv8: fsl-layerscape: Add NXP LS2081A, LS2041A SoC support

The QorIQ LS2081A SoC has eight 64-bit ARM v8 Cortex A72 cores and
is built on layerscape architecture. It is 40-pin derivative of
LS2084A (non-AIOP personality of LS2088A). So feature-wise it is
same as LS2084A. LS2041A is a 4-core personality of LS2081A.

Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
Signed-off-by: Santan Kumar <santan.kumar@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
7 years agoarmv8: ls2080ardb: Add QSPI-boot support
Priyanka Jain [Fri, 28 Apr 2017 05:11:35 +0000 (10:41 +0530)]
armv8: ls2080ardb: Add QSPI-boot support

QSPI-boot is supported on LS2088ARDB RevF board with LS2088A SoC.
LS2088ARDB RevF Board has limitation that QIXIS can not be accessed.
CONFIG_FSL_QIXIS is not enabled.

Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
Signed-off-by: Suresh Gupta <suresh.gupta@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
7 years agoboard: freescale: ls2080ardb: Update QIXIS code
Priyanka Jain [Fri, 28 Apr 2017 05:11:34 +0000 (10:41 +0530)]
board: freescale: ls2080ardb: Update QIXIS code

Update QIXIS related code to be executed only if CONFIG_FSL_QIXIS
flag is enabled. In case QIXIS code is not enabled, use default
sysclk value as 100MHz per board documentation.

Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
7 years agodriver: net: fsl-mc: Update fsl_mc_ldpaa_exit() path
Yogesh Gaur [Thu, 27 Apr 2017 04:44:16 +0000 (10:14 +0530)]
driver: net: fsl-mc: Update fsl_mc_ldpaa_exit() path

Earlier when MC is loaded but DPL is not deployed results in FDT
fix-up code execution hangs. For this case now print message on
console and return success instead of return -ENODEV. This update
allows fdt fixup to continue execution.

Signed-off-by: Yogesh Gaur <yogeshnarayan.gaur@nxp.com>
Signed-off-by: Priyanka Jain <Priyanka.jain@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
7 years agoarmv8: ls1043ardb: Make NET independent of FMan
York Sun [Tue, 25 Apr 2017 15:39:52 +0000 (08:39 -0700)]
armv8: ls1043ardb: Make NET independent of FMan

This allows using PCIe NIC without enabling DPAA FMan.

Signed-off-by: York Sun <york.sun@nxp.com>
CC: Mingkai Hu <mingkai.hu@nxp.com>
Acked-by: Mingkai Hu <mingkai.hu@nxp.com>
7 years agoarmv8: ls1046ardb: Make NET independent of FMan
York Sun [Tue, 25 Apr 2017 15:39:51 +0000 (08:39 -0700)]
armv8: ls1046ardb: Make NET independent of FMan

This allows using PCIe NIC without enabling DPAA FMan.

Signed-off-by: York Sun <york.sun@nxp.com>
CC: Mingkai Hu <mingkai.hu@nxp.com>
Acked-by: Mingkai Hu <mingkai.hu@nxp.com>
7 years agoarmv8: ls1012a: fix the size of flash for multiple boards
Suresh Gupta [Tue, 25 Apr 2017 09:21:38 +0000 (14:51 +0530)]
armv8: ls1012a: fix the size of flash for multiple boards

LS1012AFRDM, LS1012ARDB, LS1012AQDS all have S25FS512S flash
of 64MB size.

Signed-off-by: Suresh Gupta <suresh.gupta@nxp.com>
7 years agoarmv8: layperscape: remove CONFIG_SPI_FLASH_BAR from some platforms
Suresh Gupta [Tue, 25 Apr 2017 09:21:37 +0000 (14:51 +0530)]
armv8: layperscape: remove CONFIG_SPI_FLASH_BAR from some platforms

ls1012ardb, ls1046ardb, ls2080ardb have S25FS512S flash which does
not support Bank Address Register commands.

Signed-off-by: Suresh Gupta <suresh.gupta@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
7 years agoboard: freescale: ls2080ardb: Enable SD interface for RevF board
Priyanka Jain [Tue, 25 Apr 2017 04:42:31 +0000 (10:12 +0530)]
board: freescale: ls2080ardb: Enable SD interface for RevF board

LS2080ARDB/LS2088ARDB RevF board has smart voltage translator
which needs to be programmed to enable high speed SD interface
by setting GPIO4_10 output to zero.

Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
Signed-off-by: Santan Kumar <santan.kumar@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
7 years agoarmv8: ls1046a: enable PCI command tool
Hou Zhiqiang [Fri, 14 Apr 2017 08:49:01 +0000 (16:49 +0800)]
armv8: ls1046a: enable PCI command tool

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
7 years agonds32: eth: Support ftmac100 DM.
rick [Tue, 23 May 2017 05:48:27 +0000 (13:48 +0800)]
nds32: eth: Support ftmac100 DM.

Support Andestech eth ftmac100 device tree flow on AG101P/AE3XX platform.
Verification:
 Boot linux kernel via dhcp and bootm ok.

 NDS32 # setenv bootm_size 0x2000000;setenv fdt_high 0x1f00000;
 NDS32 # dhcp 0x600000 10.0.4.97:boomimage-310y-ae300-spi.bin
 BOOTP broadcast 1
 BOOTP broadcast 2
 BOOTP broadcast 3
 BOOTP broadcast 4
 DHCP client bound to address 10.0.4.178 (4899 ms)
Using mac@e0100000 device
TFTP from server 10.0.4.97; our IP address is 10.0.4.178
Filename 'boomimage-310y-ae300-spi.bin'.
Load address: 0x600000
Loading: #################################################################
         #################################################################
         #################################################################
...
...
         ###################################
         233.4 KiB/s
 done
 Bytes transferred = 13872076 (d3abcc hex)
NDS32 # dhcp 0x2000000 10.0.4.97:ae300.dtb
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
DHCP client bound to address 10.0.4.178 (4592 ms)
Using mac@e0100000 device
TFTP from server 10.0.4.97; our IP address is 10.0.4.178
Filename 'ae300.dtb'.
Load address: 0x2000000
Loading: #
         82 KiB/s
 done
 Bytes transferred = 2378 (94a hex)
NDS32 # bootm 0x600000 - 0x2000000
 Image Name:
 Created:      2017-03-22   6:52:03 UTC
 Image Type:   NDS32 Linux Kernel Image (uncompressed)
 Data Size:    13872012 Bytes = 13.2 MiB
 Load Address: 0000c000
 Entry Point:  0000c000
 Verifying Checksum ... OK
 Booting using the fdt blob at 0x2000000
 Loading Kernel Image ... OK
 Loading Device Tree to 01efc000, end 01eff949 ... OK
 Linux version 3.10.102-20375-gb0034c1-dirty (rick@app09)
(gcc version 4.9.3 (2016-07-06_nds32le-linux-glibc-v3_experimental) )
  #293 PREEMPT Wed Mar 22 14:49:28 CST 2017
CPU: NDS32 N13, AndesCore ID(wb), CPU_VER 0x0d11103f(id 13, rev 17, cfg 4159)
...
...
Signed-off-by: rick <rick@andestech.com>
7 years agomksunxi_fit_atf.sh: Allow for this to complete when bl31.bin is missing
Tom Rini [Mon, 22 May 2017 19:40:11 +0000 (15:40 -0400)]
mksunxi_fit_atf.sh: Allow for this to complete when bl31.bin is missing

In situations like an autobuilder we are likely to not have bl31.bin
present and thus would fail to build and propagate the error upwards.
Instead, print a big warning to stderr so that human will see that
something is wrong but complete the build.

Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
7 years agoMerge git://git.denx.de/u-boot-sunxi
Tom Rini [Mon, 22 May 2017 18:15:16 +0000 (14:15 -0400)]
Merge git://git.denx.de/u-boot-sunxi

trini: Make Kconfig SPL_xxx entires only show if SPL, so that we don't
get Kconfig errors on platforms without SPL, ie sandbox (without SPL).

Signed-off-by: Tom Rini <trini@konsulko.com>
7 years agoMerge branch 'master' of git://git.denx.de/u-boot-usb
Tom Rini [Mon, 22 May 2017 18:14:57 +0000 (14:14 -0400)]
Merge branch 'master' of git://git.denx.de/u-boot-usb

7 years agoMerge branch 'master' of git://git.denx.de/u-boot-nds32
Tom Rini [Mon, 22 May 2017 18:14:44 +0000 (14:14 -0400)]
Merge branch 'master' of git://git.denx.de/u-boot-nds32

7 years agoColdFire: Remove rogue 'CONFIG_SYS_NO_FLASH' embedded within another CONFIG_ name
Lothar Waßmann [Thu, 18 May 2017 15:26:58 +0000 (17:26 +0200)]
ColdFire: Remove rogue 'CONFIG_SYS_NO_FLASH' embedded within another CONFIG_ name

The original commit for the MCF54418TWR ColdFire development board
support defined a 'CONFIG_SYS_FAULT_ECCONFIG_SYS_NO_FLASHHO_LINK_DOWN'
which obviously has a rogue 'CONFIG_SYS_NO_FLASH' embedded in the
intended 'CONFIG_SYS_FAULT_ECHO_LINK_DOWN' define.

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
7 years agosandbox: Enable CMD_GETTIME
Simon Glass [Wed, 17 May 2017 09:25:44 +0000 (03:25 -0600)]
sandbox: Enable CMD_GETTIME

Enable this option by default on sandbox to increase build coverage.

Signed-off-by: Simon Glass <sjg@chromium.org>
7 years agoConvert CONFIG_CMD_LZMADEC to Kconfig
Simon Glass [Wed, 17 May 2017 09:25:43 +0000 (03:25 -0600)]
Convert CONFIG_CMD_LZMADEC to Kconfig

This converts the following to Kconfig:
   CONFIG_CMD_LZMADEC

Signed-off-by: Simon Glass <sjg@chromium.org>
7 years agoConvert CONFIG_LZMA to Kconfig
Simon Glass [Wed, 17 May 2017 09:25:42 +0000 (03:25 -0600)]
Convert CONFIG_LZMA to Kconfig

This converts the following to Kconfig:
   CONFIG_LZMA

Signed-off-by: Simon Glass <sjg@chromium.org>
7 years agoKconfig: Drop CONFIG_CMD_LOADY
Simon Glass [Wed, 17 May 2017 09:25:41 +0000 (03:25 -0600)]
Kconfig: Drop CONFIG_CMD_LOADY

This is not used in U-Boot. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
7 years agoConvert CONFIG_CMD_KGDB to Kconfig
Simon Glass [Wed, 17 May 2017 09:25:40 +0000 (03:25 -0600)]
Convert CONFIG_CMD_KGDB to Kconfig

This converts the following to Kconfig:
   CONFIG_CMD_KGDB

Signed-off-by: Simon Glass <sjg@chromium.org>
7 years agoConvert CONFIG_CMD_IRQ to Kconfig
Simon Glass [Wed, 17 May 2017 09:25:39 +0000 (03:25 -0600)]
Convert CONFIG_CMD_IRQ to Kconfig

This converts the following to Kconfig:
   CONFIG_CMD_IRQ

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
7 years agofs: Kconfig: Add a separate option for FS_JFFS2
Simon Glass [Wed, 17 May 2017 09:25:38 +0000 (03:25 -0600)]
fs: Kconfig: Add a separate option for FS_JFFS2

Rather than using CMD_JFFS2 for both the filesystem and its command, we
should have a separate option for each. This allows us to enable JFFS2
support without the command, if desired, which reduces U-Boot's size
slightly.

Signed-off-by: Simon Glass <sjg@chromium.org>
7 years agoConvert CONFIG_CMD_JFFS2 to Kconfig
Simon Glass [Wed, 17 May 2017 09:25:37 +0000 (03:25 -0600)]
Convert CONFIG_CMD_JFFS2 to Kconfig

This converts the following to Kconfig:
   CONFIG_CMD_JFFS2

Signed-off-by: Simon Glass <sjg@chromium.org>
7 years agoConvert CONFIG_CMD_IOTRACE to Kconfig
Simon Glass [Wed, 17 May 2017 09:25:36 +0000 (03:25 -0600)]
Convert CONFIG_CMD_IOTRACE to Kconfig

This converts the following to Kconfig:
   CONFIG_CMD_IOTRACE

Signed-off-by: Simon Glass <sjg@chromium.org>
7 years agoConvert CONFIG_CMD_IOLOOP to Kconfig
Simon Glass [Wed, 17 May 2017 09:25:35 +0000 (03:25 -0600)]
Convert CONFIG_CMD_IOLOOP to Kconfig

This converts the following to Kconfig:
   CONFIG_CMD_IOLOOP

Signed-off-by: Simon Glass <sjg@chromium.org>
7 years agoConvert CONFIG_CMD_IO to Kconfig
Simon Glass [Wed, 17 May 2017 09:25:34 +0000 (03:25 -0600)]
Convert CONFIG_CMD_IO to Kconfig

This converts the following to Kconfig:
   CONFIG_CMD_IO

Signed-off-by: Simon Glass <sjg@chromium.org>
7 years agoKconfig: Drop CONFIG_CMD_IMX_FUSE
Simon Glass [Wed, 17 May 2017 09:25:33 +0000 (03:25 -0600)]
Kconfig: Drop CONFIG_CMD_IMX_FUSE

This option is not used in U-Boot. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
7 years agoKconfig: Drop CONFIG_CMD_IMXOTP
Simon Glass [Wed, 17 May 2017 09:25:32 +0000 (03:25 -0600)]
Kconfig: Drop CONFIG_CMD_IMXOTP

This option is not used in U-Boot. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
7 years agoConvert CONFIG_CMD_IMMAP to Kconfig
Simon Glass [Wed, 17 May 2017 09:25:31 +0000 (03:25 -0600)]
Convert CONFIG_CMD_IMMAP to Kconfig

This converts the following to Kconfig:
   CONFIG_CMD_IMMAP

Also move this command out of the cmd/ directory since it is
PowerPC-specific.

Signed-off-by: Simon Glass <sjg@chromium.org>
7 years agoKconfig: Add a CONFIG_IDE option
Simon Glass [Wed, 17 May 2017 09:25:30 +0000 (03:25 -0600)]
Kconfig: Add a CONFIG_IDE option

At present IDE support is controlled by CONFIG_CMD_IDE. Add a separate
CONFIG_IDE option so that IDE support can be enabled without requiring
the 'ide' command.

Update existing users and move the ide driver into drivers/block since
it should not be in common/.

Signed-off-by: Simon Glass <sjg@chromium.org>
7 years agoConvert CONFIG_CMD_IDE to Kconfig
Simon Glass [Wed, 17 May 2017 09:25:29 +0000 (03:25 -0600)]
Convert CONFIG_CMD_IDE to Kconfig

This converts the following to Kconfig:
   CONFIG_CMD_IDE

Signed-off-by: Simon Glass <sjg@chromium.org>
7 years agoConvert CONFIG_CMD_HDMIDETECT to Kconfig
Simon Glass [Wed, 17 May 2017 09:25:28 +0000 (03:25 -0600)]
Convert CONFIG_CMD_HDMIDETECT to Kconfig

This converts the following to Kconfig:
   CONFIG_CMD_HDMIDETECT

Note that we cannot do 'default y if VIDEO' because this option is only
enabled for a small subset of mx6 boards. Also this command is is not a
great implementation (it doesn't use driver model).

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
7 years agoConvert CONFIG_CMD_HD44760 to Kconfig
Simon Glass [Wed, 17 May 2017 09:25:27 +0000 (03:25 -0600)]
Convert CONFIG_CMD_HD44760 to Kconfig

This converts the following to Kconfig:
   CONFIG_CMD_HD44760

Also drop CONFIG_CMD_HD44780 which appears to be a typo.

Signed-off-by: Simon Glass <sjg@chromium.org>
7 years agoKconfig: Add CONFIG_HASH to enable hashing API
Simon Glass [Wed, 17 May 2017 15:05:34 +0000 (09:05 -0600)]
Kconfig: Add CONFIG_HASH to enable hashing API

At present CONFIG_CMD_HASH enables the 'hash' command which also brings
in the hashing API. Some boards may wish to enable the API without the
command. Add a separate CONFIG to permit this.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
7 years agoConvert CONFIG_CMD_HASH to Kconfig
Simon Glass [Wed, 17 May 2017 09:25:25 +0000 (03:25 -0600)]
Convert CONFIG_CMD_HASH to Kconfig

This converts the following to Kconfig:
   CONFIG_CMD_HASH

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
[trini: Rework slightly, enable on some boards again]
Signed-off-by: Tom Rini <trini@konsulko.com>
7 years agoConvert CONFIG_CMD_GSC to Kconfig
Simon Glass [Wed, 17 May 2017 09:25:24 +0000 (03:25 -0600)]
Convert CONFIG_CMD_GSC to Kconfig

This converts the following to Kconfig:
   CONFIG_CMD_GSC

Signed-off-by: Simon Glass <sjg@chromium.org>
7 years agoConvert CONFIG_CMD_GETTIME to Kconfig
Simon Glass [Wed, 17 May 2017 09:25:23 +0000 (03:25 -0600)]
Convert CONFIG_CMD_GETTIME to Kconfig

This converts the following to Kconfig:
   CONFIG_CMD_GETTIME

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
7 years agoConvert CONFIG_CMD_FUSE to Kconfig
Simon Glass [Wed, 17 May 2017 09:25:22 +0000 (03:25 -0600)]
Convert CONFIG_CMD_FUSE to Kconfig

This converts the following to Kconfig:
   CONFIG_CMD_FUSE

Signed-off-by: Simon Glass <sjg@chromium.org>
7 years agoConvert CONFIG_CMD_FPGA_LOADBP et al to Kconfig
Simon Glass [Wed, 17 May 2017 09:25:21 +0000 (03:25 -0600)]
Convert CONFIG_CMD_FPGA_LOADBP et al to Kconfig

This converts the following to Kconfig:
   CONFIG_CMD_FPGA_LOADBP
   CONFIG_CMD_FPGA_LOADFS
   CONFIG_CMD_FPGA_LOADMK
   CONFIG_CMD_FPGA_LOADP

Signed-off-by: Simon Glass <sjg@chromium.org>
7 years agoConvert CONFIG_CMD_FPGAD to Kconfig
Simon Glass [Wed, 17 May 2017 09:25:20 +0000 (03:25 -0600)]
Convert CONFIG_CMD_FPGAD to Kconfig

This converts the following to Kconfig:
   CONFIG_CMD_FPGAD

Signed-off-by: Simon Glass <sjg@chromium.org>
7 years agoKconfig: Drop CONFIG_CMD_FDT_MAX_DUMP
Simon Glass [Wed, 17 May 2017 09:25:19 +0000 (03:25 -0600)]
Kconfig: Drop CONFIG_CMD_FDT_MAX_DUMP

This option is not used by any board. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
7 years agoConvert CONFIG_CMD_FDC to Kconfig
Simon Glass [Wed, 17 May 2017 09:25:18 +0000 (03:25 -0600)]
Convert CONFIG_CMD_FDC to Kconfig

This converts the following to Kconfig:
   CONFIG_CMD_FDC

Signed-off-by: Simon Glass <sjg@chromium.org>
7 years agoConvert CONFIG_CMD_ETHSW to Kconfig
Simon Glass [Wed, 17 May 2017 09:25:17 +0000 (03:25 -0600)]
Convert CONFIG_CMD_ETHSW to Kconfig

This converts the following to Kconfig:
   CONFIG_CMD_ETHSW

Also enable it for sandbox to increase build coverage.

Signed-off-by: Simon Glass <sjg@chromium.org>
7 years agoConvert CONFIG_CMD_ESBC_VALIDATE to Kconfig
Simon Glass [Wed, 17 May 2017 09:25:16 +0000 (03:25 -0600)]
Convert CONFIG_CMD_ESBC_VALIDATE to Kconfig

This converts the following to Kconfig:
   CONFIG_CMD_ESBC_VALIDATE

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
7 years agoConvert CONFIG_CMD_ERRATA to Kconfig
Simon Glass [Wed, 17 May 2017 09:25:15 +0000 (03:25 -0600)]
Convert CONFIG_CMD_ERRATA to Kconfig

This converts the following to Kconfig:
   CONFIG_CMD_ERRATA

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
7 years agoConvert CONFIG_CMD_ENV_FLAGS to Kconfig
Simon Glass [Wed, 17 May 2017 09:25:14 +0000 (03:25 -0600)]
Convert CONFIG_CMD_ENV_FLAGS to Kconfig

This converts the following to Kconfig:
   CONFIG_CMD_ENV_FLAGS

Signed-off-by: Simon Glass <sjg@chromium.org>
7 years agoConvert CONFIG_CMD_ENV_CALLBACK to Kconfig
Simon Glass [Wed, 17 May 2017 09:25:13 +0000 (03:25 -0600)]
Convert CONFIG_CMD_ENV_CALLBACK to Kconfig

This converts the following to Kconfig:
   CONFIG_CMD_ENV_CALLBACK

Signed-off-by: Simon Glass <sjg@chromium.org>
7 years agoKconfig: Drop CONFIG_CMD_ENV
Simon Glass [Wed, 17 May 2017 09:25:12 +0000 (03:25 -0600)]
Kconfig: Drop CONFIG_CMD_ENV

This option is not used in U-Boot. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
7 years agoConvert CONFIG_CMD_ENTERRCM to Kconfig
Simon Glass [Wed, 17 May 2017 09:25:11 +0000 (03:25 -0600)]
Convert CONFIG_CMD_ENTERRCM to Kconfig

This converts the following to Kconfig:
   CONFIG_CMD_ENTERRCM

Signed-off-by: Simon Glass <sjg@chromium.org>
7 years agoConvert CONFIG_CMD_EEPROM et al to Kconfig
Simon Glass [Wed, 17 May 2017 09:25:10 +0000 (03:25 -0600)]
Convert CONFIG_CMD_EEPROM et al to Kconfig

This converts the following to Kconfig:
   CONFIG_CMD_EEPROM
   CONFIG_CMD_EEPROM_LAYOUT
   CONFIG_EEPROM_LAYOUT_HELP_STRING

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
[trini: Rework Kconfig logic slightly, define EEPROM location on TI eval
platforms]
Signed-off-by: Tom Rini <trini@konsulko.com>
7 years agoConvert CONFIG_CMD_EECONFIG to Kconfig
Simon Glass [Wed, 17 May 2017 09:25:09 +0000 (03:25 -0600)]
Convert CONFIG_CMD_EECONFIG to Kconfig

This converts the following to Kconfig:
   CONFIG_CMD_EECONFIG

Signed-off-by: Simon Glass <sjg@chromium.org>
7 years agoConvert CONFIG_CMD_ECCTEST to Kconfig
Simon Glass [Wed, 17 May 2017 09:25:08 +0000 (03:25 -0600)]
Convert CONFIG_CMD_ECCTEST to Kconfig

This converts the following to Kconfig:
   CONFIG_CMD_ECCTEST

Signed-off-by: Simon Glass <sjg@chromium.org>
7 years agoKconfig: Drop CONFIG_SYS_I2C_DS4510_ADDR
Simon Glass [Wed, 17 May 2017 09:25:07 +0000 (03:25 -0600)]
Kconfig: Drop CONFIG_SYS_I2C_DS4510_ADDR

This is only used by one board and always set to 0x51. Drop this option.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
7 years agoKconfig: Drop CONFIG_SYS_I2C_DS1621_ADDR
Simon Glass [Wed, 17 May 2017 09:25:06 +0000 (03:25 -0600)]
Kconfig: Drop CONFIG_SYS_I2C_DS1621_ADDR

Now that dtt is gone, this is not used. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
7 years agoDrop digital thermometer and thermostat (DTT) drivers
Simon Glass [Wed, 17 May 2017 09:25:05 +0000 (03:25 -0600)]
Drop digital thermometer and thermostat (DTT) drivers

This subsystem is quite old. It has been replaced with a driver-model
version (UCLASS_THERMAL). Boards are free to convert to that if required,
but here is a removal patch that could be applied in the meantime.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
7 years agoDrop three-wire serial (TWS) support
Simon Glass [Wed, 17 May 2017 09:25:04 +0000 (03:25 -0600)]
Drop three-wire serial (TWS) support

This subsystem has not been converted to driver model, there is only one
driver and only one board that uses it. Drop it and its CONFIG option.

Also drop the rtc4543 RTC driver since it uses TWS.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
7 years agoKconfig: Drop CONFIG_SYS_I2C_DTT_ADDR
Simon Glass [Wed, 17 May 2017 09:25:03 +0000 (03:25 -0600)]
Kconfig: Drop CONFIG_SYS_I2C_DTT_ADDR

This option is only defined to a non-default value by canyonlands, which
needs conversion to driver model (where the I2C address would be defined
by the device tree).

Drop this option.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
7 years agoConvert CONFIG_DS4510 to Kconfig
Simon Glass [Wed, 17 May 2017 09:25:02 +0000 (03:25 -0600)]
Convert CONFIG_DS4510 to Kconfig

This converts the following to Kconfig:
   CONFIG_DS4510

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
7 years agoKconfig: Drop CONFIG_CMD_DS4510
Simon Glass [Wed, 17 May 2017 09:25:01 +0000 (03:25 -0600)]
Kconfig: Drop CONFIG_CMD_DS4510

This option enables a command in the driver. But the functions defined by
the driver are not called anywhere else in U-Boot. So it does not seem
useful to have this driver without its commands.

Drop this option, move the header file out of the common include/
directory and make all the function static.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
7 years agoKconfig: Drop CONFIG_CMD_DS4510_RST
Simon Glass [Wed, 17 May 2017 09:25:00 +0000 (03:25 -0600)]
Kconfig: Drop CONFIG_CMD_DS4510_RST

This option is only used in one driver and is not enabled by any board. It
does not seem worth having the ability to remove this part of the support.

Drop the option.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
7 years agoKconfig: Drop CONFIG_CMD_DS4510_MEM
Simon Glass [Wed, 17 May 2017 09:24:59 +0000 (03:24 -0600)]
Kconfig: Drop CONFIG_CMD_DS4510_MEM

This option is only used in one driver and is not enabled by any board. It
does not seem worth having the ability to remove this part of the support.

Drop the option.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
7 years agoKconfig: Drop CONFIG_CMD_DS4510_INFO
Simon Glass [Wed, 17 May 2017 09:24:58 +0000 (03:24 -0600)]
Kconfig: Drop CONFIG_CMD_DS4510_INFO

This option is only used in one driver and two boards. It does not seem
worth having the ability to remove this part of the support.

Drop the option.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
7 years agolib: move hash CONFIG options to Kconfig
Tom Rini [Mon, 15 May 2017 16:17:49 +0000 (12:17 -0400)]
lib: move hash CONFIG options to Kconfig

Commit 94e3c8c4fd7b ("crypto/fsl - Add progressive hashing support
using hardware acceleration.") created entries for CONFIG_SHA1,
CONFIG_SHA256, CONFIG_SHA_HW_ACCEL, and CONFIG_SHA_PROG_HW_ACCEL.
However, no defconfig has migrated to it.  Complete the move by first
adding additional logic to various Kconfig files to select this when
required and then use the moveconfig tool.  In many cases we can select
these because they are required to implement other drivers.  We also
correct how we include the various hashing algorithms in SPL.

This commit was generated as follows (after Kconfig additions):

[1] tools/moveconfig.py -y SHA1 SHA256 SHA_HW_ACCEL
[2] tools/moveconfig.py -y SHA_PROG_HW_ACCEL

Note:
We cannot move SHA_HW_ACCEL and SHA_PROG_HW_ACCEL simultaneously
because there is dependency between them.

Cc: Poonam Aggrwal <poonam.aggrwal@freescale.com>
Cc: Naveen Burmi <NaveenBurmi@freescale.com>
Cc: Po Liu <po.liu@freescale.com>
Cc: Shengzhou Liu <Shengzhou.Liu@freescale.com>
Cc: Priyanka Jain <Priyanka.Jain@freescale.com>
Cc: Shaohui Xie <Shaohui.Xie@freescale.com>
Cc: Chunhe Lan <Chunhe.Lan@freescale.com>
Cc: Chander Kashyap <k.chander@samsung.com>
Cc: Steve Rae <steve.rae@raedomain.com>
Cc: Dirk Eibach <eibach@gdsys.de>
Cc: Feng Li <feng.li_2@nxp.com>
Cc: Alison Wang <alison.wang@freescale.com>
Cc: Sumit Garg <sumit.garg@nxp.com>
Cc: Mingkai Hu <Mingkai.Hu@freescale.com>
Cc: York Sun <york.sun@nxp.com>
Cc: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Cc: Akshay Saraswat <akshay.s@samsung.com>
Cc: Heiko Schocher <hs@denx.de>
Cc: Jagan Teki <jagan@amarulasolutions.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
7 years agoFIT: Rename FIT_DISABLE_SHA256 to FIT_ENABLE_SHA256_SUPPORT
Tom Rini [Mon, 15 May 2017 16:17:48 +0000 (12:17 -0400)]
FIT: Rename FIT_DISABLE_SHA256 to FIT_ENABLE_SHA256_SUPPORT

We rename CONFIG_FIT_DISABLE_SHA256 to CONFIG_FIT_ENABLE_SHA256_SUPPORT which
is enabled by default and now a positive option.  Convert the handful of boards
that were disabling it before to save space.

Cc: Dirk Eibach <eibach@gdsys.de>
Cc: Lukasz Dalek <luk0104@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
7 years agotest: py: Add cmd_echo dependency
Michal Simek [Mon, 15 May 2017 12:29:02 +0000 (14:29 +0200)]
test: py: Add cmd_echo dependency

There is missing dependency on echo command. Mark tests which requires
echo.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
7 years agoConvert CONFIG_SPL_BOARD_INIT to Kconfig
Ley Foon Tan [Wed, 3 May 2017 09:13:32 +0000 (17:13 +0800)]
Convert CONFIG_SPL_BOARD_INIT to Kconfig

This converts the following to Kconfig:
   CONFIG_SPL_BOARD_INIT

Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
[trini: Update the Kconfig logic]
Signed-off-by: Tom Rini <trini@konsulko.com>