[U-Boot] [PATCH 00/19] riscv: Adding RISC-V CPU and timer driver

2018-11-13 Thread Bin Meng
This adds DM drivers to support RISC-V CPU and timer. The U-Boot RISC-V SBI support is still working in progress. Some patches in this series like adding CSR numbers, exception numbers, are prerequisites for the SBI implementation, but it does no harm to include them as part of this series. This

[U-Boot] [PATCH 01/19] riscv: add Kconfig entries for the code model

2018-11-13 Thread Bin Meng
From: Lukas Auer RISC-V has two code models, medium low (medlow) and medium any (medany). Medlow limits addressable memory to a single 2 GiB range between the absolute addresses -2 GiB and +2 GiB. Medany limits addressable memory to any single 2 GiB address range. By default, medlow is selected

[U-Boot] [PATCH 02/19] dm: cpu: Add timebase frequency to the platdata

2018-11-13 Thread Bin Meng
This adds a timebase_freq member to the 'struct cpu_platdata', to hold the "timebase-frequency" value in the cpu or /cpus node. Signed-off-by: Bin Meng --- include/cpu.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/cpu.h b/include/cpu.h index 367c5f4..176a276 100644 --- a/incl

[U-Boot] [PATCH 05/19] riscv: Add a SYSCON driver for Core Local Interruptor

2018-11-13 Thread Bin Meng
This adds U-Boot syscon driver for RISC-V Core Local Interruptor (CLINT). The CLINT block holds memory-mapped control and status registers associated with software and timer interrupts. 3 APIs are provided for U-Boot to implement Supervisor Binary Interface (SBI) as defined by the RISC-V privilege

[U-Boot] [PATCH 03/19] riscv: qemu: Create a simple-bus driver for the soc node

2018-11-13 Thread Bin Meng
To enumerate devices on the /soc/ node, create a "simple-bus" driver to match "riscv-virtio-soc". Signed-off-by: Bin Meng --- arch/riscv/cpu/qemu/cpu.c | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/riscv/cpu/qemu/cpu.c b/arch/riscv/cpu/qemu/cpu.c index 6c7a327..221f3a8

[U-Boot] [PATCH 04/19] cpu: Add a RISC-V CPU driver

2018-11-13 Thread Bin Meng
This adds a driver for RISC-V CPU. Note the driver will bind a RISC-V timer driver if "timebase-frequency" property is present in the device tree. Signed-off-by: Bin Meng --- drivers/cpu/Kconfig | 6 +++ drivers/cpu/Makefile| 1 + drivers/cpu/riscv_cpu.c | 117 ++

[U-Boot] [PATCH 11/19] riscv: Add exception codes for xcause register

2018-11-13 Thread Bin Meng
This adds all exception codes in encoding.h. Signed-off-by: Bin Meng --- arch/riscv/include/asm/encoding.h | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/riscv/include/asm/encoding.h b/arch/riscv/include/asm/encoding.h index 0c47c53..85a11c4 100644 --- a/arch/riscv/i

[U-Boot] [PATCH 07/19] riscv: kconfig: Allow platform to specify Kconfig options

2018-11-13 Thread Bin Meng
At present there are just two levels of Kconfig option hierarchy in RISC-V. This adds a new level for platform to specify additional options. It is organized in a way that platform-specific options followed by board-specific ones, so that when it comes to the same Kconfig option, board-specific one

[U-Boot] [PATCH 13/19] riscv: Move trap handler codes to mtrap.S

2018-11-13 Thread Bin Meng
Currently the M-mode trap handler codes are in start.S. For future extension, move them to a separate file mtrap.S. Signed-off-by: Bin Meng --- arch/riscv/cpu/Makefile | 2 +- arch/riscv/cpu/mtrap.S | 106 arch/riscv/cpu/start.S | 82 ---

[U-Boot] [PATCH 09/19] riscv: qemu: Probe cpus during boot

2018-11-13 Thread Bin Meng
This calls cpu_probe_all() to probe all available cpus. Signed-off-by: Bin Meng --- arch/riscv/cpu/qemu/Kconfig | 1 + arch/riscv/cpu/qemu/cpu.c | 14 ++ 2 files changed, 15 insertions(+) diff --git a/arch/riscv/cpu/qemu/Kconfig b/arch/riscv/cpu/qemu/Kconfig index ec5d934..e91cf

[U-Boot] [PATCH 06/19] timer: Add driver for RISC-V privileged architecture defined timer

2018-11-13 Thread Bin Meng
RISC-V privileged architecture v1.10 defines a real-time counter, exposed as a memory-mapped machine-mode register - mtime. mtime must run at constant frequency, and the platform must provide a mechanism for determining the timebase of mtime. The mtime register has a 64-bit precision on all RV32, R

[U-Boot] [PATCH 15/19] riscv: Return to previous privilege level after trap handling

2018-11-13 Thread Bin Meng
At present the trap handler returns to M-mode only. Change to returning to previous privilege level instead. Signed-off-by: Bin Meng --- arch/riscv/cpu/mtrap.S | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/riscv/cpu/mtrap.S b/arch/riscv/cpu/mtrap.S index 6c0eac6..c9010c7 100644 ---

[U-Boot] [PATCH 14/19] riscv: Fix context restore before returning from trap handler

2018-11-13 Thread Bin Meng
sp cannot be loaded before restoring other registers. Signed-off-by: Bin Meng --- arch/riscv/cpu/mtrap.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/cpu/mtrap.S b/arch/riscv/cpu/mtrap.S index ba6462f..6c0eac6 100644 --- a/arch/riscv/cpu/mtrap.S +++ b/arch/risc

[U-Boot] [PATCH 08/19] riscv: Enlarge the default SYS_MALLOC_F_LEN

2018-11-13 Thread Bin Meng
Increase the heap size for the pre-relocation stage, so that CPU driver can be loaded. Signed-off-by: Bin Meng --- arch/riscv/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 4292ffd..f020060 100644 --- a/arch/riscv/Kconfig +++ b/arch/

[U-Boot] [PATCH 10/19] riscv: Add CSR numbers

2018-11-13 Thread Bin Meng
The standard RISC-V ISA sets aside a 12-bit encoding space for up to 4096 CSRs. This adds all known CSR numbers as defined in the RISC-V Privileged Architecture Version 1.10. Signed-off-by: Bin Meng --- arch/riscv/include/asm/encoding.h | 219 ++ 1 file chang

[U-Boot] [PATCH 12/19] riscv: Do some basic architecture level cpu initialization

2018-11-13 Thread Bin Meng
Implement arch_cpu_init() to do some basic architecture level cpu initialization, like FPU enable, etc. Signed-off-by: Bin Meng --- arch/riscv/cpu/cpu.c | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/riscv/cpu/cpu.c b/arch/riscv/cpu/cpu.c index d9f820c..4e508cf

[U-Boot] [PATCH 17/19] riscv: Pass correct exception code to _exit_trap()

2018-11-13 Thread Bin Meng
The most significant bit in mcause register should be masked to form the exception code for _exit_trap(). Signed-off-by: Bin Meng --- arch/riscv/lib/interrupts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/lib/interrupts.c b/arch/riscv/lib/interrupts.c index c

[U-Boot] [PATCH 18/19] riscv: Refactor handle_trap() a little for future extension

2018-11-13 Thread Bin Meng
Use a variable 'code' to store the exception code to simplify the codes in handle_trap(). Signed-off-by: Bin Meng --- arch/riscv/lib/interrupts.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/arch/riscv/lib/interrupts.c b/arch/riscv/lib/interrupts.c index

[U-Boot] [PATCH 16/19] riscv: Adjust the _exit_trap() position to come before handle_trap()

2018-11-13 Thread Bin Meng
With this change, we can avoid a forward declaration. Signed-off-by: Bin Meng --- arch/riscv/lib/interrupts.c | 62 ++--- 1 file changed, 30 insertions(+), 32 deletions(-) diff --git a/arch/riscv/lib/interrupts.c b/arch/riscv/lib/interrupts.c index 903a1

[U-Boot] [PATCH 19/19] riscv: Allow U-Boot to run on hart 0 only

2018-11-13 Thread Bin Meng
Allow U-Boot to run on hart 0 only, and suspend other harts. With this change, '-smp n' works on QEMU RISC-V board. Signed-off-by: Bin Meng --- arch/riscv/cpu/start.S | 4 1 file changed, 4 insertions(+) diff --git a/arch/riscv/cpu/start.S b/arch/riscv/cpu/start.S index 9858058..fcb0466

Re: [U-Boot] [PATCH v1 1/2] x86: acpi: Enable RTC for Intel Tangier

2018-11-13 Thread Bin Meng
On Sat, Nov 10, 2018 at 11:37 PM Andy Shevchenko wrote: > > Intel Tangier SoC has RTC inside. So, enable it in ACPI. > > Signed-off-by: Andy Shevchenko > --- > arch/x86/include/asm/arch-tangier/acpi/platform.asl | 13 + > 1 file changed, 13 insertions(+) > Reviewed-by: Bin Meng ___

Re: [U-Boot] [PATCH v1 2/2] x86: acpi: Fix indentation in Intel Tangier ASL code

2018-11-13 Thread Bin Meng
On Sat, Nov 10, 2018 at 11:37 PM Andy Shevchenko wrote: > > Make the indentation aligned with what used elsewhere in U-Boot. > > No functional change intended. > > Signed-off-by: Andy Shevchenko > --- > .../include/asm/arch-tangier/acpi/southcluster.asl | 12 ++-- > 1 file changed, 6 i

Re: [U-Boot] [PATCH v3 24/28] distro_bootcmd: add VirtIO distro boot command

2018-11-13 Thread Alexander Graf
On 09.11.18 13:59, Lukas Auer wrote: > Add a boot command to distro boot to support disks connected over the > VirtIO bus. The boot command uses the shared block environment. > > Signed-off-by: Lukas Auer Reviewed-by: Alexander Graf Alex ___ U-Boot

Re: [U-Boot] [PATCH v3 25/28] riscv: qemu: enable distro boot

2018-11-13 Thread Alexander Graf
On 09.11.18 13:59, Lukas Auer wrote: > Enable distro boot on the qemu-riscv32/64 boards. Supported boot target > devices are VirtIO and DHCP. > > Signed-off-by: Lukas Auer Reviewed-by: Alexander Graf Alex ___ U-Boot mailing list U-Boot@lists.denx.

Re: [U-Boot] [PATCH v3 27/28] riscv: qemu: detect and boot the kernel passed by QEMU

2018-11-13 Thread Alexander Graf
On 09.11.18 13:59, Lukas Auer wrote: > QEMU embeds the location of the kernel image in the device tree. Store > this address in the environment as variable kernel_start. It is used in > the board-local distro boot command QEMU to boot the kernel with the > U-Boot device tree. The QEMU boot comman

Re: [U-Boot] [PATCH v2] qemu-arm: Enable VirtIO distro target

2018-11-13 Thread Alexander Graf
On 13.11.18 05:51, Sumit Garg wrote: > With -device virtio-blk-device,drive=hd0, it could detect distro boot > target. > > Signed-off-by: Sumit Garg Reviewed-by: Alexander Graf > --- > > Changes in v2: > Change boot order to SCSI; VIRTIO; DHCP as DHCP is quiet slow, so kept quite :) Alex

Re: [U-Boot] Rockchip RV1108 eMMC initialization fail

2018-11-13 Thread alex94
I should also mention that, I put U-boot itself into SD card/eMMC, so when I start the board, it gets loaded into RAM from SD card/eMMC. But after it loads and I can interact with it, I cannot communicate with the memory card(using the 'mmc' set of commands). I have managed to find a workaround o

Re: [U-Boot] [PATCH v2 07/29] riscv: add Kconfig entries for the code model

2018-11-13 Thread Auer, Lukas
Hi Bin, On Tue, 2018-11-13 at 15:34 +0800, Bin Meng wrote: > Hi Lukas, > > On Wed, Oct 31, 2018 at 11:01 PM Auer, Lukas > wrote: > > > > Hi Bin, > > > > On Wed, 2018-10-31 at 10:13 +0800, Bin Meng wrote: > > > Hi Lukas, > > > > > > On Tue, Oct 30, 2018 at 8:57 PM Lukas Auer > > > wrote: > >

Re: [U-Boot] [ANN] U-Boot v2018.11 delayed a day

2018-11-13 Thread Miquel Raynal
Hi Marek, +Jagan Marek Vasut wrote on Tue, 13 Nov 2018 03:12:49 +0100: > On 11/13/2018 02:12 AM, Tom Rini wrote: > > On Tue, Nov 13, 2018 at 01:03:41AM +0100, Marek Vasut wrote: > >> On 11/12/2018 11:25 PM, Tom Rini wrote: > >>> On Mon, Nov 12, 2018 at 11:13:29PM +0100, Marek Vasut wrote:

Re: [U-Boot] Rockchip RV1108 eMMC initialization fail

2018-11-13 Thread Otavio Salvador
On Mon, Nov 12, 2018 at 1:25 PM alex94 wrote: > The log for SD card is the same like the one I posted, when using mainline > u-boot from Denx. When using u-boot from rockchip, the log is slightly > different, but it is the same error. I will put that log here too as soon as > I can. You might hav

[U-Boot] [PATCH u-boot] clk: meson: fix clk81 divider calculation

2018-11-13 Thread Neil Armstrong
From: Jerome Brunet clk81 divider is 0 based (meaning that 0 value in the register means divide by 1). Fix clk81 rate calculation for this. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- drivers/clk/clk_meson.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --gi

Re: [U-Boot] [ANN] U-Boot v2018.11 delayed a day

2018-11-13 Thread Marek Vasut
On 11/13/2018 11:33 AM, Miquel Raynal wrote: > Hi Marek, > > +Jagan > > Marek Vasut wrote on Tue, 13 Nov 2018 03:12:49 > +0100: > >> On 11/13/2018 02:12 AM, Tom Rini wrote: >>> On Tue, Nov 13, 2018 at 01:03:41AM +0100, Marek Vasut wrote: On 11/12/2018 11:25 PM, Tom Rini wrote: > On

[U-Boot] [PATCH u-boot v2] spi: Add Amlogic Meson SPI Flash Controller driver

2018-11-13 Thread Neil Armstrong
The Amlogic Meson SoCs embeds a Flash oriented SPI Controller name SPIFC. This driver, ported from the Linux meson-spi-spifc driver, add support for this controller on the Amlogic Meson GX SoCs in U-Boot. [ported from linux version commit 2f58ea64bd8931bd7709732fe0a96e0bfb44a00b] Signed-off-by: N

Re: [U-Boot] [ANN] U-Boot v2018.11 delayed a day

2018-11-13 Thread Boris Brezillon
On Tue, 13 Nov 2018 11:41:48 +0100 Marek Vasut wrote: > On 11/13/2018 11:33 AM, Miquel Raynal wrote: > > Hi Marek, > > > > +Jagan > > > > Marek Vasut wrote on Tue, 13 Nov 2018 03:12:49 > > +0100: > > > >> On 11/13/2018 02:12 AM, Tom Rini wrote: > >>> On Tue, Nov 13, 2018 at 01:03:41AM +01

Re: [U-Boot] [PATCH v2 1/5] mtd: Use default mtdparts/mtids when not defined in the environment

2018-11-13 Thread Marek Vasut
On 11/12/2018 09:28 AM, Boris Brezillon wrote: > U-boot provides a mean to define default values for mtdids and mtdparts > when they're not defined in the environment. Patch mtd_probe_devices() > to use those default values when env_get("mtdparts") or > env_get("mtdids") return NULL. > > This impl

Re: [U-Boot] [ANN] U-Boot v2018.11 delayed a day

2018-11-13 Thread Stefano Babic
On 13/11/18 01:03, Marek Vasut wrote: > On 11/12/2018 11:25 PM, Tom Rini wrote: >> On Mon, Nov 12, 2018 at 11:13:29PM +0100, Marek Vasut wrote: >>> On 11/12/2018 10:40 PM, Tom Rini wrote: Hey all, Since Jagan promise a v2 SPI PR for some build fixes that we should have in the re

Re: [U-Boot] [ANN] U-Boot v2018.11 delayed a day

2018-11-13 Thread Marek Vasut
On 11/13/2018 11:54 AM, Boris Brezillon wrote: > On Tue, 13 Nov 2018 11:41:48 +0100 > Marek Vasut wrote: > >> On 11/13/2018 11:33 AM, Miquel Raynal wrote: >>> Hi Marek, >>> >>> +Jagan >>> >>> Marek Vasut wrote on Tue, 13 Nov 2018 03:12:49 >>> +0100: >>> On 11/13/2018 02:12 AM, Tom Rini w

Re: [U-Boot] [ANN] U-Boot v2018.11 delayed a day

2018-11-13 Thread Jagan Teki
On Tue, Nov 13, 2018 at 4:33 PM Marek Vasut wrote: > > On 11/13/2018 11:54 AM, Boris Brezillon wrote: > > On Tue, 13 Nov 2018 11:41:48 +0100 > > Marek Vasut wrote: > > > >> On 11/13/2018 11:33 AM, Miquel Raynal wrote: > >>> Hi Marek, > >>> > >>> +Jagan > >>> > >>> Marek Vasut wrote on Tue, 13 No

Re: [U-Boot] [ANN] U-Boot v2018.11 delayed a day

2018-11-13 Thread Marek Vasut
On 11/13/2018 12:15 PM, Jagan Teki wrote: > On Tue, Nov 13, 2018 at 4:33 PM Marek Vasut wrote: >> >> On 11/13/2018 11:54 AM, Boris Brezillon wrote: >>> On Tue, 13 Nov 2018 11:41:48 +0100 >>> Marek Vasut wrote: >>> On 11/13/2018 11:33 AM, Miquel Raynal wrote: > Hi Marek, > > +Jaga

Re: [U-Boot] [ANN] U-Boot v2018.11 delayed a day

2018-11-13 Thread Jagan Teki
On Tue, Nov 13, 2018 at 4:53 PM Marek Vasut wrote: > > On 11/13/2018 12:15 PM, Jagan Teki wrote: > > On Tue, Nov 13, 2018 at 4:33 PM Marek Vasut wrote: > >> > >> On 11/13/2018 11:54 AM, Boris Brezillon wrote: > >>> On Tue, 13 Nov 2018 11:41:48 +0100 > >>> Marek Vasut wrote: > >>> > On 11/13

Re: [U-Boot] [PATCH v2 1/5] mtd: Use default mtdparts/mtids when not defined in the environment

2018-11-13 Thread Boris Brezillon
On Tue, 13 Nov 2018 12:01:06 +0100 Marek Vasut wrote: > On 11/12/2018 09:28 AM, Boris Brezillon wrote: > > U-boot provides a mean to define default values for mtdids and mtdparts > > when they're not defined in the environment. Patch mtd_probe_devices() > > to use those default values when env_ge

[U-Boot] [PATCH v3 1/5] mtd: Use default mtdparts/mtids when not defined in the environment

2018-11-13 Thread Boris Brezillon
U-boot provides a mean to define default values for mtdids and mtdparts when they're not defined in the environment. Patch mtd_probe_devices() to use those default values when env_get("mtdparts") or env_get("mtdids") return NULL. This implementation is based on the logic found in cmd/mtdparts.c.

[U-Boot] [PATCH v3 2/5] dfu: nand: Add missing dependency on CMD_MTDPARTS

2018-11-13 Thread Boris Brezillon
dfu_fill_entity_nand() uses find_dev_and_part() and mtdparts_init() which are provided by cmd/mtdparts.c. Add the dependency to avoid build failures when CMD_MTDPARTS is not selected. Reported-by: Jagan Teki Fixes: 6828e602b722d ("dfu: Migrate to Kconfig") Signed-off-by: Boris Brezillon Reviewe

[U-Boot] [PATCH v3 3/5] mtd: Make {MTDIDS, MTDPARTS}_DEFAULT visible when MTD_PARTITIONS is selected

2018-11-13 Thread Boris Brezillon
gwventana configs are relying on CMD_UBI to select CMD_MTDPARTS, which is then making {MTDIDS,MTDPARTS}_DEFAULT options available. We are about to remove the 'select CMD_MTDPARTS' statement in the CMD_UBI entry, but if we do that without first making sure {MTDIDS,MTDPARTS}_DEFAULT are visible, we

[U-Boot] [PATCH v3 5/5] mtd: Drop duplicate MTD_PARTITIONS Kconfig option

2018-11-13 Thread Boris Brezillon
Commit 9c5b00973bce ("Convert CONFIG_MTD_PARTITIONS et al to Kconfig") introduced a publicly visible Kconfig entry for the CONFIG_MTD_PARTITIONS option, while the rework on MTD partitioning was in progress, and we somehow did not notice that the same Kconfig entry was added by commit 4048a5c519a8 (

[U-Boot] [PATCH v3 4/5] cmd: ubi: Remove useless call to mtdparts_init()

2018-11-13 Thread Boris Brezillon
Commit c58fb2cdb3e4 ("cmd: ubi: clean the partition handling") introduced a call to mtd_probe_devices() in the ubi_attach() path and this function takes care of parsing mtdparts/mtdids and creating/registering the associated mtd partitions. The mtdparts_init() call in the ubi_detach() path is not

[U-Boot] [PATCH v2 0/2] Read SFDP parameters and access flash above 16MB

2018-11-13 Thread Rajat Srivastava
Add functionality to read and parse SFDP parameters to auto-detect flash size, page size and address width of flash. This enables flash access above 16MB using 4-byte addressing mode. Add driver support to get SFDP information of flash and use it to access flash above 16MB. --- Changes in v2: - Ma

[U-Boot] [PATCH v2 2/2] fsl_qspi: Access flash above 16MB using SFDP

2018-11-13 Thread Rajat Srivastava
Add functionality to read SFDP parameters in fsl_qspi driver. Also, use the address width information from SFDP to enable flash access above 16 MB. Introduce a way to access parent structure by adding pointer to struct spi_slave in struct fsl_qspi_priv. Signed-off-by: Rajat Srivastava --- Change

[U-Boot] [PATCH v2 1/2] mtd/spi: Add JEDEC SFDP support in SPI framework

2018-11-13 Thread Rajat Srivastava
Add support for JESD216 rev B standard JEDEC Serial Flash Discoverable Parameters (SFDP) tables to dynamically initialize flash size, page size and address width of the flash. More parameters can be added as per requirement. SFDP parsing is made default but already existing method for parsing these

Re: [U-Boot] [PATCH v2 1/5] mtd: Use default mtdparts/mtids when not defined in the environment

2018-11-13 Thread Marek Vasut
On 11/13/2018 12:34 PM, Boris Brezillon wrote: > On Tue, 13 Nov 2018 12:01:06 +0100 > Marek Vasut wrote: > >> On 11/12/2018 09:28 AM, Boris Brezillon wrote: >>> U-boot provides a mean to define default values for mtdids and mtdparts >>> when they're not defined in the environment. Patch mtd_probe

[U-Boot] UBoot running UBoot - is it possible?

2018-11-13 Thread Allan Chandler
Hello, bods. We're trying to architect a relatively safe solution for updating UBoot in the field. What we have at the moment is an iMX6-based board with two UBoot partitions and two system partitions but we only use the first UBoot one. Switching system partitions is covered well by UBoot sinc

[U-Boot] [PATCH 1/2] spl: define kernel and dtb name for falcon mode from menuconfig

2018-11-13 Thread Fabien Lahoudere
If we use falcon mode with ext or fat filesystem, we have to define CONFIG_SPL_FS_LOAD_KERNEL_NAME and CONFIG_SPL_FS_LOAD_ARGS_NAME in the board header. However a header can be used for different boards (e.g Marsboard and riotboardlike use embestmx6boards.h). We can aslo have some project with bin

[U-Boot] [PATCH 2/2] spl: Move kernel and dtb name for falcon mode

2018-11-13 Thread Fabien Lahoudere
Move kernel and dtb name variable from headers to defconfig or use default value from KConfig. Signed-off-by: Fabien Lahoudere --- configs/xilinx_zynqmp_zc1232_revA_defconfig | 2 ++ configs/xilinx_zynqmp_zc1254_revA_defconfig | 2 ++ configs/xilinx_zynqmp_zc1275_revA_defconfig |

[U-Boot] [PATCH 0/4] Add Hardware Spinlock class

2018-11-13 Thread Benjamin Gaignard
This series add a news class to support hardware spinlock. Hardware spinlock could be used to protect critical sections of code between multi-processors. The proposed API remain simple with only 3 functions to be called client: - hwspinlock_get_by_index: get a hardware spinlock by integer index fr

Re: [U-Boot] [PATCH v2 11/58] keymile: Unroll km/km83xx-common.h

2018-11-13 Thread Holger Brunck
Hi Mario, > Simplify the keymile config files once more by unrolling the > km/km83xx-common.h, and resolve the #ifdef logic as needed. > > Signed-off-by: Mario Six > > --- > > v1 -> v2: > No changes > > ---  > include/configs/km8360.h    | 291 ++-  > in

[U-Boot] [PATCH 2/4] clk: stm32: add hardware spinlock clock

2018-11-13 Thread Benjamin Gaignard
From: Benjamin Gaignard Add hardware spinlock in the list of the clocks. Signed-off-by: Benjamin Gaignard --- drivers/clk/clk_stm32mp1.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clk/clk_stm32mp1.c b/drivers/clk/clk_stm32mp1.c index 6a8c7b754f..b7c5d34fe0 100644 --- a/driv

[U-Boot] [PATCH 4/4] pinctrl: stm32: make pinctrl use hwspinlock

2018-11-13 Thread Benjamin Gaignard
From: Benjamin Gaignard Protect configuration registers with a hardware spinlock Signed-off-by: Benjamin Gaignard --- arch/arm/dts/stm32mp157c-ed1.dts | 4 drivers/pinctrl/pinctrl_stm32.c | 22 ++ 2 files changed, 26 insertions(+) diff --git a/arch/arm/dts/stm32mp15

[U-Boot] [PATCH 1/4] dm: Add Hardware Spinlock class

2018-11-13 Thread Benjamin Gaignard
From: Benjamin Gaignard This is uclass for Hardware Spinlocks. It implements two mandatory operations: lock and unlock and one optional relax operation. Signed-off-by: Benjamin Gaignard --- arch/sandbox/dts/test.dts | 4 + arch/sandbox/include/asm/state.h| 1 + config

[U-Boot] [PATCH 3/4] hwspinlock: add stm32 hardware spinlock support

2018-11-13 Thread Benjamin Gaignard
Implement hardware spinlock support for STM32MP1. Signed-off-by: Benjamin Gaignard --- arch/arm/dts/stm32mp157c-ed1.dts | 4 ++ arch/arm/dts/stm32mp157c.dtsi | 9 configs/stm32mp15_basic_defconfig | 2 + drivers/hwspinlock/Kconfig| 6 +++ drivers/hwspinlock/

Re: [U-Boot] [PATCH v3 1/5] mtd: Use default mtdparts/mtids when not defined in the environment

2018-11-13 Thread Marek Vasut
On 11/13/2018 12:43 PM, Boris Brezillon wrote: > U-boot provides a mean to define default values for mtdids and mtdparts > when they're not defined in the environment. Patch mtd_probe_devices() > to use those default values when env_get("mtdparts") or > env_get("mtdids") return NULL. > > This impl

Re: [U-Boot] UBoot running UBoot - is it possible?

2018-11-13 Thread Simon Goldschmidt
On Tue, Nov 13, 2018 at 1:16 PM Allan Chandler wrote: > > Hello, bods. > > We're trying to architect a relatively safe solution for updating UBoot in > the field. What we have at the moment is an iMX6-based board with two UBoot > partitions and two system partitions but we only use the first UBo

Re: [U-Boot] [PATCH v3 1/5] mtd: Use default mtdparts/mtids when not defined in the environment

2018-11-13 Thread Boris Brezillon
Hi Marek, On Tue, 13 Nov 2018 13:19:52 +0100 Marek Vasut wrote: > On 11/13/2018 12:43 PM, Boris Brezillon wrote: > > U-boot provides a mean to define default values for mtdids and mtdparts > > when they're not defined in the environment. Patch mtd_probe_devices() > > to use those default values

[U-Boot] [PATCH] fs: fat: assign rootdir sector when accessing root directory

2018-11-13 Thread Thomas RIENOESSL
This fixes problems accessing drives formated under Windows as FAT16. Change-Id: Ideeca97525d3009b99de35b017707af11fda27c1 Signed-off-by: Thomas RIENOESSL --- fs/fat/fat.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/fat/fat.c b/fs/fat/fat.c index 4b722fc5ca..7b7d43

[U-Boot] [PATCH v2] fs: fat: assign rootdir sector when accessing root directory

2018-11-13 Thread Thomas RIENOESSL
This fixes problems accessing drives formated under Windows as FAT16. Changes v2: - unbreak fat32 Change-Id: Ideeca97525d3009b99de35b017707af11fda27c1 Signed-off-by: Thomas RIENOESSL --- fs/fat/fat.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/fat/fat.c b/fs/fat/

Re: [U-Boot] UBoot running UBoot - is it possible?

2018-11-13 Thread Stefano Babic
Hi Allan, On 13/11/18 02:38, Allan Chandler wrote: > Hello, bods. > > We're trying to architect a relatively safe solution for updating UBoot in > the field. What we have at the moment is an iMX6-based board with two UBoot > partitions and two system partitions but we only use the first UBoot o

Re: [U-Boot] [PATCH v3 1/5] mtd: Use default mtdparts/mtids when not defined in the environment

2018-11-13 Thread Tom Rini
On Tue, Nov 13, 2018 at 01:39:51PM +0100, Boris Brezillon wrote: > Hi Marek, > > On Tue, 13 Nov 2018 13:19:52 +0100 > Marek Vasut wrote: > > > On 11/13/2018 12:43 PM, Boris Brezillon wrote: > > > U-boot provides a mean to define default values for mtdids and mtdparts > > > when they're not defin

[U-Boot] [ANN] Changing release cycles again

2018-11-13 Thread Tom Rini
Hey all, I had intended to put this into the release email I was going to do yesterday. And then I was hoping to put it into the release email I was hoping to do later this morning. But since it feels like that won't be happening too quickly, I'm doing this standalone. As I've been saying both

Re: [U-Boot] [ANN] U-Boot v2018.11 delayed a day

2018-11-13 Thread Philipp Tomsich
> On 13.11.2018, at 02:12, Tom Rini wrote: > > On Tue, Nov 13, 2018 at 01:03:41AM +0100, Marek Vasut wrote: >> On 11/12/2018 11:25 PM, Tom Rini wrote: >>> On Mon, Nov 12, 2018 at 11:13:29PM +0100, Marek Vasut wrote: On 11/12/2018 10:40 PM, Tom Rini wrote: > Hey all, > > Since

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

2018-11-13 Thread Ricardo Salveti
On Thu, Sep 6, 2018 at 12:52 PM Fabio Estevam wrote: > > Hi Baruch, > > On Thu, Sep 6, 2018 at 12:42 PM, Baruch Siach wrote: > > > I tested current master successfully on Hummingboard2 with i.MX6 Solo > > (SOM rev 1.5): > > Thanks for testing. > > It seems we need more information from Peter abou

Re: [U-Boot] [PATCH v3 1/5] mtd: Use default mtdparts/mtids when not defined in the environment

2018-11-13 Thread Marek Vasut
On 11/13/2018 01:39 PM, Boris Brezillon wrote: > Hi Marek, > > On Tue, 13 Nov 2018 13:19:52 +0100 > Marek Vasut wrote: > >> On 11/13/2018 12:43 PM, Boris Brezillon wrote: >>> U-boot provides a mean to define default values for mtdids and mtdparts >>> when they're not defined in the environment.

Re: [U-Boot] [PATCH v3 1/5] mtd: Use default mtdparts/mtids when not defined in the environment

2018-11-13 Thread Tom Rini
On Tue, Nov 13, 2018 at 03:10:14PM +0100, Marek Vasut wrote: > On 11/13/2018 01:39 PM, Boris Brezillon wrote: > > Hi Marek, > > > > On Tue, 13 Nov 2018 13:19:52 +0100 > > Marek Vasut wrote: > > > >> On 11/13/2018 12:43 PM, Boris Brezillon wrote: > >>> U-boot provides a mean to define default val

Re: [U-Boot] [PATCH v3 1/5] mtd: Use default mtdparts/mtids when not defined in the environment

2018-11-13 Thread Boris Brezillon
On Tue, 13 Nov 2018 15:10:14 +0100 Marek Vasut wrote: > On 11/13/2018 01:39 PM, Boris Brezillon wrote: > > Hi Marek, > > > > On Tue, 13 Nov 2018 13:19:52 +0100 > > Marek Vasut wrote: > > > >> On 11/13/2018 12:43 PM, Boris Brezillon wrote: > >>> U-boot provides a mean to define default valu

Re: [U-Boot] [PATCH v3 1/5] mtd: Use default mtdparts/mtids when not defined in the environment

2018-11-13 Thread Tom Rini
On Tue, Nov 13, 2018 at 03:37:26PM +0100, Boris Brezillon wrote: > On Tue, 13 Nov 2018 15:10:14 +0100 > Marek Vasut wrote: > > > On 11/13/2018 01:39 PM, Boris Brezillon wrote: > > > Hi Marek, > > > > > > On Tue, 13 Nov 2018 13:19:52 +0100 > > > Marek Vasut wrote: > > > > > >> On 11/13/2018 1

Re: [U-Boot] [PATCH 05/19] riscv: Add a SYSCON driver for Core Local Interruptor

2018-11-13 Thread Auer, Lukas
Hi Bin, On Tue, 2018-11-13 at 00:21 -0800, Bin Meng wrote: > This adds U-Boot syscon driver for RISC-V Core Local Interruptor > (CLINT). The CLINT block holds memory-mapped control and status > registers associated with software and timer interrupts. > > 3 APIs are provided for U-Boot to implemen

Re: [U-Boot] [PATCH v3 1/5] mtd: Use default mtdparts/mtids when not defined in the environment

2018-11-13 Thread Boris Brezillon
On Tue, 13 Nov 2018 09:42:25 -0500 Tom Rini wrote: > On Tue, Nov 13, 2018 at 03:37:26PM +0100, Boris Brezillon wrote: > > On Tue, 13 Nov 2018 15:10:14 +0100 > > Marek Vasut wrote: > > > > > On 11/13/2018 01:39 PM, Boris Brezillon wrote: > > > > Hi Marek, > > > > > > > > On Tue, 13 Nov 2018

Re: [U-Boot] [PATCH v3 1/5] mtd: Use default mtdparts/mtids when not defined in the environment

2018-11-13 Thread Marek Vasut
On 11/13/2018 03:37 PM, Boris Brezillon wrote: > On Tue, 13 Nov 2018 15:10:14 +0100 > Marek Vasut wrote: > >> On 11/13/2018 01:39 PM, Boris Brezillon wrote: >>> Hi Marek, >>> >>> On Tue, 13 Nov 2018 13:19:52 +0100 >>> Marek Vasut wrote: >>> On 11/13/2018 12:43 PM, Boris Brezillon wrote:

Re: [U-Boot] Rockchip RV1108 eMMC initialization fail

2018-11-13 Thread alex94
I tried that, but the same error happens. I saw that here in the first post: http://u-boot.10912.n7.nabble.com/Rockchip-RV1108-eMMC-support-not-working-td343843.html#a343866 in the U-boot log, GPLL is 38400, where in my log is 118800. Also, in the same post from above, what kind of M

Re: [U-Boot] [ANN] U-Boot v2018.11 delayed a day

2018-11-13 Thread Wolfgang Denk
Dear Jagan, In message you wrote: > > > That patch is buggy and needs to be respun and retested. I don't think > > you can push known buggy patch into a release as a fix. > > True, ie what my yesterday plan [1] but this seems to break some know > functionalities in MTD, can't we go with some im

Re: [U-Boot] UBoot running UBoot - is it possible?

2018-11-13 Thread Wolfgang Denk
Dear Simon, In message you wrote: > > My idea was to let SPL implement a dedicated boot counter/watchdog > that detects problems starting U-Boot and using a backup copy if it > fails multiple times. Of course you need an SPL on your board to do > this. Plus you end up with the same problem for u

Re: [U-Boot] UBoot running UBoot - is it possible?

2018-11-13 Thread Simon Goldschmidt
On 13.11.2018 17:00, Wolfgang Denk wrote: Dear Simon, In message you wrote: My idea was to let SPL implement a dedicated boot counter/watchdog that detects problems starting U-Boot and using a backup copy if it fails multiple times. Of course you need an SPL on your board to do this. Plus you

Re: [U-Boot] [ANN] U-Boot v2018.11 delayed a day

2018-11-13 Thread Jagan Teki
On Tue, Nov 13, 2018 at 9:27 PM Wolfgang Denk wrote: > > Dear Jagan, > > In message > you > wrote: > > > > > That patch is buggy and needs to be respun and retested. I don't think > > > you can push known buggy patch into a release as a fix. > > > > True, ie what my yesterday plan [1] but this

Re: [U-Boot] [PATCH] sunxi: Imply fitImage support

2018-11-13 Thread Jagan Teki
On Wed, Oct 10, 2018 at 9:58 PM Marek Vasut wrote: > > Enable modern fitImage format on sunxi. > > Signed-off-by: Marek Vasut > Cc: Maxime Ripard > Cc: Tom Rini > --- Applied to u-boot-sunxi/master ___ U-Boot mailing list U-Boot@lists.denx.de https:/

Re: [U-Boot] [PATCH] sunxi: use 6MHz PLL_VIDEO step for DE2 for higher resolution LCD

2018-11-13 Thread Jagan Teki
On Mon, Oct 29, 2018 at 2:08 PM Maxime Ripard wrote: > > On Sun, Oct 28, 2018 at 02:26:12PM -0700, Vasily Khoruzhick wrote: > > From: Icenowy Zheng > > > > DE2 SoCs can support LCDs up to 1080p (e.g. A64), and 3MHz step won't > > let PLL_VIDEO be high enough for them. > > > > Use 6MHz step for PL

Re: [U-Boot] [PATCH 0/4] sunxi: A64/H3/H5 DT updates

2018-11-13 Thread Jagan Teki
On Mon, Oct 29, 2018 at 6:27 AM Andre Przywara wrote: > > This updates the .dts and .dtsi files used in U-Boot to what will become > the new DTs in Linux 4.20 (anytime soon). > Those updates are not too useful for U-Boot itself, but keep the DTs > consistent and allow to directly pass U-Boot's cop

Re: [U-Boot] [PATCH v5 0/4] Add support for Pinebook

2018-11-13 Thread Jagan Teki
On Tue, Nov 6, 2018 at 9:55 AM Vasily Khoruzhick wrote: > > This series adds support for the Pinebook, an allwinner A64 laptop > produced by Pine64. It also adds support for mmc delay calibration, > R_I2C controller, and addresses the issue with activating video > bridge when any of GPIOs is missi

Re: [U-Boot] [PATCH] sunxi: use 6MHz PLL_VIDEO step for DE2 for higher resolution LCD

2018-11-13 Thread Vasily Khoruzhick
On Tue, Nov 13, 2018 at 8:32 AM Jagan Teki wrote: > > On Mon, Oct 29, 2018 at 2:08 PM Maxime Ripard > wrote: > > > > On Sun, Oct 28, 2018 at 02:26:12PM -0700, Vasily Khoruzhick wrote: > > > From: Icenowy Zheng > > > > > > DE2 SoCs can support LCDs up to 1080p (e.g. A64), and 3MHz step won't > >

[U-Boot] [PATCH V3 2/7] rsa: add a structure for the padding

2018-11-13 Thread Philippe Reynes
The rsa signature use a padding algorithm. By default, we use the padding pkcs-1.5. In order to add some new padding algorithm, we add a padding framework to manage several padding algorithm. The choice of the padding is done in the file .its. Signed-off-by: Philippe Reynes Reviewed-by: Simon Gla

[U-Boot] [PATCH V3 1/7] rsa: use new openssl API to create signature

2018-11-13 Thread Philippe Reynes
Previous implementation of the rsa signature was using the openssl API EVP_Sign*, but the new openssl API EVP_DigestSign* is more flexible. So we move to this new API. Signed-off-by: Philippe Reynes Reviewed-by: Simon Glass Reviewed-by: Clément Péron --- lib/rsa/rsa-sign.c | 17 +++

[U-Boot] [PATCH V3 6/7] test: vboot: add padding pss for rsa signature

2018-11-13 Thread Philippe Reynes
The padding pss is now supported for rsa signature. This add test with padding pss on vboot test. Signed-off-by: Philippe Reynes Reviewed-by: Simon Glass Reviewed-by: Clément Péron --- test/py/tests/test_vboot.py | 12 --- test/py/tests/vboot/sign-configs-sha1-pss.its

[U-Boot] [PATCH V3 7/7] test: vboot: clean its file

2018-11-13 Thread Philippe Reynes
This update the its file used in vboot test to respect the new node style name defined in doc/uImage.FIT (for example: replace kernel@1 by kernel and fdt@1 by fdt-1) Signed-off-by: Philippe Reynes Reviewed-by: Simon Glass Reviewed-by: Clément Péron --- test/py/tests/test_vboot.py

[U-Boot] [PATCH V3 5/7] configs: sandbox: enable padding pss for rsa signature

2018-11-13 Thread Philippe Reynes
Signed-off-by: Philippe Reynes Reviewed-by: Simon Glass Reviewed-by: Clément Péron --- configs/sandbox_defconfig | 1 + 1 file changed, 1 insertion(+) Changelog: v3: - no change v2: - new patch in the serie diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index 2ce336f..b256

[U-Boot] [PATCH V3 4/7] doc: uImage.FIT: signature.txt: add option padding

2018-11-13 Thread Philippe Reynes
Signed-off-by: Philippe Reynes Reviewed-by: Simon Glass Reviewed-by: Clément Péron --- doc/uImage.FIT/signature.txt | 3 +++ 1 file changed, 3 insertions(+) Changelog: v3: - no change v2: - no change diff --git a/doc/uImage.FIT/signature.txt b/doc/uImage.FIT/signature.txt index a765722..bfff6

[U-Boot] [PATCH V3 3/7] rsa: add support of padding pss

2018-11-13 Thread Philippe Reynes
We add the support of the padding pss for rsa signature. This new padding is often recommended instead of pkcs-1.5. Signed-off-by: Philippe Reynes Reviewed-by: Simon Glass Reviewed-by: Clément Péron --- Kconfig | 8 +++ common/image-sig.c | 6 ++ include/image.h | 1 +

Re: [U-Boot] [PATCH 2/2] board: allwinner: sun50i-h6: Add Orangepi Lite2 support

2018-11-13 Thread Jagan Teki
On Mon, Nov 5, 2018 at 8:57 PM Maxime Ripard wrote: > > On Mon, Nov 05, 2018 at 01:20:40PM +0530, Jagan Teki wrote: > > OrangePi Lite2 is Allwinner H6 based open-source SBC, > > which support: > > - Allwinner H6 Quad-core 64-bit ARM Cortex-A53 > > - GPU Mali-T720 > > - 1GB LPDDR3 RAM > > - AXP805

Re: [U-Boot] [PATCH] sunxi: use 6MHz PLL_VIDEO step for DE2 for higher resolution LCD

2018-11-13 Thread Jagan Teki
On Tue, Nov 13, 2018 at 10:11 PM Vasily Khoruzhick wrote: > > On Tue, Nov 13, 2018 at 8:32 AM Jagan Teki wrote: > > > > On Mon, Oct 29, 2018 at 2:08 PM Maxime Ripard > > wrote: > > > > > > On Sun, Oct 28, 2018 at 02:26:12PM -0700, Vasily Khoruzhick wrote: > > > > From: Icenowy Zheng > > > > >

Re: [U-Boot] UBoot running UBoot - is it possible?

2018-11-13 Thread Stefano Babic
On 13/11/18 17:07, Simon Goldschmidt wrote: > On 13.11.2018 17:00, Wolfgang Denk wrote: >> Dear Simon, >> >> In message >> >> you wrote: >>> My idea was to let SPL implement a dedicated boot counter/watchdog >>> that detects problems starting U-Boot and using a backup copy if it >>> fails multiple

Re: [U-Boot] UBoot running UBoot - is it possible?

2018-11-13 Thread Simon Goldschmidt
Am Di., 13. Nov. 2018, 17:53 hat Stefano Babic geschrieben: > On 13/11/18 17:07, Simon Goldschmidt wrote: > > On 13.11.2018 17:00, Wolfgang Denk wrote: > >> Dear Simon, > >> > >> In message > >> > >> you wrote: > >>> My idea was to let SPL implement a dedicated boot counter/watchdog > >>> that d

Re: [U-Boot] UBoot running UBoot - is it possible?

2018-11-13 Thread Stefano Babic
Hi Simon, On 13/11/18 18:43, Simon Goldschmidt wrote: > > > Am Di., 13. Nov. 2018, 17:53 hat Stefano Babic > geschrieben: > > On 13/11/18 17:07, Simon Goldschmidt wrote: > > On 13.11.2018 17:00, Wolfgang Denk wrote: > >> Dear Simon, > >> > >> In messa

Re: [U-Boot] efi disks in u-boot

2018-11-13 Thread Simon Glass
Hi Akahsi, On 5 November 2018 at 20:15, AKASHI Takahiro wrote: > Hello Simon, > > You said, in efi/lib_loader/efi_disk.c, > > ===8<=== > * TODO(s...@chromium.org): Actually with CONFIG_BLK, U-Boot does have this. > * Consider converting the code to look up devices as needed. The EFI device > *

Re: [U-Boot] Rockchip RV1108 eMMC initialization fail

2018-11-13 Thread Otavio Salvador
On Tue, Nov 13, 2018 at 1:47 PM alex94 wrote: > I tried that, but the same error happens. > > I saw that here in the first post: > > http://u-boot.10912.n7.nabble.com/Rockchip-RV1108-eMMC-support-not-working-td343843.html#a343866 > > in the U-boot log, GPLL is 38400, where in my log is 1188000

  1   2   >