[U-Boot] [PATCH v4 2/2] zynqmp: zcu102: Add qspi driver support for ZynqMP zcu102 boards

2018-06-25 Thread Siva Durga Prasad Paladugu
This patch adds qspi driver support for all ZynqMP ZCU102 boards. Signed-off-by: Siva Durga Prasad Paladugu --- Changes for v4: - None Changes for v3: - Changed as per latest changes in 1/2 Changes for v2: - Rebased on top of latest master and enabled qspi for all zcu102 boards. --- configs/

[U-Boot] [PATCH v4 1/2] spi: zynqmp_gqspi: Add support for ZynqMP qspi driver

2018-06-25 Thread Siva Durga Prasad Paladugu
This patch adds qspi driver support for ZynqMP SoC. This driver is responsible for communicating with qspi flash devices. Signed-off-by: Siva Durga Prasad Paladugu --- Changes for v4: - Moved macro definitions back to .c - Removed last_cmd and flash command checks in driver - Used macros and GENM

[U-Boot] [PATCH v3 3/4] core: Add dev_{disable,enable}_by_path

2018-06-25 Thread Mario Six
We cannot use device structures to disable devices, since getting them with the API functions would bind and activate the device, which would fail if the underlying device does not exist. --- Hence, add a function to disable devices by path in a live device tree. Signed-off-by: Mario Six v2 ->

[U-Boot] [PATCH v3 4/4] test: Add tests for dev_{enable, disable}_by_path

2018-06-25 Thread Mario Six
Add tests for the dev_{enable,disable}_by_path functions. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v2 -> v3: * Fixed style violations v1 -> v2: New in v2 --- test/dm/test-fdt.c | 28 1 file changed, 28 insertions(+) diff --git a/test/dm/test-fdt.c

[U-Boot] [PATCH v3 1/4] core: Add functions to set properties in live-tree

2018-06-25 Thread Mario Six
Implement a set of functions to manipulate properties in a live device tree: * ofnode_write_prop() to set generic properties of a node * ofnode_write_string() to set string properties of a node * ofnode_set_enabled() to either enable or disable a node Signed-off-by: Mario Six --- v2 -> v3: * R

[U-Boot] [PATCH v3 2/4] test: Add tests for DT-manipulation functions

2018-06-25 Thread Mario Six
Add tests for the ofnode_set_enabled, ofnode_write_string, and ofnode_write_property functions. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v2 -> v3: * Fixed style violation v1 -> v2: New in v2 --- test/dm/test-fdt.c | 54 ++ 1 f

Re: [U-Boot] [PATCH v2 1/6] dm: SMEM (Shared memory) uclass

2018-06-25 Thread Dr. Philipp Tomsich
> On 22 Jun 2018, at 04:11, Ramon Fried wrote: > > This is a uclass for Shared memory manager drivers. > > A Shared Memory Manager driver implements an interface for allocating > and accessing items in the memory area shared among all of the > processors. > > Signed-off-by: Ramon Fried Revie

[U-Boot] [PATCH] cmd: ubi: Add additional message upon UBI attach error

2018-06-25 Thread Stefan Roese
When trying to attach an UBI MTD partition via "ubi part", it may happen that the MTD partition defined in U-Boot (via mtdparts) is not big enough than the one, where the UBI device has been created on. This may lead to errors, which are not really descriptive to debug and solve this issue, like:

Re: [U-Boot] [PATCH v2 1/6] dm: SMEM (Shared memory) uclass

2018-06-25 Thread Ramon Fried
Hi Simon On Tue, Jun 26, 2018 at 6:59 AM Simon Glass wrote: > Hi Ramon, > > On 21 June 2018 at 20:11, Ramon Fried wrote: > > This is a uclass for Shared memory manager drivers. > > > > A Shared Memory Manager driver implements an interface for allocating > > and accessing items in the memory ar

Re: [U-Boot] [PATCH v2 4/6] dts: db820c: added smem nodes

2018-06-25 Thread Simon Glass
On 21 June 2018 at 20:11, Ramon Fried wrote: > Added necessary nodes for Qualcomm smem driver. > > Signed-off-by: Ramon Fried > --- > > Changes in v2: None > > arch/arm/dts/dragonboard820c-uboot.dtsi | 4 > arch/arm/dts/dragonboard820c.dts| 16 > 2 files changed, 2

Re: [U-Boot] [PATCH v2 5/6] drivers: smem: sandbox

2018-06-25 Thread Simon Glass
On 21 June 2018 at 20:11, Ramon Fried wrote: > Add Sandbox driver for SMEM. mostly stub operations. > > Signed-off-by: Ramon Fried > --- > > Changes in v2: None > > arch/sandbox/dts/test.dts | 4 > configs/sandbox64_defconfig | 2 ++ > configs/sandbox_defconfig | 2 ++ > drivers/smem

Re: [U-Boot] [PATCH v2 2/6] soc: qualcomm: Add Shared Memory Manager driver

2018-06-25 Thread Simon Glass
Hi Ramon, On 21 June 2018 at 20:11, Ramon Fried wrote: > The Shared Memory Manager driver implements an interface for allocating > and accessing items in the memory area shared among all of the > processors in a Qualcomm platform. > > Adapted from the Linux driver (4.17) > > Changes from the orig

Re: [U-Boot] [PATCH v2 3/6] dts: db410c: added smem nodes

2018-06-25 Thread Simon Glass
On 21 June 2018 at 20:11, Ramon Fried wrote: > Added necessary nodes for Qualcomm smem driver. > > Signed-off-by: Ramon Fried > --- > > Changes in v2: None > > arch/arm/dts/dragonboard410c-uboot.dtsi | 5 + > arch/arm/dts/dragonboard410c.dts| 16 > 2 files changed,

Re: [U-Boot] [PATCH v2 1/6] dm: SMEM (Shared memory) uclass

2018-06-25 Thread Simon Glass
Hi Ramon, On 21 June 2018 at 20:11, Ramon Fried wrote: > This is a uclass for Shared memory manager drivers. > > A Shared Memory Manager driver implements an interface for allocating > and accessing items in the memory area shared among all of the > processors. > > Signed-off-by: Ramon Fried > >

Re: [U-Boot] [PATCH v2 6/6] test: smem: add basic smem test

2018-06-25 Thread Simon Glass
On 21 June 2018 at 20:11, Ramon Fried wrote: > Add basic smem sandbox testing. > > Signed-off-by: Ramon Fried > > --- > Tom, this patch depends on https://patchwork.ozlabs.org/patch/932965/ > > Changes in v2: None > > test/dm/Makefile | 1 + > test/dm/smem.c | 29 +

Re: [U-Boot] [PATCH v3 3/3] common: Generic loader for file system

2018-06-25 Thread Simon Glass
Hi, On 25 June 2018 at 07:28, wrote: > From: Tien Fong Chee > > This is file system generic loader which can be used to load > the file image from the storage into target such as memory. > The consumer driver would then use this loader to program whatever, > ie. the FPGA device. > > Signed-off-

Re: [U-Boot] Sharing code between U-Boot and its secure monitor

2018-06-25 Thread Simon Glass
Hi, On 25 June 2018 at 14:44, Stephen Warren wrote: > On 06/24/2018 12:17 AM, Alexander Graf wrote: >> >> >> >>> Am 22.06.2018 um 21:24 schrieb Stephen Warren : >>> >>> I am writing more secure monitor (PSCI) support for Jetson TK1. In >>> particular, this code will support resume from the LP0 sy

Re: [U-Boot] [PATCH v8 14/30] efi: Don't build sandbox with __attribute__((ms_abi))

2018-06-25 Thread Simon Glass
Hi Alex, On 25 June 2018 at 05:23, Alexander Graf wrote: > On 06/23/2018 04:16 PM, Simon Glass wrote: >> >> Hi Alex, >> >> On 23 June 2018 at 01:28, Alexander Graf wrote: >>> >>> >>> On 22.06.18 21:28, Simon Glass wrote: Hi Alex, On 22 June 2018 at 06:11, Alexander Graf

Re: [U-Boot] [PATCH v3 2/3] doc: dtbinding: Add file system firmware loader binding document

2018-06-25 Thread Simon Glass
Hi, On 25 June 2018 at 07:28, wrote: > From: Tien Fong Chee > > Add a document to describe file system firmware loader binding > information. > > Signed-off-by: Tien Fong Chee > --- > doc/device-tree-bindings/chosen.txt | 22 > doc/device-tree-bindings/misc/fs_loader.txt

Re: [U-Boot] [PATCH v2 0/3] Remove unused _relocate arguments

2018-06-25 Thread Bin Meng
Hi Ivan, On Tue, Jun 26, 2018 at 2:12 AM, Ivan Gorinov wrote: > EFI image handle and system table are not used in _relocate(). > > v2: > Separated the changes in efi_main() arguments and calling convention. > > Ivan Gorinov (3): > x86: Remove unused _relocate arguments This does not apply cl

Re: [U-Boot] [U-Boot, v4, 11/21] efi_loader: Introduce ms abi vararg helpers

2018-06-25 Thread Bin Meng
Hi Alex, On Tue, Jun 26, 2018 at 12:47 AM, Alexander Graf wrote: > On 06/23/2018 10:37 AM, Bin Meng wrote: >> >> Hi Alex, >> >> On Thu, Jun 21, 2018 at 11:13 PM, Alexander Graf wrote: Varargs differ between sysv and ms abi. On x86_64 we have to follow the ms abi though, so we

Re: [U-Boot] Logo for U-Boot

2018-06-25 Thread Marek Vasut
On 06/25/2018 07:52 AM, Stefan Roese wrote: > On 24.06.2018 20:07, Simon Glass wrote: >> Hi Heinrich, >> >> On 11 June 2018 at 09:54, Heinrich Schuchardt wrote: >>> On 06/11/2018 03:03 PM, Tom Rini wrote: On Sat, Jun 09, 2018 at 10:21:53PM +0200, Heinrich Schuchardt wrote: > On 06/09/2018

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

2018-06-25 Thread Tom Rini
On Tue, Jun 26, 2018 at 12:19:03AM +0530, Jagan Teki wrote: > Hi Tom, > > Please pull this PR. > > thanks, > Jagan. > > The following changes since commit 77b5ba5d2b94c5b028991c82782493f64bd4f392: > > Merge branch 'master' of git://git.denx.de/u-boot-uniphier (2018-06-22 > 13:12:53 -0400) >

Re: [U-Boot] [PATCH] ubifs: avoid memory corruption during ubifsmount

2018-06-25 Thread Richard Weinberger
Patrice, Am Montag, 25. Juni 2018, 13:54:12 CEST schrieb Patrice Chotard: > Sometimes, at boot time, following issue appears: > Error reading superblock on volume 'ubi0:boot' errno=-22! > > This error is coming from wrong ubi_num and wrong ubi_id in the superblock. > (ubi_num = -1 and vol_id = -1

Re: [U-Boot] Sharing code between U-Boot and its secure monitor

2018-06-25 Thread Stephen Warren
On 06/24/2018 12:17 AM, Alexander Graf wrote: Am 22.06.2018 um 21:24 schrieb Stephen Warren : I am writing more secure monitor (PSCI) support for Jetson TK1. In particular, this code will support resume from the LP0 system suspend state, which entails signing a block of code for the boot RO

Re: [U-Boot] [RFC PATCH 00/20] SPI-NAND support

2018-06-25 Thread Tom Rini
On Mon, Jun 25, 2018 at 09:58:39PM +0200, Boris Brezillon wrote: > On Tue, 26 Jun 2018 00:07:10 +0530 > Jagan Teki wrote: > > > >> I think I have to repeat my previous statement here. It would be very > > >> unfortunate if u-boot decides to take this direction (see Richard's > > >> reply), especi

Re: [U-Boot] [RFC PATCH 00/20] SPI-NAND support

2018-06-25 Thread Boris Brezillon
On Tue, 26 Jun 2018 00:07:10 +0530 Jagan Teki wrote: > >> I think I have to repeat my previous statement here. It would be very > >> unfortunate if u-boot decides to take this direction (see Richard's > >> reply), especially since I see absolutely no benefit in doing what you > >> suggest. Having

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

2018-06-25 Thread Jagan Teki
Hi Tom, Please pull this PR. thanks, Jagan. The following changes since commit 77b5ba5d2b94c5b028991c82782493f64bd4f392: Merge branch 'master' of git://git.denx.de/u-boot-uniphier (2018-06-22 13:12:53 -0400) are available in the Git repository at: git://git.denx.de/u-boot-spi.git master

Re: [U-Boot] [Question] uclass to be used for SoC devices

2018-06-25 Thread Peter Robinson
On Mon, Jun 25, 2018 at 7:32 PM, Grygorii Strashko wrote: > Hi All, > > I have question about uclass to be used for SoC devices (./drivers/soc/). > Now there is only ./drivers/soc/keystone/keystone_serdes.c which is not DM > converted, > but we are going to add more drivers for SoC specific compo

Re: [U-Boot] [PATCH] mtd:spi: Correct parameters for s25fs512s flash

2018-06-25 Thread Jagan Teki
On Mon, Jun 25, 2018 at 3:45 PM, Ashish Kumar wrote: > Change sector size to 256KiB in table spi_flash_ids. > > Signed-off-by: Ashish Kumar > --- Applied to u-boot-spi/master ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u

Re: [U-Boot] [RFC PATCH 00/20] SPI-NAND support

2018-06-25 Thread Jagan Teki
On Mon, Jun 25, 2018 at 8:25 PM, Tom Rini wrote: > On Mon, Jun 25, 2018 at 04:46:56PM +0200, Boris Brezillon wrote: >> On Mon, 25 Jun 2018 19:58:37 +0530 >> Jagan Teki wrote: >> >> > >>> - convert fsl-qspi to spi-mem >> > >> >> > >> We're not targeting the fsl-qspi controller here but a simple SP

[U-Boot] [Question] uclass to be used for SoC devices

2018-06-25 Thread Grygorii Strashko
Hi All, I have question about uclass to be used for SoC devices (./drivers/soc/). Now there is only ./drivers/soc/keystone/keystone_serdes.c which is not DM converted, but we are going to add more drivers for SoC specific components soon and internally I've used UCLASS_MISC for now. Is it accepta

[U-Boot] [PATCH v2 2/3] arm: Remove unused _relocate arguments

2018-06-25 Thread Ivan Gorinov
EFI image handle and system table are not used in _relocate(). Signed-off-by: Ivan Gorinov --- arch/arm/lib/crt0_aarch64_efi.S | 2 -- arch/arm/lib/crt0_arm_efi.S | 2 -- arch/arm/lib/reloc_aarch64_efi.c | 3 +-- arch/arm/lib/reloc_arm_efi.c | 3 +-- 4 files changed, 2 insertions(+), 8

[U-Boot] [PATCH v2 3/3] riscv: Remove unused _relocate arguments

2018-06-25 Thread Ivan Gorinov
EFI image handle and system table are not used in _relocate(). Signed-off-by: Ivan Gorinov --- arch/riscv/lib/reloc_riscv_efi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/riscv/lib/reloc_riscv_efi.c b/arch/riscv/lib/reloc_riscv_efi.c index 8b4b2b1..2fbbfcb 100644

[U-Boot] [PATCH v2 1/3] x86: Remove unused _relocate arguments

2018-06-25 Thread Ivan Gorinov
EFI image handle and system table are not used in _relocate(). Signed-off-by: Ivan Gorinov --- arch/x86/lib/crt0_x86_64_efi.S | 3 --- arch/x86/lib/reloc_ia32_efi.c | 3 +-- arch/x86/lib/reloc_x86_64_efi.c | 3 +-- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/arch/x86/lib/cr

[U-Boot] [PATCH v2 0/3] Remove unused _relocate arguments

2018-06-25 Thread Ivan Gorinov
EFI image handle and system table are not used in _relocate(). v2: Separated the changes in efi_main() arguments and calling convention. Ivan Gorinov (3): x86: Remove unused _relocate arguments arm: Remove unused _relocate arguments riscv: Remove unused _relocate arguments arch/arm/lib/

Re: [U-Boot] [PATCH 1/2] net: mv88e61xx: add configuration for RGMII delay

2018-06-25 Thread Joe Hershberger
On Mon, Jun 25, 2018 at 5:34 AM, Chris Packham wrote: > Some hardware designs connect a CPU MAC directly to the RGMII interface > of a mv88e61xx device. On such devices a delay on the RX/TX lines is > required, this can either be achieved by adding extra length to the > traces on the PCB or by imp

Re: [U-Boot] [PATCH 02/13] sunxi: add basical memory map definitions of H6 SoC

2018-06-25 Thread Maxime Ripard
On Mon, Jun 25, 2018 at 08:50:08PM +0800, Icenowy Zheng wrote: > > > 于 2018年6月25日 GMT+08:00 下午8:33:34, Maxime Ripard > 写到: > >On Mon, Jun 25, 2018 at 06:37:12PM +0800, Icenowy Zheng wrote: > >> The Allwinner H6 SoC come with a totally new memory map. > >> > >> Add basical definition of the new

Re: [U-Boot] [U-Boot, v4, 11/21] efi_loader: Introduce ms abi vararg helpers

2018-06-25 Thread Alexander Graf
On 06/23/2018 10:37 AM, Bin Meng wrote: Hi Alex, On Thu, Jun 21, 2018 at 11:13 PM, Alexander Graf wrote: Varargs differ between sysv and ms abi. On x86_64 we have to follow the ms abi though, so we also need to make sure we use x86_64 varargs helpers. This patch introduces generic efi vararg

Re: [U-Boot] [PATCH 4/5] x86: doc: Update EFI loader support

2018-06-25 Thread Alexander Graf
On 06/23/2018 12:03 PM, Bin Meng wrote: CONFIG_EFI_LOADER is fully supported on x86 now. Signed-off-by: Bin Meng Reviewed-by: Alexander Graf Alex ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 5/5] doc: vxworks: Mention chain-loading an x86 kernel via 'bootefi'

2018-06-25 Thread Alexander Graf
On 06/23/2018 12:03 PM, Bin Meng wrote: This updates the doc to mention chain-loading an x86 kernel via 'bootefi' command, along with several typos fix. Signed-off-by: Bin Meng Reviewed-by: Alexander Graf Alex ___ U-Boot mailing list U-Boot@list

Re: [U-Boot] [PATCH 3/5] efi_loader: Install ACPI configuration tables

2018-06-25 Thread Alexander Graf
On 06/24/2018 12:12 PM, Heinrich Schuchardt wrote: /On 06/23/2018 12:03 PM, Bin Meng wrote: ACPI tables can be passed via EFI configuration table to an EFI application. This is only supported on x86 so far. Signed-off-by: Bin Meng --- cmd/bootefi.c | 5 + include/efi_api.h

Re: [U-Boot] [u-boot-release] [PATCH] configs: Disable 4k erase sector size for spansion "s25fs512s" flash

2018-06-25 Thread York Sun
On 06/25/2018 03:31 AM, Ashish Kumar wrote: > 4K erase size is used only in case of hydrid mode which is not > supported on any NXP platform with flash "s25fs512s". > Supported mode is uniform sector, with erase size 256kiB. > > Signed-off-by: Ashish Kumar > --- > configs/ls1046aqds_qspi_defconf

[U-Boot] [PATCH] gpio: omap_gpio: Convert to auto-alloc feature when DT is supported

2018-06-25 Thread Adam Ford
The omap_gpio driver has a TODO that says when every board is converted to DM and DT, the omap_gpio_bind can stop using calloc and switch to auto-alloc. This patch converts this driver to auto-calloc when DT is enabled. Signed-off-by: Adam Ford diff --git a/drivers/gpio/omap_gpio.c b/drivers/gp

Re: [U-Boot] [RFC PATCH 00/20] SPI-NAND support

2018-06-25 Thread Stefan Roese
On 25.06.2018 16:55, Tom Rini wrote: On Mon, Jun 25, 2018 at 04:46:56PM +0200, Boris Brezillon wrote: On Mon, 25 Jun 2018 19:58:37 +0530 Jagan Teki wrote: - convert fsl-qspi to spi-mem We're not targeting the fsl-qspi controller here but a simple SPI controller that is already upstreamed. B

Re: [U-Boot] [RFC PATCH 00/20] SPI-NAND support

2018-06-25 Thread Tom Rini
On Mon, Jun 25, 2018 at 04:46:56PM +0200, Boris Brezillon wrote: > On Mon, 25 Jun 2018 19:58:37 +0530 > Jagan Teki wrote: > > > >>> - convert fsl-qspi to spi-mem > > >> > > >> We're not targeting the fsl-qspi controller here but a simple SPI > > >> controller that is already upstreamed. But yes

[U-Boot] [PATCH u-boot 2/2] boards: amlogic: Add FriendlyElec NanoPi K2 board support

2018-06-25 Thread Neil Armstrong
From: Thomas McKahan This adds platform code for the FriendlyElec NanoPi K2 board based on a Meson GXBB (S905) SoC with the Meson GXBB configuration. This initial submission only supports: - UART - MMC/SDCard - Ethernet - Reset Controller - Clock controller Cc: Yuefei Tan Signed-off-by: Thomas

[U-Boot] [PATCH u-boot 1/2] ARM: dts: sync meson-gxbb-nanopi-k2 from Linux 4.17

2018-06-25 Thread Neil Armstrong
Get the meson-gxbb-nanopi-k2.dts file from Linux 4.17. Signed-off-by: Neil Armstrong --- arch/arm/dts/Makefile | 1 + arch/arm/dts/meson-gxbb-nanopi-k2.dts | 323 ++ 2 files changed, 324 insertions(+) create mode 100644 arch/arm/dts/meson-gxbb-n

[U-Boot] [PATCH u-boot 0/2] Add support for the FriendlyElec NanoPi K2 board

2018-06-25 Thread Neil Armstrong
This adds platform code for the FriendlyElec NanoPi K2 board based on a Meson GXBB (S905) SoC with the Meson GXBB configuration. This initial submission only supports: - UART - MMC/SDCard - Ethernet - Reset Controller - Clock controller A sync with Linux 4.17 to get the device tree is also necess

Re: [U-Boot] [RFC PATCH 00/20] SPI-NAND support

2018-06-25 Thread Boris Brezillon
On Mon, 25 Jun 2018 19:58:37 +0530 Jagan Teki wrote: > >>> - convert fsl-qspi to spi-mem > >> > >> We're not targeting the fsl-qspi controller here but a simple SPI > >> controller that is already upstreamed. But yes, the fsl-qspi driver > >> will have to be patched to support the spi-mem inter

Re: [U-Boot] [RFC PATCH 00/20] SPI-NAND support

2018-06-25 Thread Richard Weinberger
Am Montag, 25. Juni 2018, 16:27:45 CEST schrieb Jagan Teki: > I understand the new MTD dm abstraction in U-Boot is not possible for > direct syncing from Linux, but we really want the u-boot way of > handling drivers and trying to copy code from Linux by removing > __UBOOT__ or any Linux specific m

Re: [U-Boot] [RFC PATCH 00/20] SPI-NAND support

2018-06-25 Thread Jagan Teki
+ Simon + Tom On Mon, Jun 25, 2018 at 7:57 PM, Jagan Teki wrote: > + Simon > + Tom > (suggesting MTD driver model abstraction layer) > > On Mon, Jun 25, 2018 at 2:39 PM, Boris Brezillon > wrote: >> +Richard to comment on the MTD abstraction stuff and how uboot port >> of UBI might be impacted by

Re: [U-Boot] [RFC PATCH 00/20] SPI-NAND support

2018-06-25 Thread Jagan Teki
+ Simon + Tom (suggesting MTD driver model abstraction layer) On Mon, Jun 25, 2018 at 2:39 PM, Boris Brezillon wrote: > +Richard to comment on the MTD abstraction stuff and how uboot port > of UBI might be impacted by some changes requested here. > > Hi Jagan, > > On Mon, 25 Jun 2018 13:59:37 +05

[U-Boot] [PATCH v3 2/3] doc: dtbinding: Add file system firmware loader binding document

2018-06-25 Thread tien . fong . chee
From: Tien Fong Chee Add a document to describe file system firmware loader binding information. Signed-off-by: Tien Fong Chee --- doc/device-tree-bindings/chosen.txt | 22 doc/device-tree-bindings/misc/fs_loader.txt | 52 + 2 files changed, 74

[U-Boot] [PATCH v3 3/3] common: Generic loader for file system

2018-06-25 Thread tien . fong . chee
From: Tien Fong Chee This is file system generic loader which can be used to load the file image from the storage into target such as memory. The consumer driver would then use this loader to program whatever, ie. the FPGA device. Signed-off-by: Tien Fong Chee --- drivers/misc/Kconfig | 1

[U-Boot] [PATCH v3 0/3] Generic file system firmware loader DM

2018-06-25 Thread tien . fong . chee
From: Tien Fong Chee This patchset contains generic file system loader DM which is very close to Linux firmware loader but for U-Boot framework. Generic file system firmware loader can be used load whatever into target location, and then consumer driver would use it to program whatever, ie. the F

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

2018-06-25 Thread tien . fong . chee
From: Tien Fong Chee Provide information about - overview of file system firmware loader driver model - describe storage device and partition in device tree source - describe fie system firmware loader API Signed-off-by: Tien Fong Chee --- doc/driver-model/fs_firmware_loader.txt | 129 +++

Re: [U-Boot] [linux-sunxi] [PATCH 00/13] Allwinner H6 support (w/ SPL)

2018-06-25 Thread Jagan Teki
On Mon, Jun 25, 2018 at 6:19 PM, Icenowy Zheng wrote: > > > 于 2018年6月25日 GMT+08:00 下午8:40:21, Jagan Teki 写到: >>On Mon, Jun 25, 2018 at 4:07 PM, Icenowy Zheng wrote: >>> This patch trys to add support for Allwinner H6 SoC to U-Boot. >>> >>> Allwinner H6 is a quite new Allwinner SoC, with several

Re: [U-Boot] [PATCH v3 1/4] lib: fdtdec: Add new variable ram_start to global data

2018-06-25 Thread Tom Rini
On Mon, Jun 25, 2018 at 08:15:34AM +0200, Michal Simek wrote: > Hi, > > On 22.6.2018 21:28, Simon Glass wrote: > > Hi, > > > > On 22 June 2018 at 01:41, Michal Simek wrote: > >> Hi Simon, > >> > >> On 18.6.2018 08:18, Siva Durga Prasad Paladugu wrote: > >>> Added new variable ram_start to global

Re: [U-Boot] [PATCH 02/13] sunxi: add basical memory map definitions of H6 SoC

2018-06-25 Thread Icenowy Zheng
于 2018年6月25日 GMT+08:00 下午8:33:34, Maxime Ripard 写到: >On Mon, Jun 25, 2018 at 06:37:12PM +0800, Icenowy Zheng wrote: >> The Allwinner H6 SoC come with a totally new memory map. >> >> Add basical definition of the new memory map into a header file, and >let >> the cpu.h header include it in the s

Re: [U-Boot] [linux-sunxi] [PATCH 00/13] Allwinner H6 support (w/ SPL)

2018-06-25 Thread Icenowy Zheng
于 2018年6月25日 GMT+08:00 下午8:40:21, Jagan Teki 写到: >On Mon, Jun 25, 2018 at 4:07 PM, Icenowy Zheng wrote: >> This patch trys to add support for Allwinner H6 SoC to U-Boot. >> >> Allwinner H6 is a quite new Allwinner SoC, with several parts changed >a >> lot (memory map, DRAM controller, CCU, so o

Re: [U-Boot] [PATCH] mx6cuboxi: Move the default environment for all devices

2018-06-25 Thread Fabio Estevam
On Mon, Jun 25, 2018 at 7:39 AM, Baruch Siach wrote: > From: Jon Nettleton > > Previously we had stored the environment right after the > u-boot.img on the disk. I never liked this because with dtbs > being included and such the image could grow in size. Instead > we move the environment to be

Re: [U-Boot] [linux-sunxi] [PATCH 00/13] Allwinner H6 support (w/ SPL)

2018-06-25 Thread Jagan Teki
On Mon, Jun 25, 2018 at 4:07 PM, Icenowy Zheng wrote: > This patch trys to add support for Allwinner H6 SoC to U-Boot. > > Allwinner H6 is a quite new Allwinner SoC, with several parts changed a > lot (memory map, DRAM controller, CCU, so on). The position which SPL > will be loaded (SRAM A1) also

Re: [U-Boot] [RFC PATCH 00/20] SPI-NAND support

2018-06-25 Thread Richard Weinberger
Am Montag, 25. Juni 2018, 11:09:41 CEST schrieb Boris Brezillon: > +Richard to comment on the MTD abstraction stuff and how uboot port > of UBI might be impacted by some changes requested here. > > Hi Jagan, > > On Mon, 25 Jun 2018 13:59:37 +0530 > Jagan Teki wrote: > > > > > I've looked the c

Re: [U-Boot] [PATCH 02/13] sunxi: add basical memory map definitions of H6 SoC

2018-06-25 Thread Maxime Ripard
On Mon, Jun 25, 2018 at 06:37:12PM +0800, Icenowy Zheng wrote: > The Allwinner H6 SoC come with a totally new memory map. > > Add basical definition of the new memory map into a header file, and let > the cpu.h header include it in the situation of H6. > > Signed-off-by: Icenowy Zheng > --- > a

Re: [U-Boot] [PATCH 01/13] sunxi: change SUNXI_HIGH_SRAM option to SUNXI_SRAM_ADDRESS

2018-06-25 Thread Maxime Ripard
On Mon, Jun 25, 2018 at 06:37:11PM +0800, Icenowy Zheng wrote: > The new Allwinner H6 SoC has its SRAM A1 at neither 0x0 nor 0x1, but > it's at 0x2. Thus the SUNXI_HIGH_SRAM option needs to be refactored > to support this new configuration. > > Change it to SUNXI_SRAM_ADDRESS, which holds

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

2018-06-25 Thread Tom Rini
On Sun, Jun 24, 2018 at 09:15:32AM +0800, Bin Meng wrote: > Hi Tom, > > This mainly fixes the broken EFI x86 payload support, and some other > small enhancements. > > The following changes since commit 77b5ba5d2b94c5b028991c82782493f64bd4f392: > > Merge branch 'master' of git://git.denx.de/u-

Re: [U-Boot] [PATCH RFC] doc: Replace DocBook with sphinx-based docs

2018-06-25 Thread Mario Six
Hi Tom, On Mon, Jun 18, 2018 at 9:04 PM, Tom Rini wrote: > On Thu, Jun 14, 2018 at 10:44:53AM +0200, Mario Six wrote: > >> The Linux kernel moved to sphinx-based documentation and got rid of the >> DocBook based documentation quite a while ago. Hence, the DocBook >> documentation for U-Boot shoul

[U-Boot] [PATCH] ubifs: avoid memory corruption during ubifsmount

2018-06-25 Thread Patrice Chotard
Sometimes, at boot time, following issue appears: Error reading superblock on volume 'ubi0:boot' errno=-22! This error is coming from wrong ubi_num and wrong ubi_id in the superblock. (ubi_num = -1 and vol_id = -1). It appears that following line in sget function: hlist_add_head(&s->s_instances, &

Re: [U-Boot] bootefi disk probe once?

2018-06-25 Thread Alexander Graf
Hi Bin, On 06/25/2018 03:44 AM, Bin Meng wrote: Hi Alex, Heinrich, During testing bootefi command, I found that: If I type 'bootefi' at first time, and forgot to probe the disk before, I got: Found 0 disks Later I did the disk probe (eg: usb start, or scsi scan), and re-run 'bootefi', the di

Re: [U-Boot] [PATCH v8 14/30] efi: Don't build sandbox with __attribute__((ms_abi))

2018-06-25 Thread Alexander Graf
On 06/23/2018 04:16 PM, Simon Glass wrote: Hi Alex, On 23 June 2018 at 01:28, Alexander Graf wrote: On 22.06.18 21:28, Simon Glass wrote: Hi Alex, On 22 June 2018 at 06:11, Alexander Graf wrote: On 06/21/2018 09:45 PM, Simon Glass wrote: Hi Alex, On 21 June 2018 at 03:59, Alexander Gra

Re: [U-Boot] [PATCH v2 7/7] video_display: Add Xilinx LogiCore DP TX

2018-06-25 Thread Mario Six
Hi Anatolij, On Sat, May 26, 2018 at 12:24 AM, Anatolij Gustschin wrote: > Hi Mario, > > Please test the patch with ./scripts/checkpatch.pl, there are warnings/ > errors reported that need fixing: > ... > total: 1 errors, 31 warnings, 26 checks, 2746 lines checked > Right, sorry, will be fixed

[U-Boot] [PATCH] mx6cuboxi: Move the default environment for all devices

2018-06-25 Thread Baruch Siach
From: Jon Nettleton Previously we had stored the environment right after the u-boot.img on the disk. I never liked this because with dtbs being included and such the image could grow in size. Instead we move the environment to be negatively offset from the 1MB mark. Almost all our images start

[U-Boot] [PATCH 13/13] sunxi: add support for Pine H64 board

2018-06-25 Thread Icenowy Zheng
Pine H64 is a SBC with Allwinner H6 SoC produced by Pine64. It features 1GiB/2GiB/4GiB(3GiB usable) DRAM, two USB 2.0 ports, one USB 3.0 port and a mPCIE slot. Add support for it. Signed-off-by: Icenowy Zheng --- arch/arm/dts/Makefile | 2 + arch/arm/dts/sun50i-h6-pine-h64.dts |

[U-Boot] [PATCH 10/13] sunxi: add MMC support for H6

2018-06-25 Thread Icenowy Zheng
The Allwinner H6 SoC has 3 MMC controllers like the ones in A64, with the MMC2 come with the capability to do crypto by EMCE. Add MMC support for H6. EMCE support is not added yet. Signed-off-by: Icenowy Zheng --- arch/arm/include/asm/arch-sunxi/mmc.h | 2 +- board/sunxi/board.c

[U-Boot] [PATCH 11/13] sunxi: add DRAM support to H6

2018-06-25 Thread Icenowy Zheng
The Allwinner H6 SoC comes with a set of new DRAM controller+PHY combo. Both the controller and the PHY seem to be originate from DesignWare, and are similar to the ones in ZynqMP SoCs. This commit introduces an initial DRAM driver for H6, which contains only LPDDR3 support. The currently known SB

[U-Boot] [PATCH 09/13] sunxi: add UART0 setup for H6

2018-06-25 Thread Icenowy Zheng
The UART0 on H6 is available at PH bank (and PF bank, but the PF one is muxed with SD card). Add pinmux configuration. Signed-off-by: Icenowy Zheng --- arch/arm/include/asm/arch-sunxi/gpio.h | 1 + arch/arm/mach-sunxi/board.c| 4 2 files changed, 5 insertions(+) diff --git a/a

[U-Boot] [PATCH 12/13] sunxi: add support for Allwinner H6 SoC

2018-06-25 Thread Icenowy Zheng
Allwinner H6 is a new SoC from Allwinner features USB3 and PCIe interfaces. This patch adds support for it. As this is a new SoC supported by mainline U-Boot, the MMC env support is dropped and only FAT env is available. Signed-off-by: Icenowy Zheng --- arch/arm/dts/sun50i-h6.dtsi| 140 +++

[U-Boot] [PATCH 07/13] sunxi: add clock code for H6

2018-06-25 Thread Icenowy Zheng
The new Allwinner H6 SoC has a brand new CCU layout. Add clock code for it. Signed-off-by: Icenowy Zheng --- arch/arm/include/asm/arch-sunxi/clock.h | 2 + .../include/asm/arch-sunxi/clock_sun50i_h6.h | 320 ++ arch/arm/mach-sunxi/Makefile | 1 + arch

[U-Boot] [PATCH 05/13] sunxi: add config for SPL at 0x20000 on H6

2018-06-25 Thread Icenowy Zheng
On the new Allwinner H6 SoC, the SRAM A2 address (SPL load address) is at 0x2, which is different with any old Allwinner SoCs. Add SPL position and size configuration for this. Signed-off-by: Icenowy Zheng --- include/configs/sunxi-common.h | 5 + 1 file changed, 5 insertions(+) diff -

[U-Boot] [PATCH 04/13] sunxi: change ATF position for H6

2018-06-25 Thread Icenowy Zheng
H6 has different SRAM A2 address, so the ATF load address is also different. Add judgment code to sunxi 64-bit FIT generation script. It will judge the SoC by the device tree's name. Signed-off-by: Icenowy Zheng --- board/sunxi/mksunxi_fit_atf.sh | 10 -- 1 file changed, 8 insertions(+)

[U-Boot] [PATCH 06/13] sunxi: change GIC address on H6

2018-06-25 Thread Icenowy Zheng
As the Allwinner H6 chip has a new memory map, its GIC MMIO address is thus different. Change the address on H6. Signed-off-by: Icenowy Zheng --- include/configs/sun50i.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/configs/sun50i.h b/include/configs/sun50i.h index b7b67a1dd

[U-Boot] [PATCH 08/13] sunxi: use sun6i-style watchdog for H6

2018-06-25 Thread Icenowy Zheng
The H6 SoC has a sun6i-style watchdog in its timer part. Enable the usage of it. Signed-off-by: Icenowy Zheng --- arch/arm/include/asm/arch-sunxi/timer.h | 2 +- arch/arm/mach-sunxi/board.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/include/asm/a

[U-Boot] [PATCH 03/13] sunxi: change RMR64's RVBAR address for H6

2018-06-25 Thread Icenowy Zheng
Allwinner H6 has a different RVBAR address with A64/H5. Add conditional RVBAR configuration into the code which does RMR switch. Signed-off-by: Icenowy Zheng --- arch/arm/include/asm/arch-sunxi/boot0.h | 4 arch/arm/mach-sunxi/rmr_switch.S| 6 ++ 2 files changed, 10 insertions(

[U-Boot] [PATCH 01/13] sunxi: change SUNXI_HIGH_SRAM option to SUNXI_SRAM_ADDRESS

2018-06-25 Thread Icenowy Zheng
The new Allwinner H6 SoC has its SRAM A1 at neither 0x0 nor 0x1, but it's at 0x2. Thus the SUNXI_HIGH_SRAM option needs to be refactored to support this new configuration. Change it to SUNXI_SRAM_ADDRESS, which holds the real address of SRAM A1 in the memory map. Signed-off-by: Icenowy Zh

[U-Boot] [PATCH 02/13] sunxi: add basical memory map definitions of H6 SoC

2018-06-25 Thread Icenowy Zheng
The Allwinner H6 SoC come with a totally new memory map. Add basical definition of the new memory map into a header file, and let the cpu.h header include it in the situation of H6. Signed-off-by: Icenowy Zheng --- arch/arm/include/asm/arch-sunxi/cpu.h | 2 + .../include/asm/arch-sunxi

[U-Boot] [PATCH 00/13] Allwinner H6 support (w/ SPL)

2018-06-25 Thread Icenowy Zheng
This patch trys to add support for Allwinner H6 SoC to U-Boot. Allwinner H6 is a quite new Allwinner SoC, with several parts changed a lot (memory map, DRAM controller, CCU, so on). The position which SPL will be loaded (SRAM A1) also changed to 0x2. The Pine H64 board support comes with this

Re: [U-Boot] [UBOOT PATCH v3 3/3] spi: xilinx_spi: Added support to read JEDEC-id twice at the boot time

2018-06-25 Thread Vipul Kumar
Hi Jagan, > -Original Message- > From: Jagan Teki [mailto:jagannadh.t...@gmail.com] > Sent: Monday, June 25, 2018 3:47 PM > To: Vipul Kumar > Cc: U-Boot Mailing List ; Michal Simek > > Subject: Re: [U-Boot] [UBOOT PATCH v3 3/3] spi: xilinx_spi: Added support to > read JEDEC-id twice at t

[U-Boot] [PATCH 2/2] ARM: kirkwood: add SBx81LIFXCAT board

2018-06-25 Thread Chris Packham
This is a series of line cards for Allied Telesis's SBx8100 chassis switch. The CPU block is common to the SBx81GP24 and SBx81GT24 cards cards collectively referred to as SBx81LIFXCAT in u-boot. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-atl-sbx81lifxcat.dts| 145 +++

[U-Boot] [PATCH 1/2] net: mv88e61xx: add configuration for RGMII delay

2018-06-25 Thread Chris Packham
Some hardware designs connect a CPU MAC directly to the RGMII interface of a mv88e61xx device. On such devices a delay on the RX/TX lines is required, this can either be achieved by adding extra length to the traces on the PCB or by implementing the delay in silicon. This is an implementation of th

[U-Boot] [PATCH] configs: Disable 4k erase sector size for spansion "s25fs512s" flash

2018-06-25 Thread Ashish Kumar
4K erase size is used only in case of hydrid mode which is not supported on any NXP platform with flash "s25fs512s". Supported mode is uniform sector, with erase size 256kiB. Signed-off-by: Ashish Kumar --- configs/ls1046aqds_qspi_defconfig| 1 + configs/ls1046aqds_sdcard_qsp

Re: [U-Boot] [UBOOT PATCH v3 3/3] spi: xilinx_spi: Added support to read JEDEC-id twice at the boot time

2018-06-25 Thread Jagan Teki
On Thu, Jun 21, 2018 at 2:53 PM, Vipul Kumar wrote: > This patch is for the startup block issue in the spi controller. > SPI clock is passing through STARTUP block to FLASH. STARTUP block > don't provide clock as soon as QSPI provides command. So, first > command fails. Does this a controller iss

[U-Boot] [PATCH] mtd:spi: Correct parameters for s25fs512s flash

2018-06-25 Thread Ashish Kumar
Change sector size to 256KiB in table spi_flash_ids. Signed-off-by: Ashish Kumar --- drivers/mtd/spi/spi_flash_ids.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/spi/spi_flash_ids.c b/drivers/mtd/spi/spi_flash_ids.c index c45d2e8..54d491c 100644 --- a/drivers/m

Re: [U-Boot] [UBOOT PATCH v3 2/3] spi: xilinx_spi: Modify transfer logic xilinx_spi_xfer() function

2018-06-25 Thread Jagan Teki
On Thu, Jun 21, 2018 at 2:53 PM, Vipul Kumar wrote: > This patch modify xilinx_spi_xfer() function and add rxfifo() and > txfifo() functions to add the modularity so that these functions > can be used by other functions within the same file. > > This patch also added support to read fifo_size from

Re: [U-Boot] [UBOOT PATCH v3 1/3] spi: xilinx: Read reg base address from DTS file

2018-06-25 Thread Jagan Teki
On Thu, Jun 21, 2018 at 2:53 PM, Vipul Kumar wrote: > From: Michal Simek > > This patch added support to read register base address > from DTS file. > > Signed-off-by: Michal Simek > Signed-off-by: Vipul Kumar > --- > Changes in v3: > - Read reg in probe function > - Removed xilinx_spi_ofdata_t

Re: [U-Boot] Fwd: Re: [PATCH v3 2/6] spi: omap3_spi: Full dm conversion

2018-06-25 Thread Jagan Teki
On Mon, Jun 25, 2018 at 3:29 PM, Hannes Schmelzer wrote: > > On 06/24/2018 09:24 PM, Jagan Teki wrote: >> >> On Fri, Jun 22, 2018 at 7:01 PM, Hannes Schmelzer >> wrote: >>> >>> Hi Jagan, >>> >>> anything open ? >>> are the patches ready to apply? >> >> I'm waiting for the board that are using dri

Re: [U-Boot] [PATCH v2 6/7] cmd: Add axi command

2018-06-25 Thread Mario Six
Hi Simon, On Fri, May 25, 2018 at 4:41 AM, Simon Glass wrote: > Hi Mario, > > On 23 May 2018 at 06:10, Mario Six wrote: >> Add a command to debug the AXI bus. >> >> Signed-off-by: Mario Six >> >> --- >> >> v1 -> v2: >> No changes >> >> --- >> cmd/Kconfig | 8 ++ >> cmd/Makefile | 1 + >>

Re: [U-Boot] Fwd: Re: [PATCH v3 2/6] spi: omap3_spi: Full dm conversion

2018-06-25 Thread Hannes Schmelzer
On 06/24/2018 09:24 PM, Jagan Teki wrote: On Fri, Jun 22, 2018 at 7:01 PM, Hannes Schmelzer wrote: Hi Jagan, anything open ? are the patches ready to apply? I'm waiting for the board that are using driver should ready for dm_spi, and I hope these are not done yet and indeed waiting for board

Re: [U-Boot] [PATCH 2/3] spi: mxc_spi: Fix chipselect on DM_SPI driver uclass

2018-06-25 Thread Jagan Teki
On Thu, Jun 21, 2018 at 2:21 AM, Michael Trimarchi wrote: > CS GPIO activation low/high is determinated by the device tree > so we don't need to take in accoung in cs_activate and cs_deactivate > > Signed-off-by: Michael Trimarchi > --- Applied to u-boot-spi/master __

Re: [U-Boot] [PATCH v2 5/7] test: Add AXI test

2018-06-25 Thread Mario Six
Hi Simon, On Fri, May 25, 2018 at 4:41 AM, Simon Glass wrote: > On 23 May 2018 at 06:10, Mario Six wrote: >> Add tests for the AXI uclass. >> >> Signed-off-by: Mario Six >> >> --- >> >> v1 -> v2: >> * Fixed asserts (moved expected values first) >> >> --- >> test/dm/Makefile | 1 + >> test/dm/

  1   2   >