Re: [U-Boot] Support of device-tree for PowerPC platform: Query

2018-06-27 Thread Bin Meng
Hi Prabhakar, On Thu, Jun 28, 2018 at 6:05 AM, Simon Glass wrote: > Hi, > > On 27 June 2018 at 08:06, York Sun wrote: >> >> +Simon >> >> On 06/27/2018 01:05 AM, Prabhakar Kushwaha wrote: >> > Hi All, >> > >> > We are trying to add support of device-tree for PowerPC platforms. As per >> > our

Re: [U-Boot] [PATCH v3 4/6] efi_loader: helloworld: Output ACPI configuration table

2018-06-27 Thread Heinrich Schuchardt
On 06/28/2018 05:38 AM, Bin Meng wrote: > Output ACPI configuration table if it exists. > > Signed-off-by: Bin Meng Reviewed-by: Heinrich Schuchardt ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] Support of device-tree for PowerPC platform: Query

2018-06-27 Thread Prabhakar Kushwaha
Hi Simon, > -Original Message- > From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass > Sent: Thursday, June 28, 2018 3:36 AM > To: York Sun > Cc: Prabhakar Kushwaha ; u- > b...@lists.denx.de; Poonam Aggrwal ; Jagdish > Gediya > Subject: Re: Support of device-tree

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

2018-06-27 Thread Chee, Tien Fong
On Wed, 2018-06-27 at 14:03 -0700, Simon Glass wrote: > Hi Tien Fong, > > On 27 June 2018 at 01:41, Chee, Tien Fong > wrote: > > > > On Mon, 2018-06-25 at 21:58 -0600, Simon Glass wrote: > > > > > > Hi, > > > > > > On 25 June 2018 at 07:28,   wrote: > > > > > > > > > > > > From: Tien Fong

[U-Boot] [PATCH 3/3] x86: acpi: Prevent acpi_table.h from being included more than once

2018-06-27 Thread Bin Meng
The wrapper #ifndef is currently missing in acpi_table.h. Add it to prevent it from being included multiple times. Signed-off-by: Bin Meng --- arch/x86/include/asm/acpi_table.h | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/x86/include/asm/acpi_table.h

[U-Boot] [PATCH 2/3] x86: acpi: Don't touch ACPI hardware in write_acpi_tables()

2018-06-27 Thread Bin Meng
write_acpi_tables() currently touches ACPI hardware to switch to ACPI mode at the end. Move such operation out of this function, so that it only does what the function name tells us. Signed-off-by: Bin Meng --- arch/x86/cpu/cpu.c| 20 +--- arch/x86/lib/acpi_table.c | 11

[U-Boot] [PATCH v3 4/6] efi_loader: helloworld: Output ACPI configuration table

2018-06-27 Thread Bin Meng
Output ACPI configuration table if it exists. Signed-off-by: Bin Meng --- Changes in v3: - Use UEFI spec 2.7 provided ACPI table name Changes in v2: - new patch "output ACPI configuration table" lib/efi_loader/helloworld.c | 4 1 file changed, 4 insertions(+) diff --git

[U-Boot] [PATCH 1/3] x86: acpi: Move APIs unrelated to ACPI tables generation to a separate library

2018-06-27 Thread Bin Meng
acpi_find_fadt(), acpi_find_wakeup_vector() and enter_acpi_mode() are something unrelated to ACPI tables generation. Move these to a separate library. This also fixes several style issues reported by checkpatch in the original codes. Signed-off-by: Bin Meng --- arch/x86/cpu/cpu.c

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

2018-06-27 Thread Bin Meng
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: Simon Glass Reviewed-by: Alexander Graf --- Changes in v3: None Changes in v2: None doc/README.vxworks | 18 -- 1 file

[U-Boot] [PATCH v3 5/6] x86: doc: Update EFI loader support

2018-06-27 Thread Bin Meng
CONFIG_EFI_LOADER is fully supported on x86 now. Signed-off-by: Bin Meng Reviewed-by: Simon Glass Reviewed-by: Alexander Graf --- Changes in v3: None Changes in v2: None doc/README.x86 | 29 +++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH v3 2/6] efi_loader: Increase number of configuration tables to 16

2018-06-27 Thread Bin Meng
At present the number of configuration tables is set to 2. By looking at which tables the Linux EFI stub or iPXE can process, it looks 16 is a reasonable number. Signed-off-by: Bin Meng Reviewed-by: Heinrich Schuchardt --- Changes in v3: None Changes in v2: - new patch "increase number of

[U-Boot] [PATCH v3 3/6] efi_loader: Install ACPI configuration tables

2018-06-27 Thread Bin Meng
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 Reviewed-by: Simon Glass --- Changes in v3: - Use UEFI spec 2.7 provided ACPI table name Changes in v2: None cmd/bootefi.c | 5 +

[U-Boot] [PATCH v3 1/6] x86: efi_loader: Build EFI memory map per E820 table

2018-06-27 Thread Bin Meng
On x86 traditional E820 table is used to pass the memory information to kernel. With EFI loader we can build the EFI memory map from it. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/x86/lib/e820.c | 39

[U-Boot] [PATCH 2/3] dts: imx6ul_evk: Add DTS files for 14x14 EVK and 9x9 EVK boards

2018-06-27 Thread Ye Li
Add the board DTS files for 14x14 EVK and 9x9 EVK. They are necessary for converting to use u-boot DM driver. Two -u-boot.dtsi are added to modify compatible string of SPI flash device to "spi-flash". Signed-off-by: Ye Li --- arch/arm/dts/Makefile | 4 +-

[U-Boot] [PATCH 3/3] imx: imx6ul_evk: Enable DM driver for iMX6UL EVK u-boot

2018-06-27 Thread Ye Li
Convert the codes and configurations to enable DM drivers in u-boot for modules: i2c, PMIC, regulator, USB, Ethernet, SD/MMC, GPIO and QSPI This patch does not change SPL, so it still uses non-DM driver for UART, GPIO and SD/MMC. Signed-off-by: Ye Li ---

[U-Boot] [PATCH 1/3] dts: imx6ul: Update alias to support DM

2018-06-27 Thread Ye Li
Add spi0 alias for qspi for enabling DM SPI. Change usb alias for usbotg1 and usbotg2 for enabling DM USB Signed-off-by: Ye Li --- arch/arm/dts/imx6ul.dtsi | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/arch/arm/dts/imx6ul.dtsi b/arch/arm/dts/imx6ul.dtsi index

[U-Boot] [PATCH v2] imx: imx7d-sdb: Add DM QSPI support

2018-06-27 Thread Ye Li
On iMX7D SabreSD board, the QSPI has pins conflict with EPDC (default). To use QSPI, users have to rework the board (de-populate R388-R391, R396-R399 populate R392-R395, R299, R300). So we add new DTS file and new defconfig dedicated for QSPI. Other changes to support the DM QSPI: - Add QSPI

[U-Boot] [PATCH v2 2/2] imx: imx6sx-sabreauto: convert to use DM QSPI driver

2018-06-27 Thread Ye Li
To support DM QSPI driver: - Add -u-boot.dtsi to modify n25q256a@0 and n25q256a@1 compatible string to "spi-flash" and add "num-cs" property. - Enable DM SPI and DM SPI FLASH configurations - Remove iomux settings of qspi1 in board codes which is not needed for DM driver. Signed-off-by:

[U-Boot] [PATCH v2 1/2] imx: imx6sx-sdb: Enable DM QSPI driver

2018-06-27 Thread Ye Li
To support DM QSPI driver - Add spi0 and spi1 alias for qspi1 and qspi2. - Add -u-boot.dtsi to modify n25q256a@0 and n25q256a@1 compatible string to "spi-flash" and add "num-cs" property. - Enable DM SPI/QSPI relavent configurations - Remove iomux settings of qspi2 in board codes which is

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

2018-06-27 Thread Tom Rini
On Wed, Jun 27, 2018 at 05:01:09PM +0200, Stefano Babic wrote: > Hi Tom, > > please pull from u-boot-imx, thanks ! > > As discussed in previous thread, I have merged some NAND patches, too > (see Stefan's and Jorg's patches). > > > -- The following changes since commit >

Re: [U-Boot] fw_printenv: Don't bail out directly after one env read error

2018-06-27 Thread Tom Rini
On Tue, Jun 26, 2018 at 12:37:59PM +0300, Ioan-Adrian Ratiu wrote: > From: Joe Hershberger > > When using a redundant environment a read error should simply mean to > not use that copy instead of giving up completely. The other copy may > be just fine. > > Signed-off-by: Joe Hershberger >

[U-Boot] [PATCH 7/7] efi_selftest: test InstallConfigurationTable()

2018-06-27 Thread Heinrich Schuchardt
Provide a unit test for InstallConfigurationTable(). A table is installed, updated, removed. The table entry and the triggering of events is checked. Signed-off-by: Heinrich Schuchardt --- lib/efi_selftest/Makefile| 1 + lib/efi_selftest/efi_selftest_config_table.c | 223

[U-Boot] [PATCH 4/7] efi_loader: provide firmware revision

2018-06-27 Thread Heinrich Schuchardt
Provide a firmware revision in the system table using the Makefile variables VERSION and PATCHLEVEL, e.g. 0x20180700 for v2018.07. Correct the type of the firmware vendor. It is a u16* pointer. Signed-off-by: Heinrich Schuchardt --- include/efi_api.h | 2 +- lib/efi_loader/Makefile

[U-Boot] [PATCH 6/7] efi_loader: allocate configuration table array

2018-06-27 Thread Heinrich Schuchardt
The system table contains a link to the list of configurations tables. These include the device tree, SMBIOS table, and the ACPI table. This array is currently statically linked. With the patch it is allocated as EFI_RUNTIME_SERVICES_DATA. Due to the structure of the system table we cannot work

[U-Boot] [PATCH 3/7] efi_loader: correct headersize EFI tables

2018-06-27 Thread Heinrich Schuchardt
The headersize field has to be set to the size of the whole table including the header. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 4 ++-- lib/efi_loader/efi_runtime.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git

[U-Boot] [PATCH 5/7] efi_loader: calculate crc32 for EFI tables

2018-06-27 Thread Heinrich Schuchardt
For the boot and runtime services tables and for the system table the crc32 has to be set in the header. Signed-off-by: Heinrich Schuchardt --- cmd/bootefi.c | 5 + include/efi_loader.h | 2 ++ lib/efi_loader/efi_boottime.c | 32 3

[U-Boot] [PATCH 2/7] efi_loader: correct EFI_RUNTIME_SERVICES_SIGNATURE

2018-06-27 Thread Heinrich Schuchardt
The value for EFI_RUNTIME_SERVICES_SIGNATURE does not match the UEFI spec 2.7. Reported-by: Takahiro Akashi Signed-off-by: Heinrich Schuchardt --- include/efi_api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/efi_api.h b/include/efi_api.h index

[U-Boot] [PATCH 0/7] correct EFI table headers

2018-06-27 Thread Heinrich Schuchardt
This patch series fixes several errors in the the headers of the system table, the boot services table, and the runtime services table. The array used for the configuration tables is allocated at runtime. A unit test for InstallConfigurationTable() is provided. The patch series depends on Bin's

[U-Boot] [PATCH 1/7] efi_loader: specify UEFI spec revision

2018-06-27 Thread Heinrich Schuchardt
Both in the boot and the runtime services tables we have to specify the UEFI spec revision. The same value is already used for the system table. So let's use a common constant. In the boot services table we have to provide the header signature. Signed-off-by: Heinrich Schuchardt ---

[U-Boot] [PATCH 1/1] efi_loader: correct headersize EFI tables

2018-06-27 Thread Heinrich Schuchardt
The headersize field has to be set to the size of the whole table including the header. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 4 ++-- lib/efi_loader/efi_runtime.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git

Re: [U-Boot] [linux-sunxi] [PATCH v10 22/35] usb: sunxi: Switch to use generic-phy

2018-06-27 Thread Jagan Teki
On Thu, Jun 28, 2018 at 4:39 AM, Adam Sampson wrote: > Hi Jagan and co, > > On Mon, May 28, 2018 at 04:48:33PM +0530, Jagan Teki wrote: >> Allwinner USB PHY handling can be done through driver-model >> generic-phy so add the generic-phy ops to relevant places on host and >> musb sunxi driver and

Re: [U-Boot] [linux-sunxi] [PATCH v10 22/35] usb: sunxi: Switch to use generic-phy

2018-06-27 Thread Vasily Khoruzhick
On Wed, Jun 27, 2018 at 4:09 PM, Adam Sampson wrote: > Hi Jagan and co, Hi Adam, > On Mon, May 28, 2018 at 04:48:33PM +0530, Jagan Teki wrote: >> Allwinner USB PHY handling can be done through driver-model >> generic-phy so add the generic-phy ops to relevant places on host and >> musb sunxi

Re: [U-Boot] [PATCH] arm, imx6: add alternative PAD_CTL_DSE constants

2018-06-27 Thread Fabio Estevam
Hi Mark, On Wed, Jun 27, 2018 at 7:21 AM, Mark Jonas wrote: > Not all i.MX6 pads use the same drive strength table. So far only the > 240 Ohm to 34 Ohm table was available. Because the constants used have > speaking names it can be confusing to use e.g. PAD_CTL_DSE_48ohm when > according to the

[U-Boot] [PATCH 2/2] dm: sunxi: Move Cubietruck to use DM for MMC, SATA

2018-06-27 Thread Adam Sampson
Move to the driver model for MMC and SATA, which means it implicitly uses CONFIG_BLK too. Signed-off-by: Adam Sampson --- configs/Cubietruck_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/Cubietruck_defconfig b/configs/Cubietruck_defconfig index 601eb3ca0c..1b73bd7cc7

[U-Boot] [PATCH 1/2] dm: sunxi: Move Linksprite_pcDuino3_Nano to use DM for MMC, SATA

2018-06-27 Thread Adam Sampson
Move to the driver model for MMC and SATA, which means it implicitly uses CONFIG_BLK too. Signed-off-by: Adam Sampson --- configs/Linksprite_pcDuino3_Nano_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/Linksprite_pcDuino3_Nano_defconfig

Re: [U-Boot] [linux-sunxi] [PATCH v10 22/35] usb: sunxi: Switch to use generic-phy

2018-06-27 Thread Adam Sampson
Hi Jagan and co, On Mon, May 28, 2018 at 04:48:33PM +0530, Jagan Teki wrote: > Allwinner USB PHY handling can be done through driver-model > generic-phy so add the generic-phy ops to relevant places on host and > musb sunxi driver and enable them in respective SOC's. This patch series breaks USB

Re: [U-Boot] [PATCH 1/1] dwc2 USB controller hangs with lan78xx

2018-06-27 Thread Alexander Graf
On 27.06.18 19:07, Tom Rini wrote: > On Wed, Jun 27, 2018 at 06:45:39PM +0200, Alexander Graf wrote: >> On 06/26/2018 08:57 PM, andrew thomas wrote: >>> On 06/26/2018 05:34 AM, Alexander Graf wrote: On 06/21/2018 10:37 AM, Peter Robinson wrote: > On Mon, Jun 18, 2018 at 7:56 PM, Andrew

Re: [U-Boot] Support of device-tree for PowerPC platform: Query

2018-06-27 Thread Simon Glass
Hi, On 27 June 2018 at 08:06, York Sun wrote: > > +Simon > > On 06/27/2018 01:05 AM, Prabhakar Kushwaha wrote: > > Hi All, > > > > We are trying to add support of device-tree for PowerPC platforms. As per > > our analysis following 2 options can be used. > > > > a) CONFIG_OF_SEPARATE > > b)

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

2018-06-27 Thread Tom Rini
On Mon, Jun 25, 2018 at 02:02:22PM +0200, Mario Six wrote: > 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

Re: [U-Boot] [PATCH 0/2] dm: Complete CONFIG_BLK migration

2018-06-27 Thread Tom Rini
On Sat, Jun 23, 2018 at 07:59:30AM -0600, Simon Glass wrote: > The time has come to migrate all boards to use CONFIG_BLK. This series > is just a test to see what boards would have to be removed if we required > CONFIG_BLK, as we plan to after the next release. > > This should help maintainers

Re: [U-Boot] [RFC PATCH 08/20] mtd: nand: Add core infrastructure to deal with NAND devices

2018-06-27 Thread Tom Rini
On Wed, Jun 27, 2018 at 02:48:23PM +0200, Miquel Raynal wrote: > Hi Jagan, > > On Wed, 27 Jun 2018 16:38:26 +0530, Jagan Teki > wrote: > > > On Wed, Jun 6, 2018 at 9:00 PM, Miquel Raynal > > wrote: > > > From: Boris Brezillon > > > > > > Add an intermediate layer to abstract NAND device

Re: [U-Boot] [PATCH v3 1/3] drivers: Add board uclass

2018-06-27 Thread Simon Glass
Hi Mario, On 27 June 2018 at 00:03, Mario Six wrote: > > Since there is no canonical "board device" that can be used in board > files, it is difficult to use DM function for board initialization in > these cases. > > Hence, add a uclass that implements a simple "board device", which can > hold

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

2018-06-27 Thread Simon Glass
Hi Tien Fong, On 27 June 2018 at 01:32, Chee, Tien Fong wrote: > On Mon, 2018-06-25 at 21:58 -0600, Simon Glass wrote: >> Hi, >> >> On 25 June 2018 at 07:28, wrote: >> > >> > From: Tien Fong Chee >> > >> > Add a document to describe file system firmware loader binding >> > information. >> >

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

2018-06-27 Thread Simon Glass
Hi Tien Fong, On 27 June 2018 at 01:41, Chee, Tien Fong wrote: > On Mon, 2018-06-25 at 21:58 -0600, Simon Glass wrote: >> 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

[U-Boot] [PATCH v5 4/6] net: sun8i-emac: support R40 GMAC

2018-06-27 Thread Lothar Felten
Add support for the GMAC found in the Allwinner R40/V40 SoC. The R40 GMAC interface is not controlled by the syscon register but has a separate configuration register in the CCU. The clock gate and reset bits are in a different register compared to the other SoCs supported by this driver. The

[U-Boot] [PATCH v5 6/6] configs: Bananapi_M2_Ultra: enable gigabit ethernet

2018-06-27 Thread Lothar Felten
Enable the gigabit ethernet for the Bananapi M2 Ultra board. Tested on BananaPi M2 Berry (R40), custom board (V40) Reviewed-by: Joe Hershberger Signed-off-by: Lothar Felten --- Changelog: new in v2 v2 -> v3 remove unused CONFIG_SUN7I_GMAC v3 -> v4 include device tree node, enable ALDO2 v4

[U-Boot] [PATCH v5 5/6] sunxi: R40: add gigabit ethernet devicetree node

2018-06-27 Thread Lothar Felten
Add a device tree node for the Allwinner R40/V40 GMAC gigabit ethernet interface. The R40 SoC does not use the syscon register for GMAC settings. The gigabit ethernet interface can only be routed to a fixed set of pins. Updated to match the Linux kernel's device tree. Signed-off-by: Lothar Felten

[U-Boot] [PATCH v5 3/6] net: sun8i-emac: set mux and clock by driver data

2018-06-27 Thread Lothar Felten
Use driver data->variant information to select device specific pin mux and phy clock settings. Suggested by Jagan Teki Signed-off-by: Lothar Felten --- Changelog: new in v3 v3 -> v4 use driver data to distinguish between variants v4 -> v5 none --- drivers/net/sun8i_emac.c | 35

[U-Boot] [PATCH v5 2/6] net: sun8i-emac: fix printing NULL character

2018-06-27 Thread Lothar Felten
If the variant is not set and therefore NULL, do not attempt to print the variant. Signed-off-by: Lothar Felten Acked-by: Maxime Ripard Acked-by: Joe Hershberger --- Changelog: new in v4 v4->v5 none --- drivers/net/sun8i_emac.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[U-Boot] [PATCH v5 1/6] sunxi: R40: add gigabit ethernet clocks

2018-06-27 Thread Lothar Felten
Add clock control entries for the gigabit interface of the Allwinner R40/V40 CPU Acked-by: Maxime Ripard Reviewed-by: Joe Hershberger Signed-off-by: Lothar Felten --- Changelog: new in v2 v2->v3->4->v5: none --- arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 10 +- 1 file

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

2018-06-27 Thread Tom Rini
On Mon, Jun 25, 2018 at 09:58:51PM -0600, Simon Glass wrote: > 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

Re: [U-Boot] [PATCH] spi: omap3: fix claim/release bus within DM

2018-06-27 Thread Hannes Schmelzer
On 06/27/2018 01:53 PM, Jagan Teki wrote: On Tue, Jun 26, 2018 at 7:38 PM, Hannes Schmelzer wrote: The claim/release bus function must not reset the whole SPI core because settings regarding wordlen, clock-frequency and so on made by set_wordlen, set_mode, set_speed get lost with this action.

Re: [U-Boot] [U-Boot,v8,15/30] vsprintf: Handle NULL with %pU

2018-06-27 Thread Heinrich Schuchardt
On 06/18/2018 04:08 PM, Simon Glass wrote: > At present a NULL pointer passed to printf for a %pU argument will cause > U-Boot to access memory at 0. Fix this by adding a check, and print > "(null)" instead. > > Signed-off-by: Simon Glass > Reviewed-by: Alexander Graf > --- > > Changes in v8:

[U-Boot] [PATCH 1/1] efi_loader: correct headersize of runtime services table

2018-06-27 Thread Heinrich Schuchardt
The headersize field has to be set to the size of the whole table including the header. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_runtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/efi_loader/efi_runtime.c b/lib/efi_loader/efi_runtime.c index

[U-Boot] [PATCH 1/1] efi_loader: specify UEFI spec revision

2018-06-27 Thread Heinrich Schuchardt
Both in the boot and the runtime services tables we have to specify the UEFI spec revision. The same value is already used for the system table. So let's use a common constant. In the boot services table we have to provide the header signature. Signed-off-by: Heinrich Schuchardt ---

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

2018-06-27 Thread Andre Przywara
Hi, On 27/06/18 11:49, Icenowy Zheng wrote: > 在 2018-06-27三的 10:46 +0100,Andre Przywara写道: >> Hi, >> >> On 25/06/18 11:37, Icenowy Zheng wrote: >>> 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 >>>

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

2018-06-27 Thread Tom Rini
On Sun, Jun 24, 2018 at 08:42:28PM -0600, Simon Glass wrote: > Hi Tom, > > A few patman enhancements. > > > 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

Re: [U-Boot] [PATCH 1/1] dwc2 USB controller hangs with lan78xx

2018-06-27 Thread Tom Rini
On Wed, Jun 27, 2018 at 06:45:39PM +0200, Alexander Graf wrote: > On 06/26/2018 08:57 PM, andrew thomas wrote: > >On 06/26/2018 05:34 AM, Alexander Graf wrote: > >>On 06/21/2018 10:37 AM, Peter Robinson wrote: > >>>On Mon, Jun 18, 2018 at 7:56 PM, Andrew Thomas > >>> wrote: > This bug is the

Re: [U-Boot] [PATCH v2 2/6] efi_loader: Increase number of configuration tables to 16

2018-06-27 Thread Heinrich Schuchardt
On 06/27/2018 12:16 PM, Bin Meng wrote: > At present the number of configuration tables is set to 2. By > looking at which tables the Linux EFI stub or iPXE can process, > it looks 16 is a reasonable number. > > Signed-off-by: Bin Meng > > --- > > Changes in v2: > - new patch "increase number

Re: [U-Boot] [PATCH v2 4/6] efi_loader: helloworld: Output ACPI configuration table

2018-06-27 Thread Heinrich Schuchardt
On 06/27/2018 12:16 PM, Bin Meng wrote: > Output ACPI configuration table if it exists. > > Signed-off-by: Bin Meng > > --- > > Changes in v2: > - new patch "output ACPI configuration table" > > lib/efi_loader/helloworld.c | 4 > 1 file changed, 4 insertions(+) > > diff --git

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

2018-06-27 Thread Heinrich Schuchardt
On 06/27/2018 12:16 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 > Reviewed-by: Simon Glass > --- > > Changes in v2: None > > cmd/bootefi.c | 5 + >

Re: [U-Boot] [PATCH 1/1] dwc2 USB controller hangs with lan78xx

2018-06-27 Thread Alexander Graf
On 06/26/2018 08:57 PM, andrew thomas wrote: On 06/26/2018 05:34 AM, Alexander Graf wrote: On 06/21/2018 10:37 AM, Peter Robinson wrote: On Mon, Jun 18, 2018 at 7:56 PM, Andrew Thomas wrote: This bug is the combination of dwc2 USB controller and lan78xx USB ethernet controller, which is the

Re: [U-Boot] [U-Boot, v4, 2/2] test/py: add test for whitelist of variables while importing environment

2018-06-27 Thread Stephen Warren
On 06/27/2018 09:23 AM, Tom Rini wrote: On Wed, Jun 27, 2018 at 09:52:50AM +0200, Quentin Schulz wrote: Hi Tom, On Tue, Jun 26, 2018 at 10:44:59AM -0400, Tom Rini wrote: On Tue, Jun 26, 2018 at 02:41:40PM +0200, Quentin Schulz wrote: Hi all, On Wed, Jun 13, 2018 at 01:02:06PM -0600, Stephen

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

2018-06-27 Thread Andy Shevchenko
On Wed, 2018-06-27 at 08:41 -0700, Ivan Gorinov wrote: > EFI image handle and system table are not used in _relocate(). > Reviewed-by: Andy Shevchenko > v3: > Rebased on u-boot/master > > v2: > Separated the changes in efi_main() arguments and calling > convention. > > Ivan Gorinov (3):

Re: [U-Boot] [PATCH] spi_flash: add a bunch of winbond flashes to id-table

2018-06-27 Thread Jagan Teki
On Wed, Jun 27, 2018 at 6:01 PM, Hannes Schmelzer wrote: > > On 06/27/2018 01:57 PM, Jagan Teki wrote: >> >> On Wed, Jun 27, 2018 at 2:44 AM, Hannes Schmelzer wrote: >>> >>> This commit adds the following flashes to the id-table >>> >>> - W25Q16JV >>> - W25Q32JV >>> - W25Q64JV >>> - W25Q128JV

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

2018-06-27 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 v3 1/3] x86: Remove unused _relocate arguments

2018-06-27 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

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

2018-06-27 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(+),

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

2018-06-27 Thread Ivan Gorinov
EFI image handle and system table are not used in _relocate(). v3: Rebased on u-boot/master 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

Re: [U-Boot] [PATCH] imx: imx7d-sdb: Add DM QSPI support

2018-06-27 Thread Jagan Teki
On Wed, Jun 27, 2018 at 6:53 PM, Ye Li wrote: > On 6/27/2018 6:33 PM, Jagan Teki wrote: >> On Wed, Jun 27, 2018 at 12:19 PM, Ye Li wrote: >>> On iMX7D SabreSD board, the QSPI has pins conflict with EPDC (default). >>> To use QSPI, users have to rework the board (de-populate R388-R391, >>>

Re: [U-Boot] [PATCH 1/2] imx: imx6sx-sdb: Enable DM QSPI driver

2018-06-27 Thread Jagan Teki
On Wed, Jun 27, 2018 at 7:21 PM, Fabio Estevam wrote: > Hi Jagan, > > On Wed, Jun 27, 2018 at 7:27 AM, Jagan Teki > wrote: > >> We still not sync with Linux on this area, better to append or add >> -u-boot.dtsi for this change. will remove once synced. > > This is not good. > > Why U-Boot needs

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

2018-06-27 Thread Jagan Teki
On Wed, Jun 27, 2018 at 8:50 PM, Tom Rini wrote: > On Wed, Jun 27, 2018 at 12:17:56PM +0530, Jagan Teki wrote: >> On Tue, Jun 26, 2018 at 3:05 AM, Tom Rini wrote: >> > On Tue, Jun 26, 2018 at 12:19:03AM +0530, Jagan Teki wrote: >> > >> >> Hi Tom, >> >> >> >> Please pull this PR. >> >> >> >>

Re: [U-Boot] [U-Boot, v4, 2/2] test/py: add test for whitelist of variables while importing environment

2018-06-27 Thread Tom Rini
On Wed, Jun 27, 2018 at 09:52:50AM +0200, Quentin Schulz wrote: > Hi Tom, > > On Tue, Jun 26, 2018 at 10:44:59AM -0400, Tom Rini wrote: > > On Tue, Jun 26, 2018 at 02:41:40PM +0200, Quentin Schulz wrote: > > > Hi all, > > > > > > On Wed, Jun 13, 2018 at 01:02:06PM -0600, Stephen Warren wrote: >

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

2018-06-27 Thread Tom Rini
On Wed, Jun 27, 2018 at 12:17:56PM +0530, Jagan Teki wrote: > On Tue, Jun 26, 2018 at 3:05 AM, Tom Rini wrote: > > 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

[U-Boot] [PATCH u-boot] boards: amlogic: Fix boards README

2018-06-27 Thread Neil Armstrong
Fix typos and update the supported devices for all Amlogic boards. Signed-off-by: Neil Armstrong --- arch/arm/mach-meson/Kconfig | 2 +- board/amlogic/khadas-vim/README | 8 +++- board/amlogic/libretech-cc/README | 12 +--- board/amlogic/odroid-c2/README| 5 +

Re: [U-Boot] Support of device-tree for PowerPC platform: Query

2018-06-27 Thread York Sun
+Simon On 06/27/2018 01:05 AM, Prabhakar Kushwaha wrote: > Hi All, > > We are trying to add support of device-tree for PowerPC platforms. As per our > analysis following 2 options can be used. > > a) CONFIG_OF_SEPARATE > b) CONFIG_OF_EMBED > > In PowerPC platforms, reset_vector is always

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

2018-06-27 Thread Stefano Babic
Hi Tom, please pull from u-boot-imx, thanks ! As discussed in previous thread, I have merged some NAND patches, too (see Stefan's and Jorg's patches). -- The following changes since commit a715415bb5948c84cc44c601b193188990f7238b: Merge branch 'master' of git://git.denx.de/u-boot-usb

Re: [U-Boot] [PATCH v5] xilinx: zynq: Add support to secure images

2018-06-27 Thread Michal Simek
On 27.6.2018 16:33, Michal Simek wrote: > On 26.6.2018 11:32, Siva Durga Prasad Paladugu wrote: >> This patch basically adds two new commands for loadig secure >> images. >> 1. zynq rsa adds support to load secure image which can be both >>authenticated or encrypted or both authenticated and

Re: [U-Boot] [PATCH v5] xilinx: zynq: Add support to secure images

2018-06-27 Thread Michal Simek
On 26.6.2018 11:32, Siva Durga Prasad Paladugu wrote: > This patch basically adds two new commands for loadig secure > images. > 1. zynq rsa adds support to load secure image which can be both >authenticated or encrypted or both authenticated and encrypted >image in xilinx

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

2018-06-27 Thread Icenowy Zheng
于 2018年6月27日 GMT+08:00 下午10:04:53, Andre Przywara 写到: >Hi, > >On 25/06/18 11:37, Icenowy Zheng wrote: >> Allwinner H6 is a new SoC from Allwinner features USB3 and PCIe >> interfaces. >> >> This patch adds support for it. > >Can you please mention in the commit message or subject line that

Re: [U-Boot] [PATCH v3 7/7] cmd: Add bind/unbind commands to bind a device to a driver from the command line

2018-06-27 Thread Michal Simek
On 22.6.2018 14:25, Jean-Jacques Hiblot wrote: > In some cases it can be useful to be able to bind a device to a driver from > the command line. > The obvious example is for versatile devices such as USB gadget. > Another use case is when the devices are not yet ready at startup and > require some

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

2018-06-27 Thread Andre Przywara
Hi, On 25/06/18 11:37, Icenowy Zheng wrote: > Allwinner H6 is a new SoC from Allwinner features USB3 and PCIe > interfaces. > > This patch adds support for it. Can you please mention in the commit message or subject line that this includes the SoC .dtsi? Or maybe even split this out into a

Re: [U-Boot] [PATCH 1/2] imx: imx6sx-sdb: Enable DM QSPI driver

2018-06-27 Thread Fabio Estevam
Hi Jagan, On Wed, Jun 27, 2018 at 7:27 AM, Jagan Teki wrote: > We still not sync with Linux on this area, better to append or add > -u-boot.dtsi for this change. will remove once synced. This is not good. Why U-Boot needs its own spi flash bindings? Why can't it use the same bindings used in

Re: [U-Boot] [PATCH 1/2] imx: imx6sx-sdb: Enable DM QSPI driver

2018-06-27 Thread Ye Li
On 6/27/2018 6:28 PM, Jagan Teki wrote: > On Wed, Jun 27, 2018 at 3:29 PM, Fabio Estevam wrote: >> Hi Ye Li, >> >> On Wed, Jun 27, 2018 at 3:48 AM, Ye Li wrote: >>> To support DM QSPI driver >>> - Add spi0 and spi1 alias for qspi1 and qspi2. >>> - Modify n25q256a@0 and n25q256a@1 compatible

[U-Boot] [PATCH 1/2] git-mailrc: Replace tabs with spaces in alias entries

2018-06-27 Thread Adam Sampson
patman's _ReadAliasFile only splits on spaces, not tabs, so the entries for dinh and maxime weren't being recognised as valid. I'll fix patman in a separate patch, but this makes all the entries consistent. Signed-off-by: Adam Sampson --- doc/git-mailrc | 4 ++-- 1 file changed, 2

[U-Boot] [PATCH 2/2] patman: Split alias entries on arbitrary whitespace

2018-06-27 Thread Adam Sampson
Previously the first three words in a git-mailrc alias entry could only be separated by spaces. git-send-email and Mutt both allow arbitrary whitespace here. Signed-off-by: Adam Sampson --- tools/patman/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [U-Boot] [PATCH] imx: imx7d-sdb: Add DM QSPI support

2018-06-27 Thread Ye Li
On 6/27/2018 6:33 PM, Jagan Teki wrote: > On Wed, Jun 27, 2018 at 12:19 PM, Ye Li wrote: >> On iMX7D SabreSD board, the QSPI has pins conflict with EPDC (default). >> To use QSPI, users have to rework the board (de-populate R388-R391, R396-R399 >> populate R392-R395, R299, R300). So we add new

Re: [U-Boot] [PATCH 0/2] usb_kbd with DM enabled

2018-06-27 Thread Michal Simek
Hi, > Last but not least I see with kermit double echo when usbkbd is used > which is quite weird. > Similar problem was reported here. > https://lists.denx.de/pipermail/u-boot/2014-November/196713.html > Do you know what's the reason for that echo? > (usb_kbd_getc() is really returning only one

[U-Boot] [PATCH 2/2] usb_kdb: Get stdio_dev directly from sdev pointer

2018-06-27 Thread Michal Simek
Driver supports only one instance of usb keyboard. Remove the first dependency on generic usbkbd DEVNAME. Signed-off-by: Michal Simek --- common/usb_kbd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/usb_kbd.c b/common/usb_kbd.c index

[U-Boot] [PATCH 1/2] usb_kbd: Add support for watchdog

2018-06-27 Thread Michal Simek
There is need to service watchdog in while loop or system will be restarted when idlying. Signed-off-by: Michal Simek --- common/usb_kbd.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/usb_kbd.c b/common/usb_kbd.c index 4c394d5613d1..20255dcf951f 100644 ---

[U-Boot] [PATCH 0/2] usb_kbd with DM enabled

2018-06-27 Thread Michal Simek
Hi, I am playing with usb keyboard support with USB_DM on and I see some issues which I want to share with you. First of all there is missing support for multiple usb keyboards because all are registered as usbkbd. This can be changed by - strcpy(usb_kbd_dev.name, DEVNAME); +

Re: [U-Boot] [PATCH v2] rsa: Support LibreSSL in rsa-sign.c

2018-06-27 Thread Jonathan Gray
On Wed, Jun 27, 2018 at 12:33:05PM +0200, parazyd wrote: > At present rsa-sign.c can not be compiled with LibreSSL older than > 2.7.0. This commit adjusts the guards in the rsa-sign.c to check for > LiBRESSL_VERSION_NUMBER where necessary. These tests are wrong, an undefined cpp macro will be 0

Re: [U-Boot] [RFC PATCH 08/20] mtd: nand: Add core infrastructure to deal with NAND devices

2018-06-27 Thread Miquel Raynal
Hi Jagan, On Wed, 27 Jun 2018 16:38:26 +0530, Jagan Teki wrote: > On Wed, Jun 6, 2018 at 9:00 PM, Miquel Raynal > wrote: > > From: Boris Brezillon > > > > Add an intermediate layer to abstract NAND device interface so that > > some logic can be shared between SPI NANDs, parallel/raw NANDs, >

Re: [U-Boot] [PATCH] spi_flash: add a bunch of winbond flashes to id-table

2018-06-27 Thread Hannes Schmelzer
On 06/27/2018 01:57 PM, Jagan Teki wrote: On Wed, Jun 27, 2018 at 2:44 AM, Hannes Schmelzer wrote: This commit adds the following flashes to the id-table - W25Q16JV - W25Q32JV - W25Q64JV - W25Q128JV - W25Q256JV Just to curious, have you tested all these? hi jagan, yes they are tested

[U-Boot] [PATCH] ARC: AXS10x: add tool and make target to generate bsp

2018-06-27 Thread Eugeniy Paltsev
AXS10x boards have preloader that reads SPI flash pages and searches special image header to fetch and load binary. Add tool, make target (bsp-generate) to generate update script and u-boot binary image with header for preloader. Also add script to default environment to apply updates.

[U-Boot] [UBOOT PATCH] env: Added support to save env to spi through Kconfig

2018-06-27 Thread Vipul Kumar
This patch added support to enable CONFIG_ENV_SIZE, CONFIG_ENV_OFFSET and CONFIG_ENV_SECT_SIZE through Kconfig for Zynq and Zynqmp. Signed-off-by: Vipul Kumar --- env/Kconfig | 27 +++ include/configs/xilinx_zynqmp.h | 3 ---

Re: [U-Boot] [PATCH v1 9/9] arm: dts: imx7: colibri: add raw NAND support

2018-06-27 Thread Han Xu
On 04/20/2018 10:53 AM, Stefan Agner wrote: > From: Stefan Agner > > Signed-off-by: Stefan Agner > --- > > arch/arm/dts/imx7-colibri.dts | 28 > 1 file changed, 28 insertions(+) > > diff --git a/arch/arm/dts/imx7-colibri.dts b/arch/arm/dts/imx7-colibri.dts >

Re: [U-Boot] [PATCH] spi_flash: add a bunch of winbond flashes to id-table

2018-06-27 Thread Jagan Teki
On Wed, Jun 27, 2018 at 2:44 AM, Hannes Schmelzer wrote: > This commit adds the following flashes to the id-table > > - W25Q16JV > - W25Q32JV > - W25Q64JV > - W25Q128JV > - W25Q256JV Just to curious, have you tested all these? ___ U-Boot mailing list

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

2018-06-27 Thread Siva Durga Prasad Paladugu
This patch adds qspi driver support for all ZynqMP ZCU102 boards. Signed-off-by: Siva Durga Prasad Paladugu Acked-by: Michal Simek --- Changes for v6: - None Changes for v5: - None Changes for v4: - None Changes for v3: - Changed as per latest changes in 1/2 Changes for v2: - Rebased on top

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

2018-06-27 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 v6: - Removed spi_flash.h inclusion and other unused macros - Fixed coding style comments - Removed tx_rx_mode in

  1   2   >