[U-Boot] [PATCH v3 07/30] ARM: tegra: Provide PCIEXCLK reset ID

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

[U-Boot] [PATCH v3 10/30] ARM: tegra: Add XUSB pad controller on Tegra124

2014-11-12 Thread Simon Glass
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 Signed-off-by: Simon Glass --- Changes in v3: None arch/arm/dts/tegra124.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff

[U-Boot] [PATCH v3 05/30] power: Add AMS AS3722 PMIC support

2014-11-12 Thread Simon Glass
From: Thierry Reding The AS3722 provides a number of DC/DC converters and LDOs as well as 8 GPIOs. Signed-off-by: Thierry Reding Signed-off-by: Simon Glass --- Changes in v3: - Use driver model for the PMIC drivers/power/Makefile | 1 + drivers/power/as3722.c | 264 +++

[U-Boot] [PATCH v3 06/30] ARM: tegra: Implement tegra_plle_enable()

2014-11-12 Thread Simon Glass
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 Signed-off-by: Simon Glass --- Changes

[U-Boot] [PATCH v3 08/30] ARM: tegra: Implement powergate support

2014-11-12 Thread Simon Glass
From: Thierry Reding Implement the powergate API that allows various power partitions to be power up and down. Signed-off-by: Thierry Reding Signed-off-by: Simon Glass --- Changes in v3: None arch/arm/cpu/tegra-common/Makefile | 1 + arch/arm/cpu/tegra-common/powergate.c

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

2014-11-12 Thread Simon Glass
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 Signed-off-by: Simon Glass --- Changes in v3: None arch/arm/dts/tegra124.dtsi | 66 ++ 1 file cha

[U-Boot] [PATCH v3 09/30] ARM: tegra: Implement XUSB pad controller

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

[U-Boot] [PATCH v3 12/30] pci: tegra: Add Tegra PCIe driver

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

[U-Boot] [PATCH v3 19/30] ARM: tegra: Add GIC for Tegra124

2014-11-12 Thread Simon Glass
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 Signed-off-by: Simon Glass

[U-Boot] [PATCH v3 23/30] ARM: cache-cp15: Use more accurate types

2014-11-12 Thread Simon Glass
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 v3 16/30] ARM: tegra: Add Tegra30 PCIe device tree node

2014-11-12 Thread Simon Glass
From: Thierry Reding Add the device tree node for the PCIe controller found on Tegra30 SoCs. Signed-off-by: Thierry Reding Signed-off-by: Simon Glass --- Changes in v3: None arch/arm/dts/tegra30.dtsi | 74 + include/dt-bindings/clock/tegra30-car

[U-Boot] [PATCH v3 24/30] malloc: Output region when debugging

2014-11-12 Thread Simon Glass
From: Thierry Reding When DEBUG is set, output memory region used for malloc(). Signed-off-by: Thierry Reding Acked-by: Simon Glass Signed-off-by: Simon Glass --- Changes in v3: None common/dlmalloc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/dlmalloc.c b/common/dlmallo

[U-Boot] [PATCH v3 27/30] net: rtl8169: Honor CONFIG_SYS_RX_ETH_BUFFER

2014-11-12 Thread Simon Glass
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 Signed-off-by: Simon Glass --- Changes in v3: None drivers/net/rtl8169.c | 6 +- 1 file

[U-Boot] [PATCH v3 18/30] ARM: tegra: Enable PCIe on Beaver

2014-11-12 Thread Simon Glass
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 Signed-off-by: Simon Glass

[U-Boot] [PATCH v3 21/30] ARM: tegra: Enable PCIe on Jetson TK1

2014-11-12 Thread Simon Glass
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 Signed-off-by: Simon Glass --- Ch

[U-Boot] [PATCH v3 25/30] ARM: Implement non-cached memory support

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

[U-Boot] [PATCH v3 17/30] ARM: tegra: Enable PCIe on Cardhu

2014-11-12 Thread Simon Glass
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 Signed-off-by: Simon Glas

[U-Boot] [PATCH v3 29/30] net: rtl8169: Use non-cached memory if available

2014-11-12 Thread Simon Glass
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 Signed-off-by: Simon Glass --- Changes in v3: - Remove cache-line

[U-Boot] [PATCH v3 26/30] ARM: tegra: Enable non-cached memory

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

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

2014-11-12 Thread Simon Glass
From: Thierry Reding This network interface card in found on the NVIDIA Jetson TK1. Signed-off-by: Thierry Reding Signed-off-by: Simon Glass --- Changes in v3: None drivers/net/rtl8169.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/rtl8169.c b/drivers/net/rtl8169.c index

[U-Boot] [PATCH v3 28/30] net: rtl8169: Properly align buffers

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

[U-Boot] [PATCH v7 0/3] Adds support for Exynos5422 odroid xu3 board

2014-11-12 Thread Hyungwon Hwang
This is v7 of the patchset adding support Odroud XU3 board. link to the previous version: v2: https://www.mail-archive.com/u-boot@lists.denx.de/msg152275.html v3: https://www.mail-archive.com/u-boot%40lists.denx.de/msg152677.html v4: https://patchwork.ozlabs.org/patch/407411/ v5: https://patchwork

[U-Boot] [PATCH v7 3/3] Odroid-XU3: Add documentation for Odroid-XU3

2014-11-12 Thread Hyungwon Hwang
This patch adds documentation for Odroid-XU3. This documentation is based on that of Odroid (doc/README-odroid) made by Przemyslaw Marczak. The documentation includes basic information about boot media layout, environment, partition layout, and the instruction to burn the u-boot image to boot media

[U-Boot] [PATCH v7 1/3] exynos5: fix GPIO information of exynos5420

2014-11-12 Thread Hyungwon Hwang
This patch fixes wrong GPIO information such as GPIO bank, table which is used to convert GPIO name to index, bank base address, and etc. Signed-off-by: Hyungwon Hwang Tested-by: Lukasz Majewski Acked-by: Lukasz Majewski Cc: Minkyu Kang Cc: Lukasz Majewski --- Changes for v4: - None Changes

[U-Boot] [PATCH v7 2/3] Odroid-XU3: Add support for Odroid-XU3

2014-11-12 Thread Hyungwon Hwang
This patch adds support for Odroid-XU3. Signed-off-by: Hyungwon Hwang Tested-by: Lukasz Majewski Acked-by: Lukasz Majewski Cc: Minkyu Kang Cc: Lukasz Majewski --- Changes for v3: - Remove unnecessary node from DT file - Remove unnecessary features from config file - Remove unnecessary macros

[U-Boot] [PATCH v3 22/30] ARM: cache_v7: Various minor cleanups

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

[U-Boot] [PATCH v3 11/30] ARM: tegra: Enable XUSB pad controller on Jetson TK1

2014-11-12 Thread Simon Glass
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 Signed-off-by: Simon Glass --- Changes in v3: None arch/arm/dts/tegra124-jets

[U-Boot] [PATCH v3 14/30] ARM: tegra: Enable PCIe on TrimSlice

2014-11-12 Thread Simon Glass
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 Signed-off-by: Simon Glass --- Changes in v3: None arch/arm/dts/tegra20-trimslice.d

[U-Boot] [PATCH v3 15/30] ARM: tegra: Add GIC for Tegra30

2014-11-12 Thread Simon Glass
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 Signed-off-by: Simon Glass --- Changes in v3: None arch/arm/dts/tegra30.dtsi

[U-Boot] [PATCH v3 13/30] ARM: tegra: Add Tegra20 PCIe device tree node

2014-11-12 Thread Simon Glass
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 Signed-off-by: Simon Glass --- Changes in v3: None arch/arm/dts/tegra20.dtsi | 59 + include/dt-

Re: [U-Boot] [PATCH v3 1/7] Exynos5800: Introduce new proid for Exynos5800

2014-11-12 Thread Simon Glass
On 31 October 2014 02:55, Akshay Saraswat wrote: > This patch intends to add a new proid for Exynos5800 which is a > variant of Exynos5420. Product id for Exynos5800 is 0x5422. > Both Exynos5420 and Exynos5800 are pin to pin compitable. This > gives us an advantage of reusing Exynos5420 clock, pin

Re: [U-Boot] [PATCH v3 2/7] Exynos5800: Add DTS for new board Peach-Pi

2014-11-12 Thread Simon Glass
On 31 October 2014 02:55, Akshay Saraswat wrote: > We have a new board Peach-Pi similar to Peach-Pit. Peach-Pi > differs from Peach-Pit in configuration factors like display > resolution, memory size, SoC version etc. > > Signed-off-by: Alim Akhtar > Signed-off-by: Akshay Saraswat > --- > Change

Re: [U-Boot] [PATCH v3 3/7] Config: Exynos5800: Enable build for Peach-Pi

2014-11-12 Thread Simon Glass
On 31 October 2014 02:55, Akshay Saraswat wrote: > This adds following things : > - New config and defconfig for Peach-Pi board. > - Alterations in Kconfig and MAINTAINERS. > - Addition of CONFIG_EXYNOS5800. > - ADdition of exynos5800-peach-pi in dts list. > > Signed-off-by: Akshay Saraswat > ---

Re: [U-Boot] [PATCH v3 4/7] DMC: Exynos5: Enable update mode for DREX controller

2014-11-12 Thread Simon Glass
On 31 October 2014 02:55, Akshay Saraswat wrote: > From: Alim Akhtar > > As per Exynos5800 UM ver 0.00 section 17.13.2.1 > CONCONTROL register bit 3 [update_mode], Exynos5800 does not > support the PHY initiated update. And it is recommanded to > set this field to 1'b1 during initialization. This

Re: [U-Boot] [PATCH v3 5/7] Config: Exynos5420: Refactor SDRAM Bank and Size

2014-11-12 Thread Simon Glass
On 31 October 2014 02:55, Akshay Saraswat wrote: > Since, not every board may have all memory channels configured > and all available banks of DMC used, we wish to refactor configs > for Memory Bank size and numbers as per board memory config. > For Example, Peach-Pit has 2GB memory and will be us

Re: [U-Boot] [PATCH v3 6/7] Exynos5: ddr3: Choose between single or double channel config

2014-11-12 Thread Simon Glass
On 31 October 2014 02:55, Akshay Saraswat wrote: > Add a 4G configuration and choose it based on the number of banks > declared in config file. A board with 4 SDRAM banks declared (as > per CONFIG_NR_DRAM_BANKS) will end up with the 2G confiuration. > > Signed-off-by: Doug Anderson > Signed-off-b

Re: [U-Boot] [PATCH v3 7/7] Peach-Pi: Use the enhanced usb_copy() prototype

2014-11-12 Thread Simon Glass
On 31 October 2014 02:55, Akshay Saraswat wrote: > From: Vadim Bendebury > > Exynos5800 IROM has a different, from 5250 and 5420, prototype of the > usb_copy() function. Luckily the earlier version did not expect any > arguments, which means the same code could be used with old and new > SoCs, th

Re: [U-Boot] [PATCH v3 0/7] Addition of new board Peach-Pi

2014-11-12 Thread Simon Glass
Hi Akshay, On 31 October 2014 02:55, Akshay Saraswat wrote: > Now we are adding a new Peach-Pi board which is a variant of Peach-Pit > and is based on Exynos5800. Exynos5800 itself is a variant of Exynos5420, > hence, most of the hardware config and settings are reused for this board. > > Changes

Re: [U-Boot] putc

2014-11-12 Thread Simon Glass
Hi Martin, On 30 October 2014 00:45, Martin Dorwig wrote: > Am Mittwoch, 29. Oktober 2014, 13:03:41 schrieben Sie: >> Hi Martin, >> >> On 28 October 2014 07:23, Martin Dorwig wrote: >> > Hello, >> > after updating u-boot from git v2014.10 >> > i just noticed that my standalone application outpu

Re: [U-Boot] [PATCH v2] fs: make it possible to read the filesystem UUID

2014-11-12 Thread Simon Glass
On 12 November 2014 06:35, Christian Gmeiner wrote: > Some filesystems have a UUID stored in its superblock. To > allow using root=UUID=... for the kernel command line we > need a way to read-out the filesystem UUID. > > changes rfc -> v1: > - make the environment variable an option parameter. If

Re: [U-Boot] [PATCH v2 08/11] fdt: Add ft_system_setup() function for system device tree additions

2014-11-12 Thread Simon Glass
Hi Tom, On 24 October 2014 12:50, Tom Rini wrote: > On Thu, Oct 23, 2014 at 06:58:54PM -0600, Simon Glass wrote: > >> Add an additional function for adding information to the device tree before >> booting. This permits additions which are not board-specific. >> >> Signed-off-by: Simon Glass >> A

[U-Boot] [PATCH v2] mtd: nand: omap_gpmc: Always use ready/busy pin

2014-11-12 Thread Stefan Roese
The functions to detect the state of the ready / busy signal is already available but only used in the SPL case. Lets use it always, also for the main U-Boot. As all boards should have this HW connection. Testing on Siemens Draco (am335x) showed a small perfomance gain by using this ready pin to d

Re: [U-Boot] [PATCH v2 0/9] dm: Introduce driver model for Atmel at91

2014-11-12 Thread Simon Glass
Hi, On 29 October 2014 13:08, Simon Glass wrote: > This series adds driver model support for serial and GPIO for the Atmel AT91 > series. The at91sam9260-based Snapper 9260 is converted over as an example. > > For both drivers the old behaviour is retained, so driver model becomes > optional, not

Re: [U-Boot] [PATCH] buildman: Save *.img files too

2014-11-12 Thread Simon Glass
On 11 November 2014 14:58, Tom Rini wrote: > When saving binary files we likely want to keep any .img files that have > been generated as well. > > Signed-off-by: Tom Rini Acked-by: Simon Glass ___ U-Boot mailing list U-Boot@lists.denx.de http://lists

Re: [U-Boot] Flat Image Tree and boot arguments

2014-11-12 Thread Simon Glass
Hi, On 4 November 2014 08:21, Weiß Christoph wrote: > Well, for me it works with type kernel and loading it to a higher RAM address > than the load address and entry point. I'm not exactly sure if kernel_noload > is supported with Tegra. Is type kernel completely wrong? I'm just not sure why y

[U-Boot] [PATCH 1/5] powerpc/b4860qds: add xfi support

2014-11-12 Thread shh.xie
From: Shaohui Xie We need following changes to make xfi work on B4: 1. set cross-point switch VSC3308 to use sfp config when running xfi; 2. add 10G interface check for xfi; 3. set phy address for xfi so the 10G ports can be registered by mdio; Signed-off-by: Shaohui Xie --- board/freescale/b4

[U-Boot] [PATCH] x86: Fix a warning with gcc 4.4.4

2014-11-12 Thread Simon Glass
This warning appears even though it seems that the compiler could work it out. Fix it. Signed-off-by: Simon Glass --- arch/x86/cpu/cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/cpu/cpu.c b/arch/x86/cpu/cpu.c index a4e639d..3583619 100644 --- a/arch/x86/cpu/cpu.c +++ b/arch/

[U-Boot] [PATCH 1/4] kbuild: Descend into SOC directory from CPU directory

2014-11-12 Thread Masahiro Yamada
Some CPUs of some architectures have SOC directories. At present, the build system directly descends into SOC directories from the top Makefile, but it should generally descend into each directory from its parent directory. Signed-off-by: Masahiro Yamada --- Makefile

[U-Boot] [PATCH 0/4] kbuild: descend into SOC directory from CPU directory

2014-11-12 Thread Masahiro Yamada
In Kbuild, the build system generally descends into each directory from its parent directory, but SOC directory is one of the rule violations. My motivation of this series is to make further refactoring possible. You might perhaps wonder if the build system works equivalently especially with 3/4

[U-Boot] [PATCH 4/5] powerpc/b4860qds: add workaround for XFI

2014-11-12 Thread shh.xie
From: Shaohui Xie XFI does not work stable on current board, it's due to heat sink issue, to make it work stable the board needs additional heat sink, enable two XFI lanes only. Right now we do not have such an erratum for the issue, so use a define CONFIG_SYS_FSL_B4860QDS_XFI_ERR to identify it.

[U-Boot] [PATCH 5/5] B4860QDS: Enable enet port as per fsl_b4860_serdes2 string in hwconfig

2014-11-12 Thread shh.xie
From: Suresh Gupta In B4860QDS board SerDes2 lanes EFGH either go to SFP or AMC riser card slot2 so either DTSEC3/DTSEC4 or TGEC1/TGEC2 should be accessible. This Patch enables DTSEC3/DTSEC4 or TGEC1/TGEC2 on bases of user specified string fsl_b4860_serdes2:sfp_amc=amc or fsl_b4860_serdes2:sfp_am

[U-Boot] [PATCH 4/4] tegra: do not descend into empty directories

2014-11-12 Thread Masahiro Yamada
Some tegra makefiles only contain a dummy line to generate a built-in.o. Let's do not descend into such directories. Signed-off-by: Masahiro Yamada Cc: Tom Warren Cc: Stephen Warren --- arch/arm/cpu/armv7/Makefile | 3 --- arch/arm/cpu/armv7/tegra114/Makefile | 21 -

[U-Boot] [PATCH 3/4] kbuild: use SoC-specific CONFIG to descend into SoC directory

2014-11-12 Thread Masahiro Yamada
Use "obj-$(CONFIG_FOO) += foo/" where it is possible. Signed-off-by: Masahiro Yamada --- arch/arm/cpu/arm1136/Makefile | 3 ++- arch/arm/cpu/arm1176/Makefile | 3 ++- arch/arm/cpu/arm720t/Makefile | 6 -- arch/arm/cpu/arm920t/Makefile | 7 ++- arch/arm/cpu/arm926ejs/Makefile

[U-Boot] [PATCH 2/4] x86: use CONFIG_SYS_COREBOOT to descend into coreboot/ directory

2014-11-12 Thread Masahiro Yamada
The references of CONFIG_SYS_COREBOOT in arch/x86/cpu/coreboot/Makefile are redundant because the build system descends into the directory only when CONFIG_SYS_COREBOOT is defined. Signed-off-by: Masahiro Yamada Cc: Simon Glass --- arch/x86/cpu/Makefile | 2 +- arch/x86/cpu/coreboot/

Re: [U-Boot] [PATCH 4/4] tegra: do not descend into empty directories

2014-11-12 Thread Simon Glass
On 12 November 2014 20:28, Masahiro Yamada wrote: > Some tegra makefiles only contain a dummy line to generate > a built-in.o. Let's do not descend into such directories. > > Signed-off-by: Masahiro Yamada > Cc: Tom Warren > Cc: Stephen Warren Acked-by: Simon Glass __

Re: [U-Boot] [PATCH 2/4] x86: use CONFIG_SYS_COREBOOT to descend into coreboot/ directory

2014-11-12 Thread Simon Glass
On 12 November 2014 20:28, Masahiro Yamada wrote: > The references of CONFIG_SYS_COREBOOT in arch/x86/cpu/coreboot/Makefile > are redundant because the build system descends into the directory > only when CONFIG_SYS_COREBOOT is defined. > > Signed-off-by: Masahiro Yamada > Cc: Simon Glass > ---

[U-Boot] [PATCH 3/5] B4860QDS: Enable SFP or AMC on basis of hwconfig string

2014-11-12 Thread shh.xie
From: Suresh Gupta SerDes2 lanes EFGH either go to SFP or AMC riser card slot2. By default AMC will be configured even if no hwconfig is specified. To enable XFI via SFP use the below hwconfig: fsl_b4860_serdes2:sfp_amc=sfp Signed-off-by: Suresh Gupta Signed-off-by: Poonam Aggrwal Sig

[U-Boot] [PATCH v3] x86: Replace fill_processor_name() with cpu_get_name()

2014-11-12 Thread Simon Glass
This implementation has a 'cpu' prefix and returns a pointer to the string, avoiding the need for copying. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: - Added missing print_cpuinfo() call in coreboot.c arch/x86/cpu/coreboot/coreboot.c | 5 + arch/x86/cpu/cpu.c

Re: [U-Boot] [PATCH v3] x86: Replace fill_processor_name() with cpu_get_name()

2014-11-12 Thread Simon Glass
Hi, On 12 November 2014 20:46, Simon Glass wrote: > This implementation has a 'cpu' prefix and returns a pointer to the string, > avoiding the need for copying. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v3: > - Added missing print_cpuinfo() call in coreboot.c

[U-Boot] [PATCH 2/5] powerpc/b4860qds: dtb fixup for xfi

2014-11-12 Thread shh.xie
From: Shaohui Xie Since xfi has no phy, we delete the property "phy-handle" and use a "fixed-link" property for a xfi port. Signed-off-by: Shaohui Xie --- board/freescale/b4860qds/eth_b4860qds.c | 38 + 1 file changed, 38 insertions(+) diff --git a/board/freesc

Re: [U-Boot] [PATCH v2 01/33] Move early malloc() to before arch_cpu_init()

2014-11-12 Thread Simon Glass
On 10 November 2014 18:00, Simon Glass wrote: > For some CPUs, having malloc() available very early is useful. There is no > reason to delay this since early malloc is allocated before board_init_f() > is called. > > Move early malloc() init nearer to the start of the init sequence. > > Signed-off

Re: [U-Boot] [PATCH v2 02/33] fdt: Add a function to decode a variable-sized u32 array

2014-11-12 Thread Simon Glass
On 10 November 2014 18:00, Simon Glass wrote: > Sometimes an array can be of variable size up to a maximum. Add a helper > function to decode this. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > include/fdtdec.h | 16 > lib/fdtdec.c | 20 +++

Re: [U-Boot] [PATCH v2 04/33] dm: gpio: Add a function to read an ID from a list of GPIOs

2014-11-12 Thread Simon Glass
On 10 November 2014 18:00, Simon Glass wrote: > For board IDs a common approach is to set aside several GPIOs for use in > determining the board ID. This can provide information about board features > and the revision. > > Add a function that turns a list of GPIOs into an integer by assigning > ea

Re: [U-Boot] [PATCH v2 03/33] dm: serial: Move current serial port pointer to global_data

2014-11-12 Thread Simon Glass
On 10 November 2014 18:00, Simon Glass wrote: > In general we can't store things in the data section until we have inited > SDRAM. Some platforms allow this (e.g. those with SPL) but some don't. Move > the pointer to global_data so that it will work on all platforms. > > Without this fix the seria

Re: [U-Boot] [PATCH v2 06/33] x86: config: Move common x86 configs to a common file

2014-11-12 Thread Simon Glass
On 11 November 2014 01:47, Bin Meng wrote: > On Tue, Nov 11, 2014 at 9:00 AM, Simon Glass wrote: >> Many of the x86 CONFIG options will be common across different boards. Move >> them to a common file. >> >> Signed-off-by: Simon Glass >> --- >> >> Changes in v2: >> - Move some features out of th

Re: [U-Boot] [PATCH] x86: Fix a warning with gcc 4.4.4

2014-11-12 Thread Simon Glass
On 12 November 2014 20:27, Simon Glass wrote: > This warning appears even though it seems that the compiler could work it > out. Fix it. > > Signed-off-by: Simon Glass > --- > > arch/x86/cpu/cpu.c | 1 + > 1 file changed, 1 insertion(+) Applied to u-boot-x86. ___

Re: [U-Boot] [PATCH v2 05/33] x86: Add ifdtool for working with Intel Flash Descriptor ROM images

2014-11-12 Thread Simon Glass
On 10 November 2014 18:00, Simon Glass wrote: > Newer Intel chips require a Management Engine which requires a particular > format for the SPI flash that contains the boot loader. Add a tool that > supports creating and modifying these ROM images. > > This tool is from Chrome OS but has been clean

Re: [U-Boot] [PATCH v2 08/33] x86: Remove unnecessary find_fdt(), prepare_fdt() functions

2014-11-12 Thread Simon Glass
On 11 November 2014 02:34, Bin Meng wrote: > On Tue, Nov 11, 2014 at 9:00 AM, Simon Glass wrote: >> These are no-longer needed so drop them. >> >> Signed-off-by: Simon Glass >> --- >> >> Changes in v2: >> - Remove definition of find_fdt() also >> - Remove prepare_fdt() also >> >> arch/x86/inclu

Re: [U-Boot] [PATCH v3] x86: Replace fill_processor_name() with cpu_get_name()

2014-11-12 Thread Simon Glass
On 12 November 2014 20:47, Simon Glass wrote: > Hi, > > On 12 November 2014 20:46, Simon Glass wrote: >> This implementation has a 'cpu' prefix and returns a pointer to the string, >> avoiding the need for copying. >> >> Signed-off-by: Simon Glass >> Reviewed-by: Bin Meng >> --- >> >> Changes i

Re: [U-Boot] [PATCH v2 07/33] x86: Add processor functions to halt and get stack pointer

2014-11-12 Thread Simon Glass
On 11 November 2014 02:32, Bin Meng wrote: > Reviewed-by: Bin Meng > Applied to u-boot-x86. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH v3 0/26] x86: Add support for running on bare hardware

2014-11-12 Thread Simon Glass
At present U-Boot's x86 support requires Coreboot to run first, starting up the CPU and then setting up SDRAM and video among other tasks. U-Boot then runs as a payload. Notably U-Boot does not handle the ACPI fun on x86 where the kernel can call back into the 'BIOS' to perform certain tasks. This

[U-Boot] [PATCH v3 10/26] x86: ivybridge: Enable PCI in early init

2014-11-12 Thread Simon Glass
Enable PCI so we can access devices that need to be set up before relocation. Signed-off-by: Simon Glass --- Changes in v3: - Adjust PCI setup code to fit with new generic cpu PCI code Changes in v2: None arch/x86/cpu/ivybridge/Makefile | 1 + arch/x86/cpu/ivybridge/cpu.c | 6 a

[U-Boot] [PATCH v3 19/26] x86: dts: Add microcode updates for ivybridge CPU

2014-11-12 Thread Simon Glass
Add two microcode updates that are provided for this CPU. The updates have been converted to a device tree form. Note: SPDX submission has been done. If this license is approved I will convert the files to use SPDX. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: - Change comm

[U-Boot] [PATCH v3 02/26] x86: Drop old CONFIG_INTEL_CORE_ARCH code

2014-11-12 Thread Simon Glass
This is no-longer used, so drop it. Signed-off-by: Simon Glass --- Changes in v3: - Split out CONFIG_INTEL_CORE_ARCH removal patch Changes in v2: None arch/x86/cpu/interrupts.c | 28 1 file changed, 28 deletions(-) diff --git a/arch/x86/cpu/interrupts.c b/arch/x8

[U-Boot] [PATCH v3 18/26] x86: ivybridge: Perform Intel microcode update on boot

2014-11-12 Thread Simon Glass
Microcode updates are stored in the device tree. Work through these and apply any that are needed. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/x86/cpu/ivybridge/Makefile | 1 + arch/x86/cpu/ivybridge/cpu.c| 5 + arch/x86/c

[U-Boot] [PATCH v3 17/26] x86: ivybridge: Check BIST value on boot

2014-11-12 Thread Simon Glass
The built-in self test value should be checked before we continue booting. Refuse to continue if there is something wrong. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/x86/cpu/ivybridge/cpu.c | 16 1 file changed, 16 insertions(+) diff --git a/a

[U-Boot] [PATCH v3 05/26] x86: Build a .rom file which can be flashed to an x86 machine

2014-11-12 Thread Simon Glass
On x86 machines U-Boot needs to be added to a large ROM image which is then flashed onto the target board. The ROM has a particular format so it makes sense for U-Boot to build this image automatically. Unfortunately it relies on binary blobs so we cannot require this for the default build as yet.

[U-Boot] [PATCH v3 06/26] x86: Emit post codes in startup code for Chromebooks

2014-11-12 Thread Simon Glass
On x86 it is common to use 'post codes' which are 8-bit hex values emitted from the code and visible to the user. Traditionally two 7-segment displays were made available on the motherboard to show the last post code that was emitted. This allows diagnosis of a boot problem since it is possible to

[U-Boot] [PATCH v3 08/26] x86: Refactor PCI to permit alternate init

2014-11-12 Thread Simon Glass
We want access PCI earlier in the init sequence, so refactor the code so that it does not require use of a BSS variable to work. This will allow us to use early malloc() to store information about a PCI hose. Common PCI code moves to arch/x86/cpu/pci.c and a new board_pci_setup_hose() function is

[U-Boot] [PATCH v3 07/26] x86: chromebook_link: Implement CAR support (cache as RAM)

2014-11-12 Thread Simon Glass
Add support for CAR so that we have memory to use prior to DRAM init. On link there is a total of 128KB of CAR available, although some is used for the memory reference code. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: - Expand the comment about preserving ebp - Move SIPI c

[U-Boot] [PATCH v3 04/26] x86: Add chromebook_link board

2014-11-12 Thread Simon Glass
This board is a 'bare' version of the existing 'link 'board. It does not require coreboot to run, but is intended to start directly from the reset vector. This initial commit has place holders for a wide range of features. These will be added in follow-on patches and series. So far it cannot be bo

[U-Boot] [PATCH v3 09/26] x86: Support use of PCI before relocation

2014-11-12 Thread Simon Glass
Add support for using PCI before SDRAM is available, using early malloc() and global_data. Signed-off-by: Simon Glass --- Changes in v3: - Callpci_setup_type1() in early PCI setup Changes in v2: - Split out new patch to support use fo PCI before relocation arch/x86/cpu/pci.c |

[U-Boot] [PATCH v3 26/26] x86: Rename chromebook-x86 to coreboot

2014-11-12 Thread Simon Glass
Rename this vendor since it is intended to be used on any platform where coreboot runs at reset and then loads U-Boot. So far it is only tested on link. When other boards are supported it is likely that we will need to move to multiple board names, all under the 'coreboot' vendor. So while it woul

[U-Boot] [PATCH v3 12/26] x86: ivybridge: Add early LPC init so that serial works

2014-11-12 Thread Simon Glass
The PCH (Platform Controller Hub) includes an LPC (Low Pin Count) device which provides a serial port. This is accessible on Chromebooks, so enable it early in the boot process. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: - Fix mangled cros_ec reg property arch/x86/cpu/iv

[U-Boot] [PATCH v3 23/26] x86: Make show_boot_progress() common

2014-11-12 Thread Simon Glass
This function can probably be used on all x86 boards, so move it into the common file. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/x86/cpu/coreboot/coreboot.c | 24 arch/x86/cpu/cpu.c | 24 2 files

[U-Boot] [PATCH v3 21/26] x86: ivybridge: Add support for early GPIO init

2014-11-12 Thread Simon Glass
When not relying on Coreboot for GPIO init the GPIOs must be set up correctly. This is currently done statically through a rather ugly method. As the GPIOs are figured out they can be moved to the device tree and set up as needed rather than all at the start. In this implementation, board files sh

[U-Boot] [PATCH v3 20/26] x86: ivybridge: Add early init for PCH devices

2014-11-12 Thread Simon Glass
Many PCH devices are hard-coded to a particular PCI address. Set these up early in case they are needed. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/x86/cpu/ivybridge/Makefile | 1 + arch/x86/cpu/ivybridge/cpu.c | 141 +++

[U-Boot] [PATCH v3 24/26] x86: ivybridge: Add LAPIC support

2014-11-12 Thread Simon Glass
The local advanced programmable interrupt controller is not used much in U-Boot but we do need to set it up. Add basic support for this, which will be extended as needed. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/x86/cpu/ivybridge/cpu.c | 3 ++ arch/x86/

[U-Boot] [PATCH v3 25/26] x86: ivybridge: Implement SDRAM init

2014-11-12 Thread Simon Glass
Implement SDRAM init using the Memory Reference Code (mrc.bin) provided in the board directory and the SDRAM SPD information in the device tree. This also needs the Intel Management Engine (me.bin) to work. Binary blobs everywhere: so far we have MRC, ME and microcode. SDRAM init works by setting

[U-Boot] [PATCH v3 16/26] x86: ivybridge: Perform initial CPU setup

2014-11-12 Thread Simon Glass
Set up the flex ratio (controls speed versus heat output) and a few other very early things. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/x86/cpu/ivybridge/cpu.c | 130 ++ arch/x86/include/asm/arch-ivybridge/model_206ax.h

[U-Boot] [PATCH v3 01/26] x86: Allow timer calibration to work on ivybridge

2014-11-12 Thread Simon Glass
Unfortunately MSR_FSB_FREQ is not available on this CPU, and the PIT method seems to take up to 50ms which is much too long. For this CPU we know the frequency, so add another special case for now. Signed-off-by: Simon Glass --- Changes in v3: - Try another approach for fixing the timer Change

[U-Boot] [PATCH v3 03/26] x96: ifdtool: Allow creation of an empty ROM

2014-11-12 Thread Simon Glass
Allow an empty ROM to be created, without needing to provide a descriptor. The descriptor is not needed on some x86 boards. Signed-off-by: Simon Glass --- Changes in v3: - Add new patch to allow ifdtool to create an empty ROM Changes in v2: None tools/ifdtool.c | 2 +- 1 file changed, 1 inser

[U-Boot] [PATCH v3 22/26] x86: chromebook_link: Enable GPIO support

2014-11-12 Thread Simon Glass
Enable GPIO support and provide the required GPIO setup information to the driver. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/x86/dts/link.dts | 3 + board/google/chromebook_link/link.c | 107 include/configs

[U-Boot] [PATCH v3 14/26] x86: Add clr/setbits functions

2014-11-12 Thread Simon Glass
These are available on other architectures. Make them available on x86 also. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/x86/include/asm/io.h | 49 +++ 1 file changed, 49 insertions(+) diff --git a/arch/x86/include/as

[U-Boot] [PATCH v3 15/26] x86: Add msr read/write functions that use a structure

2014-11-12 Thread Simon Glass
It is convenient to be able to adjust MSRs with a structure that splits the two 32-bit halves into separate fields, as they are often dealt with separately. Add a few functions to support this. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/x86/include/asm/msr.h |

[U-Boot] [PATCH v3 11/26] x86: pci: Allow configuration before relocation

2014-11-12 Thread Simon Glass
Add simple PCI access routines for x86 which permit use before relocation. The normal PCI stack is still used, but for pre-relocation use there can only ever be a single hose. After relocation, fall back to the normal access, although even then on x86 machines there is normally only a single PCI bu

[U-Boot] [PATCH v3 13/26] x86: Tidy up coreboot header usage

2014-11-12 Thread Simon Glass
There is no need to explicitly write 'arch-coreboot' when including headers, as when the arch directory points to coreboot the correct files will be used. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/x86/cpu/coreboot/coreboot.c | 4 ++-- arch/x86/cpu/coreboot/i

Re: [U-Boot] [PATCH v7 0/3] Adds support for Exynos5422 odroid xu3 board

2014-11-12 Thread Jaehoon Chung
On 11/13/2014 10:32 AM, Hyungwon Hwang wrote: > This is v7 of the patchset adding support Odroud XU3 board. > > link to the previous version: > v2: https://www.mail-archive.com/u-boot@lists.denx.de/msg152275.html > v3: https://www.mail-archive.com/u-boot%40lists.denx.de/msg152677.html > v4: https:

Re: [U-Boot] [PATCH v3 01/26] x86: Allow timer calibration to work on ivybridge

2014-11-12 Thread Bin Meng
On Thu, Nov 13, 2014 at 1:42 PM, Simon Glass wrote: > Unfortunately MSR_FSB_FREQ is not available on this CPU, and the PIT method > seems to take up to 50ms which is much too long. > > For this CPU we know the frequency, so add another special case for now. > > Signed-off-by: Simon Glass > --- >

Re: [U-Boot] [PATCH v3 02/26] x86: Drop old CONFIG_INTEL_CORE_ARCH code

2014-11-12 Thread Bin Meng
On Thu, Nov 13, 2014 at 1:42 PM, Simon Glass wrote: > This is no-longer used, so drop it. > > Signed-off-by: Simon Glass > --- > > Changes in v3: > - Split out CONFIG_INTEL_CORE_ARCH removal patch > > Changes in v2: None > > arch/x86/cpu/interrupts.c | 28 > 1 file c

<    1   2   3   >