Re: [U-Boot] [PATCH] arm: tegra: use architecture specific memcpy

2014-08-26 Thread Marcel Ziswiler
On Tue, 2014-08-26 at 10:27 -0600, Stephen Warren wrote: > On Jetson TK1, this makes my "dhcp zImage" on my USB ethernet dongle got > from ~1.7MiB/s to ~2.8MiB/s :-) Very well indeed. As mentioned before Stefan discovered this working on Vybrid where we saw similar speed-up when booting from NAND

Re: [U-Boot] [PATCH v3] arm: tegra: initial support for apalis t30

2014-08-26 Thread Marcel Ziswiler
On Tue, 2014-08-26 at 09:51 -0600, Stephen Warren wrote: > It's helpful to include the tags people wrote in future version, unless > there are significant changes to invalidate them. That way, people know > they don't have to re-review the code. Yes, makes sense. Please forgive my ignorance. __

Re: [U-Boot] [PATCH v2 15/40] power: Add AMS AS3722 PMIC support

2014-08-26 Thread Thierry Reding
On Wed, Aug 27, 2014 at 07:26:12AM +0200, Heiko Schocher wrote: > Hello Thierry, > > Am 26.08.2014 17:34, schrieb Thierry Reding: [...] > >+int as3722_init(struct as3722 **pmicp, const void *fdt) > >+{ > >+struct as3722 *pmic =&as3722_pmic; > >+int count, nodes[1], i; > >+int err; > >+

Re: [U-Boot] [PATCH v2 13/40] i2c: Add high-level API

2014-08-26 Thread Thierry Reding
On Wed, Aug 27, 2014 at 07:21:51AM +0200, Heiko Schocher wrote: > Hello Thierry, > > Am 26.08.2014 17:34, schrieb Thierry Reding: > >From: Thierry Reding > > > >This API operates on I2C adapters or I2C clients (a new type of object > > which is a bad idea ... > > >that refers to a particular sla

Re: [U-Boot] [PATCH v2 11/40] i2c: Initialize the correct bus

2014-08-26 Thread Heiko Schocher
Hello Thierry, Am 27.08.2014 07:12, schrieb Thierry Reding: On Wed, Aug 27, 2014 at 06:52:16AM +0200, Heiko Schocher wrote: Hello Thierry, Am 26.08.2014 17:33, schrieb Thierry Reding: From: Thierry Reding i2c_bus_init() takes a bus number but relies on the currently selected bus to determine

Re: [U-Boot] [PATCH v2 15/40] power: Add AMS AS3722 PMIC support

2014-08-26 Thread Heiko Schocher
Hello Thierry, Am 26.08.2014 17:34, schrieb Thierry Reding: From: Thierry Reding The AS3722 provides a number of DC/DC converters and LDOs as well as 8 GPIOs. Signed-off-by: Thierry Reding --- drivers/power/Makefile | 1 + drivers/power/as3722.c | 300 +

[U-Boot] [PATCH] README.kconfig: document backward compatibility "make *_config"

2014-08-26 Thread Masahiro Yamada
Commit 3ff291f3 added "_config" target for backward compatibility. It should be documented. Signed-off-by: Masahiro Yamada --- doc/README.kconfig | 7 +++ scripts/multiconfig.sh | 1 + 2 files changed, 8 insertions(+) diff --git a/doc/README.kconfig b/doc/README.kconfig index cd549a8.

Re: [U-Boot] [PATCH v2 13/40] i2c: Add high-level API

2014-08-26 Thread Heiko Schocher
Hello Thierry, Am 26.08.2014 17:34, schrieb Thierry Reding: From: Thierry Reding This API operates on I2C adapters or I2C clients (a new type of object which is a bad idea ... that refers to a particular slave connected to an adapter). This is useful to avoid having to call i2c_set_bus_num(

Re: [U-Boot] [PATCH v6 4/4] usb/gadget: fastboot: implement sparse format

2014-08-26 Thread Michael Trimarchi
Hi Il 26/ago/2014 20:46 "Steve Rae" ha scritto: > > - add capability to "fastboot flash" with sparse format images > > Signed-off-by: Steve Rae > Acked-by: Lukasz Majewski > --- > > Changes in v6: > - remove excess braces > > Changes in v5: > - use the common/aboot.c for the "sparse format" han

Re: [U-Boot] [PATCH v2 11/40] i2c: Initialize the correct bus

2014-08-26 Thread Thierry Reding
On Wed, Aug 27, 2014 at 06:52:16AM +0200, Heiko Schocher wrote: > Hello Thierry, > > Am 26.08.2014 17:33, schrieb Thierry Reding: > >From: Thierry Reding > > > >i2c_bus_init() takes a bus number but relies on the currently selected > >bus to determine which adapter to initialize. Make the function

[U-Boot] [PATCH] tools/genboardscfg.py: change shebang into /usr/bin/env python2

2014-08-26 Thread Masahiro Yamada
This tool only works on python 2 (python 2.6 or lator). Change the shebang to make sure the script is run by python 2 and clearly say the supported version in the comment block. Signed-off-by: Masahiro Yamada --- tools/genboardscfg.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) d

Re: [U-Boot] [PATCH v2 11/40] i2c: Initialize the correct bus

2014-08-26 Thread Heiko Schocher
Hello Thierry, Am 26.08.2014 17:33, schrieb Thierry Reding: From: Thierry Reding i2c_bus_init() takes a bus number but relies on the currently selected bus to determine which adapter to initialize. Make the function use the bus passed in as parameter rather than the currently selected bus. Whil

[U-Boot] Questions on lthor usage

2014-08-26 Thread S Durga Prasad Paladugu
Hi, I have a query on lthor usage. How do i specify the altsetting while sending the lthor download from host. In dfu we are specifying that with -a < altnum/altname>. I have alt setting to copy the linux images(uImage.devicetree and ramdisk) to DDR at prescribed locations in my device side. Also

Re: [U-Boot] [PATCH v9 10/14] buildman: Remove the directory prefix from each error line

2014-08-26 Thread Simon Glass
Hi Tom, On 26 August 2014 08:13, Tom Rini wrote: > On Mon, Aug 25, 2014 at 09:58:31AM -0600, Simon Glass wrote: > >> The full path is long and also includes buildman private directories. >> Clean this up, so that only a relative U-Boot path is shown. > > This is missing a global somewhere perhaps

Re: [U-Boot] [PATCH v9 11/14] buildman: Add an option to show which boards caused which errors

2014-08-26 Thread Simon Glass
Hi Tom, On 25 August 2014 13:14, Tom Rini wrote: > On Mon, Aug 25, 2014 at 09:58:32AM -0600, Simon Glass wrote: >> Add a -l option to display a list of offending boards against each >> error/warning line. The information will be shown in brackets as below: >> >> 02: wip >>sandbox: + sandbox

Re: [U-Boot] [PATCH v9 0/14] Add some missing buildman features and deprecate MAKEALL

2014-08-26 Thread Simon Glass
Hi Tom, On 25 August 2014 14:21, Tom Rini wrote: > On Mon, Aug 25, 2014 at 01:00:05PM -0600, Simon Glass wrote: >> Hi Tom, >> >> On 25 August 2014 12:54, Tom Rini wrote: >> > On Mon, Aug 25, 2014 at 09:58:21AM -0600, Simon Glass wrote: >> > >> >> Buildman has been around for a little over a year

Re: [U-Boot] [PATCH V4 0/9] peach_pit: Add support for FIMD, DP and parade chip

2014-08-26 Thread Simon Glass
Hi Minkyu, On 4 August 2014 05:39, Ajay kumar wrote: > +Minkyu > > On Mon, Aug 4, 2014 at 4:49 PM, Simon Glass wrote: >> Hi, >> >> On 30 July 2014 03:11, Ajay Kumar wrote: >>> Patchset V1: >>> https://www.mail-archive.com/u-boot@lists.denx.de/msg140596.html >>> >>> Patchset V2: >>> https://www.

Re: [U-Boot] [PATCH v6 03/12] tegra: Convert tegra GPIO driver to use driver model

2014-08-26 Thread Simon Glass
Hi Stephen, On 25 August 2014 14:19, Tom Warren wrote: > Sorry, very low priority for me right now. Try to get someone else to do it, > as it may be a long while until I can get to it. Are you able to test it on your board? I can pull it through the DM tree but would like some sort of independe

Re: [U-Boot] [PATCH v2 01/40] vsprintf: Add modifier for phys_addr_t

2014-08-26 Thread Simon Glass
Hi Thierry, On 26 August 2014 09:33, Thierry Reding wrote: > > From: Thierry Reding > > Provide a new modifier to vsprintf() to print phys_addr_t variables to > avoid having to cast or #ifdef when printing them out. The %pa modifier > is used for this purpose, so phys_addr_t variables need to be

Re: [U-Boot] [PATCH] common: fix compiler warning on wrong printf format

2014-08-26 Thread Chris Packham
On Wed, Aug 27, 2014 at 2:02 AM, Alexey Brodkin wrote: > bounce_buffer->len_aligned is of type "size_t", but on some arches/compilers > "size_t" might be an alias to whether "int", "long" or their "signed/unsigned" > flavors. > > So to make compiler happy we explicitly cast to "int" which is expec

Re: [U-Boot] [PATCH] mpc5xxx: Add stub implementation of cache functions

2014-08-26 Thread Marek Vasut
On Tuesday, August 26, 2014 at 09:48:26 PM, Scott Wood wrote: > On Tue, 2014-08-26 at 21:45 +0200, Marek Vasut wrote: > > On Tuesday, August 26, 2014 at 01:05:31 PM, Vasili Galka wrote: > > > Some drivers (e.g. net/e1000) reference these functions. So, this > > > fixes the build of MVBC_P board. >

Re: [U-Boot] [PATCH] mpc5xxx: Add stub implementation of cache functions

2014-08-26 Thread Scott Wood
On Tue, 2014-08-26 at 21:45 +0200, Marek Vasut wrote: > On Tuesday, August 26, 2014 at 01:05:31 PM, Vasili Galka wrote: > > Some drivers (e.g. net/e1000) reference these functions. So, this > > fixes the build of MVBC_P board. > > > > I'm not familiar with the MPC5xxx platform, maybe a full > > im

Re: [U-Boot] [PATCH] mpc5xxx: Add stub implementation of cache functions

2014-08-26 Thread Marek Vasut
On Tuesday, August 26, 2014 at 01:05:31 PM, Vasili Galka wrote: > Some drivers (e.g. net/e1000) reference these functions. So, this > fixes the build of MVBC_P board. > > I'm not familiar with the MPC5xxx platform, maybe a full > implementation shall be implemented instead of this stub in the > fu

Re: [U-Boot] [PATCH v5 1/4] usb/gadget: fastboot: add eMMC support for flash command

2014-08-26 Thread Steve Rae
Steve agrees!!! -- I have fixed them this time, see "v6", However, I have no issue with you cleaning up the minor issues THANKS, Steve On 14-08-26 02:41 AM, Marek Vasut wrote: On Tuesday, August 26, 2014 at 11:28:43 AM, Lukasz Majewski wrote: Hi Steve, - add support for 'fastboot flash' c

[U-Boot] [PATCH v6 1/4] usb/gadget: fastboot: add eMMC support for flash command

2014-08-26 Thread Steve Rae
- add support for 'fastboot flash' command for eMMC devices Signed-off-by: Steve Rae --- Changes in v6: - printf() to error() Changes in v5: None Changes in v4: - rearranged this patchset so that "sparse_format.h" can be dropped (if we cannot resolve the copyright/licensing issues) - update

[U-Boot] [PATCH v6 4/4] usb/gadget: fastboot: implement sparse format

2014-08-26 Thread Steve Rae
- add capability to "fastboot flash" with sparse format images Signed-off-by: Steve Rae Acked-by: Lukasz Majewski --- Changes in v6: - remove excess braces Changes in v5: - use the common/aboot.c for the "sparse format" handling Changes in v4: - rearranged "sparse format" support in this patc

[U-Boot] [PATCH v6 3/4] usb/gadget: fastboot: minor cleanup

2014-08-26 Thread Steve Rae
- update static function - additional debugging statements - update "fastboot command" information - add missing include file - update spelling Signed-off-by: Steve Rae --- Changes in v6: - printf() to error() Changes in v5: None Changes in v4: - update debug string as per feedback Changes in

[U-Boot] [PATCH v6 2/4] usb/gadget: fastboot: add support for flash command

2014-08-26 Thread Steve Rae
- implement 'fastboot flash' for eMMC devices Signed-off-by: Steve Rae Acked-by: Lukasz Majewski Reviewed-by: Marek Vasut --- Changes in v6: - fix spelling Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: - update README.android-fastboot file README

[U-Boot] [PATCH v6 0/4] Implement "fastboot flash" for eMMC

2014-08-26 Thread Steve Rae
This series implements the "fastboot flash" command for eMMC devices. It supports both raw and sparse images. NOTES: - the support for the "fastboot flash" command is enabled with CONFIG_FASTBOOT_FLASH - the support for eMMC is enabled with CONFIG_FASTBOOT_FLASH_MMC_DEV - (future) the support for

Re: [U-Boot] [PATCH v2 01/40] vsprintf: Add modifier for phys_addr_t

2014-08-26 Thread Stephen Warren
On 08/26/2014 09:33 AM, Thierry Reding wrote: From: Thierry Reding Provide a new modifier to vsprintf() to print phys_addr_t variables to avoid having to cast or #ifdef when printing them out. The %pa modifier is used for this purpose, so phys_addr_t variables need to be passed by reference, li

Re: [U-Boot] [PATCH] arm: tegra: use architecture specific memcpy

2014-08-26 Thread Stephen Warren
On 08/26/2014 03:49 AM, Marcel Ziswiler wrote: Use architecture specific memcpy to speed up things. Tested-by: Stephen Warren On Jetson TK1, this makes my "dhcp zImage" on my USB ethernet dongle got from ~1.7MiB/s to ~2.8MiB/s :-) ___ U-Boot maili

Re: [U-Boot] [PATCH v5 0/4] Implement "fastboot flash" for eMMC

2014-08-26 Thread Steve Rae
On 14-08-26 02:14 AM, Lukasz Majewski wrote: Hi Steve, On 14-08-25 07:57 AM, Lukasz Majewski wrote: Hi Steve, This series implements the "fastboot flash" command for eMMC devices. It supports both raw and sparse images. NOTES: - the support for the "fastboot flash" command is enabled wi

Re: [U-Boot] [PATCH v3] arm: tegra: initial support for apalis t30

2014-08-26 Thread Stephen Warren
On 08/26/2014 03:59 AM, Marcel Ziswiler wrote: This patch adds board support for the Toradex Apalis T30 a computer on module which can be used on different carrier boards. For the sake of ease of use we do not distinguish between different carrier boards for now as the base module features are d

[U-Boot] [PATCH v2 39/40] net: rtl8169: Use non-cached memory if available

2014-08-26 Thread Thierry Reding
From: Thierry Reding To work around potential issues with explicit cache maintenance of the RX and TX descriptor rings, allocate them from a pool of uncached memory if the architecture supports it. Signed-off-by: Thierry Reding --- Changes in v2: - if non-cached memory is not available, use mem

[U-Boot] [PATCH v2 40/40] net: rtl8169: Add support for RTL-8168/8111g

2014-08-26 Thread Thierry Reding
From: Thierry Reding This network interface card in found on the NVIDIA Jetson TK1. Signed-off-by: Thierry Reding --- drivers/net/rtl8169.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/rtl8169.c b/drivers/net/rtl8169.c index 22ad70719937..8183df39e77a 100644 --- a/drivers/ne

[U-Boot] [PATCH v2 05/40] fdt: Add resource parsing functions

2014-08-26 Thread Thierry Reding
From: Thierry Reding Add the fdt_get_resource() and fdt_get_named_resource() functions which can be used to parse resources (memory regions) from an FDT. A helper to compute the size of a region is also provided. Signed-off-by: Thierry Reding --- Changes in v2: - use existing fdt_address_cells(

[U-Boot] [PATCH v2 35/40] ARM: Implement non-cached memory support

2014-08-26 Thread Thierry Reding
From: Thierry Reding Implement an API that can be used by drivers to allocate memory from a pool that is mapped uncached. This is useful if drivers would otherwise need to do extensive cache maintenance (or explicitly maintaining the cache isn't safe). The API is protected using the new CONFIG_S

[U-Boot] [PATCH v2 36/40] ARM: tegra: Enable non-cached memory

2014-08-26 Thread Thierry Reding
From: Thierry Reding Some boards, most notably those with a PCIe ethernet NIC, require this to avoid cache coherency problems. Since the option adds very little code and overhead enable it across all Tegra generations. Other drivers may also start supporting this functionality at some point, so e

[U-Boot] [PATCH v2 37/40] net: rtl8169: Honor CONFIG_SYS_RX_ETH_BUFFER

2014-08-26 Thread Thierry Reding
From: Thierry Reding According to the top-level README file, this configuration setting can be used to override the number of receive buffers that an ethernet NIC uses. Signed-off-by: Thierry Reding --- drivers/net/rtl8169.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --gi

[U-Boot] [PATCH v2 32/40] ARM: cache_v7: Various minor cleanups

2014-08-26 Thread Thierry Reding
From: Thierry Reding Remove two gratuituous blank lines, uses u32 (instead of int) as the type for values that will be written to a register, moves the beginning of the variable declaration section to a separate line (rather than the one with the opening brace) and keeps the function signature on

[U-Boot] [PATCH v2 38/40] net: rtl8169: Properly align buffers

2014-08-26 Thread Thierry Reding
From: Thierry Reding RX and TX descriptor rings should be aligned to 256 byte boundaries. Use the DEFINE_ALIGN_BUFFER() macro to define the buffers so that they don't have to be manually aligned later on. Also make sure that the buffers do align to cache-line boundaries in case the cache-line is

[U-Boot] [PATCH v2 34/40] malloc: Output region when debugging

2014-08-26 Thread Thierry Reding
From: Thierry Reding When DEBUG is set, output memory region used for malloc(). Signed-off-by: Thierry Reding --- common/dlmalloc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/dlmalloc.c b/common/dlmalloc.c index f9873393c183..3d6391e60acf 100644 --- a/common/dlmalloc.c +++ b

[U-Boot] [PATCH v2 29/40] ARM: tegra: Add GIC for Tegra124

2014-08-26 Thread Thierry Reding
From: Thierry Reding Add a device tree node for the GIC v2 found on the Cortex-A15 CPU complex of Tegra124. U-Boot doesn't use this but subsequent patches will add device tree nodes that reference it by phandle. Acked-by: Stephen Warren Signed-off-by: Thierry Reding --- arch/arm/dts/tegra124.

[U-Boot] [PATCH v2 31/40] ARM: tegra: Enable PCIe on Jetson TK1

2014-08-26 Thread Thierry Reding
From: Thierry Reding The Jetson TK1 has an ethernet NIC connected to the PCIe bus and routes the second root port to a miniPCIe slot. Enable the PCIe controller and the network driver to allow the device to boot over the network. Signed-off-by: Thierry Reding --- Changes in v2: - move AS3722 PM

[U-Boot] [PATCH v2 30/40] ARM: tegra: Add Tegra124 PCIe device tree node

2014-08-26 Thread Thierry Reding
From: Thierry Reding Add the device tree node for the PCIe controller found on Tegra124 SoCs. Acked-by: Stephen Warren Signed-off-by: Thierry Reding --- arch/arm/dts/tegra124.dtsi | 67 ++ include/dt-bindings/clock/tegra124-car.h | 341 +++ 2 fil

[U-Boot] [PATCH v2 28/40] ARM: tegra: Enable PCIe on Beaver

2014-08-26 Thread Thierry Reding
From: Thierry Reding The Beaver has an ethernet NIC connected to the PCIe bus. Enable the PCIe controller and the network device driver so that the device can boot over the network. In addition the board has a mini-PCIe expansion slot. Signed-off-by: Thierry Reding --- Changes in v2: - move af

[U-Boot] [PATCH v2 33/40] ARM: cache-cp15: Use more accurate types

2014-08-26 Thread Thierry Reding
From: Thierry Reding size_t is the canonical type to represent variables that contain a size. Use it instead of signed integer. Physical addresses can be larger than 32-bit, so use a more appropriate type for them as well. phys_addr_t is a type that is 32-bit on systems that use 32-bit addresses

[U-Boot] [PATCH v2 27/40] ARM: tegra: Enable PCIe on Cardhu

2014-08-26 Thread Thierry Reding
From: Thierry Reding The PCIe bus on Cardhu is routed to the dock connector. An ethernet NIC is available on the dock over the PCIe bus. Enable the PCIe controller and the network device driver so that the device can boot over the network. Signed-off-by: Thierry Reding --- Changes in v2: - writ

[U-Boot] [PATCH v2 25/40] ARM: tegra: Add GIC for Tegra30

2014-08-26 Thread Thierry Reding
From: Thierry Reding Add a device tree node for the GIC found on Tegra30. U-Boot doesn't use it directly but subsequent patches will add device tree nodes that reference it by phandle. Signed-off-by: Thierry Reding --- arch/arm/dts/tegra30.dtsi | 9 + 1 file changed, 9 insertions(+) d

[U-Boot] [PATCH v2 24/40] ARM: tegra: Enable PCIe on TrimSlice

2014-08-26 Thread Thierry Reding
From: Thierry Reding The TrimSlice has an ethernet NIC connected to the PCIe bus. Enable the PCIe controller and the network driver so that the device can boot over the network. Signed-off-by: Thierry Reding --- Changes in v2: - add all regulators from Linux kernel DTS - use proper set of PCIe

[U-Boot] [PATCH v2 26/40] ARM: tegra: Add Tegra30 PCIe device tree node

2014-08-26 Thread Thierry Reding
From: Thierry Reding Add the device tree node for the PCIe controller found on Tegra30 SoCs. Signed-off-by: Thierry Reding --- Changes in v2: - include unit address in device tree node name - add missing interrupt-map-mask and interrupt-map properties arch/arm/dts/tegra30.dtsi |

[U-Boot] [PATCH v2 21/40] ARM: tegra: Enable XUSB pad controller on Jetson TK1

2014-08-26 Thread Thierry Reding
From: Thierry Reding Add the PCIe and SATA lane configuration to the Jetson TK1 device tree, so that the XUSB pad controller can be appropriately configured. Acked-by: Stephen Warren Signed-off-by: Thierry Reding --- arch/arm/dts/tegra124-jetson-tk1.dts | 26 ++ 1 file

[U-Boot] [PATCH v2 23/40] ARM: tegra: Add Tegra20 PCIe device tree node

2014-08-26 Thread Thierry Reding
From: Thierry Reding Add the device tree node for the PCIe controller found on Tegra20 SoCs. Acked-by: Stephen Warren Signed-off-by: Thierry Reding --- Changes in v2: - add missing interrupt-map-mask and interrupt-map properties - include unit address in device tree node name arch/arm/dts/te

[U-Boot] [PATCH v2 22/40] pci: tegra: Add Tegra PCIe driver

2014-08-26 Thread Thierry Reding
From: Thierry Reding Add support for the PCIe controller found on some generations of Tegra. Tegra20 has 2 root ports with a total of 4 lanes, Tegra30 has 3 root ports with a total of 6 lanes and Tegra124 has 2 root ports with a total of 5 lanes. This is based on the Linux kernel driver, origina

[U-Boot] [PATCH v2 19/40] ARM: tegra: Implement XUSB pad controller

2014-08-26 Thread Thierry Reding
From: Thierry Reding This controller was introduced on Tegra114 to handle XUSB pads. On Tegra124 it is also used for PCIe and SATA pin muxing and PHY control. Only the Tegra124 PCIe and SATA functionality is currently implemented, with weak symbols on Tegra114. Tegra20 and Tegra30 also provide w

[U-Boot] [PATCH v2 20/40] ARM: tegra: Add XUSB pad controller on Tegra124

2014-08-26 Thread Thierry Reding
From: Thierry Reding The XUSB pad controller is used for pinmuxing of the XUSB, PCIe and SATA lanes. Acked-by: Stephen Warren Signed-off-by: Thierry Reding --- arch/arm/dts/tegra124.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/dts/tegra124.dtsi b/arch/arm/dts/

[U-Boot] [PATCH v2 18/40] ARM: tegra: Implement powergate support

2014-08-26 Thread Thierry Reding
From: Thierry Reding Implement the powergate API that allows various power partitions to be power up and down. Signed-off-by: Thierry Reding --- Changes in v2: - wait for power-up/off operation to complete before returning - document PCIE/VDEC mixup in REMOVE_CLAMPING register - add symbolic na

[U-Boot] [PATCH v2 15/40] power: Add AMS AS3722 PMIC support

2014-08-26 Thread Thierry Reding
From: Thierry Reding The AS3722 provides a number of DC/DC converters and LDOs as well as 8 GPIOs. Signed-off-by: Thierry Reding --- drivers/power/Makefile | 1 + drivers/power/as3722.c | 300 + include/fdtdec.h | 1 + include/power/as3

[U-Boot] [PATCH v2 17/40] ARM: tegra: Provide PCIEXCLK reset ID

2014-08-26 Thread Thierry Reding
From: Thierry Reding This reset is required for PCIe and the corresponding ID therefore needs to be defined. The enumeration value for this was properly defined on some SoCs but not on others. Similarly, some contained it in the mapping of peripheral IDs to clock IDs, other didn't. This patch def

[U-Boot] [PATCH v2 16/40] ARM: tegra: Implement tegra_plle_enable()

2014-08-26 Thread Thierry Reding
From: Thierry Reding This function is required by PCIe and SATA. This patch implements it on Tegra20, Tegra30 and Tegra124. It isn't implemented for Tegra114 because it doesn't support PCIe or SATA. Acked-by: Stephen Warren Signed-off-by: Thierry Reding --- arch/arm/cpu/tegra124-common/clock.

[U-Boot] [PATCH v2 12/40] i2c: Refactor adapter initialization

2014-08-26 Thread Thierry Reding
From: Thierry Reding A subsequent patch will introduce a new API to access I2C adapters directly rather than going through the bus number and constantly looking up the same adapter. In order to share the adapter initialization code, move it into a separate function and make i2c_init_bus() use it

[U-Boot] [PATCH v2 14/40] i2c: tegra: Implement i2c_get_bus_num_fdt()

2014-08-26 Thread Thierry Reding
From: Thierry Reding This is useful to retrieve the U-Boot bus number of an I2C controller given a device tree node. Signed-off-by: Thierry Reding --- drivers/i2c/tegra_i2c.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/i2c/tegra_i2c.c b/drivers/i2c/tegra_i2c.c in

[U-Boot] [PATCH v2 13/40] i2c: Add high-level API

2014-08-26 Thread Thierry Reding
From: Thierry Reding This API operates on I2C adapters or I2C clients (a new type of object that refers to a particular slave connected to an adapter). This is useful to avoid having to call i2c_set_bus_num() whenever a device is being accessed. Drivers for I2C devices are supposed to embed a st

[U-Boot] [PATCH v2 09/40] pci: Honour pci_skip_dev()

2014-08-26 Thread Thierry Reding
From: Thierry Reding When enumerating devices, honour the pci_skip_dev() function. This can be used by PCI controller drivers to restrict which devices will be probed. This is required by the NVIDIA Tegra PCIe controller driver, which will fail with a data abort exception if an access is attempt

[U-Boot] [PATCH v2 11/40] i2c: Initialize the correct bus

2014-08-26 Thread Thierry Reding
From: Thierry Reding i2c_bus_init() takes a bus number but relies on the currently selected bus to determine which adapter to initialize. Make the function use the bus passed in as parameter rather than the currently selected bus. While at it, keep a pointer to the specified bus to avoid having t

[U-Boot] [PATCH v2 08/40] pci: Abort early if bus does not exist

2014-08-26 Thread Thierry Reding
From: Thierry Reding When listing the devices on a PCI bus, the current code will blindly try to access all devices. Internally this causes pci_bus_to_hose() to be repeatedly called and output an error message every time. Prevent this by calling pci_bus_to_hose() once and abort early if no bus wa

[U-Boot] [PATCH v2 10/40] Add pr_fmt() macro

2014-08-26 Thread Thierry Reding
From: Thierry Reding This macro can be overridden in source files (before including common.h) and can be used to specify a prefix for debug and error messages. An example of how to use this is shown below: #define pr_fmt(fmt) "foo: " fmt #include ... debug("bar

[U-Boot] [PATCH v2 07/40] fdt: Add a subnodes iterator macro

2014-08-26 Thread Thierry Reding
From: Thierry Reding The fdt_for_each_subnode() iterator macro provided by this patch can be used to iterate over a device tree node's subnodes. At each iteration a loop variable will be set to the next subnode. Acked-by: Simon Glass Signed-off-by: Thierry Reding --- Changes in v2: - specify t

[U-Boot] [PATCH v2 06/40] fdt: Add a function to return PCI BDF triplet

2014-08-26 Thread Thierry Reding
From: Thierry Reding The fdtdec_pci_get_bdf() function returns the bus, device, function triplet of a PCI device by parsing the "reg" property according to the PCI device tree binding. Acked-by: Simon Glass Signed-off-by: Thierry Reding --- include/fdtdec.h | 11 +++ lib/fdtdec.c

[U-Boot] [PATCH v2 04/40] fdt: Add functions to retrieve strings

2014-08-26 Thread Thierry Reding
From: Thierry Reding Given a device tree node, a property name and an index, the new function fdt_get_string_index() will return in an output argument a pointer to the index'th string in the property's value. The fdt_get_string() is a shortcut for the above with the index being 0. Signed-off-by

[U-Boot] [PATCH v2 03/40] fdt: Add a function to get the index of a string

2014-08-26 Thread Thierry Reding
From: Thierry Reding Given a device tree node and a property name, the new fdt_find_string() function will look up a given string in the string list contained in the property's value and return its index. Signed-off-by: Thierry Reding --- Changes in v2: - rename to fdt_find_string() to remove n

[U-Boot] [PATCH v2 01/40] vsprintf: Add modifier for phys_addr_t

2014-08-26 Thread Thierry Reding
From: Thierry Reding Provide a new modifier to vsprintf() to print phys_addr_t variables to avoid having to cast or #ifdef when printing them out. The %pa modifier is used for this purpose, so phys_addr_t variables need to be passed by reference, like so: phys_addr_t start = 0;

[U-Boot] [PATCH v2 02/40] fdt: Add a function to count strings

2014-08-26 Thread Thierry Reding
From: Thierry Reding Given a device tree node and a property name, the fdt_count_strings() function counts the number of strings found in the property value. Signed-off-by: Thierry Reding --- include/libfdt.h| 9 + lib/libfdt/fdt_ro.c | 20 2 files changed, 29

[U-Boot] [PATCH v2 00/40] ARM: tegra: Add PCIe support

2014-08-26 Thread Thierry Reding
From: Thierry Reding This series adds PCIe support for Tegra20, Tegra30 and Tegra124. The size is mostly due to the large number of infrastructure that's added (libfdt, Tegra specific drivers required by the PCIe driver). In this version I've included all patches that were previously split into t

Re: [U-Boot] [PATCH] arc: Fix printf size_t format related warnings (again...)

2014-08-26 Thread Alexey Brodkin
Hi Vasili, On Tue, 2014-08-26 at 13:44 +0300, Vasili Galka wrote: > The basic idea: Define size_t using the __SIZE_TYPE__ compiler-defined > type. > > For detailed explanation see similar patch for the nios2 arch: > http://patchwork.ozlabs.org/patch/379938/ > > Signed-off-by: Vasili Galka > Cc

Re: [U-Boot] [PATCH v2] axs101: Fix type mismatch warning

2014-08-26 Thread Alexey Brodkin
Hi Vasili, On Tue, 2014-08-26 at 17:50 +0300, Vasili Galka wrote: > Initialization of pointer from integer shall be designated by explicit > type cast. > > Signed-off-by: Vasili Galka > Cc: Alexey Brodkin > --- > Changes for v2: >- Verified complience with checkpatch.pl (wrapped long lines)

Re: [U-Boot] [GENERIC_BOARD] env problems before relocation with ppc8360

2014-08-26 Thread Valentin Longchamp
Hello, Here is the outcome of my debug session today: On 08/25/2014 05:42 PM, Valentin Longchamp wrote: > Hello, > > I am currently porting all the Keymile boards to CONFIG_SYS_GENERIC_BOARD. > On u-boot 2014.10-rc1 I have all of them working quite well (at least booting > and showing no obvious

Re: [U-Boot] MMC interfaces on AM335x

2014-08-26 Thread Tom Rini
On Tue, Aug 26, 2014 at 01:57:23PM +0100, Andy Pont wrote: > Hello, > > I am working on a port of U-Boot to a custom hardware platform based on the > TI AM3354. According to the schematics from the hardware design company, > the AM3354 has a 4bit MMC interface (MMC0) which has been connected to a

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

2014-08-26 Thread Alexey Brodkin
Hi Tom, The following changes since commit 7bee1c91a94db19bd26f92cc67be35d3592c6429: Merge branch 'ag...@denx.de' of git://git.denx.de/u-boot-staging (2014-08-25 08:34:39 -0400) are available in the git repository at: git://git.denx.de/u-boot-arc.git master for you to fetch changes up to

Re: [U-Boot] [PATCH] net: cpsw: am335x: Drop constant link checking from rx/tx path's

2014-08-26 Thread Tom Rini
On Mon, Aug 25, 2014 at 11:26:19AM +0200, Stefan Roese wrote: > We noticed on the DXR2 platform (AM335x with a SMSC LAN9303 switch connected > to the CPSW MAC) that the network performance in U-Boot is quite poor. Only > when the transfer is started without a cable connected, and the cable is > pl

[U-Boot] [PATCH v2] axs101: Fix type mismatch warning

2014-08-26 Thread Vasili Galka
Initialization of pointer from integer shall be designated by explicit type cast. Signed-off-by: Vasili Galka Cc: Alexey Brodkin --- Changes for v2: - Verified complience with checkpatch.pl (wrapped long lines) board/synopsys/axs101/nand.c | 6 -- 1 file changed, 4 insertions(+), 2 d

Re: [U-Boot] [PATCH v9 10/14] buildman: Remove the directory prefix from each error line

2014-08-26 Thread Tom Rini
On Mon, Aug 25, 2014 at 09:58:31AM -0600, Simon Glass wrote: > The full path is long and also includes buildman private directories. > Clean this up, so that only a relative U-Boot path is shown. This is missing a global somewhere perhaps? I do buildman ... -o /tmp/username/toolchain/ and see th

Re: [U-Boot] [PATCH v9 11/14] buildman: Add an option to show which boards caused which errors

2014-08-26 Thread Tom Rini
On Mon, Aug 25, 2014 at 03:14:38PM -0400, Tom Rini wrote: > On Mon, Aug 25, 2014 at 09:58:32AM -0600, Simon Glass wrote: > > Add a -l option to display a list of offending boards against each > > error/warning line. The information will be shown in brackets as below: > > > > 02: wip > >sandbox

[U-Boot] [PATCH] common: fix compiler warning on wrong printf format

2014-08-26 Thread Alexey Brodkin
bounce_buffer->len_aligned is of type "size_t", but on some arches/compilers "size_t" might be an alias to whether "int", "long" or their "signed/unsigned" flavors. So to make compiler happy we explicitly cast to "int" which is expected in printf for "%d" format. this fixes following warning: ---

Re: [U-Boot] [PATCH] axs101: Fix type mismatch warning

2014-08-26 Thread Vasili Galka
Hi Alexey, On Tue, Aug 26, 2014 at 4:52 PM, Alexey Brodkin wrote: > Hi Vasili, > > > On Tue, 2014-08-26 at 13:46 +0300, Vasili Galka wrote: >> Initialization of pointer from integer shall be designated by explicit >> type cast. >> >> Signed-off-by: Vasili Galka >> Cc: Alexey Brodkin >> --- >>

Re: [U-Boot] [PATCH] axs101: Fix type mismatch warning

2014-08-26 Thread Alexey Brodkin
Hi Vasili, On Tue, 2014-08-26 at 13:46 +0300, Vasili Galka wrote: > Initialization of pointer from integer shall be designated by explicit > type cast. > > Signed-off-by: Vasili Galka > Cc: Alexey Brodkin > --- > board/synopsys/axs101/nand.c |4 ++-- > 1 files changed, 2 insertions(+), 2

[U-Boot] Should ARM custodian tree pull-reqs still go through the ARM tree ?

2014-08-26 Thread Hans de Goede
Hi All, Albert lately seems quite busy, and has a somewhat largish turn around time for things like pull-reqs. This mail is in no way intended as a complaint against Albert, we all have personal lives, and we all have periods were we are more busy then other periods in our lives. But now that we

[U-Boot] MMC interfaces on AM335x

2014-08-26 Thread Andy Pont
Hello, I am working on a port of U-Boot to a custom hardware platform based on the TI AM3354. According to the schematics from the hardware design company, the AM3354 has a 4bit MMC interface (MMC0) which has been connected to a uSD card connector. There is a second interface (8bit) connected to

Re: [U-Boot] [PATCH v5 4/4] usb/gadget: fastboot: implement sparse format

2014-08-26 Thread Lukasz Majewski
Hi Steve, > - add capability to "fastboot flash" with sparse format images > > Signed-off-by: Steve Rae > --- > > Changes in v5: > - use the common/aboot.c for the "sparse format" handling > > Changes in v4: > - rearranged "sparse format" support in this patchset, in order to > isolate... > >

Re: [U-Boot] [PATCH v5 3/4] usb/gadget: fastboot: minor cleanup

2014-08-26 Thread Lukasz Majewski
Hi Steve, > - update static function > - additional debugging statements > - update "fastboot command" information > - add missing include file > - update spelling > > Signed-off-by: Steve Rae > --- > > Changes in v5: None > Changes in v4: > - update debug string as per feedback > > Changes in

Re: [U-Boot] [PATCH] sun7i: Add support for Olimex A20-OLinuXino-LIME

2014-08-26 Thread Naoki FUKAUMI
hi On Mon, Aug 25, 2014 at 2:01 AM, Ian Campbell wrote: > On Sun, 2014-08-24 at 22:24 +0900, Naoki FUKAUMI wrote: >> > Looks good but please also add an entry to board/sunxi/MAINTAINERS. >> >> I see, but sorry, who should maintain this board? > > You, I hope! I'm not sure what u-boot policy gener

[U-Boot] socfpga: immediate hang when accessing memory at 0x10000

2014-08-26 Thread Pavel Machek
Hi! I got networking and MMC card to work on recent u-boot, but now I'm hitting DRAM region where any access just hangs the system. Any idea what could be there / why is it hanging? I tried reset_assert_all_bridges(), but no change. Memory from md 10 works ok, again, so it seems the only p

[U-Boot] [PATCH] mpc5xxx: Add stub implementation of cache functions

2014-08-26 Thread Vasili Galka
Some drivers (e.g. net/e1000) reference these functions. So, this fixes the build of MVBC_P board. I'm not familiar with the MPC5xxx platform, maybe a full implementation shall be implemented instead of this stub in the future. Signed-off-by: Vasili Galka Cc: Wolfgang Denk , Marek Vasut --- ar

[U-Boot] [PATCH] microblaze: Fix printf size_t format related warnings (again...)

2014-08-26 Thread Vasili Galka
The basic idea: Define size_t using the __SIZE_TYPE__ compiler-defined type. For detailed explanation see similar patch for the nios2 arch: http://patchwork.ozlabs.org/patch/379938/ Signed-off-by: Vasili Galka Cc: Michal Simek --- arch/microblaze/include/asm/posix_types.h |4 1 files

[U-Boot] [PATCH] Fix a few printf argument verification warnings

2014-08-26 Thread Vasili Galka
The parameters of size_t type shall be formatted using "%zu" and not using "%d". Precision argument for the "%.*s" parameters shall be of int type. Signed-off-by: Vasili Galka --- common/bouncebuf.c|2 +- common/cmd_mtdparts.c |4 ++-- common/spl/spl.c |2 +- 3 files change

[U-Boot] [PATCH] arc: Fix printf size_t format related warnings (again...)

2014-08-26 Thread Vasili Galka
The basic idea: Define size_t using the __SIZE_TYPE__ compiler-defined type. For detailed explanation see similar patch for the nios2 arch: http://patchwork.ozlabs.org/patch/379938/ Signed-off-by: Vasili Galka Cc: Alexey Brodkin --- arch/arc/include/asm/posix_types.h |4 1 files chang

[U-Boot] [PATCH] openrisc: Fix a few type cast related warnings

2014-08-26 Thread Vasili Galka
Use size_t type for positive offsets instead of the loff_t type. The later is defined as long long, which is larger than the pointer type on OpenRISC architecture and therefore the following warning was generated: "warning: cast to pointer from integer of different size" Signed-off-by: Vasili Gal

Re: [U-Boot] [U-Boot,1/2] e1000: Implement dcache support

2014-08-26 Thread Marek Vasut
On Tuesday, August 26, 2014 at 12:44:31 PM, Marek Vasut wrote: > On Tuesday, August 26, 2014 at 12:38:44 PM, Vasili Galka wrote: > > Hi Marek, > > > > On Fri, Aug 8, 2014 at 5:41 PM, Tim Harvey wrote: > > > From: Marek Vasut > > > > > > Implement proper support for cache flushing and invalidati

[U-Boot] [PATCH] axs101: Fix type mismatch warning

2014-08-26 Thread Vasili Galka
Initialization of pointer from integer shall be designated by explicit type cast. Signed-off-by: Vasili Galka Cc: Alexey Brodkin --- board/synopsys/axs101/nand.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/board/synopsys/axs101/nand.c b/board/synopsys/axs101/nand

Re: [U-Boot] [U-Boot,1/2] e1000: Implement dcache support

2014-08-26 Thread Marek Vasut
On Tuesday, August 26, 2014 at 12:38:44 PM, Vasili Galka wrote: > Hi Marek, > > On Fri, Aug 8, 2014 at 5:41 PM, Tim Harvey wrote: > > From: Marek Vasut > > > > Implement proper support for cache flushing and invalidation into the > > Intel e1000 NIC driver. > > > > Signed-off-by: Marek Vasut

  1   2   >