[U-Boot] [PATCH 3/3] arm64: versal: Add Xilinx Versal Virtual QEMU board

2018-10-02 Thread Michal Simek
Virtual QEMU board is generating DTB self and putting it to VERSAL_QEMU_DTB_ADDR address. Board is using CONFIG_OF_BOARD which ensures that u-boot is aligned with board created by QEMU. Signed-off-by: Michal Simek --- arch/arm/mach-versal/Kconfig | 5 +++ arch/arm/mach-versal/cpu.c

[U-Boot] [PATCH 2/3] net: gem: Do not setup any clock for Xilinx SoC Versal

2018-10-02 Thread Michal Simek
Xilinx SoC Versal is using fixed clock where setting rate is not supported. That's why workaround the driver till real clock driver is supported. Signed-off-by: Michal Simek --- drivers/net/zynq_gem.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/zynq_gem.c

[U-Boot] [PATCH] serial: pl01x: Get clock from clock node if no clock property found

2018-10-02 Thread Michal Simek
From: Siva Durga Prasad Paladugu This patch gets clock from clock nodes if no clock property found in serial node. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- drivers/serial/serial_pl01x.c | 26 ++ 1 file changed, 26 insertions(+) diff

[U-Boot] [PATCH] arm64: gic: Do gicv3 secure initialization based on EL level

2018-10-02 Thread Michal Simek
Do gic cpu initialization based on EL level which u-boot enters. U-Boot can't access EL3 regs when runs in EL2/EL1, etc. Signed-off-by: Michal Simek --- arch/arm/lib/gic_64.S | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/arch/arm/lib/gic_64.S

Re: [U-Boot] [PATCH 1/2] mmc: tmio: Pass full address to tmio_sd_addr_is_dmaable()

2018-10-02 Thread Masahiro Yamada
On Wed, Oct 3, 2018 at 7:54 AM Marek Vasut wrote: > > Pass the entire source data pointer to tmio_sd_addr_is_dmaable() > to avoid losing top 32 bits on 64bit systems. Really? sizeof(long) is 8 on 64bit systems. (In other words, long and (void *) have the same size) Why is the top 32-bits

Re: [U-Boot] [PATCH 1/1] riscv: allow native compilation

2018-10-02 Thread Rick Chen
Tom Rini 於 2018年10月3日 週三 上午9:23寫道: > > On Wed, Oct 03, 2018 at 09:16:48AM +0800, Rick Chen wrote: > > Heinrich Schuchardt 於 2018年9月24日 週一 上午4:06寫道: > > > > > > On 08/07/2018 10:57 AM, Rick Chen wrote: > > > >> If environment variable CROSS_COMPILE is not set, this indicates native > > > >>

Re: [U-Boot] [PATCH 1/1] riscv: allow native compilation

2018-10-02 Thread Tom Rini
On Wed, Oct 03, 2018 at 09:16:48AM +0800, Rick Chen wrote: > Heinrich Schuchardt 於 2018年9月24日 週一 上午4:06寫道: > > > > On 08/07/2018 10:57 AM, Rick Chen wrote: > > >> If environment variable CROSS_COMPILE is not set, this indicates native > > >> compilation. In this case we should not set an

Re: [U-Boot] [PATCH 1/1] riscv: allow native compilation

2018-10-02 Thread Rick Chen
Heinrich Schuchardt 於 2018年9月24日 週一 上午4:06寫道: > > On 08/07/2018 10:57 AM, Rick Chen wrote: > >> If environment variable CROSS_COMPILE is not set, this indicates native > >> compilation. In this case we should not set an arbitrary value which is not > >> applicable for 64bit anyway. > >> > > > >

Re: [U-Boot] [PATCH v3 00/17] riscv: Add QEMU virt board support

2018-10-02 Thread Rick Chen
> > > Hi Rick, > > > > > > On Wed, Sep 26, 2018 at 9:50 PM Bin Meng wrote: > > > > > > > > This series adds QEMU RISC-V 'virt' board target support, with the > > > > hope of helping people easily test U-Boot on RISC-V. > > > > > > > > Some existing RISC-V codes have been changed to make it easily

Re: [U-Boot] Pull request: u-boot-spi/master

2018-10-02 Thread Tom Rini
On Tue, Oct 02, 2018 at 10:26:04PM +0530, Jagan Teki wrote: > Hi Tom, > > This is the PR for SPI-NAND changes along with few spi changes. > > Yes, we missed one day for MW but Miquel did his best since > from few releases. request you to accept the delay and pull this PR. > > thanks, > Jagan.

Re: [U-Boot] [PATCH v2 6/6] riscv: efi: Generate Microsoft PE format compliant images

2018-10-02 Thread Bin Meng
Hi Heinrich, On Wed, Oct 3, 2018 at 2:19 AM Heinrich Schuchardt wrote: > > On 10/02/2018 04:39 PM, Bin Meng wrote: > > Per Microsoft PE Format documentation [1], PointerToSymbolTable and > > NumberOfSymbols should be zero for an image in the COFF file header. > > Currently the COFF file header

[U-Boot] [PATCH 2/2] mmc: tmio: Limit DMA to 32bit on R-Car Gen3

2018-10-02 Thread Marek Vasut
The internal DMAC on Gen3 is 32bit only, limit the DMA address range to 32bit. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- drivers/mmc/tmio-common.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/mmc/tmio-common.c b/drivers/mmc/tmio-common.c index

[U-Boot] [PATCH 1/2] mmc: tmio: Pass full address to tmio_sd_addr_is_dmaable()

2018-10-02 Thread Marek Vasut
Pass the entire source data pointer to tmio_sd_addr_is_dmaable() to avoid losing top 32 bits on 64bit systems. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- drivers/mmc/tmio-common.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/tmio-common.c

[U-Boot] [PATCH 2/2] ARM: rmobile: Enable PHY framework on Gen3

2018-10-02 Thread Marek Vasut
Enable PHY framework on Gen3, this is required for USB EHCI PHY support. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- arch/arm/mach-rmobile/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-rmobile/Kconfig b/arch/arm/mach-rmobile/Kconfig index

[U-Boot] [PATCH 1/2] phy: rcar: Add R-Car Gen3 PHY driver

2018-10-02 Thread Marek Vasut
Add a PHY driver for the R-Car Gen3 which allows configuring USB OTG PHY on Gen3 into host mode and toggles VBUS in case a dedicated regulator is present. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- drivers/phy/Kconfig | 8 ++ drivers/phy/Makefile| 1 +

[U-Boot] [PATCH] ARM: rmobile: Mark 4-64GiB as DRAM on Gen3

2018-10-02 Thread Marek Vasut
Mark area 0x1__ - 0x10__ as DRAM on Gen3 as the chip is capable of addressing that and U-Boot can make use of it. This patch prevents exception when accessing those areas. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- arch/arm/mach-rmobile/memmap-gen3.c | 6 ++ 1

Re: [U-Boot] [PATCH v2 3/6] x86: efi: app: Generate Microsoft PE format compliant image

2018-10-02 Thread Heinrich Schuchardt
On 10/02/2018 04:39 PM, Bin Meng wrote: > Per Microsoft PE Format documentation [1], PointerToSymbolTable and > NumberOfSymbols should be zero for an image in the COFF file header. > Currently U-Boot is generating u-boot-app.efi in which these two > members are not zero. > > This updates the

Re: [U-Boot] [PATCH v2 2/6] x86: efi: payload: Generate Microsoft PE format compliant image

2018-10-02 Thread Heinrich Schuchardt
On 10/02/2018 04:39 PM, Bin Meng wrote: > Per Microsoft PE Format documentation [1], PointerToSymbolTable and > NumberOfSymbols should be zero for an image in the COFF file header. > Currently U-Boot is generating u-boot-payload.efi image in which > these two members are not zero. > > This

Re: [U-Boot] [PATCH v2 6/6] riscv: efi: Generate Microsoft PE format compliant images

2018-10-02 Thread Heinrich Schuchardt
On 10/02/2018 04:39 PM, Bin Meng wrote: > Per Microsoft PE Format documentation [1], PointerToSymbolTable and > NumberOfSymbols should be zero for an image in the COFF file header. > Currently the COFF file header is hardcoded on RISC-V and these two > members are not zero. > > This updates the

Re: [U-Boot] [PATCH 4/5] arm: efi: Generate Microsoft PE format complaint images

2018-10-02 Thread Heinrich Schuchardt
On 10/02/2018 04:16 PM, Bin Meng wrote: > Hi Heinrich, > > On Thu, Sep 27, 2018 at 1:51 AM Heinrich Schuchardt > wrote: >> >> On 09/26/2018 08:03 AM, Bin Meng wrote: >>> Per Microsoft PE Format documentation [1], PointerToSymbolTable and >>> NumberOfSymbols should be zero for an image in the

Re: [U-Boot] clk: Add support for Arm's Versatile Express OSC clock generators

2018-10-02 Thread Tom Rini
On Tue, Oct 02, 2018 at 11:50:09AM +0100, Liviu Dudau wrote: > On Mon, Oct 01, 2018 at 11:26:37AM -0400, Tom Rini wrote: > > On Mon, Oct 01, 2018 at 04:16:45PM +0100, Liviu Dudau wrote: > > > On Mon, Oct 01, 2018 at 07:36:12AM -0400, Tom Rini wrote: > > > > On Mon, Oct 01, 2018 at 10:20:22AM

Re: [U-Boot] [PATCH v2 4/6] pe.h: Add characteristics defines

2018-10-02 Thread Heinrich Schuchardt
On 10/02/2018 04:39 PM, Bin Meng wrote: > This adds characteristics macros as defined by the Microsoft PE > Format documentation [1]. > > [1] https://docs.microsoft.com/zh-cn/windows/desktop/Debug/pe-format > > Signed-off-by: Bin Meng Reviewed-by: Heinrich Schuchardt > > --- > > Changes in

Re: [U-Boot] [PATCH v2 5/6] arm: efi: Generate Microsoft PE format compliant images

2018-10-02 Thread Heinrich Schuchardt
On 10/02/2018 04:39 PM, Bin Meng wrote: > Per Microsoft PE Format documentation [1], PointerToSymbolTable and > NumberOfSymbols should be zero for an image in the COFF file header. > Currently the COFF file header is hardcoded on ARM and these two > members are not zero. > > This updates the

Re: [U-Boot] [PATCH v12 0/8] SPI-NAND support (third batch)

2018-10-02 Thread Jagan Teki
On Saturday 29 September 2018 04:28 PM, Miquel Raynal wrote: During the last months, Boris Brezillon shared his work to support serial flashes within Linux. First, he delivered (and merged) a new layer called spi-mem. He also initiated in Linux MTD subsystem the move of all 'raw' NAND related

Re: [U-Boot] [PATCH] mtd: spi: Add DM support to SH QSPI driver

2018-10-02 Thread Jagan Teki
On Sat, Aug 25, 2018 at 11:04 PM Marek Vasut wrote: > > Add DM support to the SH QSPI driver while retaining non-DM support. > The later is required as this driver is used in SPL which has a size > limitation of 16 kiB. > > Signed-off-by: Marek Vasut > Cc: Nobuhiro Iwamatsu Applied to

[U-Boot] Pull request: u-boot-spi/master

2018-10-02 Thread Jagan Teki
Hi Tom, This is the PR for SPI-NAND changes along with few spi changes. Yes, we missed one day for MW but Miquel did his best since from few releases. request you to accept the delay and pull this PR. thanks, Jagan. The following changes since commit 9dc8d155d4e88563f572ee79aab758eb4272f3fd:

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

2018-10-02 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 ---

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

2018-10-02 Thread Philippe Reynes
Signed-off-by: Philippe Reynes --- doc/uImage.FIT/signature.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/uImage.FIT/signature.txt b/doc/uImage.FIT/signature.txt index a765722..bfff6fd 100644 --- a/doc/uImage.FIT/signature.txt +++ b/doc/uImage.FIT/signature.txt @@ -106,6 +106,9

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

2018-10-02 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 --- common/image-sig.c | 4 ++ include/u-boot/rsa.h | 11 lib/rsa/rsa-sign.c | 8 +++ lib/rsa/rsa-verify.c | 173

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

2018-10-02 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 --- lib/rsa/rsa-sign.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-)

Re: [U-Boot] [PATCH 05/27] virtio: Add net driver support

2018-10-02 Thread Bin Meng
Hi Tuomas, On Fri, Sep 28, 2018 at 6:12 AM Tuomas Tynkkynen wrote: > > Hi Bin, > > On 09/23/2018 04:42 PM, Bin Meng wrote: > > From: Tuomas Tynkkynen > > > > This adds virtio net device driver support. > > > > Signed-off-by: Tuomas Tynkkynen > > Signed-off-by: Bin Meng > > --- > ... > >

Re: [U-Boot] [PATCH 18/27] riscv: qemu: Include some useful commands

2018-10-02 Thread Bin Meng
Hi Tuomas, On Fri, Sep 28, 2018 at 6:14 AM Tuomas Tynkkynen wrote: > > Hi Bin, > > On 09/23/2018 04:42 PM, Bin Meng wrote: > > With the virtio net and blk drivers, we can do more stuff with some > > useful commands. Imply those in the board Kconfig. > > > > Signed-off-by: Bin Meng > > --- > > >

Re: [U-Boot] [PATCH v2 1/7] net: Remove the Faraday ftgmac100 controller driver

2018-10-02 Thread Cédric Le Goater
On 10/2/18 1:22 PM, Simon Glass wrote: > On 1 October 2018 at 01:53, Cédric Le Goater wrote: >> There are too many changes in the following patch fixing support for >> the Faraday ftgmac100 controller. To ease the review, remove the whole >> file which is not compiled anymore today (no Kconfig

Re: [U-Boot] [PATCH 03/27] virtio: Add codes for virtual queue/ring management

2018-10-02 Thread Bin Meng
Hi Tuomas, On Fri, Sep 28, 2018 at 6:11 AM Tuomas Tynkkynen wrote: > > Hi Bin, > > On 09/23/2018 04:42 PM, Bin Meng wrote: > > From: Tuomas Tynkkynen > > > > This adds support for managing virtual queue/ring, the channel > > for high performance I/O between host and guest. > > > >

[U-Boot] [PATCH] tests/test_bind.py: Update test to match the wider 'dm tree' output

2018-10-02 Thread Liviu Dudau
Commit ("dm: core: Widen the dump tree to show more of the driver's name") has widened the field reserved for the name of a driver, so we need to update the test to match. Signed-off-by: Liviu Dudau --- test/py/tests/test_bind.py | 28 ++-- 1 file changed, 14

Re: [U-Boot] [PATCH 03/20] arm: MediaTek: add basic support for MT7623 boards

2018-10-02 Thread Ryder Lee
1. On Tue, 2018-10-02 at 16:27 +0200, Matthias Brugger wrote: > mt7623_rfb > > On 02/10/2018 08:13, Ryder Lee wrote: > > From: Weijie Gao > > > > This adds a general board file based on MT7623 SoCs from MediaTek. > > > > As this u-boot is loaded by preloader, there is no low level > >

Re: [U-Boot] [PATCH 00/20] Add support for MediaTek SoCs - MT7623n / MT7629

2018-10-02 Thread Matthias Brugger
On 02/10/2018 08:13, Ryder Lee wrote: > Hello, > > This is first round (time) to add U-boot support for MediaTek SoCs (MT7623n > and MT7629), > and the most of the drivers are based on mainline Linux, like clock, timer, > mmc, pinctrl, > watchdog, power domain and DTS. > > The following

[U-Boot] [PATCH v2 6/6] riscv: efi: Generate Microsoft PE format compliant images

2018-10-02 Thread Bin Meng
Per Microsoft PE Format documentation [1], PointerToSymbolTable and NumberOfSymbols should be zero for an image in the COFF file header. Currently the COFF file header is hardcoded on RISC-V and these two members are not zero. This updates the hardcoded structure to clear these two members, as

[U-Boot] [PATCH v2 3/6] x86: efi: app: Generate Microsoft PE format compliant image

2018-10-02 Thread Bin Meng
Per Microsoft PE Format documentation [1], PointerToSymbolTable and NumberOfSymbols should be zero for an image in the COFF file header. Currently U-Boot is generating u-boot-app.efi in which these two members are not zero. This updates the build rules to tell linker to remove the symbol table

[U-Boot] [PATCH v2 4/6] pe.h: Add characteristics defines

2018-10-02 Thread Bin Meng
This adds characteristics macros as defined by the Microsoft PE Format documentation [1]. [1] https://docs.microsoft.com/zh-cn/windows/desktop/Debug/pe-format Signed-off-by: Bin Meng --- Changes in v2: - new patch to add characteristics defines in pe.h include/asm-generic/pe.h | 18

[U-Boot] [PATCH v2 5/6] arm: efi: Generate Microsoft PE format compliant images

2018-10-02 Thread Bin Meng
Per Microsoft PE Format documentation [1], PointerToSymbolTable and NumberOfSymbols should be zero for an image in the COFF file header. Currently the COFF file header is hardcoded on ARM and these two members are not zero. This updates the hardcoded structure to clear these two members, as well

[U-Boot] [PATCH v2 2/6] x86: efi: payload: Generate Microsoft PE format compliant image

2018-10-02 Thread Bin Meng
Per Microsoft PE Format documentation [1], PointerToSymbolTable and NumberOfSymbols should be zero for an image in the COFF file header. Currently U-Boot is generating u-boot-payload.efi image in which these two members are not zero. This updates the build rules to tell linker to remove the

[U-Boot] [PATCH v2 1/6] efi_loader: Generate Microsoft PE format compliant images

2018-10-02 Thread Bin Meng
Per Microsoft PE Format documentation [1], PointerToSymbolTable and NumberOfSymbols should be zero for an image in the COFF file header. Currently U-Boot is generating *.efi images (eg: helloworld.efi) in which these two members are not zero. This updates the build rules to tell linker to remove

Re: [U-Boot] [PATCH 1/5] efi_loader: Generate Microsoft PE format complaint images

2018-10-02 Thread Bin Meng
Hi Heinrich, On Thu, Sep 27, 2018 at 2:40 AM Heinrich Schuchardt wrote: > > On 09/26/2018 08:03 AM, Bin Meng wrote: > > Per Microsoft PE Format documentation [1], PointerToSymbolTable and > > NumberOfSymbols should be zero for an image in the COFF file header. > > Currently U-Boot is generating

Re: [U-Boot] [PATCH 13/20] pinctrl: MediaTek: add pinctrl driver for MT7623 SoC

2018-10-02 Thread Matthias Brugger
On 02/10/2018 08:13, Ryder Lee wrote: > Add support for pinctrl on MT7629 SoC which has 279 pins. And the most of > the codes in this patch are used to describe the details of each pin. > > Signed-off-by: Ryder Lee > --- > drivers/pinctrl/mediatek/Kconfig |4 + >

Re: [U-Boot] [PATCH 02/20] arm: MediaTek: add basic support for MT7629 boards

2018-10-02 Thread Matthias Brugger
On 02/10/2018 08:13, Ryder Lee wrote: > This adds a general board file based on MT7629 SoCs from MediaTek. > > Apart from the generic parts (cpu) we add some low level init codes and > initialize the early clocks. > > Signed-off-by: Ryder Lee > Signed-off-by: Weijie Gao > --- >

Re: [U-Boot] [PATCH 03/20] arm: MediaTek: add basic support for MT7623 boards

2018-10-02 Thread Matthias Brugger
mt7623_rfb On 02/10/2018 08:13, Ryder Lee wrote: > From: Weijie Gao > > This adds a general board file based on MT7623 SoCs from MediaTek. > > As this u-boot is loaded by preloader, there is no low level > initializtion codes. > > Signed-off-by: Weijie Gao > --- >

Re: [U-Boot] [PATCH 10/20] timer: MediaTek: add timer driver for MediaTek SoCs

2018-10-02 Thread Matthias Brugger
On 02/10/2018 08:13, Ryder Lee wrote: > This patch adds clock source/event for the timer found on the Mediatek SoCs. > > Signed-off-by: Ryder Lee > --- > drivers/timer/Kconfig | 7 > drivers/timer/Makefile| 1 + > drivers/timer/mtk_timer.c | 85 >

Re: [U-Boot] [PATCH 4/5] arm: efi: Generate Microsoft PE format complaint images

2018-10-02 Thread Bin Meng
Hi Heinrich, On Thu, Sep 27, 2018 at 1:51 AM Heinrich Schuchardt wrote: > > On 09/26/2018 08:03 AM, Bin Meng wrote: > > Per Microsoft PE Format documentation [1], PointerToSymbolTable and > > NumberOfSymbols should be zero for an image in the COFF file header. > > Currently the COFF file header

Re: [U-Boot] [PATCH v3 2/4] rockchip: rk3399: Add common Rock960 family from Vamrs

2018-10-02 Thread Manivannan Sadhasivam
Hi Simon, On Tue, Oct 02, 2018 at 04:21:38AM -0700, Simon Glass wrote: > On 27 September 2018 at 12:02, Manivannan Sadhasivam > wrote: > > Rock960 is a family of boards based on Rockchip RK3399 SoC from Vamrs. > > It consists of Rock960 (Consumer Edition) and Ficus (Enterprise Edition) > >

Re: [U-Boot] [U-Boot, 4/4] rockchip: rk3188: explicitly set vcc_sd0 pin to gpio on rk3188-radxarock

2018-10-02 Thread Philipp Tomsich
> It is good practice to make the setting of gpio-pinctrls explicitly in the > devicetree, and in this case even necessary. > Rockchip boards start with iomux settings set to gpio for most pins and > while the linux pinctrl driver also implicitly sets the gpio function if > a pin is requested as

Re: [U-Boot] [U-Boot, 3/4] rockchip: rk3188: add u-boot-specific mmc properties

2018-10-02 Thread Philipp Tomsich
> The dwmmc controllers on rk3188 do not have idma support, so need to > use the fifo-mode and it my tests they became confused and stopped > working if the frequency was to high. > > While I only tested in somewhat bigger steps, 32MHz for example > hung the controller, while reducing it to 16MHz

Re: [U-Boot] [U-Boot, 2/4] rockchip: dwmmc: add rk2928-dw-mshc compatible

2018-10-02 Thread Philipp Tomsich
> The rk3188 works nicely with the rockchip mmc driver, so we just need > to add the different compatible for it - as used in the Linux kernel. > > Signed-off-by: Heiko Stuebner > Reviewed-by: Philipp Tomsich > Acked-by: Philipp Tomsich > --- > drivers/mmc/rockchip_dw_mmc.c | 1 + > 1 file

Re: [U-Boot] [U-Boot, 1/4] mmc: dw_mmc: check fifo status with a timeout in fifo mode

2018-10-02 Thread Philipp Tomsich
> While trying to enable the dw_mmc on rk3188 I managed to confuse > and hang the dw_mmc controller into not delivering further data. > The fifo state never became ready and the driver was iterating in > the while loop reading 0-byte packets forever. > > So inspired by how other implementations

Re: [U-Boot] [PATCH 33/45] x86: Update mtrr functions to allow leaving cache alone

2018-10-02 Thread Bin Meng
On Tue, Oct 2, 2018 at 2:24 AM Simon Glass wrote: > > At present the mtrr functions disable the cache before making changes and > enable it again afterwards. This is fine in U-Boot, but does not work if > running in CAR (such as we are in SPL). > > Update the functions so that the caller can

Re: [U-Boot] [PATCH 40/45] pci: Add a little more debugging to pci_rom

2018-10-02 Thread Bin Meng
On Tue, Oct 2, 2018 at 2:48 AM Simon Glass wrote: > > Add some logging on failure. > > Signed-off-by: Simon Glass > --- > > drivers/pci/pci_rom.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Reviewed-by: Bin Meng ___ U-Boot mailing

Re: [U-Boot] [PATCH 05/20] arm: dts: MediaTek: add MT7623 Bananapi R2 board support

2018-10-02 Thread Ryder Lee
On Tue, 2018-10-02 at 15:10 +0200, Matthias Brugger wrote: > > On 02/10/2018 08:13, Ryder Lee wrote: > > This patch adds support for MT7623 development board - Bananapi R2 from > > BIPAI KEJI. Detailed hardware information for BPI-R2 which could be > > found on

Re: [U-Boot] [PATCH 04/20] arm: dts: MediaTek: add MT7629 reference board support

2018-10-02 Thread Ryder Lee
On Tue, 2018-10-02 at 15:07 +0200, Matthias Brugger wrote: > I'm very happy to see Mediatek working on mainline u-boot support! > > On 02/10/2018 08:13, Ryder Lee wrote: > > This patch adds mt7629.dtsi and reference board support. > I think reference board support is already added in 2/20. >

Re: [U-Boot] [PATCH 1/4] Enable CONFIG_TIMER_EARLY with bootstage

2018-10-02 Thread Bin Meng
Hi Simon, On Thu, Sep 27, 2018 at 9:42 PM Simon Glass wrote: > > Hi Bin, > > On 25 September 2018 at 23:39, Bin Meng wrote: > > Hi Simon, > > > > On Wed, Sep 26, 2018 at 1:42 PM Simon Glass wrote: > >> > >> Hi Bin, > >> > >> On 4 September 2018 at 03:06, Bin Meng wrote: > >> > Hi Simon, > >>

Re: [U-Boot] [PATCH] fs: btrfs: Fix cache alignment bugs

2018-10-02 Thread Marek Vasut
On 10/02/2018 02:08 PM, Marek Behún wrote: > On Tue, 2 Oct 2018 13:43:55 +0200 > Marek Vasut wrote: > >> On 10/02/2018 01:27 PM, Marek Behún wrote: >>> Tested-by: Marek Behún >> >> btw don't you see those warnings/problems on the Armada platform ? I >> presume this is mostly used on the

Re: [U-Boot] [PATCH 05/20] arm: dts: MediaTek: add MT7623 Bananapi R2 board support

2018-10-02 Thread Matthias Brugger
On 02/10/2018 08:13, Ryder Lee wrote: > This patch adds support for MT7623 development board - Bananapi R2 from > BIPAI KEJI. Detailed hardware information for BPI-R2 which could be > found on http://wiki.banana-pi.org/Banana_Pi_BPI-R2. > > Signed-off-by: Ryder Lee > --- >

Re: [U-Boot] [PATCH 5/6] test: Add PCI device entry without compat string and with DT node

2018-10-02 Thread Bin Meng
Hi Marek, On Mon, Oct 1, 2018 at 7:44 PM Marek Vasut wrote: > > On 09/25/2018 05:26 PM, Bin Meng wrote: > > Hi Marek, > > > > On Sat, Sep 22, 2018 at 7:02 AM Marek Vasut wrote: > >> > >> Add PCI entry without compatible string and with a DT node only with > >> reg = <...> property into the DT.

Re: [U-Boot] [PATCH 04/20] arm: dts: MediaTek: add MT7629 reference board support

2018-10-02 Thread Matthias Brugger
I'm very happy to see Mediatek working on mainline u-boot support! On 02/10/2018 08:13, Ryder Lee wrote: > This patch adds mt7629.dtsi and reference board support. I think reference board support is already added in 2/20. AFAICS you just device tree and the includes it needs. > > Signed-off-by:

Re: [U-Boot] [PATCH v3 00/17] riscv: Add QEMU virt board support

2018-10-02 Thread Bin Meng
On Fri, Sep 28, 2018 at 10:10 AM Bin Meng wrote: > > Hi Rick, > > On Wed, Sep 26, 2018 at 9:50 PM Bin Meng wrote: > > > > This series adds QEMU RISC-V 'virt' board target support, with the > > hope of helping people easily test U-Boot on RISC-V. > > > > Some existing RISC-V codes have been

Re: [U-Boot] [PATCH] fs: btrfs: Fix cache alignment bugs

2018-10-02 Thread Marek Vasut
On 10/02/2018 01:27 PM, Marek Behún wrote: > Tested-by: Marek Behún btw don't you see those warnings/problems on the Armada platform ? I presume this is mostly used on the Omnia. Maybe the cache alignment checking there is not as verbose as on other platforms. > On Sat, 22 Sep 2018 04:13:35

Re: [U-Boot] [PATCH] fs: btrfs: Fix cache alignment bugs

2018-10-02 Thread Marek Behún
On Tue, 2 Oct 2018 13:43:55 +0200 Marek Vasut wrote: > On 10/02/2018 01:27 PM, Marek Behún wrote: > > Tested-by: Marek Behún > > btw don't you see those warnings/problems on the Armada platform ? I > presume this is mostly used on the Omnia. Maybe the cache alignment > checking there is not

Re: [U-Boot] [PATCH v3] usb: dwc3: convert to livetree

2018-10-02 Thread Michal Simek
Hi, On 21.9.2018 07:57, Siva Durga Prasad Paladugu wrote: > Hi Marek/Michal, > > Can you please review and let me know if any comments otherwise, please take > it up. > > Thanks, > Siva > >> -Original Message- >> From: Siva Durga Prasad Paladugu [mailto:siva.durga.palad...@xilinx.com]

Re: [U-Boot] [PATCH] fs: btrfs: Fix cache alignment bugs

2018-10-02 Thread Marek Behún
Tested-by: Marek Behún On Sat, 22 Sep 2018 04:13:35 +0200 Marek Vasut wrote: > The btrfs implementation passes cache-unaligned buffers into the > block layer, which triggers cache alignment problems down in the > block device drivers. Align the buffers to prevent this. > > Signed-off-by:

Re: [U-Boot] [PATCH v9 12/16] regmap: Add endianness support

2018-10-02 Thread Simon Glass
Hi Mario, On 28 September 2018 at 00:27, Mario Six wrote: > Add support for switching the endianness of regmap accesses via the > "little-endian", "big-endian", and "native-endian" boolean properties in > the device tree. > > The default endianness is native endianness. > > Signed-off-by: Mario

Re: [U-Boot] [PATCH v4 00/19] AVB using OP-TEE

2018-10-02 Thread Simon Glass
Hi Jen, On 25 September 2018 at 07:40, Jens Wiklander wrote: > Hi, > > This adds support for storing AVB rollback indexes in the RPMB partition. > The RPMB partition (content and key) is managed by OP-TEE > (https://www.op-tee.org/) which is a secure OS leveraging ARM TrustZone. > > The Linux

Re: [U-Boot] [PATCH v2 4/7] net: ftgmac100: Add support for the Aspeed SoC

2018-10-02 Thread Simon Glass
On 1 October 2018 at 01:53, Cédric Le Goater wrote: > The Faraday ftgmac100 MAC controllers as found on the Aspeed SoCs have > some slight differences in the HW interface (End-Of-Rx/Tx-Ring bits). > > Signed-off-by: Cédric Le Goater > --- > Changes since v1: > > - introduced a udevice_id .data

Re: [U-Boot] [PATCH V2 2/2] ofnode: Add missing address translation into ofnode_get_addr_size()

2018-10-02 Thread Simon Glass
On 1 October 2018 at 03:37, Marek Vasut wrote: > Of CONFIG_OF_TRANSLATE is enabled, this function still returns > untranslated bogus results. Add the missing translation. > > Signed-off-by: Marek Vasut > Cc: Simon Glass > Cc: Tom Rini > --- > V2: - Use np directly > - Drop extra

[U-Boot] [PATCH v2 09/23] spl: Add a define for SPL_TPL_PROMPT

2018-10-02 Thread Simon Glass
We should use a macro rather than hard-coding the SPL prompt to 'spl' since the code can be used by TPL too. Add a macro that works for both and use it in various places. This allows TPL to use the same code without printing confusing messages. Note that the string is lower case ('spl', 'tpl')

Re: [U-Boot] [PATCH] dm: core: Widen the dump tree to show more of the driver's name.

2018-10-02 Thread Liviu Dudau
On Tue, Oct 02, 2018 at 04:22:25AM -0700, Simon Glass wrote: > Hi Liviu, > > On 2 October 2018 at 03:46, Liviu Dudau wrote: > > On Fri, Sep 28, 2018 at 04:14:12PM -0600, Simon Glass wrote: > >> Hi, > > > > Hi Simon, > > > >> > >> On 17 September 2018 at 20:06, Simon Glass wrote: > >> > On 17

Re: [U-Boot] [PATCH 22/31] binman: Allow zero-size sections

2018-10-02 Thread Simon Glass
On 14 September 2018 at 03:57, Simon Glass wrote: > At present if there is only a zero-size entry in a section this is > reported as an error, e.g.: > >Offset 0x0 (0) is outside the section starting at 0x0 (0) > > Adjust the logic in CheckEntries() to avoid this. > > Signed-off-by: Simon

[U-Boot] [PATCH v2 10/23] spl: Make SPL_DISABLE_BANNER_PRINT a positive option

2018-10-02 Thread Simon Glass
Rather than having a negative option, make this a positive option and enable it by default. This makes it easier to understand. Signed-off-by: Simon Glass --- Changes in v2: None common/spl/Kconfig | 17 + common/spl/spl.c | 2 +- 2 files changed, 14 insertions(+), 5

[U-Boot] [PATCH v2 07/23] Add bloblist documentation

2018-10-02 Thread Simon Glass
Add a description of the purpose of bloblist and how to use it. Signed-off-by: Simon Glass --- Changes in v2: None doc/README.bloblist | 82 + 1 file changed, 82 insertions(+) create mode 100644 doc/README.bloblist diff --git a/doc/README.bloblist

[U-Boot] [PATCH v2 18/23] sandbox: Allow puts() output before global_data is set up

2018-10-02 Thread Simon Glass
We support putc() in this case but not puts(), but this is more useful since it is what printf() uses. This particularly affects debugging early in SPL, where currently printf() statements result in no output. Fix this by adding a special case into puts() for sandbox, just like putc().

Re: [U-Boot] [PATCH v3 3/4] rockchip: rk3399: Add Rock960 CE board support

2018-10-02 Thread Simon Glass
On 27 September 2018 at 12:03, Manivannan Sadhasivam wrote: > Add board support for Rock960 CE board from Vamrs. This board utilizes > common Rock960 family support. > > Following peripherals are tested and known to work: > * USB 2.0 > * MMC > > This commit also adds DDR configuration for

Re: [U-Boot] [PATCH V2 1/2] ofnode: Replace of_n_addr_cells with of_n_size_cells

2018-10-02 Thread Simon Glass
On 1 October 2018 at 03:37, Marek Vasut wrote: > The size should be decoded using of_n_size_cells(), make it so. > > Signed-off-by: Marek Vasut > Cc: Simon Glass > Cc: Tom Rini > --- > V2: New patch > --- > drivers/core/ofnode.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

[U-Boot] [PATCH v2 16/23] sandbox: Drop the deprecated 'sb' command

2018-10-02 Thread Simon Glass
The old 'sb' command was deprecated in 2015 and replaced with 'host'. Remove the remaining users and the command, so that the name is available for other purposes. Signed-off-by: Simon Glass --- Changes in v2: None cmd/host.c | 5 - doc/README.trace| 2 +-

Re: [U-Boot] [PATCH v2 4/4] dm: test: Add "/firmware" node scan test

2018-10-02 Thread Simon Glass
On 25 September 2018 at 22:41, Simon Glass wrote: > On 19 September 2018 at 04:43, Rajan Vaja wrote: >> Add a test which verifies that all subnodes under "/firmware" >> nodes are scanned. >> >> Signed-off-by: Rajan Vaja >> --- >> Changes in v2: >> * New patch >> --- >>

[U-Boot] [PATCH v2 22/23] sandbox: Boot in U-Boot through the standard call

2018-10-02 Thread Simon Glass
Most architectures use jump_to_image_no_args() to jump from SPL to U-Boot. At present sandbox is special in that it jumps in its spl_board_load_image() call. This is not strictly correct, and means that sandbox misses out some parts of board_init_r(), just as calling bloblist_finish(), for

Re: [U-Boot] [PATCH 2/7] drivers: spi: cf_spi: migrate to DM and DT

2018-10-02 Thread Simon Glass
Hi Angelo, On 28 September 2018 at 04:22, Angelo Dureghello wrote: > Hi Simon, > > On Thu, Sep 27, 2018 at 06:41:37AM -0700, Simon Glass wrote: >> Hi Angelo, >> >> On 26 September 2018 at 11:53, Angelo Dureghello wrote: >> > Hi Simon, >> > >> > thanks for the review. >> > >> > On Tue, Sep 25,

[U-Boot] [PATCH v2 21/23] sandbox: Filter arguments when starting U-Boot

2018-10-02 Thread Simon Glass
The current method of starting U-Boot from U-Boot adds arguments to pass the memory file through, so that memory is preserved. This is fine for a single call, but if we call from TPL -> SPL -> U-Boot the arguments build up and we have several memory files in the argument list. Adjust the

[U-Boot] [PATCH v2 17/23] sandbox: Add a new 'sb' command

2018-10-02 Thread Simon Glass
The old 'sb' command was deprecated in 2015 and replaced with 'host'. It is useful to be able to access some internal sandbox state, particularly for testing. Resurrect the old command and provide a way to print some basic state information (currently just the arguments to sandbox).

[U-Boot] [PATCH v2 02/23] spl: Add support for logging in SPL and TPL

2018-10-02 Thread Simon Glass
It is sometimes useful to log information in SPL and TPL. Add support for this. Signed-off-by: Simon Glass --- Changes in v2: None common/Kconfig | 36 ++-- common/Makefile | 4 ++-- common/spl/spl.c | 7 +++ include/log.h| 7 ++- 4 files

Re: [U-Boot] [PATCH v3 4/4] rockchip: rk3399: Add Ficus EE board support

2018-10-02 Thread Simon Glass
On 27 September 2018 at 12:03, Manivannan Sadhasivam wrote: > Add board support for Ficus EE board from Vamrs. This board utilizes > common Rock960 family support. > > Following peripherals are tested and known to work: > * Gigabit Ethernet > * USB 2.0 > * MMC > > Signed-off-by: Ezequiel Garcia

Re: [U-Boot] [PATCH v2] cmd: usb_mass_storage: add protection for block_dev

2018-10-02 Thread Marek Vasut
On 10/02/2018 09:54 AM, Patrick DELAUNAY wrote: > Hi Marek, Hi, >> From: Marek Vasut >> Sent: dimanche 30 septembre 2018 10:09 >> >> On 09/28/2018 11:30 AM, Patrick DELAUNAY wrote: >>> Hi, >> >> Hi, >> From: Marek Vasut On 09/26/2018 01:04 PM, Patrick Delaunay wrote: > solve

[U-Boot] [PATCH v2 14/23] test/py: Add a way to pass flags to sandbox

2018-10-02 Thread Simon Glass
It is sometimes useful to restart sandbox with some particular flags to test certain functionality. Add a new method to ConsoleSandbox to handle this, without changing the existing APIs. Signed-off-by: Simon Glass Acked-by: Stephen Warren --- Changes in v2: - Add back a blank line, and put one

Re: [U-Boot] [PATCH v4 14/19] tee: add sandbox driver

2018-10-02 Thread Simon Glass
On 25 September 2018 at 07:40, Jens Wiklander wrote: > Adds a sandbox tee driver which emulates a generic TEE with the OP-TEE > AVB TA. > > Reviewed-by: Simon Glass > Signed-off-by: Jens Wiklander > --- > drivers/tee/Kconfig | 18 ++- > drivers/tee/Makefile | 1 + >

Re: [U-Boot] [PATCH v3 2/4] rockchip: rk3399: Add common Rock960 family from Vamrs

2018-10-02 Thread Simon Glass
On 27 September 2018 at 12:02, Manivannan Sadhasivam wrote: > Rock960 is a family of boards based on Rockchip RK3399 SoC from Vamrs. > It consists of Rock960 (Consumer Edition) and Ficus (Enterprise Edition) > 96Boards. > > Below are some of the key differences between both Rock960 and Ficus >

Re: [U-Boot] [PATCH 2/3] spi: Add support for the Aspeed ast2500 SPI controllers

2018-10-02 Thread Simon Glass
Hi Cedric, On 28 September 2018 at 04:42, Cédric Le Goater wrote: > Hello Simon, > > > The Aspeed AST2500 FMC controller can handle SPI flash and NOR flash memory, > and the Aspeed AST2500 SPI Flash Controllers only SPI. If there is some > misunderstanding on this driver, it might come from the

[U-Boot] [PATCH v2 12/23] spl: Print a message if we are unable to load an image

2018-10-02 Thread Simon Glass
It can confusing when U-Boot SPL hangs for no obvious reason, when it is unable to load U-Boot. Add a message to indicate the cause. Signed-off-by: Simon Glass --- Changes in v2: None common/spl/spl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/spl/spl.c b/common/spl/spl.c

[U-Boot] [PATCH v2 04/23] spl: Set up the bloblist in SPL

2018-10-02 Thread Simon Glass
The bloblist is normally set up in SPL ready for use by U-Boot. Add a simple implementation of this to the common SPL code. Signed-off-by: Simon Glass --- Changes in v2: None common/spl/spl.c | 18 -- include/spl.h| 27 +++ 2 files changed, 43

[U-Boot] [PATCH v2 08/23] spl: Support hash, input, pch, pci, rtc, tpm in SPL

2018-10-02 Thread Simon Glass
At present these subsystems are only supported in U-Boot proper but it is sometimes necessary to support them in SPL, or even TPL. Update the Kconfig and Makefile to support this. Also adjust GPIO so that it can be used in TPL if required. Signed-off-by: Simon Glass --- Changes in v2: None

Re: [U-Boot] [PATCH] sandbox: Add an explanation of the sandbox variants

2018-10-02 Thread Simon Glass
On 18 September 2018 at 17:43, Simon Glass wrote: > There are quite a few builds of sandbox now. Add information about these > to the README. > > Signed-off-by: Simon Glass > --- > > board/sandbox/README.sandbox | 24 > 1 file changed, 24 insertions(+) Applied to

Re: [U-Boot] [PATCH 03/22] Add core support for a bloblist to convey data from SPL

2018-10-02 Thread Simon Glass
Hi Andreas, On 26 September 2018 at 21:54, Andreas Dannenberg wrote: > Hi Simon, > some quick comments/notes inlined... > > On Wed, Sep 26, 2018 at 03:55:01PM -0600, Simon Glass wrote: >> At present there is no standard way in U-Boot to pass information from SPL >> to U-Boot proper. But

Re: [U-Boot] [PATCH v4 18/19] avb_verify: support sandbox configuration

2018-10-02 Thread Simon Glass
On 25 September 2018 at 07:40, Jens Wiklander wrote: > Change get_sector_buf() to use map_sysmem() to get a pointer to the > CONFIG_FASTBOOT_BUF_ADDR in memory. > > Signed-off-by: Jens Wiklander > --- > include/avb_verify.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Reviewed-by:

Re: [U-Boot] [PATCH 17/31] binman: Obtain the list of device trees from the config

2018-10-02 Thread Simon Glass
On 14 September 2018 at 03:57, Simon Glass wrote: > We always have a device tree for U-Boot proper. But we may also have one > for SPL and TPL. Add a new Entry method to find out what DTs an entry > has, and use that list when updating DTs. > > Signed-off-by: Simon Glass > --- > >

  1   2   >