[U-Boot] [PATCH v5 25/28] freescale/qixis: Add support for booting from NAND

2015-03-20 Thread York Sun
From: Scott Wood Use "qixis_reset nand" to reset the board to boot from NAND. Signed-off-by: Scott Wood Signed-off-by: York Sun --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None board/freescale/common/qixis.c | 31 +-- 1 file c

[U-Boot] [PATCH v5 27/28] ls2085a: esdhc: Add esdhc support for ls2085a

2015-03-20 Thread York Sun
From: Yangbo Lu This patch adds esdhc support for ls2085a. Signed-off-by: Yangbo Lu Signed-off-by: York Sun --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/cpu/armv8/fsl-lsch3/cpu.c | 10 +++ arch/arm/cpu/armv8/fsl-lsch3/fdt.c

[U-Boot] [PATCH v5 28/28] armv8/fsl-lsch3: Implement workaround for I2C issue

2015-03-20 Thread York Sun
This erratum requires setting GLITCH_EN bit in debug register. Signed-off-by: York Sun CC: Heiko Schocher --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: Add comment to I2C workaround arch/arm/cpu/armv8/fsl-lsch3/soc.c | 34 +

[U-Boot] [PATCH v5 26/28] armv8/ls2085ardb: Enable NAND SPL support

2015-03-20 Thread York Sun
From: Scott Wood Enable NAND boot support using SPL framework. To boot from NAND, either use DIP switches on board, or "qixis_reset nand" command. Details of forming NAND image can be found in README. Signed-off-by: Scott Wood Signed-off-by: York Sun --- Changes in v5: Fix signed-off-by si

[U-Boot] [PATCH v5 20/28] armv8/ls2085ardb: Add support of LS2085ARDB platform

2015-03-20 Thread York Sun
The LS2085ARDB is a evaluation platform that supports LS2085A family SoCs. This patch add sbasic support for the platform. Signed-off-by: York Sun Signed-off-by: Prabhakar Kushwaha Signed-off-by: Bhupesh Sharma Signed-off-by: Scott Wood --- Changes in v5: Fix Kconfig help for inconsistent

[U-Boot] [PATCH v5 24/28] armv8/ls2085aqds: NAND boot support

2015-03-20 Thread York Sun
From: Scott Wood This adds NAND boot support for LS2085AQDS, using SPL framework. Details of forming NAND image can be found in README. Signed-off-by: Scott Wood Signed-off-by: York Sun --- Changes in v5: Update LS2085AQDS README to include instructions to form NAND image Changes in v4:

[U-Boot] [PATCH v5 22/28] board/ls2085qds: Add support ethernet

2015-03-20 Thread York Sun
From: Prabhakar Kushwaha Add support of ethernet: - eth.c: mapping lane to slot for (0x2A, 0x07) - ls2085a.c: To enable/disable dpmac and get link type Signed-off-by: Prabhakar Kushwaha Signed-off-by: York Sun --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: No

[U-Boot] [PATCH v5 23/28] driver/ifc: Add 64KB page support

2015-03-20 Thread York Sun
From: Jaiprakash Singh IFC has two register pages.Till IFC version 1.4 each register page is 4KB each.But IFC ver 2.0 register page size is 64KB each.IFC regiters structure is break into two viz FCM and RUNTIME.FCM(Flash control machine) registers are defined in PAGE0 and controls IFC generic fun

[U-Boot] [PATCH v5 21/28] drivers/fsl-mc: Autoload AOIP image from NOR flash

2015-03-20 Thread York Sun
From: "J. German Rivera" Load AIOP image from NOR flash into DDR so that the MC firmware the MC fw can start it at boot time. Signed-off-by: J. German Rivera [York Sun: This is a debug commit. Will drop once AIOP is loaded by Linux] Signed-off-by: York Sun --- Changes in v5: None Changes in v

[U-Boot] [PATCH v5 11/28] driver/ldpaa_eth: Update ldpaa ethernet driver

2015-03-20 Thread York Sun
From: Prabhakar Kushwaha Fix flush_dcache_range() input parameter to use start and end addresses. Change ethernet interface name to DPNI. Update entry criteria for ldpaa_eth_stop. Ethernet stack first stop the device before performing next operation. At the time of Ethernet driver registration, n

[U-Boot] [PATCH v5 15/28] net/memac_phy: reuse driver for little endian SoCs

2015-03-20 Thread York Sun
From: Shaohui Xie The memac for PHY management on little endian SoCs is similar on big endian SoCs, so we modify the driver by using I/O accessor function to handle the endianness, so the driver can be reused on little endian SoCs, we introduce CONFIG_SYS_MEMAC_LITTLE_ENDIAN for little endian SoC

[U-Boot] [PATCH v5 18/28] driver/ldpaa: Add support of WRIOP static data structure

2015-03-20 Thread York Sun
From: Prabhakar Kushwaha Wire rate IO Processor (WRIOP) provide support of receive and transmit ethernet frames from the ethernet MAC. Here Each WRIOP block supports upto 64 DPMACs. Create a house keeping data structure to support upto 16 DPMACs and store external phy related information. Sign

[U-Boot] [PATCH v5 19/28] armv8/ls2085aqds: Add support of LS2085AQDS platform

2015-03-20 Thread York Sun
The LS2085AQDS is an evaluatoin platform that supports the LS2085A family SoCs. This patch add basic support of the platform. Signed-off-by: York Sun Signed-off-by: Prabhakar Kushwaha Signed-off-by: Bhupesh Sharma --- Changes in v5: Fix board README for inconsistent SoC name Fix comment i

[U-Boot] [PATCH v5 13/28] net/phy/cortina: Fix compilation warning

2015-03-20 Thread York Sun
From: pankaj chauhan Fix comilation warning which is emitted when firmware address is more than 32 bit. Signed-off-by: pankaj chauhan Signed-off-by: York Sun --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None drivers/net/phy/cortina.c |4 ++-- 1 file cha

[U-Boot] [PATCH v5 17/28] armv8/fsl-lsch3: Enable system error aborts

2015-03-20 Thread York Sun
From: Scott Wood This lets us see the problems (close to) when they happen, rather than Linux hanging when it enables them prior to having a working console. Signed-off-by: Scott Wood Signed-off-by: York Sun --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v5 16/28] armv8/fsl-ch3: Add support to print RCW configuration

2015-03-20 Thread York Sun
From: Bhupesh Sharma This patch adds support to print out the Reset Configuration Word information. Signed-off-by: Bhupesh Sharma Signed-off-by: York Sun --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/cpu/armv8/fsl-lsch3/cpu.c | 14 +++

[U-Boot] [PATCH v5 14/28] drivers/fsl-mc: Changed MC firmware loading for new boot architecture

2015-03-20 Thread York Sun
From: "J. German Rivera" Changed MC firmware loading to comply with the new MC boot architecture. Flush D-cache hierarchy after loading MC images. Add environment variables "mcboottimeout" for MC boot timeout in milliseconds, "mcmemsize" for MC DRAM block size. Check MC boot status before calling

[U-Boot] [PATCH v5 09/28] armv8/ls2085a: Add workaround for USB erratum A-008751

2015-03-20 Thread York Sun
From: Scott Wood Without this "USB may not work" according to the erratum text, though I did not notice a problem without it. Signed-off-by: Scott Wood Signed-off-by: York Sun --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/cpu/armv8/fsl-lsch3/so

[U-Boot] [PATCH v5 12/28] armv8: Add SerDes framework for Layerscape Architecture

2015-03-20 Thread York Sun
From: Minghuan Lian Add support of SerDes framework for Layerscape Architecture. - Add support of 2 SerDes block - Add SerDes protocol parsing and detection - Create table of SerDes protocol supported by LS2085A Signed-off-by: Prabhakar Kushwaha Signed-off-by: Minghuan Lian --- C

[U-Boot] [PATCH v5 10/28] armv8/fsl-lsch3: Use correct compatible for serial clock fixup

2015-03-20 Thread York Sun
From: Scott Wood The serial nodes in the fsl-lsch3 device trees have compatible = "fsl,ns16550", "ns16550a" -- so don't look for "ns16550". Signed-off-by: Scott Wood Signed-off-by: York Sun --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/cpu/armv

[U-Boot] [PATCH v5 06/28] armv8/fsl-lsch3: Set nodes in DVM domain

2015-03-20 Thread York Sun
From: Scott Wood This is required for TLB invalidation broadcasts to work. Signed-off-by: Scott Wood Signed-off-by: York Sun --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/cpu/armv8/fsl-lsch3/lowlevel.S |9 + arch/arm/include/as

[U-Boot] [PATCH v5 08/28] fsl-lsch3: Introduce place for common early SoC init

2015-03-20 Thread York Sun
From: Scott Wood Signed-off-by: Scott Wood Signed-off-by: York Sun --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/cpu/armv8/fsl-lsch3/Makefile |1 + arch/arm/cpu/armv8/fsl-lsch3/soc.c| 14 ++ arch/arm/include/asm/arc

[U-Boot] [PATCH v5 03/28] armv8/fsl-lsch3: Fix platform clock calculation

2015-03-20 Thread York Sun
Platform clock is half of platform PLL. There is an additional divisor in place. Clean up code copied from powerpc. Signed-off-by: York Sun --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/cpu/armv8/fsl-lsch3/speed.c |7 +++ 1 file changed, 3

[U-Boot] [PATCH v5 02/28] armv8/ls2085a: Update common header file

2015-03-20 Thread York Sun
From: Prabhakar Kushwaha ls2085a_common.h contains hard-coded information for NOR/NAND flash, I2C, DDR, etc. These are platform specific. Move them out of common header file and placed into respective board header files. Move TEXTBASE to 1MB offset to fit NOR flash with up to 1MB sector size. E

[U-Boot] [PATCH v5 05/28] armv8/ls2085a: Add support for reset request

2015-03-20 Thread York Sun
From: pankaj chauhan Add support for reset_cpu() by asserting RESET_REQ_B. Signed-off-by: pankaj chauhan Signed-off-by: York Sun --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/cpu/armv8/fsl-lsch3/cpu.c | 11 +++ board/freescale/ls2085a

[U-Boot] [PATCH v5 07/28] armv8/fsl-lsch3: Update early MMU table

2015-03-20 Thread York Sun
During booting, IFC is mapped to low region. After booting up, IFC is remapped to high region for larger space. The environmental variables are also stored at high region. In order to read the variables during booting, a virtual mapping is required. Cache was enabled for entire IFC space before. A

[U-Boot] [PATCH v5 0/28] Adding LS2085AQDS and RDB

2015-03-20 Thread York Sun
This set adds necessary support in common ls2085a support and board support for QDS and RDB. Changes in v5: Re-generate patches using patman default flags s/LayerScape/Layerscape/g Fix board README for inconsistent SoC name Fix comment in board header file s/LS2080/LS2085/g Fix Kconfig

[U-Boot] [PATCH v5 04/28] armv8/ls2085a: Fix generic timer clock source

2015-03-20 Thread York Sun
The timer clock is system clock divided by 4, not fixed 12MHz. This is common to the SoC, not board specific. Primary core is fixed when u-boot still runs in board_f. Secondary cores are fixed by reading a variable set by u-boot. Signed-off-by: York Sun CC: Mark Rutland --- Changes in v5: None

[U-Boot] [PATCH v5 01/28] armv8/fsl-lsch3: Implement workaround for erratum A008585

2015-03-20 Thread York Sun
Generic Timer may contain an erroneous value. The workaround is to read it twice until getting the same value. Signed-off-by: York Sun --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/cpu/armv8/generic_timer.c | 11 +++ arch/arm/i

Re: [U-Boot] [PATCH v4 20/28] armv8/ls2085ardb: Add support of LS2085ARDB platform

2015-03-20 Thread York Sun
On 03/20/2015 05:33 PM, Scott Wood wrote: > On Fri, 2015-03-20 at 17:29 -0700, York Sun wrote: >> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig >> index f4a7851..7478eb4 100644 >> --- a/arch/arm/Kconfig >> +++ b/arch/arm/Kconfig >> @@ -658,6 +658,16 @@ config TARGET_LS2085AQDS >>develo

Re: [U-Boot] [PATCH v4 20/28] armv8/ls2085ardb: Add support of LS2085ARDB platform

2015-03-20 Thread Scott Wood
On Fri, 2015-03-20 at 17:29 -0700, York Sun wrote: > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index f4a7851..7478eb4 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -658,6 +658,16 @@ config TARGET_LS2085AQDS > development platform that supports the QorIQ LS2085A >

[U-Boot] [PATCH v4 20/28] armv8/ls2085ardb: Add support of LS2085ARDB platform

2015-03-20 Thread York Sun
The LS2080ARDB is a evaluation platform that supports LS2080A family SoCs. This patch add sbasic support for the platform. Signed-off-by: York Sun Signed-off-by: Prabhakar Kushwaha Signed-off-by: Bhupesh Sharma Signed-off-by: Scott Wood --- Changes in v4: Fix board README for inconsistent

Re: [U-Boot] [PATCH v4 24/28] armv8/ls2085aqds: NAND boot support

2015-03-20 Thread Scott Wood
On Fri, 2015-03-20 at 20:18 -0400, Tom Rini wrote: > On Fri, Mar 20, 2015 at 04:44:19PM -0500, Scott Wood wrote: > > On Fri, 2015-03-20 at 17:37 -0400, Tom Rini wrote: > > > On Fri, Mar 20, 2015 at 04:15:40PM -0500, Scott Wood wrote: > > > > > > [snip] > > > > It would also be nice to sort out loa

Re: [U-Boot] [PATCH v4 24/28] armv8/ls2085aqds: NAND boot support

2015-03-20 Thread Tom Rini
On Fri, Mar 20, 2015 at 04:44:19PM -0500, Scott Wood wrote: > On Fri, 2015-03-20 at 17:37 -0400, Tom Rini wrote: > > On Fri, Mar 20, 2015 at 04:15:40PM -0500, Scott Wood wrote: > > > > [snip] > > > It would also be nice to sort out loading the environment during SPL. > > > > *ears perk up*. Plea

Re: [U-Boot] [PATCH 20/28] armv8/ls2085ardb: Add support of LS2085ARDB platform

2015-03-20 Thread York Sun
On 03/20/2015 05:12 PM, Scott Wood wrote: > On Fri, 2015-03-20 at 17:08 -0700, York Sun wrote: >> >> On 03/20/2015 04:01 PM, Scott Wood wrote: >>> On Thu, 2015-03-19 at 09:45 -0700, York Sun wrote: #ifndef __ASSEMBLY__ unsigned long get_board_sys_clk(void); -unsigned long get_boa

Re: [U-Boot] [PATCH 20/28] armv8/ls2085ardb: Add support of LS2085ARDB platform

2015-03-20 Thread Scott Wood
On Fri, 2015-03-20 at 17:08 -0700, York Sun wrote: > > On 03/20/2015 04:01 PM, Scott Wood wrote: > > On Thu, 2015-03-19 at 09:45 -0700, York Sun wrote: > >> #ifndef __ASSEMBLY__ > >> unsigned long get_board_sys_clk(void); > >> -unsigned long get_board_ddr_clk(void); > >> #endif > >> > >> #de

Re: [U-Boot] [PATCH 20/28] armv8/ls2085ardb: Add support of LS2085ARDB platform

2015-03-20 Thread York Sun
On 03/20/2015 04:01 PM, Scott Wood wrote: > On Thu, 2015-03-19 at 09:45 -0700, York Sun wrote: >> The LS2080ARDB is a evaluation platform that supports LS2080A >> family SoCs. This patch add sbasic support for the platform. > > s/2080/2085/ > >> diff --git a/board/freescale/ls2085aqds/Makefile

Re: [U-Boot] [PATCH] dm: serial: remove bogus include

2015-03-20 Thread Simon Glass
On 20 March 2015 at 09:24, Tom Rini wrote: > On Fri, Mar 20, 2015 at 01:24:45PM +0900, Masahiro Yamada wrote: > >> Serial-uclass should be generically implemented without depending >> a particular hardware. Fortunately, nothing in include/ns16550.h is >> referenced from drivers/serial/serial-ucla

Re: [U-Boot] [PATCH] exynos5: add trace feature #ifdef in exynos5-common.h

2015-03-20 Thread Simon Glass
On 13 March 2015 at 02:48, Inha Song wrote: > We can enable / disable trace feature from the FTRACE config options. > To enable, compile U-Boot with FTRACE=1. > > This patch add #ifdef FTRACE in exynos5-common.h for enable/disable > to use FTRACE configs instead of having to change board config fi

Re: [U-Boot] [PATCH v2 21/22] dm: x86: pci: Convert chromebook_link to use driver model for pci

2015-03-20 Thread Simon Glass
On 5 March 2015 at 12:25, Simon Glass wrote: > Move chromebook_link over to driver model for PCI. > > This involves: > - adding a uclass for platform controller hub > - removing most of the existing PCI driver > - adjusting how CPU init works to use driver model instead > - rename the lpc compatib

Re: [U-Boot] [PATCH v2 22/22] dm: pci: Add driver model tests for PCI

2015-03-20 Thread Simon Glass
On 5 March 2015 at 12:25, Simon Glass wrote: > Add some basic tests to check that things work as expected with sandbox. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > test/dm/Makefile | 1 + > test/dm/pci.c| 59 > >

Re: [U-Boot] [PATCH v2 16/22] dm: sandbox: pci: Add a PCI emulation uclass

2015-03-20 Thread Simon Glass
On 5 March 2015 at 12:25, Simon Glass wrote: > Since sandbox does not have real devices (unless it borrows those from the > host) it must use emulations. Provide a uclass which permits PCI operations > to be passed through to an emulation device. > > Signed-off-by: Simon Glass > --- > > Changes i

Re: [U-Boot] [PATCH v2 20/22] dm: x86: pci: Convert coreboot to use driver model for pci

2015-03-20 Thread Simon Glass
On 5 March 2015 at 12:25, Simon Glass wrote: > Move coreboot-x86 over to driver model for PCI. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > arch/x86/cpu/coreboot/pci.c | 63 > ++--- > arch/x86/dts/chromebook_link.dts| 7 + > b

Re: [U-Boot] [PATCH v2 18/22] dm: sandbox: pci: Enable PCI for sandbox

2015-03-20 Thread Simon Glass
On 5 March 2015 at 12:25, Simon Glass wrote: > Enable PCI options so that sandbox can be used for testing this bus with > driver model. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > configs/sandbox_defconfig | 3 +++ > include/configs/sandbox.h | 4 > 2 files changed, 7 i

Re: [U-Boot] [PATCH v2 19/22] dm: x86: pci: Add a PCI driver for driver model

2015-03-20 Thread Simon Glass
On 5 March 2015 at 12:25, Simon Glass wrote: > Add a simple x86 PCI driver which uses standard functions provided by the > architecture. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > arch/x86/cpu/pci.c | 40 > arch/x86/include/a

Re: [U-Boot] [PATCH v2 17/22] dm: sandbox: Add a emulated PCI device as an example

2015-03-20 Thread Simon Glass
On 5 March 2015 at 12:25, Simon Glass wrote: > This device sits on the sandbox PCI bus and provides a case-swapping > service for sandbox. It illustrates the use of both PCI I/O and PCI > memory accesses. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > drivers/misc/Makefile|

Re: [U-Boot] [PATCH v2 15/22] dm: sandbox: Add a simple PCI driver

2015-03-20 Thread Simon Glass
On 5 March 2015 at 12:25, Simon Glass wrote: > Add a driver which can access emulations of devices and make them available > in sandbox. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > drivers/pci/Kconfig | 10 ++ > drivers/pci/Makefile | 1 + > drivers/pci/pci_s

Re: [U-Boot] [PATCH v2 11/22] dm: Show both allocated and requested seq numbers in 'dm uclass'

2015-03-20 Thread Simon Glass
On 5 March 2015 at 12:25, Simon Glass wrote: > Both of these values are useful for understanding what is going on, so show > them both. > > The requested number comes from a device tree alias. The allocated one is > set up when the device is activated, and is unique throughout the uclass. > > Sign

Re: [U-Boot] [PATCH v2 14/22] dm: sandbox: pci: Add PCI support for sandbox

2015-03-20 Thread Simon Glass
On 5 March 2015 at 12:25, Simon Glass wrote: > Add the required header information, device tree nodes and I/O accessor > functions to support PCI on sandbox. All devices are emulated by drivers > which can be added as required for testing or development. > > Signed-off-by: Simon Glass > --- > > C

Re: [U-Boot] [PATCH v2 13/22] dm: pci: Add a uclass for PCI

2015-03-20 Thread Simon Glass
On 5 March 2015 at 12:25, Simon Glass wrote: > Add a uclass for PCI controllers and a generic one for PCI devices. Adjust > the 'pci' command and the existing PCI support to work with this new uclass. > Keep most of the compatibility code in a separate file so that it can be > removed one day. > >

Re: [U-Boot] [PATCH v2 10/22] dm: core: Add a uclass pre_probe() method for devices

2015-03-20 Thread Simon Glass
On 5 March 2015 at 12:25, Simon Glass wrote: > Some uclasses want to set up a device before it is probed. Add a method > for this. > > An example is with PCI, where a PCI uclass wants to set up its private > data for later use. This allows the device's uclass() method to make calls > whcih use tha

Re: [U-Boot] [PATCH v2 09/22] dm: core: Mark device as active before calling its probe() method

2015-03-20 Thread Simon Glass
On 5 March 2015 at 12:25, Simon Glass wrote: > At present the device is not active when the probe() method is called. But > some probe() methods want to set up the device and this can involve > accessing it through normal methods. For example a PCI bus may wish to > set up its PCI parameters using

Re: [U-Boot] [PATCH v2 12/22] dm: pci: Move common PCI functions into their own file

2015-03-20 Thread Simon Glass
On 5 March 2015 at 12:25, Simon Glass wrote: > Driver model will share many functions with the existing PCI implementation. > Move these into their own file to avoid duplication and confusion. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > drivers/pci/Makefile | 2 +- > d

Re: [U-Boot] [PATCH v2 08/22] dm: core: Add dev_get_uclass_priv() to access uclass private data

2015-03-20 Thread Simon Glass
On 5 March 2015 at 12:25, Simon Glass wrote: > Add a convenience function to access the private data that a uclass stores > for each of its devices. Convert over most existing uses for consistency > and to provide an example for others. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None

Re: [U-Boot] [PATCH v2 06/22] Correct map_sysmem() logic in do_mem_mw()

2015-03-20 Thread Simon Glass
On 9 March 2015 at 03:06, Bin Meng wrote: > On Fri, Mar 6, 2015 at 3:25 AM, Simon Glass wrote: >> This function does not unmap what it maps. Correct it. >> >> Signed-off-by: Simon Glass >> --- >> >> Changes in v2: None >> >> common/cmd_mem.c | 7 --- >> 1 file changed, 4 insertions(+), 3 de

Re: [U-Boot] [PATCH v2 07/22] fdt: Tighten up error handling in fdtdec_get_pci_addr()

2015-03-20 Thread Simon Glass
On 9 March 2015 at 03:09, Bin Meng wrote: > On Fri, Mar 6, 2015 at 3:25 AM, Simon Glass wrote: >> This function returns -ENOENT when the property is missing (which the caller >> might forgive) and also when the property is present but incorrectly >> formatted (which many callers would like to rep

Re: [U-Boot] [PATCH v2 04/22] dm: Add a new CPU init function which can use driver model

2015-03-20 Thread Simon Glass
On 9 March 2015 at 03:02, Bin Meng wrote: > On Fri, Mar 6, 2015 at 3:25 AM, Simon Glass wrote: >> Since driver model is set up after arch_cpu_init(), that function cannot >> use drivers. Add a new arch_cpu_init_dm() function which is called >> immediately after driver model is ready, and can refe

Re: [U-Boot] [PATCH v2 05/22] x86: Split up arch_cpu_init()

2015-03-20 Thread Simon Glass
On 9 March 2015 at 03:06, Bin Meng wrote: > On Fri, Mar 6, 2015 at 3:25 AM, Simon Glass wrote: >> At present we do more in this function than we should. Split out the >> post-driver-model part into a separate function. >> >> Signed-off-by: Simon Glass >> --- >> >> Changes in v2: >> - Use the new

Re: [U-Boot] [PATCH v2 02/22] fdt: Export fdtdec_get_number() for general use

2015-03-20 Thread Simon Glass
On 6 March 2015 at 08:43, Tom Rini wrote: > On Thu, Mar 05, 2015 at 12:25:14PM -0700, Simon Glass wrote: > >> This function is missing a prototype but is more widey useful. Add it. >> >> Signed-off-by: Simon Glass > > Reviewed-by: Tom Rini Applied to u-boot-dm/next.

Re: [U-Boot] [PATCH v2 03/22] x86: Add a x86_ prefix to the x86-specific PCI functions

2015-03-20 Thread Simon Glass
On 5 March 2015 at 12:25, Simon Glass wrote: > These functions currently use a generic name, but they are for x86 only. > This may introduce confusion and prevents U-Boot from using these names > more widely. > > In fact it should be possible to remove these at some point and use > generic functio

Re: [U-Boot] [PATCH] x86: Add ramboot and nfsboot commands in x86-common.h

2015-03-20 Thread Simon Glass
On 11 March 2015 at 23:08, Bin Meng wrote: > It is very common in the debug stage to test U-Boot loading a linux > kernel. The commands to boot linux kernel with ramdisk and nfs as the > root are common to all x86 targets, so it makes sense to add them as > the U-Boot default environment in x86-co

Re: [U-Boot] [PATCH v2 0/22] Add driver model support for PCI

2015-03-20 Thread Simon Glass
Hi, On 5 March 2015 at 12:25, Simon Glass wrote: > > This series is a collection of changes in core DM, sandbox, x86 and PCI code > to implement a PCI uclass and associated operations. Some basic tests are > provided as well. > > As is becoming common with DM conversions, the existing structure (

Re: [U-Boot] [PATCH v2 6/6] x86: Add support for panther (Asus Chromebox)

2015-03-20 Thread Simon Glass
On 2 March 2015 at 12:40, Simon Glass wrote: > Support running U-Boot as a coreboot payload. Tested peripherals include: > > - Video (HDMI and DisplayPort) > - SATA disk > - Gigabit Ethernet > - SPI flash > > USB3 does not work. This may be a problem with the USB3 PCI driver or > something in the

Re: [U-Boot] [PATCH v2 01/22] sandbox: Update device tree 'reg' properties for I2C and SPI

2015-03-20 Thread Simon Glass
On 9 March 2015 at 02:57, Bin Meng wrote: > On Fri, Mar 6, 2015 at 3:25 AM, Simon Glass wrote: >> We should have a size value for these. Add one in each case. This will >> be needed for PCI. >> >> Signed-off-by: Simon Glass >> --- >> >> Changes in v2: >> - Update root node #size=cells to 1 in th

Re: [U-Boot] [PATCH v2 4/6] x86: spi: Add support for lynxpoint

2015-03-20 Thread Simon Glass
On 2 March 2015 at 12:40, Simon Glass wrote: > Add Lynxpoint to the driver so that the Asus Chromebox can be supported. > > Signed-off-by: Simon Glass > Reviewed-by: Jagannadha Sutradharudu Teki > --- > > Changes in v2: None > > drivers/spi/ich.c | 3 ++- > 1 file changed, 2 insertions(+), 1 de

Re: [U-Boot] [PATCH v2 5/6] x86: Move common Chromebook config into a separate file

2015-03-20 Thread Simon Glass
On 2 March 2015 at 12:40, Simon Glass wrote: > Since Chromebooks mostly have similar configuration, put it in a common > file. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v2: None > > include/configs/chromebook_link.h | 61 +-- > i

Re: [U-Boot] [PATCH v2 3/6] x86: pci: Add PCI IDs for lynxpoint

2015-03-20 Thread Simon Glass
On 2 March 2015 at 12:40, Simon Glass wrote: > Add some new device IDs used by this haswell-based chipset. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v2: > - Put this patch before the one that needs it > > include/pci_ids.h | 2 ++ > 1 file changed, 2 insertions

Re: [U-Boot] [PATCH v2 1/6] x86: Support machines with >4GB of RAM

2015-03-20 Thread Simon Glass
On 3 March 2015 at 00:56, Lukasz Majewski wrote: > Hi Simon, > >> Some systems have more than 4GB of RAM. U-Boot can only place things >> below 4GB so any memory above that should not be used. Ignore any >> such memory so that the memory size will not exceed the maximum. >> >> This prevents gd->ra

Re: [U-Boot] [PATCH v2 2/6] x86: video: Allow keyboard presence to be controlled by device tree

2015-03-20 Thread Simon Glass
On 2 March 2015 at 12:40, Simon Glass wrote: > At present a VGA console assumes a keyboard unless a CONFIG option is set. > This difference can be dealt with by a device tree option, allowing boards > that are otherwise the same to use the same configuration. > > Signed-off-by: Simon Glass > ---

Re: [U-Boot] [PATCH v6 09/27] net: Remove the bd* parameter from net stack functions

2015-03-20 Thread Simon Glass
Hi Joe, On 11 March 2015 at 17:44, Joe Hershberger wrote: > This value is not used by the network stack and is available in the > global data, so stop passing it around. For the one legacy function > that still expects it (init op on old Ethernet drivers) pass in the > global pointer version dir

Re: [U-Boot] [PATCH 20/28] armv8/ls2085ardb: Add support of LS2085ARDB platform

2015-03-20 Thread Scott Wood
On Thu, 2015-03-19 at 09:45 -0700, York Sun wrote: > The LS2080ARDB is a evaluation platform that supports LS2080A > family SoCs. This patch add sbasic support for the platform. s/2080/2085/ > diff --git a/board/freescale/ls2085aqds/Makefile > b/board/freescale/ls2085ardb/Makefile > similarity i

Re: [U-Boot] [PATCH v6 2/8] lpc32xx: mtd: nand: add MLC NAND controller

2015-03-20 Thread Scott Wood
On Fri, 2015-03-20 at 10:35 +0100, Albert ARIBAUD wrote: > Hi Scott, > > Le Thu, 19 Mar 2015 16:39:42 -0500, Scott Wood > a écrit : > > > On Wed, 2015-03-18 at 10:04 +0100, Albert ARIBAUD (3ADEV) wrote: > > > +int nand_spl_load_image(uint32_t offs, unsigned int size, void *dst) > > > +{ > > > +

Re: [U-Boot] [PATCH v4 24/28] armv8/ls2085aqds: NAND boot support

2015-03-20 Thread Scott Wood
On Fri, 2015-03-20 at 14:23 -0700, York Sun wrote: > > On 03/20/2015 02:15 PM, Scott Wood wrote: > > On Fri, 2015-03-20 at 12:21 -0700, York Sun wrote: > >> From: Scott Wood > >> > >> This adds NAND boot support for LS2085AQDS, using SPL framework. > >> > >> To form a NAND image, append u-boot-wi

Re: [U-Boot] [PATCH v4 24/28] armv8/ls2085aqds: NAND boot support

2015-03-20 Thread Scott Wood
On Fri, 2015-03-20 at 17:37 -0400, Tom Rini wrote: > On Fri, Mar 20, 2015 at 04:15:40PM -0500, Scott Wood wrote: > > [snip] > > It would also be nice to sort out loading the environment during SPL. > > *ears perk up*. Please elaborate :) We have SPL environment support, > we have SPL NAND Envir

Re: [U-Boot] [PATCH v4 24/28] armv8/ls2085aqds: NAND boot support

2015-03-20 Thread York Sun
On 03/20/2015 02:33 PM, Scott Wood wrote: > On Fri, 2015-03-20 at 14:23 -0700, York Sun wrote: >> >> On 03/20/2015 02:15 PM, Scott Wood wrote: >>> On Fri, 2015-03-20 at 12:21 -0700, York Sun wrote: From: Scott Wood This adds NAND boot support for LS2085AQDS, using SPL framework. >

Re: [U-Boot] [PATCH v4 24/28] armv8/ls2085aqds: NAND boot support

2015-03-20 Thread Tom Rini
On Fri, Mar 20, 2015 at 04:15:40PM -0500, Scott Wood wrote: [snip] > It would also be nice to sort out loading the environment during SPL. *ears perk up*. Please elaborate :) We have SPL environment support, we have SPL NAND Environment support today. It doesn't get passed along to the running

Re: [U-Boot] [PATCH v4 24/28] armv8/ls2085aqds: NAND boot support

2015-03-20 Thread York Sun
On 03/20/2015 02:15 PM, Scott Wood wrote: > On Fri, 2015-03-20 at 12:21 -0700, York Sun wrote: >> From: Scott Wood >> >> This adds NAND boot support for LS2085AQDS, using SPL framework. >> >> To form a NAND image, append u-boot-with-spl.bin after a proper >> nand boot RCW and flash to the beginn

Re: [U-Boot] [PATCH v4 24/28] armv8/ls2085aqds: NAND boot support

2015-03-20 Thread Scott Wood
On Fri, 2015-03-20 at 12:21 -0700, York Sun wrote: > From: Scott Wood > > This adds NAND boot support for LS2085AQDS, using SPL framework. > > To form a NAND image, append u-boot-with-spl.bin after a proper > nand boot RCW and flash to the beginning of NAND. Do we want to do it this way, or sho

Re: [U-Boot] [PATCH 0/4] x86: Add Intel Topcliff PCH Gigabit Ethernet support

2015-03-20 Thread Simon Glass
Hi Joe, On 20 March 2015 at 13:18, Joe Hershberger wrote: > Hi Simon, > > On Fri, Mar 20, 2015 at 4:12 AM, Bin Meng wrote: >> >> This series adds a new ethernet driver for the GMAC found on Intel >> Topcliff >> Platform Controller Hub and enable its support on Intel Crown Bay board. >> >> The se

Re: [U-Boot] [PATCH] sunxi: Serial number support, obtained from SID bits and passed through ATAG

2015-03-20 Thread Hans de Goede
Hi, Thanks for the patch, I've 1 comment inline, please send a version with that fixed then I'll queue it up for merging upstream. On 18-03-15 20:46, Paul Kocialkowski wrote: Signed-off-by: Paul Kocialkowski --- board/sunxi/board.c| 33 ++--- include/

[U-Boot] [PATCH v4 26/28] armv8/ls2085ardb: Enable NAND SPL support

2015-03-20 Thread York Sun
From: Scott Wood Enable NAND boot support using SPL framework. To boot from NAND, either use DIP switches on board, or "qixis_reset nand" command. Signed-off-by: Scott Wood Singed-off-by: York Sun --- Changes in v4: Update MAINTAINERS file Changes in v3: None Changes in v2: None arch/ar

[U-Boot] [PATCH v4 04/28] armv8/ls2085a: Fix generic timer clock source

2015-03-20 Thread York Sun
The timer clock is system clock divided by 4, not fixed 12MHz. This is common to the SoC, not board specific. Primary core is fixed when u-boot still runs in board_f. Secondary cores are fixed by reading a variable set by u-boot. Signed-off-by: York Sun CC: Mark Rutland --- Changes in v4: Re

[U-Boot] [PATCH v4 24/28] armv8/ls2085aqds: NAND boot support

2015-03-20 Thread York Sun
From: Scott Wood This adds NAND boot support for LS2085AQDS, using SPL framework. To form a NAND image, append u-boot-with-spl.bin after a proper nand boot RCW and flash to the beginning of NAND. Signed-off-by: Scott Wood Signed-off-by: York Sun --- Changes in v4: Update MAINTAINERS file

Re: [U-Boot] [PATCH 4/4] x86: crownbay: Enable Intel Topcliff GMAC support

2015-03-20 Thread Joe Hershberger
On Fri, Mar 20, 2015 at 4:12 AM, Bin Meng wrote: > > Intel Crown Bay board has one ethernet port connected from Intel > Topcliff PCH. Enable it in the board configuration. > > Signed-off-by: Bin Meng > > --- Reviewed-by: Joe Hershberger ___ U-Boot mai

Re: [U-Boot] [PATCH 3/4] net: Add Intel Topcliff GMAC driver

2015-03-20 Thread Joe Hershberger
On Fri, Mar 20, 2015 at 4:12 AM, Bin Meng wrote: > > Add a new driver for the Gigabit Ethernet MAC found on Intel Topcliff > Platform Controller Hub. Tested under 10/100 half/full duplex and 1000 > full duplex modes using ping and tftpboot commands. > > Signed-off-by: Bin Meng > --- Acked-by: Jo

Re: [U-Boot] [PATCH 2/4] net: Update README.drivers.eth to mention latest APIs

2015-03-20 Thread Joe Hershberger
On Fri, Mar 20, 2015 at 4:12 AM, Bin Meng wrote: > > README.drivers.eth still refers to the deprecated miiphy_register(). > Update the doc to mention new APIs mdio_alloc() and mdio_register(). > > Signed-off-by: Bin Meng > --- Acked-by: Joe Hershberger __

Re: [U-Boot] [PATCH 1/4] net: Add ethernet FCS length macro in net.h

2015-03-20 Thread Joe Hershberger
On Fri, Mar 20, 2015 at 4:12 AM, Bin Meng wrote: > > Some ethernet drivers use their own version of ethernet FCS length > macro which is really common. We define ETH_FCS_LEN in net.h and > replace those custom versions in various places. > > Signed-off-by: Bin Meng > --- Acked-by: Joe Hershberge

Re: [U-Boot] [PATCH 0/4] x86: Add Intel Topcliff PCH Gigabit Ethernet support

2015-03-20 Thread Joe Hershberger
Hi Simon, On Fri, Mar 20, 2015 at 4:12 AM, Bin Meng wrote: > > This series adds a new ethernet driver for the GMAC found on Intel Topcliff > Platform Controller Hub and enable its support on Intel Crown Bay board. > > The series also did some clean up work below: > - Introduce ETH_FCS_LEN macro a

Re: [U-Boot] [PATCH v3 04/28] armv8/ls2085a: Fix generic timer clock source

2015-03-20 Thread York Sun
On 03/20/2015 11:29 AM, Mark Rutland wrote: >> diff --git a/arch/arm/cpu/armv8/fsl-lsch3/mp.c >> b/arch/arm/cpu/armv8/fsl-lsch3/mp.c >> index ce9c0c1..5338fe6 100644 >> --- a/arch/arm/cpu/armv8/fsl-lsch3/mp.c >> +++ b/arch/arm/cpu/armv8/fsl-lsch3/mp.c >> @@ -30,6 +30,13 @@ int fsl_lsch3_wake_sec

Re: [U-Boot] [PATCH 4/6] mmc: Continue polling MMC card for OCR only if it is still not ready

2015-03-20 Thread Troy Kisky
On 3/19/2015 6:51 PM, peng@freescale.com wrote: > Hi, Andrew > > There is already a patch to fix this issue. > Patchwork: https://patchwork.ozlabs.org/patch/451775/ > > Regards, > Peng. > > -Original Message- > From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Andrew >

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

2015-03-20 Thread Joe Hershberger
Hi Thierry, On Fri, Mar 20, 2015 at 6:41 AM, Thierry Reding wrote: > > 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 point

Re: [U-Boot] [PATCH v3 04/28] armv8/ls2085a: Fix generic timer clock source

2015-03-20 Thread Mark Rutland
> diff --git a/arch/arm/cpu/armv8/fsl-lsch3/mp.c > b/arch/arm/cpu/armv8/fsl-lsch3/mp.c > index ce9c0c1..5338fe6 100644 > --- a/arch/arm/cpu/armv8/fsl-lsch3/mp.c > +++ b/arch/arm/cpu/armv8/fsl-lsch3/mp.c > @@ -30,6 +30,13 @@ int fsl_lsch3_wake_seconday_cores(void) > u32 cores, cpu_up_mask = 1

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

2015-03-20 Thread Stephen Warren
On 03/20/2015 11:09 AM, Tom Rini wrote: On Fri, Mar 20, 2015 at 10:26:12AM -0600, Stephen Warren wrote: On 03/20/2015 06:24 AM, Thierry Reding wrote: 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-cach

Re: [U-Boot] [PATCH v2 04/28] armv8/ls2085a: Fix generic timer clock source

2015-03-20 Thread Mark Rutland
> >> +int timer_init(void) > >> +{ > >> + u32 __iomem *cntcr = (u32 *)CONFIG_SYS_FSL_TIMER_ADDR; > >> + u32 __iomem *cltbenr = (u32 *)CONFIG_SYS_FSL_PMU_CLTBENR; > >> +#ifdef COUNTER_FREQUENCY_REAL > >> + unsigned long cntfrq = COUNTER_FREQUENCY_REAL; > >> + > >> + /* Update with accurate clock

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

2015-03-20 Thread Marc Zyngier
On 20/03/15 11:47, Thierry Reding wrote: > 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

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

2015-03-20 Thread Marc Zyngier
On 20/03/15 11:47, Thierry Reding wrote: > 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-of

Re: [U-Boot] [PATCH] net/phy/realtek: Disable interrupt on Realtek Ethernet PHY drivers

2015-03-20 Thread Joe Hershberger
Hi Codrin, On Wed, Mar 4, 2015 at 2:46 AM, Codrin Constantin Ciubotariu < codrin.ciubota...@freescale.com> wrote: > > Hi, > > Anyone has any comments on this? Please share your thoughts. Looks good to me. > > -Original Message- > > From: Codrin Ciubotariu [mailto:codrin.ciubota...@freesc

[U-Boot] [PATCH v3 04/28] armv8/ls2085a: Fix generic timer clock source

2015-03-20 Thread York Sun
The timer clock is system clock divided by 4, not fixed 12MHz. This is common to the SoC, not board specific. Primary core is fixed when u-boot still runs in board_f. Secondary cores are fixed by reading a variable set by u-boot. Signed-off-by: York Sun CC: Mark Rutland --- Changes in v3: Mo

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

2015-03-20 Thread Marc Zyngier
On 20/03/15 11:47, Thierry Reding wrote: > 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 docum

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

2015-03-20 Thread Marc Zyngier
On 20/03/15 11:47, Thierry Reding wrote: > 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 o

  1   2   >