Re: [U-Boot] [EXT] Re: [PATCH v2 3/3] rtc: pcf2127: Fixed bug with rtc settings and getting error time

2019-06-23 Thread Chuanhua Han
Hi, > -Original Message- > From: Simon Glass > Sent: 2019年6月23日 3:10 > To: Chuanhua Han > Cc: Heiko Schocher ; U-Boot Mailing List ; > Biwen Li ; Lukasz Majewski > Subject: [EXT] Re: [PATCH v2 3/3] rtc: pcf2127: Fixed bug with rtc settings > and > getting error time > > Caution: EXT

[U-Boot] ping http://patchwork.ozlabs.org/patch/1094196/

2019-06-23 Thread Hannes Schmelzer
hi stefano, how about merging this? cheers, Hannes -- mfG Schmelzer Hannes ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [EXT] Re: [PATCH v2 2/5] dm: spi: Convert Freescale ESPI driver to driver model

2019-06-23 Thread Chuanhua Han
Hi, > -Original Message- > From: Simon Glass > Sent: 2019年6月23日 3:10 > To: Chuanhua Han > Cc: Jagan Teki ; Wolfgang Denk ; > Shengzhou Liu ; Ruchika Gupta > ; U-Boot Mailing List ; > Prabhakar Kushwaha ; Jiafei Pan > ; Yinbo Zhu ; Bin Meng > ; Jagdish Gediya > Subject: [EXT] Re: [PATCH

Re: [U-Boot] [PATCH 1/1] ARM: correct detection of thumbs mode

2019-06-23 Thread Marek Vasut
On 6/23/19 8:31 AM, Heinrich Schuchardt wrote: > When a crash occurs in thumbs It's Thumb , not Thumbs. You should take CONFIG_ARM_THUMB off the config whitelist too. > mode the crash dump is incorrect. This is due > to the usage of a non-existing configuration variable CONFIG_ARM_THUMB in >

[U-Boot] [PATCH 1/1] ARM: correct detection of thumbs mode

2019-06-23 Thread Heinrich Schuchardt
When a crash occurs in thumbs mode the crash dump is incorrect. This is due to the usage of a non-existing configuration variable CONFIG_ARM_THUMB in the definition of macro thumb_mode(regs). Use CONFIG_IS_ENABLED(SYS_THUMB_BUILD) to detect that the code has been compiled for thumbs mode. With

[U-Boot] [PATCH v2 1/1] ARM: correct detection of thumb mode

2019-06-23 Thread Heinrich Schuchardt
When a crash occurs in thumb mode the crash dump is incorrect. This is due to the usage of a non-existing configuration variable CONFIG_ARM_THUMB in the definition of macro thumb_mode(regs). Use CONFIG_IS_ENABLED(SYS_THUMB_BUILD) to detect that the code has been compiled for thumb mode. Remove

[U-Boot] ping on http://patchwork.ozlabs.org/patch/1094192/

2019-06-23 Thread Hannes Schmelzer
Hi Tom, how about merging this? cheers, Hannes -- mfG Schmelzer Hannes ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] bootloop with 2019-07 on Bananapi-r2

2019-06-23 Thread Frank Wunderlich
Hi, i have an issue with 2019-07 (rc1 and rc4) on Bananapi-R2 (mt7623). from the bootlog (seems like WDT triggers a reset): U-Boot 2019.07-rc1-bpi-r2-2-gb692d6e6b4 (Jun 23 2019 - 11:39:57 +0200) CPU: MediaTek MT7623 E3 DRAM: 2 GiB WDT: Started with servicing (60s timeout) [USBD] USB

Re: [U-Boot] [BUG] incorrect crash dump output for thumbs mode

2019-06-23 Thread Marek Vasut
On 6/23/19 8:06 AM, Heinrich Schuchardt wrote: >>> Hello Marek, >>> >>> please, have a look at arch/arm/lib/interrupts.c. >>> >>> If the processor is in thumbs mode when crashing the output is formatted >>> in a different way than when not in thumbs mode, cf. dump_instr(). Is >>> there something

Re: [U-Boot] [BUG] bootloop with 2019-07 on Bananapi-r2

2019-06-23 Thread Frank Wunderlich
Hi again, whats the correct way to enable debug? i tried this (add #define DEBUG in common.h): https://stackoverflow.com/questions/31185603/enabling-debug-mode-for-denx-u-boot-2015-04-on-pandaboard-es => uboot does not load (version-line does get printed) then i've found this:

Re: [U-Boot] ping on http://patchwork.ozlabs.org/patch/1094192/

2019-06-23 Thread Tom Rini
On Sun, Jun 23, 2019 at 10:03:07AM +0200, Hannes Schmelzer wrote: > Hi Tom, > > how about merging this? I think it looks fine, I'll pick it up in the next release, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list

Re: [U-Boot] [PATCH 0/7] sunxi: Add H6 DDR3 DRAM support

2019-06-23 Thread hex dump
On Fri, Jun 21, 2019 at 3:54 PM Andre Przywara wrote: > > So far the SPL DRAM driver for the Allwinner H6 SoC only supports > LPDDR3 DRAM chips, which are used on most single board computers with > this SoC. > There are some TV boxes with the H6 out now, but most of them are > using DDR3 DRAM

Re: [U-Boot] [v3, 5/5] mmc: fsl_esdhc_imx: drop useless code

2019-06-23 Thread Marek Vasut
On 5/31/19 8:12 AM, Y.b. Lu wrote: > Hi Angelo, > >> -Original Message- >> From: Angelo Dureghello <...> >> Sent: 2019年5月31日 2:23 >> To: Y.b. Lu >> Cc: ; Stefano Babic <...>; Fabio Estevam <...> [...] Can you please fix your mailer and stop quoting everyone's email in the body of your

[U-Boot] [PATCH v7 1/9] clk: sifive: Factor-out PLL library as separate module

2019-06-23 Thread Anup Patel
To match SiFive clock driver with latest Linux, we factor-out PLL library as separate module under drivers/clk/analogbits. Signed-off-by: Anup Patel Reviewed-by: Bin Meng --- drivers/clk/Kconfig | 1 + drivers/clk/Makefile

Re: [U-Boot] [PATCH v4 2/5] dm: spi: Convert Freescale ESPI driver to driver model

2019-06-23 Thread Chuanhua Han
+ Simon Glass > -Original Message- > From: Chuanhua Han > Sent: 2019年6月21日 10:22 > To: w...@denx.de; Shengzhou Liu ; Ruchika Gupta > ; ja...@openedev.com; s...@chromium.org; > Prabhakar Kushwaha > Cc: u-boot@lists.denx.de; Chuanhua Han > Subject: [PATCH v4 2/5] dm: spi: Convert

[U-Boot] [PATCH v7 0/9] Update SiFive Unleashed Drivers

2019-06-23 Thread Anup Patel
This series update SiFive Unleashed clock driver and Cadence MACB driver so that: 1. It is in sync with upstream Linux driver 2. It uses latest DT bindings as-per upstream Linux driver With this series, we can now use latest DT bindings with U-Boot. I have tested SiFive Serial driver and Cadence

[U-Boot] [PATCH v7 7/9] riscv: sifive: fu540: Setup ethaddr env variable using OTP

2019-06-23 Thread Anup Patel
This patch extends SiFive FU540 board support to setup ethaddr env variable based on board serialnum read from OTP. Signed-off-by: Anup Patel --- board/sifive/fu540/fu540.c | 122 + configs/sifive_fu540_defconfig | 1 + 2 files changed, 123 insertions(+)

[U-Boot] [PATCH v7 9/9] net: macb: Fix check for little-endian system in gmac_configure_dma()

2019-06-23 Thread Anup Patel
We should depend on __LITTLE_ENDIAN pre-defined compiler macro for little-endian system instead of U-Boot specific CONFIG_SYS_LITTLE_ENDIAN macro. Signed-off-by: Anup Patel --- drivers/net/macb.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/macb.c

Re: [U-Boot] [PATCH 1/1] x86: Add basic Slim Bootloader payload support

2019-06-23 Thread Bin Meng
Hi Aiden, On Fri, Jun 21, 2019 at 1:44 AM Park, Aiden wrote: > > This patch is to enable u-boot as a payload which runs on top of > Slim Bootloader(https://github.com/slimbootloader/slimbootloader) > boot firmware for x86 platforms. > > Added new SLIMBOOTLOADER SYS/VENDOR/TARGET CONFIG > - New

Re: [U-Boot] [PATCH v7 7/9] riscv: sifive: fu540: Setup ethaddr env variable using OTP

2019-06-23 Thread Bin Meng
On Mon, Jun 24, 2019 at 12:03 PM Anup Patel wrote: > > This patch extends SiFive FU540 board support to setup ethaddr > env variable based on board serialnum read from OTP. > > Signed-off-by: Anup Patel > --- > board/sifive/fu540/fu540.c | 122 + >

Re: [U-Boot] [PATCH v7 9/9] net: macb: Fix check for little-endian system in gmac_configure_dma()

2019-06-23 Thread Bin Meng
On Mon, Jun 24, 2019 at 12:03 PM Anup Patel wrote: > > We should depend on __LITTLE_ENDIAN pre-defined compiler macro for > little-endian system instead of U-Boot specific CONFIG_SYS_LITTLE_ENDIAN > macro. > > Signed-off-by: Anup Patel > --- > drivers/net/macb.c | 7 --- > 1 file changed, 4

[U-Boot] [PATCH 4/7] efi_loader: clean up runtime detaching

2019-06-23 Thread Heinrich Schuchardt
The detaching of the runtime will have to move to ExitBootServices() to encompass operating system that do not call SetVirtualAddressMap(). This patch changes the logic for the relocation of the pointers in the runtime table such that the relocation becomes independent of the entries in the

[U-Boot] [PATCH 1/7] efi_loader: move efi_query_variable_info()

2019-06-23 Thread Heinrich Schuchardt
Let's keep similar things together. Move efi_query_variable_info() to lib/efi_loader/efi_variable.c Signed-off-by: Heinrich Schuchardt --- include/efi_loader.h | 5 + lib/efi_loader/efi_runtime.c | 27 --- lib/efi_loader/efi_variable.c | 27

[U-Boot] [PATCH v7 8/9] doc: sifive-fu540: Update README for steps to create FW_PAYLOAD

2019-06-23 Thread Anup Patel
Due changes in DT bindings, we now embed DTB from Linux-5.3 (or higher) in OpenSBI FW_PAYLOAD along with payload u-boot.bin. This patch updates SiFive FU540 README to reflect the changes in build and boot steps. Signed-off-by: Anup Patel Reviewed-by: Bin Meng Reviewed-by: Alistair Francis ---

[U-Boot] [PATCH v7 6/9] net: macb: Extend MACB driver for SiFive Unleashed board

2019-06-23 Thread Anup Patel
The SiFive MACB ethernet has a custom TX_CLK_SEL register to select different TX clock for 1000mbps vs 10/100mbps. This patch adds SiFive MACB compatible string and extends the MACB ethernet driver to change TX clock using TX_CLK_SEL register for SiFive MACB. Signed-off-by: Anup Patel ---

[U-Boot] [PATCH v7 5/9] clk: sifive: Drop GEMGXL clock driver

2019-06-23 Thread Anup Patel
The GEMGXL clock driver is now directly part of Cadence MACB ethernet driver in upstream Linux kernel. There is no separate GEMGXL clock driver in upstream Linux kernel hence we drop GEMGXL clock driver from U-Boot as well. Signed-off-by: Anup Patel Reviewed-by: Bin Meng ---

[U-Boot] [PATCH 5/7] efi_loader: let the variable driver patch out the runtime

2019-06-23 Thread Heinrich Schuchardt
Our variable services are only provided at boottime. Therefore when leaving boottime the variable function are replaced by dummy functions returning EFI_UNSUPPORTED. Move this patching of the runtime table to the variable services implementation. Executed it in ExitBootServices(). Signed-off-by:

[U-Boot] [PATCH 3/7] efi_loader: initialization of variable services

2019-06-23 Thread Heinrich Schuchardt
Provide an initialization routine for variable services. Signed-off-by: Heinrich Schuchardt --- include/efi_loader.h | 2 ++ lib/efi_loader/efi_setup.c| 6 ++ lib/efi_loader/efi_variable.c | 10 ++ 3 files changed, 18 insertions(+) diff --git a/include/efi_loader.h

[U-Boot] [PATCH 0/7] efi_loader: variable services

2019-06-23 Thread Heinrich Schuchardt
Currently our UEFI variables are stored in U-Boot variables. Runtime support for variables is missing. This patch series prepares for alternative implementations of the variable services. * QueryVariableInfo() is moved into the same file as the other variable services. * For booting via GRUB

[U-Boot] [PATCH] ARM: da850-evm: Remove repeated pinmuxing calls

2019-06-23 Thread Adam Ford
arch_cpu_init() initializes the pinmuxing which is called fairly early in the start sequences, so the board_init function doesn't need to do it again. This patch removes the call from board_init. Signed-off-by: Adam Ford diff --git a/board/davinci/da8xxevm/da850evm.c

[U-Boot] [PATCH v6 8/8] doc: sifive-fu540: Update README for steps to create FW_PAYLOAD

2019-06-23 Thread Anup Patel
Due changes in DT bindings, we now embed DTB from Linux-5.3 (or higher) in OpenSBI FW_PAYLOAD along with payload u-boot.bin. This patch updates SiFive FU540 README to reflect the changes in build and boot steps. Signed-off-by: Anup Patel Reviewed-by: Bin Meng Reviewed-by: Alistair Francis ---

[U-Boot] [PATCH v6 6/8] net: macb: Extend MACB driver for SiFive Unleashed board

2019-06-23 Thread Anup Patel
The SiFive MACB ethernet has a custom TX_CLK_SEL register to select different TX clock for 1000mbps vs 10/100mbps. This patch adds SiFive MACB compatible string and extends the MACB ethernet driver to change TX clock using TX_CLK_SEL register for SiFive MACB. Signed-off-by: Anup Patel ---

[U-Boot] [PATCH v6 4/8] clk: sifive: Sync-up main driver with upstream Linux

2019-06-23 Thread Anup Patel
The DT bindings of SiFive clock driver in upstream Linux has changes. As-per latest DT bindings, the clock driver takes two parent clocks and compatible string has also changed. This patch sync-up SiFive clock driver implementation as-per upstream Linux so that we now use latest DT bindings.

[U-Boot] [PATCH v6 7/8] riscv: sifive: fu540: Setup ethaddr env variable using OTP

2019-06-23 Thread Anup Patel
This patch extends SiFive FU540 board support to setup ethaddr env variable based on board serialnum read from OTP. Signed-off-by: Anup Patel --- board/sifive/fu540/fu540.c | 122 + configs/sifive_fu540_defconfig | 1 + 2 files changed, 123 insertions(+)

Re: [U-Boot] [PATCH v5 6/8] net: macb: Extend MACB driver for SiFive Unleashed board

2019-06-23 Thread Anup Patel
On Thu, Jun 20, 2019 at 4:01 PM Ramon Fried wrote: > > > On 6/20/19 12:55 PM, Anup Patel wrote: > > > >> -Original Message- > >> From: Ramon Fried > >> Sent: Thursday, June 20, 2019 2:48 PM > >> To: Anup Patel > >> Cc: Rick Chen ; Bin Meng ; > >> Lukas Auer ; Simon Glass > >> ; Joe

Re: [U-Boot] [PATCH v7 3/9] clk: sifive: Sync-up DT bindings header with upstream Linux

2019-06-23 Thread Bin Meng
On Mon, Jun 24, 2019 at 12:02 PM Anup Patel wrote: > > The location and license header of DT bindings header for SiFive > clock driver has changed in upstream Linux hence this patch. > > Signed-off-by: Anup Patel > --- > drivers/clk/sifive/fu540-prci.c | 2 +- >

Re: [U-Boot] [PATCH v7 6/9] net: macb: Extend MACB driver for SiFive Unleashed board

2019-06-23 Thread Bin Meng
On Mon, Jun 24, 2019 at 12:03 PM Anup Patel wrote: > > The SiFive MACB ethernet has a custom TX_CLK_SEL register to select > different TX clock for 1000mbps vs 10/100mbps. > > This patch adds SiFive MACB compatible string and extends the MACB > ethernet driver to change TX clock using TX_CLK_SEL

[U-Boot] [PATCH 4/7] efi_loader: clean up runtime detaching

2019-06-23 Thread Heinrich Schuchardt
The detaching of the runtime will have to move to ExitBootServices() to encompass operating system that do not call SetVirtualAddressMap(). This patch changes the logic for the relocation of the pointers in the runtime table such that the relocation becomes independent of the entries in the

[U-Boot] [PATCH 2/7] efi_debug: make variable support customizable

2019-06-23 Thread Heinrich Schuchardt
Provide a customization option to define how UEFI variables are implemented. This patch provides a dummy implementation without any variable support and provides the choice between this dummy and the legacy implementation. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/Kconfig

[U-Boot] [PATCH 7/7] efi_selftest: test variable services at runtime

2019-06-23 Thread Heinrich Schuchardt
Provide a unit test for the variable services at runtime. Currently we expect EFI_UNSUPPORTED to be returned as the runtime implementation is still missing. Signed-off-by: Heinrich Schuchardt --- lib/efi_selftest/Makefile | 1 + .../efi_selftest_variables_runtime.c

[U-Boot] [PATCH 0/7] efi_loader: variable services

2019-06-23 Thread Heinrich Schuchardt
Currently our UEFI variables are stored in U-Boot variables. Runtime support for variables is missing. This patch series prepares for alternative implementations of the variable services. * QueryVariableInfo() is moved into the same file as the other variable services. * For booting via GRUB

[U-Boot] [BUG] incorrect crash dump output for thumbs mode

2019-06-23 Thread Heinrich Schuchardt
Hello Marek, please, have a look at arch/arm/lib/interrupts.c. If the processor is in thumbs mode when crashing the output is formatted in a different way than when not in thumbs mode, cf. dump_instr(). Is there something wrong with the thumbs mode detection? Well, try maybe objdump ? What

[U-Boot] [PATCH 1/1] imx6: wandboard: allow booting from MMC 2

2019-06-23 Thread Heinrich Schuchardt
One of the SD-CARD slots on the Wandboard Quad B1 is MMC 2. Enable it as a boot device. Signed-off-by: Heinrich Schuchardt --- include/configs/wandboard.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/wandboard.h b/include/configs/wandboard.h index 2e6262f0f4..bdcd5e9db3

Re: [U-Boot] [PATCH v2 1/1] ARM: correct detection of thumb mode

2019-06-23 Thread Marek Vasut
On 6/23/19 12:59 PM, Heinrich Schuchardt wrote: > When a crash occurs in thumb mode the crash dump is incorrect. This is due > to the usage of a non-existing configuration variable CONFIG_ARM_THUMB in > the definition of macro thumb_mode(regs). > > Use CONFIG_IS_ENABLED(SYS_THUMB_BUILD) to detect

[U-Boot] [PATCH] ARM: da850-evm: Remove duplicate UART initialization

2019-06-23 Thread Adam Ford
The Low Level init functions start the UART, so it doesn't need to happen during board_init. This patch removes it from board_init. Signed-off-by: Adam Ford diff --git a/board/davinci/da8xxevm/da850evm.c b/board/davinci/da8xxevm/da850evm.c index a90b7a3538..c5404e6063 100644 ---

Re: [U-Boot] [v3, 5/5] mmc: fsl_esdhc_imx: drop useless code

2019-06-23 Thread Y.b. Lu
Hi Angelo, > -Original Message- > From: Angelo Dureghello > Sent: 2019年6月23日 5:43 > To: Y.b. Lu > Cc: u-boot@lists.denx.de > Subject: Re: [v3, 5/5] mmc: fsl_esdhc_imx: drop useless code > > Hi Lu, > > On Mon, Jun 03, 2019 at 04:28:24AM +, Y.b. Lu wrote: > > Hi, > > > > >

[U-Boot] [PATCH v6 2/8] clk: sifive: Sync-up WRPLL library with upstream Linux

2019-06-23 Thread Anup Patel
Now that SiFive clock driver is merged in upstream Linux, we sync-up WRPLL library used by SiFive clock driver with upstream Linux sources. Signed-off-by: Anup Patel Reviewed-by: Bin Meng --- drivers/clk/analogbits/wrpll-cln28hpc.c | 165 --

[U-Boot] [PATCH v6 5/8] clk: sifive: Drop GEMGXL clock driver

2019-06-23 Thread Anup Patel
The GEMGXL clock driver is now directly part of Cadence MACB ethernet driver in upstream Linux kernel. There is no separate GEMGXL clock driver in upstream Linux kernel hence we drop GEMGXL clock driver from U-Boot as well. Signed-off-by: Anup Patel Reviewed-by: Bin Meng ---

[U-Boot] [PATCH v6 1/8] clk: sifive: Factor-out PLL library as separate module

2019-06-23 Thread Anup Patel
To match SiFive clock driver with latest Linux, we factor-out PLL library as separate module under drivers/clk/analogbits. Signed-off-by: Anup Patel Reviewed-by: Bin Meng --- drivers/clk/Kconfig | 1 + drivers/clk/Makefile

[U-Boot] [PATCH v6 3/8] clk: sifive: Sync-up DT bindings header with upstream Linux

2019-06-23 Thread Anup Patel
The location and license header of DT bindings header for SiFive clock driver has changed in upstream Linux hence this patch. Signed-off-by: Anup Patel --- drivers/clk/sifive/fu540-prci.c | 2 +- include/dt-bindings/clk/sifive-fu540-prci.h | 29 ---

[U-Boot] [PATCH v6 0/8] Update SiFive Unleashed Drivers

2019-06-23 Thread Anup Patel
This series update SiFive Unleashed clock driver and Cadence MACB driver so that: 1. It is in sync with upstream Linux driver 2. It uses latest DT bindings as-per upstream Linux driver With this series, we can now use latest DT bindings with U-Boot. I have tested SiFive Serial driver and Cadence

Re: [U-Boot] [EXT] Re: [PATCH v2 2/5] dm: spi: Convert Freescale ESPI driver to driver model

2019-06-23 Thread Chuanhua Han
> -Original Message- > From: Simon Glass > Sent: 2019年6月23日 3:10 > To: Chuanhua Han > Cc: Jagan Teki ; Wolfgang Denk ; > Shengzhou Liu ; Ruchika Gupta > ; U-Boot Mailing List ; > Prabhakar Kushwaha ; Jiafei Pan > ; Yinbo Zhu ; Bin Meng > ; Jagdish Gediya > Subject: [EXT] Re: [PATCH v2

[U-Boot] [PATCH 2/7] efi_debug: make variable support customizable

2019-06-23 Thread Heinrich Schuchardt
Provide a customization option to define how UEFI variables are implemented. This patch provides a dummy implementation without any variable support and provides the choice between this dummy and the legacy implementation. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/Kconfig

[U-Boot] [PATCH 1/7] efi_loader: move efi_query_variable_info()

2019-06-23 Thread Heinrich Schuchardt
Let's keep similar things together. Move efi_query_variable_info() to lib/efi_loader/efi_variable.c Signed-off-by: Heinrich Schuchardt --- include/efi_loader.h | 5 + lib/efi_loader/efi_runtime.c | 27 --- lib/efi_loader/efi_variable.c | 27

[U-Boot] [PATCH 5/7] efi_loader: let the variable driver patch out the runtime

2019-06-23 Thread Heinrich Schuchardt
Our variable services are only provided at boottime. Therefore when leaving boottime the variable function are replaced by dummy functions returning EFI_UNSUPPORTED. Move this patching of the runtime table to the variable services implementation. Executed it in ExitBootServices(). Signed-off-by:

[U-Boot] [PATCH 3/7] efi_loader: initialization of variable services

2019-06-23 Thread Heinrich Schuchardt
Provide an initialization routine for variable services. Signed-off-by: Heinrich Schuchardt --- include/efi_loader.h | 2 ++ lib/efi_loader/efi_setup.c| 6 ++ lib/efi_loader/efi_variable.c | 10 ++ 3 files changed, 18 insertions(+) diff --git a/include/efi_loader.h

[U-Boot] [PATCH 6/7] efi_loader: unimplemented runtime services

2019-06-23 Thread Heinrich Schuchardt
Unimplemented runtime services should always return EFI_UNSUPPORTED as described in the UEFI 2.8 spec. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_runtime.c | 34 ++ 1 file changed, 2 insertions(+), 32 deletions(-) diff --git

[U-Boot] [PATCH 6/7] efi_loader: unimplemented runtime services

2019-06-23 Thread Heinrich Schuchardt
Unimplemented runtime services should always return EFI_UNSUPPORTED as described in the UEFI 2.8 spec. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_runtime.c | 34 ++ 1 file changed, 2 insertions(+), 32 deletions(-) diff --git

[U-Boot] [PATCH 7/7] efi_selftest: test variable services at runtime

2019-06-23 Thread Heinrich Schuchardt
Provide a unit test for the variable services at runtime. Currently we expect EFI_UNSUPPORTED to be returned as the runtime implementation is still missing. Signed-off-by: Heinrich Schuchardt --- lib/efi_selftest/Makefile | 1 + .../efi_selftest_variables_runtime.c

[U-Boot] [PATCH v7 2/9] clk: sifive: Sync-up WRPLL library with upstream Linux

2019-06-23 Thread Anup Patel
Now that SiFive clock driver is merged in upstream Linux, we sync-up WRPLL library used by SiFive clock driver with upstream Linux sources. Signed-off-by: Anup Patel Reviewed-by: Bin Meng --- drivers/clk/analogbits/wrpll-cln28hpc.c | 165 --

[U-Boot] [PATCH v7 4/9] clk: sifive: Sync-up main driver with upstream Linux

2019-06-23 Thread Anup Patel
The DT bindings of SiFive clock driver in upstream Linux has changes. As-per latest DT bindings, the clock driver takes two parent clocks and compatible string has also changed. This patch sync-up SiFive clock driver implementation as-per upstream Linux so that we now use latest DT bindings.

[U-Boot] [PATCH v7 3/9] clk: sifive: Sync-up DT bindings header with upstream Linux

2019-06-23 Thread Anup Patel
The location and license header of DT bindings header for SiFive clock driver has changed in upstream Linux hence this patch. Signed-off-by: Anup Patel --- drivers/clk/sifive/fu540-prci.c | 2 +- include/dt-bindings/clk/sifive-fu540-prci.h | 29 ---

Re: [U-Boot] [EXT] Re: [PATCH v2 1/3] dm: i2c: Add a flag that needs to generate a stop bit

2019-06-23 Thread Chuanhua Han
> -Original Message- > From: Simon Glass > Sent: 2019年6月23日 3:10 > To: Chuanhua Han > Cc: Heiko Schocher ; U-Boot Mailing List ; > Biwen Li ; Lukasz Majewski > Subject: [EXT] Re: [PATCH v2 1/3] dm: i2c: Add a flag that needs to generate a > stop bit > > Caution: EXT Email > > Hi, >

Re: [U-Boot] [EXT] Re: [PATCH 1/2] dm: i2c: Add a flag that need generate stop bit

2019-06-23 Thread Chuanhua Han
+ Simon Glass > -Original Message- > From: Lukasz Majewski > Sent: 2019年6月18日 16:07 > To: Chuanhua Han > Cc: h...@denx.de; s...@chromium.org; Biwen Li ; > u-boot@lists.denx.de > Subject: [EXT] Re: [PATCH 1/2] dm: i2c: Add a flag that need generate stop bit > > On Mon, 17 Jun 2019

Re: [U-Boot] [EXT] Re: [PATCH 2/2] rtc: pcf2127: Fixed bug with rtc settings and getting error time

2019-06-23 Thread Chuanhua Han
+ Simon Glass > -Original Message- > From: Lukasz Majewski > Sent: 2019年6月18日 16:06 > To: Chuanhua Han > Cc: h...@denx.de; s...@chromium.org; Biwen Li ; > u-boot@lists.denx.de > Subject: [EXT] Re: [PATCH 2/2] rtc: pcf2127: Fixed bug with rtc settings and > getting error time > > Hi

[U-Boot] [PATCH 1/2] board: amcore: fix u-boot mtd partition

2019-06-23 Thread Angelo Dureghello
Signed-off-by: Angelo Dureghello --- include/configs/amcore.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/configs/amcore.h b/include/configs/amcore.h index 4daa0bafe8..6349cf90bc 100644 --- a/include/configs/amcore.h +++ b/include/configs/amcore.h @@

[U-Boot] [PATCH 2/2] board: stmark2: changes for mmc boot

2019-06-23 Thread Angelo Dureghello
Signed-off-by: Angelo Dureghello --- board/sysam/stmark2/stmark2.c | 15 +++ configs/stmark2_defconfig | 9 + include/configs/stmark2.h | 27 +++ 3 files changed, 39 insertions(+), 12 deletions(-) diff --git a/board/sysam/stmark2/stmark2.c

Re: [U-Boot] Crash in U-Boot

2019-06-23 Thread Heinrich Schuchardt
On 6/23/19 11:47 PM, Alexander Graf wrote: Am 23.06.2019 um 17:08 schrieb Heinrich Schuchardt : Hello Alex, on the i.MX6 Wandboard the Kernel crashes when booting via GRUB at least since U-Boot v2019.01. See below. In the code for SetVirtualAddressMap I saw the that the pointer to the list

Re: [U-Boot] [PATCH 7/7] wandboard: README: Adjust the U-Boot proper binary name

2019-06-23 Thread Heinrich Schuchardt
On 6/12/19 5:34 PM, Fabio Estevam wrote: After the conversion to DM the U-Boot proper binary name is 'u-boot-dtb.img', so adjust it accordingly. Signed-off-by: Fabio Estevam --- board/wandboard/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/wandboard/README

[U-Boot] [PATCH v2 0/5] sunxi: H6: Enable USB (2.0) support

2019-06-23 Thread Andre Przywara
Hi, a minor update to v1, adding PortM support as per Icenowy's comment and dropping the DT change. We still need the latter for support the USB0 port on some boards, but this takes another route now (syncing back from Linux). --- This series enables USB support on the H6 boards.

[U-Boot] [PATCH 3/8] net: tsec: Reverse Christmas tree notation

2019-06-23 Thread Vladimir Oltean
This is a cosmetic patch that reorders variable definitions in the inverse order of their line length, where possible. Signed-off-by: Vladimir Oltean --- drivers/net/tsec.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c

[U-Boot] [PATCH 8/8] Add support for the NXP LS1021A-TSN board

2019-06-23 Thread Vladimir Oltean
From: Jianchao Wang The LS1021A-TSN is a development board built by VVDN/Argonboards in partnership with NXP. It features the LS1021A SoC and the first-generation SJA1105T Ethernet switch for prototyping implementations of a subset of IEEE 802.1 TSN standards. Supported boot media: microSD

[U-Boot] [PATCH 5/8] net: tsec: Common handling of MAC station address for DM_ETH

2019-06-23 Thread Vladimir Oltean
In tsec_init, the MAC address is retrieved from 2 different structures depending on whether DM_ETH is enabled or not. But since the field name is the same inside both structures, we can conditionally define the structure of the correct type and simplify the assignments. Signed-off-by: Vladimir

[U-Boot] [PATCH 4/8] net: tsec: Make errors visible

2019-06-23 Thread Vladimir Oltean
This replaces debug() calls with printf() so that it is immediately obvious from the console that something is wrong. Signed-off-by: Vladimir Oltean --- drivers/net/tsec.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c index

[U-Boot] [PATCH 6/8] arm: ls1021atwr: Convert to use driver model TSEC driver

2019-06-23 Thread Vladimir Oltean
From: Bin Meng Now that we have added driver model support to the TSEC driver, convert ls1021atwr board to use it. This depends on previous DM series for ls1021atwr: http://patchwork.ozlabs.org/patch/561855/ Signed-off-by: Bin Meng [Vladimir] Made the following changes: - Added 'status =

[U-Boot] [PATCH 2/8] net: tsec: Fix offset of MDIO registers for DM_ETH

2019-06-23 Thread Vladimir Oltean
By convention, the eTSEC MDIO controller nodes are defined in DT at 0x2d24000 and 0x2d5, but actually U-boot does not touch the interrupt portion of the register map (MDIO_IEVENTM, MDIO_IMASKM, MDIO_EMAPM). That leaves only the MDIO bus registers (MDIO_MIIMCFG, MDIO_MIIMCOM, MDIO_MIIMADD,

[U-Boot] [PATCH 7/8] configs: ls1021atwr: Fix distro_bootcmd for QSPI boot

2019-06-23 Thread Vladimir Oltean
Due to a typo, "run qspi_bootcmd" and "env exists secureboot" got concatenated instead of being separated by a semicolon. Signed-off-by: Vladimir Oltean --- include/configs/ls1021atwr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/ls1021atwr.h

Re: [U-Boot] Crash in U-Boot

2019-06-23 Thread Alexander Graf
> Am 23.06.2019 um 17:08 schrieb Heinrich Schuchardt : > > Hello Alex, > > on the i.MX6 Wandboard the Kernel crashes when booting via GRUB at least > since U-Boot v2019.01. See below. > > In the code for SetVirtualAddressMap I saw the that the pointer to the > list of configuration tables is

Re: [U-Boot] [PATCH] Fix watchdog timeout setup for mt7623n (banana-pi r2)

2019-06-23 Thread Frank Wunderlich
Hi, WDT on mt7623 (bananapi r2) is still broken, i cannot boot into uboot-console because the boards reboots after this line appears: WDT: Started with servicing (60s timeout) without this patch it does it immediately with the patch after ~30s (not the 60s shown in message) regards Frank

Re: [U-Boot] Crash in U-Boot

2019-06-23 Thread Ard Biesheuvel
On Sun, 23 Jun 2019 at 23:47, Alexander Graf wrote: > > > > > Am 23.06.2019 um 17:08 schrieb Heinrich Schuchardt : > > > > Hello Alex, > > > > on the i.MX6 Wandboard the Kernel crashes when booting via GRUB at least > > since U-Boot v2019.01. See below. > > > > In the code for

Re: [U-Boot] [PATCH 1/1] imx6: wandboard: allow booting from MMC 2

2019-06-23 Thread Fabio Estevam
Hi Heinrich, On Sun, Jun 23, 2019 at 4:55 AM Heinrich Schuchardt wrote: > > One of the SD-CARD slots on the Wandboard Quad B1 is MMC 2. Enable it as a > boot device. > > Signed-off-by: Heinrich Schuchardt Reviewed-by: Fabio Estevam Also, I have sent a series that fixes the boot on imx6q/qp

Re: [U-Boot] [BUG] bootloop with 2019-07 on Bananapi-r2

2019-06-23 Thread Frank Wunderlich
2019-07 introduced a new function initr_watchdog include/wdt.h with commit 06985289d452ad2423145cfed8cece61a7f8cec6 which seems to be the problem here the commit shows some boards where the reset is removed board/mediatek/mt7623/mt7623_rfb.c does not contain such watchdog_reset function so it

[U-Boot] [PATCH 0/8] NXP LS1021A-TSN Board

2019-06-23 Thread Vladimir Oltean
This patchset adds initial support for the NXP LS1021A-TSN board, an evaluation platform built in partnership with VVDN/Argonboards for some IEEE 802.1 TSN features. It features a cleaned-up U-boot board support taken from OpenIL, as well as an eTSEC migration to DM_ETH. I picked up Bin Meng's

[U-Boot] [PATCH 1/8] net: tsec: Refactor the readout of the tbi-handle property

2019-06-23 Thread Vladimir Oltean
The point of this patch is to eliminate the use of the locally-defined "reg" variable (which interferes with next patch) and simplify the fallback to the default CONFIG_SYS_TBIPA_VALUE in case "tbi-handle" is missing. Signed-off-by: Vladimir Oltean --- drivers/net/tsec.c | 15 +++ 1

[U-Boot] [PATCH v2 3/5] sunxi: clocks: Add H6 USB clock gates and resets

2019-06-23 Thread Andre Przywara
To enable USB support in U-Boot, add the required clock and reset gates to the H6 clock driver. Once enabled, the generic EHCI/OCHI drivers will pick them up from there automatically. Signed-off-by: Andre Przywara --- drivers/clk/sunxi/clk_h6.c | 29 + 1 file

[U-Boot] [PATCH v2 5/5] sunxi: H6: Enable USB for existing boards

2019-06-23 Thread Andre Przywara
So far USB was not enabled for the Allwinner H6 boards, as the PHY driver was not ready and the clock gates were missing. Since this is now fixed, let's add the PHY and the OHCI/EHCI drivers to the build, for all existing H6 boards. Signed-off-by: Andre Przywara --- arch/arm/mach-sunxi/Kconfig

[U-Boot] [PATCH v2 1/5] sunxi: move SUNXI_GPIO to Kconfig

2019-06-23 Thread Andre Przywara
Probably for no particular reason SUNXI_GPIO was still defined the "old way", in header files only. Introduce SUNXI_GPIO to the Kconfig file in drivers/gpio to remove another line from our dreadful config_whitelist.txt. Signed-off-by: Andre Przywara --- arch/arm/Kconfig | 1 +

[U-Boot] [PATCH v2 2/5] sunxi: gpio: Enable support for H6 pin controller

2019-06-23 Thread Andre Przywara
The Allwinner H6 pin controller is not really special, at least not when it comes to normal GPIO operation. Add the H6 compatible strings to the list of recognised strings, to make GPIOs work for H6 boards. Signed-off-by: Andre Przywara --- drivers/gpio/sunxi_gpio.c | 2 ++ 1 file changed, 2

[U-Boot] [PATCH v2 4/5] sunxi: phy: Add USB PHY support for Allwinner H6

2019-06-23 Thread Andre Przywara
The USB PHY used in the Allwinner H6 SoC has some pecularities (as usual), which require a small addition to the USB PHY driver: In this case the second PHY is PHY3, not PHY1, so we need to skip number 1 and 2 in the code. Just use the respective code from Linux for that. Signed-off-by: Andre

[U-Boot] Fwd: Crash in U-Boot

2019-06-23 Thread Heinrich Schuchardt
Hello Alex, on the i.MX6 Wandboard the Kernel crashes when booting via GRUB at least since U-Boot v2019.01. See below. In the code for SetVirtualAddressMap I saw the that the pointer to the list of configuration tables is adjusted:     if ((map_start <= (uintptr_t)systab.tables) &&

Re: [U-Boot] Crash in U-Boot

2019-06-23 Thread Alexander Graf
> Am 24.06.2019 um 00:01 schrieb Ard Biesheuvel : > >> On Sun, 23 Jun 2019 at 23:47, Alexander Graf wrote: >> >> >> >>> Am 23.06.2019 um 17:08 schrieb Heinrich Schuchardt : >>> >>> Hello Alex, >>> >>> on the i.MX6 Wandboard the Kernel crashes when booting via GRUB at least >>> since