[PATCH 4/5] arm64: dts: k3-j721e-common-proc-board: Fully enable wkup_i2c0 use

2020-01-05 Thread Lokesh Vutla
From: Andreas Dannenberg Make the wkup_i2c0 module usable across all stages of U-Boot by adding the needed definitions including the associated pinmux definitions. Signed-off-by: Andreas Dannenberg Signed-off-by: Lokesh Vutla --- .../dts/k3-j721e-common-proc-board-u-boot.dtsi| 8

[PATCH 2/5] board: ti: j721e: Use EEPROM-based board detection

2020-01-05 Thread Lokesh Vutla
From: Andreas Dannenberg The TI J721E EVM system on module (SOM), the common processor board, and the associated daughtercards have on-board I2C-based EEPROMs containing board config data. Use the board detection infrastructure to do the following: 1) Parse the J721E SOM EEPROM and populate

[PATCH 5/5] configs: j721e_evm_a72_defconfig: Enable I2C and EEPROM support

2020-01-05 Thread Lokesh Vutla
From: Vignesh Raghavendra Enable I2C and EEPROM related configs for A72 SPL/U-Boot. Signed-off-by: Vignesh Raghavendra Signed-off-by: Andreas Dannenberg Signed-off-by: Lokesh Vutla --- configs/j721e_evm_a72_defconfig | 4 1 file changed, 4 insertions(+) diff --git

[PATCH 3/5] board: ti: j721e: Print board name and version during boot

2020-01-05 Thread Lokesh Vutla
Print the board name and ver along with the DT Model. Signed-off-by: Lokesh Vutla --- board/ti/j721e/evm.c | 13 + 1 file changed, 13 insertions(+) diff --git a/board/ti/j721e/evm.c b/board/ti/j721e/evm.c index d822ac81db..101fe1be4e 100644 --- a/board/ti/j721e/evm.c +++

[PATCH 1/5] ti: common: board_detect: Handle EEPROM probe more gracefully

2020-01-05 Thread Lokesh Vutla
From: Andreas Dannenberg Use dm_i2c_probe() rather than i2c_get_chip() when trying to access board-detection EEPROM devices. This has the advantage of more gracefully handling the case when the EEPROM is not present by allowing to exit the function early rather than failing and outputting an

[PATCH 0/5] board: ti: j721e: Enable I2C and EEPROM support

2020-01-05 Thread Lokesh Vutla
This series enable I2C and EEPROM support on J721e common processor board. Logs: https://pastebin.ubuntu.com/p/6YZtmZT9vQ/ Andreas Dannenberg (3): ti: common: board_detect: Handle EEPROM probe more gracefully board: ti: j721e: Use EEPROM-based board detection arm64: dts:

Re: [PATCH] arm64: zynqmp: Fix emmc boot mode boot_target sequennce

2020-01-05 Thread Michal Simek
út 17. 12. 2019 v 14:47 odesílatel Michal Simek napsal: > > From: T Karthik Reddy > > Emmc boot devcie is mounted to mmc@ff16 controller on zynqmp. > Detect mmc alias at run time for setting up proper boot_targets > sequence instead of setting boot_targets manually. > Removed setting

[PATCH 0/6] Add fastboot support for MediaTek mt8518

2020-01-05 Thread mingming lee
This patch series adds basic fastboot support for MediaTek MT8518 EMMC boards, including musb-new structure for gadget driver and fastboot related configs. mingming lee (6): usb: musb-new: mt85xx: add musb-new gadget driver. ARM: Mediatek: Add board_late_init to init usb gadget driver

[PATCH 1/6] usb: musb-new: mt85xx: add musb-new gadget driver.

2020-01-05 Thread mingming lee
Using musb-new structure for mt85xx gadget driver. Add gadget driver dts for mt8518 SoCs. Signed-off-by: mingming lee --- arch/arm/dts/mt8518.dtsi | 13 ++ drivers/usb/musb-new/Kconfig | 11 +- drivers/usb/musb-new/Makefile | 1 + drivers/usb/musb-new/mt85xx.c | 417

[PATCH 3/6] configs: mt8518: set global variables for fastboot

2020-01-05 Thread mingming lee
set common fastboot variables for mt8518 Signed-off-by: mingming lee --- include/configs/mt8518.h | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/configs/mt8518.h b/include/configs/mt8518.h index 8906245a62..9bc9c04e66 100644 --- a/include/configs/mt8518.h

[PATCH 6/6] fastboot: mt85xx: add command to flash/erase emmc hwpart

2020-01-05 Thread mingming lee
This patch includes the following: 1. Add fastboot command to erase the whole EMMC_USER 2. Add fastboot command to flash image at EMMC_BOOT1 3. Add fastboot command to erase the whole EMMC_BOOT1 4. Enale CONFIG_FASTBOOT_MMC_BOOT1_SUPPORT for mt8518 Signed-off-by: mingming lee ---

[PATCH 4/6] configs: mt8518: enable usb gadget driver

2020-01-05 Thread mingming lee
Enable board_late_init and usb gadget for mt8518 Signed-off-by: mingming lee --- configs/mt8518_ap1_emmc_defconfig | 10 ++ 1 file changed, 10 insertions(+) diff --git a/configs/mt8518_ap1_emmc_defconfig b/configs/mt8518_ap1_emmc_defconfig index dd42076f4d..9857b7b776 100644 ---

[PATCH 5/6] configs: mt8518: Enable fastboot related configs

2020-01-05 Thread mingming lee
Enable EFI module. Enable fastboot. Signed-off-by: mingming lee --- configs/mt8518_ap1_emmc_defconfig | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/configs/mt8518_ap1_emmc_defconfig b/configs/mt8518_ap1_emmc_defconfig index 9857b7b776..714fd8e087 100644 ---

[PATCH 2/6] ARM: Mediatek: Add board_late_init to init usb gadget driver

2020-01-05 Thread mingming lee
Add board_late_init function to init usb gadget driver for mt8518 Signed-off-by: mingming lee --- board/mediatek/mt8518/mt8518_ap1.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/board/mediatek/mt8518/mt8518_ap1.c b/board/mediatek/mt8518/mt8518_ap1.c index

Larger ramdisk Bad Trap error

2020-01-05 Thread Yusuf Altıparmak
Hello, I'm booting kernel on my board with u-boot ramdisk image which is 39.8 MB. It boots successfully. When I try another u-boot image which has 74.7 MB size, load adress of ramdisk changing and its giving 'Loading Ramdisk to ff8c, end 03fffd63... Bad Trap at PC:7fef8cb0' and board hangs

RE: [PATCH 00/22] imx: add i.MX8MP support

2020-01-05 Thread Peng Fan
> Subject: Re: [PATCH 00/22] imx: add i.MX8MP support > > Hi Peng, > > On Mon, Dec 30, 2019 at 10:31 PM Peng Fan wrote: > > > This is no public AT-F and ddr firmware for this board now. We are at > > early stage currently. until NXP software release, there will be public AT-F > and ddr

RE: ATF + u-boot imx8mm combination

2020-01-05 Thread Peng Fan
> Subject: ATF + u-boot imx8mm combination > > HI all > > I'm trying to work on some imx8mm mainline but I understand that I miss > some of the information needed. I would like to work and play with power > domain. Can I know where to find all the information to build a version with a > valid

Re: [RFC PATCH 5/5] board: Add new Samsung "stemmy" board based on ST-Ericsson U8500

2020-01-05 Thread Linus Walleij
On Sat, Jan 4, 2020 at 6:48 PM Stephan Gerhold wrote: > The ST-Ericsson U8500 SoC has been used in mass-production for > some Android smartphones released around 2012. > In particular, Samsung has released more than 5 different > smartphones based on U8500, e.g. > > - Samsung Galaxy S III mini

RE: [PATCH 20/22] clk: imx: add i.MX8MP clk driver

2020-01-05 Thread Peng Fan
Hi Lukasz, > Subject: Re: [PATCH 20/22] clk: imx: add i.MX8MP clk driver > > Hi Peng, > > > Add i.MX8MP clk driver for i.MX8MP CLK driver model usage > > > > Signed-off-by: Peng Fan > > Cc: Lukasz Majewski > > --- > > > > V1: > > To align with linux coding style, the 80 chars warning is not

Re: [RFC PATCH 4/5] MAINTAINERS: Add ARM U8500

2020-01-05 Thread Linus Walleij
On Sat, Jan 4, 2020 at 6:48 PM Stephan Gerhold wrote: > Add myself as maintainer for ST-Ericsson U8500 SoC to MAINTAINERS. > Linus Walleij usually reviews all Ux500 related patches, > so add him as a reviewer. > > Cc: Linus Walleij > Signed-off-by: Stephan Gerhold Reviewed-by: Linus Walleij

Re: [RFC PATCH 3/5] arm: Add support for ST-Ericsson U8500 SoC

2020-01-05 Thread Linus Walleij
On Sat, Jan 4, 2020 at 6:48 PM Stephan Gerhold wrote: > The NovaThor U8500 SoC was released by ST-Ericsson in 2011. > It was used for some development boards like the CALAO Systems > Snowball SBC, but mass production was primarily for Android > smartphones like the Samsung Galaxy S III mini. > >

Re: [RFC PATCH 2/5] arm: dts: Import device tree for ST-Ericsson Ux500

2020-01-05 Thread Linus Walleij
On Sat, Jan 4, 2020 at 6:48 PM Stephan Gerhold wrote: > from > https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson.git/ > tag "ux500-armsoc-v5.6-2" > commit 224bf0fe7292 ("ARM: dts: ux500: samsung-golden: Add Bluetooth") > > (queued for merge in Linux 5.6) > > Signed-off-by:

Re: [RFC PATCH 1/5] timer: Add driver for Nomadik Multi Timer Unit (MTU)

2020-01-05 Thread Linus Walleij
On Sat, Jan 4, 2020 at 6:48 PM Stephan Gerhold wrote: > The Nomadik Multi Timer Unit (MTU) provides 4 decrementing > free-running timers. It is used in ST-Ericsson Ux500 SoCs. > > The driver uses the first timer to implement UCLASS_TIMER. > > Signed-off-by: Stephan Gerhold Reviewed-by: Linus

Re: [PATCH 0/9] efi_loader: rework bootefi/bootmgr

2020-01-05 Thread AKASHI Takahiro
Heinrich, On Fri, Jan 03, 2020 at 01:17:05AM +0100, Heinrich Schuchardt wrote: > On 4/19/19 5:22 AM, AKASHI Takahiro wrote: > >There are several reasons that I want to rework/refactor bootefi command > >as well as bootmgr: > >* Some previous commits on bootefi.c have made the code complicated > >

[PATCH 5/6] sunxi: SPL SPI: Add SPI boot support for the Allwinner H6 SoC

2020-01-05 Thread Andre Przywara
The Allwinner H6 SoC uses a quite different memory map, also changes the clocks quite a bit. This requires some changes to the SPL SPI routine, which hardcodes these values so far. Using the just introduced helper functions to determine base address and SPI controller generation, we can cover

[PATCH 2/6] sunxi: SPL SPI: Split off SPI0 base address

2020-01-05 Thread Andre Przywara
So far on all supported Allwinner SoCs we find the old generation SPI controller always at address 0x1c05000, and the new generation one at 0x1c68000. However the Allwinner R40 SoC has a new generation SPI at the old address, and the H6 uses a completely different address. So split off the base

[PATCH 6/6] sunxi: Pine H64: Enable SPI booting in defconfig

2020-01-05 Thread Andre Przywara
The Pine H64 board comes with some onboard SPI flash chip, which is perfect for loading SPL, ATF and U-Boot proper from there. Enable the functionality in the defconfig, so that we use sunxi-fel to transfer a bootable image to the NOR flash. Signed-off-by: Andre Przywara ---

Re: [PATCH v5 4/6] lib: rsa: generate additional parameters for public key

2020-01-05 Thread AKASHI Takahiro
Simon, On Fri, Dec 27, 2019 at 07:26:40PM -0700, Simon Glass wrote: > On Tue, 17 Dec 2019 at 01:53, AKASHI Takahiro > wrote: > > > > In the current implementation of FIT_SIGNATURE, five parameters for > > a RSA public key are required while only two of them are essential. > > (See rsa-mod-exp.h

[PATCH 4/6] sunxi: SPL SPI: Add SPI boot support for the Allwinner R40 SoC

2020-01-05 Thread Andre Przywara
Now that we can easily select an SoC specific SPI0 base address, adding support for the Allwinner R40 is fairly trivial: We set the base address, add this SoC to the ones that use PC23 and enable it in Kconfig. This allows booting from SPI flash on R40 boards. Tested on a Bananapi M2 Berry with

[PATCH 0/6] sunxi: SPL SPI booting: Enable R40 and H6 SoCs

2020-01-05 Thread Andre Przywara
This series enables the SPI booting feature for Allwinner R40 and H6 SoCs. To achieve this, we enable our spl_spi_sunxi.c driver to deal with those two SoCs. The R40 is pretty straightforward, as it just needs its base address adjusted. This is prepared in patch 2/6 and finalised in patch 4/6. For

[PATCH 3/6] sunxi: SPL SPI: Introduce is_new_gen_spi()

2020-01-05 Thread Andre Przywara
So far we were using the CONFIG_SUNXI_GEN_SUN6I symbol to select between the two SPI controller generations used on Allwinner SoCs. This is a convenience symbol to roughly differentiate between "older" and "newer" generation of SoCs. The H6 SoCs is the newest SoC so far, but is sufficiently

[PATCH 1/6] sunxi: move CONFIG_SYS_SPI_U_BOOT_OFFS out of defconfig

2020-01-05 Thread Andre Przywara
For Allwinner SoCs the CONFIG_SYS_SPI_U_BOOT_OFFS value is not really a board choice: The boot ROM only loads the SPL from offset 0 of the SPI NOR flash, and loads at most 32KB. This is a similar situation as on MMC, so consequently we create our "joint" image (SPL + U-Boot proper) with that 32KB

[PATCH V2 1/2] pico-imx7d: Disable USB_ETHER support for bl33 defconfig

2020-01-05 Thread Joris Offouga
For DM_ETH support , it's require to disable this config. When this config is enable, This generate a error with spl in linker script Signed-off-by: Joris Offouga --- configs/pico-imx7d_bl33_defconfig | 3 --- 1 file changed, 3 deletions(-) diff --git a/configs/pico-imx7d_bl33_defconfig

[PATCH V2 2/2] pico-imx7d: Convert to DM_ETH

2020-01-05 Thread Joris Offouga
Signed-off-by: Joris Offouga --- Change v1 -> v2 Disable usb ethernet support with patch : pico-imx7d: Disable USB_ETHER support for bl33 board/technexion/pico-imx7d/pico-imx7d.c | 46 configs/pico-dwarf-imx7d_defconfig | 5 +++

Re: [PATCH 1/1] net: tftp: use correct printf codes

2020-01-05 Thread Joe Hershberger
On Wed, Jan 1, 2020 at 4:16 PM Heinrich Schuchardt wrote: > > When printing unsigned numbers use %u. > > Signed-off-by: Heinrich Schuchardt Acked-by: Joe Hershberger

Re: [PATCH v3 3/9] cmd: abootimg: Add abootimg command

2020-01-05 Thread Eugeniu Rosca
Hi, With below nits, I have provided the Reviewed-by/Tested-by signatures. On Tue, Dec 24, 2019 at 09:54:49PM +0200, Sam Protsenko wrote: > This command can be used to extract fields and image payloads from > Android Boot Image. It can be used for example to implement boot flow > where dtb is

Re: [PATCH] pico-imx7d: Convert to DM_ETH

2020-01-05 Thread Otavio Salvador
On Sun, Jan 5, 2020 at 7:32 AM Stefano Babic wrote: > > On 04/01/20 13:03, Joris Offouga wrote: > > Hi Stefano, > > > > Sorry for the delay, > > > > Le 28/12/2019 à 12:31, Stefano Babic a écrit : > >> Hi Joris, > >> > >> > >> > >> On 08/12/19 18:02, Joris Offouga wrote: > >>> Signed-off-by: Joris

[PATCH] arm: Add arm handoff header file

2020-01-05 Thread Michael Trimarchi
Add an arch-specific handoff header so that we can use the HANDOFF feature on arm devices. Signed-off-by: Michael Trimarchi --- arch/arm/include/asm/handoff.h | 21 + 1 file changed, 21 insertions(+) create mode 100644 arch/arm/include/asm/handoff.h diff --git

[PATCH 2/2] mtd: nand: spi: add support for Toshiba TC58CVG2S0HRAIJ

2020-01-05 Thread Robert Marko
Toshiba recently launched new revisions of their serial SLC NAND series. TC58CVG2S0HRAIJ is a refresh of previous series with minor improvements. Basic parameters are same so lets add support for this new revision. Datasheet: https://business.kioxia.com/info/docget.jsp?did=58601=TC58CVG2S0HRAIJ

[PATCH 1/2] mtd: spi-nand: Import Toshiba SPI-NAND support

2020-01-05 Thread Robert Marko
Linux has good support for Toshiba SPI-NAND, so lets import it. Signed-off-by: Robert Marko Tested-by: Luka Kovacic Cc: Luka Perkov --- drivers/mtd/nand/spi/Makefile | 2 +- drivers/mtd/nand/spi/core.c| 1 + drivers/mtd/nand/spi/toshiba.c | 190 +

Re: [PATCH] Revert "mmc: davinci: drop struct davinci_mmc_plat"

2020-01-05 Thread Tom Rini
On Fri, Jan 03, 2020 at 01:17:07PM -0500, Tom Rini wrote: > Adam Ford reports that this change breaks booting on da850-evm and > Bartosz Golaszewski agrees that with the impending release we should > revert the change for now. With that noted: > > This reverts commit

Re: [PATCH] pico-imx7d: Convert to DM_ETH

2020-01-05 Thread Stefano Babic
Hi Joris, On 04/01/20 13:03, Joris Offouga wrote: > Hi Stefano, > > Sorry for the delay, > > Le 28/12/2019 à 12:31, Stefano Babic a écrit : >> Hi Joris, >> >> >> >> On 08/12/19 18:02, Joris Offouga wrote: >>> Signed-off-by: Joris Offouga >>> --- >>>   board/technexion/pico-imx7d/pico-imx7d.c |

[PATCH v2 1/1] efi_loader: define all known warning status codes

2020-01-05 Thread Heinrich Schuchardt
Of all warning status codes up to now only EFI_WARN_DELETE_FAILURE is defined. The patch adds the missing definitions for later usage. Signed-off-by: Heinrich Schuchardt --- v2 Remove unrelated change --- include/efi.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff