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

2014-08-27 Thread Thierry Reding
On Wed, Aug 27, 2014 at 11:56:41AM +0200, Heiko Schocher wrote: > Hello Thierry, > > Am 27.08.2014 10:51, schrieb Thierry Reding: > >On Wed, Aug 27, 2014 at 09:07:58AM +0200, Heiko Schocher wrote: > >>Hello Thierry, > >> > >>Am 27.08.2014 08:21, schrieb

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

2014-08-27 Thread Thierry Reding
On Wed, Aug 27, 2014 at 09:07:58AM +0200, Heiko Schocher wrote: > Hello Thierry, > > Am 27.08.2014 08:21, schrieb Thierry Reding: > >On Wed, Aug 27, 2014 at 07:21:51AM +0200, Heiko Schocher wrote: > >>Hello Thierry, > >> > >>Am 26.08.2014 17:34, schrieb

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

2014-08-27 Thread Thierry Reding
On Tue, Aug 26, 2014 at 05:14:17PM -0600, Simon Glass wrote: > 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 t

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

2014-08-27 Thread Thierry Reding
On Tue, Aug 26, 2014 at 11:04:56AM -0600, Stephen Warren wrote: > 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

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; > >+in

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 ...

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 whic

[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

[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

[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 th

[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

[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

[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

[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-li

[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

[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/teg

[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

[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

[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

[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

[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 inser

[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

[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

[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

[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

[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

[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

[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

[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/tegra

[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

[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

[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

[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

[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

[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 ...

[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: - sp

[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 +++ li

[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.

[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 r

[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

[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

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

2014-08-25 Thread Thierry Reding
On Sun, Aug 24, 2014 at 11:18:04PM +0200, Marcel Ziswiler wrote: > On Fri, 2014-08-22 at 13:31 -0600, Stephen Warren wrote: > > > +#define CONFIG_USE_ARCH_MEMCPY > > > > That last option isn't set on other Tegra boards; what's it for? > > This is my special gift to Thierry to leverage architectur

Re: [U-Boot] [PATCH 23/23] ARM: tegra: Enable PCIe on Jetson TK1

2014-08-23 Thread Thierry Reding
On Fri, Aug 22, 2014 at 07:47:36PM -0600, Simon Glass wrote: > Hi Thierry, > > On 22 August 2014 16:03, Thierry Reding wrote: > > On Fri, Aug 22, 2014 at 02:12:19PM -0600, Simon Glass wrote: > >> On 22 August 2014 13:40, Thierry Reding wrote: > > [...] > >

Re: [U-Boot] [PATCH 01/23] fdt: Add functions to query a node's #address- and #size-cells

2014-08-23 Thread Thierry Reding
On Fri, Aug 22, 2014 at 09:03:49PM -0600, Simon Glass wrote: > Hi Thierry, > > On 19 August 2014 07:06, Thierry Reding wrote: > > On Tue, Aug 19, 2014 at 06:52:22AM -0600, Simon Glass wrote: > >> Hi Theirry, > >> > >> > >> On 19 August 2014 04

Re: [U-Boot] [PATCH 23/23] ARM: tegra: Enable PCIe on Jetson TK1

2014-08-22 Thread Thierry Reding
On Fri, Aug 22, 2014 at 02:12:19PM -0600, Simon Glass wrote: > On 22 August 2014 13:40, Thierry Reding wrote: [...] > > I've opted instead to provide an somewhat higher-level API that users > > can call to set voltages on the regulators and enable them. > > But then

Re: [U-Boot] [PATCH 15/23] pci: tegra: Add Tegra PCIe driver

2014-08-22 Thread Thierry Reding
On Fri, Aug 22, 2014 at 11:33:39AM -0600, Stephen Warren wrote: > On 08/20/2014 01:04 PM, Stephen Warren wrote: > >On 08/18/2014 01:16 AM, Thierry Reding wrote: > >>From: Thierry Reding > >> > >>Add support for the PCIe controller found on some generations of

Re: [U-Boot] [PATCH 23/23] ARM: tegra: Enable PCIe on Jetson TK1

2014-08-22 Thread Thierry Reding
On Fri, Aug 22, 2014 at 01:27:57PM -0600, Simon Glass wrote: > On 22 August 2014 06:09, Thierry Reding wrote: [...] > > Note that I haven't turned the AS3722 support into a "PMIC" driver, > > because the framework for that seems to be unusable. It doesn'

Re: [U-Boot] [PATCH 15/23] pci: tegra: Add Tegra PCIe driver

2014-08-22 Thread Thierry Reding
On Wed, Aug 20, 2014 at 01:04:22PM -0600, Stephen Warren wrote: > On 08/18/2014 01:16 AM, Thierry Reding wrote: > >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,

Re: [U-Boot] [PATCH 18/23] ARM: tegra: Add Tegra30 PCIe device tree node

2014-08-22 Thread Thierry Reding
On Wed, Aug 20, 2014 at 12:39:14PM -0600, Stephen Warren wrote: > On 08/18/2014 01:16 AM, Thierry Reding wrote: > >From: Thierry Reding > > > >Add the device tree node for the PCIe controller found on Tegra30 SoCs. > > >diff --git a/arch/arm/dts/tegra30.dt

Re: [U-Boot] [PATCH 17/23] ARM: tegra: Enable PCIe on TrimSlice

2014-08-22 Thread Thierry Reding
On Wed, Aug 20, 2014 at 12:38:15PM -0600, Stephen Warren wrote: > On 08/18/2014 01:16 AM, Thierry Reding wrote: > >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

Re: [U-Boot] [PATCH 12/23] ARM: tegra: Implement XUSB pad controller

2014-08-22 Thread Thierry Reding
On Wed, Aug 20, 2014 at 12:32:45PM -0600, Stephen Warren wrote: > On 08/18/2014 01:16 AM, Thierry Reding wrote: [...] > >diff --git a/arch/arm/cpu/tegra124-common/xusb-padctl.c > >b/arch/arm/cpu/tegra124-common/xusb-padctl.c > > >+int fdtdec_count_strings(const void *f

Re: [U-Boot] [PATCH 12/23] ARM: tegra: Implement XUSB pad controller

2014-08-22 Thread Thierry Reding
On Wed, Aug 20, 2014 at 12:32:45PM -0600, Stephen Warren wrote: > On 08/18/2014 01:16 AM, Thierry Reding wrote: > >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 a

Re: [U-Boot] [PATCH 11/23] ARM: tegra: Implement powergate support

2014-08-22 Thread Thierry Reding
On Wed, Aug 20, 2014 at 12:24:11PM -0600, Stephen Warren wrote: > On 08/18/2014 01:16 AM, Thierry Reding wrote: > >From: Thierry Reding > > > >Implement the powergate API that allows various power partitions to be > >power up and down. > > >diff --git a/a

Re: [U-Boot] [PATCH 10/23] ARM: tegra: Provide PCIEXCLK reset ID

2014-08-22 Thread Thierry Reding
On Wed, Aug 20, 2014 at 12:20:20PM -0600, Stephen Warren wrote: > On 08/18/2014 01:16 AM, Thierry Reding wrote: > >From: Thierry Reding > > > >This reset is required for PCIe and the corresponding ID therefore needs > >to be defined. > > It might be worth mention

Re: [U-Boot] [PATCH 19/23] ARM: tegra: Enable PCIe on Beaver

2014-08-22 Thread Thierry Reding
On Wed, Aug 20, 2014 at 12:43:58PM -0600, Stephen Warren wrote: > On 08/18/2014 01:16 AM, Thierry Reding wrote: > >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

Re: [U-Boot] [PATCH 23/23] ARM: tegra: Enable PCIe on Jetson TK1

2014-08-22 Thread Thierry Reding
On Wed, Aug 20, 2014 at 12:51:35PM -0600, Stephen Warren wrote: > On 08/18/2014 01:16 AM, Thierry Reding wrote: > >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. Ena

Re: [U-Boot] [PATCH 8/9] net: rtl8169: Use non-cached memory if available

2014-08-22 Thread Thierry Reding
On Wed, Aug 20, 2014 at 01:33:06PM -0600, Stephen Warren wrote: > On 08/18/2014 02:00 AM, Thierry Reding wrote: > >From: Thierry Reding > > > >To work around potential issues with explicit cache maintenance of the > >RX and TX descriptor rings, allocate them from a po

Re: [U-Boot] [PATCH 7/9] net: rtl8169: Properly align buffers

2014-08-22 Thread Thierry Reding
On Wed, Aug 20, 2014 at 01:29:57PM -0600, Stephen Warren wrote: > On 08/18/2014 02:00 AM, Thierry Reding wrote: > >From: Thierry Reding > > > >RX and TX descriptor rings should be aligned to 256 byte boundaries. Use > >the DEFINE_ALIGN_BUFFER() macro to define the

Re: [U-Boot] [PATCH 4/9] ARM: Implement non-cached memory support

2014-08-22 Thread Thierry Reding
On Wed, Aug 20, 2014 at 01:23:13PM -0600, Stephen Warren wrote: > On 08/18/2014 02:00 AM, Thierry Reding wrote: [...] > >diff --git a/arch/arm/include/asm/system.h b/arch/arm/include/asm/system.h > > >+#ifdef CONFIG_SYS_NONCACHED_MEMORY > >+void noncached_init(

Re: [U-Boot] [PATCH 2/9] ARM: cache-cp15: Use unsigned long for address and size

2014-08-22 Thread Thierry Reding
On Wed, Aug 20, 2014 at 01:15:15PM -0600, Stephen Warren wrote: > On 08/18/2014 02:00 AM, Thierry Reding wrote: > >From: Thierry Reding > > > >size is always non-negative, so it should be unsigned, whereas the > >address and size can be larger than 32 bit on 64-bit a

[U-Boot] [PATCH] imx: ventana: Avoid undefined behaviour

2014-08-22 Thread Thierry Reding
From: Thierry Reding The leds array within struct ventana has space for 3 elements, but the setup_board_gpio() function tries to set up 4 GPIOs for LEDs. Recent versions of GCC complain about that: board/gateworks/gw_ventana/gw_ventana.c: In function 'setup_board_gpio':

[U-Boot] Possible bug in U-Boot Exynos clock driver

2014-08-21 Thread Thierry Reding
Hi, I've been running a couple of builds for a patch that I'm working on and I noticed the following errors happening for all Exynos boards: arch/arm/cpu/armv7/exynos/clock.c: In function 'clock_get_periph_rate': arch/arm/cpu/armv7/exynos/clock.c:263:47: warning: array subscript i

Re: [U-Boot] [PATCH 4/9] ARM: Implement non-cached memory support

2014-08-21 Thread Thierry Reding
On Wed, Aug 20, 2014 at 01:23:13PM -0600, Stephen Warren wrote: > On 08/18/2014 02:00 AM, Thierry Reding wrote: > >From: Thierry Reding > > > >Implement an API that can be used by drivers to allocate memory from a > >poll that is mapped uncached. This is useful if dri

Re: [U-Boot] [PATCH 0/9] net: rtl8169: Fix cache maintenance issues

2014-08-21 Thread Thierry Reding
On Wed, Aug 20, 2014 at 01:12:20PM -0600, Stephen Warren wrote: > On 08/18/2014 02:00 AM, Thierry Reding wrote: > >From: Thierry Reding > > > >This series attempts to fix a long-standing problem in the rtl8169 driver > >(though the same problem may exist in other dri

Re: [U-Boot] [PATCH 19/23] ARM: tegra: Enable PCIe on Beaver

2014-08-20 Thread Thierry Reding
On Wed, Aug 20, 2014 at 10:56:58AM +0200, Marcel Ziswiler wrote: > On Wed, 2014-08-20 at 08:38 +0200, Thierry Reding wrote: > > Hehe... this should probably be i2c_write() instead. Perhaps this is on > > by default on Beaver and Cardhu but not on the particular revision that >

Re: [U-Boot] [PATCH 19/23] ARM: tegra: Enable PCIe on Beaver

2014-08-19 Thread Thierry Reding
On Tue, Aug 19, 2014 at 01:48:55PM +, Marcel Ziswiler wrote: > > + /* TPS659110: LDO2_REG = 1.05V, ACTIVE */ > > + data[0] = 0x15; > > + addr = 0x31; > > + > > + err = i2c_read(PMU_I2C_ADDRESS, addr, 1, data, 1); > > You sure about that read? > > Me wondering why it did not work on my

Re: [U-Boot] [PATCH 03/23] fdt: Add resource parsing functions

2014-08-19 Thread Thierry Reding
On Tue, Aug 19, 2014 at 03:28:09PM -0600, Simon Glass wrote: > Hi Thierry, > > On 19 August 2014 07:12, Thierry Reding wrote: > > On Tue, Aug 19, 2014 at 06:55:18AM -0600, Simon Glass wrote: > >> On 19 August 2014 05:35, Thierry Reding wrote: > > [...] > >

Re: [U-Boot] [PATCH] net: More BOOTP retry timeout improvements

2014-08-19 Thread Thierry Reding
On Tue, Aug 19, 2014 at 09:59:00AM -0600, Stephen Warren wrote: > On 08/19/2014 02:06 AM, Thierry Reding wrote: > >On Mon, Aug 18, 2014 at 01:01:17PM -0500, Joe Hershberger wrote: > >>Hi Thierry, > >> > >>On Mon, Aug 18, 2014 at 1:45 AM, Thierry Reding > &

Re: [U-Boot] [PATCH 05/23] fdt: Add a subnodes iterator macro

2014-08-19 Thread Thierry Reding
On Tue, Aug 19, 2014 at 06:57:54AM -0600, Simon Glass wrote: > Hi Thierry, > > On 19 August 2014 06:22, Thierry Reding wrote: > > On Mon, Aug 18, 2014 at 12:11:03PM -0600, Simon Glass wrote: > >> On 18 August 2014 01:16, Thierry Reding wrote: > >> > Fro

Re: [U-Boot] [PATCH 03/23] fdt: Add resource parsing functions

2014-08-19 Thread Thierry Reding
On Tue, Aug 19, 2014 at 06:55:18AM -0600, Simon Glass wrote: > On 19 August 2014 05:35, Thierry Reding wrote: [...] > > The Linux kernel handles this by wrapping it in an of_read_number() > > helper and always returning u64, like this: > > > > static inline u64

Re: [U-Boot] [PATCH 01/23] fdt: Add functions to query a node's #address- and #size-cells

2014-08-19 Thread Thierry Reding
On Tue, Aug 19, 2014 at 06:52:22AM -0600, Simon Glass wrote: > Hi Theirry, > > > On 19 August 2014 04:59, Thierry Reding wrote: > > > On Mon, Aug 18, 2014 at 11:52:36AM -0600, Simon Glass wrote: > > > Hi Thierry, > > > > > > On 18 August 201

Re: [U-Boot] [PATCH 23/23] ARM: tegra: Enable PCIe on Jetson TK1

2014-08-19 Thread Thierry Reding
On Mon, Aug 18, 2014 at 12:37:46PM -0600, Simon Glass wrote: > Hi Thierry, > > On 18 August 2014 01:16, Thierry Reding wrote: > > From: Thierry Reding > > > > The Jetson TK1 has an ethernet NIC connected to the PCIe bus and routes > > the second root port to

Re: [U-Boot] [PATCH 08/23] Add pr_fmt() macro

2014-08-19 Thread Thierry Reding
On Mon, Aug 18, 2014 at 12:24:06PM -0600, Simon Glass wrote: > On 18 August 2014 01:16, Thierry Reding wrote: > > From: Thierry Reding > > > > This macro can be overridden in source files (before including common.h) > > and can be used to specify a prefix for d

Re: [U-Boot] [PATCH 05/23] fdt: Add a subnodes iterator macro

2014-08-19 Thread Thierry Reding
On Mon, Aug 18, 2014 at 12:11:03PM -0600, Simon Glass wrote: > On 18 August 2014 01:16, Thierry Reding wrote: > > From: Thierry Reding > > > > The fdt_for_each_subnode() iterator macro provided by this patch can be > > used to iterate over a device tree node'

Re: [U-Boot] [PATCH 03/23] fdt: Add resource parsing functions

2014-08-19 Thread Thierry Reding
On Mon, Aug 18, 2014 at 12:06:26PM -0600, Simon Glass wrote: > Hi Thierry, > > On 18 August 2014 01:16, Thierry Reding wrote: > > From: Thierry Reding > > > > Add the fdt_get_resource() and fdt_get_named_resource() functions which > > can be used to parse resou

Re: [U-Boot] [PATCH 02/23] fdt: Add a function to get the index of a string

2014-08-19 Thread Thierry Reding
On Mon, Aug 18, 2014 at 11:58:09AM -0600, Simon Glass wrote: > On 18 August 2014 01:16, Thierry Reding wrote: [...] > > +int fdt_get_string_index(const void *fdt, int node, const char *property, > > +const char *string) > > +{ > > +

Re: [U-Boot] [PATCH 01/23] fdt: Add functions to query a node's #address- and #size-cells

2014-08-19 Thread Thierry Reding
On Mon, Aug 18, 2014 at 11:52:36AM -0600, Simon Glass wrote: > Hi Thierry, > > On 18 August 2014 01:16, Thierry Reding wrote: > > From: Thierry Reding > > > > Given a device tree node, the fdt_n_addr_cells() function will walk up > > the device tree and search f

[U-Boot] [PATCH v2] buildman: Create parent directories as necessary

2014-08-19 Thread Thierry Reding
From: Thierry Reding When creating build directories also create parents as necessary. This fixes a failure when building a hierarchical branch (i.e. foo/bar). Signed-off-by: Thierry Reding --- Changes in v2: - only create parent directories for the top build directory to avoid sloppy

[U-Boot] [PATCH v2] net: More BOOTP retry timeout improvements

2014-08-19 Thread Thierry Reding
From: Thierry Reding It's not unusual for DHCP servers to take a couple hundred milliseconds to respond to DHCP discover messages. One possible reason for the delay can be that the server checks (typically using an ARP request) that the IP it's about to hand out isn't in use yet.

Re: [U-Boot] [PATCH] net: More BOOTP retry timeout improvements

2014-08-19 Thread Thierry Reding
On Mon, Aug 18, 2014 at 01:01:17PM -0500, Joe Hershberger wrote: > Hi Thierry, > > On Mon, Aug 18, 2014 at 1:45 AM, Thierry Reding > wrote: > > > > From: Thierry Reding > > > > It's not unusual for DHCP servers to take a couple hundred milliseconds >

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

2014-08-18 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 1c04946d7691..a02968fa4a12 100644 --- a/drivers

[U-Boot] [PATCH 7/9] net: rtl8169: Properly align buffers

2014-08-18 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-li

[U-Boot] [PATCH 8/9] net: rtl8169: Use non-cached memory if available

2014-08-18 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 --- drivers/net/rtl8169.c | 43

[U-Boot] [PATCH 6/9] net: rtl8169: Honor CONFIG_SYS_RX_ETH_BUFFER

2014-08-18 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

[U-Boot] [PATCH 5/9] ARM: tegra: Enable non-cached memory

2014-08-18 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

[U-Boot] [PATCH 3/9] malloc: Output region when debugging

2014-08-18 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

[U-Boot] [PATCH 4/9] ARM: Implement non-cached memory support

2014-08-18 Thread Thierry Reding
From: Thierry Reding Implement an API that can be used by drivers to allocate memory from a poll 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 th

[U-Boot] [PATCH 2/9] ARM: cache-cp15: Use unsigned long for address and size

2014-08-18 Thread Thierry Reding
From: Thierry Reding size is always non-negative, so it should be unsigned, whereas the address and size can be larger than 32 bit on 64-bit architectures. Change the mmu_set_region_dcache_behaviour() to use these types in anticipation of making the API available on other architectures. Signed

[U-Boot] [PATCH 1/9] ARM: cache_v7: Various minor cleanups

2014-08-18 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

[U-Boot] [PATCH 0/9] net: rtl8169: Fix cache maintenance issues

2014-08-18 Thread Thierry Reding
From: Thierry Reding This series attempts to fix a long-standing problem in the rtl8169 driver (though the same problem may exist in other drivers as well). Let me first explain what exactly the issue is: The rtl8169 driver provides a set of RX and TX descriptors for the device to use. Once

[U-Boot] [PATCH 07/23] pci: Honour pci_skip_dev()

2014-08-18 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

[U-Boot] [PATCH 06/23] pci: Abort early if bus does not exist

2014-08-18 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

[U-Boot] [PATCH 23/23] ARM: tegra: Enable PCIe on Jetson TK1

2014-08-18 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 --- arch/arm/dts/tegra124-jetson

<    1   2   3   4   5   6   7   8   >