Re: [U-Boot] [PATCH v2 2/2] dm: i2c: Add driver for Cadence I2C IP

2016-04-12 Thread Heiko Schocher
Hello Michal, Am 11.04.2016 um 14:55 schrieb Michal Simek: From: Moritz Fischer This is a possible drop in replacement for drivers/i2c/zynq-i2c.c Since this is cadence IP it has been renamed to cdns-i2c, to make sense with the compatible string. Signed-off-by:

Re: [U-Boot] [PATCH v2 1/2] i2c: Describe Cadence I2C devicetree bindings

2016-04-12 Thread Heiko Schocher
Hello Michal, Am 11.04.2016 um 14:55 schrieb Michal Simek: From: Moritz Fischer Signed-off-by: Moritz Fischer Signed-off-by: Michal Simek --- Changes in v2: None doc/device-tree-bindings/i2c/i2c-cdns.txt | 20

Re: [U-Boot] [PATCH] gunzip.c: use block layer for writes

2016-04-12 Thread Stephen Warren
On 04/11/2016 04:21 PM, Eric Nelson wrote: Call blk_dwrite to ensure that the block cache is notified if enabled and remove build breakage when CONFIG_BLK is enabled. Reviewed-by: Stephen Warren You probably wanted to Cc whichever maintainer will apply this though.

Re: [U-Boot] [PATCH] gunzip.c: use block layer for writes

2016-04-12 Thread Eric Nelson
Thanks Stephen, On 04/12/2016 09:45 AM, Stephen Warren wrote: > On 04/11/2016 04:21 PM, Eric Nelson wrote: >> Call blk_dwrite to ensure that the block cache is notified >> if enabled and remove build breakage when CONFIG_BLK is enabled. > > Reviewed-by: Stephen Warren > >

[U-Boot] [PATCH] ARM: tegra: enable GPU node by compatible value

2016-04-12 Thread Stephen Warren
From: Stephen Warren In current Linux kernel Tegra DT files, 64-bit addresses are represented in unit addresses as a pair of comma-separated 32-bit values. Apparently this is no longer the correct representation for simple busses, and the unit address should be represented as

Re: [U-Boot] [PATCH 06/11] ARM: dts: k2e: Enable Davinci SPI controller

2016-04-12 Thread Tom Rini
On Tue, Apr 12, 2016 at 05:03:22PM +0530, Vignesh R wrote: > Now that davinci_spi driver has been converted to DM framework, enable > the same in DT. Also add "spi-flash" as compatible property to > n25q128a11 node as it is required for flash device to be probed in > U-Boot. > > Signed-off-by:

Re: [U-Boot] [PATCH 09/11] defconfig: k2l_evm_defconfig: enable SPI driver model

2016-04-12 Thread Tom Rini
On Tue, Apr 12, 2016 at 05:03:25PM +0530, Vignesh R wrote: > Enable SPI and SPI Flash driver model as K2L SPI controller driver > supports driver model. > > Signed-off-by: Vignesh R Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital

Re: [U-Boot] [PATCH 10/11] ARM: dts: k2g: add support for Davinci SPI controller

2016-04-12 Thread Tom Rini
On Tue, Apr 12, 2016 at 05:03:26PM +0530, Vignesh R wrote: > K2G SoC has 4 SPI instances that are compatible with davinci_spi > controller(same as previous generation of Keystone2 devices). Add DT > nodes for the same. K2G EVM has a N25Q128A13 SPI NOR flash connected on > SPI-1. Add DT bindings

Re: [U-Boot] [PATCH 11/11] defconfig: k2g_evm_defconfig: enable SPI driver model

2016-04-12 Thread Tom Rini
On Tue, Apr 12, 2016 at 05:03:27PM +0530, Vignesh R wrote: > Enable SPI and SPI Flash driver model as K2G SPI controller driver > supports driver model. > > Signed-off-by: Vignesh R Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital

Re: [U-Boot] Please pull u-boot-marvell/master

2016-04-12 Thread Tom Rini
On Tue, Apr 12, 2016 at 11:19:18AM +0200, Stefan Roese wrote: > Hi Tom, > > please pull the following small fixes and board-specific > changes: > > The following changes since commit bbf8bef196ae52517284a0a2e2ffc94a4ff89f5f: > > Prepare v2016.05-rc1 (2016-04-11 22:22:25 -0400) > > are

Re: [U-Boot] [PATCH] gunzip.c: use block layer for writes

2016-04-12 Thread Tom Rini
On Tue, Apr 12, 2016 at 10:18:39AM -0700, Eric Nelson wrote: > Thanks Stephen, > > On 04/12/2016 09:45 AM, Stephen Warren wrote: > > On 04/11/2016 04:21 PM, Eric Nelson wrote: > >> Call blk_dwrite to ensure that the block cache is notified > >> if enabled and remove build breakage when CONFIG_BLK

Re: [U-Boot] [PATCH] gunzip.c: use block layer for writes

2016-04-12 Thread Stephen Warren
On 04/12/2016 11:21 AM, Tom Rini wrote: On Tue, Apr 12, 2016 at 10:18:39AM -0700, Eric Nelson wrote: Thanks Stephen, On 04/12/2016 09:45 AM, Stephen Warren wrote: On 04/11/2016 04:21 PM, Eric Nelson wrote: Call blk_dwrite to ensure that the block cache is notified if enabled and remove build

Re: [U-Boot] [PATCH 08/11] ARM: dts: k2l: Enable Davinci SPI controller

2016-04-12 Thread Tom Rini
On Tue, Apr 12, 2016 at 05:03:24PM +0530, Vignesh R wrote: > Now that davinci_spi driver has been converted to DM framework, enable > the same in DT. Also add "spi-flash" as compatible property to > n25q128a11 node as it is required for flash device to be probed in > U-Boot. > > Signed-off-by:

Re: [U-Boot] [PATCH 07/11] defconfig: k2e_evm_defconfig: enable SPI driver model

2016-04-12 Thread Tom Rini
On Tue, Apr 12, 2016 at 05:03:23PM +0530, Vignesh R wrote: > Enable SPI and SPI Flash driver model as K2E SPI controller driver > supports driver model. > > Signed-off-by: Vignesh R Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital

Re: [U-Boot] [PATCH 04/11] ARM: dts: k2hk: Enable Davinci SPI controller

2016-04-12 Thread Tom Rini
On Tue, Apr 12, 2016 at 05:03:20PM +0530, Vignesh R wrote: > Now that davinci_spi driver has been converted to DM framework, enable > the same in DT. Also add "spi-flash" as compatible property to > n25q128a11 node as it is required for flash device to be probed in > U-Boot. > > Signed-off-by:

Re: [U-Boot] [PATCH 03/11] ARM: dts: keystone2: add SPI aliases for davinci SPI nodes

2016-04-12 Thread Tom Rini
On Tue, Apr 12, 2016 at 05:03:19PM +0530, Vignesh R wrote: > Add aliases for SPI nodes in order for it to be probed by the DM > framework. > > Signed-off-by: Vignesh R Reviewed-by: Tom Rini ... but this is going up to the kernel too, yes? -- Tom

Re: [U-Boot] [PATCH v2 09/12] arm: dts: dra7: fix ethernet name with proper device address

2016-04-12 Thread Tom Rini
On Tue, Apr 12, 2016 at 02:16:53PM +0530, Mugunthan V N wrote: > Fix typo error for cpsw device name with proper device address > > Signed-off-by: Mugunthan V N Reviewed-by: Tom Rini ... and I assume this is already fixed in the kernel. -- Tom

Re: [U-Boot] [PATCH 05/11] defconfig: k2hk_evm_defconfig: enable SPI driver model

2016-04-12 Thread Tom Rini
On Tue, Apr 12, 2016 at 05:03:21PM +0530, Vignesh R wrote: > Enable SPI and SPI Flash driver model as K2HK SPI controller driver > supports driver model. > > Signed-off-by: Vignesh R Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital

Re: [U-Boot] [PATCH 01/11] spi: davinci_spi: Convert to driver to adapt to DM

2016-04-12 Thread Tom Rini
On Tue, Apr 12, 2016 at 05:03:17PM +0530, Vignesh R wrote: > Convert davinci_spi driver to comply with SPI DM framework. > > Signed-off-by: Vignesh R Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature

Re: [U-Boot] [PATCH 02/11] keystone2: spi: do not define DM_SPI and DM_SPI_FLASH for SPL build

2016-04-12 Thread Tom Rini
On Tue, Apr 12, 2016 at 05:03:18PM +0530, Vignesh R wrote: > Since Keystone2 devices do not have support DM in SPL, do not define > DM_SPI and DM_SPI_FLASH for SPL build. > > Signed-off-by: Vignesh R Reviewed-by: Tom Rini -- Tom signature.asc

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

2016-04-12 Thread Tom Rini
On Tue, Apr 12, 2016 at 11:07:13AM +0200, Hans de Goede wrote: > Hi Tom, > > Here is a bug-fix sunxi pull-req for v2016.05, it contains: > > - A couple of fixes > - Support for one new board > > The diffstat is somewhat big because of: > "sunxi: Enable CMD_GPIO on all sunxi boards" > Which

Re: [U-Boot] Please pull u-boot-marvell/master

2016-04-12 Thread Tom Rini
On Tue, Apr 12, 2016 at 11:19:18AM +0200, Stefan Roese wrote: > Hi Tom, > > please pull the following small fixes and board-specific > changes: > > The following changes since commit bbf8bef196ae52517284a0a2e2ffc94a4ff89f5f: > > Prepare v2016.05-rc1 (2016-04-11 22:22:25 -0400) > > are

Re: [U-Boot] [PATCH v2 06/12] drivers: net: cpsw: add support for reading mac address from efuse

2016-04-12 Thread Tom Rini
On Tue, Apr 12, 2016 at 02:16:50PM +0530, Mugunthan V N wrote: > Different TI platforms has to read with different combination to > get the mac address from efuse. So add support to read mac address > based on machine/device compatibles. > > The code is taken from Linux

Re: [U-Boot] [PATCH v2 05/12] drivers: net: cpsw: fix get mdio base and gmii_sel reg from DT

2016-04-12 Thread Tom Rini
On Tue, Apr 12, 2016 at 02:16:49PM +0530, Mugunthan V N wrote: > Since dra7x platforms address bus is define as 64 bits to support > LAPE, fdtdec_get_addr() returns a invalid address for mdio based > and gmii_sel register address. Fixing this by using > fdtdec_get_addr_size_auto_noparent() which

Re: [U-Boot] [PATCH 06/44] sandbox: Add string and 16-bit I/O functions

2016-04-12 Thread Stephen Warren
On 04/09/2016 08:44 PM, Simon Glass wrote: Add outsw() and insw() functions for sandbox, as these are needed by the IDE code. The functions will not do anything useful if called, but allow the code to be compiled. diff --git a/arch/sandbox/include/asm/io.h b/arch/sandbox/include/asm/io.h

[U-Boot] [PATCH 2/3] drivers/gpio/pm8916_gpio.c: Make pid be uint32_t

2016-04-12 Thread Tom Rini
If get_dev_addr fails it will return FDT_ADDR_T_NONE and: >>> "priv->pid == 4294967295U" is always false regardless of the values of >>> its operands. This occurs as the logical operand of if. Cc: Mateusz Kulikowski Reported-by: Coverity (CID: 143913)

[U-Boot] [PATCH 1/3] drivers/tpm/tpm_tis_sandbox.c: Fix uninitialized variable use

2016-04-12 Thread Tom Rini
In rollback_space_kernel we were not initializing the reserved fields which should be for safety sake, and doing memset here means we don't need to set the version field specifically either. Reported-by: Coverity (CID: 143917) Cc: Simon Glass Signed-off-by: Tom Rini

Re: [U-Boot] [PATCH 16/44] dm: systemace: Add a legacy block interface

2016-04-12 Thread Stephen Warren
On 04/09/2016 08:45 PM, Simon Glass wrote: Add a legacy block interface for systemace. diff --git a/drivers/block/systemace.c b/drivers/block/systemace.c +static int systemace_get_devp(int dev, struct blk_desc **descp) I'm not sure what "devp" means here rather than "dev". I suppose it's

[U-Boot] [PATCH 3/3] drivers/power/pmic/pm8916.c: Make usid be uint32_t

2016-04-12 Thread Tom Rini
If get_dev_addr fails it will return FDT_ADDR_T_NONE and: >>> "priv->usid == 4294967295U" is always false regardless of the values of >>> its operands. This occurs as the logical operand of if. Cc: Mateusz Kulikowski Reported-by: Coverity (CID: 143914)

Re: [U-Boot] [PATCH 40/44] dm: blk: Allow blk_create_device() to allocate the device number

2016-04-12 Thread Stephen Warren
On 04/09/2016 08:45 PM, Simon Glass wrote: Allow a devnum parameter of -1 to indicate that the device number should be alocated automatically. The next highest available device number for that interface type is used. diff --git a/drivers/block/blk-uclass.c b/drivers/block/blk-uclass.c +int

[U-Boot] SYS_VENDOR for sr1500 board?

2016-04-12 Thread Dinh Nguyen
Hi Stefan, I'm doing a bit of clean up with duplicate CONFIG_* options that scattered throughout all the socfpga_*hw*.h configs. I noticed that the sr1500 board is missing a SYS_VENDOR option. Do you know who is the vendor for this board? Thanks, Dinh

Re: [U-Boot] [PATCH 09/44] dm: scsi: Remove the forward declarations

2016-04-12 Thread Stephen Warren
On 04/09/2016 08:45 PM, Simon Glass wrote: Reorder the code to avoid needing forward declarations. diff --git a/cmd/scsi.c b/cmd/scsi.c @@ -50,6 +50,7 @@ static int scsi_curr_dev; /* current device */ static struct blk_desc scsi_dev_desc[CONFIG_SYS_SCSI_MAX_DEVICE]; +#if 0

Re: [U-Boot] [PATCH 10/44] dm: scsi: Fix up code style

2016-04-12 Thread Stephen Warren
On 04/09/2016 08:45 PM, Simon Glass wrote: Update the code style of this file so that it passes checkpatch.pl. diff --git a/cmd/scsi.c b/cmd/scsi.c @@ -50,82 +50,53 @@ static int scsi_curr_dev; /* current device */ static struct blk_desc scsi_dev_desc[CONFIG_SYS_SCSI_MAX_DEVICE]; -#if

Re: [U-Boot] [PATCH 15/44] dm: blk: Add a legacy block interface

2016-04-12 Thread Stephen Warren
On 04/09/2016 08:45 PM, Simon Glass wrote: There is quite a bit of duplicated common code related to block devices in the IDE and SCSI implementations. Create some helper functions that can be used to reduce the duplication. These rely on a linker list of interface-type drivers It'd be useful

Re: [U-Boot] [PATCH 20/44] dm: mmc: Add an implementation of the 'devnum' functions

2016-04-12 Thread Stephen Warren
On 04/09/2016 08:45 PM, Simon Glass wrote: Now that the MMC code accesses devices by number, we can implement this same interface for driver model, allowing MMC to support using driver model for block devices. Add the required functions to the uclass. +int blk_list_part(enum if_type if_type)

Re: [U-Boot] [PATCH 05/44] Allow iotrace byte access to use an address of any size

2016-04-12 Thread Stephen Warren
On 04/09/2016 08:44 PM, Simon Glass wrote: If an address is used with readb() and writeb() which is smaller than the expected size (e.g. 32-bit value on a machine with 64-bit addresses), a warning results. Fix this by adding a cast. diff --git a/include/iotrace.h b/include/iotrace.h

Re: [U-Boot] [PATCH 34/44] dm: ide: Add support for driver-model block devices

2016-04-12 Thread Stephen Warren
On 04/09/2016 08:45 PM, Simon Glass wrote: Add driver-model block-device support to the IDE implementation. diff --git a/include/ide.h b/include/ide.h +struct udevice; +#ifdef CONFIG_BLK +ulong ide_read(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, + void *buffer);

Re: [U-Boot] [PATCH 35/44] dm: sandbox: Enable IDE

2016-04-12 Thread Stephen Warren
On 04/09/2016 08:45 PM, Simon Glass wrote: Enable building the IDE code for sandbox. It might be worth mentioning dumy/fake/compile-only in the commit subject/description lest anyone think they can actually try out emulated devices? ___ U-Boot

[U-Boot] [PATCH v2 0/5] imx: bx50v3 display setup updates

2016-04-12 Thread Akshay Bhat
The patch series addresses NXP iMX6 ERR009219 errata for ldb_di_clk clock switch and includes updates to meet display timings requirements on bx50v3 board. v1 -> v2: Address review comments by Stefano Babic - Move ERR009219 ldb_di_clk errata from bx50v3 board file to common mx6 clock file -

[U-Boot] [PATCH v2 2/5] board: ge: bx50v3: Split display setup function

2016-04-12 Thread Akshay Bhat
B450v3/B650v3 uses single channel LVDS and does not support HDMI. B850v3 uses dual channel LVDS and supports HDMI. Hence split the display setup into two different functions. Signed-off-by: Akshay Bhat Cc: Stefano Babic --- board/ge/bx50v3/bx50v3.c |

[U-Boot] [PATCH v2 1/5] imx: mx6: Fix procedure to switch the parent of LDB_DI_CLK

2016-04-12 Thread Akshay Bhat
Due to incorrect placement of the clock gate cell in the ldb_di[x]_clk tree, the glitchy parent mux of ldb_di[x]_clk can cause a glitch to enter the ldb_di_ipu_div divider. If the divider gets locked up, no ldb_di[x]_clk is generated, and the LVDS display will hang when the ipu_di_clk is sourced

[U-Boot] [PATCH v2 5/5] board: ge: bx50v3: Fix to meet LVDS display power on timing

2016-04-12 Thread Akshay Bhat
On a reset/reboot, the display power needs to be off for atleast 500ms before turning it back on. So add a delay to the boot process to meet the display timing requirement. Signed-off-by: Akshay Bhat Cc: Stefano Babic --- board/ge/bx50v3/bx50v3.c | 7

[U-Boot] [PATCH v2 3/5] board: ge: bx50v3: Setup LDB_DI_CLK source

2016-04-12 Thread Akshay Bhat
To generate accurate pixel clocks required by the displays we need to set the ldb_di_clk source on bx50v3 to PLL3 and b850v3 to PLL5. Since PLL5 is disabled on reset, we need to enable PLL5. Signed-off-by: Akshay Bhat Cc: Stefano Babic ---

Re: [U-Boot] [PATCH] m68k: fix broken buildman m68k

2016-04-12 Thread Marek Vasut
On 04/12/2016 11:41 PM, Angelo Dureghello wrote: > Hi, > > > On 12/04/2016 00:52, Marek Vasut wrote: >> On 04/12/2016 12:30 AM, Angelo Dureghello wrote: >>> fix 19/48 broken board compilations, due to a now too smal 16-bit >>> relative jump >> >> Won't it make sense to tweak the linker script to

Re: [U-Boot] [PATCH v3 2/2] arm: add initial support for Amlogic Meson and ODROID-C2

2016-04-12 Thread Marek Vasut
On 04/12/2016 11:50 PM, Beniamino Galvani wrote: > On Mon, Apr 11, 2016 at 11:08:02PM +0200, Marek Vasut wrote: > + val = fdt_getprop(gd->fdt_blob, offset, "reg", ); > + if (len < sizeof(*val) * 4) > + return -EINVAL; > + > + /* Don't use fdt64_t to avoid unaligned

Re: [U-Boot] [ANN] U-Boot v2016.03 released

2016-04-12 Thread Wolfgang Denk
Dear Tom, I wrote: > Tarballs are both on FTP and ACD. ...and here are finally the (abbreviated) release stats; the full version is as always avaialble on the web page [1]: [1] http://www.denx.de/wiki/U-Boot/UbootStat_2016_03 U-Boot 2016.03 Release Statistics (Changes since v2016.01) *

Re: [U-Boot] [PATCH] m68k: fix broken buildman m68k

2016-04-12 Thread Angelo Dureghello
Hi, On 12/04/2016 00:52, Marek Vasut wrote: On 04/12/2016 12:30 AM, Angelo Dureghello wrote: fix 19/48 broken board compilations, due to a now too smal 16-bit relative jump Won't it make sense to tweak the linker script to put those functions closer together instead ? tried hardly with

Re: [U-Boot] [PATCH v3 2/2] arm: add initial support for Amlogic Meson and ODROID-C2

2016-04-12 Thread Beniamino Galvani
On Mon, Apr 11, 2016 at 11:08:02PM +0200, Marek Vasut wrote: > >>> + val = fdt_getprop(gd->fdt_blob, offset, "reg", ); > >>> + if (len < sizeof(*val) * 4) > >>> + return -EINVAL; > >>> + > >>> + /* Don't use fdt64_t to avoid unaligned access */ > >> > >> This looks iffy, can you elaborate

[U-Boot] [PATCH 1/2] net: fix vlan validation

2016-04-12 Thread Stefan Agner
VLAN identifiers are 12-bit decimal numbers, not IP addresses. Signed-off-by: Stefan Agner --- include/env_flags.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/env_flags.h b/include/env_flags.h index 9e87e1b..0dcec06 100644 ---

[U-Boot] [PATCH v2 4/5] board: ge: bx50v3: Use pwm for display backlight

2016-04-12 Thread Akshay Bhat
Setup the LCD backlight brightness control pin to use PWM Signed-off-by: Akshay Bhat Cc: Stefano Babic --- board/ge/bx50v3/bx50v3.c| 11 +++ include/configs/ge_bx50v3.h | 3 +++ 2 files changed, 14 insertions(+) diff --git

[U-Boot] [PATCH 2/2] net: increase maximum frame size to accomediate VLAN packets

2016-04-12 Thread Stefan Agner
Ethernet packages with IEEE 802.1Q VLAN support may be up to 1522 bytes long. Increase the default size used to allocate packet storage by 4 bytes. Signed-off-by: Stefan Agner --- include/net.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net.h

Re: [U-Boot] [PATCH v2] fastboot: OUT transaction length must be aligned to wMaxPacketSize

2016-04-12 Thread Steve Rae
On Tue, Apr 12, 2016 at 6:50 AM, Roger Quadros wrote: > Lukasz, > > On 12/04/16 16:37, Lukasz Majewski wrote: >> Hi Roger, >> >>> Hi, >>> >>> On 12/04/16 14:19, Lukasz Majewski wrote: Hi Tom, Mugunthan > On Mon, Apr 11, 2016 at 05:04:56PM +0530, Mugunthan V N wrote:

Re: [U-Boot] [PATCH 2/2] fastboot: Enable the respective speed endpoints at runtime

2016-04-12 Thread Steve Rae
Hi Roger, On Tue, Apr 12, 2016 at 6:47 AM, Lukasz Majewski wrote: > Hi Roger, > >> In a dual speed configuration we need to check at runtime if >> we want to enable the Full-Speed or High-Speed endpoint. >> >> Signed-off-by: Roger Quadros >> --- >>

Re: [U-Boot] [PATCH 1/2] fastboot: Fix wMaxPacketSize for High-Speed IN endpoint

2016-04-12 Thread Steve Rae
oops -- my last reply was interpreted as a new patch: http://patchwork.ozlabs.org/patch/609843/ so I'll try again: Tested-by: Steve Rae [Test HW: bcm235xx board] On Tue, Apr 12, 2016 at 5:51 AM, Roger Quadros wrote: > wMaxPacketSize for IN endpoing in

Re: [U-Boot] A problem about 'sf probe' using DM_SPI

2016-04-12 Thread Qianyu Gong
Hi Simon, > -Original Message- > From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass > Sent: Saturday, April 09, 2016 3:13 AM > To: Qianyu Gong > Cc: u-boot@lists.denx.de; Mingkai Hu ; Yao Yuan > ;

[U-Boot] [PATCH] efi_loader: Add debug output for efi_add_memory_map()

2016-04-12 Thread Andreas Färber
Tracing the arguments has been helpful for pinpointing overflows. Cc: Alexander Graf Signed-off-by: Andreas Färber --- lib/efi_loader/efi_memory.c | 5 + 1 file changed, 5 insertions(+) diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/efi_memory.c

[U-Boot] [RFC] efi_loader: Handle 32-bit memory overflows

2016-04-12 Thread Andreas Färber
jetson-tk1 has 2 GB of RAM at 0x8000, causing gd->ram_top to be zero. Handle this by replacing it with 0x1 in that case. Cc: Alexander Graf Signed-off-by: Andreas Färber --- lib/efi_loader/efi_memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2

Re: [U-Boot] [ANN] U-Boot v2016.05-rc1 released

2016-04-12 Thread Wolfgang Denk
Dear Tom, In message <20160412023114.GY13577@bill-the-cat> you wrote: > > I've tagged v2016.05-rc1 and it should be available everywhere soon. I > know we're a week behind but rather than tag this during ELC, I waited > until I got home and... I think it was a mistake. Next time conference >

[U-Boot] [PATCH v2 1/2] memory: Move TI_AEMIF config to KCONFIG

2016-04-12 Thread Lokesh Vutla
Not all Keystone2 devices has AEMIF NAND controller. So adding Kconfig entry for CONFIG_TI_AEMIF and enabling it in respective defconfigs on platforms with AEMIF controller. Reported-by: Nishanth Menon Signed-off-by: Lokesh Vutla --- board/ti/ks2_evm/board.c

[U-Boot] [PATCH v2 0/2] configs: ks2: Move NAND configs to defconfigs

2016-04-12 Thread Lokesh Vutla
This series move NAND specific configs to defconfigs. This fixes an asynchronous abort generated by NAND on K2G-evm. Tested on K2g-evm: With this series: http://pastebin.ubuntu.com/15804343/ Without this series: http://pastebin.ubuntu.com/15804352/ Changes since v1: - Move NAND configs to

Re: [U-Boot] SYS_VENDOR for sr1500 board?

2016-04-12 Thread Stefan Roese
Hi Dinh, On 12.04.2016 22:33, Dinh Nguyen wrote: I'm doing a bit of clean up with duplicate CONFIG_* options that scattered throughout all the socfpga_*hw*.h configs. I noticed that the sr1500 board is missing a SYS_VENDOR option. Do you know who is the vendor for this board? The vendor has

Re: [U-Boot] [PATCHv7 6/7] igep00x0: UBIize

2016-04-12 Thread Heiko Schocher
Hello Enric, Am 25.01.2016 um 17:56 schrieb Enric Balletbo Serra: Hi Ladis, 2016-01-25 16:56 GMT+01:00 Ladislav Michl : Hi Enric, On Mon, Jan 25, 2016 at 08:26:23AM +0100, Enric Balletbo Serra wrote: The ROM boot on OMAP reads the first 4 blocks searching for the SPL,

Re: [U-Boot] [PATCH v2 09/12] arm: dts: dra7: fix ethernet name with proper device address

2016-04-12 Thread Mugunthan V N
On Tuesday 12 April 2016 10:53 PM, Tom Rini wrote: > On Tue, Apr 12, 2016 at 02:16:53PM +0530, Mugunthan V N wrote: > >> Fix typo error for cpsw device name with proper device address >> >> Signed-off-by: Mugunthan V N > > Reviewed-by: Tom Rini > > ...

[U-Boot] [PATCH v2 2/2] configs: ks2: move CMD_NAND to defconfigs

2016-04-12 Thread Lokesh Vutla
NAND is not yet enabled on all Keystone2 platforms. So enabled CMD_NAND in the respective defconfigs only if available. Reported-by: Nishanth Menon Signed-off-by: Lokesh Vutla --- configs/k2e_evm_defconfig| 1 + configs/k2hk_evm_defconfig

Re: [U-Boot] [RFC] efi_loader: Handle 32-bit memory overflows

2016-04-12 Thread Alexander Graf
> Am 13.04.2016 um 05:24 schrieb Andreas Färber : > > jetson-tk1 has 2 GB of RAM at 0x8000, causing gd->ram_top to be zero. > Handle this by replacing it with 0x1 in that case. Nice catch! > > Cc: Alexander Graf > Signed-off-by: Andreas Färber

Re: [U-Boot] [PATCH 1/2] fastboot: Fix wMaxPacketSize for High-Speed IN endpoint

2016-04-12 Thread Steve Rae
Hi Roger, On Tue, Apr 12, 2016 at 6:54 AM, Lukasz Majewski wrote: > Hi Roger, > >> wMaxPacketSize for IN endpoing in High-Speed must be 512 and not 64. >> While fixing that we do some clean ups like >> >> - use cpu_to_le16(decimal_length) instead of hexadecimal length. >>

Re: [U-Boot] [PATCH] ARM: tegra: enable GPU node by compatible value

2016-04-12 Thread Alexandre Courbot
On 04/13/2016 02:17 AM, Stephen Warren wrote: From: Stephen Warren In current Linux kernel Tegra DT files, 64-bit addresses are represented in unit addresses as a pair of comma-separated 32-bit values. Apparently this is no longer the correct representation for simple

[U-Boot] [PATCH] ARM: AM43xx: Fix BOOT_DEVICE_USB ID

2016-04-12 Thread Lokesh Vutla
commit 62c5674ea136a ("omap: SPL boot devices cleanup and completion") cleans up the boot device ids for amx3xx soc. But mistakenly updates wrong device IDs for AM43xx USB. Fixing the same here. Signed-off-by: Lokesh Vutla --- -Tested USB_MS boot :

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

2016-04-12 Thread Heiko Schocher
Hello Stefan, Am 12.04.2016 um 15:22 schrieb Stefan Roese: Hi Heiko, On 28.03.2016 09:33, Heiko Schocher wrote: Am 23.03.2016 um 06:46 schrieb Stefan Roese: This patch prepares the designware I2C driver for the DM conversion. This is mainly done by removing struct i2c_adapter from the

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

2016-04-12 Thread Stefan Roese
Hi Heiko, On 13.04.2016 07:49, Heiko Schocher wrote: > Hello Stefan, > > Am 12.04.2016 um 15:22 schrieb Stefan Roese: >> Hi Heiko, >> >> On 28.03.2016 09:33, Heiko Schocher wrote: >>> Am 23.03.2016 um 06:46 schrieb Stefan Roese: This patch prepares the designware I2C driver for the DM

Re: [U-Boot] [RFC 2/2] dm: i2c: Add driver for Cadence I2C IP

2016-04-12 Thread Heiko Schocher
Hello Michal, Sorry for the late reply... Am 11.04.2016 um 14:50 schrieb Michal Simek: Hi Heiko, On 4.1.2016 08:15, Heiko Schocher wrote: Hello Moritz, Am 28.12.2015 um 18:47 schrieb Moritz Fischer: This is a possible drop in replacement for drivers/i2c/zynq-i2c.c Since this is cadence IP

Re: [U-Boot] [RFC 2/2] dm: i2c: Add driver for Cadence I2C IP

2016-04-12 Thread Michal Simek
Hi Heiko, On 12.4.2016 09:45, Heiko Schocher wrote: > Hello Michal, > > Sorry for the late reply... > > Am 11.04.2016 um 14:50 schrieb Michal Simek: >> Hi Heiko, >> >> On 4.1.2016 08:15, Heiko Schocher wrote: >>> Hello Moritz, >>> >>> Am 28.12.2015 um 18:47 schrieb Moritz Fischer: This is

[U-Boot] [PATCH v2 12/12] defconfig: dra74_evm: enable eth driver model

2016-04-12 Thread Mugunthan V N
Enable eth driver model for dra74_evm as cpsw supports driver model. Signed-off-by: Mugunthan V N Reviewed-by: Tom Rini --- configs/dra74_evm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/dra74_evm_defconfig

[U-Boot] [PATCH v2 09/12] arm: dts: dra7: fix ethernet name with proper device address

2016-04-12 Thread Mugunthan V N
Fix typo error for cpsw device name with proper device address Signed-off-by: Mugunthan V N --- arch/arm/dts/dra7.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/dra7.dtsi b/arch/arm/dts/dra7.dtsi index 3059273..0f242e6 100644 ---

[U-Boot] [PATCH v2 08/12] arm: dts: dra7: add syscon node to cpsw to read mac address

2016-04-12 Thread Mugunthan V N
Add syscon node to cpsw device node to read mac address from efuse. Signed-off-by: Mugunthan V N Reviewed-by: Tom Rini --- arch/arm/dts/dra7.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/dra7.dtsi b/arch/arm/dts/dra7.dtsi index

[U-Boot] [PATCH v2 10/12] defconfig: am437x_gp_evm: enable eth driver model

2016-04-12 Thread Mugunthan V N
Enable eth driver model for am437x_gp_evm as cpsw supports driver model. Signed-off-by: Mugunthan V N Reviewed-by: Tom Rini --- configs/am437x_gp_evm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am437x_gp_evm_defconfig

[U-Boot] [PATCH v2 11/12] defconfig: am437x_sk_evm: enable eth driver model

2016-04-12 Thread Mugunthan V N
Enable eth driver model for am437x_sk_evm as cpsw supports driver model. Signed-off-by: Mugunthan V N Reviewed-by: Tom Rini --- configs/am437x_sk_evm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am437x_sk_evm_defconfig

[U-Boot] [PATCH v2 06/12] drivers: net: cpsw: add support for reading mac address from efuse

2016-04-12 Thread Mugunthan V N
Different TI platforms has to read with different combination to get the mac address from efuse. So add support to read mac address based on machine/device compatibles. The code is taken from Linux drivers/net/ethernet/ti/cpsw-common.c done by Tony Lindgren. Signed-off-by: Mugunthan V N

[U-Boot] [PATCH 1/2] mtd: nand: am335x: spl: Fix copying of image

2016-04-12 Thread Lokesh Vutla
When offset is not aligned to page address, it is possible that extra offset will be read from nand. Adjust the image such that first byte of the image is at load address after the first page is read. Signed-off-by: Lokesh Vutla --- drivers/mtd/nand/am335x_spl_bch.c | 15

[U-Boot] [PATCH 1/1] drivers: usb: common: add common code for usb drivers to use

2016-04-12 Thread Mugunthan V N
Add common usb code which usb drivers makes use of it. Signed-off-by: Mugunthan V N --- This was in my musb dm bringup patch list, and I did dwc3 over the same branch so missed submitting this patch for dwc3 bringup. So submitting the dwc3 dependent patch separately and

Re: [U-Boot] [PATCH 3/3] tests: py: dfu: Provide functionality to set test and dummy files alt settings

2016-04-12 Thread Lukasz Majewski
Hi Stephen, > On 04/11/2016 02:42 AM, Lukasz Majewski wrote: > > Hi Stephen, > > > >> On 04/08/2016 09:44 AM, Lukasz Majewski wrote: > >>> After concatenation of "dfu_alt_info" variable from "dfu_alt_boot" > >>> and "dfu_alt_system" it may happen that test and dummy files alt > >>> settings are

Re: [U-Boot] [PATCH 0/8 v3] usb: Move DWC3 and some gadget options to Kconfig

2016-04-12 Thread Lukasz Majewski
Hi Semen, > > Hi All, > > This patch series move next options to Kconfigs/defconfigs: > - CONFIG_USB_DWC3* > - CONFIG_USB_GADGET_VBUS_DRAW > - CONFIG_USB_GADGET_DUALSPEED > - CONFIG_USB_GADGET_DOWNLOAD > - CONFIG_G_DNL_* > > All defconfig files were post-processed via "make savedefconfig"

[U-Boot] Please pull u-boot-marvell/master

2016-04-12 Thread Stefan Roese
Hi Tom, please pull the following small fixes and board-specific changes: The following changes since commit bbf8bef196ae52517284a0a2e2ffc94a4ff89f5f: Prepare v2016.05-rc1 (2016-04-11 22:22:25 -0400) are available in the git repository at: git://www.denx.de/git/u-boot-marvell.git for

[U-Boot] [PATCH v2 07/12] arm: dts: am4372: add syscon node to cpsw to read mac address

2016-04-12 Thread Mugunthan V N
Add syscon node to cpsw device node to read mac address from efuse. Signed-off-by: Mugunthan V N Reviewed-by: Tom Rini --- arch/arm/dts/am4372.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/am4372.dtsi b/arch/arm/dts/am4372.dtsi

[U-Boot] [PATCH v2 02/12] ti_omap5_common: eth: do not define DM_ETH for spl

2016-04-12 Thread Mugunthan V N
Since omap's spl doesn't support DM currently, do not define DM_ETH for spl build. Signed-off-by: Mugunthan V N Reviewed-by: Simon Glass Reviewed-by: Tom Rini --- include/configs/ti_omap5_common.h | 1 + 1 file changed, 1

[U-Boot] [PATCH v2 04/12] ARM: omap5: add platform specific ethernet phy modes configurations

2016-04-12 Thread Mugunthan V N
Add platforms specific phy mode configuration bits to be used to configure phy mode in control module. Signed-off-by: Mugunthan V N Reviewed-by: Tom Rini --- arch/arm/include/asm/arch-omap5/cpu.h | 12 1 file changed, 12 insertions(+) diff

[U-Boot] [PATCH v2 05/12] drivers: net: cpsw: fix get mdio base and gmii_sel reg from DT

2016-04-12 Thread Mugunthan V N
Since dra7x platforms address bus is define as 64 bits to support LAPE, fdtdec_get_addr() returns a invalid address for mdio based and gmii_sel register address. Fixing this by using fdtdec_get_addr_size_auto_noparent() which will derive address cell and size cell from its parent. Signed-off-by:

[U-Boot] [PATCH v2 01/12] drivers: core: device: add support to check dt compatible for a device/machine

2016-04-12 Thread Mugunthan V N
Provide an api to check whether the given device or machine is compatible with the given compat string which helps in making decisions in drivers based on device or machine compatible. Idea taken from Linux. Signed-off-by: Mugunthan V N --- Changes from initial version: *

[U-Boot] [PATCH v2 00/12] cpsw: enable DM_ETH on dra74 and am437x evms

2016-04-12 Thread Mugunthan V N
This series adds the following * Enable DM_ETH on dra74, am437x gp and am437x sk evms. * Add support to verify of_is_device_conpatible() based on linux implementation * Fix an issue in fdtdec get addr for address and size cell length Pushed a branch for others for testing [1] and logs at [2]

[U-Boot] [PATCH v2 03/12] drivers: net: cpsw: fix cpsw dp parse when num slaves as 1

2016-04-12 Thread Mugunthan V N
On some boards number of slaves can be 1 when only one port ethernet is pinned out. So do not break when slave_index and num slaves check fails, instead continue to parse the next child. Signed-off-by: Mugunthan V N Reviewed-by: Tom Rini ---

[U-Boot] Please pull u-boot-sunxi master

2016-04-12 Thread Hans de Goede
Hi Tom, Here is a bug-fix sunxi pull-req for v2016.05, it contains: - A couple of fixes - Support for one new board The diffstat is somewhat big because of: "sunxi: Enable CMD_GPIO on all sunxi boards" Which simple selects CMD_GPIO from Kconfig removing the need to specify it in each an every

[U-Boot] [PATCH 4/4] ath79: add readonly attribute for ath79_soc_desc

2016-04-12 Thread Wills Wang
use 'const' keywork to qualify readonly attribute for lookup-table member Signed-off-by: Wills Wang --- arch/mips/mach-ath79/cpu.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/mips/mach-ath79/cpu.c b/arch/mips/mach-ath79/cpu.c index

[U-Boot] [PATCH 0/2] spl: Support loading a FIT from NAND

2016-04-12 Thread Lokesh Vutla
This series adds support for loading a FIT image from NAND. Also fixes copying of image from am335x nand. Verified on Am437x-GP evm with FIT enabled. Lokesh Vutla (2): mtd: nand: am335x: spl: Fix copying of image spl: Support loading a FIT from NAND common/spl/spl_nand.c | 33

[U-Boot] [PATCH 2/2] spl: Support loading a FIT from NAND

2016-04-12 Thread Lokesh Vutla
Detect a FIT when loading from NAND and handle it using the new FIT SPL support. Signed-off-by: Lokesh Vutla --- common/spl/spl_nand.c | 33 ++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/common/spl/spl_nand.c

Re: [U-Boot] [PATCH 00/10] driver model bring-up of dwc3 usb peripheral

2016-04-12 Thread Mugunthan V N
Hi Simon On Monday 11 April 2016 08:27 PM, Simon Glass wrote: > Hi Mugunthan, > > On 11 April 2016 at 08:52, Mugunthan V N wrote: >> On Monday 11 April 2016 05:50 PM, Simon Glass wrote: >>> +Mugunthan, who seems to have been dropped from this thread >>> >>> On 8 April 2016

[U-Boot] [PATCH 00/11] ARM: Keystone2: Convert davinci_spi to DM

2016-04-12 Thread Vignesh R
This series converts davinci_spi driver to adapt to driver model framework. And enables the driver on k2l, k2e, k2hk evms. Also, added support for davinci_spi on k2g evm. Tested on k2l, k2e, k2hk and k2g evms. Vignesh R (11): spi: davinci_spi: Convert to driver to adapt to DM keystone2: spi:

[U-Boot] [PATCH 02/11] keystone2: spi: do not define DM_SPI and DM_SPI_FLASH for SPL build

2016-04-12 Thread Vignesh R
Since Keystone2 devices do not have support DM in SPL, do not define DM_SPI and DM_SPI_FLASH for SPL build. Signed-off-by: Vignesh R --- include/configs/ti_armv7_keystone2.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/ti_armv7_keystone2.h

[U-Boot] [PATCH 01/11] spi: davinci_spi: Convert to driver to adapt to DM

2016-04-12 Thread Vignesh R
Convert davinci_spi driver to comply with SPI DM framework. Signed-off-by: Vignesh R --- drivers/spi/davinci_spi.c | 326 +- 1 file changed, 237 insertions(+), 89 deletions(-) diff --git a/drivers/spi/davinci_spi.c

Re: [U-Boot] Custodian Repo for Broadcom (arm) boards

2016-04-12 Thread Tom Rini
On Mon, Apr 11, 2016 at 03:54:01PM -0700, Steve Rae wrote: > On Mon, Apr 11, 2016 at 3:34 PM, Tom Rini wrote: > > On Mon, Apr 11, 2016 at 03:13:37PM -0700, Steve Rae wrote: > >> On Mon, Apr 11, 2016 at 3:08 PM, Tom Rini wrote: > >> > On Mon, Apr 11, 2016

[U-Boot] [PATCH 11/11] defconfig: k2g_evm_defconfig: enable SPI driver model

2016-04-12 Thread Vignesh R
Enable SPI and SPI Flash driver model as K2G SPI controller driver supports driver model. Signed-off-by: Vignesh R --- configs/k2g_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/k2g_evm_defconfig b/configs/k2g_evm_defconfig index

  1   2   >