[U-Boot] [PATCH v2] arm: mvebu: theadorable: Enable video / LCD support with the new DM driver

2019-01-29 Thread Stefan Roese
With the new DM_VIDEO support in the Armada XP LCD driver, this patch adds the needed DT node for the LCD controller to the theadorable dts file. This DT property is not added to the Armada XP dtsi files, as this LCD feature is pretty unusual for this SoC and I personally know of no other board tha

[U-Boot] [PATCH v2] video: Armada XP: Move driver to DM_VIDEO

2019-01-29 Thread Stefan Roese
This patch moves the Armada XP video / LCD driver to DM_VIDEO. With this move, the legacy interface board_video_init() is removed from the theadorable board code (only user of this video driver). The support via DT will be added in a separate patch. This patch also enables DM_VIDEO for the theador

[U-Boot] [PATCH v2] video: bmp: Add support for 24bpp BMP files on 16bpp displays

2019-01-29 Thread Stefan Roese
This patch adds support to load 24bpp BMP files on 16bpp displays. This will be used by the theadorable board. The "old" bmp command did support this operartion mode and to not break compatibility with the move to DM_VIDEO, we need to add this support to the "new" bmp code. Signed-off-by: Stefan R

Re: [U-Boot] [PATCH] video: Armada XP: Move driver to DM_VIDEO

2019-01-29 Thread Stefan Roese
Hi Anatolij, On 30.01.19 08:46, Anatolij Gustschin wrote: Hi Stefan, On Wed, 30 Jan 2019 08:39:52 +0100 Stefan Roese s...@denx.de wrote: ... Yes, this should work as well. I'll send v2 shortly. Will you pull the video driver patch, or should I pull it via the Marvell tree with the other updat

Re: [U-Boot] [PATCH] video: Armada XP: Move driver to DM_VIDEO

2019-01-29 Thread Anatolij Gustschin
Hi Stefan, On Wed, 30 Jan 2019 08:39:52 +0100 Stefan Roese s...@denx.de wrote: ... > Yes, this should work as well. I'll send v2 shortly. > > Will you pull the video driver patch, or should I pull it via > the Marvell tree with the other updates? Do you run Travis-CI build tests for Marvell tree

Re: [U-Boot] [PATCH] video: Armada XP: Move driver to DM_VIDEO

2019-01-29 Thread Stefan Roese
Hi Anatolij, On 30.01.19 08:34, Anatolij Gustschin wrote: On Wed, 30 Jan 2019 07:32:20 +0100 Stefan Roese s...@denx.de wrote: ... Thanks. I just noticed that this patch applied without the theadorable move to DM_VIDEO will cause compilation errors. Perhaps its better to squash both patches so n

Re: [U-Boot] [PATCH] video: Armada XP: Move driver to DM_VIDEO

2019-01-29 Thread Anatolij Gustschin
Hi Stefan, On Wed, 30 Jan 2019 07:32:20 +0100 Stefan Roese s...@denx.de wrote: ... > Thanks. I just noticed that this patch applied without the > theadorable move to DM_VIDEO will cause compilation errors. > Perhaps its better to squash both patches so not break > git bisect'ability. What do you t

Re: [U-Boot] [RFC 2/3] efi_loader: associate BLK/PARTITION device to efi_disk

2019-01-29 Thread AKASHI Takahiro
On Wed, Jan 30, 2019 at 07:49:37AM +0100, Heinrich Schuchardt wrote: > On 1/30/19 6:48 AM, AKASHI Takahiro wrote: > > On Tue, Jan 29, 2019 at 11:33:31PM +0100, Heinrich Schuchardt wrote: > >> On 1/29/19 3:59 AM, AKASHI Takahiro wrote: > >>> efi_disk_create() will initialize efi_disk attributes for

[U-Boot] [PATCH v3] moveconfig: add a second pass for empty #if/#endif blocks

2019-01-29 Thread Chris Packham
Moveconfig already attempts to remove empty #if/#endif blocks when there is a matching CONFIG_ being moved. Add a second pass which covers files without a match. Signed-off-by: Chris Packham --- This was previously submitted as http://patchwork.ozlabs.org/patch/924901/ there still seems to be cas

[U-Boot] [PATCH] omap3_cairo: remove empty #ifdef/#endif block

2019-01-29 Thread Chris Packham
The content between these guards was removed in commit 9baa2bce2890 ("Removed unused references to CONFIG_SERIALx"). Remove the now empty #ifdef/#endif block and the accompanying comment. Signed-off-by: Chris Packham --- include/configs/omap3_cairo.h | 10 -- 1 file changed, 10 deletion

Re: [U-Boot] [PATCH 10/20] imx8m: add clk support for i.MX8MM

2019-01-29 Thread Peng Fan
> -Original Message- > From: Lukasz Majewski [mailto:lu...@denx.de] > Sent: 2019年1月30日 14:47 > To: Peng Fan > Cc: sba...@denx.de; Fabio Estevam ; > dl-uboot-imx ; u-boot@lists.denx.de > Subject: Re: [U-Boot] [PATCH 10/20] imx8m: add clk support for i.MX8MM > > Hi Peng, > > > Hi Lukasz,

[U-Boot] [PATCH 1/1] test: provide unit test for memory functions

2019-01-29 Thread Heinrich Schuchardt
Memory functions may have architecture specific implementations. These should be tested. Provide unit tests for memset(), memcpy(), memmove(). Provide a 'ut lib' sub-command to execute the tests. Signed-off-by: Heinrich Schuchardt --- v2 vary alignment and length of copied or set memory

Re: [U-Boot] [PATCH 16/20] imx8m: fix sd to mmc1 and emmc to mmc2 for i.MX8MM

2019-01-29 Thread Peng Fan
> -Original Message- > From: Lukasz Majewski [mailto:lu...@denx.de] > Sent: 2019年1月30日 14:50 > To: Peng Fan > Cc: sba...@denx.de; Fabio Estevam ; > dl-uboot-imx ; u-boot@lists.denx.de > Subject: Re: [U-Boot] [PATCH 16/20] imx8m: fix sd to mmc1 and emmc to > mmc2 for i.MX8MM > > Hi Peng,

Re: [U-Boot] [PATCH v4] arm64: mvebu: Add basic support for uDPU board

2019-01-29 Thread Stefan Roese
On 28.01.19 17:27, Vladimir Vid wrote: This adds initial support for micro-DPU (uDPU) board which is based on Armada-3720 SoC. micro-DPU is the single-port FTTdp "distribution point unit" made by Methode Electronics which offers complete modularity with replaceable SFP modules both for uplink

Re: [U-Boot] [PATCH 16/20] imx8m: fix sd to mmc1 and emmc to mmc2 for i.MX8MM

2019-01-29 Thread Lukasz Majewski
Hi Peng, > > -Original Message- > > From: Lukasz Majewski [mailto:lu...@denx.de] > > Sent: 2019年1月30日 6:58 > > To: Peng Fan > > Cc: sba...@denx.de; Fabio Estevam ; > > dl-uboot-imx ; u-boot@lists.denx.de > > Subject: Re: [U-Boot] [PATCH 16/20] imx8m: fix sd to mmc1 and emmc > > to mmc2 fo

Re: [U-Boot] [RFC 2/3] efi_loader: associate BLK/PARTITION device to efi_disk

2019-01-29 Thread Heinrich Schuchardt
On 1/30/19 6:48 AM, AKASHI Takahiro wrote: > On Tue, Jan 29, 2019 at 11:33:31PM +0100, Heinrich Schuchardt wrote: >> On 1/29/19 3:59 AM, AKASHI Takahiro wrote: >>> efi_disk_create() will initialize efi_disk attributes for each device, >>> either UCLASS_BLK or UCLASS_PARTITION. >>> >>> Currently (te

Re: [U-Boot] [PATCH 10/20] imx8m: add clk support for i.MX8MM

2019-01-29 Thread Lukasz Majewski
Hi Peng, > Hi Lukasz, > > > -Original Message- > > From: Lukasz Majewski [mailto:lu...@denx.de] > > Sent: 2019年1月30日 6:55 > > To: Peng Fan > > Cc: sba...@denx.de; Fabio Estevam ; > > dl-uboot-imx ; u-boot@lists.denx.de > > Subject: Re: [U-Boot] [PATCH 10/20] imx8m: add clk support for >

Re: [U-Boot] [PATCH] video: Armada XP: Move driver to DM_VIDEO

2019-01-29 Thread Stefan Roese
Hi Anatolij, On 29.01.19 14:13, Anatolij Gustschin wrote: Hi Stefan, On Tue, 29 Jan 2019 11:44:43 +0100 Stefan Roese s...@denx.de wrote: This patch moves the Armada XP video / LCD driver to DM_VIDEO. With this move, the legacy interface board_video_init() is removed from the theadorable board

Re: [U-Boot] [PATCH 12/13] mmc: sdhci: Add support for HOST_CONTROL2 and setting UHS timings

2019-01-29 Thread Faiz Abbas
Hi Tom, On 30/01/19 7:50 AM, Tom Rini wrote: > On Mon, Jan 28, 2019 at 12:15:30PM +0530, Faiz Abbas wrote: > >> From: Faiz Abbas >> >> The HOST_CONTROL2 register is a part of SDHC v3.00 and not just specific >> to arasan/zynq controllers. Add the same to sdhci.h. >> >> Also create a common API t

Re: [U-Boot] [PATCH 09/13] mmc: sdhci: Make set_ios_post() return int

2019-01-29 Thread Faiz Abbas
Hi Tom, On 30/01/19 7:50 AM, Tom Rini wrote: > On Mon, Jan 28, 2019 at 12:15:27PM +0530, Faiz Abbas wrote: > >> Make set_ios_post() return int to faciliate error handling in >> platform drivers. >> >> Signed-off-by: Faiz Abbas >> --- >> drivers/mmc/sdhci.c | 6 +- >> drivers/mmc/xenon

Re: [U-Boot] [RFC 2/3] efi_loader: associate BLK/PARTITION device to efi_disk

2019-01-29 Thread AKASHI Takahiro
On Tue, Jan 29, 2019 at 11:33:31PM +0100, Heinrich Schuchardt wrote: > On 1/29/19 3:59 AM, AKASHI Takahiro wrote: > > efi_disk_create() will initialize efi_disk attributes for each device, > > either UCLASS_BLK or UCLASS_PARTITION. > > > > Currently (temporarily), efi_disk_obj structure is embedde

Re: [U-Boot] [PATCH 16/20] imx8m: fix sd to mmc1 and emmc to mmc2 for i.MX8MM

2019-01-29 Thread Peng Fan
> -Original Message- > From: Lukasz Majewski [mailto:lu...@denx.de] > Sent: 2019年1月30日 6:58 > To: Peng Fan > Cc: sba...@denx.de; Fabio Estevam ; > dl-uboot-imx ; u-boot@lists.denx.de > Subject: Re: [U-Boot] [PATCH 16/20] imx8m: fix sd to mmc1 and emmc to > mmc2 for i.MX8MM > > Hi Peng,

Re: [U-Boot] [PATCH 10/20] imx8m: add clk support for i.MX8MM

2019-01-29 Thread Peng Fan
Hi Lukasz, > -Original Message- > From: Lukasz Majewski [mailto:lu...@denx.de] > Sent: 2019年1月30日 6:55 > To: Peng Fan > Cc: sba...@denx.de; Fabio Estevam ; > dl-uboot-imx ; u-boot@lists.denx.de > Subject: Re: [U-Boot] [PATCH 10/20] imx8m: add clk support for i.MX8MM > > Hi Peng, > > > I

Re: [U-Boot] [RFC 1/3] dm: blk: add UCLASS_PARTITION

2019-01-29 Thread AKASHI Takahiro
On Tue, Jan 29, 2019 at 11:20:01PM +0100, Heinrich Schuchardt wrote: > On 1/29/19 3:59 AM, AKASHI Takahiro wrote: > > UCLASS_PARTITION device will be created as a child node of > > UCLASS_BLK device. > > > > Signed-off-by: AKASHI Takahiro > > --- > > drivers/block/blk-uclass.c | 52 +

Re: [U-Boot] [RFC 0/3] dm, efi: integrate efi_disk into DM

2019-01-29 Thread AKASHI Takahiro
Heinrich, On Tue, Jan 29, 2019 at 11:48:37PM +0100, Heinrich Schuchardt wrote: > On 1/29/19 5:20 PM, Alexander Graf wrote: > > On 01/29/2019 03:59 AM, AKASHI Takahiro wrote: > >> This patch set came from the past discussion[1] on my "removable device > >> support" patch and is intended to be an at

[U-Boot] [PATCH 27/40] x86: mrccache: Add more debugging

2019-01-29 Thread Simon Glass
When the MRC cache fails to save it is useful to have some debugging info to indicate what when wrong. Add some more debug() calls. Signed-off-by: Simon Glass --- arch/x86/lib/mrccache.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/arch/x86/lib/mrccache.

[U-Boot] [PATCH 31/40] x86: Don't generate a bootstage report in SPL

2019-01-29 Thread Simon Glass
This report is normally generated by U-Boot proper. Correct the condition here so that it respects the Kconfig options for bootstage. Signed-off-by: Simon Glass --- arch/x86/lib/bootm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/lib/bootm.c b/arch/x86/lib/bootm

[U-Boot] [PATCH 21/40] x86: Allow 16-bit init to be in TPL

2019-01-29 Thread Simon Glass
At present we support having 16-bit init be in SPL or U-Boot proper, but not TPL. Add support for this so that TPL can boot. Signed-off-by: Simon Glass --- Makefile | 1 + arch/x86/Makefile | 4 ++-- arch/x86/cpu/intel_common/Makefile | 2 +- arch/x

[U-Boot] [PATCH 32/40] x86: Support PCI VGA ROM when TPL is used

2019-01-29 Thread Simon Glass
When TPL is in use, U-Boot proper should support initing the VGA ROM even though the 32-bit init portion is in SPL. Update the condition to handle this. Signed-off-by: Simon Glass --- drivers/pci/pci_rom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/pci_rom.c

[U-Boot] [PATCH 28/40] x86: Add a sysreset driver for the Intel PCH

2019-01-29 Thread Simon Glass
Intel SoCs support a fairly stardard reset mechanism which can support powering off the device. Add support for this and enable it by default on broadwell, which already has the necessary pm.h header file. This driver augments the standard x86 sysreset driver. Signed-off-by: Simon Glass --- ar

[U-Boot] [PATCH 36/40] x86: samus: Update device tree for verified boot

2019-01-29 Thread Simon Glass
Add nvdata drivers for the TPM and RTC as used on samus. These are needed for Chromium OS verified boot on samus. Signed-off-by: Simon Glass --- arch/x86/dts/chromebook_samus.dts | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/arch/x86/dts/chromebook_s

[U-Boot] [PATCH 30/40] x86: Don't set up MTRRs in SPL

2019-01-29 Thread Simon Glass
The MTRRs are normally set up in U-Boot proper, so avoid setting them up in SPL as well. Signed-off-by: Simon Glass --- arch/x86/lib/init_helpers.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/x86/lib/init_helpers.c b/arch/x86/lib/init_helpers.c index 0481f453ca.

[U-Boot] [PATCH 23/40] x86: broadwell: Select refcode and CPU code for SPL

2019-01-29 Thread Simon Glass
Allow broadwell to build for SPL and include the reference code. Signed-off-by: Simon Glass --- arch/x86/cpu/broadwell/Makefile | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/x86/cpu/broadwell/Makefile b/arch/x86/cpu/broadwell/Makefile index 11d30b03e5..394a794f

[U-Boot] [PATCH 38/40] x86: Update device tree for Chromium OS verified boot

2019-01-29 Thread Simon Glass
The standard image generated by U-Boot on x86 is u-boot.rom. Add a separate image called image.bin for verified boot. This supports verification in TPL of which SPL/U-Boot to start, then jumping to the correct one, with SPL setting up the SDRAM and U-Boot proper providing the user interface if need

[U-Boot] [PATCH 39/40] x86: Fix device-tree indentation

2019-01-29 Thread Simon Glass
With the use of a phandle we can outdent the device tree nodes a little. Fix this. Signed-off-by: Simon Glass --- arch/x86/dts/u-boot.dtsi | 147 +++ 1 file changed, 73 insertions(+), 74 deletions(-) diff --git a/arch/x86/dts/u-boot.dtsi b/arch/x86/dts/u-boo

[U-Boot] [PATCH 16/40] x86: broadwell: Improve SDRAM debugging output

2019-01-29 Thread Simon Glass
Add debugging during SDRAM init so that problems are easier to diagnose. Signed-off-by: Simon Glass --- arch/x86/cpu/broadwell/sdram.c | 32 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/arch/x86/cpu/broadwell/sdram.c b/arch/x86/cpu/broadwell/s

[U-Boot] [PATCH 19/40] x86: broadwell: Split CPU init

2019-01-29 Thread Simon Glass
Split the CPU init into two parts - the 'full' init which happens in the first U-Boot phase, and the rest of the init that happens on subsequent stages. Signed-off-by: Simon Glass --- arch/x86/cpu/broadwell/Makefile | 1 + arch/x86/cpu/broadwell/cpu.c | 673

[U-Boot] [PATCH 40/40] x86: samus: Add a target to boot through TPL

2019-01-29 Thread Simon Glass
Add a version of samus which supports booting from TPL to SPL and then to U-Boot. This allows TPL to select from an A or B SPL to support verified boot with field upgrade. Signed-off-by: Simon Glass --- board/google/Kconfig | 8 +++ board/google/chromebook_samus/Kconfig

[U-Boot] [PATCH 34/40] x86: Add documention on the samus flashmap

2019-01-29 Thread Simon Glass
There are quite a few variables which control where things appear in the final ROM image. Add a flashmap in the documentation to make this easier to figure out. Signed-off-by: Simon Glass --- doc/README.x86 | 14 ++ 1 file changed, 14 insertions(+) diff --git a/doc/README.x86 b/doc

[U-Boot] [PATCH 26/40] x86: Add a simple TPL implementations

2019-01-29 Thread Simon Glass
Add the required CPU code so that TPL builds correctly. Also update the SPL code to deal with being booted from TPL. Signed-off-by: Simon Glass --- arch/x86/include/asm/spl.h| 17 - arch/x86/lib/Makefile | 9 ++- arch/x86/lib/spl.c| 44 ++- ar

[U-Boot] [PATCH 09/40] x86: mp_init: Use proper error numbers

2019-01-29 Thread Simon Glass
At present many of the functions in this file return -1 as an error number. which is -EPERM. Update the code to use real error numbers. Signed-off-by: Simon Glass --- arch/x86/cpu/mp_init.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/x86/cpu/mp_init.c b/a

[U-Boot] [PATCH 17/40] x86: broadwell: Allow SDRAM init from SPL

2019-01-29 Thread Simon Glass
At present SDRAM is always set up in U-Boot proper. Allow this to be done in SPL instead so that U-Boot proper can be loaded into SDRAM and run from there. This allows U-Boot to be compressed to reduce space, since it is not necessary to run it directly from flash. Signed-off-by: Simon Glass ---

[U-Boot] [PATCH 20/40] x86: Add support for starting from SPL/TPL

2019-01-29 Thread Simon Glass
When a previous phase of U-Boot has run we need to adjust the init of subsequent states to avoid messing up the CPU state. Add a new version of the start logic for SPL, when it boots from TPL (start_from tpl.c) and a new version for U-Boot when it boots from SPL. Signed-off-by: Simon Glass ---

[U-Boot] [PATCH 29/40] x86: Support TPL in Intel common code

2019-01-29 Thread Simon Glass
Update the Makefie rules to ensure that the correct files are built when TPL is being used. Signed-off-by: Simon Glass --- arch/x86/cpu/intel_common/Makefile | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/x86/cpu/intel_common/Makefile b/arch/x86/cpu/intel_com

[U-Boot] [PATCH 24/40] x86: Add common Intel code for SPL

2019-01-29 Thread Simon Glass
Add an implementation of arch_cpu_init_f() so that the x86 SPL code builds and identifies the CPU. Signed-off-by: Simon Glass --- arch/x86/cpu/intel_common/Makefile | 6 ++ arch/x86/cpu/intel_common/cpu_from_spl.c | 27 2 files changed, 33 insertions(+) crea

[U-Boot] [PATCH 35/40] x86: samus: Update device tree for SPL

2019-01-29 Thread Simon Glass
Add tags to allow required nodes to be present in SPL / TPL. Also enable the sysreset driver. Signed-off-by: Simon Glass --- arch/x86/dts/chromebook_samus.dts | 38 +++ 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/arch/x86/dts/chromebook_samus.dts

[U-Boot] [PATCH 22/40] x86: broadwell: Allow booting from SPL

2019-01-29 Thread Simon Glass
At present broadwell only supports booting straight into U-Boot proper. Add a separate init file to boot from SPL into U-Boot proper, and select it when SPL is in use. Signed-off-by: Simon Glass --- arch/x86/cpu/broadwell/Makefile | 15 +++ arch/x86/cpu/broadwell/cpu_from_spl.c | 63 +

[U-Boot] [PATCH 14/40] x86: Support booting with TPL

2019-01-29 Thread Simon Glass
Some boards want to use TPL as the first phase of U-Boot. This allows selection of A or B SPL phases, thus allowing the memory init to be upgraded in the field. Add a new Kconfig option for this. Signed-off-by: Simon Glass --- arch/x86/Kconfig | 9 - 1 file changed, 8 insertions(+), 1

[U-Boot] [PATCH 37/40] x86: Update device tree for TPL

2019-01-29 Thread Simon Glass
Add TPL binaries to the device x86 binman desciption. When enabled, TPL will start first, doing the 16-bit init, then jump to SPL and finally U-Boot proper. Signed-off-by: Simon Glass --- arch/x86/dts/u-boot.dtsi | 26 -- 1 file changed, 24 insertions(+), 2 deletions(-)

[U-Boot] [PATCH 05/40] cros_ec: Use a hyphen in the uclass name

2019-01-29 Thread Simon Glass
Device-tree rules require that aliases use a hyphen rather than a underscore. Update the uclass name to fit with this. Signed-off-by: Simon Glass --- drivers/misc/cros_ec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/cros_ec.c b/drivers/misc/cros_ec.c index

[U-Boot] [PATCH 08/40] x86: start64: Fix copyright message

2019-01-29 Thread Simon Glass
There is a typo in this header. Fix it. Signed-off-by: Simon Glass --- arch/x86/cpu/start64.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/cpu/start64.S b/arch/x86/cpu/start64.S index a78a3316b6..7be834788b 100644 --- a/arch/x86/cpu/start64.S +++ b/arch/x86/cpu/s

[U-Boot] [PATCH 18/40] x86: Move init of debug UART to cpu.c

2019-01-29 Thread Simon Glass
At present the debug UART is set up in sdram.c which is not the best place since it has nothing in particular to do with SDRAM. Since we want to support initing this in SPL too, move it to a common file. Signed-off-by: Simon Glass --- arch/x86/cpu/broadwell/cpu.c | 13 + arch/x86/

[U-Boot] [PATCH 25/40] x86: Support saving MRC data from SPL

2019-01-29 Thread Simon Glass
When SPL is used to set up the memory controller we want to save the MRC data in SPL to avoid needing to pass it up to U-Boot proper to save. Add a function to handle that. Signed-off-by: Simon Glass --- arch/x86/include/asm/mrccache.h | 11 ++ arch/x86/lib/mrccache.c | 36 +

[U-Boot] [PATCH 06/40] spl: Allow sandbox to build a device-tree file

2019-01-29 Thread Simon Glass
At present only OF_SEPARATE is considered valid for building a device-tree file in SPL. However sandbox uses OF_HOSTFILE instead. Update the logic to handle this and make it easier to understand. Signed-off-by: Simon Glass --- scripts/Makefile.spl | 14 +- 1 file changed, 13 inserti

[U-Boot] [PATCH 33/40] x86: sysreset: Implement the get_last() method

2019-01-29 Thread Simon Glass
Add a default implementation of this method which always indicates that the last reset was a power-on reset. This is the most likely type of reset and without a PCH-specific driver we cannot determine any other type. Signed-off-by: Simon Glass --- drivers/sysreset/sysreset_x86.c | 6 ++ 1 f

[U-Boot] [PATCH 15/40] x86: Add a handoff header file

2019-01-29 Thread Simon Glass
Add an arch-specific handoff header so that we can use the HANDOFF feature on x86 devices. Signed-off-by: Simon Glass --- arch/x86/include/asm/handoff.h | 15 +++ 1 file changed, 15 insertions(+) create mode 100644 arch/x86/include/asm/handoff.h diff --git a/arch/x86/include/asm/h

[U-Boot] [PATCH 13/40] x86: Support SPL and TPL

2019-01-29 Thread Simon Glass
At present only chromebook_link64 supports SPL. It is useful to eb able to support both TPL and SPL to implement verified boot on x86. Enable the options for both along with some suitable default options needed to boot through these phases. Signed-off-by: Simon Glass --- arch/Kconfig | 30

[U-Boot] [PATCH 11/40] x86: dts: Add device-tree labels for rtc and reset

2019-01-29 Thread Simon Glass
Add labels for these nodes so that board DT files can reference them. Signed-off-by: Simon Glass --- arch/x86/dts/reset.dtsi | 2 +- arch/x86/dts/rtc.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/dts/reset.dtsi b/arch/x86/dts/reset.dtsi index f979d83757.

[U-Boot] [PATCH 12/40] x86: Update a stale comment about ifdtool

2019-01-29 Thread Simon Glass
We use binman to build the x86 image now. Update a comment which still refers to ifdtool. Signed-off-by: Simon Glass --- arch/x86/cpu/intel_common/car.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/cpu/intel_common/car.S b/arch/x86/cpu/intel_common/car.S index 52

[U-Boot] [PATCH 07/40] RFC: binman: Allow sections to have an offset

2019-01-29 Thread Simon Glass
At present sections are always placed automatically. Even if an 'offset' property is provided it is ignored. Update the logic to support an offset for sections. Note: Needs a test updates Signed-off-by: Simon Glass --- tools/binman/bsection.py | 5 +++-- tools/binman/etype/section.py | 3

[U-Boot] [PATCH 10/40] x86: Add a way to reinit the cpu

2019-01-29 Thread Simon Glass
We cannot init the CPU fully both than once during a boot. Add a new function which can be called to figure out the CPU identity, but which does not change anything. For x86_64, this is empty for now. Signed-off-by: Simon Glass --- arch/x86/cpu/i386/cpu.c | 113 ++-

[U-Boot] [PATCH 03/40] binman: Add a missing comment in Entry_vblock

2019-01-29 Thread Simon Glass
An important property is missing. Update the entry comment to include this. Signed-off-by: Simon Glass --- tools/binman/etype/vblock.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/binman/etype/vblock.py b/tools/binman/etype/vblock.py index c4d970ed16..334ff9f966 100644 --- a/tools

[U-Boot] [PATCH 04/40] dm: core: Fix translate condition in ofnode_get_addr_size()

2019-01-29 Thread Simon Glass
Update the condition to translate only if this is enabled for SPL. Signed-off-by: Simon Glass --- drivers/core/ofnode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/core/ofnode.c b/drivers/core/ofnode.c index 0e584c12dc..34f3c88b92 100644 --- a/drivers/core/ofnode

[U-Boot] [PATCH 01/40] binman: Don't generate an error in 'text' entry constructor

2019-01-29 Thread Simon Glass
It is not good practice to raise an exception in a constructor. In this case the 'text' entry may not actually be used, if -i is used to filter out the images that get built. Move the exception to where the data is actually used. Signed-off-by: Simon Glass --- tools/binman/etype/text.py | 4 ++

[U-Boot] [PATCH 02/40] binman: Don't show image-skip message by default

2019-01-29 Thread Simon Glass
This message is not very important since it is simply indicating that the user's instructions are being followed. Only show it when the verbosity level is above the default. Signed-off-by: Simon Glass --- tools/binman/control.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --

[U-Boot] [PATCH 00/40] x86: Add support for booting from TPL

2019-01-29 Thread Simon Glass
At present SPL is used on 64-bit platforms, to allow SPL to be built as a 32-bit program and U-Boot proper to be built as 64-bit. However it is useful to be able to use SPL on any x86 platform, where U-Boot needs to be updated in the field. Then SPL can select which U-Boot to run (A or B) and most

Re: [U-Boot] [PATCH 13/13] mmc: am654_sdhci: Add a platform specific set_control_reg() callback

2019-01-29 Thread Tom Rini
On Mon, Jan 28, 2019 at 12:15:31PM +0530, Faiz Abbas wrote: > From: Faiz Abbas > > Add a platform specific set_control_reg() callback to help switch to > UHS speed modes. > > Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature _

Re: [U-Boot] [PATCH 08/13] arm: dts: k3: Add phy specific properties to SD card node

2019-01-29 Thread Tom Rini
On Mon, Jan 28, 2019 at 12:15:26PM +0530, Faiz Abbas wrote: > With changes in the driver requiring phy related properties, > add the same for the SD card node to prevent breaking boot with > the driver update. > > Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini -- Tom signature.asc Descrip

Re: [U-Boot] [PATCH 07/13] mmc: sdhci: Make sdhci_set_clock() non static

2019-01-29 Thread Tom Rini
On Mon, Jan 28, 2019 at 12:15:25PM +0530, Faiz Abbas wrote: > The am654_sdhci driver needs to switch the clock off > before disabling its phy dll and needs to re-enable > the clock before enabling the phy again. > > Therefore, make the sdhci_set_clock() function accessible > in the am654_sdhci dr

Re: [U-Boot] [PATCH 06/13] mmc: sdhci: Add support for sdhci-caps-mask

2019-01-29 Thread Tom Rini
On Mon, Jan 28, 2019 at 12:15:24PM +0530, Faiz Abbas wrote: > Add Support for masking some bits in the capabilities > register of a host controller. > > Also remove the redundant readl() into caps1. > > Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP

Re: [U-Boot] [PATCH 03/13] mmc: am654_sdhci: Remove quirks

2019-01-29 Thread Tom Rini
On Mon, Jan 28, 2019 at 12:15:21PM +0530, Faiz Abbas wrote: > The host controller works perfectly well without having to add any > quirks. Remove them. > > Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature __

Re: [U-Boot] [PATCH 09/13] mmc: sdhci: Make set_ios_post() return int

2019-01-29 Thread Tom Rini
On Mon, Jan 28, 2019 at 12:15:27PM +0530, Faiz Abbas wrote: > Make set_ios_post() return int to faciliate error handling in > platform drivers. > > Signed-off-by: Faiz Abbas > --- > drivers/mmc/sdhci.c | 6 +- > drivers/mmc/xenon_sdhci.c | 4 +++- > include/sdhci.h | 2 +- >

Re: [U-Boot] [PULL u-boot] Please pull u-boot-amlogic-20190129

2019-01-29 Thread Tom Rini
Neil > > The following changes since commit 0da90255083681a02b24528f80da9d4062ff634a: > > Merge branch '2019-01-25-master-imports' (2019-01-26 22:47:55 -0500) > > are available in the Git repository at: > > git://git.denx.de/u-boot-amlogic.git tags/u

Re: [U-Boot] [PATCH 12/13] mmc: sdhci: Add support for HOST_CONTROL2 and setting UHS timings

2019-01-29 Thread Tom Rini
On Mon, Jan 28, 2019 at 12:15:30PM +0530, Faiz Abbas wrote: > From: Faiz Abbas > > The HOST_CONTROL2 register is a part of SDHC v3.00 and not just specific > to arasan/zynq controllers. Add the same to sdhci.h. > > Also create a common API to set UHS timings in HOST_CONTROL2. > > Signed-off-by

Re: [U-Boot] [PATCH 05/13] regmap: Add support for polling on a register

2019-01-29 Thread Tom Rini
On Mon, Jan 28, 2019 at 12:15:23PM +0530, Faiz Abbas wrote: > Add an API to continuously read a register until a condition is > satisfied or a timeout occurs. > > Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature ___

Re: [U-Boot] [PATCH 10/13] mmc: am654_sdhci: Add Support for PHY

2019-01-29 Thread Tom Rini
On Mon, Jan 28, 2019 at 12:15:28PM +0530, Faiz Abbas wrote: > Add support in the driver for handling phy specific registers. > > Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature ___ U-Boot mailing li

Re: [U-Boot] arm: stm32mp1: deploy spl in root folder

2019-01-29 Thread Tom Rini
On Mon, Jan 28, 2019 at 11:13:27AM +0100, Patrick Delaunay wrote: > Update generation of spl binaries > - continue to generate all SPL files in spl sub-directory > - copy in root folder the needed file for user (YOCTO, buildroot): > u-boot-spl.stm32 > > > > Signed-off-by: Patrick Delaunay A

Re: [U-Boot] [PATCH 11/13] configs: am65x_evm: Enable CONFIG_REGMAP

2019-01-29 Thread Tom Rini
On Mon, Jan 28, 2019 at 12:15:29PM +0530, Faiz Abbas wrote: > Add Support for CONFIG_REGMAP. > > Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.de https://

Re: [U-Boot] [PATCH 02/13] mmc: am654_mmc: Change driver name

2019-01-29 Thread Tom Rini
On Mon, Jan 28, 2019 at 12:15:20PM +0530, Faiz Abbas wrote: > This driver works with the sdhci controller present on TI's AM65x devices. > Change the name to make this clearer and match the compatible with > kernel. > > Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini -- Tom signature.asc D

Re: [U-Boot] [PATCH 04/13] regmap: Add API regmap_init_mem_index()

2019-01-29 Thread Tom Rini
On Mon, Jan 28, 2019 at 12:15:22PM +0530, Faiz Abbas wrote: > In device nodes with more than one entry in the reg property, > it is sometimes useful to regmap only of the entries. Add an > API regmap_init_mem_index() to facilitate this. > > Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --

Re: [U-Boot] [PATCH 01/13] arm64: dts: k3: Sync sdhci0 node from kernel

2019-01-29 Thread Tom Rini
On Mon, Jan 28, 2019 at 12:15:19PM +0530, Faiz Abbas wrote: > Sync the sdhci0 node from kernel. This changes the compatible that is > required to be there in the driver. Change the same for the SD card node > which is not yet supported in kernel. > > Also sync the main_pmx0 node as a side effect.

Re: [U-Boot] [PATCH v4 1/9] sunxi: clk: enable clk and reset for CCU devices

2019-01-29 Thread Andre Przywara
On Tue, 29 Jan 2019 23:40:26 +0530 Jagan Teki wrote: > On Tue, Jan 29, 2019 at 9:25 PM Andre Przywara > wrote: > > > > Some Allwinner clock devices have parent clocks and reset gates > > itself, which need to be activated for them to work. > > > > Add some code to just assert all resets and enab

[U-Boot] Probing flash before Env setup (Env in UBI)

2019-01-29 Thread Dominik Vogt
Hi folks, I'm new to uboot and couldn't figure out how to get "CONFIG_ENV_IS_IN_UBI" to work (on a nor flash) yet. Basically, ubi and ubifs work fine. The mtd device (a nor flash) is supported and works. It is formatted with ubiformat and contains two volumes with a ubifs on each of them. The

Re: [U-Boot] imx8mq-evk: Outbound network packets lost

2019-01-29 Thread Sergey Kubushyn
On Sat, 26 Jan 2019, Chris Spencer wrote: On Sat, 26 Jan 2019 at 01:14, Sergey Kubushyn wrote: Thanks for a reply. The problem here is not with leftover descriptors -- it is MDIO bus not working at all. It is either bogus speed/clock in DM mode or something else that I haven't found yet. Readi

Re: [U-Boot] [RFC 3/3] drivers: align block device drivers with DM-efi integration

2019-01-29 Thread AKASHI Takahiro
Alex, On Tue, Jan 29, 2019 at 05:19:38PM +0100, Alexander Graf wrote: > On 01/29/2019 03:59 AM, AKASHI Takahiro wrote: > >Efi_disk_create() should be hook up at every creation of block device > >at each driver. Associated blk_desc must be properly set up before > >calling this function. > > > >Sig

Re: [U-Boot] input in flex scanner failed (for rpi_0_w_defconfig)

2019-01-29 Thread Philipp Tomsich
> On 29.01.2019, at 21:37, Belisko Marek wrote: > > Hi, > > I'm trying to build u-boot in docker on osx (installed build-essentials + > gcc-arm) but hit this issue (with verbose make) during config phase. I > tried same on linux and it works fine. Any ideas what can cause this (or > how to debu

Re: [U-Boot] [PATCH v6 6/7] cmd: efidebug: add images command

2019-01-29 Thread AKASHI Takahiro
On Tue, Jan 29, 2019 at 04:35:32PM +0100, Alexander Graf wrote: > On 01/24/2019 12:04 PM, AKASHI Takahiro wrote: > >"images" command prints loaded images-related information. > > > >Signed-off-by: AKASHI Takahiro > >--- > > cmd/efidebug.c | 14 +- > > 1 file changed, 13 insertions(+),

Re: [U-Boot] [PATCH v2 1/2] x86: Add efi runtime reset

2019-01-29 Thread Heinrich Schuchardt
On 1/30/19 12:15 AM, Alexander Graf wrote: > > > On 30.01.19 00:08, Heinrich Schuchardt wrote: >> On 1/28/19 4:42 PM, Alexander Graf wrote: >>> Our selftest will soon test the actual runtime reset function rather than >>> the boot time one. For this, we need to ensure that the runtime version >>>

Re: [U-Boot] [PATCH v1 0/3] Add support for symlink creation in EXT4

2019-01-29 Thread Tom Rini
On Wed, Jan 30, 2019 at 12:24:29AM +0100, Lukasz Majewski wrote: > On Tue, 29 Jan 2019 14:40:08 +0100 > Jean-Jacques Hiblot wrote: > > > This series adds support for the creation of symbolic links on ext4 > > file-systems. > > The motivation behind this work is to have the ability to "do" the job

Re: [U-Boot] [PATCH 20/20] imx: add i.MX8MM EVK board support

2019-01-29 Thread Lukasz Majewski
Hi Peng, > Add i.MX8MM EVK board support. > > Add board and SoC dts > Add ddr training code > support SD/MMC/GPIO/PINCTRL/UART > > U-Boot SPL 2019.01-00148-g1179cffe66 (Jan 28 2019 - 17:37:34 +0800) > Normal Boot > Trying to boot from MMC1 > > U-Boot 2019.01-00148-g1179cffe66 (Jan 28 2019 - 17:

Re: [U-Boot] [PATCH v1 0/3] Add support for symlink creation in EXT4

2019-01-29 Thread Lukasz Majewski
On Tue, 29 Jan 2019 14:40:08 +0100 Jean-Jacques Hiblot wrote: > This series adds support for the creation of symbolic links on ext4 > file-systems. > The motivation behind this work is to have the ability to "do" the job > of update-alternatives in u-boot. > Firmware on TI's platform are usually

Re: [U-Boot] Two u boot environment on eMMC

2019-01-29 Thread Lukasz Majewski
On Mon, 28 Jan 2019 15:18:15 +0200 Сергей Сахно wrote: > Hello everyone. I have one question: do i can use two u boot > environment on eMMC in raw mode? If yes, how? Do you think of using "redundant" eMMC envs? > ___ > U-Boot mailing list > U-Boot@lis

Re: [U-Boot] [PATCH 1/1] x86: #define CONFIG_LOADADDR 0x1100000

2019-01-29 Thread Heinrich Schuchardt
On 1/24/19 9:18 PM, Heinrich Schuchardt wrote: > arch/x86/dts/qemu-x86_i440fx.dts reserves memory for PCI at 0x100. > Loading via the `dhcp` command to this address leads to a crash on > qemu-x86_64_defconfig. So let's define CONFIG_LOADADDR as 0x110. > > Reported-by: Alexander Graf > Sig

Re: [U-Boot] [PATCH v2 1/2] x86: Add efi runtime reset

2019-01-29 Thread Alexander Graf
On 30.01.19 00:08, Heinrich Schuchardt wrote: > On 1/28/19 4:42 PM, Alexander Graf wrote: >> Our selftest will soon test the actual runtime reset function rather than >> the boot time one. For this, we need to ensure that the runtime version >> actually succeeds on x86 to keep our travis tests wo

Re: [U-Boot] [PATCH v2 1/2] x86: Add efi runtime reset

2019-01-29 Thread Heinrich Schuchardt
On 1/28/19 4:42 PM, Alexander Graf wrote: > Our selftest will soon test the actual runtime reset function rather than > the boot time one. For this, we need to ensure that the runtime version > actually succeeds on x86 to keep our travis tests work. > > So this patch implements an x86 runtime rese

Re: [U-Boot] [PATCH 16/20] imx8m: fix sd to mmc1 and emmc to mmc2 for i.MX8MM

2019-01-29 Thread Lukasz Majewski
Hi Peng, > Since the SD is usdhc2 and eMMC is usdhc3, Is this true on all IMX8M boards? Or is it only on the development kit you do have? My point is that this shall be setup by DTS aliases or maybe by Kconfig option. > this cause mapping problem > for spl_boot_device. So far hard coded them to

Re: [U-Boot] [PATCH 16/20] imx8m: fix sd to mmc1 and emmc to mmc2 for i.MX8MM

2019-01-29 Thread Fabio Estevam
On Tue, Jan 29, 2019 at 8:58 PM Lukasz Majewski wrote: > Is this true on all IMX8M boards? Or is it only on the development kit > you do have? > > My point is that this shall be setup by DTS aliases or maybe by Kconfig > option. Yes, it seems that setting up the alias in the board dts should do

Re: [U-Boot] [PATCH 10/20] imx8m: add clk support for i.MX8MM

2019-01-29 Thread Lukasz Majewski
Hi Peng, > Introduce clk implementation for i.MX8MM, including pll configuration, > pll decoding, ccm configuration. > > Signed-off-by: Peng Fan > --- > arch/arm/include/asm/arch-imx8m/clock.h| 2 + > arch/arm/include/asm/arch-imx8m/clock_imx8mm.h | 387 +++ > arch/arm/mach-im

Re: [U-Boot] [RFC 0/3] dm, efi: integrate efi_disk into DM

2019-01-29 Thread Heinrich Schuchardt
On 1/29/19 5:20 PM, Alexander Graf wrote: > On 01/29/2019 03:59 AM, AKASHI Takahiro wrote: >> This patch set came from the past discussion[1] on my "removable device >> support" patch and is intended to be an attempt to integrate efi_disk >> (more precisely, EFI_BLOCK_IO_PROTOCOL-capable efi object

Re: [U-Boot] [RFC 2/3] efi_loader: associate BLK/PARTITION device to efi_disk

2019-01-29 Thread Heinrich Schuchardt
On 1/29/19 3:59 AM, AKASHI Takahiro wrote: > efi_disk_create() will initialize efi_disk attributes for each device, > either UCLASS_BLK or UCLASS_PARTITION. > > Currently (temporarily), efi_disk_obj structure is embedded into > blk_desc to hold efi-specific attributes. > > Signed-off-by: AKASHI T

  1   2   3   >