[RFC PATCH 00/10] arm: add support for SoC S5P4418

2020-02-03 Thread Stefan Bosch
This patch adds support for SAMSUNG's/NEXELL's ARM Cortex-A9 based S5P4418 SoC, especially FriendlyARM's NanoPi2 and NanoPC-T2 boards. It is based on the following FriendlyARM's U-Boot version: https://github.com/friendlyarm/u-boot/tree/nanopi2-v2016.01. The added mach-nexell also supports the

[PATCH] mx6ulz_14x14_evk: Disable CONFIG_NET

2020-02-03 Thread Fabio Estevam
Currently the following build warning is seen: = WARNING == This board does not use CONFIG_DM_ETH (Driver Model for Ethernet drivers). Please update the board to use CONFIG_DM_ETH before the v2020.07 release. Failure to update by the deadline may result

Re: [PATCHv5 1/5] mmc: meson-gx: Fix clk phase tuning for MMC

2020-02-03 Thread Jerome Brunet
On Mon 03 Feb 2020 at 17:38, Anand Moon wrote: > Hi Jerome, > > Thanks for your review, > > On Mon, 3 Feb 2020 at 21:11, Jerome Brunet wrote: >> >> >> On Mon 03 Feb 2020 at 16:13, Anand Moon wrote: >> >> > As per mainline line kernel fix the clk tuning phase for mmc, >> > set Core=180,

[PATCH] mx6ullevk: Enable Ethernet support

2020-02-03 Thread Fabio Estevam
Add Ethernet support using DM_ETH. Signed-off-by: Fabio Estevam --- board/freescale/mx6ullevk/mx6ullevk.c | 47 +++ configs/mx6ull_14x14_evk_defconfig| 8 + include/configs/mx6ullevk.h | 9 + 3 files changed, 64 insertions(+) diff --git

Re: [PATCH] serial: ns16550: Correct NS16550_DYNAMIC for non-x86

2020-02-03 Thread Bin Meng
Hi Simon, On Tue, Feb 4, 2020 at 1:15 AM Simon Glass wrote: > > Hi Bin, > > On Mon, 3 Feb 2020 at 10:12, Bin Meng wrote: > > > > On Tue, Feb 4, 2020 at 1:04 AM Simon Glass wrote: > > > > > > There is currently no standard way to know which I/O functions an > > > architecture supports, so it is

Re: [PATCH v2] dm: uclass: don't assign aliased seq numbers

2020-02-03 Thread Michael Walle
Hi Simon, Am 2020-01-30 03:16, schrieb Simon Glass: Hi Michael, On Fri, 20 Dec 2019 at 06:29, Michael Walle wrote: If there are aliases for an uclass, set the base for the "dynamically" allocated numbers next to the highest alias. Please note, that this might lead to holes in the

Re: [PATCH] serial: ns16550: Correct NS16550_DYNAMIC for non-x86

2020-02-03 Thread Simon Glass
Hi Bin, On Mon, 3 Feb 2020 at 10:12, Bin Meng wrote: > > On Tue, Feb 4, 2020 at 1:04 AM Simon Glass wrote: > > > > There is currently no standard way to know which I/O functions an > > architecture supports, so it is not possible to have all options used in > > this driver. > > > > Move it to

Re: [PATCH 5/5] pci: Avoid auto-config when chain loading

2020-02-03 Thread Simon Glass
Hi Bin, On Mon, 3 Feb 2020 at 04:21, Bin Meng wrote: > > Hi Simon, > > On Sun, Dec 22, 2019 at 12:13 AM Simon Glass wrote: > > > > When U-Boot is not the first-stage bootloader we don't want to > > re-configure the PCI devices, since this has already been done. Add a > > check to avoid this. >

Re: [PATCH 1/5] x86: fsp: Allow skipping init code when chain loading

2020-02-03 Thread Simon Glass
Hi Bin, On Mon, 3 Feb 2020 at 10:10, Bin Meng wrote: > > Hi Simon, > > On Tue, Feb 4, 2020 at 12:20 AM Simon Glass wrote: > > > > Hi Bin, > > > > On Mon, 3 Feb 2020 at 04:05, Bin Meng wrote: > > > > > > Hi Simon, > > > > > > On Sun, Dec 22, 2019 at 12:13 AM Simon Glass wrote: > > > > > > > >

Re: [PATCH 4/5] dm: Avoid initing built-in devices when chain loading

2020-02-03 Thread Simon Glass
Hi Bin, On Mon, 3 Feb 2020 at 04:17, Bin Meng wrote: > > Hi Simon, > > On Sun, Dec 22, 2019 at 12:13 AM Simon Glass wrote: > > > > When U-Boot is not the first-stage bootloader we don't want to init > > devices early during boot. Add a check to avoid this. > > > > Signed-off-by: Simon Glass >

Re: [PATCH v2 2/2] gpio: search for gpio label if gpio is not found through bank name

2020-02-03 Thread Simon Glass
Hi Heiko, On Sun, 2 Feb 2020 at 22:26, Heiko Schocher wrote: > > Hello Simon, > > Am 03.02.2020 um 01:04 schrieb Simon Glass: > > On Sat, 1 Feb 2020 at 01:03, Heiko Schocher wrote: > >> > >> dm_gpio_lookup_name() searches for a gpio through > >> the bank name. But we have also gpio labels, and

Re: [PATCH 3/5] x86: cpu: Skip init code when chain loading

2020-02-03 Thread Simon Glass
Hi Bin, On Mon, 3 Feb 2020 at 04:11, Bin Meng wrote: > > Hi Simon, > > On Sun, Dec 22, 2019 at 12:13 AM Simon Glass wrote: > > > > When U-Boot is not the first-stage bootloader the interrupt and cache init > > must be skipped, as well as init for various peripherals. Update the code > > to add

Re: [RFC 1/2] hack to boot with 2020.01

2020-02-03 Thread Simon Glass
Hi Oliver, On Mon, 3 Feb 2020 at 06:59, Oliver Graute wrote: > > As proposed here: > > https://lists.denx.de/pipermail/u-boot/2020-January/396749.html > > Both of my imx8qm boards (Advantech and Congatec) aren't booting > 2020.01 without this change. Whats the proper way to fix this on my side?

Re: [PATCH] serial: ns16550: Correct NS16550_DYNAMIC for non-x86

2020-02-03 Thread Bin Meng
On Tue, Feb 4, 2020 at 1:04 AM Simon Glass wrote: > > There is currently no standard way to know which I/O functions an > architecture supports, so it is not possible to have all options used in > this driver. > > Move it to use #ifdef for now, to fix the build problem. > > Signed-off-by: Simon

[PATCH v3] dm: uclass: don't assign aliased seq numbers

2020-02-03 Thread Michael Walle
If there are aliases for an uclass, set the base for the "dynamically" allocated numbers next to the highest alias. Please note, that this might lead to holes in the sequences, depending on the device tree. For example if there is only an alias "ethernet1", the next device seq number would be 2.

Re: [PATCH 1/5] x86: fsp: Allow skipping init code when chain loading

2020-02-03 Thread Bin Meng
Hi Simon, On Tue, Feb 4, 2020 at 12:20 AM Simon Glass wrote: > > Hi Bin, > > On Mon, 3 Feb 2020 at 04:05, Bin Meng wrote: > > > > Hi Simon, > > > > On Sun, Dec 22, 2019 at 12:13 AM Simon Glass wrote: > > > > > > When U-Boot is no the first-stage bootloader much of this code is not > > > needed

Re: [PATCH v2 08/13] dm: irq: Add support for requesting interrupts

2020-02-03 Thread Bin Meng
Hi Simon, On Sun, Dec 22, 2019 at 2:16 AM Simon Glass wrote: > > At present driver model supports the IRQ uclass but there is no way to > request a particular interrupt for a driver. > > Add a mechanism, similar to clock and reset, to read the interrupts > required by a device from the device

[PATCH] serial: ns16550: Correct NS16550_DYNAMIC for non-x86

2020-02-03 Thread Simon Glass
There is currently no standard way to know which I/O functions an architecture supports, so it is not possible to have all options used in this driver. Move it to use #ifdef for now, to fix the build problem. Signed-off-by: Simon Glass --- drivers/serial/ns16550.c | 20 1

Re: [PATCHv5 1/5] mmc: meson-gx: Fix clk phase tuning for MMC

2020-02-03 Thread Anand Moon
Hi Jerome, Thanks for your review, On Mon, 3 Feb 2020 at 21:11, Jerome Brunet wrote: > > > On Mon 03 Feb 2020 at 16:13, Anand Moon wrote: > > > As per mainline line kernel fix the clk tuning phase for mmc, > > set Core=180, Tx=180, Rx=0 clk phase for mmc initialization. > > As per S905, S905X,

Re: [PATCH 1/5] x86: fsp: Allow skipping init code when chain loading

2020-02-03 Thread Simon Glass
Hi Bin, On Mon, 3 Feb 2020 at 04:05, Bin Meng wrote: > > Hi Simon, > > On Sun, Dec 22, 2019 at 12:13 AM Simon Glass wrote: > > > > When U-Boot is no the first-stage bootloader much of this code is not > > needed and can break booting. Add checks for this to the FSP code. > > > > Rather than

[PATCH 2/2] mx6ul_evk: Remove FEC related board code

2020-02-03 Thread Fabio Estevam
mx6ul_evk uses DM_ETH, so there is no need to have board code to setup the FEC IOMUX and to register the network ports via the old board_eth_init() method. Remove these FEC related pieces of code. Signed-off-by: Fabio Estevam --- .../mx6ul_14x14_evk/mx6ul_14x14_evk.c | 50

[PATCH 1/2] mx6ul_evk: Move CONFIG_FEC_MXC to defconfig

2020-02-03 Thread Fabio Estevam
CONFIG_FEC_MXC is supported in Kconfig, so it is preferred to move it to defconfig file. Signed-off-by: Fabio Estevam --- configs/mx6ul_14x14_evk_defconfig | 1 + include/configs/mx6ul_14x14_evk.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [gitlab-ci-runner PATCH] Dockerfile: Add libsdl2-dev

2020-02-03 Thread Bin Meng
On Mon, Feb 3, 2020 at 11:29 PM Simon Glass wrote: > > We are planning to move sandbox from SDL1.2 to SDL2, so add this library > to the docker image. > > Signed-off-by: Simon Glass > --- > > Dockerfile | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Dockerfile b/Dockerfile > index

Re: [PATCHv5 1/5] mmc: meson-gx: Fix clk phase tuning for MMC

2020-02-03 Thread Jerome Brunet
On Mon 03 Feb 2020 at 16:13, Anand Moon wrote: > As per mainline line kernel fix the clk tuning phase for mmc, > set Core=180, Tx=180, Rx=0 clk phase for mmc initialization. > As per S905, S905X, AGX and S922X datasheet set the default > values for clk tuning. > > Signed-off-by: Anand Moon >

Re: [PATCH v1] imx: set CONFIG_FEC_MXC_PHYADDR to -1

2020-02-03 Thread Oliver Graute
On 03/02/20, Fabio Estevam wrote: > On Fri, Jan 31, 2020 at 10:56 AM Oliver Graute > wrote: > > > > This fix the following issue on the imx8qm_rom7720 board: > > > > Booting from net ... > > Could not get PHY for FEC0: addr 0 > > Could not get PHY for FEC0: addr 0 > > Could not get PHY for FEC0:

Re: [PATCH v1] imx: set CONFIG_FEC_MXC_PHYADDR to -1

2020-02-03 Thread Fabio Estevam
On Mon, Feb 3, 2020 at 12:33 PM Oliver Graute wrote: > Yes, but phy addr 0 is currently not working that way for me. So I tried > to solve it by autodetecting the phy. Please see this thread: Looking at your other patch, it looks like you have: + ethphy0: ethernet-phy@0 { +

Re: [PATCH 2/4] arm: Move asm/utils.h to log2.h

2020-02-03 Thread Simon Glass
Hi Sean, On Mon, 3 Feb 2020 at 08:27, Sean Anderson wrote: > > On 2/3/20 10:11 AM, Simon Glass wrote: > > Hi Marek, > > > > On Mon, 3 Feb 2020 at 01:28, Marek Vasut wrote: > >> How could this be reviewed if it's missing basic things, like a SoB line ? > > I added that in a reply to the original

[gitlab-ci-runner PATCH] Dockerfile: Add libsdl2-dev

2020-02-03 Thread Simon Glass
We are planning to move sandbox from SDL1.2 to SDL2, so add this library to the docker image. Signed-off-by: Simon Glass --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 879e796..d4c37a3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -59,6 +59,7 @@

Re: [PATCH 2/4] arm: Move asm/utils.h to log2.h

2020-02-03 Thread Sean Anderson
On 2/3/20 10:11 AM, Simon Glass wrote: > Hi Marek, > > On Mon, 3 Feb 2020 at 01:28, Marek Vasut wrote: >> How could this be reviewed if it's missing basic things, like a SoB line ? I added that in a reply to the original patch; again my apologies for missing it the first time around. > > I

Re: U-Boot Logo showing incorrect colors with eLCDIF

2020-02-03 Thread Fabio Estevam
Hi Anatolij, On Sat, Jan 25, 2020 at 3:36 PM Anatolij Gustschin wrote: > Before DM_VIDEO conversion cfb_console driver was used and > it supports such rendering. I'm working on a fix for this. > Thanks for testing! Have you been able to fix this? Thanks

[PATCHv5 4/5] arm: dts: g12: Move common nodes to the -u-boot.dtsi

2020-02-03 Thread Anand Moon
Move u-boot specific common nodes in the dts files to meson-g12-common-u-boot.dtsi. This allows us to keep the basic dts[i] files up-to-date with the ones in kernel, but at the same time allowing the u-boot to add its own properties to the existing nodes. Also add missing mmc alias to dts nodes to

[PATCHv5 5/5] arm: dts: s400: Move common nodes to the -u-boot.dtsi

2020-02-03 Thread Anand Moon
Move u-boot specific common nodes in the dts files to meson-axg-s400-u-boot.dtsi. This allows us to keep the basic dts[i] files up-to-date with the ones in kernel, but at the same time allowing the u-boot to add its own properties to the existing nodes. Also add missing mmc alias to dts nodes to

[PATCHv5 3/5] arm: dts: gx: Move common nodes to the -u-boot.dtsi

2020-02-03 Thread Anand Moon
Move u-boot specific common nodes in the dts files to meson-gx-u-boot.dtsi. This allows us to keep the basic dts[i] files up-to-date with the ones in kernel, but at the same time allowing the u-boot to add its own properties to the existing nodes. Also add missing mmc alias to dts nodes to avoid

[PATCHv5 0/5]Odroid n2 using eMMC would fail to boot up

2020-02-03 Thread Anand Moon
Here are some small changes to fix booting of Odroid N2 using eMMC. Fixed the clk tunnig during mmc initialization. Added two new patches to fix warning Build and tested on top of below patches [0] https://patchwork.ozlabs.org/patch/1213648/ [1] https://patchwork.ozlabs.org/patch/1213650/ Tested

[PATCHv5 2/5] mmc: meson-gx: Use proper compatible string as per the dts

2020-02-03 Thread Anand Moon
Use proper compatible string as per the dts so that mmc driver could be tuned properly. SoC family S905, S905X have common clk tuning parameters setting, while AGX and G12 have common clk tuning parameters setting for mmc driver. Suggested-by: Neil Armstrong Signed-off-by: Anand Moon --- New

[PATCHv5 1/5] mmc: meson-gx: Fix clk phase tuning for MMC

2020-02-03 Thread Anand Moon
As per mainline line kernel fix the clk tuning phase for mmc, set Core=180, Tx=180, Rx=0 clk phase for mmc initialization. As per S905, S905X, AGX and S922X datasheet set the default values for clk tuning. Signed-off-by: Anand Moon --- arch/arm/include/asm/arch-meson/sd_emmc.h | 28

Re: [PATCH v1] imx: set CONFIG_FEC_MXC_PHYADDR to -1

2020-02-03 Thread Fabio Estevam
On Fri, Jan 31, 2020 at 10:56 AM Oliver Graute wrote: > > This fix the following issue on the imx8qm_rom7720 board: > > Booting from net ... > Could not get PHY for FEC0: addr 0 > Could not get PHY for FEC0: addr 0 > Could not get PHY for FEC0: addr 0 > Could not get PHY for FEC0: addr 0 > Can't

Re: [PATCH 2/4] arm: Move asm/utils.h to log2.h

2020-02-03 Thread Simon Glass
Hi Marek, On Mon, 3 Feb 2020 at 01:28, Marek Vasut wrote: > > On 2/3/20 1:04 AM, Simon Glass wrote: > > On Sun, 2 Feb 2020 at 10:12, Sean Anderson wrote: > >> > >> This header is needed outside of the arm architecture by the designware wdt > >> driver. > >> --- > >>

Re: [PATCH 4/4] rockchip: Enable HDMI output on rk3399 board w/ HDMI

2020-02-03 Thread Tom Rini
On Mon, Feb 03, 2020 at 04:55:27PM +0530, Jagan Teki wrote: > On Fri, Jan 24, 2020 at 8:57 PM Tom Rini wrote: > > > > On Thu, Jan 23, 2020 at 09:58:45PM +0530, Jagan Teki wrote: > > > > > Enable config options and console setting to respective > > > rk3399 board for HDMI output. > > > > > >

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

2020-02-03 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 --- Changes in v2: None board/hisilicon/poplar/poplar.c | 2 +- drivers/ram/imxrt_sdram.c | 1 + include/dm/device.h | 1 -

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

2020-02-03 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.

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

2020-02-03 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 address, so this is intended. Signed-off-by: Simon Glass --- Changes in v2: - Fix 'adress' typo

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

2020-02-03 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 Reviewed-by: Anatolij Gustschin --- Changes in v2: None arch/sandbox/cpu/sdl.c |

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

2020-02-03 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 Reviewed-by: Anatolij Gustschin --- Changes in v2: - Drop the patch with the Roboto font

[PATCH v2 23/32] sandbox: sdl: Improve error handling

2020-02-03 Thread Simon Glass
A few errors are not checked. Fix these and use my preferred spelling for init. Signed-off-by: Simon Glass --- Changes in v2: None 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

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

2020-02-03 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 --- Changes in v2: None .travis.yml

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

2020-02-03 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 --- Changes in v2: None .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index

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

2020-02-03 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 --- Changes in v2: None arch/sandbox/cpu/sdl.c | 15 +-- 1 file changed, 13 insertions(+), 2

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

2020-02-03 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

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

2020-02-03 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 --- Changes in v2: None arch/sandbox/cpu/start.c | 6 +++---

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

2020-02-03 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 --- Changes in v2: None drivers/sound/sound-uclass.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

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

2020-02-03 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 --- Changes in v2: None arch/sandbox/cpu/os.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/sandbox/cpu/os.c

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

2020-02-03 Thread Simon Glass
Add comments for each struct member. Drop frequency since it is not used. Signed-off-by: Simon Glass --- Changes in v2: None 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

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

2020-02-03 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 v2 14/32] string: Allow arch override of strndup() also

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

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

2020-02-03 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 --- Changes in v2: None

[PATCH v2 17/32] sandbox: Drop os_realloc()

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

[PATCH v2 11/32] sandbox: Rename 'free' variable

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

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

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

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

2020-02-03 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 --- Changes in v2: None drivers/clk/clk-ti-sci.c | 2 +- drivers/clk/clk-uclass.c | 4 ++--

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

2020-02-03 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 --- Changes in v2: None include/malloc.h |

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

2020-02-03 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 --- Changes in v2: - Update the name of the implementing callback function too drivers/dma/dma-uclass.c | 4 ++--

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

2020-02-03 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 --- Changes in v2: None drivers/reset/reset-bcm6345.c | 2 +- drivers/reset/reset-hisilicon.c | 2 +-

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

2020-02-03 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 --- Changes in v2: None drivers/gpio/gpio-rcar.c | 2 +- drivers/gpio/gpio-uclass.c | 4 ++--

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

2020-02-03 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 --- Changes in v2: None drivers/mtd/mtdcore.c | 4 ++-- drivers/mtd/nand/raw/denali.c | 2 +-

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

2020-02-03 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 Reviewed-by: Anatolij Gustschin --- Changes in v2: None configs/sandbox64_defconfig| 1 - configs/sandbox_defconfig | 1 -

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

2020-02-03 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 --- Changes in v2: None drivers/mailbox/k3-sec-proxy.c | 2 +- drivers/mailbox/mailbox-uclass.c | 4 ++--

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

2020-02-03 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 Reviewed-by: Anatolij Gustschin --- Changes in v2: None drivers/power/domain/bcm6328-power-domain.c | 2 +-

[PATCH v2 00/32] sandbox: Move to SDL2

2020-02-03 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

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

2020-02-03 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 Reviewed-by: Anatolij Gustschin --- Changes in v2: None drivers/video/console_truetype.c | 21 + 1 file changed, 21

[PATCH v2 01/32] sandbox: Sort the help options

2020-02-03 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 --- Changes in v2: None arch/sandbox/cpu/start.c | 46

[PATCH v2 1/2] rockchip: rk3399: split roc-pc-rk3399 out of evb_rk3399

2020-02-03 Thread sunil
From: Suniel Mahesh roc-pc-rk3399 board has one user button & three user LED's. Currently we don't have any code support for these devices. Since button and LED's are specific to roc-pc-rk3399 board, split it into its own board file and add code support here. Signed-off-by: Suniel Mahesh ---

[PATCH] Kconfig: update LOGLEVEL range

2020-02-03 Thread marek . bykowski
From: Marek Bykowski As LOGLEVEL ranges form 0 to 9 set the limit to 10. Signed-off-by: Marek Bykowski --- common/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/Kconfig b/common/Kconfig index 28d5e9a0cc..d1c9dd47cf 100644 --- a/common/Kconfig +++

[PATCH 2/2] board: roc-rk3399-pc: Add support for onboard LED's and push button to indicate power mode

2020-02-03 Thread sunil
From: Suniel Mahesh Added support for onboard LED's and push button. When powered board will be in low power mode(yellow LED), on button press, board enters full power mode (red LED) and boots u-boot. Signed-off-by: Suniel Mahesh --- arch/arm/mach-rockchip/tpl.c| 7 ++

[PATCH 1/2] rockchip: rk3399: split roc-rk3399-pc out of evb_rk3399

2020-02-03 Thread sunil
From: Suniel Mahesh roc-rk3399-pc board has one user button & three user LED's. Currently we don't have any code support for these devices. Since button and LED's are specific to roc-rk3399-pc board, split it into its own board file and add any code support here. Signed-off-by: Suniel Mahesh

[PATCH v2 2/2] board: roc-pc-rk3399: Add support for onboard LED's and push button to indicate power mode

2020-02-03 Thread sunil
From: Suniel Mahesh Added support for onboard LED's and push button. When powered board will be in low power mode(yellow LED), on button press, board enters full power mode (red LED) and boots u-boot. Signed-off-by: Suniel Mahesh --- Changes for v2: - Tested on firefly roc-pc-rk3399, an

Re: Re: [PATCH v2 0/3] gpio: intel_gpio: Fix Intel gpio driver

2020-02-03 Thread Andy Shevchenko
On Mon, Feb 3, 2020 at 4:27 PM Bin Meng wrote: > On Mon, Feb 3, 2020 at 10:17 PM Andy Shevchenko > wrote: > > On Mon, Feb 3, 2020 at 3:19 PM Wolfgang Wallner > > wrote: ... > > > Does it look different for you? > > > > Yes, for example for this mail (initial cover letter above) I see only > >

Re: [PATCH 3/3] watchdog: omap_wdt: Fix WDT coding style

2020-02-03 Thread Lokesh Vutla
On 24/01/20 10:14 AM, Marek Vasut wrote: > Fix obvious coding style problems, no functional change. > > Signed-off-by: Marek Vasut > Cc: Grygorii Strashko > Cc: Sam Protsenko > Cc: Suniel Mahesh > --- > drivers/watchdog/omap_wdt.c | 44 ++--- > 1 file

Re: [PATCH 2/3] watchdog: omap_wdt: Fix WDT reloading

2020-02-03 Thread Lokesh Vutla
On 24/01/20 10:14 AM, Marek Vasut wrote: > The watchdog timer value was never updated in the hardware by this > driver, so the watchdog triggered on some random stale value that > was left in the hardware. The TI SPRUH37C says, quote: > > 20.4.3.9 Modifying Timer Count/Load Values and

Re: [PATCH 1/3] watchdog: omap_wdt: Fix WDT timeout configuration

2020-02-03 Thread Lokesh Vutla
On 24/01/20 10:14 AM, Marek Vasut wrote: > The timeout parameter of omap3_wdt_start() is in miliseconds, while > GET_WLDR_VAL() expects parameter in seconds. Fix this so the WDT > driver is actually usable. > > Signed-off-by: Marek Vasut > Cc: Grygorii Strashko > Cc: Sam Protsenko > Cc:

Re: Re: [PATCH v2 0/3] gpio: intel_gpio: Fix Intel gpio driver

2020-02-03 Thread Bin Meng
Hi Andy, On Mon, Feb 3, 2020 at 10:17 PM Andy Shevchenko wrote: > > On Mon, Feb 3, 2020 at 3:19 PM Wolfgang Wallner > wrote: > > > > Hi Andy, > > > > > -"Andy Shevchenko" schrieb: - > > > On Mon, Feb 3, 2020 at 12:38 PM Wolfgang Wallner > > > wrote: > > > > > > > > > > > > This series

Re: [PATCH 2/2] x86: apl: Include ITSS driver

2020-02-03 Thread Bin Meng
On Mon, Feb 3, 2020 at 9:07 PM Wolfgang Wallner wrote: > > Atuomatically select the ITSS driver when building for Apollo Lake. > > Signed-off-by: Wolfgang Wallner > > --- > > arch/x86/cpu/apollolake/Kconfig | 1 + > 1 file changed, 1 insertion(+) > Reviewed-by: Bin Meng

Re: [PATCH 1/2] x86: itss: Add a Kconfig option to enable/disable ITSS driver

2020-02-03 Thread Bin Meng
On Mon, Feb 3, 2020 at 9:06 PM Wolfgang Wallner wrote: > > Currently the ITSS driver is built unconditionally. Add a Kconfig option > to support enabling/disabling the inclusion of the ITSS driver depending > on the platform. > > Signed-off-by: Wolfgang Wallner > --- > > arch/x86/Kconfig

Re: [PATCH] azure: Move to vs2017-win2016 platform build host

2020-02-03 Thread Bin Meng
On Mon, Feb 3, 2020 at 8:25 PM Tom Rini wrote: > > Azure is moving to remove the vs2015-win2012r2 platform build host. The > two suggested new platforms to use are vs2017-win2016 and windows-2019. > For now, move up to vs2017-win2016. > > Cc: Bin Meng > Signed-off-by: Tom Rini > --- > Changes

Re: [PATCH v4 1/2] Kconfig: add btrfs to distro boot

2020-02-03 Thread Petr Vorel
Hi, > Signed-off-by: Matthias Brugger Reviewed-by: Petr Vorel Kind regards, Petr

Re: Re: [PATCH v2 0/3] gpio: intel_gpio: Fix Intel gpio driver

2020-02-03 Thread Andy Shevchenko
On Mon, Feb 3, 2020 at 3:19 PM Wolfgang Wallner wrote: > > Hi Andy, > > > -"Andy Shevchenko" schrieb: - > > On Mon, Feb 3, 2020 at 12:38 PM Wolfgang Wallner > > wrote: > > > > > > > > > This series fixes some issues in the Intel gpio driver. > > > I have tested it on an Apollo Lake

[PATCH v1 2/2] board: stm32: remove fdt_high and fdt_highinitrd_high

2020-02-03 Thread Patrice Chotard
For stm32 f4, f7 and h7 boards, remove fdt_high and initrd_high as they shouldn't be used, this allows the fdt and initrd relocation. This implies to set CONFIG_SYS_BOOTMAPSZ to indicate the amount of memory available to contain kernel, device tree and initrd for relocation. Signed-off-by:

[PATCH v1 1/2] board: stm32: fix extra env setings addresses

2020-02-03 Thread Patrice Chotard
For stm32f4, f7 and h7 boards, reserve: - 4MB for kernel - 64KB for fdt, boot script, pxefile - the remaining memory for ramdisk Signed-off-by: Patrice Chotard --- include/configs/stm32f429-evaluation.h | 8 include/configs/stm32f469-discovery.h | 8

[PATCH v1 0/2] Update board environment for STM32 MCU's boards

2020-02-03 Thread Patrice Chotard
This series: - standardizes the fdt_addr, scriptaddr and pxefile_addr across all STM32 MCU's board. - remove fdt_high and initrd_high from board environment Patrice Chotard (2): board: stm32: fix extra env setings addresses board: stm32: remove fdt_high and fdt_highinitrd_high

[PATCH] board: stih410-b2260: remove fdt_high and initrd_high

2020-02-03 Thread Patrice Chotard
Remove fdt_high and initrd_high as they shouldn't be used, this allows the fdt and initrd relocation. This implies to set CONFIG_SYS_BOOTMAPSZ to indicate the amount of memory available to contain kernel, device tree and initrd for relocation. Signed-off-by: Patrice Chotard ---

[RFC 2/2] Revert "dm: core: device: switch off power domain after device removal"

2020-02-03 Thread Oliver Graute
The conga-imx8 board isn't booting without this revert. Can someone tell me what I need to Do so that this revert is not necessary? This reverts commit 52edfed65de967a86983a55c51ba0727090efc43. --- drivers/core/device-remove.c | 5 - 1 file changed, 5 deletions(-) diff --git

[RFC 1/2] hack to boot with 2020.01

2020-02-03 Thread Oliver Graute
As proposed here: https://lists.denx.de/pipermail/u-boot/2020-January/396749.html Both of my imx8qm boards (Advantech and Congatec) aren't booting 2020.01 without this change. Whats the proper way to fix this on my side? --- drivers/core/device.c | 7 ++- 1 file changed, 2 insertions(+), 5

[PATCH v2] imx: support for conga-QMX8 board

2020-02-03 Thread Oliver Graute
Add i.MX8QM qmx8 congatec board support U-Boot 2020.01-3-g99c15cc616 (Feb 03 2020 - 14:28:07 +0100) CPU: NXP i.MX8QM RevB A53 at 1200 MHz Model: Congatec QMX8 Qseven series Board: conga-QMX8 Build: SCFW 494c97f3, SECO-FW d7523fe8, ATF d6451cc Boot: SD2 DRAM: 6 GiB Device

[PATCH 2/2] configs: j721e_evm_r5: Enable early cons

2020-02-03 Thread Lokesh Vutla
Early cons will be used in uart boot. Enable the same for j721e_r5 Signed-off-by: Lokesh Vutla --- configs/j721e_evm_r5_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/j721e_evm_r5_defconfig b/configs/j721e_evm_r5_defconfig index a90ab62195..b310eca932 100644 ---

[PATCH 1/2] arm: dts: k3-j721e-r5-common-proc-board: Disable power-domains for mcu uart

2020-02-03 Thread Lokesh Vutla
mcu uart will be used during uart boot for loading sysfw.itb. Since sysfw is not yet available during uart load, power-domain cannot be enabled. We need to rely on ROM for doing that, so disable power-domains and clocks for mcu uart. Also fix the mcu uart frequency. Signed-off-by: Lokesh Vutla

[PATCH 0/2] arm: k3-j721e: Fix uart boot

2020-02-03 Thread Lokesh Vutla
This series fixes uart boot on j721e SoC Lokesh Vutla (2): arm: dts: k3-j721e-r5-common-proc-board: Disable power-domains for mcu uart configs: j721e_evm_r5: Enable early cons arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 4 configs/j721e_evm_r5_defconfig | 1 +

[PATCH v2 00/32] sandbox: Move to SDL2

2020-02-03 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

Re: [PATCH 0/5] x86: Improve support for chain-loading U-Boot

2020-02-03 Thread Simon Glass
Hi Andy, On Mon, 3 Feb 2020 at 05:30, Andy Shevchenko wrote: > > On Mon, Feb 3, 2020 at 1:02 PM Bin Meng wrote: > > On Sun, Dec 22, 2019 at 1:00 AM Andy Shevchenko > > wrote: > > > > > > On Sat, Dec 21, 2019 at 6:13 PM Simon Glass wrote: > > > > > > > > This little series adds a few checks

Re: [PATCH 2/2] x86: apl: Include ITSS driver

2020-02-03 Thread Simon Glass
On Mon, 3 Feb 2020 at 06:07, Wolfgang Wallner wrote: > > Atuomatically select the ITSS driver when building for Apollo Lake. > > Signed-off-by: Wolfgang Wallner > > --- > > arch/x86/cpu/apollolake/Kconfig | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Simon Glass

Re: [PATCH 1/2] x86: itss: Add a Kconfig option to enable/disable ITSS driver

2020-02-03 Thread Simon Glass
On Mon, 3 Feb 2020 at 06:07, Wolfgang Wallner wrote: > > Currently the ITSS driver is built unconditionally. Add a Kconfig option > to support enabling/disabling the inclusion of the ITSS driver depending > on the platform. > > Signed-off-by: Wolfgang Wallner > --- > > arch/x86/Kconfig

<    1   2   3   >