Re: [U-Boot] mtd: spi-nor: new NXP FlexSPI driver location & framework to use ?

2018-05-17 Thread Prabhakar Kushwaha
Dear Jagan, > -Original Message- > From: Jagan Teki [mailto:jagannadh.t...@gmail.com] > Sent: Friday, May 18, 2018 10:24 AM > To: Prabhakar Kushwaha > Cc: u-boot@lists.denx.de > Subject: Re: mtd: spi-nor: new NXP FlexSPI driver location & framework to > use ?

Re: [U-Boot] mtd: spi-nor: new NXP FlexSPI driver location & framework to use ?

2018-05-17 Thread Jagan Teki
On Thu, May 17, 2018 at 4:49 PM, Prabhakar Kushwaha wrote: > Dear Jagan, > >> -Original Message- >> From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of >> Prabhakar Kushwaha >> Sent: Monday, May 14, 2018 6:55 PM >> To: Jagan Teki

Re: [U-Boot] [PATCH 1/3] doc: Add new doc for file system firmware loader driver model

2018-05-17 Thread Chee, Tien Fong
On Thu, 2018-05-17 at 07:11 -0400, Tom Rini wrote: > On Thu, May 17, 2018 at 04:27:27AM +, Chee, Tien Fong wrote: > > > > On Wed, 2018-05-16 at 08:48 -0400, Tom Rini wrote: > > > > > > On Wed, May 16, 2018 at 05:21:39PM +0800, tien.fong.c...@intel.co > > > m > > > wrote: > > > > > > > > >

Re: [U-Boot] [PATCH v3 1/7] i.MX6: board: Add BTicino i.MX6DL Mamoj initial support

2018-05-17 Thread Jagan Teki
On Thu, May 17, 2018 at 3:16 PM, Stefano Babic wrote: > Hi Jagan, > > On 07/05/2018 07:51, Jagan Teki wrote: >> Add initial support for i.MX6DL BTicino Mamoj board. >> >> Mamoh board added: >> - SPL >> - SPL_DM >> - SPL_OF_CONTROL >> - DM for U-Boot proper >> - OF_CONTROL for

Re: [U-Boot] [PATCH 01/12] ARM: socfpga: Sync A10 clock manager binding parser

2018-05-17 Thread Chee, Tien Fong
On Thu, 2018-05-17 at 11:38 +0200, Marek Vasut wrote: > On 05/17/2018 10:44 AM, Chee, Tien Fong wrote: > > > > On Thu, 2018-05-17 at 10:24 +0200, Marek Vasut wrote: > > > > > > On 05/17/2018 06:38 AM, Chee, Tien Fong wrote: > > > > > > > > > > > > On Sat, 2018-05-12 at 22:30 +0200, Marek Vasut

[U-Boot] [PATCH v2] net: include/phy.h: add new mode for internal phy

2018-05-17 Thread Kunihiko Hayashi
Add the new mode to indicate a built-in PHY. This will be used by UniPhier AVE ethernet driver. Signed-off-by: Kunihiko Hayashi Reviewed-by: Marek Vasut Acked-by: Joe Hershberger --- Changes since v1: - add

[U-Boot] [PATCH] malloc: Use malloc simple before malloc is fully initialized in memalign()

2018-05-17 Thread Ley Foon Tan
Follow implementation in mALLOc(). Check GD_FLG_FULL_MALLOC_INIT flag and use malloc_simple if GD_FLG_FULL_MALLOC_INIT is unset. Adjust the malloc bytes to align with the requested alignment. The original memalign() function will access mchunkptr struct to adjust the alignment if there is

Re: [U-Boot] [PATCH v5 13/16] fastboot: Migrate FASTBOOT_FLASH_NAND_TRIMFFS to Kconfig

2018-05-17 Thread Simon Glass
On 17 May 2018 at 09:59, Alex Kiernan wrote: > Add FASTBOOT_FLASH_NAND_TRIMFFS to Kconfig; note there are no in-tree > users of it. > > Signed-off-by: Alex Kiernan > --- > > Changes in v5: > - new > > Changes in v4: None > Changes in v3: None >

Re: [U-Boot] [PATCH] pylibfdt: Add missing CC and LD to Makefile

2018-05-17 Thread Simon Glass
On 17 May 2018 at 14:18, Marek Vasut wrote: > > Add missing CC and LDSHARED variables to the Makefile to pass the > correct C compiler and linker path to the build of _libfdt.so . > > Signed-off-by: Marek Vasut > Cc: Tom Rini > Cc: Masahiro

Re: [U-Boot] [PATCH v1 3/5] dm: serial: Add setparity

2018-05-17 Thread Simon Glass
Hi Patrick, On 17 May 2018 at 06:50, Patrice Chotard wrote: > From: Patrick Delaunay > > Implements serial setparity ops to allow uart parity change. > It allows to select ODD, EVEN or NONE parity. > > Signed-off-by: Patrick Delaunay

Re: [U-Boot] [PATCH v1 1/5] serial: stm32: Add debug uart support

2018-05-17 Thread Simon Glass
On 17 May 2018 at 06:50, Patrice Chotard wrote: > From: Patrick Delaunay > > Add support for early debug printf, before the availability of > driver model and device tree support. > > Signed-off-by: Patrick Delaunay >

Re: [U-Boot] [PATCH v5 10/16] fastboot: Rename public fb_ functions to fastboot_

2018-05-17 Thread Simon Glass
Hi, On 17 May 2018 at 09:59, Alex Kiernan wrote: > Rename fb_mmc_flash_write/fb_mmc_erase/fb_nand_flash_write/fb_nand_erase to > fastboot_... as they form a public interface > > Signed-off-by: Alex Kiernan > --- > > Changes in v5: > - new > >

Re: [U-Boot] [PATCH v1 2/5] serial: stm32: Fix bits defines name

2018-05-17 Thread Simon Glass
On 17 May 2018 at 06:50, Patrice Chotard wrote: > Rename USART_ISR_FLAG_xxx bits to USART_ISR_xxx bits and > USART_ICR_OREF to USART_ICR_ORECF in order to match datasheets. > Sort defines by descendant order. > > Signed-off-by: Patrice Chotard >

[U-Boot] [PATCH 1/4] ata: mvebu: move mvebu sata driver to drivers/ata directory

2018-05-17 Thread make
From: Ken Ma Currently mvebu sata driver is in arch/arm/mach_mvebu directory, this patch moves it to drivers/ata directory with renaming "sata.c" to "ahci_mvebu.c" which is aligned to Linux. New ahci driver's kconfig option is added as AHCI_MVEBU which selects DM_SCSI.

[U-Boot] [PATCH 4/4] arm64: mvebu: defconfig: enable CONFIG_AHCI_MVEBU

2018-05-17 Thread make
From: Ken Ma This patch enables the new ahci mvebu driver for marvell arm64 platform SOCs(A3k and A8k). Signed-off-by: Ken Ma Cc: Simon Glass Cc: Stefan Roese --- configs/mvebu_db-88f3720_defconfig | 1 +

[U-Boot] [PATCH 2/4] ata: ahci_mvebu: a8040 a0: remove bad port register offsets workarounds

2018-05-17 Thread make
From: David Sniatkiwicz This workaround was added for A8040/7040 A0. A8040/7040 A0 is no longer supported so this workaround can be removed. Signed-off-by: David Sniatkiwicz Signed-off-by: Ken Ma Cc: Simon Glass

[U-Boot] [PATCH 3/4] ata: ahci_mvebu: add scsi support

2018-05-17 Thread make
From: Ken Ma Mvebu AHCI is AHCI driver which uses SCSI under the hood. This patch adjusts AHCI setup to support SCSI by creating a SCSI device as a child. Signed-off-by: Ken Ma Cc: Simon Glass Cc: Stefan Roese ---

[U-Boot] [PATCH 0/4] ahci mvebu driver updates

2018-05-17 Thread make
From: Ken Ma These patches move ahci mvebu driver to drivers/ata directory with bug fixing and scsi supporting. David Sniatkiwicz (1): ata: ahci_mvebu: a8040 a0: remove bad port register offsets workarounds Ken Ma (3): ata: mvebu: move mvebu sata driver to

[U-Boot] [PATCH] arm: dts: sunxi: enable Ethernet on NanoPi Neo Plus2

2018-05-17 Thread Jonathan A. Kollasch
Signed-off-by: Jonathan A. Kollasch --- arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts index f1406c224b..1dde153669

[U-Boot] UBIFS Problems with U-boot 2018.1 & 4.14 Linux

2018-05-17 Thread Otto Blom
Hi There ! I'm seeing a strange problem with u-boot 2018.1 and Linux 4.14 (Xilinx Petalinux 2018.1). If I write a ubifs image to flash using Linux 4.9 I can mount and read files from the image in both u-boot 2018.1 and Linux 4.14. However as soon as I write a new file to the file-system from

Re: [U-Boot] [PATCH v5 14/16] mmc: Separate "mmc swrite" from fastboot

2018-05-17 Thread Jassi Brar
On 17 May 2018 at 21:29, Alex Kiernan wrote: > Introduce CONFIG_IMAGE_SPARSE and CONFIG_CMD_MMC_SWRITE so the "mmc > swrite" command is separated from the fastboot code. > > Move image-sparse from common to lib so it's clear it's library code. > > Rename

[U-Boot] [PATCH v5 14/16] mmc: Separate "mmc swrite" from fastboot

2018-05-17 Thread Alex Kiernan
Introduce CONFIG_IMAGE_SPARSE and CONFIG_CMD_MMC_SWRITE so the "mmc swrite" command is separated from the fastboot code. Move image-sparse from common to lib so it's clear it's library code. Rename CONFIG_FASTBOOT_FLASH_FILLBUF_SIZE to CONFIG_IMAGE_SPARSE_FILLBUF_SIZE and migrate it to Kconfig.

[U-Boot] [PATCH v5 01/16] fastboot: Move fastboot to drivers/fastboot

2018-05-17 Thread Alex Kiernan
Separate CMD_FASTBOOT from FASTBOOT and move code and configuration to drivers/fastboot. Switch dependencies on FASTBOOT to USB_FUNCTION_FASTBOOT as anyone who wants FASTBOOT before this series wants USB_FUNCTION_FASTBOOT. Split USB_FUNCTION_FASTBOOT from FASTBOOT so they retain their existing

[U-Boot] [PATCH v5 00/16] Add fastboot UDP support

2018-05-17 Thread Alex Kiernan
This series merges the fastboot UDP support from AOSP into mainline U-Boot. Changes in UDP behaviour from the AOSP code, so it follows the existing USB behaviour: - 'boot' now follows the USB code and does 'bootm CONFIG_FASTBOOT_BUF_ADDR'. I've added 'fastboot_bootcmd' which if set overrides

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

2018-05-17 Thread Lukasz Majewski
Hi Tom, Stefano, > On Thu, May 17, 2018 at 07:08:37PM +0200, Stefano Babic wrote: > > On 17/05/2018 18:33, Lukasz Majewski wrote: > > > Hi Stefano, Tom, > > > > > > > Tom was not in CC, added > > > > > On 17 May 2018 17:50, Stefano Babic wrote: > > > > > > Hi Tom, >

[U-Boot] Zynq: CONFIG_BOARD_RESET or reset_misc(), or ...?

2018-05-17 Thread Leon Woestenberg
Hello all, for a Zynq (7-series) ARM based system I would like to implement a board-specific reset function. There are a few existing slightly different methods in place (see below). What is the preferred way and place? My current feeling is overriding reset_misc() in board.c, i.e. method #4

[U-Boot] [PATCH] pylibfdt: Add missing CC and LD to Makefile

2018-05-17 Thread Marek Vasut
Add missing CC and LDSHARED variables to the Makefile to pass the correct C compiler and linker path to the build of _libfdt.so . Signed-off-by: Marek Vasut Cc: Tom Rini Cc: Masahiro Yamada Cc: Simon Glass

[U-Boot] [PATCH] sunxi: Enable fitImage support on OrangePi Zero

2018-05-17 Thread Marek Vasut
Enable modern fitImage format on OrangePi Zero. Signed-off-by: Marek Vasut Cc: Maxime Ripard Cc: Tom Rini --- configs/orangepi_zero_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/orangepi_zero_defconfig

Re: [U-Boot] Please pull u-boot-marvell/master (v2)

2018-05-17 Thread Tom Rini
On Thu, May 17, 2018 at 05:42:53PM +0200, Stefan Roese wrote: > Hi Tom, > > please pull the Kirkwood DT patches from Chris. This time with > PHYLIB disabled for some boards (as was before). > > Thanks, > Stefan > > > The following changes since commit f2d0f5e7ab3b8a7b4bf6e2ac499b4867c701d52d:

Re: [U-Boot] Please pull u-boot-dm

2018-05-17 Thread Tom Rini
On Wed, May 16, 2018 at 02:57:30PM -0600, Simon Glass wrote: > Hi Tom, > > The following changes since commit 0315d6959fdd9d2a4d89016c311e9c8c8d239a10: > > ARM: mvebu: a38x: Add missing SPDX license identfier (2018-05-15 > 09:08:00 -0400) > > are available in the Git repository at: > >

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

2018-05-17 Thread Tom Rini
On Thu, May 17, 2018 at 07:08:37PM +0200, Stefano Babic wrote: > On 17/05/2018 18:33, Lukasz Majewski wrote: > > Hi Stefano, Tom, > > > > Tom was not in CC, added > > > On 17 May 2018 17:50, Stefano Babic wrote: > > > > Hi Tom, > > > > please pull from u-boot-imx,

[U-Boot] [RFC PATCH v2 2/2] fastboot: Update fastboot documentation

2018-05-17 Thread Alex Kiernan
Update fastboot documentation to reflect merged USB/UDP implementation. Bring in current Android fastboot protocol document. Signed-off-by: Alex Kiernan --- Changes in v2: - new doc/README.android-fastboot | 80 +++-- 1 file

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

2018-05-17 Thread Stefano Babic
On 17/05/2018 18:33, Lukasz Majewski wrote: > Hi Stefano, Tom, > Tom was not in CC, added > On 17 May 2018 17:50, Stefano Babic wrote: > > Hi Tom, > > please pull from u-boot-imx, thanks ! > > The following changes since commit >

[U-Boot] [PATCH 1/1] Makefile: clean should delete *.efi

2018-05-17 Thread Heinrich Schuchardt
Files *.efi are generated files. So the clean target should delete them. Signed-off-by: Heinrich Schuchardt --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 714ac9e1183..96c53250484 100644 --- a/Makefile +++

Re: [U-Boot] RFC: Alternative boot_jump_linux() function

2018-05-17 Thread Ramon Fried
On Thu, May 17, 2018 at 5:22 PM, Tom Rini wrote: > On Thu, May 17, 2018 at 02:01:55PM +0300, Ramon Fried wrote: > >> Hi. >> I'm currently working on snapdragon bootloader support and in the >> particular case where U-boot is running in Aarch32 and the kernel is >> Aarch64 the

[U-Boot] [PATCH 1/1] efi_selftest: do not call efi_init_obj_list() twice

2018-05-17 Thread Heinrich Schuchardt
Remove a superfluous call to efi_init_obj_list() invoked by 'bootefi selftest'. Signed-off-by: Heinrich Schuchardt --- cmd/bootefi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/bootefi.c b/cmd/bootefi.c index fe50bac1c50..806339823ff 100644 --- a/cmd/bootefi.c

[U-Boot] [RFC PATCH v2 1/2] usb: fastboot: Convert USB f_fastboot to shared fastboot

2018-05-17 Thread Alex Kiernan
Convert USB fastboot code to use shared fastboot protocol. Signed-off-by: Alex Kiernan --- Changes in v2: - remove redundant version.h - use new fastboot_get_bytes_remaining() function drivers/fastboot/Makefile | 4 +- drivers/usb/gadget/f_fastboot.c | 318

[U-Boot] [RFC PATCH v2 0/2] Convert USB fastboot code to use shared protocol

2018-05-17 Thread Alex Kiernan
This builds on the fastboot UDP support and migrates the USB fastboot code to the shared code. It's currently untested, other than passing in Travis: https://travis-ci.org/akiernan/u-boot/builds/380023917 Changes in v2: - remove redundant version.h - use new fastboot_get_bytes_remaining()

[U-Boot] [PATCH v5 11/16] ti: fastboot: Move weak overrides to board files

2018-05-17 Thread Alex Kiernan
Overriding fastboot_set_reboot_flag() in arch/arm/mach-omap2/boot-common.c leaves it applying all boards that derive from this, not just the ones which have support for Android bootloader flow. Move the weak function override to the relevant board files. Signed-off-by: Alex Kiernan

[U-Boot] [PATCH v5 16/16] fastboot: Add support for 'oem format' command

2018-05-17 Thread Alex Kiernan
Introduce 'oem format' which matches the USB implementation, guard this with CONFIG_FASTBOOT_CMD_OEM_FORMAT so that you can configure it out. Signed-off-by: Alex Kiernan --- Changes in v5: - new Changes in v4: None Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v5 13/16] fastboot: Migrate FASTBOOT_FLASH_NAND_TRIMFFS to Kconfig

2018-05-17 Thread Alex Kiernan
Add FASTBOOT_FLASH_NAND_TRIMFFS to Kconfig; note there are no in-tree users of it. Signed-off-by: Alex Kiernan --- Changes in v5: - new Changes in v4: None Changes in v3: None Changes in v2: None drivers/fastboot/Kconfig | 6 ++ scripts/config_whitelist.txt |

[U-Boot] [PATCH v5 12/16] fs: Add fs_get_type_name to return current filesystem name

2018-05-17 Thread Alex Kiernan
Add fs_get_type_name so we can get the current filesystem type. Signed-off-by: Alex Kiernan Reviewed-by: Simon Glass Reviewed-by: Joe Hershberger --- Changes in v5: None Changes in v4: - add docbook comments Changes in v3: -

[U-Boot] [PATCH v5 15/16] net: fastboot: Merge AOSP UDP fastboot

2018-05-17 Thread Alex Kiernan
Merge UDP fastboot support from AOSP: https://android.googlesource.com/platform/external/u-boot/+/android-o-mr1-iot-preview-8 Signed-off-by: Alex Kiernan Signed-off-by: Alex Deymo Signed-off-by: Jocelyn Bohr Reviewed-by: Simon

[U-Boot] [PATCH v5 08/16] fastboot: Rename fb_set_reboot_flag to fastboot_set_reboot_flag

2018-05-17 Thread Alex Kiernan
Rename fb_set_reboot_flag to fastboot_set_reboot_flag so it matches all other fastboot code in the global name space. Fix the guards around them so that they're dependent on FASTBOOT, not just USB_FUNCTION_FASTBOOT. Move the weak implementation of fastboot_set_reboot_flag to fb_common.c so we can

[U-Boot] [PATCH v5 09/16] fastboot: Extract common definitions from USB fastboot

2018-05-17 Thread Alex Kiernan
Move FASTBOOT_VERSION to include/fastboot.h so when we merge the UDP code we only have one definition. Signed-off-by: Alex Kiernan Reviewed-by: Simon Glass Acked-by: Joe Hershberger --- Changes in v5: None Changes in v4: -

[U-Boot] [PATCH v5 06/16] fastboot: Remove FIXME for CONFIG_FASTBOOT_...NAME

2018-05-17 Thread Alex Kiernan
CONFIG_FASTBOOT_GPT_NAME and CONFIG_FASTBOOT_MBR_NAME are always defined by Kconfig if you're compiling this code, so remove these redundant defaults. Signed-off-by: Alex Kiernan Reviewed-by: Simon Glass Acked-by: Joe Hershberger

[U-Boot] [PATCH v5 10/16] fastboot: Rename public fb_ functions to fastboot_

2018-05-17 Thread Alex Kiernan
Rename fb_mmc_flash_write/fb_mmc_erase/fb_nand_flash_write/fb_nand_erase to fastboot_... as they form a public interface Signed-off-by: Alex Kiernan --- Changes in v5: - new Changes in v4: None Changes in v3: None Changes in v2: None drivers/fastboot/fb_mmc.c |

[U-Boot] [PATCH v5 07/16] fastboot: Fix parameter types in _fb_nand_write

2018-05-17 Thread Alex Kiernan
Compiling on a 64 bit target the arguments to _fb_nand_write are incompatible: drivers/fastboot/fb_nand.c: In function ‘_fb_nand_write’: drivers/fastboot/fb_nand.c:101:42: warning: passing argument 3 of ‘nand_write_skip_bad’ from incompatible pointer type [-Wincompatible-pointer-types]

[U-Boot] [PATCH v5 05/16] fastboot: Add missing newlines

2018-05-17 Thread Alex Kiernan
Add newlines so we format our output correctly. Signed-off-by: Alex Kiernan Acked-by: Joe Hershberger Reviewed-by: Jocelyn Bohr --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v5 04/16] fastboot: Correct dependencies in FASTBOOT_FLASH

2018-05-17 Thread Alex Kiernan
Ensure that when selecting FASTBOOT_FLASH you end up with a buildable configuration. Prior to this you could select NAND without MTDPARTS and end up with an image which (surprisingly) excluded NAND. Also fix dependencies on FASTBOOT_GPT_NAME/FASTBOOT_MBR_NAME which require you have

[U-Boot] [PATCH v5 03/16] fastboot: Extract fastboot_okay/fail to fb_common.c

2018-05-17 Thread Alex Kiernan
Add drivers/fastboot/fb_common.c, where fastboot_okay/fail are implemented so we can call them from a non-USB implementation. Introduce fastboot_response which takes varargs parameters so we can use it to generate formatted response strings. Refactor fastboot_okay/fail to use it. Signed-off-by:

[U-Boot] [PATCH v5 02/16] fastboot: Refactor fastboot_okay/fail to take response

2018-05-17 Thread Alex Kiernan
Add the response string as a parameter to fastboot_okay/fail, instead of modifying a global, to match the contract expected by the AOSP U-Boot code. Signed-off-by: Alex Kiernan Reviewed-by: Joe Hershberger --- Changes in v5: None Changes in v4:

[U-Boot] [BUG] qemu-x86_64_defconfig fails with panic("TSC frequency is ZERO");

2018-05-17 Thread Heinrich Schuchardt
Hello Bin, Simon, sometimes qemu-x86_64_defconfig fails with panic("TSC frequency is ZERO") in drivers/timer/tsc_timer.c. The system may hang in an endless reboot loop with this error or recover after reboot. Do we need to panic? Or could we use some default value? Qemu version used for

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

2018-05-17 Thread Stefano Babic
Hi Tom, please pull from u-boot-imx, thanks ! The following changes since commit f2d0f5e7ab3b8a7b4bf6e2ac499b4867c701d52d: ARM: re-enable MVGBE for edminiv2 (2018-05-16 11:38:08 -0400) are available in the git repository at: git://www.denx.de/git/u-boot-imx.git master for you to fetch

Re: [U-Boot] [PATCH V6 0/2] Update sabrelite and nitrogen6x boards to use distro boot support

2018-05-17 Thread Stefano Babic
On 17/05/2018 17:45, Troy Kisky wrote: > On 5/17/2018 2:51 AM, Stefano Babic wrote: >> Hi Guillaume, >> >> On 18/04/2018 17:04, Guillaume GARDET wrote: >>> This patch serie updates sabrelite and nitrogen6x boards to use distro boot >>> support. >>> Sabrelite has been boot tested with boot.scr

Re: [U-Boot] [PATCH V6 0/2] Update sabrelite and nitrogen6x boards to use distro boot support

2018-05-17 Thread Troy Kisky
On 5/17/2018 2:51 AM, Stefano Babic wrote: > Hi Guillaume, > > On 18/04/2018 17:04, Guillaume GARDET wrote: >> This patch serie updates sabrelite and nitrogen6x boards to use distro boot >> support. >> Sabrelite has been boot tested with boot.scr script and EFI/Grub2 on mmc0 >> and mmc1 slots.

[U-Boot] Please pull u-boot-marvell/master (v2)

2018-05-17 Thread Stefan Roese
Hi Tom, please pull the Kirkwood DT patches from Chris. This time with PHYLIB disabled for some boards (as was before). Thanks, Stefan The following changes since commit f2d0f5e7ab3b8a7b4bf6e2ac499b4867c701d52d: ARM: re-enable MVGBE for edminiv2 (2018-05-16 11:38:08 -0400) are available in

Re: [U-Boot] [PATCH v2] net: MVGBE don't automatically select PHYLIB

2018-05-17 Thread Stefan Roese
On 17.05.2018 17:30, Joe Hershberger wrote: On Thu, May 17, 2018 at 7:12 AM, Chris Packham wrote: When Kconfig support was added for MVGBE it included automatically selected PHYLIB support. But MVGBE does not need PHYLIB it will build fine without it. Commit

Re: [U-Boot] [PATCH v2] net: MVGBE don't automatically select PHYLIB

2018-05-17 Thread Joe Hershberger
On Thu, May 17, 2018 at 7:12 AM, Chris Packham wrote: > When Kconfig support was added for MVGBE it included automatically > selected PHYLIB support. But MVGBE does not need PHYLIB it will build > fine without it. Commit ed52ea507f12 ("net: add Kconfig for MVGBE") >

[U-Boot] [PATCH] mmc: stm32_sdmmc2: Fix stm32_sdmmc2_start_cmd()

2018-05-17 Thread Patrice Chotard
SDMMC_CMD_CPSMEN bit is wrongly check and set in SDMMC_ARG register instead of SDMMC_CMD register. Signed-off-by: Patrice Chotard --- drivers/mmc/stm32_sdmmc2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/stm32_sdmmc2.c

Re: [U-Boot] RFC: Alternative boot_jump_linux() function

2018-05-17 Thread Tom Rini
On Thu, May 17, 2018 at 02:01:55PM +0300, Ramon Fried wrote: > Hi. > I'm currently working on snapdragon bootloader support and in the > particular case where U-boot is running in Aarch32 and the kernel is > Aarch64 the specific implementation is to jump to Linux through SCM > call. > > I try to

Re: [U-Boot] [PATCH v2] net: MVGBE don't automatically select PHYLIB

2018-05-17 Thread Tom Rini
On Fri, May 18, 2018 at 12:12:04AM +1200, Chris Packham wrote: > When Kconfig support was added for MVGBE it included automatically > selected PHYLIB support. But MVGBE does not need PHYLIB it will build > fine without it. Commit ed52ea507f12 ("net: add Kconfig for MVGBE") > should have been a

Re: [U-Boot] [PATCH] arm64: zynqmp: Show reset reason

2018-05-17 Thread Michal Simek
On 17.5.2018 15:31, Michal Simek wrote: > Read reset reason reg and show it in log and also save it as variable. > reset_reasons table is setting up priorities for variable. > > Signed-off-by: Michal Simek > --- > > arch/arm/include/asm/arch-zynqmp/hardware.h | 12

Re: [U-Boot] [PATCH] soc: zynqmp: Update required API version to 1.0

2018-05-17 Thread Marek Vasut
On 05/17/2018 03:59 PM, Michal Simek wrote: > On 14.5.2018 22:55, Marek Vasut wrote: >> On 05/14/2018 03:39 PM, Michal Simek wrote: >>> From: Rajan Vaja >>> >>> Existing EEMI version is to as 1.0 (available from xilinx v2018.1 >>> version). Update required API version to

Re: [U-Boot] [PATCH] soc: zynqmp: Update required API version to 1.0

2018-05-17 Thread Michal Simek
On 14.5.2018 22:55, Marek Vasut wrote: > On 05/14/2018 03:39 PM, Michal Simek wrote: >> From: Rajan Vaja >> >> Existing EEMI version is to as 1.0 (available from xilinx v2018.1 >> version). Update required API version to match with EEMI API version. > > Not sure I

[U-Boot] [PATCH] arm64: zynqmp: Show reset reason

2018-05-17 Thread Michal Simek
Read reset reason reg and show it in log and also save it as variable. reset_reasons table is setting up priorities for variable. Signed-off-by: Michal Simek --- arch/arm/include/asm/arch-zynqmp/hardware.h | 12 +- board/xilinx/zynqmp/zynqmp.c| 43

[U-Boot] [PATCH v1 4/4] stm32mp1: use OTP to configure MAC address and serial number

2018-05-17 Thread Patrice Chotard
From: Patrick Delaunay Use OTP57 and 58 for MAC address - OTP57 = MAC address bits [31:0] - OTP58 = MAC address bit [47:32] stored in OTP LSB's Use manufacture information in OTP13 to OTP15 to build unique chip id saved in env variable "serial#" (used for USB device

[U-Boot] [PATCH v1 3/4] stm32mp1: add FUSE command support

2018-05-17 Thread Patrice Chotard
From: Patrick Delaunay Add support of fuse command (read/write/program/sense) on bank 0 to access to BSEC SAFMEM (4096 OTP bits). Signed-off-by: Patrick Delaunay Signed-off-by: Patrice Chotard --- MAINTAINERS

[U-Boot] [PATCH v1 2/4] stm32mp1: add bsec driver

2018-05-17 Thread Patrice Chotard
From: Patrick Delaunay Add a MISC driver with read and write access to BSEC IP (Boot and Security and OTP control) - offset 0: shadowed values - offset 0x8000: OTP fuse box values (SAFMEM) Signed-off-by: Patrick Delaunay Signed-off-by:

[U-Boot] [PATCH v1 0/4] Update STM32MP1 machine

2018-05-17 Thread Patrice Chotard
This series : _ fixes TAMP_BOOT_CONTEXT which is updated twice _ adds bsec IP driver (Boot and Security and OTP control) _ adds FUSE command support _ updates machine to use OTP to store MAC address and serial number Patrick Delaunay (4): stm32mp1: remove the second TAMP_BOOT_CONTEXT

[U-Boot] [PATCH v1 1/4] stm32mp1: remove the second TAMP_BOOT_CONTEXT update

2018-05-17 Thread Patrice Chotard
From: Patrick Delaunay The register TAMP_BOOT_CONTEXT is already updated in get_bootmode() in cpu.c and no need to be done twice. Signed-off-by: Patrick Delaunay Signed-off-by: Patrice Chotard ---

Re: [U-Boot] RFC: Alternative boot_jump_linux() function

2018-05-17 Thread Ramon Fried
On Thu, May 17, 2018 at 2:48 PM, Peter Robinson wrote: > Hi, > >> I'm currently working on snapdragon bootloader support and in the >> particular case where U-boot is running in Aarch32 and the kernel is >> Aarch64 the specific implementation is to jump to Linux through SCM

[U-Boot] [PATCH v1 4/5] serial: stm32: Add setparity support

2018-05-17 Thread Patrice Chotard
From: Patrick Delaunay Add possibility to update the serial parity used. Signed-off-by: Patrick Delaunay Signed-off-by: Patrice Chotard --- drivers/serial/serial_stm32.c | 45

[U-Boot] [PATCH v1 5/5] stm32mp1: Allow to activate CONFIG_DEBUG_UART

2018-05-17 Thread Patrice Chotard
From: Patrick Delaunay Add the needed information to enable the debug uart to have printf before the serial driver probe (so before probe for clock, pincontrol and reset drivers) To enable the debug on uart 4 (default console): + CONFIG_DEBUG_UART=y +

[U-Boot] [PATCH v1 3/5] dm: serial: Add setparity

2018-05-17 Thread Patrice Chotard
From: Patrick Delaunay Implements serial setparity ops to allow uart parity change. It allows to select ODD, EVEN or NONE parity. Signed-off-by: Patrick Delaunay Signed-off-by: Patrice Chotard --- include/serial.h |

[U-Boot] [PATCH v1 1/5] serial: stm32: Add debug uart support

2018-05-17 Thread Patrice Chotard
From: Patrick Delaunay Add support for early debug printf, before the availability of driver model and device tree support. Signed-off-by: Patrick Delaunay Signed-off-by: Patrice Chotard --- drivers/serial/Kconfig

[U-Boot] [PATCH v1 2/5] serial: stm32: Fix bits defines name

2018-05-17 Thread Patrice Chotard
Rename USART_ISR_FLAG_xxx bits to USART_ISR_xxx bits and USART_ICR_OREF to USART_ICR_ORECF in order to match datasheets. Sort defines by descendant order. Signed-off-by: Patrice Chotard --- drivers/serial/serial_stm32.c | 12 ++-- drivers/serial/serial_stm32.h |

[U-Boot] [PATCH v1 0/5] Update STM32 serial driver

2018-05-17 Thread Patrice Chotard
This series : _ adds support of DEBUG_UART _ fixes bit register define names _ add new setparity ops support in DM and in STM32 serial driver _ update STM32MP1 machine to allow DEBUG_UART activation Patrice Chotard (1): serial: stm32: Fix bits defines name Patrick Delaunay (4):

[U-Boot] [PATCH V2] sf: Add Macronix MX25U25635F ID

2018-05-17 Thread Marek Vasut
Add ID for the Macronix MX25U25635F flash. Signed-off-by: Marek Vasut Cc: Jagan Teki --- V2: Change the flash type on maintainer request. This doesn't match the actual hardware with which this was tested anymore though. --- drivers/mtd/spi/spi_flash_ids.c

Re: [U-Boot] [PATCH] net: MVGBE don't automatically select PHYLIB

2018-05-17 Thread Chris Packham
On Fri, May 18, 2018 at 12:02 AM Tom Rini wrote: > On Thu, May 17, 2018 at 01:59:36PM +0200, Stefan Roese wrote: > > On 17.05.2018 13:53, Chris Packham wrote: > > > > > > > > >On Thu, 17 May 2018, 11:09 PM Tom Rini, > >> wrote:

[U-Boot] [PATCH v2] net: MVGBE don't automatically select PHYLIB

2018-05-17 Thread Chris Packham
When Kconfig support was added for MVGBE it included automatically selected PHYLIB support. But MVGBE does not need PHYLIB it will build fine without it. Commit ed52ea507f12 ("net: add Kconfig for MVGBE") should have been a no-op in terms of build size but because of the selecting PHYLIB the

Re: [U-Boot] [PATCH] net: MVGBE don't automatically select PHYLIB

2018-05-17 Thread Tom Rini
On Thu, May 17, 2018 at 01:59:36PM +0200, Stefan Roese wrote: > On 17.05.2018 13:53, Chris Packham wrote: > > > > > >On Thu, 17 May 2018, 11:09 PM Tom Rini, >> wrote: > > > >On Thu, May 17, 2018 at 09:03:15PM +1200, Chris Packham wrote: > >

Re: [U-Boot] [PATCH] sunxi: allow CONFIG_DEFAULT_FDT_FILE override

2018-05-17 Thread Maxime Ripard
On Tue, May 01, 2018 at 05:46:41PM -0700, Martin Kelly wrote: > Currently, sunxi-common.h ignores CONFIG_DEFAULT_FDT_FILE and assumes > the kernel fdtfile and the u-boot devicetree names are the same. > Although this is typically the case, sometimes you might want to > customize one of these

Re: [U-Boot] [PATCH] net: MVGBE don't automatically select PHYLIB

2018-05-17 Thread Stefan Roese
On 17.05.2018 13:53, Chris Packham wrote: On Thu, 17 May 2018, 11:09 PM Tom Rini, > wrote: On Thu, May 17, 2018 at 09:03:15PM +1200, Chris Packham wrote: > Not all users of MVGBE need PHYLIB and it increases the size of the >

Re: [U-Boot] [PATCH 0/6] ARM: kirkwood: dts conversion round 2

2018-05-17 Thread Simon Guinot
On Thu, May 17, 2018 at 09:45:55PM +1200, Chris Packham wrote: > This is the second round of updating kirkwood boards to OF_CONTROL. Most > of these boards use spi flash so I've added the u-boot specific > "spi-flash" compatible string where appropriate. Hi Chris, Thanks for converting the LaCie

Re: [U-Boot] [PATCH] net: MVGBE don't automatically select PHYLIB

2018-05-17 Thread Chris Packham
On Thu, 17 May 2018, 11:09 PM Tom Rini, wrote: > On Thu, May 17, 2018 at 09:03:15PM +1200, Chris Packham wrote: > > Not all users of MVGBE need PHYLIB and it increases the size of the > > openrd images too much. > > > > Fixes: commit ed52ea507f12 ("net: add Kconfig for

Re: [U-Boot] RFC: Alternative boot_jump_linux() function

2018-05-17 Thread Peter Robinson
Hi, > I'm currently working on snapdragon bootloader support and in the > particular case where U-boot is running in Aarch32 and the kernel is > Aarch64 the specific implementation is to jump to Linux through SCM > call. I seem to remember the Allwinner A64 Pine64 starts in 32 bit mode and

Re: [U-Boot] [RFC PATCH 1/3] sunxi: Extend SPL header versioning

2018-05-17 Thread Andre Przywara
Hi, On 17/05/18 12:05, Siarhei Siamashka wrote: > On Thu, 17 May 2018 09:16:59 +0100 > Andre Przywara wrote: > >> On Allwinner SoCs we use some free bytes at the beginning of the SPL image >> to store various information. We have a version byte to allow updates, >> but

Re: [U-Boot] mtd: spi-nor: new NXP FlexSPI driver location & framework to use ?

2018-05-17 Thread Prabhakar Kushwaha
Dear Jagan, > -Original Message- > From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of > Prabhakar Kushwaha > Sent: Monday, May 14, 2018 6:55 PM > To: Jagan Teki > Cc: u-boot@lists.denx.de > Subject: Re: [U-Boot] mtd: spi-nor: new NXP FlexSPI driver

Re: [U-Boot] [PATCH 1/3] doc: Add new doc for file system firmware loader driver model

2018-05-17 Thread Tom Rini
On Thu, May 17, 2018 at 04:27:27AM +, Chee, Tien Fong wrote: > On Wed, 2018-05-16 at 08:48 -0400, Tom Rini wrote: > > On Wed, May 16, 2018 at 05:21:39PM +0800, tien.fong.c...@intel.com > > wrote: > > > > > > > > From: Tien Fong Chee > > > > > > Provide information

Re: [U-Boot] [PATCH] net: MVGBE don't automatically select PHYLIB

2018-05-17 Thread Tom Rini
On Thu, May 17, 2018 at 09:03:15PM +1200, Chris Packham wrote: > Not all users of MVGBE need PHYLIB and it increases the size of the > openrd images too much. > > Fixes: commit ed52ea507f12 ("net: add Kconfig for MVGBE") > Signed-off-by: Chris Packham > Cc: Tom Rini

Re: [U-Boot] [RFC PATCH 1/3] sunxi: Extend SPL header versioning

2018-05-17 Thread Icenowy Zheng
于 2018年5月17日 GMT+08:00 下午7:05:15, Siarhei Siamashka 写到: >On Thu, 17 May 2018 09:16:59 +0100 >Andre Przywara wrote: > >> On Allwinner SoCs we use some free bytes at the beginning of the SPL >image >> to store various information. We have a

Re: [U-Boot] [RFC PATCH 1/3] sunxi: Extend SPL header versioning

2018-05-17 Thread Siarhei Siamashka
On Thu, 17 May 2018 09:16:59 +0100 Andre Przywara wrote: > On Allwinner SoCs we use some free bytes at the beginning of the SPL image > to store various information. We have a version byte to allow updates, > but changing this always requires all tools to be updated as

[U-Boot] RFC: Alternative boot_jump_linux() function

2018-05-17 Thread Ramon Fried
Hi. I'm currently working on snapdragon bootloader support and in the particular case where U-boot is running in Aarch32 and the kernel is Aarch64 the specific implementation is to jump to Linux through SCM call. I try to find the best possible way to provide an alternative boot function. Adding

[U-Boot] [PATCH] ARM: uniphier: rename environment variable fdt_name to fdtname

2018-05-17 Thread Masahiro Yamada
For booting Linux in the generic distro mechanism, cmd/pxe.c retrieves the FDT file name from "fdtname" environment variable. Rename "fdt_name" to "fdtname" for easier migration to distro boot. Signed-off-by: Masahiro Yamada ---

Re: [U-Boot] [UBOOT PATCH] env: mmc: Fix misaligned buffer address when saving envvars to FAT

2018-05-17 Thread Vipul Kumar
Hi, > -Original Message- > From: Alex Kiernan [mailto:alex.kier...@gmail.com] > Sent: Thursday, May 17, 2018 1:31 PM > To: Vipul Kumar > Cc: u-boot ; gmus...@ciena.com; Michal Simek > ; Siva Durga Prasad Paladugu >

[U-Boot] IMX6 NAND booting failure

2018-05-17 Thread Rasheed, Abdul
Hi, I am working on VAR-SOM-MX6 SOC. I'm trying to boot a custom SPL from NAND. After programming NAND with custom SPL, system goes to serial downloader mode. I have taken the ROM code buffer log (also attached below). It shows that authentication fails. My boot security settings are OPEN, so

Re: [U-Boot] [PATCH] net: MVGBE don't automatically select PHYLIB

2018-05-17 Thread Stefan Roese
Hi Joe, On 17.05.2018 11:03, Chris Packham wrote: Not all users of MVGBE need PHYLIB and it increases the size of the openrd images too much. Fixes: commit ed52ea507f12 ("net: add Kconfig for MVGBE") Signed-off-by: Chris Packham Cc: Tom Rini Cc:

Re: [U-Boot] [PATCH] twister: Let SPL load U-Boot from MMC

2018-05-17 Thread Stefano Babic
Hi Ladislav, On 14/05/2018 09:17, Ladislav Michl wrote: > MMC is not initialized in SPL, so it cannot load u-boot.img > preventing boot from MMC. > > Also driver specific functions are guarded with generic > configuration options which leads to build failures when device > driver is not enabled

Re: [U-Boot] [PATCH V6 0/2] Update sabrelite and nitrogen6x boards to use distro boot support

2018-05-17 Thread Stefano Babic
Hi Guillaume, On 18/04/2018 17:04, Guillaume GARDET wrote: > This patch serie updates sabrelite and nitrogen6x boards to use distro boot > support. > Sabrelite has been boot tested with boot.scr script and EFI/Grub2 on mmc0 and > mmc1 slots. > Nitrogen6* boards have been build tested only. > >

  1   2   >