]> git.dujemihanovic.xyz Git - u-boot.git/log
u-boot.git
7 years agosunxi: A64/Pine64: update device tree from Linux
Andre Przywara [Wed, 24 May 2017 09:34:56 +0000 (10:34 +0100)]
sunxi: A64/Pine64: update device tree from Linux

The Linux device tree for the Allwinner A64 SoC has changed a lot since
the U-Boot version was merged.
Let's replace the current DT with a exact copy of the Linux one as of:
commit c6778ff813d2ca3e3c8733c87dc8b6831a64578b
Merge: 0ff4c01 3c0e3abd
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date:   Tue May 9 10:07:33 2017 -0700

This is the DT used in Linux 4.12-rc1.

Since U-Boot has an Ethernet driver (while Linux does not yet), we
provide the required DT nodes for it in an ...-u-boot.dtsi file, to both
mark them as U-Boot specific and to allow easier upgrading once Linux gets
the driver and its own binding later.
Compared to the existing Ethernet DT nodes we just slightly tweak the clock
and reset nodes in there to match the new bindings used by Linux for those.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Tested-by: Jagan Teki <jagan@amarulasolutions.com>
7 years agosunxi: Update NanoPi Neo to use dtsi
Mylene JOSSERAND [Wed, 10 May 2017 06:26:08 +0000 (08:26 +0200)]
sunxi: Update NanoPi Neo to use dtsi

Update the NanoPi Neo device tree file to use the NanoPi dtsi.

Signed-off-by: Mylène Josserand <mylene.josserand@free-electrons.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
7 years agosunxi: Add support for NanoPi M1
Mylene JOSSERAND [Wed, 10 May 2017 06:26:07 +0000 (08:26 +0200)]
sunxi: Add support for NanoPi M1

NanoPi M1 is a board based on Allwinner H3 CPU.

This commit adds the support for this platform with:
   - an include device tree which enables UART, LEDs, GPIO key switch,
   1 USB host ports and the SD-card as a dtsi file.
   - a device tree specific to this board that enables the
   2 additional USB ports
   - a defconfig file for minimal support
   - a section in MAINTAINERS (add myself)

Synchronized with the kernel device tree, from commits:
sun8i-nanopi.dtsi: 85d2913614d9ab899d23b7ab7d22d23cf45bd1de
sun8i-h3-nanopi-m1.dts: 10efbf5f16336b7540ad6a16aa1cb0b26bab033b

Signed-off-by: Mylène Josserand <mylene.josserand@free-electrons.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
7 years agosunxi: Use uart0 as console for Sinlinx SinA33
Chen-Yu Tsai [Sun, 7 May 2017 07:51:17 +0000 (15:51 +0800)]
sunxi: Use uart0 as console for Sinlinx SinA33

On the A33, uart0 is muxed on the PB pins. On SBCs these pins may be
available for use. Such is the case on the Sinlinx SinA33.

Set CONS_INDEX=1 to use uart0 as the console, matching the device tree.

Fixes: 7095f8641863 ("sunxi: Convert CONS_INDEX to Kconfig")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Jagan Teki <jagan@openedev.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>
7 years agousb: ehci: Add Renesas RCar M3/H3 EHCI support
Hiroyuki Yokoyama [Sat, 13 May 2017 13:56:20 +0000 (15:56 +0200)]
usb: ehci: Add Renesas RCar M3/H3 EHCI support

Add a USB controller driver for the EHCI block in R8A7795/R8A7796 SoC.
This is a stopgap measure until we have proper DT support, clock and
reset framework in place, at which point we can switch to ehci-generic.

Signed-off-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Reviewed-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
7 years agonds32: Support AE3XX platform.
rick [Thu, 18 May 2017 06:37:53 +0000 (14:37 +0800)]
nds32: Support AE3XX platform.

Support Andestech AE3xx platform: serial, timer device tree flow.

Signed-off-by: rick <rick@andestech.com>
7 years agonds32: Support AG101P timer DM.
rick [Wed, 17 May 2017 02:59:20 +0000 (10:59 +0800)]
nds32: Support AG101P timer DM.

Support AG101P timer device tree flow.

Signed-off-by: rick <rick@andestech.com>
7 years agonds32: Support AG101P serial DM.
rick [Mon, 17 Apr 2017 06:41:58 +0000 (14:41 +0800)]
nds32: Support AG101P serial DM.

Support AG101P serial device tree flow.

Signed-off-by: rick <rick@andestech.com>
7 years agonet: usb: mcs7830: fix non-DM ingress path
Uri Mashiach [Sun, 21 May 2017 14:00:52 +0000 (17:00 +0300)]
net: usb: mcs7830: fix non-DM ingress path

The mcs7830_recv() (non-DM) function discards good packets and tries to
process "bad" packets due to incorrect test condition.
Fix the condition and return the proper value as described in function
doc.

Signed-off-by: Uri Mashiach <uri.mashiach@compulab.co.il>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
7 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-imx
Tom Rini [Thu, 18 May 2017 21:17:45 +0000 (17:17 -0400)]
Merge branch 'master' of git://www.denx.de/git/u-boot-imx

7 years agoMerge branch 'master' of git://git.denx.de/u-boot-socfpga
Tom Rini [Thu, 18 May 2017 21:17:42 +0000 (17:17 -0400)]
Merge branch 'master' of git://git.denx.de/u-boot-socfpga

7 years agoMerge branch 'master' of git://git.denx.de/u-boot-usb
Tom Rini [Thu, 18 May 2017 21:17:39 +0000 (17:17 -0400)]
Merge branch 'master' of git://git.denx.de/u-boot-usb

7 years agoARM: dts: am335x-evm: disable mmc3
Jean-Jacques Hiblot [Wed, 17 May 2017 19:22:55 +0000 (21:22 +0200)]
ARM: dts: am335x-evm: disable mmc3

SDIO is not supported in u-boot, there is no point in enabling mmc3.
For this purpose, add u-boot specific dtsi that this will be included
automatically while building the dtb.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
7 years agoscripts/Makefile.lib: Always have ...-u-boot.dtsi be able to override
Tom Rini [Wed, 17 May 2017 18:06:08 +0000 (14:06 -0400)]
scripts/Makefile.lib: Always have ...-u-boot.dtsi be able to override

The intention of having a -u-boot.dtsi file is to be able to make
changes to the provided upstream dts files as well as to be able to add
nodes.  Change the logic for adding the file from making it the last
included file at the top of the dts to being included at the end of the
file.

Cc: Jean-Jacques Hiblot <jjhiblot@ti.com>
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
Tested-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
7 years agoMerge branch 'master' of git://git.denx.de/u-boot-imx
Stefano Babic [Thu, 18 May 2017 09:53:27 +0000 (11:53 +0200)]
Merge branch 'master' of git://git.denx.de/u-boot-imx

Signed-off-by: Stefano Babic <sbabic@denx.de>
7 years agoarm: socfpga: Enable build for Arria 10
Ley Foon Tan [Tue, 25 Apr 2017 18:44:48 +0000 (02:44 +0800)]
arm: socfpga: Enable build for Arria 10

Update Kconfig and Makefile to enable Arria 10.
Clean up Makefile and sorting *.o alphanumerically.

Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
7 years agoarm: socfpga: Add board files for the Arria10
Ley Foon Tan [Tue, 25 Apr 2017 18:44:47 +0000 (02:44 +0800)]
arm: socfpga: Add board files for the Arria10

Add support for the Arria10 SoCDK.

Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
7 years agoarm: socfpga: Add config and defconfig for Arria 10
Ley Foon Tan [Tue, 25 Apr 2017 18:44:46 +0000 (02:44 +0800)]
arm: socfpga: Add config and defconfig for Arria 10

Add config and defconfig for the Arria10 and update socfpga_common.h.

Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
7 years agoarm: socfpga: Add SPL support for Arria 10
Ley Foon Tan [Tue, 25 Apr 2017 18:44:45 +0000 (02:44 +0800)]
arm: socfpga: Add SPL support for Arria 10

Add SPL support for Arria 10.

Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
7 years agoarm: dts: Add dts and dtsi for Arria 10
Ley Foon Tan [Tue, 25 Apr 2017 18:44:44 +0000 (02:44 +0800)]
arm: dts: Add dts and dtsi for Arria 10

Device tree files for Arria 10

Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
7 years agoarm: socfpga: Add misc support for Arria 10
Ley Foon Tan [Tue, 25 Apr 2017 18:44:43 +0000 (02:44 +0800)]
arm: socfpga: Add misc support for Arria 10

Add misc support for Arria 10.

Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
7 years agoarm: socfpga: Add pinmux for Arria 10
Ley Foon Tan [Tue, 25 Apr 2017 18:44:42 +0000 (02:44 +0800)]
arm: socfpga: Add pinmux for Arria 10

Add pinmux support for Arria 10.

Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
7 years agoarm: socfpga: Add sdram header file for Arria 10
Ley Foon Tan [Tue, 25 Apr 2017 18:44:41 +0000 (02:44 +0800)]
arm: socfpga: Add sdram header file for Arria 10

Add sdram header file for Arria 10.

Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
7 years agoarm: socfpga: Add system manager for Arria 10
Ley Foon Tan [Tue, 25 Apr 2017 18:44:40 +0000 (02:44 +0800)]
arm: socfpga: Add system manager for Arria 10

Add system manager register struct and macros for Arria 10.

Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
7 years agoarm: socfpga: Add clock driver for Arria 10
Ley Foon Tan [Tue, 25 Apr 2017 18:44:39 +0000 (02:44 +0800)]
arm: socfpga: Add clock driver for Arria 10

Add clock driver support for Arria 10.

Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
7 years agoarm: socfpga: Add reset driver support for Arria 10
Ley Foon Tan [Tue, 25 Apr 2017 18:44:38 +0000 (02:44 +0800)]
arm: socfpga: Add reset driver support for Arria 10

Add reset driver support for Arria 10.

Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
7 years agoarm: socfpga: Add A10 macros
Ley Foon Tan [Tue, 25 Apr 2017 18:44:37 +0000 (02:44 +0800)]
arm: socfpga: Add A10 macros

Add i2c, timer and other A10 macros.

Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
7 years agoarm: socfpga: Restructure misc driver
Ley Foon Tan [Tue, 25 Apr 2017 18:44:36 +0000 (02:44 +0800)]
arm: socfpga: Restructure misc driver

Restructure misc driver in the preparation to support A10.
Move the Gen5 specific code to gen5 file.

Change all uint32_t_to u32.

Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
7 years agoarm: socfpga: Restructure system manager
Ley Foon Tan [Tue, 25 Apr 2017 18:44:35 +0000 (02:44 +0800)]
arm: socfpga: Restructure system manager

Restructure system manager in the preparation to support A10.
No functional change.

Change uint32_t to u32.

Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
7 years agoarm: socfpga: Restructure reset manager driver
Ley Foon Tan [Tue, 25 Apr 2017 18:44:34 +0000 (02:44 +0800)]
arm: socfpga: Restructure reset manager driver

Restructure reset manager driver in the preparation to support A10.
Move the Gen5 specific code to gen5 files.

Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
7 years agoarm: socfpga: Restructure clock manager driver
Ley Foon Tan [Tue, 25 Apr 2017 18:44:33 +0000 (02:44 +0800)]
arm: socfpga: Restructure clock manager driver

Restructure clock manager driver in the preparation to support A10.
Move the Gen5 specific code to _gen5 files.

- Change all uint32_t to u32 and change to use macro BIT(n) for bit shift.
- Check return value from wait_for_bit(). So change return type to int for
  cm_write_with_phase() and cm_basic_init().

Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
7 years agousb: lpc32xx: add i2c DM support
Liam Beguin [Wed, 17 May 2017 17:01:15 +0000 (13:01 -0400)]
usb: lpc32xx: add i2c DM support

Add DM support for i2c functions.

Signed-off-by: Liam Beguin <lbeguin@tycoint.com>
Signed-off-by: Sylvain Lemieux <slemieux@tycoint.com>
Reviewed-by: Marek Vasut <marex@denx.de>
7 years agopinctrl: imx: fix memory leak
Peng Fan [Thu, 11 May 2017 09:34:14 +0000 (17:34 +0800)]
pinctrl: imx: fix memory leak

Each time set_state is called, a new piece memory will
be allocated for pin_data, but not freed, this will
incur memory leak.

When error, the devm API could not free memory automatically.
So need call devm_kfree when error.

Issue reported by Coverity

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Stefan Agner <stefan.agner@toradex.com>
Cc: Stefano Babic <sbabic@denx.de>
7 years agoimx: mx7dsabresd: fix secure config after switching to DM
Stefano Babic [Thu, 18 May 2017 08:37:01 +0000 (10:37 +0200)]
imx: mx7dsabresd: fix secure config after switching to DM

mx7dsabresd_secure_defconfig was not updated after moving to DM.

Signed-off-by: Stefano Babic <sbabic@denx.de>
7 years agoimx: mx7dsabresd: switch to DM USB
Peng Fan [Thu, 13 Apr 2017 06:09:59 +0000 (14:09 +0800)]
imx: mx7dsabresd: switch to DM USB

Switch to use DM USB.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
7 years agoimx: mx7dsabresd: reset ENET_RST_B
Peng Fan [Thu, 13 Apr 2017 06:09:58 +0000 (14:09 +0800)]
imx: mx7dsabresd: reset ENET_RST_B

Reset ENET_RST_B to make ENET function stable.
Since DM_GPIO enabled, we use "gpio_spi@0_5" which corresponds
to ENET_RST_B.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
7 years agoimx: mx7dsabresd: enable more DM drivers
Peng Fan [Thu, 13 Apr 2017 06:09:57 +0000 (14:09 +0800)]
imx: mx7dsabresd: enable more DM drivers

Enable more DM drivers. The imx I2C/MMC DM drivers needs DM_GPIO
enabled. The 74x164 drivers needs SOFT_SPI and DM_GPIO enabled.
So needs to enable them together.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
7 years agogpio: 74x164: make oe-pins optional
Peng Fan [Thu, 13 Apr 2017 06:09:56 +0000 (14:09 +0800)]
gpio: 74x164: make oe-pins optional

Make oe-pins optional because some boards have fixed it to enable.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Stefano Babic <sbabic@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
7 years agospi: kconfig: add soft spi Kconfig entry
Peng Fan [Thu, 13 Apr 2017 06:09:55 +0000 (14:09 +0800)]
spi: kconfig: add soft spi Kconfig entry

Add the Kconfig entry for SOFT_SPI which uses gpio to simulate the
SPI signals. We use it for accessing 74x164 on some i.MX boards.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Jagan Teki <jagan@openedev.com>
Cc: Stefano Babic <sbabic@denx.de>
7 years agoarm: dts: imx7d-sdb: add usdhc support
Peng Fan [Thu, 13 Apr 2017 06:09:54 +0000 (14:09 +0800)]
arm: dts: imx7d-sdb: add usdhc support

Add usdhc support

Signed-off-by: Peng Fan <peng.fan@nxp.com>
7 years agoarm: dts: imx7d-sdb: add i2c support
Peng Fan [Thu, 13 Apr 2017 06:09:53 +0000 (14:09 +0800)]
arm: dts: imx7d-sdb: add i2c support

Add i2c support.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
7 years agoarm: dts: imx7d-sdb: add regulator node for usb and mmc
Peng Fan [Thu, 13 Apr 2017 06:09:52 +0000 (14:09 +0800)]
arm: dts: imx7d-sdb: add regulator node for usb and mmc

Add regulator node for usb and mmc.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
7 years agoarm: dts: imx7d-sdb: add spi gpio node
Peng Fan [Thu, 13 Apr 2017 06:09:51 +0000 (14:09 +0800)]
arm: dts: imx7d-sdb: add spi gpio node

Add spi gpio node for 74LV595.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
7 years agoarm: dts: imx7d-sdb add basic dts
Peng Fan [Thu, 13 Apr 2017 06:09:50 +0000 (14:09 +0800)]
arm: dts: imx7d-sdb add basic dts

Add basic dts for i.MX7D-SDB board.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>