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

2018-06-28 Thread Stefan Agner
On 26.06.2018 23:24, Han Xu wrote: > 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-colibr

[U-Boot] [UBOOT PATCH v4 4/4] spi: xilinx_spi: convert to livetree

2018-06-28 Thread Vipul Kumar
Update the xilinx spi driver to support a live tree. Signed-off-by: Vipul Kumar --- drivers/spi/xilinx_spi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/spi/xilinx_spi.c b/drivers/spi/xilinx_spi.c index f66ea15..59ac851 100644 --- a/drivers/spi/xilinx_spi.c +

[U-Boot] [UBOOT PATCH v4 1/4] spi: xilinx: Read reg base address from DTS file

2018-06-28 Thread Vipul Kumar
From: Michal Simek This patch added support to read register base address from DTS file. Signed-off-by: Vipul Kumar --- Changes in v4: - No change --- drivers/spi/xilinx_spi.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/spi/xilinx_spi.c b/drivers/spi/xilin

[U-Boot] [UBOOT PATCH v4 0/4] spi:xilinx_spi: Modify xilinx spi driver

2018-06-28 Thread Vipul Kumar
This series of patches do the following: - This patch added support to get reg base address from DTS file - Added rxfifo() and txfifo() functions to add the modularity - Added support to read JEDEC-id twice at the boot time - Added live-tree support Changes in v2: - Split single patch into the ser

[U-Boot] [UBOOT PATCH v4 2/4] spi: xilinx_spi: Modify transfer logic xilinx_spi_xfer() function

2018-06-28 Thread Vipul Kumar
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 dts. Signed-off-by: Vipul Kumar Signed-off-by: Siva Durga P

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

2018-06-28 Thread Vipul Kumar
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. This patch added support to read JEDEC id in xilinx_spi_xfer (). Signed-off-by: Vipul

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

2018-06-28 Thread Bin Meng
Hi Ivan, On Wed, Jun 27, 2018 at 11:41 PM, Ivan Gorinov wrote: > 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 _relo

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

2018-06-28 Thread Andy Shevchenko
On Thu, Jun 28, 2018 at 6:38 AM, Bin Meng wrote: > 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. > { > board_final_cleanup(); > + struct acpi

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

2018-06-28 Thread Bin Meng
Hi Andy, On Thu, Jun 28, 2018 at 3:57 PM, Andy Shevchenko wrote: > On Thu, Jun 28, 2018 at 6:38 AM, Bin Meng wrote: >> 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 nam

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

2018-06-28 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: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 Ch

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

2018-06-28 Thread Mark Jonas
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 reference manual 52 Ohm is the correct value. This patch adds the 260 O

Re: [U-Boot] [PATCH 2/2] configs: kirkwood: Move RTC_MV to DM and Kconfig

2018-06-28 Thread Chris Packham
On Wed, Jun 27, 2018 at 10:47 PM Chris Packham wrote: > > Now that there is DM support in the RTC_MV driver update board configs > to use it. > > Signed-off-by: Chris Packham > --- > I haven't removed this from the whitelist because the nsa310s board > lacks device-tree support. Once that board i

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

2018-06-28 Thread Stefano Babic
Hi Mark, On 28/06/2018 10:07, 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 reference manu

Re: [U-Boot] build fail due to dependence error

2018-06-28 Thread Kever Yang
Hi Simon,         Do you have any idea about this error? CC lib/asm-offsets.s CC arch/arm/lib/asm-offsets.s fixdep: error opening config file: arch/arm/include/asm/arch/hardware.h: No such file or directory Kbuild:64: recipe for target 'arch/arm/lib/asm-offsets.s' failed make[1]: **

Re: [U-Boot] build fail due to dependence error

2018-06-28 Thread Dr. Philipp Tomsich
Kever, is the link for ‘asm’ set up correctly? Thanks, Philipp. > On 28 Jun 2018, at 10:38, Kever Yang wrote: > > Hi Simon, > > Do you have any idea about this error? > > CC lib/asm-offsets.s > CC arch/arm/lib/asm-offsets.s > fixdep: error opening config file: arch/arm/in

[U-Boot] [PATCH 1/2] microblaze: Use default implementation from include/linux/io.h

2018-06-28 Thread Michal Simek
There is no reason not to use default ioremap/iounmap io functions. The patch remove Microblaze macros. Signed-off-by: Michal Simek --- arch/microblaze/include/asm/io.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/microblaze/include/asm/io.h b/arch/microblaze/include/asm/io.h inde

[U-Boot] [PATCH 2/2] microblaze: Guard do_reset by CONFIG_SYSRESET

2018-06-28 Thread Michal Simek
sysreset uclass have own do_reset function which should be used instead of board/platform specific. Signed-off-by: Michal Simek --- board/xilinx/microblaze-generic/microblaze-generic.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/xilinx/microblaze-generic/microblaze-generic.c b/

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

2018-06-28 Thread Heinrich Schuchardt
On 06/28/2018 08:32 AM, Bin Meng wrote: Hi Heinrich, On Thu, Jun 28, 2018 at 10:20 AM, Heinrich Schuchardt wrote: 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

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

2018-06-28 Thread Chee, Tien Fong
On Thu, 2018-06-28 at 01:04 -0700, Chee, Tien Fong wrote: > On Wed, 2018-06-27 at 14:03 -0700, Simon Glass wrote: > > > > 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: > > > > > > > > > >

[U-Boot] [PATCH] arm64: zcu100: Enable USB host ether and ASIX via defconfig

2018-06-28 Thread Michal Simek
There is no reason to keep these configs in platform config file. Signed-off-by: Michal Simek --- configs/xilinx_zynqmp_zcu100_revC_defconfig | 2 ++ include/configs/xilinx_zynqmp_zcu100.h | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/configs/xilinx_zynqmp_zcu100_

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

2018-06-28 Thread Michal Simek
On 27.6.2018 14:13, Vipul Kumar wrote: > 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/config

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

2018-06-28 Thread Maxime Ripard
On Wed, Jun 27, 2018 at 10:36:08PM +0200, Lothar Felten wrote: > Use driver data->variant information to select device specific > pin mux and phy clock settings. > > Suggested by Jagan Teki > > Signed-off-by: Lothar Felten Acked-by: Maxime Ripard Maxime -- Maxime Ripard, Bootlin (formerly F

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

2018-06-28 Thread Maxime Ripard
On Wed, Jun 27, 2018 at 10:36:09PM +0200, Lothar Felten wrote: > 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 differe

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

2018-06-28 Thread Maxime Ripard
On Wed, Jun 27, 2018 at 10:36:11PM +0200, Lothar Felten wrote: > 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 re

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

2018-06-28 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 v2 2/7] efi_loader: correct EFI_RUNTIME_SERVICES_SIGNATURE

2018-06-28 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 Reviewed-by: Bin Meng --- v2 no change --- include/efi_api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/efi_ap

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

2018-06-28 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 Reviewed-by: Bin Meng --- v2 no change --- lib/efi_loader/efi_boottime.c | 4 ++-- lib/efi_loader/efi_runtime.c | 2 +- 2 files changed, 3 insertions(+), 3 deletio

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

2018-06-28 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 Reviewed-by: Bin

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

2018-06-28 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 Reviewed-by: Bin Meng --- v2 No need to prefix VERSION, PA

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

2018-06-28 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 wi

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

2018-06-28 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 Reviewed-by: Bin Meng --- v2 no change --- cmd/bootefi.c | 5 + include/efi_loader.h | 2 ++ lib/efi_loader/efi_boot

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

2018-06-28 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 --- v2 no change --- lib/efi_selftest/Makefile| 1 + lib/efi_selftest/efi_selfte

[U-Boot] Writes to FAT broken by bcm2835 sdhost driver

2018-06-28 Thread Anton Gerasimov
[resending, forgot to subscribe from this address] Hi, For some reasons I need to save environment on RaspberryPi 3 and it worked well for me in older versions of u-boot, but stopped working in newer ones. Using bisect I figured out that the commits responsible for that were c8a73a26d6dd9b7d489e6

[U-Boot] Writes to FAT broken by bcm2835 sdhost driver

2018-06-28 Thread Anton Gerasimov
Hi, For some reasons I need to save environment on RaspberryPi 3 and it worked well for me in older versions of u-boot, but stopped working in newer ones. Using bisect I figured out that the commits responsible for that were c8a73a26d6dd9b7d489e66529fe1412425d8f2d1 and caf2233b281c03e3e359061a3dfa

[U-Boot] [PATCH 1/7] armv8: fsl-layerscape: add configs for missing register blocks addresses

2018-06-28 Thread Laurentiu Tudor
Add config defines with the sata, edma and qdma register block base addresses. Also white list the newly introduced defines. Signed-off-by: Laurentiu Tudor --- arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h | 3 +++ scripts/config_whitelist.txt | 3 +++ 2 files

[U-Boot] [PATCH 0/7] LS1046A SMMU enabling patches

2018-06-28 Thread Laurentiu Tudor
This patch series adds the required devices setup and device tree fixups for SMMU enablement on LS1046A chips. The approach taken tries to mimic the implementation of PAMU LIODN setup on booke powerpc. First 4 patches contain some fixes and add some missing bits & pieces. Last 3 patches add the ac

[U-Boot] [PATCH 5/7] armv8: ls1046a: initial icid setup support

2018-06-28 Thread Laurentiu Tudor
Add infrastructure for ICID setup and device tree fixup on ARM platforms. This include basic ICID setup for several devices. Signed-off-by: Laurentiu Tudor --- arch/arm/cpu/armv8/fsl-layerscape/Makefile| 1 + arch/arm/cpu/armv8/fsl-layerscape/icid.c | 111 ++ .../arm/c

[U-Boot] [PATCH 2/7] armv8: ls1046a: advertise QMan v3 in configuration

2018-06-28 Thread Laurentiu Tudor
The QMan IP block in this SoC is version 3.2 so advertise this in the SoC configuration header. Signed-off-by: Laurentiu Tudor --- arch/arm/include/asm/arch-fsl-layerscape/config.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/include/asm/arch-fsl-layerscape/config.h b/arch/arm/i

[U-Boot] [PATCH 3/7] misc: fsl_portals: setup QMAN_BAR{E} also on ARM platforms

2018-06-28 Thread Laurentiu Tudor
QMAN_BAR{E} register setup was disabled on ARM platforms, however the register does need to be set. Add code that sets it up on ARMs. Signed-off-by: Laurentiu Tudor --- drivers/misc/fsl_portals.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/misc/fsl_portals.c

[U-Boot] [PATCH 4/7] armv8: fsl-layerscape: add missing debug stream ID

2018-06-28 Thread Laurentiu Tudor
Add a define with a value for the missing debug stream ID. Signed-off-by: Laurentiu Tudor --- arch/arm/include/asm/arch-fsl-layerscape/stream_id_lsch2.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/include/asm/arch-fsl-layerscape/stream_id_lsch2.h b/arch/arm/include/asm/arch-fsl

[U-Boot] [PATCH 7/7] armv8: ls1046a: setup fman ports ICIDs and device tree

2018-06-28 Thread Laurentiu Tudor
Add support for ICID setting of fman ports and the required device tree fixups. Signed-off-by: Laurentiu Tudor --- arch/arm/cpu/armv8/fsl-layerscape/icid.c | 82 +++ .../arm/cpu/armv8/fsl-layerscape/ls1046_ids.c | 30 +++ .../asm/arch-fsl-layerscape/fsl_icid.h| 1

[U-Boot] [PATCH 6/7] armv8: ls1046a: add icid setup for qman portals

2018-06-28 Thread Laurentiu Tudor
Add support for ICID setting of qman portals and the required device tree fixups. Also fix an endiness issue in portal setup code. Signed-off-by: Laurentiu Tudor --- .../arm/cpu/armv8/fsl-layerscape/ls1046_ids.c | 16 +++ .../asm/arch-fsl-layerscape/fsl_portals.h | 23 ++ drivers

[U-Boot] [PATCH] usb: ohci: change the NUM_EDs from 8 to 32

2018-06-28 Thread Zeng Tao
For ohci, the maximam supported endpoint number is 32(in and out), and now we have used (usb_pipeendpoint(pipe) << 1) to index the specified endpoint descritor, usb_pipeendpoint(pipe) can reach 0xf, so we need change the NUM_EDs from 8 to 32. Signed-off-by: Zeng Tao --- drivers/usb/host/ohci.h |

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

2018-06-28 Thread Tom Rini
On Mon, Jun 18, 2018 at 11:56:06AM -0700, Andrew Thomas wrote: > This bug is the combination of dwc2 USB controller and lan78xx > USB ethernet controller, which is the combination in use on > the Raspberry Pi Model 3 B+. > > When the host attempts to receive a packet, but a packet has not > arriv

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

2018-06-28 Thread Jagan Teki
On Wed, Jun 27, 2018 at 5:23 PM, Siva Durga Prasad Paladugu wrote: > 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 inclusio

[U-Boot] sama5d3_xplained boot from usb

2018-06-28 Thread mb2
Hello, I'm currently using u-boot(U-Boot 2017.03-linux4sam_5.8) on our embedded device which is based on the sama5d3_xplained and easily works with the given config files. I'm right now trying to boot from usb(fat32) instead of mmc as recovery option but can't get it to work. When in u-b

[U-Boot] [PATCH] led: bcm6328: read base address in the parent node

2018-06-28 Thread Philippe Reynes
In the device tree, the address for the led is located in the parent node (for exemple leds), not in the led node (for exemple led@0). The commit "led: bcm6328: convert to use live dt" (sha1: 899455176058d673887a762aa38853188a030af4) change this behaviour and read the address in the led node. We

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

2018-06-28 Thread Quentin Schulz
Hi Tom, On Wed, Jun 27, 2018 at 11:23:38AM -0400, 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, >

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

2018-06-28 Thread Quentin Schulz
Hi Stephen, On Wed, Jun 27, 2018 at 10:07:04AM -0600, Stephen Warren wrote: > 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, 201

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

2018-06-28 Thread Mark Jonas
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 reference manual 52 Ohm is the correct value. This patch adds the 260 O

[U-Boot] [for v2018.07 1/2] sunxi: Fix USB PHY index for H3 (missed chage)

2018-06-28 Thread Jagan Teki
This patch update the USB PHY index for Allwinner H3. Same change[1] initially sent, by 'Chen-Yu Tai' but missed to apply due to recursive version changes on the same series. [1] https://lists.denx.de/pipermail/u-boot/2018-January/318817.html Signed-off-by: Jagan Teki --- arch/arm/include/asm/

[U-Boot] [for v2018.07 2/2] usb: sunxi: Use proper reg_mask for clock gate, reset

2018-06-28 Thread Jagan Teki
Masking clock gate, reset register bits based on the probed controller is proper only due to the assumption that masking should start with 0 even thought the controller has separate PHY or shared between OTG. unfortunately these are fixed due to lack of separate clock, reset drivers. Say for exam

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

2018-06-28 Thread Jagan Teki
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. Resulting in > a non-functional SPI. > >

Re: [U-Boot] [PATCH 1/2] arm: timer: factor out FSL arch timer erratum workaround

2018-06-28 Thread Jagan Teki
On Wed, Jun 27, 2018 at 6:12 AM, Andre Przywara wrote: > At the moment we have the workaround for the Freescale arch timer > erratum A-008585 merged into the generic timer_read_counter() routine. > Split those two up, so that we can add other errata workaround more > easily. Also add an explaining

Re: [U-Boot] [PATCH] sf: Enable FSR polling on N25Q256(A)

2018-06-28 Thread Jagan Teki
On Mon, Jun 18, 2018 at 1:18 PM, Jagan Teki wrote: > On Tue, May 29, 2018 at 2:30 PM, Marek Vasut wrote: >> On 05/29/2018 06:52 AM, Jagan Teki wrote: >>> + Siva >>> >>> On Fri, May 25, 2018 at 1:28 AM, Marek Vasut wrote: The N25Q256(A) datasheet clearly states that this device does have >>>

Re: [U-Boot] [PATCH 1/2] arm: timer: factor out FSL arch timer erratum workaround

2018-06-28 Thread Andre Przywara
Hi, On 28/06/18 15:27, Jagan Teki wrote: > On Wed, Jun 27, 2018 at 6:12 AM, Andre Przywara > wrote: >> At the moment we have the workaround for the Freescale arch timer >> erratum A-008585 merged into the generic timer_read_counter() routine. >> Split those two up, so that we can add other errat

Re: [U-Boot] [PATCH 1/7] armv8: fsl-layerscape: add configs for missing register blocks addresses

2018-06-28 Thread York Sun
On 06/28/2018 02:42 AM, Laurentiu Tudor wrote: > Add config defines with the sata, edma and qdma register block > base addresses. Also white list the newly introduced defines. > > Signed-off-by: Laurentiu Tudor > --- > arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h | 3 +++ > scripts/con

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

2018-06-28 Thread York Sun
On 06/27/2018 10:53 PM, Bin Meng wrote: > >> Can the DT perhaps go before U-Boot in the flash? We would need a way >> to find it though. >> > > I don't see any issue that DT go after U-Boot in the flash. x86 does > this way, and its reset vector is also the last address of flash. > Big issue.

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

2018-06-28 Thread York Sun
On 06/27/2018 11:30 PM, Prabhakar Kushwaha wrote: >> Thanks for the direction. >> >> We will be following approach "a" with updated flash map. >> We will allocate 1MB for uboot in flash. Out which 64K for DTB and 960KB for >> u-boot for future increase. >> >> We will also update location of env

Re: [U-Boot] [PATCH v2 2/3] fit: allow fit to call hardware accelerated hash

2018-06-28 Thread Ben Whitten
Hi Tom, > Subject: Re: [U-Boot] [PATCH v2 2/3] fit: allow fit to call hardware > accelerated > hash > > On Wed, Jun 06, 2018 at 05:03:57PM +0100, Ben Whitten wrote: > > > Move to calling the abstraction which allows for hardware acceleration. > > We also remove unneeded defines and only include

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

2018-06-28 Thread Stephen Warren
On 06/28/2018 07:39 AM, Quentin Schulz wrote: Hi Tom, On Wed, Jun 27, 2018 at 11:23:38AM -0400, 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

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

2018-06-28 Thread Ramon Fried
On Wed, Jun 27, 2018 at 2:18 AM Simon Glass wrote: > HI Ramon, > > On 26 June 2018 at 04:15, Ramon Fried wrote: > > > > > > 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 ma

Re: [U-Boot] [RFC] ARM: rmobile: create DT memory nodes for R8A7795 3.0 and newer

2018-06-28 Thread Eugeniu Rosca
Hi Marek, All, I am looking forward for the solution/approach you are going to reach in this thread. Currently, integrating Renesas Yocto v3.7.0 release [1], I can see that the increase of SoC/SiP versions supported in this release increases the number of ATF/U-boot build variants dramatically. R

[U-Boot] [PATCH 1/1] lib: div64: fix typeo in include/div64.h

2018-06-28 Thread Heinrich Schuchardt
%s/reminder/remainder/ Signed-off-by: Heinrich Schuchardt --- include/div64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/div64.h b/include/div64.h index cecb2322bc..76563ef978 100644 --- a/include/div64.h +++ b/include/div64.h @@ -232,7 +232,7 @@ extern uint32_t

Re: [U-Boot] [PATCH v2 2/3] fit: allow fit to call hardware accelerated hash

2018-06-28 Thread Tom Rini
On Thu, Jun 28, 2018 at 03:46:27PM +, Ben Whitten wrote: > Hi Tom, > > > Subject: Re: [U-Boot] [PATCH v2 2/3] fit: allow fit to call hardware > > accelerated > > hash > > > > On Wed, Jun 06, 2018 at 05:03:57PM +0100, Ben Whitten wrote: > > > > > Move to calling the abstraction which allows

Re: [U-Boot] [PATCH 1/1] fs: fat: write with non-zero offset

2018-06-28 Thread Heinrich Schuchardt
This relates to a patch in https://git.linaro.org/people/takahiro.akashi/u-boot.git branch efi/for_sct. On 06/13/2018 08:32 AM, AKASHI Takahiro wrote: > --- > fs/fat/fat_write.c | 385 +++-- > 1 file changed, 299 insertions(+), 86 deletions(-) > > diff --g

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

2018-06-28 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] [for v2018.07 2/2] usb: sunxi: Use proper reg_mask for clock gate, reset

2018-06-28 Thread Adam Sampson
On Thu, Jun 28, 2018 at 07:40:46PM +0530, Jagan Teki wrote: > Masking clock gate, reset register bits based on the > probed controller is proper only due to the assumption [...] With this patch, both USB ports work correctly on Cubieboard (A10) and pcDuino3 Nano (A20). Thanks for the quick fix! T

Re: [U-Boot] Writes to FAT broken by bcm2835 sdhost driver

2018-06-28 Thread Alexander Graf
On 28.06.18 10:53, Anton Gerasimov wrote: > [resending, forgot to subscribe from this address] > > Hi, > > For some reasons I need to save environment on RaspberryPi 3 and it > worked well for me in older versions of u-boot, but stopped working in > newer ones. Using bisect I figured out that t

Re: [U-Boot] Writes to FAT broken by bcm2835 sdhost driver

2018-06-28 Thread Alexander Graf
On 06/28/2018 10:53 AM, Anton Gerasimov wrote: [resending, forgot to subscribe from this address] Hi, For some reasons I need to save environment on RaspberryPi 3 and it worked well for me in older versions of u-boot, but stopped working in newer ones. Using bisect I figured out that the commit

Re: [U-Boot] [PATCH 1/1] cmd: add eficfg command

2018-06-28 Thread Heinrich Schuchardt
This relates to a patch in https://git.linaro.org/people/takahiro.akashi/u-boot.git branch efi/for_sct. On 05/29/2018 08:47 AM, AKASHI Takahiro wrote: Thanks for providing a possibility to edit EFI variables. Before submitting, please, split the patch into a patch series. E.g. moving definition

Re: [U-Boot] [PATCH 1/1] cmd: add eficfg command

2018-06-28 Thread Heinrich Schuchardt
On 06/28/2018 09:05 PM, Heinrich Schuchardt wrote: > This relates to a patch in > https://git.linaro.org/people/takahiro.akashi/u-boot.git > branch efi/for_sct. > > On 05/29/2018 08:47 AM, AKASHI Takahiro wrote: > > Thanks for providing a possibility to edit EFI variables. > > Before submitting,

[U-Boot] [PATCH] arm/arm64: bitops: fix find_next_zero_bit to be compat with arm64

2018-06-28 Thread Grygorii Strashko
Current implementation of find_next_zero_bit() is incompatible with arm64. Hence fix it by using BITS_PER_LONG define instead of constants and use generic ffz() implementation. Signed-off-by: Grygorii Strashko --- arch/arm/include/asm/bitops.h | 41 + 1 fi

[U-Boot] [PATCH] mtd: spi: spi_flash: fix build with dma enabled

2018-06-28 Thread Grygorii Strashko
Fix build with CONFIG_DMA enabled drivers/mtd/spi/spi_flash.c:376: undefined reference to `dma_memcpy' Signed-off-by: Grygorii Strashko --- drivers/mtd/spi/spi_flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c i

[U-Boot] [PATCH 1/2] net: phy: dp83867: add workaround for incorrect RX_CTRL pin strap

2018-06-28 Thread Grygorii Strashko
From: Murali Karicheri The data manual for DP83867IR/CR, SNLS484E[1], revised march 2017, advises that strapping RX_DV/RX_CTRL pin in mode 1 and 2 is not supported (see note below Table 5 (4-Level Strap Pins)). It further advises that if a board has this pin strapped in mode 1 and mode 2, then b

[U-Boot] [PATCH 0/2] net: phy: ti: dp83867: add w/a for RX_CTRL pin strap and use ofnode API

2018-06-28 Thread Grygorii Strashko
This series adds - workaround for incorrect RX_CTRL pin strap as per revised data manual for DP83867IR/CR (SNLS484E[1], revised march 2017) which advises that strapping RX_DV/RX_CTRL pin in mode 1 and 2 is not supported (see note below Table 5 (4-Level Strap Pins)). - does simple conversation of d

[U-Boot] [PATCH 2/2] net: phy: dp83867: switch to use ofnode api

2018-06-28 Thread Grygorii Strashko
Switch to use more generic ofnode API instead of FDT API. Signed-off-by: Grygorii Strashko --- drivers/net/phy/ti.c | 23 ++- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/drivers/net/phy/ti.c b/drivers/net/phy/ti.c index f1c9f7b..98c36ab 100644 --- a/driver

[U-Boot] [PATCH 0/5] net: phy: prevent uclass_eth device "node" field overwriting

2018-06-28 Thread Grygorii Strashko
This series prevents the UCLASS_ETH device "node" field overwriting by some network drivers when Ethernet PHYs are linked to UCLASS_ETH device using "phy-handle" DT property and when Ethernet PHY driver needs to read some additional information from DT (like dp83867). It fixes following cases: -

[U-Boot] [PATCH 2/5] net: phy: dp83867: switch to use phy_get_ofnode()

2018-06-28 Thread Grygorii Strashko
Use PHY API phy_get_ofnode() helper to get PHY DT node. Signed-off-by: Grygorii Strashko --- drivers/net/phy/ti.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy/ti.c b/drivers/net/phy/ti.c index 98c36ab..d4a7e39 100644 --- a/drivers/net/phy/ti.c +++ b/

[U-Boot] [PATCH 3/5] net: phy: xilinx: switch to use phy_get_ofnode()

2018-06-28 Thread Grygorii Strashko
Use PHY API phy_get_ofnode() helper to get PHY DT node. Signed-off-by: Grygorii Strashko --- drivers/net/phy/xilinx_phy.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/net/phy/xilinx_phy.c b/drivers/net/phy/xilinx_phy.c index 004cfcf..3aa8891 100644 --- a

[U-Boot] [PATCH 1/5] net: phy: add ofnode node to struct phy_device

2018-06-28 Thread Grygorii Strashko
Now the UCLASS_ETH device "node" field is owerwritten by some network drivers in case of Ethernet PHYs which are linked to UCLASS_ETH device using "phy-handle" DT property and when Ethernet PHY driver needs to read some additional information from DT. In such cases following happens (in general):

[U-Boot] [PATCH 5/5] drivers: net: zynq_gem: fix phy dt node setting

2018-06-28 Thread Grygorii Strashko
Now zynq_gem driver will overwrite UCLASS_ETH node when PHY is connected and configured which is not correct. Use struct phydev->node instead. Signed-off-by: Grygorii Strashko --- drivers/net/zynq_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/zynq_gem.c b/

Re: [U-Boot] [PATCH v3] drivers: spi: migrate cf_spi to DM

2018-06-28 Thread Angelo Dureghello
Hi Jagan, On Wed, Jun 27, 2018 at 02:54:42PM +0530, Jagan Teki wrote: > On Wed, Jun 27, 2018 at 2:27 PM, Angelo Dureghello wrote: > > Hi Jagan, > > > > On Wed, Jun 27, 2018 at 12:08:26PM +0530, Jagan Teki wrote: > >> On Tue, Jun 26, 2018 at 10:28 PM, Angelo Dureghello > >> wrote: > >> > This pa

[U-Boot] [PATCH 4/5] drivers: net: cpsw: fix phy dt node setting

2018-06-28 Thread Grygorii Strashko
Now CPSW driver will overwrite UCLASS_ETH node when PHY is connected and configured which is not correct. Use struct phydev->node instead. Signed-off-by: Grygorii Strashko --- drivers/net/cpsw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/cpsw.c b/drivers/net/

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

2018-06-28 Thread Maxime Ripard
On Thu, Jun 28, 2018 at 12:20:40AM +0100, Adam Sampson wrote: > Move to the driver model for MMC and SATA, which means it implicitly > uses CONFIG_BLK too. > > Signed-off-by: Adam Sampson This should be done at the Kconfig level for all the boards, so that we switch every one at once instead of

Re: [U-Boot] [PATCH 1/2] net: phy: dp83867: add workaround for incorrect RX_CTRL pin strap

2018-06-28 Thread Hannes Schmelzer
On 06/28/2018 09:26 PM, Grygorii Strashko wrote: From: Murali Karicheri The data manual for DP83867IR/CR, SNLS484E[1], revised march 2017, advises that strapping RX_DV/RX_CTRL pin in mode 1 and 2 is not supported (see note below Table 5 (4-Level Strap Pins)). It further advises that if a boar

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

2018-06-28 Thread Hannes Schmelzer
On 06/28/2018 04:26 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] [PATCH 1/1] fs: fat: write with non-zero offset

2018-06-28 Thread AKASHI Takahiro
Hey Heinrich, On Thu, Jun 28, 2018 at 08:14:17PM +0200, Heinrich Schuchardt wrote: > This relates to a patch in > https://git.linaro.org/people/takahiro.akashi/u-boot.git > branch efi/for_sct. Thanks for your comment, but please don't cite and post my changes from this branch *in any form*. It's

Re: [U-Boot] [PATCH v3] x86: Use microcode update from device tree for all processors

2018-06-28 Thread Ivan Gorinov
On Tue, Jun 26, 2018 at 03:47:49PM +0800, Bin Meng wrote: > Hi Ivan, > > On Fri, Jun 22, 2018 at 12:13 PM, Bin Meng wrote: > > Hi Ivan, > > > > On Fri, Jun 22, 2018 at 12:16 PM, Bin Meng wrote: > >> From: Ivan Gorinov > >> > >> Built without a ROM image with FSP (u-boot.rom), the U-Boot loader

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

2018-06-28 Thread Ivan Gorinov
On Thu, Jun 28, 2018 at 03:57:24PM +0800, Bin Meng wrote: > Hi Ivan, > > On Wed, Jun 27, 2018 at 11:41 PM, Ivan Gorinov wrote: > > EFI image handle and system table are not used in _relocate(). > > > > v3: > > Rebased on u-boot/master > > > > v2: > > Separated the changes in efi_main() argume

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

2018-06-28 Thread Tom Rini
On Thu, Jun 28, 2018 at 10:37:10PM +0200, Hannes Schmelzer wrote: > > On 06/28/2018 04:26 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

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

2018-06-28 Thread Ivan Gorinov
EFI image handle and system table are not used in _relocate(). v4: Consistently use EFIABI for _relocate() everywhere. v3: Use EFIABI for _relocate() on x86; Rebased on u-boot/master. v2: Separated the changes in efi_main() arguments and calling convention. Ivan Gorinov (3): x86: Rem

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

2018-06-28 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 v4 2/3] arm: Remove unused _relocate arguments

2018-06-28 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 v4 3/3] riscv: Remove unused _relocate arguments

2018-06-28 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..c1039dd 100644

[U-Boot] [PATCH v2] dm: sunxi: Use DM for MMC and SATA on all A20 boards

2018-06-28 Thread Adam Sampson
Generalise the change in commit 3936514b82e8 ("dm: sunxi: Move Linksprite_pcDuino3 to use DM for MMC, SATA") so it applies to all A20 boards: use the driver model for MMC and SATA, in preparation for CONFIG_BLK defaulting to y. Tested on Linksprite pcDuino3 Nano. Signed-off-by: Adam Sampson ---

[U-Boot] [PATCH 1/1] ARM: qemu-arm: enable RTC

2018-06-28 Thread Heinrich Schuchardt
QEMU provides an emulated ARM AMBA PrimeCell PL031 RTC. The patch sets the base address in the board include file according to the definition in hw/arm/virt.c of the QEMU source. It defines the Kconfig option for the existing driver, and enables the RTC driver in qemu_arm64_defconfig and qemu_arm_

[U-Boot] [PATCH v2 1/3] configs: kirkwood: ds109: switch to DM_I2C

2018-06-28 Thread Chris Packham
Enable DM_I2C and I2C_MVTSWI for the ds109 board. Signed-off-by: Chris Packham --- Changes in v2: - new configs/ds109_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/ds109_defconfig b/configs/ds109_defconfig index c9207433b374..fd10e6e3c36e 100644 --- a/configs/ds109_de

[U-Boot] [PATCH v2 2/3] configs: move RTC_MV config from mv-plug-common.h to boards

2018-06-28 Thread Chris Packham
To aid in migrating CONFIG_RTC_MV to Kconfig move the definition of it from mv-plug-common.h to the board config headers that nest it. Signed-off-by: Chris Packham --- Changes in v2: None include/configs/dreamplug.h | 4 include/configs/ds109.h | 4 include/configs/guru

[U-Boot] [PATCH v2 3/3] configs: kirkwood: Move RTC_MV to DM and Kconfig

2018-06-28 Thread Chris Packham
Now that there is DM support in the RTC_MV driver update board configs to use it. Signed-off-by: Chris Packham --- I haven't removed this from the whitelist because the nsa310s board lacks device-tree support. Once that board is converted the non-DM code can be removed from RTC_MV and the whiteli

  1   2   >