[U-Boot] [PATCH v4 2/2] mmc: sunxi: run calibration on A64

2018-06-01 Thread Vasily Khoruzhick
Along with using new mode it fixes eMMC instability on Pinebook Signed-off-by: Vasily Khoruzhick --- arch/arm/include/asm/arch-sunxi/mmc.h | 6 +- drivers/mmc/sunxi_mmc.c | 11 +++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v4 1/2] sunxi-mmc: use new mode on A64

2018-06-01 Thread Vasily Khoruzhick
That is necessary for using automatic calibration on A64 eMMC. Signed-off-by: Vasily khoruzhick --- arch/arm/mach-sunxi/Kconfig | 1 + drivers/mmc/sunxi_mmc.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index

[U-Boot] [PATCH v4 0/2] sunxi: fix eMMC stability issues on A64

2018-06-01 Thread Vasily Khoruzhick
eMMC seems to require new clocking mode and calibration on A64, otherwise it is pretty unstable on some boards (e.g. Pinebook) with some eMMCs. v2: - improve comment about calibration for eMMC on A64 - simplify ifdef-s around configuring delays v3: - fix fallout due to ifdef simplification in

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

2018-06-01 Thread Tom Rini
On Fri, Jun 01, 2018 at 09:24:58PM +0200, Daniel Schwierzeck wrote: > Travis CI build: > > https://travis-ci.org/danielschwierzeck/u-boot/builds/386679112 > > > > The following changes since commit c3c863880479edeb5b08226e622d13c91326e4a7: > > add FIT data-position & data-offset property

Re: [U-Boot] [GIT PULL] Xilinx changes for v2018.07-2

2018-06-01 Thread Tom Rini
On Fri, Jun 01, 2018 at 03:23:33PM +0200, Michal Simek wrote: > Hi Tom, > > please pull these changes to your tree. > Buildman and travis looks good > https://travis-ci.org/michalsimek/u-boot/builds/386578029 > > Thanks, > Michal > > The following changes since commit

Re: [U-Boot] [PATCH v3 1/2] sunxi-mmc: use new mode on A64

2018-06-01 Thread Vasily Khoruzhick
On Fri, Jun 1, 2018 at 1:42 AM Maxime Ripard wrote: > > On Thu, May 31, 2018 at 09:43:20AM -0700, Vasily Khoruzhick wrote: > > On Thu, May 31, 2018 at 5:00 AM, Maxime Ripard > > wrote: > > > On Wed, May 30, 2018 at 09:02:18PM -0700, Vasily Khoruzhick wrote: > > >> That is necessary for using

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

2018-06-01 Thread Marek Vasut
The following changes since commit c3c863880479edeb5b08226e622d13c91326e4a7: add FIT data-position & data-offset property support (2018-05-26 18:19:19 -0400) are available in the Git repository at: git://git.denx.de/u-boot-sh.git master for you to fetch changes up to

[U-Boot] [PATCH V2] spl: fit: Fix support for loading FPGA bitstream

2018-06-01 Thread Marek Vasut
Move the FPGA loading from IS_ENABLED(CONFIG_SPL_OS_BOOT) && IS_ENABLED(CONFIG_SPL_GZIP) conditional. The FPGA loading can be used without OS loading and GZIP support in SPL. This issue was most likely induced by some merge conflict, so fix it. Signed-off-by: Marek Vasut Cc: Tom Rini --- V2:

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

2018-06-01 Thread Daniel Schwierzeck
Travis CI build: https://travis-ci.org/danielschwierzeck/u-boot/builds/386679112 The following changes since commit c3c863880479edeb5b08226e622d13c91326e4a7: add FIT data-position & data-offset property support (2018-05-26 18:19:19 -0400) are available in the Git repository at:

Re: [U-Boot] [PATCH] spl: fit: Fix support for loading FPGA bitstream

2018-06-01 Thread Tom Rini
On Thu, May 31, 2018 at 06:09:14PM +0200, Marek Vasut wrote: > Move the FPGA loading from IS_ENABLED(CONFIG_SPL_OS_BOOT) && > IS_ENABLED(CONFIG_SPL_GZIP) conditional. The FPGA loading can > be used without OS loading and GZIP support in SPL. This issue > was most likely induced by some merge

Re: [U-Boot] [PATCH] arm: sunxi: Add support for Pengpod 1000 tablet

2018-06-01 Thread Jagan Teki
On Fri, Jun 1, 2018 at 11:37 PM, Bob Ham wrote: > On 01/06/18 05:56, Jagan Teki wrote: >> On Fri, Jun 1, 2018 at 2:59 AM, Bob Ham wrote: > >>> I was going to send the Linux .dts after the U-Boot .dts was accepted, >>> in case there were changes needed. >> >> It could be other way around, try to

Re: [U-Boot] [PATCH] arm: sunxi: Add support for Pengpod 1000 tablet

2018-06-01 Thread Bob Ham
On 01/06/18 05:56, Jagan Teki wrote: > On Fri, Jun 1, 2018 at 2:59 AM, Bob Ham wrote: >> I was going to send the Linux .dts after the U-Boot .dts was accepted, >> in case there were changes needed. > > It could be other way around, try to send Linux first. Sent. Out of interest, why Linux

Re: [U-Boot] [PATCH] sandbox_flattree: Switch to TPMv2 support

2018-06-01 Thread Tom Rini
On Fri, Jun 01, 2018 at 09:25:19AM -0600, Simon Glass wrote: > +Miquel due to sandbox TPM issue > > Hi Tom, > > On 25 May 2018 at 06:27, Tom Rini wrote: > > In order to have the test.py tests for TPMv2 run automatically we need > > to have one of our sandbox builds use TPMv2 rather than TPMv1.

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

2018-06-01 Thread Tom Rini
On Thu, May 31, 2018 at 08:06:20PM +0200, Marek Vasut wrote: > The following changes since commit c3c863880479edeb5b08226e622d13c91326e4a7: > > add FIT data-position & data-offset property support (2018-05-26 > 18:19:19 -0400) > > are available in the Git repository at: > >

Re: [U-Boot] Please pull ARC changes for v2018.07-rc1

2018-06-01 Thread Tom Rini
On Thu, May 31, 2018 at 05:22:51PM +, Alexey Brodkin wrote: > Hi Tom, > > The following changes since commit c3c863880479edeb5b08226e622d13c91326e4a7: > > add FIT data-position & data-offset property support (2018-05-26 18:19:19 > -0400) > > are available in the Git repository at: > >

Re: [U-Boot] [RFC][DO NOT APPLY] binman: Switch to 'python-coverage'

2018-06-01 Thread Tom Rini
On Fri, Jun 01, 2018 at 08:27:03AM -0600, Simon Glass wrote: > Hi Tom, > > On 26 May 2018 at 11:06, Tom Rini wrote: > > The most portable way to get access to coverage is to invoke it as > > 'python-coverage'. > > > > Cc: Simon Glass > > Signed-off-by: Tom Rini > > --- > > So, here's the set

Re: [U-Boot] [PATCH] sunxi: use CONFIG_DEFAULT_FDT_FILE everywhere

2018-06-01 Thread Martin Kelly
On 06/01/2018 04:05 AM, Maxime Ripard wrote: On Thu, May 31, 2018 at 05:59:16PM -0700, Martin Kelly wrote: Currently, sunxi-common.h ignores CONFIG_DEFAULT_FDT_FILE and assumes the kernel fdtfile and the u-boot devicetree names are the same. Although this is typically the case, sometimes you

Re: [U-Boot] [PATCH] sunxi: use CONFIG_DEFAULT_FDT_FILE everywhere

2018-06-01 Thread Martin Kelly
On 05/31/2018 07:45 PM, klaus.go...@theobroma-systems.com wrote: On 01.06.2018, at 02:59, Martin Kelly wrote: Currently, sunxi-common.h ignores CONFIG_DEFAULT_FDT_FILE and assumes the kernel fdtfile and the u-boot devicetree names are the same. Although this is typically the case, sometimes

[U-Boot] [PATCH 4/4] rockchip: rk3399: set CONFIG_MKIMAGE_DTC_PATH

2018-06-01 Thread Vicente Bergas
From: Vicente Bergas U-Boot has a built-in dtc. Using it removes one dependency from the host. Signed-off-by: Vicente Bergas --- configs/evb-rk3399_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/evb-rk3399_defconfig b/configs/evb-rk3399_defconfig index

[U-Boot] [PATCH 2/4] rockchip: rk3399: use make_fit_atf instead of make_fit_atf.py

2018-06-01 Thread Vicente Bergas
From: Vicente Bergas Signed-off-by: Vicente Bergas --- configs/evb-rk3399_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/evb-rk3399_defconfig b/configs/evb-rk3399_defconfig index 05ad0da336..69a4cc2239 100644 --- a/configs/evb-rk3399_defconfig +++

[U-Boot] [PATCH 3/4] rockchip: rk3399: disable CONFIG_SPL_OF_PLATDATA

2018-06-01 Thread Vicente Bergas
From: Vicente Bergas It has been tested with this option disabled and it works fine. The benefit of doing so is that this is the last dependency on python to build U-Boot for the Sapphire board. Signed-off-by: Vicente Bergas --- configs/evb-rk3399_defconfig | 1 - 1 file changed, 1

[U-Boot] [PATCH 1/4] add make_fit_atf in tools

2018-06-01 Thread Vicente Bergas
From: Vicente Bergas make_fit_atf generates an .its file based on U-Boot and ATF .elf files. It also extracts all loadable sections from ATF. It tries to somewhat mimic the behaviour of arch/arm/mach-rockchip/make_fit_atf.py Signed-off-by: Vicente Bergas --- tools/Makefile | 2 +

[U-Boot] [PATCH 0/4] rockchip: Reduce prerequisites from the host

2018-06-01 Thread Vicente Bergas
From: Vicente Bergas This patch series remove the dependency on python and dtc from the host for the Sapphire board. It does not conform to the U-Boot coding style. It has been posted here for informational purposes only. If there is interest in merging it, feel free to modify it at will, it is

Re: [U-Boot] [PATCH] spi: cadence_qspi: Change to use devfdt_get_addr_index()

2018-06-01 Thread Jagan Teki
On Mon, May 7, 2018 at 3:12 PM, Ley Foon Tan wrote: > Change to use devfdt_get_addr_index() function to get fdt address. > > Original code has compilation warning below: > > drivers/spi/cadence_qspi.c: In function ‘cadence_spi_ofdata_to_platdata’: > drivers/spi/cadence_qspi.c:297:18: warning:

Re: [U-Boot] [PATCH v10 00/35] phy: sunxi: Add Allwinner sun4i USB PHY

2018-06-01 Thread Jagan Teki
On Mon, May 28, 2018 at 4:48 PM, Jagan Teki wrote: > This series rework of previous version where it removes legacy > usb phy handling and added phy driver on generic-phy framework. > > Current implementation phy driver is unable to get pinctrl, clock > and reset details from DT since the dm code

[U-Boot] [PATCH v4] board: sun50i: Add Amarula A64-Relic initial support

2018-06-01 Thread Jagan Teki
Amarula A64-Relic is A64 based IoT device, which support - Allwinner A64 Cortex-A53 - Mali-400MP2 GPU - AXP803 PMIC - 1GB DDR3 RAM - 8GB eMMC - AP6330 Wifi/BLE - MIPI-DSI - CSI: OV5640 sensor - USB OTG - 12V DC power supply Signed-off-by: Jagan Teki --- Changes for v4: - Drop

[U-Boot] [PATCH v2 12/12] binman: Mark 'align-end' as implemented

2018-06-01 Thread Simon Glass
The documentation says this is not implemented, but it is. Update the documentation, and clarify its operation. Signed-off-by: Simon Glass --- Changes in v2: None tools/binman/README | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/binman/README

[U-Boot] [PATCH v2 08/12] binman: Allow a single test to be executed

2018-06-01 Thread Simon Glass
Provide an easy way to execute a single binman test by specifying it on the command line. Signed-off-by: Simon Glass --- Changes in v2: None tools/binman/binman.py | 21 + 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/tools/binman/binman.py

[U-Boot] [PATCH v2 11/12] binman: Add support for adding a name prefix to entries

2018-06-01 Thread Simon Glass
Sometimes we have several sections which repeat the same entries (e.g. for a read-only and read-write version of the same section). It is useful to be able to tell these entries apart by name. Add a new 'name-prefix' property for sections, which causes all entries within that section to have a

[U-Boot] [PATCH v2 09/12] binman: Tidy up some docs and comments

2018-06-01 Thread Simon Glass
Fix a few missing comments and tidy up some existing ones. Signed-off-by: Simon Glass --- Changes in v2: None tools/binman/README | 6 +++--- tools/binman/ftest.py | 29 +++-- tools/binman/image.py | 5 + 3 files changed, 27 insertions(+), 13 deletions(-) diff

[U-Boot] [PATCH v2 10/12] binman: Add support for outputing a map file

2018-06-01 Thread Simon Glass
It is useful to be able to see a list of regions in each image produced by binman. Add a -m option to output this information in a '.map' file alongside the image file. Signed-off-by: Simon Glass --- Changes in v2: None tools/binman/README | 20 +++-

[U-Boot] [PATCH v2 07/12] binman: Add documentation for pos-unset property

2018-06-01 Thread Simon Glass
This property is not documented. Add a note to the README. Signed-off-by: Simon Glass --- Changes in v2: None tools/binman/README | 7 +++ 1 file changed, 7 insertions(+) diff --git a/tools/binman/README b/tools/binman/README index 5ef1246f296..32d89194dd0 100644 ---

[U-Boot] [PATCH v2 06/12] binman: Add support for sections

2018-06-01 Thread Simon Glass
It is useful to be able to split an image into multiple sections, each with its own size and position, for cases where a flash device has read-only and read-write portions. Add support for this. Signed-off-by: Simon Glass --- Changes in v2: - Add SPDX tag to .dts file tools/binman/README

[U-Boot] [PATCH v2 05/12] binman: Avoid setting sys.path globally

2018-06-01 Thread Simon Glass
At present we set the Python path at the start of binman so we can read modules in the 'etype' directory. This is a bit messy since it affects 'import' statements through binman. Adjust the code to set the path locally, just where it is needed. Move the 'entry' module in with the other base

[U-Boot] [PATCH v2 04/12] binman: Rename Entry property to 'section'

2018-06-01 Thread Simon Glass
Entries are now passed a Section object rather than an Image. Rename this property to avoid confusion. Signed-off-by: Simon Glass --- Changes in v2: None tools/binman/etype/_testing.py| 4 ++-- tools/binman/etype/blob.py| 4 ++--

[U-Boot] [PATCH v2 03/12] binman: Rename ELF parameters to 'section'

2018-06-01 Thread Simon Glass
We now pass a Section object to these functions rather than an Image. Rename the parameters to avoid confusion. Signed-off-by: Simon Glass --- Changes in v2: None tools/binman/elf.py | 10 +- tools/binman/elf_test.py | 28 ++--

[U-Boot] [PATCH v2 02/12] binman: Refactor much of the image code into 'section'

2018-06-01 Thread Simon Glass
We want to support multiple sections within a single image. To do this, move most of the Image class implementation into a new Section class. An Image contains only a single Section, but at some point we will support a new 'section' entry, thus allowing Sections within Sections. Use the name

[U-Boot] [PATCH v2 01/12] binman: Allow unit addresses for binaries

2018-06-01 Thread Simon Glass
Allow the same binary to appear multiple times in an image by using the device-tree unit-address feature (u-boot@0, u-boot@1). Signed-off-by: Simon Glass --- Changes in v2: - Add SPDX tag to .dts file tools/binman/README | 4 tools/binman/etype/entry.py | 5

[U-Boot] [PATCH v2 00/12] binman: A few more features

2018-06-01 Thread Simon Glass
This series ads a few more features to binman, principally the ability to nest entries within other entries, to form hierarchical images. Also included are support for a map file and some docs tidy-ups. Changes in v2: - Add SPDX tag to .dts file - Put SPDX on the first line in bsection.py Simon

Re: [U-Boot] [PATCH] sandbox_flattree: Switch to TPMv2 support

2018-06-01 Thread Simon Glass
+Miquel due to sandbox TPM issue Hi Tom, On 25 May 2018 at 06:27, Tom Rini wrote: > In order to have the test.py tests for TPMv2 run automatically we need > to have one of our sandbox builds use TPMv2 rather than TPMv1. Switch > sandbox_flattree over to this style of TPM. The problem seems to

Re: [U-Boot] [PATCH v3] board: sun50i: Add Amarula A64-Relic initial support

2018-06-01 Thread Maxime Ripard
On Thu, May 31, 2018 at 03:13:15PM +0530, Jagan Teki wrote: > On Thu, May 31, 2018 at 3:07 PM, Maxime Ripard > wrote: > > On Tue, May 29, 2018 at 09:50:39PM +0530, Jagan Teki wrote: > >> On Tue, May 29, 2018 at 9:44 PM, Maxime Ripard > >> wrote: > >> > On Mon, May 28, 2018 at 04:34:43PM +0530,

Re: [U-Boot] [PATCH v2 1/2] watchdog: driver support for fsl-lsch2

2018-06-01 Thread York Sun
On 06/01/2018 12:37 AM, Xiaoliang Yang wrote: > Support watchdog driver for fsl-lsch2. If you want to use it, > please enable CONFIG_IMX_WATCHDOG, and CONFIG_HW_WATCHDOG. > define CONFIG_WATCHDOG_TIMEOUT_MSECS to set watchdog timeout. > > Signed-off-by: Xiaoliang Yang > --- >

Re: [U-Boot] [PATCH 00/12] binman: A few more features

2018-06-01 Thread Simon Glass
Hi Tom, On 28 May 2018 at 13:17, Tom Rini wrote: > On Sat, May 26, 2018 at 04:18:45PM -0600, Simon Glass wrote: >> Hi, >> >> On 15 May 2018 at 19:52, Simon Glass wrote: >> > This series ads a few more features to binman, principally the ability to >> > nest entries within other entries, to form

Re: [U-Boot] [RFC][DO NOT APPLY] binman: Switch to 'python-coverage'

2018-06-01 Thread Simon Glass
Hi Tom, On 26 May 2018 at 11:06, Tom Rini wrote: > The most portable way to get access to coverage is to invoke it as > 'python-coverage'. > > Cc: Simon Glass > Signed-off-by: Tom Rini > --- > So, here's the set of problems I have. First, running 'pip install > coverage' doesn't get me a

Re: [U-Boot] [PATCH v4 4/4] net: designware: Add reset ctrl to driver

2018-06-01 Thread Simon Glass
On 1 June 2018 at 02:45, Ley Foon Tan wrote: > Add code to reset all reset signals as in Ethernet DT node. A reset property > is an optional feature, > so only print out a warning and do not fail if a reset property is not > present. > > If a reset property is discovered, then use it to

Re: [U-Boot] [PATCH v4 1/4] include: reset: check CONFIG_SPL_RESET_SUPPORT

2018-06-01 Thread Simon Glass
Hi, On 1 June 2018 at 02:45, Ley Foon Tan wrote: > Add checking for CONFIG_SPL_RESET_SUPPORT to fix compilation error when > CONFIG_DM_RESET is enabled but CONFIG_SPL_RESET_SUPPORT is disabled in SPL > build. > > Signed-off-by: Ley Foon Tan > --- > include/reset.h | 3 ++- > 1 file changed, 2

Re: [U-Boot] [PATCH v4 3/4] serial: ns16550: Add reset ctrl to driver

2018-06-01 Thread Simon Glass
On 1 June 2018 at 02:45, Ley Foon Tan wrote: > Add code to reset all reset signals as in serial DT node. A reset property is > an optional feature, > so do not fail if a reset property is not present. > > If a reset property is discovered, then use it to deassert, thus bringing the > IP out of

Re: [U-Boot] [PATCH v4 2/4] mmc: dwmmc: socfpga: Add reset ctrl to driver

2018-06-01 Thread Simon Glass
On 1 June 2018 at 02:45, Ley Foon Tan wrote: > Add code to reset all reset signals as in mmc DT node. A reset property is an > optional feature, > so only print out a warning and do not fail if a reset property is not > present. > > If a reset property is discovered, then use it to deassert,

Re: [U-Boot] [PATCH 5/5] arm: dts: socfpga: stratix10: update pdma

2018-06-01 Thread Simon Glass
On 31 May 2018 at 02:08, wrote: > From: Tien Fong Chee > > Update pdma properties for Stratix 10 > > Signed-off-by: Tien Fong Chee > --- > arch/arm/dts/socfpga_stratix10.dtsi | 20 > 1 file changed, 20 insertions(+) Reviewed-by: Simon Glass Is there a DT binding file

Re: [U-Boot] [PATCH 4/5] include: dma: Update the function description for dma_memcpy

2018-06-01 Thread Simon Glass
Hi, On 31 May 2018 at 02:08, wrote: > From: Tien Fong Chee > > Update the dma_memcpy description on return argument for DMA330 driver. > > Signed-off-by: Tien Fong Chee > --- > include/dma.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/include/dma.h

Re: [U-Boot] [PATCH 3/5] drivers: dma: Factor out dma_get_device from DMA class function

2018-06-01 Thread Simon Glass
On 31 May 2018 at 02:08, wrote: > From: Tien Fong Chee > > Factor out the dma_get_device from DMA class function so caller can > set some configuration and changes on the DMA device structure which > is return by calling dma_get_device before device instance is processed by > DMA class

Re: [U-Boot] [PATCH 2/5] drivers: dma: Add function to zeroes a range of destination such as memory

2018-06-01 Thread Simon Glass
Hi Tien, On 31 May 2018 at 02:08, wrote: > From: Tien Fong Chee > > This new DMA class function enables DMA being used for initializing > a range of destination such as memory to zeros. This is quite useful to > help accelerating the performance in scrubbing memory when ECC is enabled. > >

Re: [U-Boot] [PATCH 1/5] drivers: dma: Enable DMA-330 driver support

2018-06-01 Thread Simon Glass
Hi Tien, On 31 May 2018 at 02:08, wrote: > From: Tien Fong Chee > > Enable DMAC driver support for DMA-330 controller. > The driver is also compatible to PL330 product. > > Signed-off-by: Tien Fong Chee > --- > drivers/dma/Kconfig |9 +- > drivers/dma/Makefile |1 + >

Re: [U-Boot] [PATCH] power: regulator: denied disable on always-on regulator

2018-06-01 Thread Simon Glass
On 31 May 2018 at 01:57, Patrice Chotard wrote: > From: Patrick Delaunay > > Don't disable regulator which are tagged as "regulator-always-on" in DT. > > Signed-off-by: Patrick Delaunay > Signed-off-by: Patrice Chotard > --- > > drivers/power/regulator/regulator-uclass.c | 5 + > 1 file

Re: [U-Boot] [PATCH v2 1/3] cmd: fpga: Reorder the arguments parsing code

2018-06-01 Thread Michal Simek
On 31.5.2018 11:40, Siva Durga Prasad Paladugu wrote: > This patch modifies the arguments parsing code by parsing > based on requested operation for fpga loadfs and then > parses the most common/basic args for other fpga load > commands. This makes it easy for new command extensions > or additions

[U-Boot] [GIT PULL] Xilinx changes for v2018.07-2

2018-06-01 Thread Michal Simek
Hi Tom, please pull these changes to your tree. Buildman and travis looks good https://travis-ci.org/michalsimek/u-boot/builds/386578029 Thanks, Michal The following changes since commit c3c863880479edeb5b08226e622d13c91326e4a7: add FIT data-position & data-offset property support

Re: [U-Boot] [PATCH v2 0/7] Improvements for the dwc3_generic driver

2018-06-01 Thread Michal Simek
Hi, On 29.5.2018 14:36, Jean-Jacques Hiblot wrote: > This series aims at bringing improvements to the dwc3_generic driver so > that it can be used by most of the platforms using the dwc3 controller. > This series applies on top of the master branch of USB tree. > It also also available on github:

Re: [U-Boot] [PATCH v2 1/7] usb: gadget: Do not call board_usb_xxx() directly in USB gadget drivers

2018-06-01 Thread Lukasz Majewski
Hi Jean-Jacques, > Add 2 functions to wrap the calls to board_usb_init() and > board_usb_cleanup(). > This is a preparatory work for DM support for UDC drivers > (DM_USB_DEV). > > Signed-off-by: Jean-Jacques Hiblot > > --- > > Changes in v2: > - Updated commit log > - Fixed typo in thordown.c

Re: [U-Boot] [PATCH v2 2/7] usb: introduce a separate config option for DM USB device

2018-06-01 Thread Lukasz Majewski
Hi Jean-Jacques, > Using CONFIG_DM_USB for this purpose prevents using DM_USB for host > and not for device. > > Signed-off-by: Jean-Jacques Hiblot > > --- > > Changes in v2: > - select DM_USB_DEV by default for zynqmp platforms > > arch/arm/Kconfig| 2 ++ >

Re: [U-Boot] [PATCH] sunxi: use CONFIG_DEFAULT_FDT_FILE everywhere

2018-06-01 Thread Maxime Ripard
On Thu, May 31, 2018 at 05:59:16PM -0700, Martin Kelly wrote: > Currently, sunxi-common.h ignores CONFIG_DEFAULT_FDT_FILE and assumes > the kernel fdtfile and the u-boot devicetree names are the same. > Although this is typically the case, sometimes you might want to > customize one of these

Re: [U-Boot] [PATCH v2 1/2] watchdog: driver support for fsl-lsch2

2018-06-01 Thread Xiaoliang Yang
v1 -> v2: Because of imx_watchdog.c driver not supports all layerscape SoCs, change to build imx_watchdog.o only when enable IMX_WATCHDOG for fsl-lsch2 SoCs. Add IMX_WATCHDOG in drivers/watchdog/Kconfig. Changes in v2: drivers/watchdog/Kconfig |6 ++

[U-Boot] [PATCH v2 2/2] watchdog: Kconfig: add config to disable wdog reset

2018-06-01 Thread Xiaoliang Yang
Add Kconfig support for CONFIG_WATCHDOG_RESET_DISABLE, use this config to disable watchdog reset in imx_watchdog driver, so that the watchdog will not be fed in u-boot. Signed-off-by: Xiaoliang Yang --- arch/arm/cpu/armv8/fsl-layerscape/doc/README.lsch2 |3 +++ drivers/watchdog/Kconfig

[U-Boot] [PATCH v2 1/2] watchdog: driver support for fsl-lsch2

2018-06-01 Thread Xiaoliang Yang
Support watchdog driver for fsl-lsch2. If you want to use it, please enable CONFIG_IMX_WATCHDOG, and CONFIG_HW_WATCHDOG. define CONFIG_WATCHDOG_TIMEOUT_MSECS to set watchdog timeout. Signed-off-by: Xiaoliang Yang --- arch/arm/cpu/armv8/fsl-layerscape/doc/README.lsch2 | 10 ++

Re: [U-Boot] [PATCH 1/2] watchdog: driver support for layerscape

2018-06-01 Thread Xiaoliang Yang
Hi York, I think it's better not to affect the original i.mx SoCs. If not in i.mx SoCs, we can enable it by define CONFIG_IMX_WATCHDOG in config file. Or do you think it's better to use "select IMX_WATCHDOG" to enable it in default for our LSCH2 SoCs/platforms? Here is the patch I have

Re: [U-Boot] [PATCH 1/2] watchdog: driver support for layerscape

2018-06-01 Thread Xiaoliang Yang
Hi York, Sure, thanks for your suggestion. I'll add IMX_WATCHDOG in Kconfig, users can enable it for the platforms they needed. I will push v2 patch later, please help to review it, thanks. Regards, Xiaoliang Yang -Original Message- From: York Sun Sent: 2018年6月1日 11:20 To: Xiaoliang

[U-Boot] DRAM clock frequency issue

2018-06-01 Thread Greg Maitz
Hi - I have a target Atheros 9344 board on which I have loaded U-boot version 1.23.2. On the reference board, the DRAM clock frequency has been set to 400 MHz and it works well. But when the same clock frequency is used on my target board , mtest (memory test) fails. However, when I reduced the

Re: [U-Boot] Exception Level switching seems broken on RK3399

2018-06-01 Thread Vicente Bergas
On Thu, May 24, 2018 at 7:05 PM, Dr. Philipp Tomsich wrote: > Vincente, > > On 24 May 2018, at 18:48, Vicente Bergas wrote: > > Hello Philipp, > your answer is much appreciated. > > On Thu, May 24, 2018 at 1:07 PM, Dr. Philipp Tomsich > wrote: > > Vincente, > > On 19 May 2018, at 16:58, Vicente

Re: [U-Boot] inappropriate PCI configuration on arm64 qemu?

2018-06-01 Thread Tuomas Tynkkynen
On 06/01/2018 10:21 AM, AKASHI Takahiro wrote: Tuomas, On Thu, May 31, 2018 at 01:32:20PM +0300, Tuomas Tynkkynen wrote: Hi Akashi, On 05/31/2018 08:05 AM, AKASHI Takahiro wrote: Simon, On Wed, May 30, 2018 at 01:18:30PM -0600, Simon Glass wrote: +Tuomas Hi Akashi, On 28 May 2018 at

[U-Boot] build fail due to dependence error

2018-06-01 Thread Kever Yang
Hi Guys, I met below error from time to time when build U-Boot project. fixdep: error opening config file: arch/arm/include/asm/arch/hardware.h: No such file or directory     The folder 'arch/arm/include/asm/arch' is a link for 'arch/arm/include/asm/arch-rockchip', which is dynamic

Re: [U-Boot] [PATCH] spi: cadence_qspi: Fix compilation warning

2018-06-01 Thread Marek Vasut
On 06/01/2018 10:52 AM, Ley Foon Tan wrote: > Use "%lu" for size_t data type. > > Compilation warning as below: > > In file included from include/linux/bug.h:7:0, > from include/common.h:26, > from drivers/spi/cadence_qspi.c:8: > drivers/spi/cadence_qspi.c: In

Re: [U-Boot] [PATCH] spi: cadence_qspi: Fix warning cast from pointer to integer of different size

2018-06-01 Thread Marek Vasut
On 06/01/2018 10:52 AM, Ley Foon Tan wrote: > Use "%p" to print cmdbuf. > > Compilation warning as below: > > CC spl/drivers/spi/cadence_qspi_apb.o > LD spl/lib/built-in.o > drivers/spi/cadence_qspi_apb.c: In function > ‘cadence_qspi_apb_indirect_write_setup’: >

[U-Boot] [PATCH] MIPS: add MIPS Release 6 build coverage for Boston boards

2018-06-01 Thread Daniel Schwierzeck
Now that Travis CI is building with gcc-7.3.0, we can add build coverage for all combinations of MIPS Release 6 instruction sets (MIPS32, MIPS64, Big Endian, Little Endian). Add mew default configs for Boston board for all MIPS Release 6 variants. Signed-off-by: Daniel Schwierzeck ---

Re: [U-Boot] [PATCH] sunxi: allow CONFIG_DEFAULT_FDT_FILE override

2018-06-01 Thread Jagan Teki
On Fri, Jun 1, 2018 at 1:32 AM, Martin Kelly wrote: > On 05/31/2018 12:58 PM, klaus.go...@theobroma-systems.com wrote: >> [snip] >> >> >> I run into the same issue for the rockchip architecture[1]. After giving >> up on finding a >> rock-solid solution for detecting the emtpy string I decided

Re: [U-Boot] [U-Boot,1/1] Remove snapshot.commit

2018-06-01 Thread Heinrich Schuchardt
On 05/31/2018 08:17 PM, Tom Rini wrote: > On Sun, May 27, 2018 at 07:54:16PM +0200, Heinrich Schuchardt > wrote: > >> The file is not referenced anywhere. To display a change log we >> have the 'git log' command. >> >> Signed-off-by: Heinrich Schuchardt > > Applied to u-boot/master, thanks! >

[U-Boot] [PATCH] spi: cadence_qspi: Fix warning cast from pointer to integer of different size

2018-06-01 Thread Ley Foon Tan
Use "%p" to print cmdbuf. Compilation warning as below: CC spl/drivers/spi/cadence_qspi_apb.o LD spl/lib/built-in.o drivers/spi/cadence_qspi_apb.c: In function ‘cadence_qspi_apb_indirect_write_setup’: drivers/spi/cadence_qspi_apb.c:696:18: warning: cast from pointer to integer of

[U-Boot] [PATCH] spi: cadence_qspi: Fix compilation warning

2018-06-01 Thread Ley Foon Tan
Use "%lu" for size_t data type. Compilation warning as below: In file included from include/linux/bug.h:7:0, from include/common.h:26, from drivers/spi/cadence_qspi.c:8: drivers/spi/cadence_qspi.c: In function ‘cadence_spi_xfer’:

[U-Boot] [PATCH v4 4/4] net: designware: Add reset ctrl to driver

2018-06-01 Thread Ley Foon Tan
Add code to reset all reset signals as in Ethernet DT node. A reset property is an optional feature, so only print out a warning and do not fail if a reset property is not present. If a reset property is discovered, then use it to deassert, thus bringing the IP out of reset. Signed-off-by: Ley

[U-Boot] [PATCH v4 2/4] mmc: dwmmc: socfpga: Add reset ctrl to driver

2018-06-01 Thread Ley Foon Tan
Add code to reset all reset signals as in mmc DT node. A reset property is an optional feature, so only print out a warning and do not fail if a reset property is not present. If a reset property is discovered, then use it to deassert, thus bringing the IP out of reset. Signed-off-by: Ley Foon

[U-Boot] [PATCH v4 1/4] include: reset: check CONFIG_SPL_RESET_SUPPORT

2018-06-01 Thread Ley Foon Tan
Add checking for CONFIG_SPL_RESET_SUPPORT to fix compilation error when CONFIG_DM_RESET is enabled but CONFIG_SPL_RESET_SUPPORT is disabled in SPL build. Signed-off-by: Ley Foon Tan --- include/reset.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/reset.h

[U-Boot] [PATCH v4 3/4] serial: ns16550: Add reset ctrl to driver

2018-06-01 Thread Ley Foon Tan
Add code to reset all reset signals as in serial DT node. A reset property is an optional feature, so do not fail if a reset property is not present. If a reset property is discovered, then use it to deassert, thus bringing the IP out of reset. Signed-off-by: Ley Foon Tan Reviewed-by: Marek

[U-Boot] [PATCH v4 0/4] drivers: Add reset ctrl to drivers

2018-06-01 Thread Ley Foon Tan
Add reset ctrl to dwmmc socfpga, designware Ethernet and ns16550 serial drivers. A reset property is an optional feature, so only print out a warning and do not fail if a reset property is not present. If a reset property is discovered, then use it to deassert, thus bringing the IP out of

Re: [U-Boot] [PATCH v2 2/2] mmc: zynqmp: Add HS200 modes support for ZynqMP

2018-06-01 Thread Michal Simek
On 29.5.2018 16:33, Siva Durga Prasad Paladugu wrote: > This patch adds HS200 suuport for ZynqMP and enables > the same for ZC1751 DC1 board which has eMMC on it. > > Signed-off-by: Siva Durga Prasad Paladugu > --- > Changes from v1: > - Fixed coding style as per comment > --- >

Re: [U-Boot] [PATCH v2 1/2] mmc: sdhci: Update sdhci_send_command() to handle HS200

2018-06-01 Thread Michal Simek
On 29.5.2018 16:33, Siva Durga Prasad Paladugu wrote: > This patch updates sdhci_send_command() to handle MMC > HS200 tuning command. > > Signed-off-by: Siva Durga Prasad Paladugu > --- > Changes from v1: > - Fixed spacings as per comment > --- > drivers/mmc/sdhci.c | 9 ++--- > 1 file

Re: [U-Boot] [PATCH v3 1/2] sunxi-mmc: use new mode on A64

2018-06-01 Thread Maxime Ripard
On Thu, May 31, 2018 at 09:43:20AM -0700, Vasily Khoruzhick wrote: > On Thu, May 31, 2018 at 5:00 AM, Maxime Ripard > wrote: > > On Wed, May 30, 2018 at 09:02:18PM -0700, Vasily Khoruzhick wrote: > >> That is necessary for using automatic calibration on A64 eMMC. > >> > >> Signed-off-by: Vasily

Re: [U-Boot] [PATCH] arm: socfpga: Add do_bridge_reset for Arria 10

2018-06-01 Thread Marek Vasut
On 06/01/2018 10:13 AM, Ley Foon Tan wrote: > Add do_bridge_reset() function for Arria 10, it is required by misc.c. > > arch/arm/mach-socfpga/built-in.o: In function `do_bridge': > arch/arm/mach-socfpga/misc.c:221: undefined reference to `do_bridge_reset' > make[1]: *** [u-boot] Error 1 > >

Re: [U-Boot] [PATCH] arm: socfpga: Add do_bridge_reset for Arria 10

2018-06-01 Thread Marek Vasut
On 06/01/2018 10:13 AM, Ley Foon Tan wrote: > Add do_bridge_reset() function for Arria 10, it is required by misc.c. > > arch/arm/mach-socfpga/built-in.o: In function `do_bridge': > arch/arm/mach-socfpga/misc.c:221: undefined reference to `do_bridge_reset' > make[1]: *** [u-boot] Error 1 > >

Re: [U-Boot] [PATCH] spi: cadence_qspi: Fix warning cast from pointer to integer of different size

2018-06-01 Thread Ley Foon Tan
On Fri, Jun 1, 2018 at 4:07 PM, Marek Vasut wrote: > On 05/07/2018 11:42 AM, Ley Foon Tan wrote: >> Cast to ulong data type. >> >> Compilation warning as below: >> >> CC spl/drivers/spi/cadence_qspi_apb.o >> LD spl/lib/built-in.o >> drivers/spi/cadence_qspi_apb.c: In function >>

Re: [U-Boot] [PATCH] spi: cadence_qspi: Fix compilation warning

2018-06-01 Thread Ley Foon Tan
On Fri, Jun 1, 2018 at 4:07 PM, Marek Vasut wrote: > On 05/07/2018 11:42 AM, Ley Foon Tan wrote: >> Cast data_bytes to integer. >> >> Compilation warning as below: >> >> In file included from include/linux/bug.h:7:0, >> from include/common.h:26, >> from

[U-Boot] [PATCH] arm: socfpga: Add do_bridge_reset for Arria 10

2018-06-01 Thread Ley Foon Tan
Add do_bridge_reset() function for Arria 10, it is required by misc.c. arch/arm/mach-socfpga/built-in.o: In function `do_bridge': arch/arm/mach-socfpga/misc.c:221: undefined reference to `do_bridge_reset' make[1]: *** [u-boot] Error 1 Signed-off-by: Ley Foon Tan ---

Re: [U-Boot] [PATCH] spi: cadence_qspi: Change to use devfdt_get_addr_index()

2018-06-01 Thread Marek Vasut
On 05/07/2018 11:42 AM, Ley Foon Tan wrote: > Change to use devfdt_get_addr_index() function to get fdt address. > > Original code has compilation warning below: > > drivers/spi/cadence_qspi.c: In function ‘cadence_spi_ofdata_to_platdata’: > drivers/spi/cadence_qspi.c:297:18: warning: cast to

Re: [U-Boot] [PATCH] spi: cadence_qspi: Fix warning cast from pointer to integer of different size

2018-06-01 Thread Marek Vasut
On 05/07/2018 11:42 AM, Ley Foon Tan wrote: > Cast to ulong data type. > > Compilation warning as below: > > CC spl/drivers/spi/cadence_qspi_apb.o > LD spl/lib/built-in.o > drivers/spi/cadence_qspi_apb.c: In function > ‘cadence_qspi_apb_indirect_write_setup’: >

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

2018-06-01 Thread Marek Vasut
On 06/01/2018 10:03 AM, Ley Foon Tan wrote: > On Fri, Jun 1, 2018 at 3:49 PM, Marek Vasut wrote: >> On 06/01/2018 09:30 AM, Ley Foon Tan wrote: >>> On Fri, Jun 1, 2018 at 2:31 PM, Marek Vasut wrote: On 06/01/2018 02:23 AM, Tom Rini wrote: > On Thu, May 31, 2018 at 08:06:50PM +0200,

Re: [U-Boot] [PATCH] spi: cadence_qspi: Fix compilation warning

2018-06-01 Thread Marek Vasut
On 05/07/2018 11:42 AM, Ley Foon Tan wrote: > Cast data_bytes to integer. > > Compilation warning as below: > > In file included from include/linux/bug.h:7:0, > from include/common.h:26, > from drivers/spi/cadence_qspi.c:8: > drivers/spi/cadence_qspi.c: In

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

2018-06-01 Thread Ley Foon Tan
On Fri, Jun 1, 2018 at 3:49 PM, Marek Vasut wrote: > On 06/01/2018 09:30 AM, Ley Foon Tan wrote: >> On Fri, Jun 1, 2018 at 2:31 PM, Marek Vasut wrote: >>> On 06/01/2018 02:23 AM, Tom Rini wrote: On Thu, May 31, 2018 at 08:06:50PM +0200, Marek Vasut wrote: > The following changes

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

2018-06-01 Thread Marek Vasut
On 06/01/2018 09:30 AM, Ley Foon Tan wrote: > On Fri, Jun 1, 2018 at 2:31 PM, Marek Vasut wrote: >> On 06/01/2018 02:23 AM, Tom Rini wrote: >>> On Thu, May 31, 2018 at 08:06:50PM +0200, Marek Vasut wrote: >>> The following changes since commit c3c863880479edeb5b08226e622d13c91326e4a7:

[U-Boot] [PATCH 12/15] ARM: dts: rmobile: Add Renesas R8A77990 SoC support

2018-06-01 Thread Marek Vasut
From: Yoshihiro Shimoda This patch adds basic support for the Renesas R-Car E3 (R8A77990) SoC: - PSCI - CPU (single) - Cache controller - Main clocks and controller - Interrupt controller - Timer - PMU - Reset controller - Product register - System controller - UART for

[U-Boot] [PATCH 04/15] clk: renesas: Add PE clock handling

2018-06-01 Thread Marek Vasut
The PE clock have two parents, add support for picking the correct one and deriving the clock from it. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- drivers/clk/renesas/clk-rcar-gen3.c | 40 + drivers/clk/renesas/rcar-gen3-cpg.h | 6 -- 2 files

[U-Boot] [PATCH 07/15] pinctrl: renesas: Initial R8A77990 PFC support

2018-06-01 Thread Marek Vasut
This patch adds initial pinctrl driver to support for the R8A77990 SoC. Signed-off-by: Takeshi Kihara Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- drivers/pinctrl/renesas/Kconfig| 11 + drivers/pinctrl/renesas/Makefile |1 + drivers/pinctrl/renesas/pfc-r8a77990.c |

[U-Boot] [PATCH 03/15] clk: renesas: Add PLL1 and PLL3 dividers

2018-06-01 Thread Marek Vasut
Add and use the PLL1 and PLL3 dividers. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- drivers/clk/renesas/clk-rcar-gen3.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/clk/renesas/clk-rcar-gen3.c b/drivers/clk/renesas/clk-rcar-gen3.c index

[U-Boot] [PATCH 15/15] ARM: dts: rmobile: Sync R8A77990 Ebisu DTS with Linux

2018-06-01 Thread Marek Vasut
Import the R8A77990 and Ebisu DTS from linux-next to get the latest version. This makes AVB ethernet work in U-Boot since the ethernet node is now present in DT, as well as GPIOs. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- arch/arm/dts/r8a77990-ebisu.dts | 28 +

  1   2   >