Re: [U-Boot] [PATCH v2 06/12] virt-dt: Allow reservation of the secure region when it is in a RAM carveout.

2015-02-19 Thread Thierry Reding
On Thu, Feb 19, 2015 at 10:25:56AM +0100, Jan Kiszka wrote: > On 2015-02-19 10:19, Ian Campbell wrote: > > On Thu, 2015-02-19 at 09:28 +0100, Thierry Reding wrote: > >> On Tue, Feb 17, 2015 at 11:55:24AM +, Mark Rutland wrote: > >>> [...] > >

Re: [U-Boot] [PATCH v2 06/12] virt-dt: Allow reservation of the secure region when it is in a RAM carveout.

2015-02-19 Thread Thierry Reding
On Tue, Feb 17, 2015 at 09:09:57AM +0100, Jan Kiszka wrote: > On 2015-02-16 16:38, Jan Kiszka wrote: > > On 2015-02-16 15:56, Mark Rutland wrote: > >> On Mon, Feb 16, 2015 at 02:31:21PM +, Jan Kiszka wrote: > >>> On 2015-02-16 15:25, Mark Rutland wrote: > On Mon, Feb 16, 2015 at 01:51:37PM

Re: [U-Boot] [PATCH v2 09/12] tegra124: Add PSCI support for Tegra124

2015-02-24 Thread Thierry Reding
On Tue, Feb 24, 2015 at 08:23:55AM +0100, Jan Kiszka wrote: > On 2015-02-20 10:36, Jan Kiszka wrote: > > On 2015-02-19 10:14, Thierry Reding wrote: > >> On Wed, Feb 18, 2015 at 09:34:53AM -0700, Stephen Warren wrote: > >>> On 02/17/2015 11:13 PM, Jan Kiszka wro

Re: [U-Boot] [PATCH v3 09/12] tegra124: Add PSCI support for Tegra124

2015-02-26 Thread Thierry Reding
On Wed, Feb 18, 2015 at 09:14:03AM +0100, Jan Kiszka wrote: [...] > +ENTRY(psci_cpu_off) > + bl psci_cpu_off_common > + > + mrc p15, 0, r1, c0, c0, 5 @ MPIDR > + and r1, r1, #7 @ number of CPUs in cluster > + > + get_csr_reg r1, r2, r3 > + > +

Re: [U-Boot] [PATCH v3 09/12] tegra124: Add PSCI support for Tegra124

2015-02-26 Thread Thierry Reding
On Wed, Feb 18, 2015 at 09:14:03AM +0100, Jan Kiszka wrote: [...] > diff --git a/arch/arm/cpu/armv7/tegra124/ap.c > b/arch/arm/cpu/armv7/tegra124/ap.c [...] > +void ap_pm_init(void) > +{ > + struct flow_ctlr *flow = (struct flow_ctlr *)NV_PA_FLOW_BASE; > + struct pmc_ctlr *pmc = (struct pm

Re: [U-Boot] [PATCH] net: Use u32 instead of ulong for transaction ID in bootp

2015-04-15 Thread Thierry Reding
rasad Paladugu > Signed-off-by: Michal Simek > --- > > include/net.h | 14 +++--- > net/bootp.c | 18 +- > net/bootp.h | 2 +- > 3 files changed, 17 insertions(+), 17 deletions(-) Looks reasonable to me: Reviewed-

Re: [U-Boot] [PATCH v5 08/14] virt-dt: Allow reservation of secure region when in a RAM carveout

2015-03-12 Thread Thierry Reding
On Wed, Mar 11, 2015 at 11:12:25AM -0400, Tom Rini wrote: > * PGP Signed by an unknown key > > On Mon, Mar 09, 2015 at 08:00:18AM +0100, Jan Kiszka wrote: > > > In this case the secure code lives in RAM, and hence the memory node in > > the device tree needs to be adjusted. This avoids that the O

Re: [U-Boot] [PATCH v5 00/14] Add PSCI support for Jetson TK1/Tegra124 + CNTFRQ fix

2015-03-19 Thread Thierry Reding
+ > arch/arm/mach-tegra/tegra124/ap.c | 55 + > board/nvidia/common/board.c | 4 + > include/configs/jetson-tk1.h| 5 ++ > 20 files changed, 428 insertions(+), 98 deletions(-) > create mo

Re: [U-Boot] 64Bit device tree compilation

2015-03-19 Thread Thierry Reding
On Thu, Mar 19, 2015 at 07:43:35AM -0600, Simon Glass wrote: > Hi Hanna, > > On 18 March 2015 at 11:17, Hanna Hawa wrote: > > Hi Simon, > > > > > > > > My name is Hanna, I’m working in Software team in Marvell with Yehuda. > > > > > > > > I’m trying to run U-Boot with FDT in 64Bit. > > > > I’ve i

[U-Boot] [PATCH 1/2] console: Support board-specific early console

2015-03-20 Thread Thierry Reding
From: Thierry Reding This is mostly useful for debugging the early boot process. Often boards can provide some low-level code that outputs a character on some debug port prior to passing the early setup code. Allow boards to implement an early_putc() function that will be used to redirect printf

[U-Boot] [PATCH 2/2] ARM: tegra: Implement early console support

2015-03-20 Thread Thierry Reding
From: Thierry Reding Use the physical address of the debug serial port from the configuration to provide an early_putc() implementation that can be used with the new early console support. Cc: Tom Warren Signed-off-by: Thierry Reding --- board/nvidia/common/board.c | 22

[U-Boot] [PATCH 02/13] usb: Build warning fixes for 64-bit

2015-03-20 Thread Thierry Reding
From: Thierry Reding Fix an pointer to integer cast size mismatch warning by casting to unsigned long instead of unsigned int and fix up the corresponding printf format string to use %lx instead of %x. Also remove a pointless cast producing a size mismatch warning. Cc: Simon Glass Cc: Tom

[U-Boot] [PATCH 01/13] ARM: tegra: Fix build failures and warnings on 64-bit

2015-03-20 Thread Thierry Reding
From: Thierry Reding This fixes some build errors and warnings caused by inline assembly and pointer to integer cast size mismatches. The inline assembly build error in config_cache() is easy to fix because the code isn't meaningful on 64 bit ARM. For the assembly-level rese

[U-Boot] [PATCH 03/13] dfu: Build warning fixes for 64-bit

2015-03-20 Thread Thierry Reding
From: Thierry Reding Explicitly cast the result of a pointer arithmetic to unsigned int so that it matches the corresponding printf format string. While at it, use %p to print a buffer address rather than %x and an explicit cast (which causes a warning in this case because it's cast to uns

[U-Boot] [PATCH 05/13] mmc: tegra: Build warning fixes for 64-bit

2015-03-20 Thread Thierry Reding
From: Thierry Reding Fix a couple of pointer to integer size mismatch warnings by casting pointers to unsigned long rather than unsigned int. Cc: Pantelis Antoniou Cc: Tom Warren Signed-off-by: Thierry Reding --- drivers/mmc/tegra_mmc.c | 6 +++--- 1 file changed, 3 insertions(+), 3

[U-Boot] [PATCH 06/13] net: rtl8169: Build warning fixes for 64-bit

2015-03-20 Thread Thierry Reding
From: Thierry Reding Turn ioaddr into an unsigned long rather than a sized 32-bit variable. While at it, fix a couple of pointer to integer cast size mismatch warnings by casting through unsigned long going from pointers to integers and vice versa. Cc: Joe Hershberger Signed-off-by: Thierry

[U-Boot] [PATCH 04/13] i2c: tegra: Build warning fixes for 64-bit

2015-03-20 Thread Thierry Reding
From: Thierry Reding Fix a couple of pointer to integer size mismatch warnings by casting pointers to unsigned long rather than unsigned int. Cc: Heiko Schocher Signed-off-by: Thierry Reding --- drivers/i2c/tegra_i2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[U-Boot] [PATCH 08/13] usb: eth: asix: Build warning fixes for 64-bit

2015-03-20 Thread Thierry Reding
From: Thierry Reding Fix a type mismatch in a printf format string. Cc: Marek Vasut Signed-off-by: Thierry Reding --- drivers/usb/eth/asix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/eth/asix.c b/drivers/usb/eth/asix.c index 11811094ede8..1cd179baaea7

[U-Boot] [PATCH 07/13] pci: tegra: Build warning fixes for 64-bit

2015-03-20 Thread Thierry Reding
From: Thierry Reding Use the %pa specifier to print physical addresses rather than %x. The latter causes build warnings on 64-bit. Cc: Tom Warren Cc: Tom Rini Signed-off-by: Thierry Reding --- drivers/pci/pci_tegra.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff

[U-Boot] [PATCH 12/13] usb: ehci-tegra: Build warning fixes for 64-bit

2015-03-20 Thread Thierry Reding
From: Thierry Reding Cast pointers to unsigned long instead of a sized 32-bit type to avoid pointer to integer cast size mismatch warnings. Cc: Tom Warren Cc: Marek Vasut Signed-off-by: Thierry Reding --- drivers/usb/host/ehci-tegra.c | 8 1 file changed, 4 insertions(+), 4

[U-Boot] [PATCH 10/13] usb: mass-storage: Build warning fixes for 64-bit

2015-03-20 Thread Thierry Reding
From: Thierry Reding Fix a printf format mismatch warning seen on 64-bit builds. Cc: Łukasz Majewski Cc: Marek Vasut Signed-off-by: Thierry Reding --- drivers/usb/gadget/f_mass_storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/f_mass_storage.c

[U-Boot] [PATCH 09/13] usb: ci_udc: Build warning fixes for 64-bit

2015-03-20 Thread Thierry Reding
From: Thierry Reding Fix a slew of pointer to integer cast size mismatch warnings caused by this driver explicitly casting pointers to 32-bit integers. While it is true that the hardware can only deal with 32-bit addresses, truncating using a cast isn't the right solution because the po

[U-Boot] [PATCH 13/13] fdt: Build warning fixes for 64-bit

2015-03-20 Thread Thierry Reding
From: Thierry Reding Use the %lx printf specifier to print unsigned long variables to avoid a build warning on 64-bit. Cc: Simon Glass Signed-off-by: Thierry Reding --- lib/fdtdec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fdtdec.c b/lib/fdtdec.c index

[U-Boot] [PATCH 11/13] usb: ehci-hcd: Build warning fixes for 64-bit

2015-03-20 Thread Thierry Reding
From: Thierry Reding Fix a slew of pointer to integer cast size mismatch warnings caused by this driver explicitly casting pointers to 32-bit integers. While it is true that the hardware can only deal with 32-bit addresses, truncating using a cast isn't the right solution because the po

[U-Boot] [PATCH 3/6] armv8/mmu: Clean up TCR programming

2015-03-20 Thread Thierry Reding
From: Thierry Reding Use the inner shareable attribute for memory, which makes more sense considering that this code is called when caches are being enabled. While at it, fix the values for the shareability attribute field to match the documentation. Cc: Albert Aribaud Cc: Marc Zyngier

[U-Boot] [PATCH 1/6] armv8/cache: Fix page table creation

2015-03-20 Thread Thierry Reding
From: Thierry Reding While generating the page tables, a running integer index is shifted by SECTION_SHIFT (29) and causes overflow for any integer bigger than 7. The page tables therefore alias to the same 8 sections and cause U-Boot to hang once the MMU is enabled. Fix this by making the

[U-Boot] [PATCH 2/6] armv8: Implement CONFIG_SYS_MALLOC_F_LEN support

2015-03-20 Thread Thierry Reding
From: Thierry Reding Implement early malloc() support in a similar way as on 32-bit ARM. This is required for 64-bit Tegra SoCs that initialize from the device tree just like the earlier 32-bit SoCs. Cc: Albert Aribaud Cc: Marc Zyngier Signed-off-by: Thierry Reding --- arch/arm/include/asm

[U-Boot] [PATCH 4/6] armv8/mmu: Set bits marked RES1 in TCR

2015-03-20 Thread Thierry Reding
From: Thierry Reding For EL3 and EL2, the documentation says that bits 31 and 23 are reserved but should be written as 1. For EL1, only bit 23 is not reserved, so only write bit 31 as 1. Cc: Albert Aribaud Cc: Marc Zyngier Signed-off-by: Thierry Reding --- arch/arm/cpu/armv8/cache_v8.c

[U-Boot] [PATCH 5/6] armv8/gic: Fix GIC v2 initialization

2015-03-20 Thread Thierry Reding
From: Thierry Reding Initialize all GICD_IGROUPRn registers and set up GICC_CTLR to enable interrupts to the primary CPU. This fixes issues seen after booting a Linux kernel from U-Boot. Suggested-by: Marc Zyngier Suggested-by: Mark Rutland Cc: Albert Aribaud Cc: Mark Rutland Cc: Marc

[U-Boot] [PATCH 6/6] armv8: Allow SoCs to override the generic timer

2015-03-20 Thread Thierry Reding
From: Thierry Reding Some SoCs come with a custom timer interface, so allow them to use that instead. Cc: Albert Aribaud Cc: Marc Zyngier Signed-off-by: Thierry Reding --- arch/arm/cpu/armv8/generic_timer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/cpu/armv8

[U-Boot] [PATCH 1/3] fdt: Export fdtdec_get_number()

2015-03-20 Thread Thierry Reding
From: Thierry Reding Drivers that need to parse addresses from the device tree will want to reuse this function rather than duplicating it. Cc: Simon Glass Signed-off-by: Thierry Reding --- include/fdtdec.h | 8 lib/fdtdec.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion

[U-Boot] [PATCH 3/3] fdt: Fix fdtdec_get_pci_addr() for 64-bit

2015-03-20 Thread Thierry Reding
From: Thierry Reding The fdtdec_get_pci_addr() implementation uses fdt_addr_to_cpu() to read cells from an FDT blob. That is wrong because cells are always 32 bits wide, irrespective of the architecture's address bus width, which does not apply to fdt_addr_t. Besides reading the wrong re

[U-Boot] [PATCH 2/3] fdt: Fix fdtdec_get_addr_size() for 64-bit

2015-03-20 Thread Thierry Reding
From: Thierry Reding The current implementation of fdtdec_get_addr_size() assumes that the sizes of fdt_addr_t and fdt_size_t match the number of cells specified by the #address-cells and #size-cells properties. However, there is no reason why that needs to be the case, so the function

[U-Boot] [PATCH] common: Fix source command on 64-bit architectures

2015-03-20 Thread Thierry Reding
From: Thierry Reding The source command uses an unsigned long to iterate over the 32-bit lengths array contained in the legacy image format. On architectures where unsigned long is 64-bit this fails to find the correct entry point of a script. Cc: Tom Rini Signed-off-by: Thierry Reding

[U-Boot] [PATCH] config: Use booti instead of bootz on 64-bit ARM

2015-03-20 Thread Thierry Reding
From: Thierry Reding The bootz command doesn't work with Linux kernel images on 64-bit ARM. The replacement command with the same interface and functionality is booti. Cc: Dennis Gilmore Cc: Tom Rini Signed-off-by: Thierry Reding --- include/config_distro_defaults.h | 4 1 file ch

[U-Boot] [PATCH] config: Define BOOTP client architecture and VCI for ARMv8

2015-03-20 Thread Thierry Reding
From: Thierry Reding Reuse the 32-bit ARM client architecture and identify ARMv8 specifically by setting the BOOTP VCI string. Cc: Dennis Gilmore Cc: Tom Rini Signed-off-by: Thierry Reding --- include/config_distro_defaults.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff

[U-Boot] [PATCH 2/6] ARM: tegra: Disable SPL and non-cached memory on 64-bit

2015-03-20 Thread Thierry Reding
From: Thierry Reding For 64-bit ARM SoCs we rely on non-U-Boot code to bring up the CPU in AArch64 mode so that we don't need the SPL. Non-cached memory is not implemented (yet) for 64-bit ARM. Cc: Tom Warren Signed-off-by: Thierry Reding --- include/configs/tegra-common.h | 4 1

[U-Boot] [PATCH 1/6] ARM: tegra: Prepare for 64-bit support

2015-03-20 Thread Thierry Reding
From: Thierry Reding Move various selects from the TEGRA symbol to the symbols for 32-bit Tegra boards. This is necessary because these settings do not extend to U-Boot for 64-bit Tegra SoCs. Also tie the private libgcc build to SPL, it isn't needed on 64-bit Tegra. Cc: Tom Warren Signe

[U-Boot] [PATCH 3/6] ARM: tegra: Use standard cache enable for 64-bit

2015-03-20 Thread Thierry Reding
From: Thierry Reding On 64-bit SoCs the I-cache isn't enabled in early code, so the default cache enable functions for 64-bit ARM can be used. Cc: Tom Warren Signed-off-by: Thierry Reding --- arch/arm/mach-tegra/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[U-Boot] [PATCH 4/6] ARM: tegra: Restrict usable RAM to 32-bit on 64-bit SoCs

2015-03-20 Thread Thierry Reding
From: Thierry Reding Most peripherals on Tegra can do DMA only to the lower 32-bit address space, even on 64-bit SoCs. This limitation is typically overcome by the use of an IOMMU. Since the IOMMU is not entirely trivial to set up and serves no other purpose (I/O protection, ...) in U-Boot

[U-Boot] [PATCH 6/6] ARM: tegra: Make pinmux.h standalone includible

2015-03-20 Thread Thierry Reding
From: Thierry Reding This header file uses type definitions (u8, u32) from linux/types.h but doesn't include it. If includes aren't carefully ordered this can cause build failures. Cc: Tom Warren Signed-off-by: Thierry Reding --- arch/arm/include/asm/arch-tegra/pinmux.h | 2

[U-Boot] [PATCH 5/6] ARM: tegra: Skip FDT and initrd relocation on 64-bit

2015-03-20 Thread Thierry Reding
From: Thierry Reding U-Boot inspects the initrd_high and fdt_high environment variables and skips relocation of the initial ramdisk and FDT, respectively, if these variables are set to all-ones. The Tegra configuration sets these variables to in the default environment. However on 64

Re: [U-Boot] [PATCH] ehci-hcd: fix warnings on 64-bit builds

2015-03-25 Thread Thierry Reding
On Tue, Mar 24, 2015 at 04:42:04PM +0100, Marek Vasut wrote: > On Tuesday, March 24, 2015 at 12:36:55 AM, Rob Herring wrote: > > On Fri, Mar 20, 2015 at 8:19 AM, Marek Vasut wrote: > > > On Tuesday, March 17, 2015 at 09:46:37 PM, Rob Herring wrote: > > >> Change addresses to unsigned long to be co

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

2014-09-29 Thread Thierry Reding
On Sun, Sep 28, 2014 at 04:48:47PM -0600, Simon Glass wrote: > Hi Thierry, > > On 26 August 2014 09:33, Thierry Reding wrote: > > > From: Thierry Reding > > > > This series adds PCIe support for Tegra20, Tegra30 and Tegra124. The size > > is > > mostly

Re: [U-Boot] [PATCH 42/42] ARM: tegra: colibri_t30: comment style fix

2014-10-06 Thread Thierry Reding
On Fri, Oct 03, 2014 at 10:41:09AM -0700, Tom Warren wrote: > > -Original Message- > > > From: Stephen Warren [mailto:swar...@wwwdotorg.org > ] > > > Sent: Friday, October 03, 2014 8:56 AM > > > To: Marcel Ziswiler > > > Cc: u-boot@lists

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

2014-10-23 Thread Thierry Reding
On Wed, Oct 22, 2014 at 09:07:40PM -0600, Simon Glass wrote: > Hi, > > On 11 September 2014 10:00, Albert ARIBAUD wrote: > > Hi Thierry, > > > > On Tue, 26 Aug 2014 17:33:48 +0200, Thierry Reding > > wrote: > > > >> From: Thierry Reding

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

2014-08-15 Thread Thierry Reding
On Fri, Aug 15, 2014 at 02:39:45PM +0200, Thierry Reding wrote: > On Fri, Jul 25, 2014 at 05:30:48PM -0600, Stephen Warren wrote: > > From: Stephen Warren > > > > Currently, the BOOTP code sends out its initial request as soon as the > > Ethernet driver indicates &

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

2014-08-15 Thread Thierry Reding
On Fri, Jul 25, 2014 at 05:30:48PM -0600, Stephen Warren wrote: > From: Stephen Warren > > Currently, the BOOTP code sends out its initial request as soon as the > Ethernet driver indicates "link up". If this packet is lost or not > replied to for some reason, the code waits for a 1s timeout befo

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

2014-08-15 Thread Thierry Reding
On Fri, Aug 15, 2014 at 10:02:40AM -0600, Stephen Warren wrote: > On 08/15/2014 06:49 AM, Thierry Reding wrote: > >On Fri, Aug 15, 2014 at 02:39:45PM +0200, Thierry Reding wrote: > >>On Fri, Jul 25, 2014 at 05:30:48PM -0600, Stephen Warren wrote: > >>>From: Stephe

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

2014-08-15 Thread Thierry Reding
On Fri, Aug 15, 2014 at 11:39:08PM +0200, Thierry Reding wrote: > On Fri, Aug 15, 2014 at 10:02:40AM -0600, Stephen Warren wrote: [...] > > (and as an aside, how on earth is your DHCP server taking >500ms to respond, > > yet still actually responding?) > > It's a bla

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

2014-08-17 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.

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

2014-08-17 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 --- tools/buildman/builderthread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

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

2014-08-18 Thread Thierry Reding
From: Thierry Reding Given a device tree node, the fdt_n_addr_cells() function will walk up the device tree and search for an #address-cells property. It returns the number of cells required by the device tree node to represent an address. Similarly the fdt_n_size_cells() function returns the

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

2014-08-18 Thread Thierry Reding
From: Thierry Reding Given a device tree node and a property name, the fdt_get_string_index() 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 --- include/libfdt.h| 11 +++ lib/l

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

2014-08-18 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). Patches 1-5 add various FDT helpers to make it easier to parse co

[U-Boot] [PATCH 04/23] fdt: Add a function to return PCI BDF triplet

2014-08-18 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. Signed-off-by: Thierry Reding --- include/fdtdec.h | 11 +++ lib/fdtdec.c | 14 +++

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

2014-08-18 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. Signed-off-by: Thierry Reding --- include/libfdt.h | 20 ++

[U-Boot] [PATCH 09/23] ARM: tegra: Implement tegra_plle_enable()

2014-08-18 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. Signed-off-by: Thierry Reding --- arch/arm/cpu/tegra124-common/clock.c

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

2014-08-18 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 --- include/fdtdec.h | 48

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

2014-08-18 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 --- arch/arm/cpu/tegra-common/Makefile | 1 + arch/arm/cpu/tegra-common/powergate.c | 80 ++ arch/arm

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

2014-08-18 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 13/23] ARM: tegra: Add XUSB pad controller on Tegra124

2014-08-18 Thread Thierry Reding
From: Thierry Reding The XUSB pad controller is used for pinmuxing of the XUSB, PCIe and SATA lanes. 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/tegra124.dtsi index

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

2014-08-18 Thread Thierry Reding
From: Thierry Reding This reset is required for PCIe and the corresponding ID therefore needs to be defined. Signed-off-by: Thierry Reding --- arch/arm/cpu/tegra20-common/clock.c | 4 ++-- arch/arm/cpu/tegra30-common/clock.c | 1 + arch/arm/include/asm/arch-tegra20

[U-Boot] [PATCH 14/23] ARM: tegra: Enable XUSB pad controller on Jetson TK1

2014-08-18 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. Signed-off-by: Thierry Reding --- arch/arm/dts/tegra124-jetson-tk1.dts | 26 ++ 1 file changed, 26 insertions

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

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

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

2014-08-18 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 18/23] ARM: tegra: Add Tegra30 PCIe device tree node

2014-08-18 Thread Thierry Reding
From: Thierry Reding Add the device tree node for the PCIe controller found on Tegra30 SoCs. Signed-off-by: Thierry Reding --- arch/arm/dts/tegra30.dtsi | 71 + include/dt-bindings/clock/tegra30-car.h | 265 2 files changed, 336

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

2014-08-18 Thread Thierry Reding
From: Thierry Reding Add the device tree node for the PCIe controller found on Tegra20 SoCs. Signed-off-by: Thierry Reding --- arch/arm/dts/tegra20.dtsi | 56 +++ include/dt-bindings/clock/tegra20-car.h | 158 2 files changed, 214

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

2014-08-18 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 --- arch/arm/dts/tegra20-trimslice.dts | 35

[U-Boot] [PATCH 22/23] ARM: tegra: Add Tegra124 PCIe device tree node

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

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

2014-08-18 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. Signed-off-by: Thierry Reding --- drivers/pci

[U-Boot] [PATCH 20/23] ARM: tegra: Enable PCIe on Cardhu

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

[U-Boot] [PATCH 21/23] ARM: tegra: Add GIC for Tegra124

2014-08-18 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. Signed-off-by: Thierry Reding --- arch/arm/dts/tegra124.dtsi

[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

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

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

[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

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

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

<    1   2   3   4   5   6   7   8   >