Re: [U-Boot] [PATCH 2/6] net: mvpp2.c: Add Marvell mvpp2 network driver for Armada 375

2016-03-22 Thread Stefan Roese
Hi Joe, On 22.03.2016 20:10, Joe Hershberger wrote: Sorry for the delay. No problem. Thanks for the review. On Tue, Mar 15, 2016 at 11:35 AM, Stefan Roese wrote: This patch adds support for the mvpp2 ethernet controller which is integrated in the Marvell Armada 375 SoC. This port is based

Re: [U-Boot] [PATCH 2/6 v2] i2c: designware_i2c: Add dw_i2c_enable() helper function

2016-03-22 Thread Marek Vasut
On 03/23/2016 06:46 AM, Stefan Roese wrote: > dw_i2c_enable() is used to dis-/en-able the I2C controller. It makes > sense to add such a function, as the controller is dis-/en-abled > multiple times in the code. Additionally, this function now checks, > if the controller is really dis-/en-abled. Th

Re: [U-Boot] UBI Fastmap seems to be broken

2016-03-22 Thread Heiko Schocher
Hello Tony, please add me to Cc, I am little bit under water, and it was just luck, that I found this EMail ;-) Am 22.03.2016 um 13:39 schrieb Benzig, Tony: Hello together, I've been working on an AM335x based board with a NAND Flash attached on the GPMI Interface. I've been using U-boot v201

[U-Boot] [PATCH 5/6 v2] i2c: designware_i2c: Add DM support

2016-03-22 Thread Stefan Roese
This patch adds DM support to the designware I2C driver. It currently supports DM and the legacy I2C support. The legacy support should be removed, once all platforms using it have DM enabled. Signed-off-by: Stefan Roese Cc: Simon Glass Reviewed-by: Bin Meng Cc: Marek Vasut Cc: Heiko Schocher

[U-Boot] [PATCH 3/6 v2] i2c: designware_i2c: Integrate set_speed() into dw_i2c_set_bus_speed()

2016-03-22 Thread Stefan Roese
Integrating set_speed() into dw_i2c_set_bus_speed() will make the conversion to DM easier for this driver. Signed-off-by: Stefan Roese Cc: Simon Glass Reviewed-by: Bin Meng Cc: Marek Vasut Cc: Heiko Schocher --- v2: - Added Reviewed-by from Bin drivers/i2c/designware_i2c.c | 37

[U-Boot] [PATCH 4/6 v2] i2c: designware_i2c: Prepare for DM driver conversion

2016-03-22 Thread Stefan Roese
This patch prepares the designware I2C driver for the DM conversion. This is mainly done by removing struct i2c_adapter from the functions that shall be used by the DM driver version as well. Signed-off-by: Stefan Roese Cc: Simon Glass Reviewed-by: Bin Meng Cc: Marek Vasut Cc: Heiko Schocher

[U-Boot] [PATCH 6/6 v2] i2c: designware_i2c: Add support for PCI(e) based I2C cores (x86)

2016-03-22 Thread Stefan Roese
This patch adds support for the PCI(e) based I2C cores. Which can be found for example on the Intel Bay Trail SoC. It has 7 I2C controllers implemented as PCI devices. This patch also adds the fixed values for the timing registers for BayTrail which are taken from the Linux designware I2C driver.

[U-Boot] [PATCH 1/6 v2] i2c: designware_i2c: Add ic_enable_status to ic_regs struct

2016-03-22 Thread Stefan Roese
Add the ic_enable_status register to the i2c_regs struct. Additionally the register offsets are added, to better check, if the offset matches the register description in the datasheet. Signed-off-by: Stefan Roese Cc: Simon Glass Reviewed-by: Bin Meng Cc: Marek Vasut Cc: Heiko Schocher --- v2:

[U-Boot] [PATCH 2/6 v2] i2c: designware_i2c: Add dw_i2c_enable() helper function

2016-03-22 Thread Stefan Roese
dw_i2c_enable() is used to dis-/en-able the I2C controller. It makes sense to add such a function, as the controller is dis-/en-abled multiple times in the code. Additionally, this function now checks, if the controller is really dis-/en-abled. This code is copied from the Linux I2C driver version.

[U-Boot] [PATCH] smsc95xx: fix operation on 64-bit systems

2016-03-22 Thread Stephen Warren
smsc95xx_read_reg() should calculate sizeof(*data) not sizeof(data) since data is a pointer, and the value pointed at is being transferred over USB, not the value of the pointer. This fixes operation of the driver in 64-bit builds, such as the Raspberry Pi 3. Reported-by: Eric Anholt Signed-off-b

Re: [U-Boot] [U-Boot,v2,3/3] net: Move CONFIG_RTL8169 to Kconfig

2016-03-22 Thread Tom Rini
On Mon, Mar 21, 2016 at 06:47:42AM -0700, Bin Meng wrote: > Introduce CONFIG_RTL8169 in Kconfig and move over boards' defconfig > to use that. > > Signed-off-by: Bin Meng > Acked-by: Stephen Warren > Acked-by: Joe Hershberger Applied to u-boot/master, thanks! -- Tom signature.asc Descript

Re: [U-Boot] [U-Boot, 14/14] usb: Correct return value in usb_stor_info()

2016-03-22 Thread Tom Rini
On Wed, Mar 16, 2016 at 07:45:44AM -0600, Simon Glass wrote: > This should return 0 on success, not 1. Fix it. > > Signed-off-by: Simon Glass > Acked-by: Marek Vasut > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature _

Re: [U-Boot] [U-Boot,v2,2/3] net: Move CONFIG_RTL8139 to Kconfig

2016-03-22 Thread Tom Rini
On Mon, Mar 21, 2016 at 06:47:41AM -0700, Bin Meng wrote: > Introduce CONFIG_RTL8139 in Kconfig and move over boards' defconfig > to use that. > > Signed-off-by: Bin Meng > Acked-by: Joe Hershberger Manually fixed up the boards Scott noted and then, applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] [U-Boot, 13/14] mkimage: Don't close the file if it wasn't opened

2016-03-22 Thread Tom Rini
On Wed, Mar 16, 2016 at 07:45:43AM -0600, Simon Glass wrote: > The error path for fit_import_data() is incorrect if the second open() call > fails. > > Reported-by: Coverity (CID: 138489) > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signatur

Re: [U-Boot] [U-Boot, 12/14] mkimage: Ensure file is closed in fdt_property_file()

2016-03-22 Thread Tom Rini
On Wed, Mar 16, 2016 at 07:45:42AM -0600, Simon Glass wrote: > The file that is opened is not closed in all cases. Fix it. > > Reported-by: Coverity (CID: 138490) > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digita

Re: [U-Boot] [U-Boot, v2, 1/3] defconfig: Reorder boards' defconfig files

2016-03-22 Thread Tom Rini
On Mon, Mar 21, 2016 at 06:47:40AM -0700, Bin Meng wrote: > Some boards' defconfig files are out of order. Clean this up. > > Signed-off-by: Bin Meng > Acked-by: Joe Hershberger Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature __

Re: [U-Boot] [U-Boot, 11/14] mkimage: Fix missing free() and close() in fit_build()

2016-03-22 Thread Tom Rini
On Wed, Mar 16, 2016 at 07:45:41AM -0600, Simon Glass wrote: > Make sure that both the error path and normal return free the buffer and > close the file. > > Reported-by: Coverity (CID: 138491) > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom si

Re: [U-Boot] [U-Boot, 09/14] mkimage: Fix error path in fit_extract_data()

2016-03-22 Thread Tom Rini
On Wed, Mar 16, 2016 at 07:45:39AM -0600, Simon Glass wrote: > The 'fdt' variable is not unmapped in all error cases. Fix this. > > Reported-by: Coverity (CID: 138493) > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description

Re: [U-Boot] [U-Boot, 10/14] mkimage: Fix missing free() in fit_extract_data()

2016-03-22 Thread Tom Rini
On Wed, Mar 16, 2016 at 07:45:40AM -0600, Simon Glass wrote: > The 'buf' variable is not freed. Fix it. > > Reported-by: Coverity (CID: 138492) > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___

Re: [U-Boot] [U-Boot, 08/14] mkimage: Add a missing free() to fit_import_data()

2016-03-22 Thread Tom Rini
On Wed, Mar 16, 2016 at 07:45:38AM -0600, Simon Glass wrote: > The space allocated to fdt is not freed on error. Fix it. > > Reported-by: Coverity (CID: 138494) > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digit

Re: [U-Boot] [U-Boot, 07/14] mkimage: Close the file when unable to get its size

2016-03-22 Thread Tom Rini
On Wed, Mar 16, 2016 at 07:45:37AM -0600, Simon Glass wrote: > There is a missing close() on the error path. Add it. > > Reported-by: Coverity (CID: 138496) > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital sign

Re: [U-Boot] [U-Boot, 06/14] part_efi: Drop NULL check in part_get_info_efi()

2016-03-22 Thread Tom Rini
On Wed, Mar 16, 2016 at 07:45:36AM -0600, Simon Glass wrote: > This cannot be NULL since part_get_info() calls this function and requires > it to be non-NULL. > > Reported-by: Coverity (CID: 138497) > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! --

Re: [U-Boot] [U-Boot, 03/14] mkimage: Correct file being closed twice in fit_extract_data()

2016-03-22 Thread Tom Rini
On Wed, Mar 16, 2016 at 07:45:33AM -0600, Simon Glass wrote: > The code flows through to the end of the function, so we don't need another > close() before this. Remove it. > > Reported-by: Coverity (CID: 138503) > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master,

Re: [U-Boot] [U-Boot, 05/14] part_efi: Drop the NULL check on dev_desc in part_print_efi()

2016-03-22 Thread Tom Rini
On Wed, Mar 16, 2016 at 07:45:35AM -0600, Simon Glass wrote: > This cannot be NULL since part_print() calls this function and requires it > to be non-NULL. > > Reported-by: Coverity (CID: 138498) > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] [U-Boot, 04/14] part_iso: Drop the customer unaligned access functions

2016-03-22 Thread Tom Rini
On Wed, Mar 16, 2016 at 07:45:34AM -0600, Simon Glass wrote: > One of these is causing a coverity warning. Drop these functions and use the > standard U-Boot ones instead. > > Reported-by: Coverity (CID: 138499) > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master,

Re: [U-Boot] [U-Boot, 02/14] mkimage: Correct file being closed twice in fit_import_data()

2016-03-22 Thread Tom Rini
On Wed, Mar 16, 2016 at 07:45:32AM -0600, Simon Glass wrote: > The code flows through to the end of the function, so we don't need another > close() before this. Remove it. > > Reported-by: Coverity (CID: 138504) > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master,

Re: [U-Boot] Fix spelling of "transferred".

2016-03-22 Thread Tom Rini
On Tue, Mar 15, 2016 at 12:16:39PM -0700, Vagrant Cascadian wrote: > Signed-off-by: Vagrant Cascadian > Acked-by: Marek Vasut > Reviewed-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature __

Re: [U-Boot] [U-Boot, 01/14] mkimage: Fix munmap() call when importing data

2016-03-22 Thread Tom Rini
On Wed, Mar 16, 2016 at 07:45:31AM -0600, Simon Glass wrote: > The munmap() call unmaps the wrong memory buffer. Fix it. > > Reported-by: Coverity (CID: 138505) > Reported-by: Coverity (CID: 138495) > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] [U-Boot,2/2] Fix spelling of "supported/unsupported".

2016-03-22 Thread Tom Rini
On Tue, Mar 15, 2016 at 12:11:13PM -0700, Vagrant Cascadian wrote: > Signed-off-by: Vagrant Cascadian > Reviewed-by: Simon Glass > Reviewed-by: Tom Rini > Reviewed-by: Peter Griffin Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature _

Re: [U-Boot] cmd: Fix license command

2016-03-22 Thread Tom Rini
On Tue, Mar 15, 2016 at 12:49:12PM -0400, Tom Rini wrote: > The license command isn't usually built and has a few problems: > - The rules to generate license.h haven't worked in a long time, > re-write these based on the bmp_logo.h rules. > - 'tok' is unused and the license text size has increas

Re: [U-Boot] [U-Boot,1/2] Fix spelling of "comment".

2016-03-22 Thread Tom Rini
On Tue, Mar 15, 2016 at 12:11:12PM -0700, Vagrant Cascadian wrote: > Signed-off-by: Vagrant Cascadian > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot@list

Re: [U-Boot] [U-Boot, v2] serial: pl01x: Add support for devices with the rate pre-configured.

2016-03-22 Thread Tom Rini
On Sun, Mar 13, 2016 at 06:16:54PM -0700, Eric Anholt wrote: > For Raspberry Pi, we had the input clock rate to the pl011 fixed in > the rpi.c file, but it may be changed by firmware due to user changes > to config.txt. Since the firmware always sets up the uart (default > 115200 output unless th

Re: [U-Boot] [U-Boot, v2, 8/9] Allow command-line files to be dropped

2016-03-22 Thread Tom Rini
On Sun, Mar 13, 2016 at 07:07:34PM -0600, Simon Glass wrote: > These files do not need to be compiled when CONFIG_CMDLINE is disabled. > Update the Makefile to reflect this. > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Descri

Re: [U-Boot] [U-Boot, v2, 6/9] Panic when no command line processing can be performed

2016-03-22 Thread Tom Rini
On Sun, Mar 13, 2016 at 07:07:32PM -0600, Simon Glass wrote: > Normally board_run_command() will handle command processed. But if for some > reason it returns then we should panic to avoid further processing. > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master, than

Re: [U-Boot] [U-Boot, v2, 9/9] Drop various features when the command line is not available

2016-03-22 Thread Tom Rini
On Sun, Mar 13, 2016 at 07:07:35PM -0600, Simon Glass wrote: > Some features are only useful or meaningful when the command line is > present. Ensure that these features are not compiled in when CONFIG_CMDLINE > is not enabled. > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to

Re: [U-Boot] [U-Boot, v2, 3/9] arm: x86: Drop command-line code when CONFIG_CMDLINE is disabled

2016-03-22 Thread Tom Rini
On Sun, Mar 13, 2016 at 07:07:29PM -0600, Simon Glass wrote: > Update the link script to drop this code when not needed. This is only done > for two architectures at present. > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Descr

Re: [U-Boot] [U-Boot, v2, 7/9] Allow command code to compile to nothing

2016-03-22 Thread Tom Rini
On Sun, Mar 13, 2016 at 07:07:33PM -0600, Simon Glass wrote: > When CONFIG_CMDLINE is disabled we need to remove all the command-line > code. Most can be removed by dropping the appropriate linker lists from the > images, but sub-commands must be dealt with specially. > > A simple mechanism is us

Re: [U-Boot] ti: k2g: increase phy autoneg timeout

2016-03-22 Thread Tom Rini
On Fri, Mar 11, 2016 at 08:23:04AM -0500, Vitaly Andrianov wrote: > After power cycle of a K2G EVM dhcp fails due to a auto-negotiation > timeout. This commit increases the timeout to fix the issue. > > Signed-off-by: Vitaly Andrianov > Reviewed-by: Tom Rini Applied to u-boot/master, thanks!

Re: [U-Boot] [U-Boot, v2, 4/9] sandbox: Avoid calling commands when not available

2016-03-22 Thread Tom Rini
On Sun, Mar 13, 2016 at 07:07:30PM -0600, Simon Glass wrote: > Don't try to run commands when not supported. > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature

Re: [U-Boot] [U-Boot, v2, 2/9] Add an option to enable the command line

2016-03-22 Thread Tom Rini
On Sun, Mar 13, 2016 at 07:07:28PM -0600, Simon Glass wrote: > Add a new Kconfig option for the command line. This is enabled by default, > but when disabled it will remove the command line. > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom sig

Re: [U-Boot] Please pull u-boot-fsl-qoriq master

2016-03-22 Thread Tom Rini
On Tue, Mar 22, 2016 at 03:52:25PM +, york sun wrote: > Tom, > > The following changes since commit f23baa572f96e1e13d7f1a3c8addb61b5d0dbd29: > > cmd_dhry.c: Use lldiv for vax_mips calculation as well (2016-03-17 10:14:25 > -0400) > > are available in the git repository at: > > git://

Re: [U-Boot] [U-Boot,v2,1/9] cbfs: Update a function to be static

2016-03-22 Thread Tom Rini
On Sun, Mar 13, 2016 at 07:07:27PM -0600, Simon Glass wrote: > All command functions should be static. Update the CBFS functions to follow > this rule. > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signatu

Re: [U-Boot] [PATCH V2] fsl: esdhc: support driver model

2016-03-22 Thread york sun
On 03/22/2016 06:25 PM, Peng Fan wrote: > Hi York, > > On Tue, Mar 22, 2016 at 07:26:08PM +, york sun wrote: >> On 03/15/2016 03:23 AM, Peng Fan wrote: >>> Support Driver Model for fsl esdhc driver. >>> >>> 1. Introduce a new structure struct fsl_esdhc_priv >>> 2. Refactor fsl_esdhc_initialize

Re: [U-Boot] [PATCH V2] fsl: esdhc: support driver model

2016-03-22 Thread Peng Fan
Hi York, On Tue, Mar 22, 2016 at 07:26:08PM +, york sun wrote: >On 03/15/2016 03:23 AM, Peng Fan wrote: >> Support Driver Model for fsl esdhc driver. >> >> 1. Introduce a new structure struct fsl_esdhc_priv >> 2. Refactor fsl_esdhc_initialize which is originally used by board code. >>- In

Re: [U-Boot] [PATCH v2 2/3] net: Move CONFIG_RTL8139 to Kconfig

2016-03-22 Thread Bin Meng
On Wed, Mar 23, 2016 at 6:50 AM, Tom Rini wrote: > On Tue, Mar 22, 2016 at 05:25:04PM -0500, Joe Hershberger wrote: >> Hi Bin, >> >> On Mon, Mar 21, 2016 at 9:14 PM, Bin Meng wrote: >> > On Tue, Mar 22, 2016 at 1:01 AM, Scott Wood wrote: >> >> On 03/21/2016 08:44 AM, Bin Meng wrote: >> >>> Intro

[U-Boot] [PATCH v1] Revert "fastboot: OUT transaction length must be aligned to wMaxPacketSize"

2016-03-22 Thread Steve Rae
This reverts commit 9e4b510d40310bf46e09f4edd0a0b6356213df47. Signed-off-by: Steve Rae --- As discussed on the mailing list, this change breaks the download portion of fastboot by causing the server (the device running U-Boot) to wait forever for bytes which are never sent by the client (the host

Re: [U-Boot] [PATCH v2 2/3] net: Move CONFIG_RTL8139 to Kconfig

2016-03-22 Thread Tom Rini
On Tue, Mar 22, 2016 at 05:25:04PM -0500, Joe Hershberger wrote: > Hi Bin, > > On Mon, Mar 21, 2016 at 9:14 PM, Bin Meng wrote: > > On Tue, Mar 22, 2016 at 1:01 AM, Scott Wood wrote: > >> On 03/21/2016 08:44 AM, Bin Meng wrote: > >>> Introduce CONFIG_RTL8139 in Kconfig and move over boards' defc

[U-Boot] Fwd: difference between ft_board_setup() and ft_system_setup()

2016-03-22 Thread Hannes Schmelzer
ping ... Forwarded Message Subject:difference between ft_board_setup() and ft_system_setup() Date: Thu, 17 Mar 2016 09:36:32 +0100 From: Hannes Schmelzer To: u-boot@lists.denx.de hi, i've seen today that there is some kconfig option to switch on CONFIG_OF_

Re: [U-Boot] [PATCH 2/2] net: xilinx_axi: Clear Isolate bit if found during phy setup

2016-03-22 Thread Joe Hershberger
On Fri, Mar 18, 2016 at 11:37 AM, Michal Simek wrote: > From: Siva Durga Prasad Paladugu > > In SGMII cases the isolate bit might set after DMA and > ethernet resets and hence check and clear during > setup_phy if it was set. > > Signed-off-by: Siva Durga Prasad Paladugu > Signed-off-by: Michal

Re: [U-Boot] [PATCH 1/2] net: xilinx_axi: use interface type instead of zero

2016-03-22 Thread Joe Hershberger
On Fri, Mar 18, 2016 at 11:37 AM, Michal Simek wrote: > From: Siva Durga Prasad Paladugu > > Pass appropriate interface type to phy_connect > instead of zero. > > Signed-off-by: Siva Durga Prasad Paladugu > Signed-off-by: Michal Simek Acked-by: Joe Hershberger

Re: [U-Boot] [PATCH] net: phy: Realtek RTL8211B/C PHY ID fix

2016-03-22 Thread Joe Hershberger
On Mon, Mar 21, 2016 at 2:29 PM, Karsten Merker wrote: > The RTL8211B_driver structure in drivers/net/phy/realtek.c contains a > wrong PHY ID (0x1cc910 instead of 0x1cc912) in the uid field. > > The lowest four bits of the PHY ID encode the chip revision (B+C/D/E/F) > of the RTL8211 and the code o

Re: [U-Boot] [PATCH v2 2/3] net: Move CONFIG_RTL8139 to Kconfig

2016-03-22 Thread Joe Hershberger
Hi Bin, On Mon, Mar 21, 2016 at 9:14 PM, Bin Meng wrote: > On Tue, Mar 22, 2016 at 1:01 AM, Scott Wood wrote: >> On 03/21/2016 08:44 AM, Bin Meng wrote: >>> Introduce CONFIG_RTL8139 in Kconfig and move over boards' defconfig >>> to use that. >>> >>> Signed-off-by: Bin Meng >>> --- >>> >>> Chang

Re: [U-Boot] [PATCH] fastboot: allow retrieving fastboot variables from env

2016-03-22 Thread Steve Rae
On Thu, Mar 17, 2016 at 9:44 AM, Boris Brezillon < boris.brezil...@free-electrons.com> wrote: > On Thu, 17 Mar 2016 17:21:23 +0100 > Boris Brezillon wrote: > > > From: Rob Herring > > > > Some boards need to expose device specific variable through fastboot > > (to adpat the flashing script depen

Re: [U-Boot] [PATCH] fastboot: allow retrieving fastboot variables from env

2016-03-22 Thread Steve Rae
On Thu, Mar 17, 2016 at 9:44 AM, Boris Brezillon < boris.brezil...@free-electrons.com> wrote: > On Thu, 17 Mar 2016 17:21:23 +0100 > Boris Brezillon wrote: > > > From: Rob Herring > > > > Some boards need to expose device specific variable through fastboot > > (to adpat the flashing script depen

[U-Boot] [PATCH v2] sunxi: Select CONFIG_OF_BOARD_SETUP from CONFIG_VIDEO

2016-03-22 Thread Hans de Goede
Select OF_BOARD_SETUP when CONFIG_VIDEO is set, rather then having it in almost all our defconfigs. This also fixes it missing from some recently added defconfigs. Signed-off-by: Hans de Goede --- Changes in v2: -Only select CONFIG_OF_BOARD_SETUP when CONFIG_VIDEO is set, rather then always ---

Re: [U-Boot] [PATCH] sunxi: Select OF_BOARD_SETUP from arch/arm/Kconfig

2016-03-22 Thread Hans de Goede
Hi, On 22-03-16 22:58, Ian Campbell wrote: On Tue, 2016-03-22 at 22:56 +0100, Hans de Goede wrote: Select OF_BOARD_SETUP from arch/arm/Kconfig when building for sunxi, rather then having it in all our defconfigs. This also fixes it missing from some recently added defconfigs. Signed-off-by: Ha

Re: [U-Boot] [PATCH] sunxi: Select OF_BOARD_SETUP from arch/arm/Kconfig

2016-03-22 Thread Ian Campbell
On Tue, 2016-03-22 at 22:56 +0100, Hans de Goede wrote: > Select OF_BOARD_SETUP from arch/arm/Kconfig when building for sunxi, > rather then having it in all our defconfigs. This also fixes it > missing > from some recently added defconfigs. > > Signed-off-by: Hans de Goede Acked-byL Ian Campbel

[U-Boot] [PATCH] sunxi: Select OF_BOARD_SETUP from arch/arm/Kconfig

2016-03-22 Thread Hans de Goede
Select OF_BOARD_SETUP from arch/arm/Kconfig when building for sunxi, rather then having it in all our defconfigs. This also fixes it missing from some recently added defconfigs. Signed-off-by: Hans de Goede --- arch/arm/Kconfig | 1 + configs/A10-OLinuXino-Lime_defconfi

Re: [U-Boot] [linux-sunxi] [PATCH] sunxi: Add defconfig for yones toptech bs1078-v2 tablet

2016-03-22 Thread Hans de Goede
Hi, On 22-03-16 22:02, Peter Korsgaard wrote: The yones toptech bs1078-v2 is a 10.1" tablet without any clear markings on the outside, but 'YONESTOPTECH-BS1078' written on the PCB silkscreen. It features a 16:9 1024:600 LCD, A31s SoC, 1GB RAM, 8G NAND, silead gsl3675 touchscreen and a RTL8723AS

Re: [U-Boot] [PATCH 1/2] sunxi: Turn satapwr on from board_init

2016-03-22 Thread Ian Campbell
On Tue, 2016-03-22 at 21:49 +0100, Hans de Goede wrote: > There are 2 reasons for doing this: > > 1) The main reason for doing this is to move it outside of >    board/sunxi/ahci.c, so that it can be used on boards which use >    a usb<->sata chip too; > 2) While doing this I realized that doing i

Re: [U-Boot] [PATCH] sunxi: Fix 2nd usb controller on sun4i/sun7i no longer working

2016-03-22 Thread Ian Campbell
On Mon, 2016-03-21 at 14:50 +0100, Hans de Goede wrote: > The 2nd usb controller on sun4i/sun7i has its base address 0x8000 > bytes from the 1st one, rather then 0x1000. Also the ahb clk gates > are interleaved with the ohci clk-gates introducing a hole between > the clks for usb1 and usb2. > > Si

Re: [U-Boot] [PATCH] sunxi: Enable support for the eMMC found on the orangepi plus

2016-03-22 Thread Ian Campbell
On Mon, 2016-03-21 at 22:46 +0100, Hans de Goede wrote: > Hi, > > On 21-03-16 07:05, Chen-Yu Tsai wrote: > > Hi, > > > > On Sun, Mar 20, 2016 at 9:21 PM, Hans de Goede > wrote: > >> This enables support for the eMMC found on the orangepi plus. > >> > >> Signed-off-by: Hans de Goede > >> --- > >>

Re: [U-Boot] [PATCH] sunxi:Correct the LDO settings for sinovoip-bpi-m3 board

2016-03-22 Thread Hans de Goede
Hi, On 21-03-16 15:28, Vishnu Patekar wrote: Hello, I forgot to post this patch, Thanks to Kevin Chua Soon Jia who reported that latest mainline u-boot fail to boot and reminded me to post it. For Banana-pi m3, ALDO must not be set to zero, default settings are same as mentioned Sinovoip Bpi

Re: [U-Boot] [PATCH 1/3] sunxi: Add support for USB vbus pin for USB3

2016-03-22 Thread Ian Campbell
On Fri, 2016-03-18 at 08:55 +0100, Hans de Goede wrote: > The H3 has USB0 - USB3, add support for having a USB vbus pin for > USB3. > > Signed-off-by: Hans de Goede All three of these patches: Acked-by: Ian Campbell ___ U-Boot mailing list U-Boot@lis

Re: [U-Boot] [PATCH] arm: sunxi: Add icnova-a20-swac defconfig

2016-03-22 Thread Hans de Goede
Hi, On 21-03-16 09:09, Stefan Roese wrote: The ICnova-A20-SWAC is a baseboard, equipped with the ICnova-A20 SoM from In-Circuit: http://wiki.in-circuit.de/index.php5?title=ICnova_A20_SODIMM http://linux-sunxi.org/In-Circuit_ICnova_A20 This patch adds support for this board, including ethernet,

Re: [U-Boot] [PATCH] sunxi: Add defconfig for Sinlinx SinA31s

2016-03-22 Thread Hans de Goede
Hi, On 21-03-16 09:39, Chen-Yu Tsai wrote: The Sinlinx A31s SDK is a A31s based module/baseboard development kit. The core module has the SoC, PMIC, DRAM, eMMC and supporting components. There are also pads for UART0, JTAG and I2S. The baseboard has 100 Mbps Ethernet, 5x USB 2.0 host ports via

[U-Boot] [PATCH] sunxi: Add defconfig for yones toptech bs1078-v2 tablet

2016-03-22 Thread Peter Korsgaard
The yones toptech bs1078-v2 is a 10.1" tablet without any clear markings on the outside, but 'YONESTOPTECH-BS1078' written on the PCB silkscreen. It features a 16:9 1024:600 LCD, A31s SoC, 1GB RAM, 8G NAND, silead gsl3675 touchscreen and a RTL8723AS wifi chip: https://linux-sunxi.org/Yones_Toptec

[U-Boot] [PATCH 2/2] sunxi: Specify SATAPWR pin for Orangepi Plus

2016-03-22 Thread Hans de Goede
This enables the use of the sata connector in u-boot. Signed-off-by: Hans de Goede --- configs/orangepi_plus_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/orangepi_plus_defconfig b/configs/orangepi_plus_defconfig index 08f291c..ff124bd 100644 --- a/configs/orangepi_plus_d

[U-Boot] [PATCH 1/2] sunxi: Turn satapwr on from board_init

2016-03-22 Thread Hans de Goede
There are 2 reasons for doing this: 1) The main reason for doing this is to move it outside of board/sunxi/ahci.c, so that it can be used on boards which use a usb<->sata chip too; 2) While doing this I realized that doing it from board_init also meant doing it much earlier. Some printf g

[U-Boot] [PATCH] usb: gadget: Move CONFIG_USB_GADGET to Kconfig

2016-03-22 Thread Semen Protsenko
From: Sam Protsenko The description was borrowed from kernel. "tristate" type was changed to "bool" (I believe we don't support modules for u-boot yet, right?). CONFIG_USB_GADGET requires CONFIG_USB to be defined too, so add it along as well. Some platforms weren't ported though: include/co

Re: [U-Boot] [PATCH] armv8/ls2080ardb: Update DDR timing to support more UDIMMs

2016-03-22 Thread york sun
On 03/20/2016 08:03 PM, Shengzhou Liu wrote: > Optimize DDR timing for good margins to support new Transcend > and Apacer DDR4 UDIMM besides current Micron UDIMM. > > Verified 1866MT/s and 2133MT/s with following UDIMM on LS2080ARDB. > - Micron UDIMM: MTA18ASF1G72AZ-2G1A1Z > - Apacer UDIMM: 78.C

Re: [U-Boot] [PATCH V2] fsl: esdhc: support driver model

2016-03-22 Thread york sun
On 03/15/2016 03:23 AM, Peng Fan wrote: > Support Driver Model for fsl esdhc driver. > > 1. Introduce a new structure struct fsl_esdhc_priv > 2. Refactor fsl_esdhc_initialize which is originally used by board code. >- Introduce fsl_esdhc_init to be common usage for DM and non-DM >- Introdu

Re: [U-Boot] [PATCH v2 00/11] armv8: ls2080aqds: Enable QSPI boot support

2016-03-22 Thread york sun
On 03/06/2016 11:56 PM, Yuan Yao wrote: > From: Yuan Yao > > This series add support for QSPI boot on LS2080AQDS. > > Yuan Yao (11): > armv8: ls2080aqds: Select QSPI CLK div via SCFG > configs: ls2080a_common: Remove duplicate NOR configs > configs: ls2080aqds: disable IFC NOR & QIXIS when

[U-Boot] [PATCH v2] sunxi: Fix gmac not working due to cpu_eth_init no longer being called

2016-03-22 Thread Hans de Goede
cpu_eth_init is no longer called for dm enabled eth drivers, this was causing the sunxi gmac eth controller to no longer work in u-boot. This commit fixes this by calling the clock, reset and pinmux setup function from s_init() and enabling the phy power pin (if any) from board_init(). The enabli

Re: [U-Boot] [PATCH 2/6] net: mvpp2.c: Add Marvell mvpp2 network driver for Armada 375

2016-03-22 Thread Joe Hershberger
Hit Stefan, Sorry for the delay. On Tue, Mar 15, 2016 at 11:35 AM, Stefan Roese wrote: > This patch adds support for the mvpp2 ethernet controller which is integrated > in the Marvell Armada 375 SoC. This port is based on the Linux driver (v4.4), > which has been stripped of the in U-Boot unused

Re: [U-Boot] [linux-sunxi] Re: Latest U-boot branch not booting on Hummingbird A31

2016-03-22 Thread Hans de Goede
HI, On 21-03-16 11:25, Chen-Yu Tsai wrote: Hi, On Mon, Mar 21, 2016 at 6:18 PM, Hans de Goede wrote: Hi, On 21-03-16 11:06, Chen-Yu Tsai wrote: Hi, On Mon, Mar 21, 2016 at 5:57 PM, Hans de Goede wrote: HI, On 21-03-16 10:49, wens Tsai wrote: Hi Hans, I updated U-boot on my board

Re: [U-Boot] [PATCH] armv8: ls2080a: update fdt path for fsl-mc node

2016-03-22 Thread york sun
On 03/02/2016 07:01 PM, Stuart Yoder wrote: > > >> -Original Message- >> From: Prabhakar Kushwaha >> Sent: Wednesday, March 02, 2016 8:45 PM >> To: Stuart Yoder ; u-boot@lists.denx.de >> Cc: york sun ; Yang-Leo Li ; Stuart >> Yoder >> >> Subject: RE: [PATCH] armv8: ls2080a: update fdt p

Re: [U-Boot] [PATCH] eth: dtsec: fix TBI ANA setting bug in dtsec_configure_serdes()

2016-03-22 Thread york sun
On 12/13/2015 11:07 PM, Xie Shaohui-B21989 wrote: > Hi, > > As mentioned, the value 0x4001 is the desired one in AN3869 for SGMII setting, > quoted as below: > " Program TBI ANA = 0x4001 (SGMII) or 0x01A0 (1000BASE-X). " > > I think the AN3869 should be followed, change SGMII setting just because

Re: [U-Boot] Newbie SPL question for socfpga_sockit

2016-03-22 Thread Dinh Nguyen
On 03/20/2016 11:42 AM, Marek Vasut wrote: >> >> Sorry, I know that doesn't help. So let's walk through my workflow. I am >> not using any Altera tools when I build. >> >> $make socfpga_de0_nano_soc_defconfig >> $make u-boot-with-spl.sfp >> $dd if=u-boot-with-spl.sfp of=/dev/sdb3 >> >> My gcc is:

[U-Boot] [PATCH 1/3] ARM: uniphier: fix README instruction for updating U-Boot via TFTP

2016-03-22 Thread Masahiro Yamada
Commit 3cb9abc9c512 ("ARM: uniphier: update U-Boot file names in workflow") missed to update these two sentences. Fix them now. Replace u-boot-spl-dtb.bin and u-boot-dtb.img with u-boot-spl.bin and u-boot.img, respectively. Signed-off-by: Masahiro Yamada --- doc/README.uniphier | 8

[U-Boot] [PATCH 2/3] ARM: uniphier: add NOR boot support

2016-03-22 Thread Masahiro Yamada
This allows to boot from NOR flash (or SRAM) with help of an external loader (NOR-loader). Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/boot-mode/boot-mode-ld4.c | 2 +- arch/arm/mach-uniphier/boot-mode/boot-mode-sld3.c | 2 +- include/configs/uniphier.h| 3

[U-Boot] [PATCH 3/3] ARM: uniphier: switch to raw U-Boot image

2016-03-22 Thread Masahiro Yamada
Now everything is done to load a raw U-Boot proper image instead of an mkimage-processed one (as far as I tested on NAND, eMMC, NOR). The SPL already knows the load address of the U-Boot proper without parsing its uImage header because the load address is defined by CONFIG_SYS_TEXT_BASE, assuming

[U-Boot] [PATCH 0/3] ARM: uniphier: more patches for bulk updates for v2016.05-rc1

2016-03-22 Thread Masahiro Yamada
Masahiro Yamada (3): ARM: uniphier: fix README instruction for updating U-Boot via TFTP ARM: uniphier: add NOR boot support ARM: uniphier: switch to raw U-Boot image arch/arm/mach-uniphier/boot-mode/boot-mode-ld4.c | 2 +- arch/arm/mach-uniphier/boot-mode/boot-mode-sld3.c | 2 +- doc/

[U-Boot] Please pull u-boot-fsl-qoriq master

2016-03-22 Thread york sun
Tom, The following changes since commit f23baa572f96e1e13d7f1a3c8addb61b5d0dbd29: cmd_dhry.c: Use lldiv for vax_mips calculation as well (2016-03-17 10:14:25 -0400) are available in the git repository at: git://git.denx.de/u-boot-fsl-qoriq.git master for you to fetch changes up to 6dedced

Re: [U-Boot] [PATCH v2 2/3] armv8/ls1043aqds: Return i2c mux to default chennel

2016-03-22 Thread york sun
On 03/08/2016 09:47 PM, Wenbin Song wrote: > Return i2c mux to the default channel after accessing retimer. > > Signed-off-by: Wenbin Song > --- > Change for v2: > -Rework the commit message and the subject > --- > board/freescale/ls1043aqds/ls1043aqds.c | 6 -- > 1 file changed, 4 ins

Re: [U-Boot] [PATCH v2 1/3] freescale: vid: Return i2c mux to default channel

2016-03-22 Thread york sun
On 03/08/2016 09:47 PM, Wenbin Song wrote: > IR chip is on one of the channels on multiplexed I2C-bus. > Reset to default channel after accessing. > > Signed-off-by: Wenbin Song > --- > Changes for v2: > -Rework the commit message and the tag int the subject. > --- > board/freescale/common

Re: [U-Boot] [PATCH 1/2][v2] driver: net: ldpaa_eth: Add support of PHY framework

2016-03-22 Thread york sun
On 02/24/2016 03:32 AM, Prabhakar Kushwaha wrote: > This patch integrate DPAA2 ethernet driver existing PHY framework. > > Call phy_connect and phy_config as per available DPMAC id defined > in SerDes Protcol. > > Signed-off-by: Pratiyush Mohan Srivastava > Signed-off-by: Prabhakar Kushwaha > -

Re: [U-Boot] [PATCH] ls102xa: fdt: Update FSL_QSPI_COMPAT and FSL_DSPI_COMPAT

2016-03-22 Thread york sun
On 02/28/2016 10:59 PM, Alison Wang wrote: > As the compatible property values for QSPI and DSPI dts nodes > are changed in kernel, FSL_QSPI_COMPAT and FSL_DSPI_COMPAT > need to be updated too. > > Signed-off-by: Alison Wang > --- > arch/arm/include/asm/arch-ls102xa/config.h | 4 ++-- > 1 file c

Re: [U-Boot] [PATCH][v2] armv8: ls2080ardb: invert irq pins polarity for AQR405 PHY

2016-03-22 Thread york sun
On 01/27/2016 11:46 PM, shh@gmail.com wrote: > From: Shaohui Xie > > To use AQR405 PHY's interrupt, we need to invert the relative IRQ pins > polarity by setting IRQCR register, because AQR405 interrupt is low > active but GIC accepts high active. > > Signed-off-by: Shaohui Xie > --- > chan

Re: [U-Boot] [PATCH 1/2 v2] driver/ddr/fsl: Add address parity support for DDR4 UDIMM/discrete

2016-03-22 Thread york sun
On 03/10/2016 01:46 AM, Shengzhou Liu wrote: > Add support of address parity for DDR4 UDIMM or discrete memory. > It requires to configurate corresponding MR5[2:0] and TIMING_CFG_7[PAR_LAT]. > Parity can be turned on/off by hwconfig, e.g. hwconfig=fsl_ddr:parity=on. > > Signed-off-by: Shengzhou Li

Re: [U-Boot] [PATCH] arm64: Fix layerscape mmu setup

2016-03-22 Thread york sun
On 03/21/2016 12:26 PM, Alexander Graf wrote: > With commit 7985cdf we converted all systems except for the Layerscape > SoCs to the generic descriptor table based page table setup. > > On the Layerscape SoCs however, we just provide an empty table stub > and do the setup ourselves. To reserve eno

Re: [U-Boot] [PATCH][v2] driver: net: fsl-mc: Return from DPAA_exit if boot_status !=0

2016-03-22 Thread york sun
On 03/21/2016 01:50 AM, Prabhakar Kushwaha wrote: > Return value of get_mc_boot_status() in case of failure is not necessary > to be -1. > > So update the error condition check. > > Signed-off-by: Prabhakar Kushwaha > Reported-by: Yao Yuan > --- > Changes for v2: Incorporated York's comments >

Re: [U-Boot] [PATCH v2 3/3] armv8/ls1043aqds: Enable ID_EEPROM support for ls1043aqds

2016-03-22 Thread york sun
On 03/08/2016 09:47 PM, Wenbin Song wrote: > Signed-off-by: Wenbin Song > --- > Changes for v2: > -Rework the subject > --- > include/configs/ls1043aqds.h | 10 ++ > 1 file changed, 10 insertions(+) > Applied to u-boot-fsl-qoriq, awaiting upstream. Thanks. York

[U-Boot] [PATCH] ARM: tegra210: set PLLE_PTS bit when enabling PLLE

2016-03-22 Thread Stephen Warren
From: Stephen Warren This bit needs to be set for system suspend/resume to work. This setting will be documented in an updated TRM at some time in the future. Signed-off-by: Stephen Warren --- arch/arm/mach-tegra/tegra210/clock.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/m

Re: [U-Boot] [PATCH] armv8: lsch3: Enable WUO config for RNI-20 node

2016-03-22 Thread york sun
On 01/24/2016 10:39 PM, Prabhakar Kushwaha wrote: > Enable wuo config to accelerate coherent ordered writes for LS2080A > and LS2085A. > > WRIOP IP is connected to RNI-20 Node. > > Signed-off-by: Prabhakar Kushwaha > --- > arch/arm/cpu/armv8/fsl-layerscape/lowlevel.S | 8 > arch/

Re: [U-Boot] [PATCH] arm: ls102xa: Enable CONFIG_SYS_CONSOLE_IS_IN_ENV support

2016-03-22 Thread york sun
On 03/07/2016 08:09 PM, Alison Wang wrote: > CONFIG_SYS_CONSOLE_IS_IN_ENV needs to be enabled, so we could set stdout > environment variable to specify the vga for the console output when > LCD/HDMI is connected to the boards. > > Signed-off-by: Alison Wang > --- > include/configs/ls1021aqds.h |

Re: [U-Boot] [PATCH] armv8/fsl-lsch2: fix sdhc clock frequency value

2016-03-22 Thread york sun
On 02/15/2016 07:03 PM, Yangbo Lu wrote: > The eSDHC could select to use platform clock or peripheral clock to > generate SD clock. The default selection is platform clock. So, fix > the clock frequency value that's calculated for eSDHC. > > Signed-off-by: Yangbo Lu > --- > arch/arm/cpu/armv8/fs

Re: [U-Boot] [PATCH 4/5 v6] pci/layerscape: add defines for LUT

2016-03-22 Thread york sun
On 03/10/2016 09:13 AM, Stuart Yoder wrote: > From: Stuart Yoder > > The per-PCI controller LUT (Look-Up-Table) is a 32-entry table > that maps PCI requester IDs (bus/dev/fun) to a stream ID. > > Add defines for the register offsets. > > Signed-off-by: Stuart Yoder > --- > -v6: first version o

Re: [U-Boot] [PATCH 2/2][v2] armv8: ls2085a: Remove phy configuration from QDS and RDB

2016-03-22 Thread york sun
On 02/24/2016 03:32 AM, Prabhakar Kushwaha wrote: > From: Prabhakar Kushwaha > > As phy_connect and phy_config are being called from DPAA2 driver. > Remove calling of mentioned function from board file. > > Signed-off-by: Pratiyush Mohan Srivastava > Signed-off-by: Prabhakar Kushwaha > --- > C

Re: [U-Boot] [PATCH] [v3] armv8: fsl-layerscape: Updating entries in Serdes Table

2016-03-22 Thread york sun
On 03/18/2016 04:44 AM, Pratiyush Mohan Srivastava wrote: > The serdes protocol entries in Serdes table 1 for protocol > 0x03, 0x33, 0x35 and in Serdes table 2 for protocols 0x45 > and 0x47 are updated to reflect the entries in > current Reference Manual. > > Signed-off-by: Pratiyush Mohan Srivas

  1   2   3   >