Re: [U-Boot] [PATCH] mtd: spi: Replace ad-hoc default implementation with spi_mem_op

2019-04-01 Thread Vignesh Raghavendra
+ Ashish, On 02/04/19 6:22 AM, Marek Vasut wrote: > Replace the ad-hoc erase operation implementation with a simple spi_mem_op > implementation of the same functionality. This is a minor optimization and > removal of the ad-hoc code. > > This however also changes the behavior of the execution of

Re: [U-Boot] saveenv corrupts QSPI flash with latest commit U-Boot 2019.04-rc4-00047-gcfb3e102c4

2019-04-01 Thread Vignesh Raghavendra
Ashish, > > Hi Vignesh, > This is working now(READ, WRITE), after some change in fsl_qspi driver, where > I check for 4byte op codes now. > But now I see that erase is getting address as ZERO. Which in my opinion is > because > spi_nor_erase_sector() call write_reg which has

Re: [U-Boot] [PATCH 4/4] ARM: renesas: Configure DRAM size from ATF DT fragment

2019-04-01 Thread Marek Vasut
On 3/13/19 4:25 PM, Eugeniu Rosca wrote: > On Tue, Mar 12, 2019 at 10:11:21PM +0100, Marek Vasut wrote: >> On 3/12/19 8:30 PM, Eugeniu Rosca wrote: >>> Hi Marek cc: Michael >> >> Hi, >> >>> On Tue, Mar 5, 2019 at 4:37 AM Marek Vasut wrote: The ATF can pass additional information via the

Re: [U-Boot] [PATCH] mmc: dw_mmc: Calculate timeout from transfer length

2019-04-01 Thread Marek Vasut
On 3/30/19 10:18 PM, Simon Glass wrote: > Hi Marek, > > On Sat, 23 Mar 2019 at 11:55, Marek Vasut wrote: >> >> The current 4-minute data transfer timeout is misleading and broken. >> Instead of such a long wait, calculate the timeout duration based on >> the length of the data transfer. The

[U-Boot] [PATCH V2] mmc: dw_mmc: Calculate timeout from transfer length

2019-04-01 Thread Marek Vasut
The current 4-minute data transfer timeout is misleading and broken. Instead of such a long wait, calculate the timeout duration based on the length of the data transfer. The current formula is the transfer length in bits, divided by a multiplication of bus frequency in Hz, bus width, DDR mode and

[U-Boot] [PATCH v2 2/3] rockchip: use 'arch-rockchip' as header file path

2019-04-01 Thread Kever Yang
Rockchip use 'arch-rockchip' instead of arch-$(SOC) as common header file path, so that we can get the correct path directly. Signed-off-by: Kever Yang --- .../include/asm/arch-rockchip/ddr_rk3188.h| 2 +- arch/arm/mach-rockchip/Kconfig| 2 +-

[U-Boot] [PATCH v2 0/3] rockchip: correct SYS_SOC name for all rockchip SoCs

2019-04-01 Thread Kever Yang
Rockchip use 'arch-rockchip' instead of arch-$(SOC) as common header file path, so that we do not need to make folder for each soc, because many header file are shared for all the SoCs which not need separate for each SoC. With the SoC name correct to its own name, the build system can include

Re: [U-Boot] [PATCH v2 1/3] usb: dwc3: Add Meson G12A USB Glue

2019-04-01 Thread Marek Vasut
On 4/1/19 2:46 PM, Neil Armstrong wrote: > Adds support for Amlogic G12A USB Control Glue HW. > > The Amlogic G12A SoC Family embeds 2 USB Controllers : > - a DWC3 IP configured as Host for USB2 and USB3 > - a DWC2 IP configured as Peripheral USB2 Only > > A glue connects these both controllers

Re: [U-Boot] [PATCH] mmc: dw_mmc: Round up descriptor end to nearest multiple of cacheline size

2019-04-01 Thread Marek Vasut
On 4/1/19 8:57 PM, Simon Glass wrote: > Hi Marek, > > On Sat, 30 Mar 2019 at 20:37, Marek Vasut wrote: >> >> On 3/30/19 10:18 PM, Simon Glass wrote: >>> Hi Marek, >>> >>> On Sat, 23 Mar 2019 at 11:55, Marek Vasut wrote: The driver currently calculates the end address of cache flush

[U-Boot] [PULL] u-boot-sh/master

2019-04-01 Thread Marek Vasut
Minor fixes for the Alt board and PHY use on Gen2. The following changes since commit c3aef9339ce0592b06c8d44cf2eaf9e6f3713e4f: Merge branch '2019-03-29-master-imports' (2019-03-29 10:53:28 -0400) are available in the Git repository at: git://git.denx.de/u-boot-sh.git master for you to

Re: [U-Boot] [PATCH] usb: Make portspeed return a read-only string

2019-04-01 Thread Marek Vasut
On 4/1/19 6:09 PM, Ismael Luceno Cortes wrote: > Current code is plain wrong, and there's no need to have a mutable string, > so fix function type and remove the intermediate variable. > > Signed-off-by: Ismael Luceno > --- > cmd/usb.c| 18 +- > common/usb_hub.c | 18

Re: [U-Boot] [PATCH v3 3/7] riscv: ae350: disable ATCPIT100 timer

2019-04-01 Thread Rick Chen
Hi Lukas Auer, Lukas 於 2019年4月1日 週一 下午5:13寫道: > > Hi Rick, > > On Mon, 2019-04-01 at 16:24 +0800, Andes wrote: > > From: Rick Chen > > > > Disable ATCPIT100 SoC timer and replace by PLMT. > > > > Signed-off-by: Rick Chen > > Cc: Greentime Hu > > Reviewed-by: Bin Meng > > --- > >

Re: [U-Boot] [PATCH v3 1/7] riscv: Add a SYSCON driver for Andestech's PLIC

2019-04-01 Thread Rick Chen
Hi Lukas >Auer, Lukas 於 2019年4月1日 週一 下午5:08寫道: > > Hi Rick, > > On Mon, 2019-04-01 at 16:24 +0800, Andes wrote: > > From: Rick Chen > > > > The Platform-Level Interrupt Controller (PLIC) > > block holds memory-mapped claim and pending registers > > associated with software interrupt. It is

[U-Boot] [PATCH v2 3/3] rockchip: correct ARCH_SOC name

2019-04-01 Thread Kever Yang
The ARCH_SOC name default as 'rockchip' and we put all the header file in 'arch/arm/include/asm/arch-rockchip/', but the 'rockchip' is not the SOC name, let's correct it after we update all the source file. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3036/Kconfig | 2 +-

[U-Boot] [PATCH v2 1/3] rockchip: add common header boot0.h and gpio.h for soc

2019-04-01 Thread Kever Yang
boot0.h and gpio.h will be used by system and include by 'asm/arch/', each of them need of a copy from 'asm/arch-rockchip'. Signed-off-by: Kever Yang --- arch/arm/include/asm/arch-rk3036/boot0.h | 11 +++ arch/arm/include/asm/arch-rk3036/gpio.h | 11 +++

Re: [U-Boot] [PATCH v3 2/7] riscv: Add a SYSCON driver for Andestech's PLMT

2019-04-01 Thread Rick Chen
Hi Lukas Auer, Lukas 於 2019年4月1日 週一 下午5:09寫道: > > Hi Rick, > > On Mon, 2019-04-01 at 16:24 +0800, Andes wrote: > > From: Rick Chen > > > > The platform-Level Machine Timer (PLMT) block > > holds memory-mapped mtime register associated > > with timer tick. > > > > This driver implements the

Re: [U-Boot] [PATCH v3 0/7] AE350 SMP support RISC-V

2019-04-01 Thread Rick Chen
Hi Bin Bin Meng 於 2019年4月1日 週一 下午5:01寫道: > > Hi Rick, > > On Mon, Apr 1, 2019 at 4:29 PM Andes wrote: > > > > From: Rick Chen > > > > Changes in v3: > > Patch 1 > > - Rename plic_init() as enable_ipi() > > - Remove PLIC_BASE_GET() from enable_ipi() > > Patch 2 > > - Add a space before (PLMT) >

Re: [U-Boot] [PATCH 2/3] rockchip: use 'arch-rockchip' as header file path【请注意,邮件由s...@google.com代发】

2019-04-01 Thread Kever Yang
On 04/02/2019 03:00 AM, Simon Glass wrote: > Hi Kever, > > On Sun, 31 Mar 2019 at 20:46, Kever Yang wrote: >> Hi Simon, >> >> >> On 04/01/2019 10:00 AM, Simon Glass wrote: >>> Hi Kever, >>> >>> On Sun, 31 Mar 2019 at 19:03, Kever Yang wrote: Hi Simon, On 03/31/2019 05:18

Re: [U-Boot] [PATCH 1/3] rockchip: arm: use 'arch-rockchip' for common header

2019-04-01 Thread Kever Yang
Hi Tom, Neil, On 04/01/2019 09:13 PM, Tom Rini wrote: > On Mon, Apr 01, 2019 at 09:12:07AM +0200, Neil Armstrong wrote: >> On 28/03/2019 04:01, Kever Yang wrote: >>> rockchip platform header file is in 'arch-rockchip' >>> instead of arch-$(SOC) for all SoCs. >>> >>> Signed-off-by: Kever Yang

[U-Boot] [PATCH] mtd: spi: Replace ad-hoc default implementation with spi_mem_op

2019-04-01 Thread Marek Vasut
Replace the ad-hoc erase operation implementation with a simple spi_mem_op implementation of the same functionality. This is a minor optimization and removal of the ad-hoc code. This however also changes the behavior of the execution of the erase opcode from two separate transfer requests to the

[U-Boot] [PATCH] mmc: Move tegra loopback disable option to be under tegra

2019-04-01 Thread Trent Piepho
This is a configuration option specific to the tegra controller. Doing it this way makes it show up directly under the tegra controller option, indented one level, as "Disable external clock loopback". The way it is now, it shows up at the end of the controller list, not indented, as if it's

[U-Boot] [PATCH] mmc: Move FSL_ESDHC under if MMC

2019-04-01 Thread Trent Piepho
The fsl esdhc driver was the only mmc driver that could be enabled if mmc support was off. It does not appear to compile in such a configuration. Move it to be inside the "if" that makes it conditional on MMC support. It's still possible to turn off DM_MMC and enable the driver. It looks like

[U-Boot] [PATCHv4 5/6] ARM: socfpga: use the pl310 driver to configure the cache

2019-04-01 Thread Dinh Nguyen
Find the UCLASS_CACHE driver to configure the cache controller's settings. Reviewed-by: Marek Vasut Reviewed-by: Simon Glass Signed-off-by: Dinh Nguyen --- arch/arm/mach-socfpga/misc.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git

[U-Boot] [PATCHv4 4/6] dm: cache: add the pl310 cache controller driver

2019-04-01 Thread Dinh Nguyen
Add a PL310 cache controller driver that is usually found on ARMv7(32-bit) devices. The driver configures the cache settings that can be found in the device tree files. This initial revision only configures basic settings(data & instruction prefetch, shared-override, data & tag latency). I

[U-Boot] [PATCHv4 3/6] dm: cache: Create a uclass for cache

2019-04-01 Thread Dinh Nguyen
The cache UCLASS will be used for configure settings that can be found in a CPU's L2 cache controller. Add a uclass and a test for cache. Reviewed-by: Simon Glass Signed-off-by: Dinh Nguyen --- v4: re-order includes and add Reviewed-by: v3: Add cache_get_info() to check for non-zero value

[U-Boot] [PATCHv4 6/6] configs: socfpga: add imply pl310 cache controller

2019-04-01 Thread Dinh Nguyen
Select the PL310 UCLASS_CACHE driver for SoCFPGA. Reviewed-by: Marek Vasut Reviewed-by: Simon Glass Signed-off-by: Dinh Nguyen --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index f42eccef80..f4c6262bb0 100644 ---

[U-Boot] [PATCHv4 2/6] ARM: pl310: Add macro's for handling tag and data latency mask

2019-04-01 Thread Dinh Nguyen
Add the PL310 macros for latency control setup, read and write bits. Reviewed-by: Marek Vasut Reviewed-by: Simon Glass Signed-off-by: Dinh Nguyen --- arch/arm/include/asm/pl310.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/include/asm/pl310.h b/arch/arm/include/asm/pl310.h

[U-Boot] [PATCHv4 1/6] Documentation: dts: Add pl310 cache controller dts documentation

2019-04-01 Thread Dinh Nguyen
Linux commit 8ecd7f5970c5 ("ARM: 8483/1: Documentation: l2c: Rename l2cc to l2c2x0") Linux docs: Documentation/devicetree/bindings/arm/l2c2x0.txt Copied from Linux kernel v5.0. "The documentation in the l2cc.txt is specific to the L2 cache controllers L2C210/L2C220/L2C310 (also known as

[U-Boot] [PATCHv4 0/6] dm: cache: add dm cache driver

2019-04-01 Thread Dinh Nguyen
Hi, This is V4 of the series to add a UCLASS_CACHE dm driver to handling the configuration of cache settings. Place this new driver under /drivers/cache. In this initial revision, the driver is only configuring what I think are essential cache settings. The more comprehensive cache settings can

Re: [U-Boot] [PATCH] DTS: Fix ETH PHY reset on HSC|DDC boards (imx53)

2019-04-01 Thread Lukasz Majewski
Hi Fabio, > Hi Lukasz, > > On Mon, Apr 1, 2019 at 11:02 AM Lukasz Majewski wrote: > > > > After the commit: "eth: dm: fec: Add gpio phy reset binding" > > SHA1: efd0b791069af93e9d439a70d1fe2ae8994dbbfa > > > > The FEC ETH driver switched to PHY GPIO reset performed with data > > defined in DTS.

[U-Boot] [PATCH v2 5/7] sound: tegra: Add a sound driver

2019-04-01 Thread Simon Glass
Add a sound driver for tegra devices. This connects the audio hub, I2S controller and audio codec to allow sound output. Signed-off-by: Simon Glass --- Changes in v2: None drivers/sound/Makefile | 2 +- drivers/sound/tegra_sound.c | 100 2 files

[U-Boot] [PATCH v2 3/7] tegra: sound: Add an audio hub driver

2019-04-01 Thread Simon Glass
Add a driver for the audio hub. This is modelled as a misc device which supports writing audio data from I2S. Signed-off-by: Simon Glass --- Changes in v2: - Fix 'I2C' typo arch/arm/include/asm/arch-tegra/tegra_ahub.h | 475 +++ drivers/sound/Kconfig|

[U-Boot] [PATCH v2 4/7] tegra: sound: Add an I2S driver

2019-04-01 Thread Simon Glass
Add a driver which supports transmitting digital sound to an audio codec. This uses fixed parameters as a device-tree binding is not currently defined. Signed-off-by: Simon Glass --- Changes in v2: - Drop setting of slot_ctrl from i2s_tx_init() arch/arm/include/asm/arch-tegra/tegra_i2s.h |

[U-Boot] [PATCH v2 1/7] tegra: Correct tegra124 clock name

2019-04-01 Thread Simon Glass
The first clock type appears to have and incorrect setting for out of the mux outputs. It should be CLK_M, not OSC. Fix it and its only user. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/mach-tegra/tegra124/clock.c | 2 +- board/nvidia/nyan-big/nyan-big.c | 2 +- 2 files

[U-Boot] [PATCH v2 6/7] tegra: nyan-big: Enable sound

2019-04-01 Thread Simon Glass
Enable sound output. With this, 'sound play 1000 400' emits a simple beep. Signed-off-by: Simon Glass --- Changes in v2: None configs/nyan-big_defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/configs/nyan-big_defconfig b/configs/nyan-big_defconfig index

[U-Boot] [PATCH v2 7/7] tegra: nyan: Add a README

2019-04-01 Thread Simon Glass
Add a short note about how to boot U-Boot on Nyan-big using tegrarcm. Signed-off-by: Simon Glass --- Changes in v2: None board/nvidia/nyan-big/README | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 board/nvidia/nyan-big/README diff --git

[U-Boot] [PATCH v2 2/7] tegra: Add a delay in clock_start_periph_pll()

2019-04-01 Thread Simon Glass
This function enables a peripheral clock and then immediately sets its divider. Add a delay to allow the clock to settle first. This matches the delay in other places which do a similar thing. Without this, the I2S device on Nyan does not init properly. Signed-off-by: Simon Glass --- Changes

[U-Boot] [PATCH v2 0/7] sound: Add sound support for Nyan

2019-04-01 Thread Simon Glass
This series adds sound support for Nyan. It allows simple beeps to be generated in U-Boot. This requires the addition of an I2S driver, an audio hub driver and a sound driver to pull things together. An existing audio codec (MAX98090) is used. Changes in v2: - Fix 'I2C' typo - Drop setting of

[U-Boot] [PATCH v4 2/2] dlmalloc: be compatible to tiny printf

2019-04-01 Thread Simon Goldschmidt
Convert debug output from '%#lx' to '0x%lx' to be compatible with tiny printf used in SPL. Signed-off-by: Simon Goldschmidt --- Changes in v4: - dumped clearing BSS before SPL board_init_f, only real bugfixes remain Changes in v3: - fixed summary ("stack" -> "heap") - enable

[U-Boot] [PATCH v4 0/2] spl: full-featured heap cleanups

2019-04-01 Thread Simon Goldschmidt
Since clearing BSS before board_init_r is clearly not accepted, let's just fix 2 bugs in dlmalloc and I'll handle the socfpga_a10 cleanup in a different way (see discussions in v1 to v3 of this series...). Changes in v4: - dumped clearing BSS before SPL board_init_f, only real bugfixes remain

[U-Boot] [PATCH v4 1/2] dlmalloc: fix malloc range at end of ram

2019-04-01 Thread Simon Goldschmidt
If the malloc range passed to mem_malloc_init() is at the end of address range and 'start + size' overflows to 0, following allocations fail as mem_malloc_end is zero (which looks like uninitialized). Fix this by subtracting 1 of 'start + size' overflows to zero. Signed-off-by: Simon Goldschmidt

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

2019-04-01 Thread Tom Rini
On Mon, Apr 01, 2019 at 10:00:14PM +0530, Jagan Teki wrote: > Hi Tom, > > Please pull this patch for v2019.04 release. > > thanks, > Jagan. > > The following changes since commit 48cf0d8c6d261f543bff12046a366ec3b832937d: > > Merge tag 'video-fixes-for-2019.04-rc4' of

Re: [U-Boot] Pull request: u-boot-imx u -boot-imx-201900401

2019-04-01 Thread Tom Rini
> Merge branch '2019-03-29-master-imports' (2019-03-29 10:53:28 -0400) > > are available in the Git repository at: > > git://www.denx.de/git/u-boot-imx.git tags/u-boot-imx-20190401 > > for you to fetch changes up to 00102ae52055e294ac37ae1380f37620f4a8bb26: > > pico

Re: [U-Boot] [PATCH 2/3] rockchip: use 'arch-rockchip' as header file path【请注意,邮件由s...@google.com代发】

2019-04-01 Thread Simon Glass
Hi Kever, On Sun, 31 Mar 2019 at 20:46, Kever Yang wrote: > > Hi Simon, > > > On 04/01/2019 10:00 AM, Simon Glass wrote: > > Hi Kever, > > > > On Sun, 31 Mar 2019 at 19:03, Kever Yang wrote: > >> Hi Simon, > >> > >> > >> On 03/31/2019 05:18 AM, Simon Glass wrote: > >>> Hi Kever, > >>> > >>> On

Re: [U-Boot] [PATCH] mmc: dw_mmc: Round up descriptor end to nearest multiple of cacheline size

2019-04-01 Thread Simon Glass
Hi Marek, On Sat, 30 Mar 2019 at 20:37, Marek Vasut wrote: > > On 3/30/19 10:18 PM, Simon Glass wrote: > > Hi Marek, > > > > On Sat, 23 Mar 2019 at 11:55, Marek Vasut wrote: > >> > >> The driver currently calculates the end address of cache flush operation > >> for the DMA descriptors by adding

[U-Boot] [PATCH v2] dw_mmc: turn on the IO supply

2019-04-01 Thread Urja Rannikko
Fixes the microSD slot on the ASUS C201. Signed-off-by: Urja Rannikko --- v2: use #if CONFIG_IS_ENABLED(DM_REGULATOR) - drivers/mmc/dw_mmc.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc.c index 93a836eac3..b04c1f9f41 100644 ---

Re: [U-Boot] [RFC 4/6] configs: exynos: Add new CONFIG_SYS_ODROID_USB config option

2019-04-01 Thread Anand Moon
Hi Krzysztof, On Mon, 1 Apr 2019 at 21:46, Krzysztof Kozlowski wrote: > > On Mon, 1 Apr 2019 at 17:50, Anand Moon wrote: > > > > Hi Krzysztof, > > > > On Mon, 1 Apr 2019 at 18:27, Krzysztof Kozlowski wrote: > > > > > > On Mon, 1 Apr 2019 at 13:53, Anand Moon wrote: > > > > > > > > Add new

Re: [U-Boot] [PATCH 1/6] fdt: boot_get_fdt: remove redundant zeroing out

2019-04-01 Thread Eugeniu Rosca
jFTR, this is superseded by https://patchwork.ozlabs.org/cover/1072785/ ("[v2,0/5] boot_get_fdt: clean up and use 'fdtaddr' as fallback for Android") ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v2 5/5] fdt: boot_get_fdt: android: use ENV 'fdtaddr' as fallback

2019-04-01 Thread Eugeniu Rosca
Hi All, especially the Android specialists, On Mon, Apr 01, 2019 at 12:52:52PM +0200, Eugeniu Rosca wrote: > Our platform doesn't store the DTB into the Android image second area, > but rather copies the DTB to RAM from a dedicated dtb.img partition [0], > prior to booting the Android image by

Re: [U-Boot] [RFC 6/6] arm: exynos: add usbnet_devaddr setting to env

2019-04-01 Thread Anand Moon
Hi Krzysztof, On Mon, 1 Apr 2019 at 18:34, Krzysztof Kozlowski wrote: > > On Mon, 1 Apr 2019 at 13:53, Anand Moon wrote: > > > > Add usbnet_devaddr mac address to extra env setting > > to avoid failure of ethernet driver while usb start. > > > > Odroid # usb start > > starting USB... > > USB0:

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

2019-04-01 Thread Jagan Teki
Hi Tom, Please pull this patch for v2019.04 release. thanks, Jagan. The following changes since commit 48cf0d8c6d261f543bff12046a366ec3b832937d: Merge tag 'video-fixes-for-2019.04-rc4' of git://git.denx.de/u-boot-video (2019-03-31 07:25:11 -0400) are available in the Git repository at:

Re: [U-Boot] [PATCH] clk: sunxi: a10: Add CLK_AHB_GMAC

2019-04-01 Thread Jagan Teki
On Thu, Mar 28, 2019 at 1:50 PM Jagan Teki wrote: > > CLK_AHB_GMAC was suppose to be part of previous commit > "clk: sunxi: Implement A10 EMAC clocks" add it so-that > we can get rid of sunxi_set_gate warning on boot message. > > Signed-off-by: Jagan Teki > --- Applied to u-boot-sunxi/master

Re: [U-Boot] [RFC 1/6] odroid: exynos: USB initialization on the U3/X2

2019-04-01 Thread Anand Moon
Hi Krzysztof, On Mon, 1 Apr 2019 at 18:18, Krzysztof Kozlowski wrote: > > On Mon, 1 Apr 2019 at 13:52, Anand Moon wrote: > > > > From: Tobias Jakobi > > > > Rename board_usb_init() to exynos_usb_init() and call it > > early in the Exynos EHCI driver when probing. > > > > This kind of works.

Re: [U-Boot] [PATCH] dm: Add a No-op uclass

2019-04-01 Thread Simon Glass
Hi Jean-Jacques, On Mon, 1 Apr 2019 at 05:32, Jean-Jacques Hiblot wrote: > > Hi Simon, > > On 30/03/2019 22:18, Simon Glass wrote: > > Hi Jean-Jacques, > > > > On Fri, 22 Mar 2019 at 10:44, Jean-Jacques Hiblot wrote: > >> This uclass is intended for devices that do not need any features from

Re: [U-Boot] [RFC 4/6] configs: exynos: Add new CONFIG_SYS_ODROID_USB config option

2019-04-01 Thread Krzysztof Kozlowski
On Mon, 1 Apr 2019 at 17:50, Anand Moon wrote: > > Hi Krzysztof, > > On Mon, 1 Apr 2019 at 18:27, Krzysztof Kozlowski wrote: > > > > On Mon, 1 Apr 2019 at 13:53, Anand Moon wrote: > > > > > > Add new CONFIG_SYS_ODROID_USB flag to avoid compliation > > > error on other development boards. > > >

Re: [U-Boot] [RFC 3/6] usb: exynos: add init_after_reset for usb reset

2019-04-01 Thread Krzysztof Kozlowski
On Mon, 1 Apr 2019 at 18:05, Anand Moon wrote: > > Hi Krzysztof, > > On Mon, 1 Apr 2019 at 18:25, Krzysztof Kozlowski wrote: > > > > On Mon, 1 Apr 2019 at 13:53, Anand Moon wrote: > > > > > > Some host controllers need addidional re-initialization > > > > Please run spell-check. > > > > > after

Re: [U-Boot] [RFC 2/6] odroid: exynos: usb clean up for U3/X2

2019-04-01 Thread Krzysztof Kozlowski
On Mon, 1 Apr 2019 at 17:57, Anand Moon wrote: > > Hi Krzysztof, > > On Mon, 1 Apr 2019 at 18:21, Krzysztof Kozlowski wrote: > > > > On Mon, 1 Apr 2019 at 13:52, Anand Moon wrote: > > > > > > Add board_usb_cleanup routine to cleanup after > > > de-registering it usb devices. Also fixed the > >

[U-Boot] [PATCH] usb: Make portspeed return a read-only string

2019-04-01 Thread Ismael Luceno Cortes
Current code is plain wrong, and there's no need to have a mutable string, so fix function type and remove the intermediate variable. Signed-off-by: Ismael Luceno --- cmd/usb.c| 18 +- common/usb_hub.c | 18 +- 2 files changed, 10 insertions(+), 26

Re: [U-Boot] [RFC 3/6] usb: exynos: add init_after_reset for usb reset

2019-04-01 Thread Anand Moon
Hi Krzysztof, On Mon, 1 Apr 2019 at 18:25, Krzysztof Kozlowski wrote: > > On Mon, 1 Apr 2019 at 13:53, Anand Moon wrote: > > > > Some host controllers need addidional re-initialization > > Please run spell-check. > > > after ehci_reset() so we add .init_after_reset callback > > which is

Re: [U-Boot] [RFC 2/6] odroid: exynos: usb clean up for U3/X2

2019-04-01 Thread Anand Moon
Hi Krzysztof, On Mon, 1 Apr 2019 at 18:21, Krzysztof Kozlowski wrote: > > On Mon, 1 Apr 2019 at 13:52, Anand Moon wrote: > > > > Add board_usb_cleanup routine to cleanup after > > de-registering it usb devices. Also fixed the > > compilation error for other board. > > Fix for build error should

Re: [U-Boot] [PATCH 1/2] tools/imx8m_image.sh: remove bashism

2019-04-01 Thread Stefano Babic
Hi Fabio, Otavio, On 01/04/19 16:14, Fabio Estevam wrote: > Hi Stefano, > > On Mon, Apr 1, 2019 at 11:06 AM Stefano Babic wrote: > >> Well, it looks like too much because I have 18.04, too, and I can build. >> I cannot say that Ubuntu users cannot build u-boot anymore. >> I guess you have

Re: [U-Boot] [RFC 4/6] configs: exynos: Add new CONFIG_SYS_ODROID_USB config option

2019-04-01 Thread Anand Moon
Hi Krzysztof, On Mon, 1 Apr 2019 at 18:27, Krzysztof Kozlowski wrote: > > On Mon, 1 Apr 2019 at 13:53, Anand Moon wrote: > > > > Add new CONFIG_SYS_ODROID_USB flag to avoid compliation > > error on other development boards. > > > > Fix below compilation error: > > Error: You must add new CONFIG

Re: [U-Boot] [RFC 5/6] arm: exynos: odroid: fix the confict scripaddr extra env setting

2019-04-01 Thread Anand Moon
Hi Krzysztof, On Mon, 1 Apr 2019 at 18:30, Krzysztof Kozlowski wrote: > > On Mon, 1 Apr 2019 at 13:53, Anand Moon wrote: > > > > fix the confict of scriptaddr address with ramdisk_addr_r > > Start with capital letter, so s/fix/Fix. End with a full-stop. > > > also add missing pxefile_addr_r

Re: [U-Boot] [PATCH 1/3] vsprintf: Support phys_addr_t specifier unconditionally

2019-04-01 Thread Thierry Reding
On Sat, Mar 30, 2019 at 03:19:27PM -0600, Simon Glass wrote: > On Tue, 12 Mar 2019 at 04:38, Thierry Reding wrote: > > > > From: Thierry Reding > > > > When phys_addr_t printf specifier support was first introduced in commit > > 1eebd14b7902 ("vsprintf: Add modifier for phys_addr_t"), it was

Re: [U-Boot] [PATCH] Rpi: Fix compilation error if CONFIG_USB is disabled

2019-04-01 Thread Tom Rini
On Mon, Apr 01, 2019 at 10:19:18AM +, Ajay Kaher wrote: > Few weeks ago sent patch (as in below mail) to include in U-Boot, > And still waiting for response and even not present in U-Boot mailing list. Can you please re-send the patch and ensure to Cc the maintainer? Thanks! > > As per

[U-Boot] [PATCH] board: sun50i: h6: Add Beelink GS1 initial support

2019-04-01 Thread Clément Péron
Beelink GS1 is an Allwinner H6 based TV box, which support: - Allwinner H6 Quad-core 64-bit ARM Cortex-A53 - GPU Mali-T720 - 2GB LPDDR3 RAM - 16GB eMMC - AXP805 PMIC - 1Gbps GMAC via RTL8211E - USB 2.0 Host, OTG - HDMI port - S/PDIF port - 5V/2A DC power supply - Wi-Fi/BT via Fn-Link 6222B-SRB

Re: [U-Boot] [PATCH 1/2] tools/imx8m_image.sh: remove bashism

2019-04-01 Thread Fabio Estevam
Hi Stefano, On Mon, Apr 1, 2019 at 11:06 AM Stefano Babic wrote: > Well, it looks like too much because I have 18.04, too, and I can build. > I cannot say that Ubuntu users cannot build u-boot anymore. > I guess you have /bin/sh -> dash, and /bin/sh -> bash solves the > problem, too. Or using

Re: [U-Boot] [PATCH 1/2] tools/imx8m_image.sh: remove bashism

2019-04-01 Thread Tom Rini
On Mon, Apr 01, 2019 at 03:46:20PM +0200, Stefano Babic wrote: > Hi Otavio, > > On 01/04/19 15:20, Otavio Salvador wrote: > > Hello everyone, > > > > On Wed, Feb 27, 2019 at 10:44 PM Fabio Estevam wrote: > >> On Wed, Jan 2, 2019 at 4:59 AM Baruch Siach wrote: > >>> Use a single '=' to test

Re: [U-Boot] [PATCH] DTS: Fix ETH PHY reset on HSC|DDC boards (imx53)

2019-04-01 Thread Fabio Estevam
Hi Lukasz, On Mon, Apr 1, 2019 at 11:02 AM Lukasz Majewski wrote: > > After the commit: "eth: dm: fec: Add gpio phy reset binding" > SHA1: efd0b791069af93e9d439a70d1fe2ae8994dbbfa > > The FEC ETH driver switched to PHY GPIO reset performed with data defined > in DTS. > For the HSC|DDC boards the

Re: [U-Boot] [PATCH 1/2] tools/imx8m_image.sh: remove bashism

2019-04-01 Thread Stefano Babic
Hi Fabio, On 01/04/19 15:49, Fabio Estevam wrote: > Hi Stefano, > > On Mon, Apr 1, 2019 at 10:46 AM Stefano Babic wrote: > >> The thing is in which conditions this is broken and why it should be >> fixed here and in this way. Yes, I admit, I have not pondered this as a >> big issue - it could

[U-Boot] [PATCH] DTS: Fix ETH PHY reset on HSC|DDC boards (imx53)

2019-04-01 Thread Lukasz Majewski
After the commit: "eth: dm: fec: Add gpio phy reset binding" SHA1: efd0b791069af93e9d439a70d1fe2ae8994dbbfa The FEC ETH driver switched to PHY GPIO reset performed with data defined in DTS. For the HSC|DDC boards the GPIO reset signal is active low and hence the wrong DTS description must be

[U-Boot] [PATCH] cosmetic: config: Remove empty #ifdefs

2019-04-01 Thread Lukasz Majewski
After running tools/moveconfig.py it turned out that for various boards there are an empty #ifdef statements. Remove them to clean u-boot source code. Signed-off-by: Lukasz Majewski --- include/configs/bg0900.h| 4 include/configs/dreamplug.h | 3 --- include/configs/ds109.h | 3

[U-Boot] [PATCH] cosmetic: Remove not needed string from kp_imx53.h config

2019-04-01 Thread Lukasz Majewski
Signed-off-by: Lukasz Majewski --- include/configs/kp_imx53.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/configs/kp_imx53.h b/include/configs/kp_imx53.h index 080eec47ca..3ea75fa120 100644 --- a/include/configs/kp_imx53.h +++ b/include/configs/kp_imx53.h @@ -20,8 +20,6 @@

Re: [U-Boot] [PATCH 1/2] tools/imx8m_image.sh: remove bashism

2019-04-01 Thread Otavio Salvador
On Mon, Apr 1, 2019 at 10:46 AM Stefano Babic wrote: > > This is still broken and the proposed patch does fix it. We should get > > this merged for 2019.04 release. > > > > Please Stefano, consider this for release (be it through your branch > > for directly by Tom). > > > > The thing is in which

Re: [U-Boot] [PATCH 1/2] tools/imx8m_image.sh: remove bashism

2019-04-01 Thread Fabio Estevam
Hi Stefano, On Mon, Apr 1, 2019 at 10:46 AM Stefano Babic wrote: > The thing is in which conditions this is broken and why it should be > fixed here and in this way. Yes, I admit, I have not pondered this as a > big issue - it could be also fixed replacing dash with bash on > Debian-like

Re: [U-Boot] [PATCH 1/2] tools/imx8m_image.sh: remove bashism

2019-04-01 Thread Stefano Babic
Hi Otavio, On 01/04/19 15:20, Otavio Salvador wrote: > Hello everyone, > > On Wed, Feb 27, 2019 at 10:44 PM Fabio Estevam wrote: >> On Wed, Jan 2, 2019 at 4:59 AM Baruch Siach wrote: >>> Use a single '=' to test string equality for compatibility with non-bash >>> shells. Otherwise, if /bin/sh

[U-Boot] [PATCH v2 5/5] fdt: boot_get_fdt: android: use ENV 'fdtaddr' as fallback

2019-04-01 Thread Eugeniu Rosca
Our platform doesn't store the DTB into the Android image second area, but rather copies the DTB to RAM from a dedicated dtb.img partition [0], prior to booting the Android image by calling bootm. Similar to [1], we find it useful to just call 'bootm' and have the right DTB being passed to OS

[U-Boot] [PATCH v2 3/5] fdt: boot_get_fdt: simplify no_fdt handling (non-functional)

2019-04-01 Thread Eugeniu Rosca
Increase the readability of boot_get_fdt(). No change in behavior is expected. Signed-off-by: Eugeniu Rosca --- Changes in v2: - NA - Link v1: https://patchwork.ozlabs.org/patch/1071588/ --- common/image-fdt.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git

[U-Boot] [PATCH v2 4/5] fdt: boot_get_fdt: android: compress handling (non-functional)

2019-04-01 Thread Eugeniu Rosca
Prepare for booting Android images which lack any DTB in the second area by using 'fdtaddr' environment variable as source/address of FDT. No functional/behavioral change expected in this patch. Signed-off-by: Eugeniu Rosca --- Changes in v2: - Restored fdt_totalsize() check - Link v1:

[U-Boot] [PATCH v2 2/5] fdt: boot_get_fdt: really boot w/o FDT when "goto no_fdt"

2019-04-01 Thread Eugeniu Rosca
The 'no_fdt' goto label was introduced by v2015.01 commit [0] and it had two review stages [1-2]. The *documented* purpose behind commit [0] is (excerpt from commit description): > allows both FDT and non-FDT kernels to boot by making the > third parameter to the bootm/bootz optional While [1]

[U-Boot] [PATCH v2 1/5] fdt: boot_get_fdt: remove redundant zeroing out

2019-04-01 Thread Eugeniu Rosca
Paranoid programming [1] lies at the foundation of proper software development, but the repetitive zeroing-out of output arguments in the context of the same function rather clutters the code and inhibits further refactoring/optimization than is doing any good. In boot_get_fdt(), we already

[U-Boot] [PATCH v2 0/5] boot_get_fdt: clean up and use 'fdtaddr' as fallback for Android

2019-04-01 Thread Eugeniu Rosca
The main feature added in this series is being able to boot Android images with empty/non-DTB contents in the second area by using the address stored in the 'fdtaddr' environment variable. More details in "fdt: boot_get_fdt: android: use ENV 'fdtaddr' as fallback". This is combined with a number

Re: [U-Boot] [PATCH] Rpi: Fix compilation error if CONFIG_USB is disabled

2019-04-01 Thread Ajay Kaher
Few weeks ago sent patch (as in below mail) to include in U-Boot, And still waiting for response and even not present in U-Boot mailing list. As per checkpatch.pl, there is following CHECK. However it doesn't have side-effects and similar to include/configs/rockchip-common.h: CHECK: Macro

Re: [U-Boot] [RFC 1/6] odroid: exynos: USB initialization on the U3/X2

2019-04-01 Thread Jack Mitchell
On 01/04/2019 13:57, Lukasz Majewski wrote: > Hi Anand, > >> From: Tobias Jakobi >> >> Rename board_usb_init() to exynos_usb_init() and call it >> early in the Exynos EHCI driver when probing. >> >> This kind of works. After a 'usb start; usb stop; usb start' >> cycle the attached devices are

Re: [U-Boot] [PATCH 1/2] tools/imx8m_image.sh: remove bashism

2019-04-01 Thread Otavio Salvador
Hello everyone, On Wed, Feb 27, 2019 at 10:44 PM Fabio Estevam wrote: > On Wed, Jan 2, 2019 at 4:59 AM Baruch Siach wrote: > > Use a single '=' to test string equality for compatibility with non-bash > > shells. Otherwise, if /bin/sh is dash, build fails: > > > > ./tools/imx8m_image.sh: 15: [:

Re: [U-Boot] [PATCH 1/3] rockchip: arm: use 'arch-rockchip' for common header

2019-04-01 Thread Tom Rini
On Mon, Apr 01, 2019 at 09:12:07AM +0200, Neil Armstrong wrote: > On 28/03/2019 04:01, Kever Yang wrote: > > rockchip platform header file is in 'arch-rockchip' > > instead of arch-$(SOC) for all SoCs. > > > > Signed-off-by: Kever Yang > > --- > > > > arch/arm/cpu/armv8/start.S | 4 > >

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

2019-04-01 Thread Tom Rini
On Fri, Mar 29, 2019 at 10:37:18PM +0100, Anatolij Gustschin wrote: > Hi Tom, > > please pull sunxi HDMI clock fix for v2019.04-rc4. > > Travis CI: https://travis-ci.org/vdsao/u-boot-video/builds/512749325 > > Thanks, > Anatolij > > The following changes since commit

Re: [U-Boot] [PULL] Please pull u-boot-rockchip.git:tags/rockchip-fixes-for-2019.04

2019-04-01 Thread Tom Rini
On Fri, Mar 29, 2019 at 09:35:49PM +0100, Philipp Tomsich wrote: > Tom, > > I’ve prepared two last-minute fixes for the rockchip architecture. > A clean bill-of-health from Travis is at > https://travis-ci.org/ptomsich/u-boot-rockchip/builds/513054998 > > Thanks, > Philipp. > > > The

Re: [U-Boot] [PATCH] dfu: usb: Update MAINTAINERS file regarding DFU/USB gadget support

2019-04-01 Thread Tom Rini
On Sat, Mar 30, 2019 at 04:22:21PM +0100, Lukasz Majewski wrote: > Signed-off-by: Lukasz Majewski Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [RFC 6/6] arm: exynos: add usbnet_devaddr setting to env

2019-04-01 Thread Krzysztof Kozlowski
On Mon, 1 Apr 2019 at 13:53, Anand Moon wrote: > > Add usbnet_devaddr mac address to extra env setting > to avoid failure of ethernet driver while usb start. > > Odroid # usb start > starting USB... > USB0: USB EHCI 1.00 > scanning bus 0 for devices... 3 USB Device(s) found >scanning

Re: [U-Boot] [RFC 5/6] arm: exynos: odroid: fix the confict scripaddr extra env setting

2019-04-01 Thread Krzysztof Kozlowski
On Mon, 1 Apr 2019 at 13:53, Anand Moon wrote: > > fix the confict of scriptaddr address with ramdisk_addr_r Start with capital letter, so s/fix/Fix. End with a full-stop. > also add missing pxefile_addr_r u-boot extras env setting. s/also/Also/ ... but there is no conflict in the first

Re: [U-Boot] [RFC 4/6] configs: exynos: Add new CONFIG_SYS_ODROID_USB config option

2019-04-01 Thread Krzysztof Kozlowski
On Mon, 1 Apr 2019 at 13:53, Anand Moon wrote: > > Add new CONFIG_SYS_ODROID_USB flag to avoid compliation > error on other development boards. > > Fix below compilation error: > Error: You must add new CONFIG options using Kconfig > The following new ad-hoc CONFIG options were detected: >

Re: [U-Boot] [RFC 1/6] odroid: exynos: USB initialization on the U3/X2

2019-04-01 Thread Lukasz Majewski
Hi Anand, > From: Tobias Jakobi > > Rename board_usb_init() to exynos_usb_init() and call it > early in the Exynos EHCI driver when probing. > > This kind of works. After a 'usb start; usb stop; usb start' > cycle the attached devices are recognized. > > Add small delay between

Re: [U-Boot] [RFC 3/6] usb: exynos: add init_after_reset for usb reset

2019-04-01 Thread Krzysztof Kozlowski
On Mon, 1 Apr 2019 at 13:53, Anand Moon wrote: > > Some host controllers need addidional re-initialization Please run spell-check. > after ehci_reset() so we add .init_after_reset callback > which is requires to reinit the phy after controller reset. s/requires/required/ but you do not

Re: [U-Boot] [RFC 2/6] odroid: exynos: usb clean up for U3/X2

2019-04-01 Thread Krzysztof Kozlowski
On Mon, 1 Apr 2019 at 13:52, Anand Moon wrote: > > Add board_usb_cleanup routine to cleanup after > de-registering it usb devices. Also fixed the > compilation error for other board. Fix for build error should be in separate commit. Please also quote the error you are fixing... because the code

Re: [U-Boot] [RFC 1/6] odroid: exynos: USB initialization on the U3/X2

2019-04-01 Thread Krzysztof Kozlowski
On Mon, 1 Apr 2019 at 13:52, Anand Moon wrote: > > From: Tobias Jakobi > > Rename board_usb_init() to exynos_usb_init() and call it > early in the Exynos EHCI driver when probing. > > This kind of works. After a 'usb start; usb stop; usb start' > cycle the attached devices are recognized. > >

[U-Boot] [PATCH v2 3/3] mach-meson: g12a: add DWC2 peripheral mode support

2019-04-01 Thread Neil Armstrong
Adds support for Amlogic G12A USB Device mode. The DWC2 Controller behind the Glue can be connected to an OTG capable PHY. The Glue setups the PHY mode. This patch implements Device mode support by adding a board_usb_init/cleanup setting up the DWC2 controller and switch the OTG capable port to

[U-Boot] [PATCH v2 2/3] phy: meson: add Amlogic G12A USB2 and USB3+PCIE PHY drivers

2019-04-01 Thread Neil Armstrong
This adds support for the USB PHYs found in the Amlogic G12A SoC Family. The USB2 PHY supports Host and/or Peripheral mode, depending on it's position. The first PHY is only used as Host, but the second supports Dual modes defined by the USB Control Glue HW in front of the USB Controllers. The

[U-Boot] [PATCH v2 1/3] usb: dwc3: Add Meson G12A USB Glue

2019-04-01 Thread Neil Armstrong
Adds support for Amlogic G12A USB Control Glue HW. The Amlogic G12A SoC Family embeds 2 USB Controllers : - a DWC3 IP configured as Host for USB2 and USB3 - a DWC2 IP configured as Peripheral USB2 Only A glue connects these both controllers to 2 USB2 PHYs, and optionnally to an USB3+PCIE Combo

[U-Boot] [PATCH v2 0/3] ARM: meson: Add G12A USB Support

2019-04-01 Thread Neil Armstrong
This patchset adds support for USB on Amlogic G12A SoCs. This patchset is composed with : - PHY Drivers - USB Control Glue driver - G12A board setup for Device mode Device Tree nodes will be added in a separate patchset when applied on a tagged Linux tree. The Amlogic G12A USB Complex is

  1   2   3   >