Re: [U-Boot] [RFC] Make U-Boot log great again

2018-03-22 Thread Bin Meng
Hi, On Sat, Feb 17, 2018 at 3:49 AM, Robert Nelson wrote: > On Fri, Feb 16, 2018 at 1:01 PM, Sam Protsenko > wrote: >> Hi guys, >> >> TL;DR This is a suggestion about fixing U-Boot log, which has got >> worse recently. >> >> Right now U-Boot

Re: [U-Boot] Pull request: u-boot-net.git master

2018-03-22 Thread Tom Rini
On Thu, Mar 22, 2018 at 03:39:39PM -0500, Joe Hershberger wrote: > Hi Tom, > > The following changes since commit 2511930193a420eb8bb6cfa9c60912626f68ae67: > > Merge git://git.denx.de/u-boot-mips (2018-03-21 18:58:03 -0400) > > are available in the git repository at: > > >

[U-Boot] [PATCH] omap3: spi: Correct ti, pindir-d0-out-d1-in parsing

2018-03-22 Thread Sjoerd Simons
The ti,pindir-d0-out-d1-in property is not expected to have a value according to the device-tree binding, so treat it as a boolean not a uint property. Signed-off-by: Sjoerd Simons --- drivers/spi/omap3_spi.c | 6 -- 1 file changed, 4 insertions(+), 2

[U-Boot] [PATCH] env: Properly check for BLK support

2018-03-22 Thread Sjoerd Simons
Use CONFIG_IS_ENABLED to see if CONFIG_BLK is enabled. Otherwise SPL compilation breaks on boards which do have CONFIG_BLK enabled but not DM_MMC for the SPL as follows: env/mmc.c: In function ‘init_mmc_for_env’: env/mmc.c:164:6: warning: implicit declaration of function ‘blk_get_from_parent’;

[U-Boot] [PATCH 2/3] configs: k2e_hs_evm: Resync defconfig with non-HS defconfig

2018-03-22 Thread Andrew F. Davis
Signed-off-by: Andrew F. Davis --- configs/k2e_hs_evm_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/k2e_hs_evm_defconfig b/configs/k2e_hs_evm_defconfig index a79ce6060f..6224222129 100644 --- a/configs/k2e_hs_evm_defconfig +++

[U-Boot] [PATCH 3/3] configs: k2hk_hs_evm: Resync defconfig with non-HS defconfig

2018-03-22 Thread Andrew F. Davis
Signed-off-by: Andrew F. Davis --- configs/k2hk_hs_evm_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/k2hk_hs_evm_defconfig b/configs/k2hk_hs_evm_defconfig index 09ac21e8f3..1cca0caef8 100644 --- a/configs/k2hk_hs_evm_defconfig +++

[U-Boot] [PATCH 1/3] configs: k2g_hs_evm: Resync defconfig with non-HS defconfig

2018-03-22 Thread Andrew F. Davis
Signed-off-by: Andrew F. Davis --- configs/k2g_hs_evm_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/configs/k2g_hs_evm_defconfig b/configs/k2g_hs_evm_defconfig index 5402cd3214..b0c0e08584 100644 --- a/configs/k2g_hs_evm_defconfig +++

Re: [U-Boot] [PATCH] sunxi: Add support for LiNova1 CTP 7" HMI

2018-03-22 Thread Giulio Benetti
Hi, please drop this patch, I've made confusion on sending. Sorry -- Giulio Benetti CTO MICRONOVA SRL Sede: Via A. Niedda 3 - 35010 Vigonza (PD) Tel. 049/8931563 - Fax 049/8931346 Cod.Fiscale - P.IVA 02663420285 Capitale Sociale € 26.000 i.v. Iscritta al Reg. Imprese di Padova N. 02663420285

[U-Boot] [PATCH] sunxi: Add support for LiNova1 CTP 7" HMI

2018-03-22 Thread Giulio Benetti
The A20-Linova1-7 HMI, also called Q027_2_F which is printed on production label, is an industrial Human Machine Interface. It features: - 512MB DDR RAM - 1 Sd-card >= 4GB - 1 Usb otg(programmable via software) with A-Usb Connector - 1 Usb host - 1 Buzzer - 1 Input for LiPo - 1 Relay to signal

Re: [U-Boot] [U-Boot,v4,7/7] test/py: add spi_flash tests

2018-03-22 Thread Tom Rini
On Wed, Mar 14, 2018 at 07:15:16PM -0400, Liam Beguin wrote: > Add basic tests for the spi_flash subsystem. > > Signed-off-by: Liam Beguin > Reviewed-by: Stephen Warren With a minor spelling fix, applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] [U-Boot, 2/2] configs: am335x_evm: Increase SPL_SYS_MALLOC_F_LEN to accomodate gpio_devices

2018-03-22 Thread Tom Rini
On Thu, Mar 15, 2018 at 09:11:35PM +0530, Faiz Abbas wrote: > With gpio devices getting created in SPL, the size of the heap is > no longer sufficient. Therefore, increase SPL_SYS_MALLOC_F_LEN > to 0x1000. > > Signed-off-by: Faiz Abbas > Reviewed-by: Tom Rini

Re: [U-Boot] [U-Boot, 1/2] gpio: omap_gpio: Add DM_FLAG_PRE_RELOC flag

2018-03-22 Thread Tom Rini
On Thu, Mar 15, 2018 at 09:11:34PM +0530, Faiz Abbas wrote: > With DM enabled in SPL, DM_FLAG_PRE_RELOC is required for > the omap_gpio driver to be bound to the gpio devices. > > Therefore, add DM_FLAG_PRE_RELOC flag to the omap_gpio driver. > > Signed-off-by: Faiz Abbas >

Re: [U-Boot] [U-Boot,v4,6/7] test/py: add generic CRC32 function

2018-03-22 Thread Tom Rini
On Wed, Mar 14, 2018 at 07:15:15PM -0400, Liam Beguin wrote: > Add a generic function which can be used to compute the CRC32 value of > a region of RAM. > > Signed-off-by: Liam Beguin > Reviewed-by: Stephen Warren Applied to u-boot/master, thanks! --

Re: [U-Boot] [U-Boot,2/2] configs: omapl138: Enable DM and DT

2018-03-22 Thread Tom Rini
On Fri, Mar 16, 2018 at 06:52:21PM +0530, Lokesh Vutla wrote: > Enable Driver Model and Device-tree support for omapl138 board > in U-Boot. Also enable DM_SERIAL and DM_I2C. > > Signed-off-by: Lokesh Vutla > Reviewed-by: Tom Rini Applied to

Re: [U-Boot] [U-Boot,v2] davinci: Enable DDR_INIT for DA8XX

2018-03-22 Thread Tom Rini
On Fri, Mar 16, 2018 at 02:22:12PM +0530, Lokesh Vutla wrote: > Commit 6aa4ad8e3820 ("Convert CONFIG_SOC_DA8XX et al to Kconfig") > converted SOC_DA8XX to Kconfig but missed enabling DDR_INIT for > SOC_DA8XX, which broke OMAPL138 to boot. > > Commit 2e87980580d0 ("davinci: Fix omapl138_lcdk

Re: [U-Boot] scripts/check-config.sh: fix "command not found" error handling

2018-03-22 Thread Tom Rini
On Thu, Mar 15, 2018 at 11:08:56AM +0100, Luca Ceresoli wrote: > scripts/check-config.sh exits successfully and silently without doing > any checks when the 'comm' command is not found. > > The problem triggers from the command around line 39: > > comm -23 ${suspects} ${ok} >${new_adhoc} > >

Re: [U-Boot] [U-Boot,v4,2/7] cmd: sf: fix map_physmem check

2018-03-22 Thread Tom Rini
On Wed, Mar 14, 2018 at 07:15:11PM -0400, Liam Beguin wrote: > Make sure 0x00 is a valid address to read to. If `addr` is 0x00 then > map_physmem() will return 0 which should be a valid address. > > Signed-off-by: Liam Beguin > Reviewed-by: Stephen Warren

Re: [U-Boot] [U-Boot, 1/2] ARM: dts: da850-lcdk: Sync from Linux 4.16

2018-03-22 Thread Tom Rini
On Fri, Mar 16, 2018 at 06:52:20PM +0530, Lokesh Vutla wrote: > Sync dts from Linux 4.16 and also add u-boot specific > dtsi for OMAPl138 board. > > Signed-off-by: Lokesh Vutla > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] [U-Boot,v4,3/7] test/py: README: fix typo

2018-03-22 Thread Tom Rini
On Wed, Mar 14, 2018 at 07:15:12PM -0400, Liam Beguin wrote: > Fix a minor typo causing vim (and possibly other) to get confused with > coloring. > > Signed-off-by: Liam Beguin > Reviewed-by: Stephen Warren Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] [U-Boot, v4, 5/7] test/py: do not import pytest multiple times

2018-03-22 Thread Tom Rini
On Wed, Mar 14, 2018 at 07:15:14PM -0400, Liam Beguin wrote: > Signed-off-by: Liam Beguin > Reviewed-by: Stephen Warren Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, v4, 4/7] test/py: README: add HOSTNAME to PYTHONPATH

2018-03-22 Thread Tom Rini
On Wed, Mar 14, 2018 at 07:15:13PM -0400, Liam Beguin wrote: > As opposed to PATH, HOSTNAME is not appended to PYTHONPATH > automatically. Lets add it to the examples to make it more > obvious to new users. > > Signed-off-by: Liam Beguin > Reviewed-by: Stephen Warren

Re: [U-Boot] davinci: omapl138_lcdk: fix PLL0 frequency

2018-03-22 Thread Tom Rini
On Wed, Mar 14, 2018 at 08:36:30PM -0500, David Lechner wrote: > commit 1601dd97edc6 ("davinci: omapl138_lcdk: increase PLL0 frequency") > changed the PLL0 frequency to 456MHz, which is needed for the LCDC IP > block. However, in doing so, it caused the PLLOUT clock to be outside > of the

Re: [U-Boot] [U-Boot, v4, 1/7] spi: spi_flash: do not fail silently on bad user input

2018-03-22 Thread Tom Rini
On Wed, Mar 14, 2018 at 07:15:10PM -0400, Liam Beguin wrote: > Make sure the user is notified instead of silently returning an error. > > Signed-off-by: Liam Beguin > Reviewed-by: Stephen Warren Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] tools: Make kwboot build if HOST_TOOLS_ALL=y

2018-03-22 Thread Tom Rini
On Tue, Mar 13, 2018 at 03:23:04PM +0200, Tuomas Tynkkynen wrote: > The kwboot tool for Marvell devices isn't currently being built even if > HOST_TOOLS_ALL is set. It doesn't appear to depend on any CONFIG_ > options, so it seems appropriate to enable building it here. > > Signed-off-by: Tuomas

[U-Boot] Pull request: u-boot-net.git master

2018-03-22 Thread Joe Hershberger
Hi Tom, The following changes since commit 2511930193a420eb8bb6cfa9c60912626f68ae67: Merge git://git.denx.de/u-boot-mips (2018-03-21 18:58:03 -0400) are available in the git repository at: git://git.denx.de/u-boot-net.git master for you to fetch changes up to

Re: [U-Boot] [PATCH] ARC: HSDK: add platform-specific commands

2018-03-22 Thread Alexey Brodkin
Hi Eugeniy, To start from your patch doesn't apply on u-boot-arc/next: -->8- git am \[PATCH\]_ARC\:_HSDK\:_add_platform-specific_commands.mbox Applying: ARC: HSDK: add platform-specific commands

[U-Boot] [PATCH v2 13/17] cpu: bmips: convert to use live dt

2018-03-22 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- drivers/cpu/bmips_cpu.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/cpu/bmips_cpu.c b/drivers/cpu/bmips_cpu.c index 6c612bacdc..f766be22e6 100644 --- a/drivers/cpu/bmips_cpu.c +++

[U-Boot] [PATCH v2 14/17] phy: bcm6348-usbh: convert to use live dt

2018-03-22 Thread Álvaro Fernández Rojas
Also fix bad accents in my name. Signed-off-by: Álvaro Fernández Rojas --- drivers/phy/bcm6348-usbh-phy.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/phy/bcm6348-usbh-phy.c b/drivers/phy/bcm6348-usbh-phy.c index

[U-Boot] [PATCH v2 04/17] clk: bcm6345: convert to use live dt

2018-03-22 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Simon Glass --- v2: Introduce changes suggested by Daniel Schwierzeck: - Use generic dev_remap_addr function. drivers/clk/clk_bcm6345.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-)

[U-Boot] [PATCH v2 17/17] phy: bcm6318-usbh: convert to use live dt

2018-03-22 Thread Álvaro Fernández Rojas
Also fix bad accents in my name. Signed-off-by: Álvaro Fernández Rojas --- drivers/phy/bcm6318-usbh-phy.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/phy/bcm6318-usbh-phy.c b/drivers/phy/bcm6318-usbh-phy.c index

[U-Boot] [PATCH v2 12/17] ram: bmips: convert to use live dt

2018-03-22 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Simon Glass --- v2: Introduce changes suggested by Daniel Schwierzeck: - Use generic dev_remap_addr function. drivers/ram/bmips_ram.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff

[U-Boot] [PATCH v2 10/17] spi: bcm63xx_spi: convert to use live dt

2018-03-22 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Simon Glass --- v2: Introduce changes suggested by Daniel Schwierzeck and Simon Glass: - Use generic dev_remap_addr function. - Fix bcm63xx_spi conversion. drivers/spi/bcm63xx_spi.c | 12 +++-

[U-Boot] [PATCH v2 09/17] power: domain: bcm6328: convert to use live dt

2018-03-22 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Simon Glass --- v2: Introduce changes suggested by Daniel Schwierzeck: - Use generic dev_remap_addr function. drivers/power/domain/bcm6328-power-domain.c | 8 ++-- 1 file changed, 2 insertions(+), 6

[U-Boot] [PATCH v2 15/17] phy: bcm6358-usbh: convert to use live dt

2018-03-22 Thread Álvaro Fernández Rojas
Also fix bad accents in my name. Signed-off-by: Álvaro Fernández Rojas --- drivers/phy/bcm6358-usbh-phy.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/phy/bcm6358-usbh-phy.c b/drivers/phy/bcm6358-usbh-phy.c index

[U-Boot] [PATCH v2 11/17] spi: bcm63xx_hsspi: convert to use live dt

2018-03-22 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Simon Glass --- v2: Introduce changes suggested by Daniel Schwierzeck: - Use generic dev_remap_addr function. drivers/spi/bcm63xx_hsspi.c | 12 +++- 1 file changed, 3 insertions(+), 9

[U-Boot] [PATCH v2 02/17] watchdog: bcm6345: convert to use live dt

2018-03-22 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v2: Introduce changes suggested by Daniel Schwierzeck: - Use generic dev_remap_addr function. drivers/watchdog/bcm6345_wdt.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/watchdog/bcm6345_wdt.c

[U-Boot] [PATCH v2 16/17] phy: bcm6368-usbh: convert to use live dt

2018-03-22 Thread Álvaro Fernández Rojas
Also fix bad accents in my name. Signed-off-by: Álvaro Fernández Rojas --- drivers/phy/bcm6368-usbh-phy.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/phy/bcm6368-usbh-phy.c b/drivers/phy/bcm6368-usbh-phy.c index 71abc0fcc4..2c4288c9b8

[U-Boot] [PATCH v2 06/17] gpio: bcm6345: convert to use live dt

2018-03-22 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Simon Glass --- v2: Introduce changes suggested by Daniel Schwierzeck: - Use generic dev_remap_addr_index function. drivers/gpio/bcm6345_gpio.c | 18 +- 1 file changed, 5 insertions(+),

[U-Boot] [PATCH v2 07/17] led: bcm6358: convert to use live dt

2018-03-22 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v2: Introduce changes suggested by Daniel Schwierzeck: - Use generic dev_remap_addr function. drivers/led/led_bcm6358.c | 44 +++- 1 file changed, 15 insertions(+), 29 deletions(-) diff

[U-Boot] [PATCH v2 05/17] reset: bcm6345: convert to use live dt

2018-03-22 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Simon Glass --- v2: Introduce changes suggested by Daniel Schwierzeck: - Use generic dev_remap_addr function. drivers/reset/reset-bcm6345.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-)

[U-Boot] [PATCH v2 03/17] serial: bcm6345: convert to use live dt

2018-03-22 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Simon Glass --- v2: Introduce changes suggested by Daniel Schwierzeck: - Use generic dev_remap_addr function. drivers/serial/serial_bcm6345.c | 8 ++-- 1 file changed, 2 insertions(+), 6

[U-Boot] [PATCH v2 08/17] led: bcm6328: convert to use live dt

2018-03-22 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Simon Glass --- v2: Introduce changes suggested by Daniel Schwierzeck: - Use generic dev_remap_addr function. drivers/led/led_bcm6328.c | 52 --- 1 file

[U-Boot] [PATCH v2 01/17] dm: core: add functions to get memory-mapped I/O addreses

2018-03-22 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- drivers/core/fdtaddr.c | 12 drivers/core/read.c| 12 include/dm/fdtaddr.h | 22 ++ include/dm/read.h | 32 4 files changed, 78 insertions(+)

[U-Boot] [PATCH v2 00/17] bmips: convert to use live-dt

2018-03-22 Thread Álvaro Fernández Rojas
Convert bmips drivers to use live device tree instead of flattened device tree. v2: Introduce changes suggested by Daniel Schwierzeck and Simon Glass: - Add generic dev_remap_addr/dev_remap_addr_index functions. - Fix bcm63xx_spi conversion. - Convert remaining bmips drivers (cpu, usbh-phy).

Re: [U-Boot] [PATCH V2 4/5] net: fec: sharing MDIO for two enet controllers

2018-03-22 Thread Joe Hershberger
On Thu, Mar 22, 2018 at 5:49 AM, Calvin Johnson wrote: > Hi Joe, > >> >>> >> >>> No, I think we can do this with adding new DM MDIO similar to DM PHY >> which >> >>> recently done. May be some sort of efforts but it is permanent. >> >> We do not have that driver now, so

Re: [U-Boot] [PATCH V2 5/5] net: fex_mxc: add i.MX6UL/SX/SL compatible

2018-03-22 Thread Joe Hershberger
On Wed, Mar 21, 2018 at 8:23 PM, Peng Fan wrote: > > >> -Original Message- >> From: Joe Hershberger [mailto:joe.hershber...@ni.com] >> Sent: 2018年3月22日 3:54 >> To: Peng Fan ; Jagan Teki >> Cc: Joe Hershberger

Re: [U-Boot] [PATCH v2 0/5] DW SPI: fixes and improvements

2018-03-22 Thread Alexey Brodkin
Cool,thanks! -Alexey On Thu, 2018-03-22 at 23:42 +0530, Jagan Teki wrote: > On Thu, Mar 22, 2018 at 11:05 PM, Alexey Brodkin > wrote: > > Hi Jagan, > > > > On Thu, 2018-03-22 at 23:03 +0530, Jagan Teki wrote: > > > On Thu, Mar 22, 2018 at 4:20 PM, Eugeniy Paltsev >

Re: [U-Boot] [PATCH v2 0/5] DW SPI: fixes and improvements

2018-03-22 Thread Jagan Teki
On Thu, Mar 22, 2018 at 11:05 PM, Alexey Brodkin wrote: > Hi Jagan, > > On Thu, 2018-03-22 at 23:03 +0530, Jagan Teki wrote: >> On Thu, Mar 22, 2018 at 4:20 PM, Eugeniy Paltsev >> wrote: >> > Various fixes and improvements of designware

Re: [U-Boot] [PATCH v2 0/5] DW SPI: fixes and improvements

2018-03-22 Thread Jagan Teki
On Thu, Mar 22, 2018 at 4:20 PM, Eugeniy Paltsev wrote: > Various fixes and improvements of designware spi driver. > > Changes v1->v2: > * Use readl_poll_timeout macros instead of custom code. > > Eugeniy Paltsev (5): > DW SPI: fix tx data loss on FIFO flush >

Re: [U-Boot] [PATCH v2 0/5] DW SPI: fixes and improvements

2018-03-22 Thread Alexey Brodkin
Hi Jagan, On Thu, 2018-03-22 at 23:03 +0530, Jagan Teki wrote: > On Thu, Mar 22, 2018 at 4:20 PM, Eugeniy Paltsev > wrote: > > Various fixes and improvements of designware spi driver. > > > > Changes v1->v2: > > * Use readl_poll_timeout macros instead of custom

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

2018-03-22 Thread Angelo Dureghello
This patch adds DM support to cf_spi.c. To be able to build spi driver with DM support, a new config option has been introdiced (DM_NO_DT) since m68k architecture does not support fdt. Signed-off-by: Angelo Dureghello --- arch/Kconfig| 1 +

Re: [U-Boot] [PULL] u-boot-mips/master

2018-03-22 Thread Tom Rini
On Wed, Mar 21, 2018 at 11:31:14PM +0100, Daniel Schwierzeck wrote: > Hi Tom, > > please pull following changes: > > - add initial support for Broadcom BCM6362 SoC and Netgear DGND3700v2 board > - add USB support for all Broadcom MIPS SoCs > - fix an array bounds check > > > The following

Re: [U-Boot] [PATCH] arm: dts: am4372: fix DTC warnings

2018-03-22 Thread Tom Rini
On Thu, Mar 22, 2018 at 09:57:46AM +0200, Felipe Balbi wrote: > > Hi, > > Tom Rini writes: > > On Wed, Mar 21, 2018 at 03:44:45PM +0200, Felipe Balbi wrote: > >> The following warnings are fixed: > >> > >> arch/arm/dts/am43x-epos-evm.dtb: Warning (interrupts_property):

[U-Boot] [PATCH v2 4/5] DW SPI: add option to use external gpio for chip select

2018-03-22 Thread Eugeniy Paltsev
DW SPI internal chip select management has limitation: it hold CS line in active state only when the FIFO is not empty. If the FIFO freed before we add new data the SPI transaction will be broken. So add option to use external gpio for chip select. Gpio can be added via device tree using standard

[U-Boot] [PATCH v2 5/5] DW SPI: use 32 bit access instead of 16 and 32 bit mix

2018-03-22 Thread Eugeniy Paltsev
Current DW SPI driver uses 32 bit access for some registers and 16 bit access for others. So if DW SPI IP is connected via bus which doesn't support 16 bit access we will get bus error. Fix that by switching to 32 bit access only instead of 16 and 32 bit mix Additional Documentation to Support

[U-Boot] [PATCH v2 3/5] DW SPI: refactor poll_transfer functions

2018-03-22 Thread Eugeniy Paltsev
There is no sense in waiting for RX data in dw_reader function: there is no chance that RX data will appear in RX FIFO if RX FIFO is empty after previous TX write in dw_writer function. So get rid of this waiting. After that we can get rid of dw_reader return value and make it returning void.

[U-Boot] [PATCH v2 0/5] DW SPI: fixes and improvements

2018-03-22 Thread Eugeniy Paltsev
Various fixes and improvements of designware spi driver. Changes v1->v2: * Use readl_poll_timeout macros instead of custom code. Eugeniy Paltsev (5): DW SPI: fix tx data loss on FIFO flush DW SPI: fix transmit only mode DW SPI: refactor poll_transfer functions DW SPI: add option to use

[U-Boot] [PATCH v2 2/5] DW SPI: fix transmit only mode

2018-03-22 Thread Eugeniy Paltsev
In current implementation we get -ETIMEDOUT error when we try to use transmit only mode (SPI_TMOD_TO) This happens because in transmit only mode input FIFO never gets any data which breaks our logic in dw_reader(): we are waiting until RX data will be ready in dw_reader, but this newer happens, so

[U-Boot] [PATCH v2 1/5] DW SPI: fix tx data loss on FIFO flush

2018-03-22 Thread Eugeniy Paltsev
In current implementation if some data still exists in Tx FIFO it can be silently flushed, i.e. dropped on disabling of the controller, which happens when writing 0 to DW_SPI_SSIENR (it happens in the beginning of new transfer) So add wait for current transmit operation to complete to be sure

Re: [U-Boot] [PATCH V2 4/5] net: fec: sharing MDIO for two enet controllers

2018-03-22 Thread Calvin Johnson
Hi Joe, > >>> > >>> No, I think we can do this with adding new DM MDIO similar to DM PHY > which > >>> recently done. May be some sort of efforts but it is permanent. > >> We do not have that driver now, so could we first have this patch? When > >> DM MDIO ready, this piece code could be removed

Re: [U-Boot] [PATCH] bootvx: use program header for loading

2018-03-22 Thread Bin Meng
On Tue, Mar 20, 2018 at 9:18 PM, Christian Gmeiner wrote: > The section header address is a VMA whereas the address found in > the program header is a physical one. With this change it is > possible to load and start a vx7 intel generic based image. > > $ readelf -l

Re: [U-Boot] [PATCH] pci: Fix decode regions for memory banks

2018-03-22 Thread Bin Meng
Hi, On Thu, Feb 15, 2018 at 3:59 PM, Bernhard Messerklinger wrote: > Since memory banks may not be located behind each other we need to add > them separately. > > Signed-off-by: Bernhard Messerklinger > > --- >

Re: [U-Boot] [PATCH] arm: dts: am4372: fix DTC warnings

2018-03-22 Thread Felipe Balbi
Hi, Tom Rini writes: > On Wed, Mar 21, 2018 at 03:44:45PM +0200, Felipe Balbi wrote: >> The following warnings are fixed: >> >> arch/arm/dts/am43x-epos-evm.dtb: Warning (interrupts_property): interrupts >> size is (8), expected multiple of 12 in /ocp/mcasp@48038000 >>

[U-Boot] [PATCH] spi: fsl_qspi: Introduce is_controller_busy function

2018-03-22 Thread Rajat Srivastava
Some SoCs have different endianness of QSPI IP if compared to endianness of core. The function is_controller_busy() checks if the QSPI controller is busy or not, considering the endianness of the QSPI IP. Signed-off-by: Rajat Srivastava Reviewed-by: York Sun