Re: [U-Boot] [RFC 4/8] cmd: bootefi: move do_bootefi_bootmgr_exec() forward

2019-03-21 Thread AKASHI Takahiro
On Thu, Mar 21, 2019 at 12:48:53PM +0100, Heinrich Schuchardt wrote: > On 3/5/19 6:53 AM, AKASHI Takahiro wrote: > > This is a preparatory patch. > > > > Signed-off-by: AKASHI Takahiro > > --- > > cmd/bootefi.c | 42 +- > > 1 file changed, 21

Re: [U-Boot] CONFIG_OF_EMBED

2019-03-21 Thread Simon Glass
Hi, On Fri, 22 Mar 2019 at 05:37, Marek Vasut wrote: > > On 3/21/19 5:37 PM, Dalon L Westergreen wrote: > > On Thu, 2019-03-21 at 16:48 +0100, Marek Vasut wrote: > >> On 3/21/19 3:33 PM, Dalon L Westergreen wrote: > >>> On Thu, 2019-03-21 at 03:30 +0100, Marek Vasut wrote: > On 3/20/19 9:24

Re: [U-Boot] [RFC 3/8] efi_loader: bootmgr: return pointer and size of buffer in loading

2019-03-21 Thread AKASHI Takahiro
On Thu, Mar 21, 2019 at 12:41:06PM +0100, Heinrich Schuchardt wrote: > On 3/5/19 6:53 AM, AKASHI Takahiro wrote: > > We need to know the size of image loaded so as to be able to use > > load_image() API at do_bootefi_exec() in a later patch. > > > > So change the interface of efi_bootmgr_load(). >

Re: [U-Boot] [PATCH] lib: tiny-printf: Add "%ll" modifier support

2019-03-21 Thread Tom Rini
On Fri, Mar 22, 2019 at 09:28:21AM +0800, Ley Foon Tan wrote: > On Thu, Mar 21, 2019 at 7:22 PM Tom Rini wrote: > > > > On Fri, Mar 22, 2019 at 01:12:14AM +0800, Ley Foon Tan wrote: > > > > > Add "%ll" modifier support for tiny printf. > > > > > > - Tested on ARM32 and ARM64 systems. > > > -

Re: [U-Boot] [PATCH] lib: tiny-printf: Add "%ll" modifier support

2019-03-21 Thread Ley Foon Tan
On Thu, Mar 21, 2019 at 7:22 PM Tom Rini wrote: > > On Fri, Mar 22, 2019 at 01:12:14AM +0800, Ley Foon Tan wrote: > > > Add "%ll" modifier support for tiny printf. > > > > - Tested on ARM32 and ARM64 systems. > > - Tested "%lld", "%llu", "%llx" and "%p" format with > > minimum and maximum

Re: [U-Boot] [PATCH v2] efi_loader: set image_base and image_size to correct values

2019-03-21 Thread AKASHI Takahiro
On Thu, Mar 21, 2019 at 09:24:46PM +0100, Heinrich Schuchardt wrote: > On 10/11/18 1:11 PM, AKASHI Takahiro wrote: > > Currently, image's image_base points to an address where the image was > > temporarily uploaded for further loading. Since efi_loader relocates > > the image to final destination,

Re: [U-Boot] [PATCH v3 00/11] SMP support for RISC-V

2019-03-21 Thread Atish Patra
On 3/21/19 4:06 PM, Bin Meng wrote: On Thu, Mar 21, 2019 at 11:39 PM Troy Benjegerdes wrote: On Sun, Mar 17, 2019 at 07:28:31PM +0100, Lukas Auer wrote: This patch series adds SMP support for RISC-V to U-Boot. It allows U-Boot to run on multi-hart systems (hart is the RISC-V terminology for

Re: [U-Boot] [PATCH v3 00/11] SMP support for RISC-V

2019-03-21 Thread Bin Meng
On Thu, Mar 21, 2019 at 11:39 PM Troy Benjegerdes wrote: > > On Sun, Mar 17, 2019 at 07:28:31PM +0100, Lukas Auer wrote: > > This patch series adds SMP support for RISC-V to U-Boot. It allows > > U-Boot to run on multi-hart systems (hart is the RISC-V terminology for > > hardware thread). Images

Re: [U-Boot] [PATCH] mtd: spi: Add Macronix MX66U2G45F device

2019-03-21 Thread Marek Vasut
On 3/21/19 5:57 PM, Jagan Teki wrote: > On Fri, Mar 8, 2019 at 3:57 AM Marek Vasut wrote: >> >> Add Macronix MX66U2G45F flash device description. >> This is a 256 MiB part. > > Couldn't find the datasheet on web, do you have a link? Try this, the F seems compatible to the G .

Re: [U-Boot] [linux-sunxi] [PATCH] ARM: HYP/non-sec: Don't enable ARMV7_LPAE for old sunxi kernels

2019-03-21 Thread Jonathan Liu
Hi Jagan, On Fri., 22 Mar. 2019 at 4:05 am, Jagan Teki wrote: > On Tue, Mar 19, 2019 at 11:09 AM Jonathan Liu wrote: > > > > Old sunxi kernels fail to boot with ARMV7_LPAE enabled. > > Any idea why? I don't have relevant stuff with to test this. > I don't know why. It failed to boot

[U-Boot] [PATCH 1/1] efi_selftest: check image_base, image_size

2019-03-21 Thread Heinrich Schuchardt
In efi_selftest_start_image_exit.c test the image_base and image_size are correctly set in the loaded image protocol. Signed-off-by: Heinrich Schuchardt --- Hello Takahiro, this relates to your patch efi_loader: set image_base and image_size to correct values

Re: [U-Boot] [PATCH] arm: timer: sunxi: fix a64 spurious timeout issues

2019-03-21 Thread Oskari Lemmelä
On 3/17/19 11:14 PM, André Przywara wrote: On 17/03/2019 18:41, Oskari Lemmelä wrote: On 3/17/19 6:04 PM, Peter Robinson wrote: On Sun, Mar 17, 2019 at 2:56 PM Oskari Lemmela wrote: Fixes spurious timeouts which have been seen during testing SPI_SUNXI driver. The false timeouts disappear

Re: [U-Boot] [PATCH v2] efi_loader: set image_base and image_size to correct values

2019-03-21 Thread Heinrich Schuchardt
On 10/11/18 1:11 PM, AKASHI Takahiro wrote: > Currently, image's image_base points to an address where the image was > temporarily uploaded for further loading. Since efi_loader relocates > the image to final destination, image_base and image_size should reflect > that. > > This bug was detected

Re: [U-Boot] [PATCH] Revert "cmd: Kconfig: Do not include EEPROM if DM_I2C is used without DM_I2C_COMPAT"

2019-03-21 Thread Simon Goldschmidt
Tom, Am 21.03.2019 um 20:21 schrieb Simon Goldschmidt: Hi Lukasz, Am 18.03.2019 um 08:23 schrieb Lukasz Majewski: On Fri, 15 Mar 2019 20:02:25 +0100 Simon Goldschmidt wrote: Tom, (adding Lukasz as he authored the DM fix 0c07a9b4078d) Am 14.03.2019 um 21:57 schrieb Simon Goldschmidt:

Re: [U-Boot] [PATCHv2 2/2] configs: move CONFIG_SPL_TEXT_BASE to Kconfig

2019-03-21 Thread Simon Goldschmidt
Hi Tom, Am 19.03.2019 um 12:14 schrieb Tom Rini: From: Simon Goldschmidt Moved CONFIG_SPL_TEXT_BASE to common/spl/Kconfig and migrate existing values. Signed-off-by: Simon Goldschmidt [trini: Re-run migration] Signed-off-by: Tom Rini Unfortunately, this clashes with Marek's last

Re: [U-Boot] [PATCH 1/2] Add domain mapping for Pepperl+Fuchs

2019-03-21 Thread Simon Goldschmidt
Hi Wolfgang, Am 24.01.2019 um 13:22 schrieb Tom Rini: On Thu, Jan 24, 2019 at 12:40:14PM +0100, Simon Goldschmidt wrote: On Mon, Aug 13, 2018 at 12:07 PM Simon Goldschmidt wrote: Signed-off-by: Simon Goldschmidt Gentle ping for: https://patchwork.ozlabs.org/patch/956901/

Re: [U-Boot] [PATCH] Revert "cmd: Kconfig: Do not include EEPROM if DM_I2C is used without DM_I2C_COMPAT"

2019-03-21 Thread Simon Goldschmidt
Hi Lukasz, Am 18.03.2019 um 08:23 schrieb Lukasz Majewski: On Fri, 15 Mar 2019 20:02:25 +0100 Simon Goldschmidt wrote: Tom, (adding Lukasz as he authored the DM fix 0c07a9b4078d) Am 14.03.2019 um 21:57 schrieb Simon Goldschmidt: This reverts commit

[U-Boot] [PATCH v3 12/13] p2371-2180: Add support for framebuffer carveouts

2019-03-21 Thread Thierry Reding
From: Thierry Reding If early firmware initialized the display hardware and the display controllers are scanning out a framebuffer (e.g. a splash screen), make sure to pass information about the memory location of that framebuffer to the kernel before booting to avoid the kernel from using that

[U-Boot] [PATCH v3 10/13] fdtdec: test: Add carveout tests

2019-03-21 Thread Thierry Reding
From: Thierry Reding Implement carveout tests for 32-bit and 64-bit builds. Signed-off-by: Thierry Reding --- Changes in v2: - new patch lib/fdtdec_test.c | 152 ++ 1 file changed, 152 insertions(+) diff --git a/lib/fdtdec_test.c

[U-Boot] [PATCH v3 04/13] fdtdec: Implement fdtdec_set_phandle()

2019-03-21 Thread Thierry Reding
From: Thierry Reding This function can be used to set a phandle for a given node. Signed-off-by: Thierry Reding --- Changes in v2: - don't emit deprecated linux,phandle property include/fdtdec.h | 11 +++ lib/fdtdec.c | 7 +++ 2 files changed, 18 insertions(+) diff --git

[U-Boot] [PATCH v3 05/13] fdtdec: Implement fdtdec_add_reserved_memory()

2019-03-21 Thread Thierry Reding
From: Thierry Reding This function can be used to add subnodes in the /reserved-memory node. Reviewed-by: Simon Glass Signed-off-by: Thierry Reding --- Changes in v3: - use fdt_generate_phandle() instead of fdtdec_generate_phandle() - add device tree bindings for /reserved-memory - add

[U-Boot] [PATCH v3 06/13] fdtdec: Implement carveout support functions

2019-03-21 Thread Thierry Reding
From: Thierry Reding The fdtdec_get_carveout() and fdtdec_set_carveout() function can be used to read a carveout from a given node or add a carveout to a given node using the standard device tree bindings (involving reserved-memory nodes and the memory-region property). Reviewed-by: Simon Glass

[U-Boot] [PATCH v3 02/13] fdtdec: Add cpu_to_fdt_{addr, size}() macros

2019-03-21 Thread Thierry Reding
From: Thierry Reding These macros are useful for converting the endianness of variables of type fdt_addr_t and fdt_size_t. Reviewed-by: Simon Glass Signed-off-by: Thierry Reding --- Changes in v2: - add Reviewed-by from Simon include/fdtdec.h | 4 1 file changed, 4 insertions(+) diff

[U-Boot] [PATCH v3 07/13] fdtdec: Add Kconfig symbol for tests

2019-03-21 Thread Thierry Reding
From: Thierry Reding Runtime tests are provided as a test_fdtdec command implementation. Add a Kconfig symbol that allows this command to be built so that the tests can be used. Signed-off-by: Thierry Reding --- Changes in v2: - new patch lib/Kconfig | 4 1 file changed, 4 insertions(+)

[U-Boot] [PATCH v3 09/13] fdtdec: test: Use compound statement macros

2019-03-21 Thread Thierry Reding
From: Thierry Reding This eliminates the need for intermediate helper functions and allow the macros to return a value so that it can be used subsequently. Signed-off-by: Thierry Reding --- Changes in v2: - new patch lib/fdtdec_test.c | 64 --- 1

[U-Boot] [PATCH v3 01/13] libfdt: Add phandle generation helper

2019-03-21 Thread Thierry Reding
From: Thierry Reding The new fdt_generate_phandle() function can be used to generate a new, unused phandle given a specific device tree blob. The implementation is somewhat naive in that it simply walks the entire device tree to find the highest phandle value and then returns a phandle value one

[U-Boot] [PATCH v3 13/13] p2771-0000: Add support for framebuffer carveouts

2019-03-21 Thread Thierry Reding
From: Thierry Reding If early firmware initialized the display hardware and the display controllers are scanning out a framebuffer (e.g. a splash screen), make sure to pass information about the memory location of that framebuffer to the kernel before booting to avoid the kernel from using that

[U-Boot] [PATCH v3 08/13] fdtdec: test: Fix build warning

2019-03-21 Thread Thierry Reding
From: Thierry Reding Hide the declaration of the "fd" variable When not building a DEBUG configuration, to avoid the variable being unused. Signed-off-by: Thierry Reding --- Changes in v2: - new patch lib/fdtdec_test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/fdtdec_test.c

[U-Boot] [PATCH v3 11/13] sandbox: Enable fdtdec tests

2019-03-21 Thread Thierry Reding
From: Thierry Reding Enable fdtdec tests on sandbox configurations so that they can be run to validate the fdtdec implementation. Signed-off-by: Thierry Reding --- Changes in v2: - new patch configs/sandbox64_defconfig | 1 + configs/sandbox_defconfig | 1 + 2 files changed, 2

[U-Boot] [PATCH v3 03/13] fdtdec: Add fdt_{addr, size}_unpack() helpers

2019-03-21 Thread Thierry Reding
From: Thierry Reding These helpers can be used to unpack variables of type fdt_addr_t and fdt_size_t into a pair of 32-bit variables. This is useful in cases where such variables need to be written to properties (such as "reg") of a device tree node where they need to be split into cells.

[U-Boot] [PATCH v3 00/13] ARM: tegra: Add support for framebuffer carveouts

2019-03-21 Thread Thierry Reding
From: Thierry Reding The series adds a couple of helpers that allow passing framebuffer carveouts to the kernel on boot. This is required in order to reserve the memory region that the framebuffer resides in and that the display controller is scanning out from, so that it is not reused by the

[U-Boot] [PATCH v3 19/19] ARM: tegra: Import cbootargs value from cboot DTB

2019-03-21 Thread Thierry Reding
From: Thierry Reding Read the boot arguments passed by cboot via the /chosen/bootargs property and store it in the cbootargs environment variable. Signed-off-by: Thierry Reding --- arch/arm/mach-tegra/cboot.c | 47 + 1 file changed, 47 insertions(+) diff

[U-Boot] [PATCH v3 18/19] lib: Implement strndup()

2019-03-21 Thread Thierry Reding
From: Thierry Reding Signed-off-by: Thierry Reding --- include/linux/string.h | 1 + lib/string.c | 23 +++ 2 files changed, 24 insertions(+) diff --git a/include/linux/string.h b/include/linux/string.h index 36066207392e..5d63be4ce5b0 100644 ---

[U-Boot] [PATCH v3 06/19] ARM: tegra: Guard powergate code with a Kconfig symbol

2019-03-21 Thread Thierry Reding
From: Thierry Reding Powergate code is not relevant on all Tegra SoC generations, so guard it with a Kconfig symbol that can be selected by the generations that need it. This is in preparation for unifying Tegra186 code with the code used on older generations. Signed-off-by: Thierry Reding

[U-Boot] [PATCH v3 14/19] ARM: tegra: Implement cboot_get_ethaddr()

2019-03-21 Thread Thierry Reding
From: Thierry Reding This function will attempt to look up an ethernet address in the DTB that was passed in from cboot. It does so by first trying to locate the primary ethernet device for the board (identified by the "ethernet" alias) and if found, reads the "local-mac-address" property. If

[U-Boot] [PATCH v3 05/19] ARM: tegra: Guard pin controller code with a Kconfig symbol

2019-03-21 Thread Thierry Reding
From: Thierry Reding Pin controller code is not relevant on all Tegra SoC generations, so guard it with a Kconfig symbol that can be selected by the generations that need it. This is in preparation for unifying Tegra186 code with the code used on older generations. Signed-off-by: Thierry

[U-Boot] [PATCH v3 12/19] ARM: tegra: Unify Tegra186 builds

2019-03-21 Thread Thierry Reding
From: Thierry Reding Tegra186 build are currently dealt with in very special ways, which is because Tegra186 is fundamentally different in many respects. It is no longer necessary to do many of the low-level programming because early boot firmware will already have taken care of it.

[U-Boot] [PATCH v3 16/19] p2371-2180: Pass Ethernet MAC to the kernel

2019-03-21 Thread Thierry Reding
From: Thierry Reding Pass the ethernet MAC address to the kernel upon boot. This passes both the local-mac-address property (as passed to U-Boot from cboot) and the currently set MAC address via the mac-address property. The latter will only be set if it is different from the address that was

[U-Boot] [PATCH v3 15/19] ARM: tegra: Enable position independent build for 64-bit

2019-03-21 Thread Thierry Reding
From: Thierry Reding Note that U-Boot is always chainloaded from cboot starting with L4T release 28. cboot always loads U-Boot to a fixed address, so making the builds position independent isn't strictly necessary. However, position independent builds can be convenient because if U-Boot is ever

[U-Boot] [PATCH v3 17/19] p2771-0000: Pass Ethernet MAC to the kernel

2019-03-21 Thread Thierry Reding
From: Thierry Reding Pass the ethernet MAC address to the kernel upon boot. This passes both the local-mac-address property (as passed to U-Boot from cboot) and the currently set MAC address via the mac-address property. The latter will only be set if it is different from the address that was

[U-Boot] [PATCH v3 13/19] ARM: tegra: Implement cboot_save_boot_params() in C

2019-03-21 Thread Thierry Reding
From: Thierry Reding This is easier to deal with and works just as well for this simple function. Signed-off-by: Thierry Reding --- arch/arm/mach-tegra/Makefile | 2 +- arch/arm/mach-tegra/cboot.c| 12 arch/arm/mach-tegra/cboot_ll.S | 20 3 files

[U-Boot] [PATCH v3 02/19] ARM: tegra: Guard clock code with a Kconfig symbol

2019-03-21 Thread Thierry Reding
From: Thierry Reding Clock code is not relevant on all Tegra SoC generations, so guard it with a Kconfig symbol that can be selected by the generations that need it. This is in preparation for unifying Tegra186 code with the code used on older generations. Signed-off-by: Thierry Reding ---

[U-Boot] [PATCH v3 09/19] ARM: tegra: Support TZ-only access to PMC

2019-03-21 Thread Thierry Reding
From: Thierry Reding Some devices may restrict access to the PMC to TrustZone software only. Non-TZ software can detect this and use SMC calls to the firmware that runs in the TrustZone to perform accesses to PMC registers. Note that this also fixes reset_cpu() and the enterrcm command on

[U-Boot] [PATCH v3 07/19] ARM: tegra: Fix save_boot_params() prototype

2019-03-21 Thread Thierry Reding
From: Thierry Reding The save_boot_params() function takes as its first four arguments the first four registers. On 32-bit ARM these are r0, r1, r2 and r3, all of which are 32 bits wide. However, on 64-bit ARM thene registers are x0, x1, x2 and x3, all of which are 64 bits wide. In order to

[U-Boot] [PATCH v3 10/19] ARM: tegra: Workaround UDC boot issues only if necessary

2019-03-21 Thread Thierry Reding
From: Thierry Reding Resetting the USB device controller on boot is only necessary if the SoC actually has a UDC controller and U-Boot enables support for it. All the Tegra boards support UDC via the ChipIdea UDC driver, so make the UDC on boot workaround depend on the ChipIdea UDC driver. This

[U-Boot] [PATCH v3 08/19] ARM: tegra: Allow boards to override boot target devices

2019-03-21 Thread Thierry Reding
From: Thierry Reding Boards may not support all the boot target devices in the default list for Tegra devices. Allow a board to override the list and default to the standard list only if the board hasn't specified one itself. Signed-off-by: Thierry Reding ---

[U-Boot] [PATCH v3 03/19] ARM: tegra: Guard GP pad control code with a Kconfig symbol

2019-03-21 Thread Thierry Reding
From: Thierry Reding The GP pad control code is not relevant on all Tegra SoC generations, so guard it with a Kconfig symbol that can be selected by the generations that need it. This is in preparation for unifying Tegra186 code with the code used on older generations. Signed-off-by: Thierry

[U-Boot] [PATCH v3 11/19] ARM: tegra: Restore DRAM bank count

2019-03-21 Thread Thierry Reding
From: Thierry Reding Commit 86cf1c82850f ("configs: Migrate CONFIG_NR_DRAM_BANKS") reduced the number of DRAM banks supported by U-Boot from 1026 to 8 on P2771-000 boards. However, as explained in commit a9819b9e33bd ("ARM: tegra: p2771-000: increase max DRAM bank count"), the platform can have

[U-Boot] [PATCH v3 04/19] ARM: tegra: Guard memory controller code with a Kconfig symbol

2019-03-21 Thread Thierry Reding
From: Thierry Reding Memory controller code is not relevant on all Tegra SoC generations, so guard it with a Kconfig symbol that can be selected by the generations that need it. This is in preparation for unifying Tegra186 code with the code used on older generations. Signed-off-by: Thierry

[U-Boot] [PATCH v3 01/19] ARM: tegra: Use common header for PMU declarations

2019-03-21 Thread Thierry Reding
From: Thierry Reding There's no need to replicate the pmu.h header file for every Tegra SoC generation. Use a single header that is shared across generations. Signed-off-by: Thierry Reding --- .../include/asm/{arch-tegra20 => arch-tegra}/pmu.h | 6 +++---

[U-Boot] [PATCH v3 00/19] ARM: tegra: Miscellaneous improvements

2019-03-21 Thread Thierry Reding
From: Thierry Reding The bulk of these changes are an effort to unify Tegra186 builds with builds of prior 64-bit Tegra generations. On top of that there are various improvements that allow data (such as the MAC address and boot arguments) to be passed through from early firmware to the kernel

[U-Boot] [PATCH 2/2] ARM: tegra: Remove disp1 clock initialization on Tegra210

2019-03-21 Thread Thierry Reding
From: Thierry Reding pll_c is not a valid parent for the disp1 clock, so trying to set it will fail. Given that display is not used in U-Boot, remove the init table entry so that disp1 will keep its default parent (clk_m). Signed-off-by: Thierry Reding --- arch/arm/mach-tegra/tegra210/clock.c

[U-Boot] [PATCH 1/2] ARM: tegra: Fix mux type for disp1 and disp2 clocks on Tegra210

2019-03-21 Thread Thierry Reding
From: Thierry Reding On Tegra210 the parents for the disp1 and disp2 clocks are slightly different from earlier chips. Only pll_p, pll_d_out0, pll_d2_out0 and clk_m are valid parents (technically pll_d_out is as well, but U-Boot doesn't know anything about it). Fix up the type name and the mux

Re: [U-Boot] [PATCHv2 1/2] ti: keystone2: Move CONFIG_ISW_ENTRY_ADDR to a common place

2019-03-21 Thread Tom Rini
On Thu, Mar 21, 2019 at 11:02:37AM +0530, Lokesh Vutla wrote: > Hi Tom, > > On 20/03/19 8:09 PM, Tom Rini wrote: > > On Wed, Mar 20, 2019 at 07:03:52PM +0530, Lokesh Vutla wrote: > >> > >> > >> On 19/03/19 4:44 PM, Tom Rini wrote: > >>> The ISW_ENTRY_ADDR Kconfig option under mach-omap2 isn't a

Re: [U-Boot] [linux-sunxi] [PATCH] ARM: HYP/non-sec: Don't enable ARMV7_LPAE for old sunxi kernels

2019-03-21 Thread Jagan Teki
On Tue, Mar 19, 2019 at 11:09 AM Jonathan Liu wrote: > > Old sunxi kernels fail to boot with ARMV7_LPAE enabled. Any idea why? I don't have relevant stuff with to test this. ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH] mtd: spi: Add Macronix MX66U2G45F device

2019-03-21 Thread Jagan Teki
On Fri, Mar 8, 2019 at 3:57 AM Marek Vasut wrote: > > Add Macronix MX66U2G45F flash device description. > This is a 256 MiB part. Couldn't find the datasheet on web, do you have a link? ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH 2/9] riscv: Add a SYSCON driver for Andestech's PLIC

2019-03-21 Thread Troy Benjegerdes
> > > > > > > > Probably it makes more sense to put this to arch/riscv/cpu/ax25/Kconfig? > > > > > > I just refer to SIFIVE_CLINT. It also not make sense to place here, right > > > ? > > > > Maybe, but since the cpu directory is renamed to 'generic', I am not > > sure moving to that directory is

[U-Boot] [RFC v2 0/2] arm64: zynqmp: pass a PMUFW config object

2019-03-21 Thread Luca Ceresoli
Hi, a long-standing issue in the ZynqMP users community is the management on the PMU firmware configuration object when U-Boot SPL is used. The Platform Management Unit (PMU) needs a configuration object (cfg obj) to know how to operate the SoC. When using the "Xilinx workflow", the Xilinx FSBL

[U-Boot] [RFC v2 1/2] zynqmp: add minimal include files to build a pm_cfg_obj.c

2019-03-21 Thread Luca Ceresoli
A following commit will allow U-Boot to pass a configuration object to the ZynqMP PMU firmware. This configuration object is generated by Xilinx tools in the form of a C file (pm_cfg_obj.c), which #includes a few headers with constants definitions. In order to allow pm_cfg_obj.c to build, include

[U-Boot] [RFC v2 2/2] arm64: zynqmp: spl: install a PMU firmware config object at runtime

2019-03-21 Thread Luca Ceresoli
Optionally allow U-Boot to load at the PMU firmware configuration object into the Power Management Unit (PMU) on Xilinx ZynqMP. The configuration object is required by the PMU FW to enable most SoC peripherals. So far the only way to boot using U-Boot SPL was to hard-code the configuration object

[U-Boot] [PULL] u-boot-socfpga/master

2019-03-21 Thread Marek Vasut
The following changes since commit a00d15757d7a513e410f15f2f910cb5261a3: Merge git://git.denx.de/u-boot-marvell (2019-03-19 19:58:48 -0400) are available in the Git repository at: git://git.denx.de/u-boot-socfpga.git master for you to fetch changes up to

Re: [U-Boot] [PATCH v3 00/11] SMP support for RISC-V

2019-03-21 Thread Troy Benjegerdes
On Sun, Mar 17, 2019 at 07:28:31PM +0100, Lukas Auer wrote: > This patch series adds SMP support for RISC-V to U-Boot. It allows > U-Boot to run on multi-hart systems (hart is the RISC-V terminology for > hardware thread). Images passed to bootm will be started on all harts. > The bootm command is

Re: [U-Boot] [PATCH 2/2] armv8: ls1088a: add icid setup for platform devices

2019-03-21 Thread Laurentiu Tudor
On 21.03.2019 17:10, Horia Geanta wrote: > On 3/21/2019 2:42 PM, Tudor Laurentiu-B10716 wrote: >> Hi Horia, >> >> On 21.03.2019 12:36, Horia Geanta wrote: >>> On 3/20/2019 4:31 PM, laurentiu.tu...@nxp.com wrote: #define SET_SEC_QI_ICID(streamid) \ - SET_ICID_ENTRY("fsl,sec-v4.0",

Re: [U-Boot] [PATCH 00/11] Fix Ethernet boot in am335x

2019-03-21 Thread Andrew F. Davis
On 3/21/19 10:22 AM, Andrew F. Davis wrote: > On 3/18/19 3:24 AM, Faiz Abbas wrote: >> The following patches fix ethernet boot in am335x. >> >> Enabling OF_CONTROL in SPL makes it overflow the sram size. To avoid > > If you are overflowing SRAM on the non-HS devices you are even more >

Re: [U-Boot] [PATCH 00/11] Fix Ethernet boot in am335x

2019-03-21 Thread Andrew F. Davis
On 3/18/19 3:24 AM, Faiz Abbas wrote: > The following patches fix ethernet boot in am335x. > > Enabling OF_CONTROL in SPL makes it overflow the sram size. To avoid If you are overflowing SRAM on the non-HS devices you are even more constrained on HS, you don't need an HS to test, just build for

Re: [U-Boot] [PATCH 2/2] armv8: ls1088a: add icid setup for platform devices

2019-03-21 Thread Horia Geanta
On 3/21/2019 2:42 PM, Tudor Laurentiu-B10716 wrote: > Hi Horia, > > On 21.03.2019 12:36, Horia Geanta wrote: >> On 3/20/2019 4:31 PM, laurentiu.tu...@nxp.com wrote: >>> #define SET_SEC_QI_ICID(streamid) \ >>> - SET_ICID_ENTRY("fsl,sec-v4.0", streamid, \ >>> + SET_ICID_ENTRY("fsl,sec-v4.0",

[U-Boot] [PATCH] pico-imx6ul: Fix eMMC boot after DM_MMC conversion

2019-03-21 Thread Fabio Estevam
After the DM_MMC conversion the following eMMC boot error is observed: U-Boot SPL 2019.04-rc4 (Mar 20 2019 - 18:53:28 +) Trying to boot from MMC1 MMC Device 0 not found spl: could not find mmc device 0. error: -19 SPL: failed to boot from all boot devices ### ERROR ### Please RESET the board

[U-Boot] [PATCH 8/8] bcm963158: enable led support

2019-03-21 Thread Philippe Reynes
Enable the led support in the configuration of the board bcm963158. Signed-off-by: Philippe Reynes --- configs/bcm963158_ram_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/bcm963158_ram_defconfig b/configs/bcm963158_ram_defconfig index fc55e98..c93a8f6 100644 ---

[U-Boot] [PATCH 5/8] led: bcm6858: allow to use this driver on ARCH_963158

2019-03-21 Thread Philippe Reynes
Allow the led bcm6858 driver to be used on bcm63158. They have the same led controller. Signed-off-by: Philippe Reynes --- drivers/led/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/led/Kconfig b/drivers/led/Kconfig index 4c8582d..5643939 100644 ---

[U-Boot] [PATCH 3/8] dt: bcm968580xref: enable led controller

2019-03-21 Thread Philippe Reynes
Enable the led controller in the device tree of the board bcm968580xref. Signed-off-by: Philippe Reynes --- arch/arm/dts/bcm968580xref.dts | 48 ++ 1 file changed, 48 insertions(+) diff --git a/arch/arm/dts/bcm968580xref.dts

[U-Boot] [PATCH 6/8] dt: bcm63158: add led controller

2019-03-21 Thread Philippe Reynes
Add the led controller in the bcm63158 device tree. Signed-off-by: Philippe Reynes --- arch/arm/dts/bcm63158.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/dts/bcm63158.dtsi b/arch/arm/dts/bcm63158.dtsi index 6a3fbc9..0967a3d 100644 --- a/arch/arm/dts/bcm63158.dtsi +++

[U-Boot] [PATCH 4/8] bcm968580xref: enable led support

2019-03-21 Thread Philippe Reynes
Enable the led support in the configuration of the board bcm968580xref. Signed-off-by: Philippe Reynes --- configs/bcm968580xref_ram_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/bcm968580xref_ram_defconfig b/configs/bcm968580xref_ram_defconfig index e8cb3a0..887ccb8

[U-Boot] [PATCH 7/8] dt: bcm963158: enable led controller

2019-03-21 Thread Philippe Reynes
Enable the led controller in the device tree of the board bcm963158. Signed-off-by: Philippe Reynes --- arch/arm/dts/bcm963158.dts | 49 ++ 1 file changed, 49 insertions(+) diff --git a/arch/arm/dts/bcm963158.dts b/arch/arm/dts/bcm963158.dts index

[U-Boot] [PATCH 1/8] led: add initial support for bcm6858

2019-03-21 Thread Philippe Reynes
The driver add the support of the led IP on bcm6858. This led IP can drive up to 32 leds, and can handle blinking. Signed-off-by: Philippe Reynes --- doc/device-tree-bindings/leds/leds-bcm6858.txt | 51 + drivers/led/Kconfig| 7 + drivers/led/Makefile

[U-Boot] [PATCH 2/8] dt: bcm6858: add led controller

2019-03-21 Thread Philippe Reynes
Add the led controller in the bcm6858 device tree. Signed-off-by: Philippe Reynes --- arch/arm/dts/bcm6858.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/dts/bcm6858.dtsi b/arch/arm/dts/bcm6858.dtsi index 23b80c6..0359417 100644 --- a/arch/arm/dts/bcm6858.dtsi +++

[U-Boot] Please pull from u-boot-i2c

2019-03-21 Thread Heiko Schocher
Hello Tom, please pull from u-boot-i2c.git master The following changes since commit 2e8092d94f40a5692baf3ec768ce3216a7bf032a: Merge branch 'master' of git://git.denx.de/u-boot-sunxi (2019-03-11 15:48:57 -0400) are available in the Git repository at: git://git.denx.de/u-boot-i2c.git

Re: [U-Boot] [PATCH 2/2] armv8: ls1088a: add icid setup for platform devices

2019-03-21 Thread Laurentiu Tudor
Hi Horia, On 21.03.2019 12:36, Horia Geanta wrote: > On 3/20/2019 4:31 PM, laurentiu.tu...@nxp.com wrote: >> +struct icid_id_table icid_tbl[] = { >> +SET_SDHC_ICID(FSL_SDMMC_STREAM_ID), >> +SET_USB_ICID(1, "snps,dwc3", FSL_USB1_STREAM_ID), >> +SET_USB_ICID(2, "snps,dwc3",

Re: [U-Boot] [PATCH 2/2] armv8: ls1088a: add icid setup for platform devices

2019-03-21 Thread Laurentiu Tudor
Hi Horia, On 21.03.2019 12:36, Horia Geanta wrote: > On 3/20/2019 4:31 PM, laurentiu.tu...@nxp.com wrote: >> +struct icid_id_table icid_tbl[] = { >> +SET_SDHC_ICID(FSL_SDMMC_STREAM_ID), >> +SET_USB_ICID(1, "snps,dwc3", FSL_USB1_STREAM_ID), >> +SET_USB_ICID(2, "snps,dwc3",

Re: [U-Boot] [PATCH 2/2] armv8: ls1088a: add icid setup for platform devices

2019-03-21 Thread Laurentiu Tudor
Hi Horia, On 21.03.2019 12:36, Horia Geanta wrote: > On 3/20/2019 4:31 PM, laurentiu.tu...@nxp.com wrote: >> +struct icid_id_table icid_tbl[] = { >> +SET_SDHC_ICID(FSL_SDMMC_STREAM_ID), >> +SET_USB_ICID(1, "snps,dwc3", FSL_USB1_STREAM_ID), >> +SET_USB_ICID(2, "snps,dwc3",

Re: [U-Boot] [PATCH v2 4/5] arm: socfpga: imply/default common config options

2019-03-21 Thread Simon Goldschmidt
Hi, On Thu, Mar 21, 2019 at 5:29 AM Masahiro Yamada wrote: > > Hi Simon, > > Sorry, I completely missed this thread. No problem, this is not a too pressing issue, yet, since it's for the next merge window :-) > > On Wed, Mar 20, 2019 at 7:40 PM Simon Goldschmidt > wrote: > > > > Hi Mrek, > >

Re: [U-Boot] [PATCH v2 0/6] Update Stratix 10 SDRAM driver

2019-03-21 Thread Marek Vasut
On 3/21/19 6:23 PM, Ley Foon Tan wrote: > This patchset update Stratix 10 SDRAM driver to support: > - Multi-banks memory > - Stratix 10 support up to 2 memory banks: > Bank 0: Address 0, size 2GB > Bank 1: Address 0x1, size 124GB > - Add warm reset boot checking function

Re: [U-Boot] [PATCH 06/11] arm: at91: Enable watchdog support

2019-03-21 Thread Eugen.Hristev
On 21.03.2019 14:00, Stefan Roese wrote: > External E-Mail > > > On 21.03.19 11:23, eugen.hris...@microchip.com wrote: >> >> >> On 19.03.2019 17:56, Stefan Roese wrote: >>> External E-Mail >>> >>> >>> This patch enables and starts the watchdog on the AT91 platform if >>> configured. Currently

Re: [U-Boot] [PATCH 06/11] arm: at91: Enable watchdog support

2019-03-21 Thread Stefan Roese
On 21.03.19 11:23, eugen.hris...@microchip.com wrote: On 19.03.2019 17:56, Stefan Roese wrote: External E-Mail This patch enables and starts the watchdog on the AT91 platform if configured. Currently the WD timeout is configured to 16 seconds, which is the longest value for this timer.

Re: [U-Boot] [RFC 4/8] cmd: bootefi: move do_bootefi_bootmgr_exec() forward

2019-03-21 Thread Heinrich Schuchardt
On 3/5/19 6:53 AM, AKASHI Takahiro wrote: > This is a preparatory patch. > > Signed-off-by: AKASHI Takahiro > --- > cmd/bootefi.c | 42 +- > 1 file changed, 21 insertions(+), 21 deletions(-) > > diff --git a/cmd/bootefi.c b/cmd/bootefi.c > index

Re: [U-Boot] [RFC 3/8] efi_loader: bootmgr: return pointer and size of buffer in loading

2019-03-21 Thread Heinrich Schuchardt
On 3/5/19 6:53 AM, AKASHI Takahiro wrote: > We need to know the size of image loaded so as to be able to use > load_image() API at do_bootefi_exec() in a later patch. > > So change the interface of efi_bootmgr_load(). > > Signed-off-by: AKASHI Takahiro > --- > include/efi_loader.h | 5

Re: [U-Boot] [PATCH] hikey: Take peripherals out of reset during board init

2019-03-21 Thread Daniel Thompson
On Wed, Mar 20, 2019 at 11:56:58AM +0530, Manivannan Sadhasivam wrote: > Hi Peter, > > On Tue, Mar 19, 2019 at 11:29:01AM +, Peter Griffin wrote: > > Hi Mani, > > > > This looks like a bug in the Linux kernel. The kernel driver should be > > correctly > > handling the reset lines of the I2C

Re: [U-Boot] [PATCH] lib: tiny-printf: Add "%ll" modifier support

2019-03-21 Thread Tom Rini
On Fri, Mar 22, 2019 at 01:12:14AM +0800, Ley Foon Tan wrote: > Add "%ll" modifier support for tiny printf. > > - Tested on ARM32 and ARM64 systems. > - Tested "%lld", "%llu", "%llx" and "%p" format with > minimum and maximum ranges. Compared tiny printf > output with full printf. > >

Re: [U-Boot] [PATCH v2 1/2] distro_bootcmd: add spi flash boot command

2019-03-21 Thread Jagan Teki
On Tue, Feb 19, 2019 at 9:57 PM Oskari Lemmelä wrote: > > Hi, > > On 9.2.2019 17.50, Jagan Teki wrote: > > On Thu, Jan 31, 2019 at 12:51 AM Oskari Lemmela wrote: > >> Add a boot command to distro boot to support load FIT image > >> from SPI flash. > > Add some info about why default offsets

Re: [U-Boot] [PATCH 1/2] armv8: fsl-layerscape: add missing sec jr base address defines

2019-03-21 Thread Horia Geanta
On 3/20/2019 4:31 PM, laurentiu.tu...@nxp.com wrote: > From: Laurentiu Tudor > > Add defines for all the SEC job rings base addresses. > > Signed-off-by: Laurentiu Tudor Reviewed-by: Horia Geantă Thanks, Horia ___ U-Boot mailing list

Re: [U-Boot] [PATCH 2/2] armv8: ls1088a: add icid setup for platform devices

2019-03-21 Thread Horia Geanta
On 3/20/2019 4:31 PM, laurentiu.tu...@nxp.com wrote: > +struct icid_id_table icid_tbl[] = { > + SET_SDHC_ICID(FSL_SDMMC_STREAM_ID), > + SET_USB_ICID(1, "snps,dwc3", FSL_USB1_STREAM_ID), > + SET_USB_ICID(2, "snps,dwc3", FSL_USB2_STREAM_ID), > + SET_SATA_ICID(1, "fsl,ls1088a-ahci",

Re: [U-Boot] [PATCH 06/11] arm: at91: Enable watchdog support

2019-03-21 Thread Eugen.Hristev
On 19.03.2019 17:56, Stefan Roese wrote: > External E-Mail > > > This patch enables and starts the watchdog on the AT91 platform if > configured. Currently the WD timeout is configured to 16 seconds, > which is the longest value for this timer. > > Signed-off-by: Stefan Roese > Cc: Heiko

Re: [U-Boot] [PATCH 8/9] riscv: dts: ae350 support SMP.

2019-03-21 Thread Rick Chen
Bin Meng 於 2019年3月21日 週四 下午6:12寫道: > > Hi Rick, > > On Thu, Mar 21, 2019 at 5:37 PM Rick Chen wrote: > > > > Bin Meng 於 2019年3月21日 週四 下午5:15寫道: > > > > > > Hi Rick, > > > > > > On Thu, Mar 21, 2019 at 4:51 PM Rick Chen wrote: > > > > > > > > Hi Bin > > > > > > > > Bin Meng 於 2019年3月20日 週三

Re: [U-Boot] [PATCH 8/9] riscv: dts: ae350 support SMP.

2019-03-21 Thread Bin Meng
Hi Rick, On Thu, Mar 21, 2019 at 5:37 PM Rick Chen wrote: > > Bin Meng 於 2019年3月21日 週四 下午5:15寫道: > > > > Hi Rick, > > > > On Thu, Mar 21, 2019 at 4:51 PM Rick Chen wrote: > > > > > > Hi Bin > > > > > > Bin Meng 於 2019年3月20日 週三 下午3:22寫道: > > > > > > > > Hi Rick, > > > > > > > > On Tue, Mar 19,

[U-Boot] [PATCH] ARM: socfpga: Build sfp image only for Gen5 and Arria10 devices

2019-03-21 Thread Dalon Westergreen
From: Dalon Westergreen The sfp file is only valid for Gen5 (Cyclone5 & Arria5) and Arria10 devices. The file should only be built for these devices. Signed-off-by: Dalon Westergreen --- Kconfig | 3 ++- scripts/Makefile.spl | 6 +- 2 files changed, 7 insertions(+), 2

Re: [U-Boot] [PATCH] configs: icorem6: Use imx6 cratch register for bootcount

2019-03-21 Thread Shyam Saini
Hi Stefano, Thanks a lot for reviewing this > nitpick: cratch ==> scratch > > On 21/03/19 09:35, Jagan Teki wrote: > > SRAM address used for bootcount on exiting code is erasing > > previous count value when system reset from Linux. So use > > the dedicated imx6 scratch register, GPR2 to

Re: [U-Boot] [PATCH 8/9] riscv: dts: ae350 support SMP.

2019-03-21 Thread Rick Chen
Bin Meng 於 2019年3月21日 週四 下午5:15寫道: > > Hi Rick, > > On Thu, Mar 21, 2019 at 4:51 PM Rick Chen wrote: > > > > Hi Bin > > > > Bin Meng 於 2019年3月20日 週三 下午3:22寫道: > > > > > > Hi Rick, > > > > > > On Tue, Mar 19, 2019 at 5:13 PM Andes wrote: > > > > > > > > From: Rick Chen > > > > > > > > > >

[U-Boot] [PATCH v2 4/6] arm: dts: Stratix10: Modify stratix10 socdk memory node

2019-03-21 Thread Ley Foon Tan
The stratix10 socdk ships with 4GB of memory. Modify the device tree to represent this. Note that to access 4GB of memory in Stratix 10, due to the IO space from 2GB to 4GB, we use the fact that the DDR controller ignores upper address bits outside of the configured DRAM's size. This means that

[U-Boot] [PATCH v2 6/6] ddr: altera: Stratix10: Add ECC memory scrubbing

2019-03-21 Thread Ley Foon Tan
Scrub memory content if ECC is enabled and it is not from warm reset boot. Enable icache and dcache before scrub memory and use "DC ZVA" instruction to clear memory to zeros. This instruction writes a cache line at a time and it can prevent false ECC error trigger if write cache line partially.

[U-Boot] [PATCH v2 5/6] arm: socfpga: stratix10: Add cpu_has_been_warmreset()

2019-03-21 Thread Ley Foon Tan
Add helper function cpu_has_been_warmreset() to check if CPU is from warm reset boot. Signed-off-by: Ley Foon Tan --- arch/arm/mach-socfpga/include/mach/reset_manager_s10.h | 3 +++ arch/arm/mach-socfpga/reset_manager_s10.c | 9 + 2 files changed, 12 insertions(+) diff

[U-Boot] [PATCH v2 2/6] ddr: altera: Stratix10: Add multi-banks DRAM size check

2019-03-21 Thread Ley Foon Tan
Stratix 10 maps dram from 0 to 128GB. There is a 2GB hole in the memory for peripherals and other IO from 2GB to 4GB. However the dram controller ignores upper address bits for smaller dram configurations. Example: a 4GB dram maps to multiple locations, every 4GB on the address. Signed-off-by:

  1   2   >