Re: [PATCH 09/33] dma: Rename free() to rfree()

2020-01-12 Thread Peter Ujfalusi
Hi Simon, On 12/01/2020 21.06, Simon Glass wrote: > This function name conflicts with our desire to #define free() to > something else on sandbox. Since it deals with resources, rename it to > rfree(). > > Signed-off-by: Simon Glass > --- > > drivers/dma/dma-uclass.c | 4 ++-- > drivers/

[PATCH] tpm2: ftpm: A driver for firmware TPM running inside TEE

2020-01-12 Thread Thirupathaiah Annapureddy
Add a driver for a firmware TPM running inside TEE. Documentation of the firmware TPM: https://www.microsoft.com/en-us/research/publication/ftpm-software-implementation-tpm-chip/ Implementation of the firmware TPM: https://github.com/Microsoft/ms-tpm-20-ref/tree/master/Samples/ARM32-FirmwareTPM

Re: [PATCH 00/10] ARM: clearfog: add run-time board detect

2020-01-12 Thread Stefan Roese
Hi Baruch, On 25.11.19 11:30, Baruch Siach wrote: Newer revisions of SolidRun Clearfog Base/Pro carriers and Armada 388 SOM add EEPROM storage for board detection. This patch series adds support for reading EEPROM stored board information, and using it to set RAM training parameters, serdes conf

Re: [PATCH 10/10] ARM: mvebu: clearfog: add Clearfog Base serdes configuration

2020-01-12 Thread Stefan Roese
On 25.11.19 11:30, Baruch Siach wrote: Clearfog Base carrier uses serdes lane #5 as USB host. Use EEPROM stored device identification to configure the serdes accordingly when available. Signed-off-by: Baruch Siach --- board/solidrun/clearfog/clearfog.c | 6 ++ 1 file changed, 6 insertion

Re: [PATCH 09/10] ARM: mvebu: clearfog: add Clearfog GTR support

2020-01-12 Thread Stefan Roese
On 25.11.19 11:30, Baruch Siach wrote: Select the serdes configuration table based on the platform identity read from EEPROM TLV data. Clearfog GTR needs a slightly different serdes configuration. Signed-off-by: Baruch Siach --- board/solidrun/clearfog/clearfog.c | 10 ++ 1 file chan

Re: [PATCH 08/10] ARM: mvebu: clearfog: run-time selection of DT file

2020-01-12 Thread Stefan Roese
On 25.11.19 11:30, Baruch Siach wrote: Set the kernel device-tree file (fdtfile environment variable) based on run-time detection of the platform. Signed-off-by: Baruch Siach --- arch/arm/mach-mvebu/Kconfig| 1 + board/solidrun/clearfog/clearfog.c | 14 ++ 2 files chang

[Patch v4 6/7] configs: ls1046a: Move SPI_FLASH_SPANSION to defconfig

2020-01-12 Thread Kuldeep Singh
Enable CONFIG_SPI_FLASH_SPANSION in defconfigs of LS1046ARDB and LS1046AQDS which have two spansion flases i.e s25fs512s each of size 64M. Signed-off-by: Kuldeep Singh --- Depends on https://patchwork.ozlabs.org/patch/1219462/ Depends on https://patchwork.ozlabs.org/patch/1208299/ v4: No change

[Patch v4 5/7] configs: ls1012a: Enable CONFIG_SPI_FLASH_SPANSION in defconfigs

2020-01-12 Thread Kuldeep Singh
Since CONFIG_FSL_QSPI is already enabled for LS1012A in defconfigs. Also enable CONFIG_SPI_FLASH_SPANSION for LS1012A boards having spansion flashes. Signed-off-by: Ashish Kumar Signed-off-by: Kuldeep Singh --- Depends on https://patchwork.ozlabs.org/patch/1219462/ Depends on https://patchwork.o

[Patch v4 7/7] treewide: Update fsl qspi node dt properties as per spi-mem driver

2020-01-12 Thread Kuldeep Singh
According to new qspi driver, some properties like "bus-num, num-cs, big-endian" are no longer used. Device endiannes can be determined from device-type data in driver. Now use board specific compatibles, generic node names and specific labels to align with linux device-tree properties. Also cons

[Patch v4 1/7] spi: Transform the FSL QuadSPI driver to use the SPI MEM API

2020-01-12 Thread Kuldeep Singh
To support the SPI MEM API, instead of modifying the existing U-Boot driver, this patch adds a port of the existing Linux driver. This also has the advantage that porting changes and fixes from Linux will be easier. Porting of driver left most of the functions unchanged while few of the changes are

[Patch v4 3/7] configs: ls1043a: Move CONFIG_FSL_QSPI and SPI_FLASH_SPANSION to defconfig

2020-01-12 Thread Kuldeep Singh
Move CONFIG_FSL_QSPI to the board defconfigs and while at it also move CONFIG_SPI_FLASH_SPANSION for LS1043AQDS. Signed-off-by: Frieder Schrempf Signed-off-by: Kuldeep Singh --- Depends on https://patchwork.ozlabs.org/patch/1219462/ Depends on https://patchwork.ozlabs.org/patch/1208299/ v4: Mov

[Patch v4 4/7] imx: imx6sx: Remove unused 'num-cs' property

2020-01-12 Thread Kuldeep Singh
From: Frieder Schrempf This property is not used by the driver anymore so let's remove it. Other dts still have 'num-cs' set, but they need a resync with the Linux kernel anyway, so let's only do the U-Boot-specific files for now. Signed-off-by: Frieder Schrempf Signed-off-by: Kuldeep Singh --

[Patch v4 2/7] treewide: Remove unused FSL QSPI config options

2020-01-12 Thread Kuldeep Singh
Some of these options are not used by the driver anymore and some of them are obsolete as the information is gathered from the dt. Also consolidating defines in common headers. Signed-off-by: Frieder Schrempf Signed-off-by: Ashish Kumar Signed-off-by: Kuldeep Singh --- Depends on https://patchw

[Patch v4 0/7] Transition of fsl qspi driver to spi-mem framework

2020-01-12 Thread Kuldeep Singh
This entire patch series migrate freescale qspi driver to spi-mem framework. v4 version of series include removal of buildman failure on LS2080AQDS build which was observed in cleanup patches. Also, more clear commit message of patch 5. v3 version of series includes correction of copyright in qsp

Re: [PATCH 07/10] ARM: mvebu: clearfog: print TLV stored product name

2020-01-12 Thread Stefan Roese
On 25.11.19 11:30, Baruch Siach wrote: Use the data from EEPROM TLV to display the board identity. Signed-off-by: Baruch Siach --- board/solidrun/clearfog/clearfog.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/board/solidrun/clearfog/clearfog.c b/board/so

Re: [PATCH 06/10] ARM: mvebu: clearfog: read basic TLV data

2020-01-12 Thread Stefan Roese
On 25.11.19 11:30, Baruch Siach wrote: Read RAM die capacity from the EEPROM TLV. Follow the ONIE standard that defines the Vendor Extension entry type for vendor specific data. We have no Private Enterprise Number at the moment as the standard requires. Use the dummy all 0xff value for now. Si

Re: [PATCH 05/10] ARM: mvebu: clearfog: add support for EEPROM TLV info

2020-01-12 Thread Stefan Roese
On 25.11.19 11:30, Baruch Siach wrote: Signed-off-by: Baruch Siach --- configs/clearfog_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/clearfog_defconfig b/configs/clearfog_defconfig index dd48b325c0bc..2bf80ee70cec 100644 --- a/configs/clearfog_defconfig +++ b/con

Re: [PATCH 04/10] ARM: mvebu: clearfog: add EEPROM devices

2020-01-12 Thread Stefan Roese
On 25.11.19 11:30, Baruch Siach wrote: Add device-tree description for the EEPROM devices on Armada 388 SOM rev 2.1. Another EEPROM is now on Clearfog Pro carrier rev 2.2, and Clearfog Base rev 1.3. Signed-off-by: Baruch Siach --- arch/arm/dts/armada-388-clearfog-u-boot.dtsi | 12 +

Re: [PATCH 03/10] cmd: add sys_eeprom command

2020-01-12 Thread Stefan Roese
On 25.11.19 11:30, Baruch Siach wrote: Based on U-Boot patch from the Open Compute project: https://github.com/opencomputeproject/onie/blob/ec87e872d46b9805565d2c6124b2f701ef1c07b1/patches/u-boot/common/feature-sys-eeprom-tlv-common.patch Keep only I2C EEPROM support. Use the generic eeprom

Re: [PATCH] arch: arm: rockchip: order the rk3399 entries alphabetically

2020-01-12 Thread Kever Yang
Hi Peter, On 2020/1/8 上午11:56, Peter Robinson wrote: Put the target entries for rk3399 devices in alphabetical order. Signed-off-by: Peter Robinson Reviewed-by: Kever Yang Thanks, - Kever --- arch/arm/mach-rockchip/rk3399/Kconfig | 22 +++--- 1 file changed, 11 insertion

Re: [PATCH 02/10] arm: mvebu: clearfog: enable both DDR clocks

2020-01-12 Thread Stefan Roese
On 25.11.19 11:30, Baruch Siach wrote: Enabled both DDR clock signals to support Clearfog variants (currently, Clearfog GTR) that need both clocks. Signed-off-by: Baruch Siach --- board/solidrun/clearfog/clearfog.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/board

Re: [PATCH 01/10] ddr: marvell: a38x: allow board specific clock out setup

2020-01-12 Thread Stefan Roese
On 25.11.19 11:30, Baruch Siach wrote: DDR clock out might be unrelated to the number of active chip-select. For example, the board might have two DDR components, but only one chip-select. The clk_enable mask allows the board to enable DDR clocks regardless of active chip-selects. Signed-off-by:

Re: How to debug HW startup?

2020-01-12 Thread Stefan Roese
Hi Mauro, On 11.01.20 20:00, Mauro Condarelli wrote: I managed to find ONE of the reasons why my ROM build didn't run: I forgot to enable `CONFIG_BOARD_EARLY_INIT_F=y`. I see. This explains of course, why your board does not boot without any "preloader". I wanted, nonetheless, be prepared fo

Re: [PATCH 2/8] arm64: dts: Remove inconsistent use of 'arm, armv8' compatible string

2020-01-12 Thread Michal Simek
On 10. 01. 20 16:36, Masahiro Yamada wrote: > On Thu, Jan 9, 2020 at 11:19 PM Michal Simek wrote: >> >> From: Rob Herring >> >> The 'arm,armv8' compatible string is only for software models. It adds >> little value otherwise and is inconsistently used as a fallback on some >> platforms. Remove it

Re: [PATCH 10/10] arm: mvebu: clearfog: don't assume MMC booting

2020-01-12 Thread Stefan Roese
Hi Baruch, On 12.01.20 17:34, Baruch Siach wrote: Hi Joel, On Sun, Jan 12 2020, Joel Johnson wrote: On 2020-01-12 03:49, Baruch Siach wrote: On Sat, Jan 11 2020, Joel Johnson wrote: +config SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR + hex "Address on the MMC to load U-Boot from" + default

[PATCH v2 8/9] configs: j721e_evm_r5: Add configs for environment in eMMC

2020-01-12 Thread Keerthy
From: Faiz Abbas Add config to save and read back environment from eMMC. Signed-off-by: Faiz Abbas Signed-off-by: Keerthy --- configs/j721e_evm_a72_defconfig | 3 +++ configs/j721e_evm_r5_defconfig | 2 ++ include/configs/j721e_evm.h | 6 ++ 3 files changed, 11 insertions(+) diff --

[PATCH v2 7/9] include: configs: j721e_evm: Add env variables for mcu_r5fss0_core0 & main_r5fss0_core0

2020-01-12 Thread Keerthy
Add env variables for mcu_r5fss0_core0 & main_r5fss0_core0 firmware loadaddr and name. Signed-off-by: Keerthy --- include/configs/j721e_evm.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h index 84518786c7..d3a9330069 100644 ---

[PATCH v2 9/9] configs: j721e_evm_r5: Enable R5F remoteproc support

2020-01-12 Thread Keerthy
Enable r5f remoteproc support in r5 defconfig so that r5s can be started in spl. Signed-off-by: Keerthy Signed-off-by: Lokesh Vutla --- configs/j721e_evm_r5_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/j721e_evm_r5_defconfig b/configs/j721e_evm_r5_defconfig index c92b

[PATCH v2 5/9] arm: dts: k3-j721e-r5: Add fs_loader node

2020-01-12 Thread Keerthy
Add fs_loader node which will be needed for loading firmwares from the boot media/filesystem. Signed-off-by: Keerthy Signed-off-by: Lokesh Vutla --- arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/dts/k3-j721e-r5-common-proc-boar

[PATCH v2 6/9] arm: dts: k3-j721e-r5: Enable r5fss0 cluster in SPL

2020-01-12 Thread Keerthy
Enable MAIN domain r5fss0 cluster and its core0 in R5 spl. Signed-off-by: Keerthy Signed-off-by: Lokesh Vutla --- arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/dts/k3-j721e-r5-common-proc-board.dts b/arch/arm/dts/k3-

[PATCH v2 2/9] arm: k3: Add support for loading non linux remote cores

2020-01-12 Thread Keerthy
Add MAIN domain R5FSS0 remoteproc support from spl. This enables loading the elf firmware in SPL and starting the remotecore. In order to start the core, there should be a file with path "/lib/firmware/j7-main-r5f0_0-fw" under filesystem of respective boot mode. Signed-off-by: Keerthy Signed-off

[PATCH v2 4/9] armv7R: K3: Add support for jumping to firmware

2020-01-12 Thread Keerthy
MCU Domain rf50 is currently shutting down after loading the ATF. Load elf firmware and jump to firmware post loading ATF. ROM doesn't enable ATCM memory, so make sure that firmware that is being loaded doesn't use ATCM memory or override SPL. Signed-off-by: Keerthy Signed-off-by: Lokesh Vutla

[PATCH v2 3/9] armv7R: K3: r5_mpu: Enable execute permission for MCU0 BTCM

2020-01-12 Thread Keerthy
Enable execute permission for mcu_r5fss0_core0 BTCM so that we can jump to a firmware directly from SPL. Signed-off-by: Keerthy --- arch/arm/mach-k3/r5_mpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-k3/r5_mpu.c b/arch/arm/mach-k3/r5_mpu.c index ee076ed

[PATCH v2 0/9]k3: Add support for loading main_r5fss0_core0

2020-01-12 Thread Keerthy
This patch series enables mcu_r5fss0_core0 & main_r5fss0_core0. Tested for firmware loading and execution on J721e. Changes in v2: * Factored out all the generic elf handling functions under lib/elf.c Faiz Abbas (1): configs: j721e_evm_r5: Add configs for environment in eMMC Keerthy (8):

[PATCH v2 1/9] lib: elf: Move the generic elf loading/validating functions to lib

2020-01-12 Thread Keerthy
Move the generic elf loading/validating functions to lib/ so that they can be re-used and accessed by code existing outside cmd. Signed-off-by: Keerthy Suggested-by: Simon Goldschmidt --- Changes in v2: * Factored out all the generic elf handling functions under lib/elf.c cmd/Kconfig |

Re: [PATCH 29/33] dm: core: Require users of devres to include the header

2020-01-12 Thread Anatolij Gustschin
On Sun, 12 Jan 2020 12:06:20 -0700 Simon Glass s...@chromium.org wrote: > At present devres.h is included in all files that include dm.h but few > make use of it. Also this pulls in linux/compat which adds several more > headers. Drop the automatic inclusion and require files to include devres > t

Re: [PATCH] env: another attempt at fixing SPL build failures

2020-01-12 Thread Rasmus Villemoes
On 11/01/2020 23.44, Rasmus Villemoes wrote: > On 10/01/2020 15.34, Tom Rini wrote: >> On Fri, Jan 10, 2020 at 02:28:54PM +, Rasmus Villemoes wrote: >>> On 15/12/2019 23.29, Rasmus Villemoes wrote: I'm also seeing the build failure that commit 7d4776545b env: solve compilation er

Re: [PATCH 28/33] sandbox: Support changing the LCD colour depth

2020-01-12 Thread Anatolij Gustschin
On Sun, 12 Jan 2020 12:06:19 -0700 Simon Glass s...@chromium.org wrote: > Add a new device-tree property to control the colour depth. At present we > support 16bpp and 32bpp. > > While we are here, update the code to use livetree. > > Signed-off-by: Simon Glass Reviewed-by: Anatolij Gustschin

Re: [PATCH 27/33] sandbox: sdl: Add an option to double the screen size

2020-01-12 Thread Anatolij Gustschin
On Sun, 12 Jan 2020 12:06:18 -0700 Simon Glass s...@chromium.org wrote: > On high-DPI displays U-Boot's LCD window can look very small. Add a > -K flag to expand it to make things easier to read, while still using > the existing resolution internally. > > Signed-off-by: Simon Glass Reviewed-by:

Re: [PATCH 05/33] power-domain: Rename free() to rfree()

2020-01-12 Thread Anatolij Gustschin
On Sun, 12 Jan 2020 12:05:56 -0700 Simon Glass s...@chromium.org wrote: > This function name conflicts with our desire to #define free() to > something else on sandbox. Since it deals with resources, rename it to > rfree(). > > Signed-off-by: Simon Glass Reviewed-by: Anatolij Gustschin -- Ana

Re: [PATCH 03/33] video: sandbox: Enable all colour depths

2020-01-12 Thread Anatolij Gustschin
On Sun, 12 Jan 2020 12:05:54 -0700 Simon Glass s...@chromium.org wrote: > For sandbox we want to have the maximum possible build coverage, so enable > all colour depths for video. > > Signed-off-by: Simon Glass Reviewed-by: Anatolij Gustschin -- Anatolij

Re: [PATCH 02/33] video: Support truetype fonts on a 32-bit display

2020-01-12 Thread Anatolij Gustschin
Hi Simon, On Sun, 12 Jan 2020 12:05:53 -0700 Simon Glass s...@chromium.org wrote: > At present only a 16bpp display is supported for Truetype fonts. Add > support for 32bpp also since this is quite common. > > Signed-off-by: Simon Glass Reviewed-by: Anatolij Gustschin -- Anatolij

Re: [PATCH] tools: ftdgrep: correct the find regions loop in do_fdtgrep

2020-01-12 Thread Anatolij Gustschin
Hi Patrick, On Fri, 10 Jan 2020 08:50:31 +0100 Patrick Delaunay patrick.delau...@st.com wrote: ... > diff --git a/tools/fdtgrep.c b/tools/fdtgrep.c > index 8f44f599c1..bcf06b871d 100644 > --- a/tools/fdtgrep.c > +++ b/tools/fdtgrep.c > @@ -823,8 +823,10 @@ static int do_fdtgrep(struct display_info

[PATCH 29/33] dm: core: Require users of devres to include the header

2020-01-12 Thread Simon Glass
At present devres.h is included in all files that include dm.h but few make use of it. Also this pulls in linux/compat which adds several more headers. Drop the automatic inclusion and require files to include devres themselves. This provides a good indication of which files use devres. Signed-off

[PATCH 00/33] sandbox: Move to SDL2

2020-01-12 Thread Simon Glass
This series handles moving sandbox to the latest version of SDL, SDL2. It provides a few more features, better performance and has been around for long enough that it is present in distributions in the last several years. Unfortunately it requires considerable rework of how memory allocation is ha

Re: [PATCH 2/2] fdtgrep: fix fdtgrep_find_regions() error with some device trees

2020-01-12 Thread Anatolij Gustschin
Hi Patrick, On Fri, 10 Jan 2020 07:58:41 + Patrick DELAUNAY patrick.delau...@st.com wrote: ... > I have locally a patch, but I don't yet upstream it > It is done today with: > "tools: ftdgrep: correct the find regions loop in do_fdtgrep" > http://patchwork.ozlabs.org/project/ub

[PATCH 32/33] sandbox: Complete migration away from os_malloc()

2020-01-12 Thread Simon Glass
Now that we can use direct access to the system malloc() in sandbox, drop the remaining uses of os_malloc(). The only one remaining now is for the RAM buffer, which we do want to be at a known adress, so this is intended. Signed-off-by: Simon Glass --- drivers/misc/cros_ec_sandbox.c | 8 --

[PATCH 27/33] sandbox: sdl: Add an option to double the screen size

2020-01-12 Thread Simon Glass
On high-DPI displays U-Boot's LCD window can look very small. Add a -K flag to expand it to make things easier to read, while still using the existing resolution internally. Signed-off-by: Simon Glass --- arch/sandbox/cpu/sdl.c | 17 +++-- arch/sandbox/cpu/start.c

[PATCH 31/33] dm: core: Drop the inclusion of linux/compat.h in dm.h

2020-01-12 Thread Simon Glass
Most files don't need this header and it pulls in quite of lots of stuff, malloc() in particular. Drop it. Signed-off-by: Simon Glass --- board/hisilicon/poplar/poplar.c | 2 +- include/dm/device.h | 1 - include/linux/compat.h | 3 +++ include/phy.h | 1 +

[PATCH 28/33] sandbox: Support changing the LCD colour depth

2020-01-12 Thread Simon Glass
Add a new device-tree property to control the colour depth. At present we support 16bpp and 32bpp. While we are here, update the code to use livetree. Signed-off-by: Simon Glass --- arch/sandbox/dts/sandbox.dtsi | 1 + doc/device-tree-bindings/video/sandbox-fb.txt | 6 +- d

[PATCH 26/33] sandbox: sdl: Move to use SDL2

2020-01-12 Thread Simon Glass
Sandbox currently uses SDL1.2. SDL2 has been around for quite a while and is widely supported. It has a number of useful features. It seems appropriate to move sandbox over. Update the code to use SDL2 instead of SDL1.2. Signed-off-by: Simon Glass --- .travis.yml| 2 +- arch/sand

[PATCH 25/33] gitlab: Disable SDL when building sandbox

2020-01-12 Thread Simon Glass
I am not sure how to add libsdl2-dev to the gitlab image, so disable building sandbox with SDL for now. Signed-off-by: Simon Glass --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d799cc30a8..5fb2113987 100644 ---

[PATCH 19/33] sandbox: Add a new header for the system malloc()

2020-01-12 Thread Simon Glass
Some files use U-Boot headers but still need to access the system malloc(). Allow this by creating a new asm/malloc.h which can be used so long as U-Boot's malloc.h has not been included. Signed-off-by: Simon Glass --- arch/sandbox/cpu/start.c | 6 +++--- arch/sandbox/cpu/state.c

[PATCH 24/33] sandbox: sdl: Support waiting for audio to complete

2020-01-12 Thread Simon Glass
At present when audio stops, any in-progress output is cut off. Fix this by waiting for output to finish. Also use booleans for the boolean variables. Signed-off-by: Simon Glass --- arch/sandbox/cpu/sdl.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/arch

[PATCH 20/33] sound: Add a new stop_play() method

2020-01-12 Thread Simon Glass
At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is d

[PATCH 22/33] sandbox: Add comments to the sdl struct

2020-01-12 Thread Simon Glass
Add comments for each struct member. Drop frequency since it is not used. Signed-off-by: Simon Glass --- arch/sandbox/cpu/sdl.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/arch/sandbox/cpu/sdl.c b/arch/sandbox/cpu/sdl.c index 080c7c8d74..dad059f257 1006

[PATCH 18/33] sandbox: Ensure that long-options array is terminated

2020-01-12 Thread Simon Glass
The last member of this array is supposed to be all zeroes according to the getopt_long() man page. Fix the function to do this. Signed-off-by: Simon Glass --- arch/sandbox/cpu/os.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/sandbox/cpu/os.c b/arch/sandbox/cpu/os

[PATCH 21/33] sandbox: sound: Handle errors better in sound_beep()

2020-01-12 Thread Simon Glass
At present an error does not stop the sound-output loop. This is incorrect since nothing can be gained by trying to continue. Fix it. Signed-off-by: Simon Glass --- drivers/sound/sound-uclass.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/sound/sound-uclass.c

[PATCH 23/33] sandbox: sdl: Improve error handling

2020-01-12 Thread Simon Glass
A few errors are not checked. Fix these and use my preferred spelling for init. Signed-off-by: Simon Glass --- arch/sandbox/cpu/sdl.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/arch/sandbox/cpu/sdl.c b/arch/sandbox/cpu/sdl.c index dad059f257..ee62da265b 1

[PATCH 13/33] exports: Add the malloc.h header

2020-01-12 Thread Simon Glass
This file should include the malloc.h header since it references malloc(). Fix it. Signed-off-by: Simon Glass --- common/exports.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/exports.c b/common/exports.c index b4f1f7af15..18af38a5f6 100644 --- a/common/exports.c +++ b/common/expo

[PATCH 14/33] string: Allow arch override of strndup() also

2020-01-12 Thread Simon Glass
At present architectures can override strdup() but not strndup(). Use the same option for both. Signed-off-by: Simon Glass --- include/linux/string.h | 2 +- lib/string.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/string.h b/include/linux/stri

[PATCH 16/33] sandbox: Drop use of special os_malloc() where possible

2020-01-12 Thread Simon Glass
Some sandbox files are not built with U-Boot headers, so with the renamed malloc functions there is now no need to use the special os_... allocation functions to access the system routines. Instead we can just call them directly. Update the affected files accordingly. Signed-off-by: Simon Glass

[PATCH 15/33] sandbox: Rename strdup() functions

2020-01-12 Thread Simon Glass
These functions include calls to a memory-allocation routine and so need to use the system routine when called from a library. To preserve access to these functions for libraries that need it, such as SDL, rename these functions within U-Boot. Signed-off-by: Simon Glass --- include/linux/strin

[PATCH 17/33] sandbox: Drop os_realloc()

2020-01-12 Thread Simon Glass
Due to recent changes this function is no-longer used. Drop it. Signed-off-by: Simon Glass --- arch/sandbox/cpu/os.c | 23 --- include/os.h | 22 +- 2 files changed, 1 insertion(+), 44 deletions(-) diff --git a/arch/sandbox/cpu/os.c b/arch/sandb

[PATCH 12/33] sandbox: Use a prefix for all allocation functions

2020-01-12 Thread Simon Glass
In order to allow use of both U-Boot's malloc() and the C library's version, set a prefix for the allocation functions so that they can co-exist. This is only done for sandbox. For other archs everything remains the same. Signed-off-by: Simon Glass --- include/malloc.h | 24 +++

[PATCH 10/33] mtd: Rename free() to rfree()

2020-01-12 Thread Simon Glass
This function name conflicts with our desire to #define free() to something else on sandbox. Since it deals with resources, rename it to rfree(). Signed-off-by: Simon Glass --- drivers/mtd/mtdcore.c | 4 ++-- drivers/mtd/nand/raw/denali.c | 2 +- drivers/mtd/nand/spi/core.c

[PATCH 09/33] dma: Rename free() to rfree()

2020-01-12 Thread Simon Glass
This function name conflicts with our desire to #define free() to something else on sandbox. Since it deals with resources, rename it to rfree(). Signed-off-by: Simon Glass --- drivers/dma/dma-uclass.c | 4 ++-- drivers/dma/sandbox-dma-test.c | 2 +- drivers/dma/ti/k3-udma.c | 2 +-

[PATCH 11/33] sandbox: Rename 'free' variable

2020-01-12 Thread Simon Glass
This name conflicts with our desire to #define free() to something else on sandbox. Rename it. Signed-off-by: Simon Glass --- arch/sandbox/cpu/state.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/sandbox/cpu/state.c b/arch/sandbox/cpu/state.c index cd46e000f5..

[PATCH 08/33] clk: Rename free() to rfree()

2020-01-12 Thread Simon Glass
This function name conflicts with our desire to #define free() to something else on sandbox. Since it deals with resources, rename it to rfree(). Signed-off-by: Simon Glass --- drivers/clk/clk-ti-sci.c | 2 +- drivers/clk/clk-uclass.c | 4 ++-- drivers/clk/clk_sandbox.c

[PATCH 07/33] gpio: Rename free() to rfree()

2020-01-12 Thread Simon Glass
This function name conflicts with our desire to #define free() to something else on sandbox. Since it deals with resources, rename it to rfree(). Signed-off-by: Simon Glass --- drivers/gpio/gpio-rcar.c | 2 +- drivers/gpio/gpio-uclass.c | 4 ++-- include/asm-generic/gpio.h | 2 +- 3 files cha

[PATCH 04/33] mailbox: Rename free() to rfree()

2020-01-12 Thread Simon Glass
This function name conflicts with our desire to #define free() to something else on sandbox. Since it deals with resources, rename it to rfree(). Signed-off-by: Simon Glass --- drivers/mailbox/k3-sec-proxy.c | 2 +- drivers/mailbox/mailbox-uclass.c | 4 ++-- drivers/mailbox/sandbox-mbox.c |

[PATCH 05/33] power-domain: Rename free() to rfree()

2020-01-12 Thread Simon Glass
This function name conflicts with our desire to #define free() to something else on sandbox. Since it deals with resources, rename it to rfree(). Signed-off-by: Simon Glass --- drivers/power/domain/bcm6328-power-domain.c | 2 +- drivers/power/domain/imx8-power-domain-legacy.c | 2 +- driver

[PATCH 03/33] video: sandbox: Enable all colour depths

2020-01-12 Thread Simon Glass
For sandbox we want to have the maximum possible build coverage, so enable all colour depths for video. Signed-off-by: Simon Glass --- configs/sandbox64_defconfig| 1 - configs/sandbox_defconfig | 1 - configs/sandbox_flattree_defconfig | 1 - configs/sandbox_spl_defconfig

[PATCH 02/33] video: Support truetype fonts on a 32-bit display

2020-01-12 Thread Simon Glass
At present only a 16bpp display is supported for Truetype fonts. Add support for 32bpp also since this is quite common. Signed-off-by: Simon Glass --- drivers/video/console_truetype.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/video/console_truetype.c b/d

[PATCH 06/33] reset: Rename free() to rfree()

2020-01-12 Thread Simon Glass
This function name conflicts with our desire to #define free() to something else on sandbox. Since it deals with resources, rename it to rfree(). Signed-off-by: Simon Glass --- drivers/reset/reset-bcm6345.c | 2 +- drivers/reset/reset-hisilicon.c | 2 +- drivers/reset/reset-hsdk.c | 2 +-

[PATCH 01/33] sandbox: Sort the help options

2020-01-12 Thread Simon Glass
At present options are presented in essentially random order. It is easier to browse them if they are sorted into alphabetical order. Adjust the help function to handle this. Signed-off-by: Simon Glass --- arch/sandbox/cpu/start.c | 46 +++- 1 file changed, 4

Re: [PATCH 06/10] arm: mvebu: clearfog: Add config for 2GB SOM

2020-01-12 Thread Baruch Siach
Hi Joel, On Sun, Jan 12 2020, Joel Johnson wrote: > On 2020-01-12 03:33, Baruch Siach wrote: >> On Sat, Jan 11 2020, Joel Johnson wrote: >>> While 1GB SOM parts are much more common, provide a build config >>> option for supporting parts with 2GB. >>> >>> Signed-off-by: Joel Johnson >>> --- >>> >

Re: [PATCH 10/10] arm: mvebu: clearfog: don't assume MMC booting

2020-01-12 Thread Baruch Siach
Hi Joel, On Sun, Jan 12 2020, Joel Johnson wrote: > On 2020-01-12 03:49, Baruch Siach wrote: >> On Sat, Jan 11 2020, Joel Johnson wrote: >>> +config SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR >>> + hex "Address on the MMC to load U-Boot from" >>> + default 0x141 >>> + depends on MVEBU_SPL_BOOT_DEVICE_

[PATCH 0/2] cli: allow verbatim character entry with CTRL-v

2020-01-12 Thread Heinrich Schuchardt
Up to now the U-Boot console does not allow to add a control character to the line buffer. In Bash and Vim we can use CTRL-v for this purpose. Add support for CTRL-v for verbatim entry of characters. Heinrich Schuchardt (2): cli: allow verbatim character entry with CTRL-v test: verbatim chara

[PATCH 2/2] test: verbatim character entry with CTRL-V

2020-01-12 Thread Heinrich Schuchardt
Provide a unit test checking that CTRL-V can be used to add control characters to the line buffer. Signed-off-by: Heinrich Schuchardt --- test/dm/Makefile | 2 +- test/dm/usb_console.c | 150 ++ 2 files changed, 151 insertions(+), 1 deletion(-) cre

[PATCH 1/2] cli: allow verbatim character entry with CTRL-v

2020-01-12 Thread Heinrich Schuchardt
Up to now the U-Boot console does not allow to add a control character to the line buffer. In Bash and Vim we can use CTRL-v for this purpose. Add support for CTRL-v for verbatim entry of characters. To keep things simple, while editing control characters are displayed as simple characters, e.g.

Re: [PATCH 07/10] arm: mvebu: clearfog: add SPI offsets

2020-01-12 Thread Baruch Siach
Hi Joel, On Sun, Jan 12 2020, Joel Johnson wrote: > On 2020-01-12 03:42, Baruch Siach wrote: >> Hi Joel, >> >> On Sat, Jan 11 2020, Joel Johnson wrote: >> >>> Add reasonable default SPI offsets and ENV size when configured to >>> boot from SPI flash. >>> >>> Signed-off-by: Joel Johnson >>> --- >>

Re: [PATCH v2 2/2] tbs2910: add custom CONFIG_OF_REMOVE_PROPS list to defconfig

2020-01-12 Thread Soeren Moch
On 12.01.20 15:57, Anatolij Gustschin wrote: > This shrinks the image size: all -3840.0 text -3840.0 > > Signed-off-by: Anatolij Gustschin Acked-by: Soeren Moch > --- > Changes in v2: > - add CONFIG_OF_DTB_PROPS_REMOVE=y > - update commit description > - gitlab CI results: >https://gitlab.

Re: [PATCH 06/10] arm: mvebu: clearfog: Add config for 2GB SOM

2020-01-12 Thread Joel Johnson
On 2020-01-12 03:33, Baruch Siach wrote: Hi Joel, On Sat, Jan 11 2020, Joel Johnson wrote: While 1GB SOM parts are much more common, provide a build config option for supporting parts with 2GB. Signed-off-by: Joel Johnson --- board/solidrun/clearfog/Kconfig| 6 ++ board/solidrun/cle

Re: [PATCH 10/10] arm: mvebu: clearfog: don't assume MMC booting

2020-01-12 Thread Joel Johnson
On 2020-01-12 03:49, Baruch Siach wrote: Hi Joel, On Sat, Jan 11 2020, Joel Johnson wrote: Remove MMC booting assumptions from clearfog_defconfig. Their presence in starting config files conflicts with default ENV_IS_IN selection logic based on boot source, since the "select" option can't dist

[PATCH 1/3] sunxi: H3/H5 Sync DT files from upstream Linux kernel as of next-20200108

2020-01-12 Thread Chen-Yu Tsai
From: Chen-Yu Tsai Sync the device tree files and device tree header files from upstream Linux kernel, as of 2020-01-08. The commit synced to in the sunxi repo 98d25b0b266d Merge branch 'sunxi/dt-for-5.6' into sunxi/for-next which is also part of next-20200108. Changes brought in include:

[PATCH 2/3] sunxi: Add Libre Computer ALL-H3-IT H5 board

2020-01-12 Thread Chen-Yu Tsai
From: Chen-Yu Tsai The Libre Computer ALL-H3-IT board is a small single board computer that is roughly the same size as the Raspberry Pi Zero, or around 20% smaller than a credit card. The board features: - H2, H3, or H5 SoC from Allwinner - 2 DDR3 DRAM chips - Realtek RTL8821CU based WiF

[PATCH 3/3] sunxi: Add Libre Computer ALL-H5-CC H5 board

2020-01-12 Thread Chen-Yu Tsai
From: Chen-Yu Tsai The Libre Computer ALL-H5-CC board is an upgraded version of the ALL-H3-CC. Changes include: - Gigabit Ethernet via external RTL8211E Ethernet PHY - 16 MiB SPI NOR flash memory - PoE tap header - Line out jack removed Only H5 variant test samples were made available,

[PATCH 0/3] sunxi: Sync H3/H5 DT and add ALL-H3-IT and ALL-H5-CC

2020-01-12 Thread Chen-Yu Tsai
From: Chen-Yu Tsai Hi everyone, This patch series syncs up the device tree files and header files for Allwinner H3/H5 SoCs and related boards to linux-next-20200108, and then adds support for Libre Computer ALL-H3-IT H5 and ALL-H5-CC H5 boards. Patch 1 syncs up the device tree files and related

Re: [PATCH 07/10] arm: mvebu: clearfog: add SPI offsets

2020-01-12 Thread Joel Johnson
On 2020-01-12 03:42, Baruch Siach wrote: Hi Joel, On Sat, Jan 11 2020, Joel Johnson wrote: Add reasonable default SPI offsets and ENV size when configured to boot from SPI flash. Signed-off-by: Joel Johnson --- board/solidrun/clearfog/Kconfig | 12 1 file changed, 12 insertion

Re: [PATCH 03/10] arm: mvebu: clearfog: initial ClearFog Base variant

2020-01-12 Thread Joel Johnson
On January 12, 2020 10:14:35 AM UTC, Baruch Siach wrote: >Hi Joel, > >Thanks for working on Clearfog hardware support improvements. Sure - I finally just got tired of not being able to easily use mainline builds, sat down and figured out the gaps and missing dependencies in order to support

Re: [PATCH 05/10] arm: mvebu: clearfog: Add option for 2.5 Gbps SFP

2020-01-12 Thread Joel Johnson
On January 12, 2020 10:21:05 AM UTC, Baruch Siach wrote: >Hi Joel, > >On Sat, Jan 11 2020, Joel Johnson wrote: >> Signed-off-by: Joel Johnson >> --- >> >> board/solidrun/clearfog/Kconfig| 7 +++ >> board/solidrun/clearfog/clearfog.c | 4 >> 2 files changed, 11 insertions(+) >> >>

[PATCH v2 1/2] dts: add property removal option CONFIG_OF_REMOVE_PROPS

2020-01-12 Thread Anatolij Gustschin
This can be used for device tree size reduction similar as CONFIG_OF_SPL_REMOVE_PROPS option. Some boards must pass the built-in DTB unchanged to the kernel, thus we may not cut it down unconditionally. Therefore enable the property removal list option only if CONFIG_OF_DTB_PROPS_REMOVE is selected

[PATCH v2 2/2] tbs2910: add custom CONFIG_OF_REMOVE_PROPS list to defconfig

2020-01-12 Thread Anatolij Gustschin
This shrinks the image size: all -3840.0 text -3840.0 Signed-off-by: Anatolij Gustschin --- Changes in v2: - add CONFIG_OF_DTB_PROPS_REMOVE=y - update commit description - gitlab CI results: https://gitlab.denx.de/u-boot/custodians/u-boot-video/pipelines/1842 NOTE: building with this patch

Re: [PATCH 1/2] dts: add property removal option CONFIG_OF_REMOVE_PROPS

2020-01-12 Thread Anatolij Gustschin
On Sat, 11 Jan 2020 02:01:27 +0900 Masahiro Yamada masahi...@kernel.org wrote: ... > UPD include/generated/asm-offsets.h > SHIPPED scripts/dtc/pylibfdt/libfdt.i > /bin/sh: 1: ./tools/fdtgrep: not found > make[3]: *** [scripts/Makefile.lib:242: scripts/dtc/pylibfdt/libfdt.i] Error > 127 > m

Re: [PATCH 1/2] dts: add property removal option CONFIG_OF_REMOVE_PROPS

2020-01-12 Thread Anatolij Gustschin
On Fri, 10 Jan 2020 11:39:45 -0500 Tom Rini tr...@konsulko.com wrote: ... > > quiet_cmd_shipped = SHIPPED $@ > > -cmd_shipped = cat $< > $@ > > +cmd_shipped = cat $< | $(objtree)/tools/fdtgrep -r -O dtb - -o $@ \ > > + $(addprefix -P ,$(subst $\",,$(CONFIG_OF_REMOVE_PROPS))) > > > >

[PATCH V2] board: avnet: Add imx8mm sm2s SoM reference board

2020-01-12 Thread Michael Trimarchi
https://www.avnet.com/wps/portal/integrated/products/embedded-boards/smarc-modules/ - Single, Dual or Quad core ARM Cortex-A53 Applications Processor up to 1.8GHz - ARM Cortex-M4 Real Time Processor at 400MHz - Vivante GC NanoUltra 2D/3D Graphics Processor 1080p60 H.265 decode, 1080p60 H.264 enc

[PATCH 1/2] configs: omap3/35_logic and omap3/35_logic_somlv: Reduce SPL size

2020-01-12 Thread Adam Ford
Currently the DM37 and OMAP35 boards do not boot due to SPL bring too large. SPL doesn't need GPIO, I2C nor MMC sector access since it uses a FAT file system. This patch unifies all these boards to remove these unused features from their defconfigs Signed-off-by: Adam Ford diff --git a/configs

[PATCH 2/2] ARM: dts: omap3/omap35 Torpedo and SOM-LV: Unify and shrink SPL dtb

2020-01-12 Thread Adam Ford
None of these boards boot, but the solution appears to be the same. All the boards have SPL that is too large. With a few defconfig options removed, these corresponding options can be removed from their respective SPL dtb files. This patch unifies the DM37/OMAP35 boards' -u-boot.dtsi files to rem

Re: [PATCH 10/10] arm: mvebu: clearfog: don't assume MMC booting

2020-01-12 Thread Baruch Siach
Hi Joel, On Sat, Jan 11 2020, Joel Johnson wrote: > Remove MMC booting assumptions from clearfog_defconfig. Their > presence in starting config files conflicts with default ENV_IS_IN > selection logic based on boot source, since the "select" option > can't distinguish between user-overridden and

  1   2   >