]> Git Repo - u-boot.git/log
u-boot.git
6 years agogpio: Use case-insentive matching on the GPIO name
Simon Glass [Sun, 17 Feb 2019 03:24:43 +0000 (20:24 -0700)]
gpio: Use case-insentive matching on the GPIO name

Allow the 'gpio' command to match GPIO bank names regardless of the case
of each. While these are generally in upper case, it is useful to be able
to provide lower case with the command.

Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
6 years agogpio: Show inactive GPIOs when explicitly requested
Simon Glass [Sun, 17 Feb 2019 03:24:42 +0000 (20:24 -0700)]
gpio: Show inactive GPIOs when explicitly requested

At present the gpio command only shows GPIOs which are marked as in use.
This makes sense with 'gpio status' since we already have the '-a' flag
to indicate that all GPIOs should be shown. But when a particular GPIO is
requested, it seems better to always display it. At present the request is
simply ignored.

For example if GPIO a10 is not in use, then:

   > gpio status a10

shows nothing, not even the function being used for that GPIO. With this
change, it shows the pin status:

   > gpio status a10
   a10: input: 0 [ ]

Add an extra parameter for this to avoid changing the existing flag
parameter.

Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Tested-by: Bin Meng <[email protected]>
[bmeng: correct the 'gpio' command in the commit message]
Signed-off-by: Bin Meng <[email protected]>
6 years agopci: Fix comment in struct pci_child_platdata
Simon Glass [Sun, 17 Feb 2019 03:24:41 +0000 (20:24 -0700)]
pci: Fix comment in struct pci_child_platdata

This is platdata, not private data, so the comment is currently incorrect.
Fix it to avoid confusion.

Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
6 years agopci: Don't export pci_hose_config_device()
Simon Glass [Sun, 17 Feb 2019 03:24:40 +0000 (20:24 -0700)]
pci: Don't export pci_hose_config_device()

This function is not used outside this file so make it static.

Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
6 years agoi2c: designware: Add error checking on init
Simon Glass [Sun, 17 Feb 2019 03:24:39 +0000 (20:24 -0700)]
i2c: designware: Add error checking on init

At present this driver does not check whether it is able to actually
communicate with the I2C controller. It prints a timeout message but still
considers the probe to be successful.

To fix this, add some checking that the init succeeds.

Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Reviewed-by: Heiko Schocher <[email protected]>
6 years agodm: syscon: Don't require a regmap for PCI devices
Simon Glass [Sun, 17 Feb 2019 03:24:38 +0000 (20:24 -0700)]
dm: syscon: Don't require a regmap for PCI devices

At present it is not possible to use the syscon devices for PCI devices
since a regmap is required. Since PCI uses a 3-cell address the conversion
of the 'reg' property to an address always fails. In any case, the regmap
is not useful with PCI since devices are accessed through the PCI bus
which regmap does not support.

Add a special case for PCI syscon devices, so that they don't set up a
regmap.

Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
6 years agolog: Allow #define LOG_DEBUG to enable logging in a file
Simon Glass [Sun, 17 Feb 2019 03:24:37 +0000 (20:24 -0700)]
log: Allow #define LOG_DEBUG to enable logging in a file

At present it is possible to '#define DEBUG' at the top of a file which
causes all debug() statements in that file to become active. There is
currently no equivalent with logging, but this is a useful function.

Add a LOG_DEBUG define along with documentation.

Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
6 years agolog: Add documentation for convenience functions
Simon Glass [Sun, 17 Feb 2019 03:24:36 +0000 (20:24 -0700)]
log: Add documentation for convenience functions

The log_debug(), etc. function are documented only in the header file at
present. Add a section to README.log also.

Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
6 years agolog: Add a Kconfig option to set the default log level
Simon Glass [Sun, 17 Feb 2019 03:24:35 +0000 (20:24 -0700)]
log: Add a Kconfig option to set the default log level

At present the default log level is set to LOGL_INFO on start-up. Allow
this to be controlled from Kconfig.

Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
6 years agolog: Fix up Kconfig log level names
Simon Glass [Sun, 17 Feb 2019 03:24:34 +0000 (20:24 -0700)]
log: Fix up Kconfig log level names

The log level numbers in the Kconfig are not actually correct. Fix them
and also add a missing space in the header-file comment.

Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
6 years agoMerge branch '2019-02-19-master-imports'
Tom Rini [Wed, 20 Feb 2019 01:48:11 +0000 (20:48 -0500)]
Merge branch '2019-02-19-master-imports'

- Convert some OMAP3 platforms to DM+SPL
- Various minor fixes
- Updates for hikey, DaVinci, am57xx platforms,
- Make FAT use less memory

6 years agotravis: Exclude omap from the arm926ejs job
Tom Rini [Tue, 19 Feb 2019 21:58:56 +0000 (16:58 -0500)]
travis: Exclude omap from the arm926ejs job

We build the platform here that matches with "omap" in its own job,
don't need to have it here as well.

Signed-off-by: Tom Rini <[email protected]>
6 years agocmd: pcmcia: Build only if CONFIG_CMD_PCMCIA=y
Ismael Luceno Cortes [Mon, 18 Feb 2019 09:17:04 +0000 (09:17 +0000)]
cmd: pcmcia: Build only if CONFIG_CMD_PCMCIA=y

Signed-off-by: Ismael Luceno <[email protected]>
6 years agodm: Fix typo 'Watchdot' -> 'Watchdog'
Chris Packham [Sun, 17 Feb 2019 19:48:04 +0000 (08:48 +1300)]
dm: Fix typo 'Watchdot' -> 'Watchdog'

Signed-off-by: Chris Packham <[email protected]>
6 years agoARM: omap3: evm: Update DM SPL support
Derald D. Woods [Sat, 16 Feb 2019 22:56:50 +0000 (16:56 -0600)]
ARM: omap3: evm: Update DM SPL support

- Switch to using the omap3-u-boot.dtsi file for needed properties
- Enable SPL_OF_CONTROL

This commit is based on the following series:

https://patchwork.ozlabs.org/project/uboot/list/?series=92472
https://patchwork.ozlabs.org/project/uboot/list/?series=92462

Signed-off-by: Derald D. Woods <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
6 years agoomap3_beagle: Enable DM_SPI
Tom Rini [Sat, 16 Feb 2019 21:36:30 +0000 (16:36 -0500)]
omap3_beagle: Enable DM_SPI

Switch to DM_SPI support now.

Signed-off-by: Tom Rini <[email protected]>
6 years agoomap3_beagle: Update for DM SPL support
Tom Rini [Sat, 16 Feb 2019 21:36:29 +0000 (16:36 -0500)]
omap3_beagle: Update for DM SPL support

- Switch to using the omap3-u-boot.dtsi file for needed properties.
- Remove a few SPL features to free up more SRAM space.
- Switch CONFIG_SYS_TEXT_BASE to the normal default, we don't need to
  worry about X-Loader at this point anymore.
- A few related updates to SPL options as part of switching to DM SPL.

Signed-off-by: Tom Rini <[email protected]>
Tested-by: Derald D. Woods <[email protected]>
6 years agocmd/fs: fix build if CMD_BOOTEFI is not set
Gervais, Francois [Sat, 16 Feb 2019 21:10:32 +0000 (21:10 +0000)]
cmd/fs: fix build if CMD_BOOTEFI is not set

Fixes:
cmd/fs.c:29: undefined reference to `efi_set_bootdev'

Signed-off-by: Francois Gervais <[email protected]>
6 years agoARM: omap3_logic: Enable SPL booting device tree
Adam Ford [Sat, 16 Feb 2019 19:31:24 +0000 (13:31 -0600)]
ARM: omap3_logic: Enable SPL booting device tree

With the generic omap3-u-boot.dtsi file available, this patch
increased the memory of the various incarnations of the omap3_logic
board, and points their respective u-boot.dtsi files to the newly
created generic one, and removes the PLATDATA from the board file.

These are all done at once because the're all utilizing the same
omap3logic.c board file.

Signed-off-by: Adam Ford <[email protected]>
6 years agoARM: DTS: omap3-u-boot.dtsi
Adam Ford [Sat, 16 Feb 2019 19:31:23 +0000 (13:31 -0600)]
ARM: DTS: omap3-u-boot.dtsi

Create generic omap3-u-boot.dtsi file that omap3 based boards
can include to generate device tree in SPL for booting MLO.

Credit should go to Tom Rini.

Signed-off-by: Adam Ford <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
Tested-by: Derald D. Woods <[email protected]>
6 years agoARM: da8xxevm: Add NAND instructions for da850-evm to README
Adam Ford [Fri, 15 Feb 2019 02:13:53 +0000 (20:13 -0600)]
ARM: da8xxevm: Add NAND instructions for da850-evm to README

The README.da850 file continues information on how to burn NAND
for the LCDK, but not the DA850-EVM.  This patch adds both the
commands and dip switch instructions for burning and booting
NAND.

Signed-off-by: Adam Ford <[email protected]>
6 years agoARM: am3517_evm: Enable Falcon Mode
Adam Ford [Thu, 14 Feb 2019 20:06:35 +0000 (14:06 -0600)]
ARM: am3517_evm: Enable Falcon Mode

The other OMAP3 based Logic PD boards have Falcon Mode enabled,
so this patch makes it possible on the AM3517-evm as well.

Signed-off-by: Adam Ford <[email protected]>
6 years agoARM: da850evm: Increase Malloc Size
Adam Ford [Wed, 13 Feb 2019 19:06:37 +0000 (13:06 -0600)]
ARM: da850evm: Increase Malloc Size

The SPI NOR frameware was recently updated, but they require a little
more memory that we had previosly allocated, so it stopped booting.
This patch doubles the size of CONFIG_SPL_SYS_MALLOC_F_LEN to 0x800.

Fixes: c4e8862308d4 ("mtd: spi: Switch to new SPI NOR framework")
Signed-off-by: Adam Ford <[email protected]>
6 years agohikey: Allow environment to store in eMMC and increase bootdelay
Manivannan Sadhasivam [Wed, 13 Feb 2019 08:58:54 +0000 (14:28 +0530)]
hikey: Allow environment to store in eMMC and increase bootdelay

Current Hikey configuration allows us to store u-boot environment on uSD
card. But this will be useless if uSD card is not inserted, hence use
the onboard eMMC memory for storing environment at Boot1 partition.
While we are at it, let's increase the boot delay to 10s also.

Signed-off-by: Manivannan Sadhasivam <[email protected]>
6 years agotest: let use gdbserver for all sandbox targets
Igor Opaniuk [Tue, 12 Feb 2019 14:18:14 +0000 (16:18 +0200)]
test: let use gdbserver for all sandbox targets

Enable usage of gdbserver for all sandbox targets (sandbox,
sandbox_flattree etc.).

Signed-off-by: Igor Opaniuk <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
6 years agobcm963158: use TARGET_BCM963158 instead of ARCH_BCM63158
Philippe Reynes [Mon, 11 Feb 2019 14:56:14 +0000 (15:56 +0100)]
bcm963158: use TARGET_BCM963158 instead of ARCH_BCM63158

We use TARGET_BCM63158 in the Kconfig instead of ARCH_BCM63158,
so we could add other board that use a bcm63158.

Signed-off-by: Philippe Reynes <[email protected]>
6 years agodtbo: Fix dtbo generation rules
Michal Simek [Mon, 11 Feb 2019 13:51:02 +0000 (14:51 +0100)]
dtbo: Fix dtbo generation rules

Take the first prerequisite (dts overlay file) instead of standard
input.

Signed-off-by: Michal Simek <[email protected]>
6 years agofs: fat: Reduce default max clustersize 64KiB from malloc pool
Tien Fong Chee [Mon, 11 Feb 2019 06:56:20 +0000 (14:56 +0800)]
fs: fat: Reduce default max clustersize 64KiB from malloc pool

Release cluster block immediately when no longer use would help to reduce
64KiB memory allocated to the memory pool.

Signed-off-by: Tien Fong Chee <[email protected]>
6 years agofs: fat: dynamically allocate memory for temporary buffer
Tien Fong Chee [Mon, 11 Feb 2019 06:56:19 +0000 (14:56 +0800)]
fs: fat: dynamically allocate memory for temporary buffer

Drop the statically allocated get_contents_vfatname_block and
dynamically allocate a buffer only if required. This saves
64KiB of memory.

Signed-off-by: Stefan Agner <[email protected]>
Signed-off-by: Tien Fong Chee <[email protected]>
6 years agospl: implement CRC check on U-Boot uImage
Simon Goldschmidt [Sun, 10 Feb 2019 20:34:37 +0000 (21:34 +0100)]
spl: implement CRC check on U-Boot uImage

SPL currently does not check uImage CRCs when loading U-Boot.

This patch adds checking the uImage CRC when SPL loads U-Boot. It does
this by reusing the existing config option SPL_CRC32_SUPPORT to allow
leaving out the CRC check on boards where the additional code size or
boot time is a problem (adding the CRC check currently adds ~1.4 kByte
to flash).

The SPL_CRC32_SUPPORT config option now gets enabled by default if SPL
support for legacy images is enabled to check the CRC on all boards
that don't actively take countermeasures.

Signed-off-by: Simon Goldschmidt <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
6 years agoconfigs: am57xx_evm: define CONFIG_SPL_LOAD_FIT_ADDRESS for SPL-DFU
Bin Liu [Fri, 8 Feb 2019 17:01:37 +0000 (11:01 -0600)]
configs: am57xx_evm: define CONFIG_SPL_LOAD_FIT_ADDRESS for SPL-DFU

Define CONFIG_SPL_LOAD_FIT_ADDRESS to enable SPL-DFU for am57x platform.

Signed-off-by: Bin Liu <[email protected]>
6 years agocmd: date: Do not overwrite arguments
Roman Kapl [Fri, 8 Feb 2019 09:01:02 +0000 (10:01 +0100)]
cmd: date: Do not overwrite arguments

Arguments are const and belong to the caller. Calling date in a hush
loop will yield different results from the second invocation.

Signed-off-by: Roman Kapl <[email protected]>
6 years agoelf: fix cache flushing in 'bootelf -p' command
Kurban Mallachiev [Thu, 7 Feb 2019 11:19:45 +0000 (14:19 +0300)]
elf: fix cache flushing in 'bootelf -p' command

Currently there are two problems in 'bootelf -p' (load elf by segments)
command:
- bss section is not flushed, so booted elf can have non zero values
  in bss;
- at least on ARM there are 'CACHE: Misaligned operation at
  range...' warnings

Use p_memsz instead of p_filesz during cache flushing for elf segment.
p_filesz doesn't include zero initialized memory (e.g. bss section),
which also should be flushed.

Align these cache flushes to line boundaries.

Signed-off-by: Kurban Mallachiev <[email protected]>
6 years agoboard/BuR/brxre1: convert do DM
Hannes Schmelzer [Wed, 6 Feb 2019 12:25:59 +0000 (13:25 +0100)]
board/BuR/brxre1: convert do DM

This commit converts the brxre1 board to DM,
for this we have todo following things:

- add a devicetree-file for this board
- drop all obsolete settings from board header-file
- use dm_i2c_xxx calls for read/write to the resetcontroller
- request gpios before operate them

Serues-cc: [email protected]
Signed-off-by: Hannes Schmelzer <[email protected]>
6 years agodm: scsi: report correct device number
Heinrich Schuchardt [Tue, 5 Feb 2019 17:06:24 +0000 (18:06 +0100)]
dm: scsi: report correct device number

Before the patch scsi would report the same device number for all SCSI
devices, e.g.

  Device 0: (1:0) Vendor: ATA Prod.: Crucial_CT128M55 Rev: MU01
            Type: Hard Disk
            Capacity: 122104.3 MB = 119.2 GB (250069680 x 512)
  Device 0: (1:0) Vendor: ATA Prod.:  Rev:
            Type: Hard Disk
            Capacity: not available

With the patch the same device number is reported as is used in
scsi_read():

  Device 0: (1:0) Vendor: ATA Prod.: Crucial_CT128M55 Rev: MU01
            Type: Hard Disk
            Capacity: 122104.3 MB = 119.2 GB (250069680 x 512)
  Device 1: (1:0) Vendor: ATA Prod.:  Rev:
            Type: Hard Disk
            Capacity: not available

Signed-off-by: Heinrich Schuchardt <[email protected]>
6 years agotpm: simplify: tpm_set_global_lock()
Heinrich Schuchardt [Tue, 5 Feb 2019 00:38:41 +0000 (01:38 +0100)]
tpm: simplify: tpm_set_global_lock()

When in pack_byte_string() memcpy() is called for size 0 the source buffer
address has no relevance. So we can use NULL here.

Signed-off-by: Heinrich Schuchardt <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
6 years agoconfigs: ls1021a: enable sata configs for all ls1021a defconfigs
Peng Ma [Wed, 30 Jan 2019 11:19:40 +0000 (19:19 +0800)]
configs: ls1021a: enable sata configs for all ls1021a defconfigs

Add CONFIG_AHCI CONFIG_SATA_CEVA CONFIG_DM_SCSI for some ls1021a
defconfigs that missing one of them or more.
enable CONFIG_DM_MMC for some defconfigs to support CONFIG_BLK
Support sata for all ls1021a defconfigs

Signed-off-by: Peng Ma <[email protected]>
Reviewed-by: Prabhakar Kushwaha <[email protected]>
6 years agoconfigs: ls1012afrwy: enable sata configs for all ls1012afrwy defconfigs
Peng Ma [Wed, 30 Jan 2019 11:18:43 +0000 (19:18 +0800)]
configs: ls1012afrwy: enable sata configs for all ls1012afrwy defconfigs

Add CONFIG_AHCI CONFIG_SATA_CEVA CONFIG_DM_SCSI for some ls1012afrwy
and ls1012afrwy defconfigs that missing one of them or more.
Support sata for all ls1012afrwy defconfigs

Signed-off-by: Peng Ma <[email protected]>
Reviewed-by: Prabhakar Kushwaha <[email protected]>
6 years agoconfigs: ls208xa: enable sata configs for all ls208xa defconfigs
Peng Ma [Wed, 30 Jan 2019 11:17:44 +0000 (19:17 +0800)]
configs: ls208xa: enable sata configs for all ls208xa defconfigs

Add CONFIG_AHCI CONFIG_SATA_CEVA CONFIG_DM_SCSI for some ls208xardb
and ls208xaqds defconfigs that missing one of them or more.
enable CONFIG_DM_MMC for some defconfigs to support CONFIG_BLK
Support sata for all ls208xa defconfigs

Signed-off-by: Peng Ma <[email protected]>
Reviewed-by: Prabhakar Kushwaha <[email protected]>
6 years agoconfigs: ls1088a: enable sata configs for all ls1088a defconfigs
Peng Ma [Wed, 30 Jan 2019 11:16:08 +0000 (19:16 +0800)]
configs: ls1088a: enable sata configs for all ls1088a defconfigs

Add CONFIG_AHCI CONFIG_SATA_CEVA CONFIG_DM_SCSI for some ls1088ardb
and ls1088aqds defconfigs that missing one of them or more.
Support sata for all ls1088a defconfigs

Signed-off-by: Peng Ma <[email protected]>
Reviewed-by: Prabhakar Kushwaha <[email protected]>
6 years agoconfigs: ls1046a: enable sata configs for all ls1046a defconfigs
Peng Ma [Wed, 30 Jan 2019 11:14:47 +0000 (19:14 +0800)]
configs: ls1046a: enable sata configs for all ls1046a defconfigs

Add CONFIG_AHCI CONFIG_SATA_CEVA CONFIG_DM_SCSI for some ls1046ardb
and ls1046aqds defconfigs that missing one of them or more.
enable CONFIG_DM_MMC for some defconfigs to support CONFIG_BLK
Support sata for all ls1046a defconfigs

Signed-off-by: Peng Ma <[email protected]>
Reviewed-by: Prabhakar Kushwaha <[email protected]>
6 years agoconfigs: ls1043aqds: enable sata configs for all ls1043aqds defconfigs
Peng Ma [Wed, 30 Jan 2019 11:13:32 +0000 (19:13 +0800)]
configs: ls1043aqds: enable sata configs for all ls1043aqds defconfigs

Add CONFIG_AHCI CONFIG_SATA_CEVA CONFIG_DM_SCSI for some ls1043aqds
defconfigs that missing one of them or more.
Support sata for all ls1043aqds defconfigs

Signed-off-by: Peng Ma <[email protected]>
Reviewed-by: Prabhakar Kushwaha <[email protected]>
6 years agoarmv8: ls1043a: move SCSI_AHCI and SCSI to arm/Kconfig
Peng Ma [Wed, 30 Jan 2019 11:11:49 +0000 (19:11 +0800)]
armv8: ls1043a: move SCSI_AHCI and SCSI to arm/Kconfig

remove SCSI and SCSI_AHCI configs for ls1043ardb due to no sata interface
support.
this changed is to fixed the ls1043ardb compile warning as fallows:

===================== WARNING ======================
This board does not use CONFIG_DM_SCSI. Please update
the storage controller to use CONFIG_DM_SCSI before the
v2019.07 release. Failure to update by the deadline may
result in board removal.See doc/driver-model/MIGRATION.txt
for more info.
====================================================

Signed-off-by: Peng Ma <[email protected]>
[PK: reword the patch subject]
Reviewed-by: Prabhakar Kushwaha <[email protected]>
6 years agoarmv8: layerscape: move CONFIG_LAYERSCAPE to Kconfig
Rajesh Bhagat [Fri, 25 Jan 2019 13:36:26 +0000 (13:36 +0000)]
armv8: layerscape: move CONFIG_LAYERSCAPE to Kconfig

Moves CONFIG_LAYERSCAPE for all NXP Layerscape platforms.

Signed-off-by: Rajesh Bhagat <[email protected]>
Reviewed-by: Prabhakar Kushwaha <[email protected]>
6 years agoarmv8: layerscape: move TZASC and TZPC configs to Kconfig
Rajesh Bhagat [Sun, 20 Jan 2019 05:30:06 +0000 (05:30 +0000)]
armv8: layerscape: move TZASC and TZPC configs to Kconfig

Moves FSL_TZASC_400 and FSL_TZPC_BP147 configs to Kconfig
for LS1088A and LS2088A platforms.

Signed-off-by: Rajesh Bhagat <[email protected]>
Reviewed-by: Prabhakar Kushwaha <[email protected]>
6 years agoQE: ls1043a: modify CONFIG_SYS_QE_FW_ADDR to (512*4A00) in SD Card
Zhao Qiang [Wed, 5 Dec 2018 09:01:42 +0000 (17:01 +0800)]
QE: ls1043a: modify CONFIG_SYS_QE_FW_ADDR to (512*4A00) in SD Card

Due to the new layout of Layerscape series, move the QE
firmware to address (512*4A00) in SD Card.

Signed-off-by: Zhao Qiang <[email protected]>
Reviewed-by: Prabhakar Kushwaha <[email protected]>
6 years agoarmv8: ls1043ardb: Add the nand_bootcmd definition
Wen He [Tue, 20 Nov 2018 08:55:25 +0000 (16:55 +0800)]
armv8: ls1043ardb: Add the nand_bootcmd definition

nand_bootcmd doest not exist, it should be support
for nand auto boot up.

Signed-off-by: Wen He <[email protected]>
Reviewed-by: Prabhakar Kushwaha <[email protected]>
6 years agolx2160aqds : Add support for LX2160AQDS platform
Pankaj Bansal [Fri, 8 Feb 2019 10:29:58 +0000 (10:29 +0000)]
lx2160aqds : Add support for LX2160AQDS platform

LX2160AQDS is a development board that supports LX2160A
family SoCs. This patch add base support for this board.

Signed-off-by: Wasim Khan <[email protected]>
Signed-off-by: Sriram Dash <[email protected]>
Signed-off-by: Pankaj Bansal <[email protected]>
Signed-off-by: Udit Agarwal <[email protected]>
[PK: Sqaush patch for "secure boot defconfig" & add maintainer]
Signed-off-by: Prabhakar Kushwaha <[email protected]>
6 years agoboard/lx2160a: Add init_func_vid() definition
Priyanka Jain [Mon, 4 Feb 2019 06:32:36 +0000 (06:32 +0000)]
board/lx2160a: Add init_func_vid() definition

Add init_func_vid() which calls adjust_vdd()
This ensures adjust_vdd() is called via
init_sequence_f[]

Signed-off-by: Priyanka Jain <[email protected]>
Reviewed-by: Prabhakar Kushwaha <[email protected]>
6 years agoarmv8: lx2160: Add secure boot target and enable distro boot.
Udit Agarwal [Fri, 14 Dec 2018 04:43:32 +0000 (04:43 +0000)]
armv8: lx2160: Add secure boot target and enable distro boot.

Adds esbc validate command for verification of MC and DPC
firmware, along with secure boot defconfig.

Also enable distro boot.

Signed-off-by: Udit Agarwal <[email protected]>
Signed-off-by: Peng Ma <[email protected]>
[PK: squash "enable DM support for SATA patch" & add maintainer]
Signed-off-by: Prabhakar Kushwaha <[email protected]>
6 years agoboard/lx2160ardb: Add distro boot support
Priyanka Jain [Thu, 24 Jan 2019 05:22:18 +0000 (05:22 +0000)]
board/lx2160ardb: Add distro boot support

Add u-boot enviroments to support distro boot which scan
boot.scr from external storage devices
(e.g. SD/USB/SCSI disk) and execute autoboot script

Signed-off-by: Priyanka Jain <[email protected]>
Reviewed-by: Prabhakar Kushwaha <[email protected]>
6 years agolx2160: Enable support of EMC2305
Meenakshi Aggarwal [Fri, 30 Nov 2018 17:02:12 +0000 (22:32 +0530)]
lx2160: Enable support of EMC2305

Enable support for FAN controller EMC2305 for
LX2160A RDB board.

Signed-off-by: Sriram Dash <[email protected]>
Signed-off-by: Meenakshi Aggarwal <[email protected]>
[PK: enable EMC2305 for lx2160rdb]
Signed-off-by: Prabhakar Kushwaha <[email protected]>
6 years agoarmv8: emc2305: add support for fan controller
Meenakshi Aggarwal [Fri, 30 Nov 2018 17:02:11 +0000 (22:32 +0530)]
armv8: emc2305: add support for fan controller

Add support for fan controller emc2305.

Signed-off-by: Sriram Dash <[email protected]>
Signed-off-by: Meenakshi Aggarwal <[email protected]>
Signed-off-by: Prabhakar Kushwaha <[email protected]>
6 years agoarmv8: lx2160ardb : Add support for LX2160ARDB platform
Priyanka Jain [Wed, 28 Nov 2018 13:04:27 +0000 (13:04 +0000)]
armv8: lx2160ardb : Add support for LX2160ARDB platform

LX2160ARDB is an evaluation board that supports LX2160A
family SoCs. This patch add base support for this board.

Signed-off-by: Wasim Khan <[email protected]>
Signed-off-by: Yogesh Gaur <[email protected]>
Signed-off-by: Meenakshi Aggarwal <[email protected]>
Signed-off-by: Vabhav Sharma <[email protected]>
Signed-off-by: Sriram Dash <[email protected]>
Signed-off-by: Rajesh Bhagat <[email protected]>
Signed-off-by: Pankit Garg <[email protected]>
Signed-off-by: Yinbo Zhu <[email protected]>
Signed-off-by: Peng Ma <[email protected]>
Signed-off-by: Chuanhua Han <[email protected]>
Signed-off-by: Priyanka Jain <[email protected]>
[PK: Sqaush patches from Yinbo Zhu, Peng Ma, Chuanhua Han
and re-arrange defconfig]
Signed-off-by: Prabhakar Kushwaha <[email protected]>
6 years agoarmv8: fsl-layerscape: reorder rgmii dpmacs' enablement
Pankaj Bansal [Mon, 29 Oct 2018 11:28:26 +0000 (11:28 +0000)]
armv8: fsl-layerscape: reorder rgmii dpmacs' enablement

some dpmacs in armv8a based freescale layerscape SOCs can be
configured via both serdes(sgmii, xfi, xlaui etc) bits and via
EC*_PMUX(rgmii) bits in RCW.
e.g. dpmac 17 and 18 in LX2160A can be configured as SGMII from
serdes bits and as RGMII via EC1_PMUX/EC2_PMUX bits
Now if a dpmac is enabled by serdes bits then it takes precedence
over EC*_PMUX bits. i.e. in LX2160A if we select serdes protocol
that configures dpmac17 as SGMII and set the EC1_PMUX as RGMII,
then the dpmac is SGMII and not RGMII.

Therefore, move the fsl_rgmii_init after fsl_serdes_init. in
fsl_rgmii_init function of SOC, we will check if the dpmac is enabled
or not? if it is (fsl_serdes_init has already enabled the dpmac), then
don't enable it.

Signed-off-by: Pankaj Bansal <[email protected]>
Reviewed-by: Prabhakar Kushwaha <[email protected]>
6 years agoarmv8, lx2160a: Initialize ethernet array in serdes_init
Priyanka Jain [Wed, 28 Nov 2018 10:00:07 +0000 (10:00 +0000)]
armv8, lx2160a: Initialize ethernet array in serdes_init

Add code to initial ethernet interface arrays
with corresponding dpmac-id values in serdes_init function
for LX2160A.

Signed-off-by: Priyanka Jain <[email protected]>
Reviewed-by: Prabhakar Kushwaha <[email protected]>
6 years agodrivers/ddr/fsl: Update fsl_ddr_board_options as weak function
Priyanka Jain [Mon, 29 Oct 2018 09:37:36 +0000 (09:37 +0000)]
drivers/ddr/fsl: Update fsl_ddr_board_options as weak function

fsl_ddr_board_options is generally defined in board
board's ddr.c, but some boards like lx2160ardb board
does not need this function.
Defining fsl_ddr_board_options as weak function to
resolve compilation errors for such boards.

Signed-off-by: Priyanka Jain <[email protected]>
[PK: Fix checkpatch warnings]
Signed-off-by: Prabhakar Kushwaha <[email protected]>
6 years agoarch: arm: lib: Flush L3 after relocation to DDR
Meenakshi Aggarwal [Mon, 18 Feb 2019 18:38:30 +0000 (00:08 +0530)]
arch: arm: lib: Flush L3 after relocation to DDR

Flush L3 cache after uboot relocated to DDR.

Signed-off-by: Meenakshi Aggarwal <[email protected]>
Signed-off-by: Udit Kumar <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Reviewed-by: Prabhakar Kushwaha <[email protected]>
6 years agoarmv8: lx2160a: Update CONFIG_SYS_FSL_PEBUF_BASE
Priyanka Jain [Wed, 28 Nov 2018 09:56:46 +0000 (09:56 +0000)]
armv8: lx2160a: Update CONFIG_SYS_FSL_PEBUF_BASE

As per hardware documentation,
CONFIG_SYS_FSL_PEBUF_BASE for lx2160a is 0x1c00000000

Signed-off-by: Priyanka Jain <[email protected]>
Reviewed-by: Prabhakar Kushwaha <[email protected]>
6 years agoMerge branch 'master' of git://git.denx.de/u-boot-socfpga
Tom Rini [Tue, 19 Feb 2019 03:12:59 +0000 (22:12 -0500)]
Merge branch 'master' of git://git.denx.de/u-boot-socfpga

- Misc Gen5 fixes
- stratix10 bugfix
- dwmmc bugfix

6 years agoPrepare v2019.04-rc2 v2019.04-rc2
Tom Rini [Tue, 19 Feb 2019 02:36:39 +0000 (21:36 -0500)]
Prepare v2019.04-rc2

Signed-off-by: Tom Rini <[email protected]>
6 years agoconfigs: Enable CONFIG_BLK in am57xx_evm and am57xx_hs_evm
Jean-Jacques Hiblot [Fri, 8 Feb 2019 09:55:06 +0000 (10:55 +0100)]
configs: Enable CONFIG_BLK in am57xx_evm and am57xx_hs_evm

Enable CONFIG_DM_SCSI and CONFIG_BLK.

Signed-off-by: Jean-Jacques Hiblot <[email protected]>
Reviewed-by: Lokesh Vutla <[email protected]>
6 years agoconfigs: k2g_evm: Enable CONFIG_BLK
Jean-Jacques Hiblot [Fri, 8 Feb 2019 09:55:05 +0000 (10:55 +0100)]
configs: k2g_evm: Enable CONFIG_BLK

CONFIG_BLK can be safely enabled as DM_MMC and DM_USB are already enabled.

Signed-off-by: Jean-Jacques Hiblot <[email protected]>
Reviewed-by: Lokesh Vutla <[email protected]>
Tested-by: Vignesh R <[email protected]>
6 years agoefi_loader: Swap roles with Heinrich
Alexander Graf [Thu, 14 Feb 2019 13:35:17 +0000 (14:35 +0100)]
efi_loader: Swap roles with Heinrich

Heinrich is going to take over maintainership of the efi_loader tree
going forward.

To ensure that I will still receive review mails at least, add me as
reviewer with a stable email address.

Signed-off-by: Alexander Graf <[email protected]>
Signed-off-by: Heinrich Schuchardt <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
6 years agorpi: Make Matthias maintainer
Alexander Graf [Thu, 14 Feb 2019 13:37:59 +0000 (14:37 +0100)]
rpi: Make Matthias maintainer

Matthias Brugger agreed to take over maintainership from me for the
Raspberry Pi tree. Add him to the MAINTAINERS file instead.

Signed-off-by: Alexander Graf <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
6 years agoboard/BuR/brppt1: fix ethernet support on brppt1 boards
Hannes Schmelzer [Fri, 15 Feb 2019 10:15:05 +0000 (11:15 +0100)]
board/BuR/brppt1: fix ethernet support on brppt1 boards

The commit 1bac199e8c87 ("configs: Resync with savedefconfig")
did remove ethernet driver from following boards defconfig:

- brppt1_mmc
- brppt1_nand
- brppt1_spi

With this commit we add ethernet and responsible phy support again.

Signed-off-by: Hannes Schmelzer <[email protected]>
6 years agoMerge tag 'efi-2019-04-rc2' of https://github.com/xypron2/u-boot
Tom Rini [Mon, 18 Feb 2019 20:48:01 +0000 (15:48 -0500)]
Merge tag 'efi-2019-04-rc2' of https://github.com/xypron2/u-boot

The patches fix multiple errors. Mentionable are:
- EFI unit tests (bootefi selftest) can run on i386.
- `make tests` executes the Unicode unit tests.

The LoadImage patch is preparing for further rework to be delivered
in v2019.07.

6 years agoARM: socfpga: stratix10: Return valid error code from FPGA driver
Ang, Chee Hong [Mon, 18 Feb 2019 04:07:50 +0000 (20:07 -0800)]
ARM: socfpga: stratix10: Return valid error code from FPGA driver

This patch prevent the Stratix 10 FPGA driver incorrectly return the
transaction ID as the mailbox error code. It should always return the
actual mailbox error code from SDM firmware.

Signed-off-by: Ang, Chee Hong <[email protected]>
6 years agommc: dwmmc: Poll for iDMAC TX/RX interrupt
Ley Foon Tan [Thu, 20 Dec 2018 09:55:41 +0000 (17:55 +0800)]
mmc: dwmmc: Poll for iDMAC TX/RX interrupt

Poll for iDMAC TX/RX interrupt before disable DMA.
This to prevent disable DMA before data is transfer
completed.

Signed-off-by: Ley Foon Tan <[email protected]>
6 years agoarm: socfpga: gen5: remove hacked ETH RST handling
Simon Goldschmidt [Sun, 13 Jan 2019 18:58:42 +0000 (19:58 +0100)]
arm: socfpga: gen5: remove hacked ETH RST handling

The 'dwmac_socfpga' ETH driver can now get the MACs out of reset
via the socfpga reset driver and can set PHY mode via syscon.

This means we can now remove the ad-hoc code to do this from
arch/arm/mach-socfpga.

Signed-off-by: Simon Goldschmidt <[email protected]>
6 years agoarm: socfpga: gen5 enable designware_socfpga
Simon Goldschmidt [Sun, 13 Jan 2019 18:58:41 +0000 (19:58 +0100)]
arm: socfpga: gen5 enable designware_socfpga

Enable the socfpga specific designware ethernet driver by default for
socfpga by implying it when enabling CONFIG_ETH_DESIGNWARE for a
MACH_SOCFPGA config.

This is required to remove the hacky reset and phy mode handling in
arch/arm/mach-socfpga.

Signed-off-by: Simon Goldschmidt <[email protected]>
6 years agonet: designware: socfpga: adapt to Gen5
Simon Goldschmidt [Sun, 13 Jan 2019 18:58:40 +0000 (19:58 +0100)]
net: designware: socfpga: adapt to Gen5

This driver was written for Arria10, but it applies to Gen5, too.

The main difference is that Gen5 has 2 MACs (Arria10 has 3) and the
syscon bits are encoded in the same register, thus an offset is needed.

This offset is already read from the devicetree, but for Arria10 it is
always 0, which is probably why it has been ignored. By using this
offset when writing the phy mode into the syscon regiter, we can use
this driver to set the phy mode for both of the MACs on Gen5.

Since the PHY mode bits in sysmgr are the same even for Stratix10,
let's drop the detection of the sub-mach by checking compatible
version and just use the same code for all FPGAs.

To work correctly, this driver depends on SYSCON and REGMAP, so select
those via Kconfig when it is enabeld.

Tested on socfpga_socrates (where the 2nd MAC is connected, so a shift
offset is required).

Signed-off-by: Simon Goldschmidt <[email protected]>
6 years agosunxi: Add Bananapi M2+ H5 board
Chen-Yu Tsai [Fri, 15 Feb 2019 11:03:18 +0000 (19:03 +0800)]
sunxi: Add Bananapi M2+ H5 board

As the H5 is pin compatible with the H3, vendors tend to upgrade their
existing H3 products with an H5 SoC swap. This is the case with the
Bananapi M2+ H5.

Add the following to support it:

  - device tree file: synced from Linux v5.0-rc1,
  - defconfig: copy of bananapi_m2_plus_h3_defconfig with only SoC
       family and default device tree file name changed
  - MAINTAINERS entry

Signed-off-by: Chen-Yu Tsai <[email protected]>
Reviewed-by: Jagan Teki <[email protected]>
6 years agosunxi: Rename Sinovoip BPI M2 Plus to Bananapi M2 Plus H3
Chen-Yu Tsai [Fri, 15 Feb 2019 11:03:17 +0000 (19:03 +0800)]
sunxi: Rename Sinovoip BPI M2 Plus to Bananapi M2 Plus H3

The brand Sinovoip is used for Sinovoip's original VOIP products, while
the Bananapi brand is for the single board computers they produce. This
has been verified by Bananapi. Rename the board from "Sinovoip BPI M2
Plus" to "Bananapi M2 Plus". For the defconfig file, all lowercase is
used.

To support the H5 variant of this board, the "H3" suffix is added to
the defconfig name.

Also add myself as one of the board maintainers.

As the device tree files were already correctly named, they do not
require any changes.

Signed-off-by: Chen-Yu Tsai <[email protected]>
[jagan: removed unneeded message from commit body]
Signed-off-by: Jagan Teki <[email protected]>
Reviewed-by: Jagan Teki <[email protected]>
6 years agosunxi: Sync Bananapi M2+ device tree from Linux v5.0-rc1
Chen-Yu Tsai [Fri, 15 Feb 2019 11:03:16 +0000 (19:03 +0800)]
sunxi: Sync Bananapi M2+ device tree from Linux v5.0-rc1

As of commit aa8fee415f46 ("ARM: dts: sun8i: h3: Split out
non-SoC-specific parts of Bananapi M2 Plus") in the Linux kernel, the
device tree for the Bananapi M2+ has been split into a common dtsi file,
and an SoC-specific board device tree file that includes both the shared
dtsi file and the soc dtsi file. This was done to support both the H3
and H5 variants of the same board. This is similar to what was done for
the Libre Computer ALL-H3-CC in U-boot commit d7b17f1c24af ("sunxi: Split
out common board design for ALL-H3-CC device tree").

The newly split files are directly synced from Linux tag v5.0-rc1.

Signed-off-by: Chen-Yu Tsai <[email protected]>
Reviewed-by: Jagan Teki <[email protected]>
6 years agoMerge tag 'video-for-2019.04-rc2' of git://git.denx.de/u-boot-video
Tom Rini [Sat, 16 Feb 2019 23:10:53 +0000 (18:10 -0500)]
Merge tag 'video-for-2019.04-rc2' of git://git.denx.de/u-boot-video

- sunxi display DDC probe fallback
- support 24bpp BMP files on 16bpp displays

6 years agoMerge branch 'master' of git://git.denx.de/u-boot-sh
Tom Rini [Sat, 16 Feb 2019 22:05:51 +0000 (17:05 -0500)]
Merge branch 'master' of git://git.denx.de/u-boot-sh

- Various MMC fixes

6 years agommc: tmio: sdhi: Configure DT2FF register for HS400 mode
Marek Vasut [Thu, 14 Feb 2019 14:16:15 +0000 (15:16 +0100)]
mmc: tmio: sdhi: Configure DT2FF register for HS400 mode

The DT2FF register must be configured differently for HS400 mode
and for HS200/SDR104 mode. Configure the DT2FF register according
to the recommended datasheet settings for each mode.

Signed-off-by: Marek Vasut <[email protected]>
Cc: Masahiro Yamada <[email protected]>
6 years agommc: tmio: Configure HOST_MODE WMODE according to bus width
Marek Vasut [Thu, 14 Feb 2019 14:16:24 +0000 (15:16 +0100)]
mmc: tmio: Configure HOST_MODE WMODE according to bus width

Set the HOST_MODE register WMODE bit according to the SDHI bus width,
that is 0 for 64bit bus and 1 for 16/32bit bus.

Signed-off-by: Marek Vasut <[email protected]>
Cc: Masahiro Yamada <[email protected]>
6 years agommc: Downgrade SD/MMC from UHS/HS200/HS400 modes before boot
Marek Vasut [Tue, 29 Jan 2019 03:45:51 +0000 (04:45 +0100)]
mmc: Downgrade SD/MMC from UHS/HS200/HS400 modes before boot

Older kernel versions or systems which do not connect eMMC reset line
properly may not be able to handle situations where either the eMMC
is left in HS200/HS400 mode or SD card in UHS modes by the bootloader
and may misbehave. Downgrade the eMMC to HS/HS52 mode and/or SD card
to non-UHS mode before booting the kernel to allow such older kernels
to work with modern U-Boot.

Signed-off-by: Marek Vasut <[email protected]>
Cc: Tom Rini <[email protected]>
6 years agoefi_loader: do not miss last relocation block
Heinrich Schuchardt [Sat, 16 Feb 2019 14:36:33 +0000 (15:36 +0100)]
efi_loader: do not miss last relocation block

If the last block in the relocation table contains only a single
relocation, the current coding ignores it.

Fix the determination of the end of the relocation table.

Signed-off-by: Heinrich Schuchardt <[email protected]>
6 years agoefi_loader: documentation of image loader
Heinrich Schuchardt [Sat, 16 Feb 2019 14:22:13 +0000 (15:22 +0100)]
efi_loader: documentation of image loader

- Add missing function descriptions.
- Update existing function descriptions to match Sphinx style.
- Add lib/efi_loader/efi_image_loader.c to the input files for Sphinx
  generated documentation.

Signed-off-by: Heinrich Schuchardt <[email protected]>
6 years agoefi_loader: clean up bootefi_test_prepare()
Heinrich Schuchardt [Sat, 12 Jan 2019 13:42:40 +0000 (14:42 +0100)]
efi_loader: clean up bootefi_test_prepare()

Free resources upon failure.

Correct the function description.

As there is no need for any special address in the dummy memory device
path passed via the EFI_LOADED_IMAGE_PROTOCOL simply use 0 as address.

Signed-off-by: Heinrich Schuchardt <[email protected]>
6 years agoefi_loader: fix EFI entry counting
Heinrich Schuchardt [Sat, 9 Feb 2019 13:10:39 +0000 (14:10 +0100)]
efi_loader: fix EFI entry counting

`bootefi selftest` fails on qemu-x86_defconfig if efi_selftest() is not
invoked using EFI_CALL().

Likewise we call the entry point of EFI payloads with
EFI_CALL(efi_start_image()).

entry_count indicates if we are in U-Boot (1) or in EFI payload code (0).
As we start in U-Boot code the initial value has to be 1.

Signed-off-by: Heinrich Schuchardt <[email protected]>
6 years agoefi_loader: use efi_start_image() for bootefi
Heinrich Schuchardt [Wed, 26 Dec 2018 12:28:09 +0000 (13:28 +0100)]
efi_loader: use efi_start_image() for bootefi

Remove the duplicate code in efi_do_enter() and use efi_start_image() to
start the image invoked by the bootefi command.

Signed-off-by: Heinrich Schuchardt <[email protected]>
6 years agoefi_loader: set entry point in efi_load_pe()
Heinrich Schuchardt [Wed, 26 Dec 2018 11:49:09 +0000 (12:49 +0100)]
efi_loader: set entry point in efi_load_pe()

Up to now efi_load_pe() returns the entry point or NULL in case of an
error. This does not allow to return correct error codes from LoadImage().

Let efi_load_pe() return a status code and fill in the entry point in the
corresponding field of the image object.

Signed-off-by: Heinrich Schuchardt <[email protected]>
6 years agoefi_loader: LoadImage: always allocate new pages
Heinrich Schuchardt [Mon, 24 Dec 2018 08:19:07 +0000 (09:19 +0100)]
efi_loader: LoadImage: always allocate new pages

If we want to properly unload images in Exit() the memory should always be
allocated in the same way. As we allocate memory when reading from file we
should do the same when the original image is in memory.

A further patch will be needed to free the memory when Exit() is called.

Signed-off-by: Heinrich Schuchardt <[email protected]>
6 years agoefi_loader: error handling in efi_setup_loaded_image()
Heinrich Schuchardt [Wed, 6 Feb 2019 18:41:29 +0000 (19:41 +0100)]
efi_loader: error handling in efi_setup_loaded_image()

In case of an error we should set the returned pointers to NULL. This
ensures that an illegal free does not occur even if the caller calls
free() for the handles.

If protocols cannot be installed, release all resources.

Signed-off-by: Heinrich Schuchardt <[email protected]>
6 years agotest: adjust names of Unicode test functions
Heinrich Schuchardt [Fri, 15 Feb 2019 22:12:50 +0000 (23:12 +0100)]
test: adjust names of Unicode test functions

In test/py/conftest.py the assumption is made that for if a test is called
with `ut unicode` the test function name starts with 'unicode_test_'. As
the Unicode tests did not follow this naming scheme they were not executed
by `make tests`.

Rename the Unicode test functions.

Signed-off-by: Heinrich Schuchardt <[email protected]>
6 years agolib/vsprintf: print '?' for illegal Unicode sequence
Heinrich Schuchardt [Fri, 15 Feb 2019 21:20:53 +0000 (22:20 +0100)]
lib/vsprintf: print '?' for illegal Unicode sequence

Commit 0e66c10a7d80 ("lib: vsprintf: avoid overflow printing UTF16
strings") broke the Unicode unit tests: an illegal UTF16 code point
should be printed as '?'.

Fixes: 0e66c10a7d80 ("lib: vsprintf: avoid overflow printing UTF16 strings")
Signed-off-by: Heinrich Schuchardt <[email protected]>
6 years agoefi_selftest: LoadImage from file device path
Heinrich Schuchardt [Wed, 9 Jan 2019 18:04:14 +0000 (19:04 +0100)]
efi_selftest: LoadImage from file device path

Provide a unit test that calls LoadImage() with a file device path and
executes the application via StartImage().

Signed-off-by: Heinrich Schuchardt <[email protected]>
6 years agoefi_loader: comments for efi_file_from_path()
Heinrich Schuchardt [Mon, 4 Feb 2019 20:24:35 +0000 (21:24 +0100)]
efi_loader: comments for efi_file_from_path()

Add more comments for efi_file_from_path().

Signed-off-by: Heinrich Schuchardt <[email protected]>
6 years agoefi_loader: efi_dp_split_file_path() error handling
Heinrich Schuchardt [Mon, 4 Feb 2019 11:49:43 +0000 (12:49 +0100)]
efi_loader: efi_dp_split_file_path() error handling

If the path passed to efi_dp_split_file_path() does not contain a
reference to a file it returns EFI_OUT_OF_RESOURCES. This does not properly
indicate the kind of the problem that occurred. Return
EFI_INVALID_PARAMETER instead.

Update function description.

Signed-off-by: Heinrich Schuchardt <[email protected]>
6 years agoefi_selftest: fix memory allocation in HII tests
Heinrich Schuchardt [Tue, 12 Feb 2019 20:38:02 +0000 (21:38 +0100)]
efi_selftest: fix memory allocation in HII tests

In efi_selftest we are in EFI land. We cannot call U-Boot library
functions malloc() and free() but should use the boot time services
instead.

Signed-off-by: Heinrich Schuchardt <[email protected]>
Reviewed-by: Alexander Graf <[email protected]>
6 years agoefi_selftest: do not use efi_free_pool()
Heinrich Schuchardt [Tue, 12 Feb 2019 20:50:45 +0000 (21:50 +0100)]
efi_selftest: do not use efi_free_pool()

In efi_selftest we are in EFI land. We should not use U-Boot library
functions but boot time services for memory management.

Signed-off-by: Heinrich Schuchardt <[email protected]>
Reviewed-by: Alexander Graf <[email protected]>
6 years agoMerge tag 'u-boot-imx-2019-02-16' of git://git.denx.de/u-boot-imx
Tom Rini [Sat, 16 Feb 2019 13:31:05 +0000 (08:31 -0500)]
Merge tag 'u-boot-imx-2019-02-16' of git://git.denx.de/u-boot-imx

u-boot-imx-2019-02-16
---------------------

- vhybrid: add calibration
- gw_ventana: fixes
- Improve documentation for Secure Boot (HABv4)
- Fix Marvell Switch
- MX6 Sabre, switch to DM
- Fixes for NAND

6 years agoMerge tag 'xilinx-for-v2019.04-rc2' of git://git.denx.de/u-boot-microblaze
Tom Rini [Sat, 16 Feb 2019 02:21:28 +0000 (21:21 -0500)]
Merge tag 'xilinx-for-v2019.04-rc2' of git://git.denx.de/u-boot-microblaze

Xilinx changes for v2019.04-rc2

xilinx:
- Start to use distro boot commands first
- Setup fdtfile on ZynqMP
- Move mac addr eeprom read to common location
- Convert to OF_SEPARATE
- Switch all board to DM_I2C
- Some DT syncs

i2c:
- Remove !DM_I2C zynq driver

versal:
- Enable some more features
- Add mini configurations

6 years agoMerge tag '2019.01-next' of https://github.com/mbgg/u-boot
Tom Rini [Sat, 16 Feb 2019 01:10:15 +0000 (20:10 -0500)]
Merge tag '2019.01-next' of https://github.com/mbgg/u-boot

- add compute module 3+
- fix 64 bit warning in bmp command

6 years agoimx: cpu.c: give access to reset cause in spl
Max Krummenacher [Fri, 1 Feb 2019 15:04:51 +0000 (16:04 +0100)]
imx: cpu.c: give access to reset cause in spl

This makes get_imx_reset_cause() accessible in SPL, but keeps the SRSR
register content intact so that U-Boot proper can evaluated the
reset_cause again should this be needed.

Signed-off-by: Max Krummenacher <[email protected]>
Acked-by: Marcel Ziswiler <[email protected]>
6 years agoimx: serial_mxc: disable ri and dcd irq in dte mode
Max Krummenacher [Fri, 1 Feb 2019 15:04:50 +0000 (16:04 +0100)]
imx: serial_mxc: disable ri and dcd irq in dte mode

If the UART is used in DTE mode the RI and DCD bits in UCR3 become
irq enable bits. Both are set to enabled after reset and both likely
are pending.

Disable the bits to prevent an interrupt storm when Linux enables
the UART interrupts.

Signed-off-by: Max Krummenacher <[email protected]>
Signed-off-by: Marcel Ziswiler <[email protected]>
This page took 0.090951 seconds and 4 git commands to generate.