[U-Boot] [PATCH v2 36/51] x86: broadwell: Add a SATA driver

2016-03-11 Thread Simon Glass
Add a SATA driver for broadwell. This supports connecting an SSD and the usual U-Boot commands to read and write data. Signed-off-by: Simon Glass Acked-by: Bin Meng --- Changes in v2: None arch/x86/cpu/broadwell/Makefile | 1 + arch/x86/cpu/broadwell/sata.c | 269 +

[U-Boot] [PATCH v2 23/51] x86: Move common MRC Kconfig options to the common file

2016-03-11 Thread Simon Glass
At present the MRC options are private to ivybridge. Other Intel CPUs also use these settings. Move them to a common place. Signed-off-by: Simon Glass --- Changes in v2: - Add Kconfig help for the moved options - Fix tab indentation arch/x86/Kconfig | 61 +

[U-Boot] [PATCH v2 50/51] x86: Fix a header nit in x86-chromebook.h

2016-03-11 Thread Simon Glass
There is an extra line in the comment in the header. Remove it. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None include/configs/x86-chromebook.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/x86-chromebook.h b/include/configs/x86-chromebook.h inde

[U-Boot] [PATCH v2 33/51] x86: Add basic support for broadwell

2016-03-11 Thread Simon Glass
This adds the broadwell architecture, with the CPU driver and some useful header files. Signed-off-by: Simon Glass Acked-by: Bin Meng --- Changes in v2: None arch/x86/Kconfig| 1 + arch/x86/cpu/Makefile | 1 + arch/x86/cpu/broadwell/Kconfi

[U-Boot] [PATCH] power: regulator: fixed: set gpio direction before set value

2016-03-11 Thread Peng Fan
Before set value for a gpio, need to set its direction to output first. Signed-off-by: Peng Fan Cc: Przemyslaw Marczak Cc: Simon Glass --- drivers/power/regulator/fixed.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/power/regulator/fixed.c b/drivers/power/regulator/fixed.c

[U-Boot] [PATCH] dm: core: device: set pinctrl state for pinctrl device

2016-03-11 Thread Peng Fan
We may have pinmux settings for pinctrl device, like the following example: " &iomuxc { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_hog_1>; imx6ul-evk { pinctrl_hog_1: hoggrp-1 { fsl,pins = < MX6UL_

[U-Boot] [PATCH v2 41/51] x86: broadwell: Add support for SDRAM setup

2016-03-11 Thread Simon Glass
Broadwell uses a binary blob called the memory reference code (MRC) to start up its SDRAM. This is similar to ivybridge so we can mostly use common code for running this blob. Signed-off-by: Simon Glass --- Changes in v2: - Rename sdram to mrc arch/x86/cpu/broadwell/Makefile|

[U-Boot] [PATCH v2 34/51] x86: broadwell: Add a PCH driver

2016-03-11 Thread Simon Glass
Add a driver for the broadwell low-power platform controller hub. Signed-off-by: Simon Glass Acked-by: Bin Meng --- Changes in v2: - Use setio_32() instead of setio_le32(), etc. - Use capitals for header guard arch/x86/cpu/broadwell/Makefile | 2 + arch/x86/cpu/broadwell/iobp.c

[U-Boot] [PATCH v2 28/51] x86: Add an ICH6 pin configuration driver

2016-03-11 Thread Simon Glass
Add a driver which sets up the pin configuration on x86 devices with an ICH6 (or later) Platform Controller Hub. The driver is not in the pinctrl uclass due to some oddities of the way x86 devices work: - The GPIO controller is not present in I/O space until it is set up - This is done by writing

[U-Boot] [PATCH v2 40/51] x86: broadwell: Add power-control support

2016-03-11 Thread Simon Glass
Broadwell requires quite a bit of power-management setup. Add code to set this up correctly. Signed-off-by: Simon Glass Acked-by: Bin Meng --- Changes in v2: - Use capitals for header guard arch/x86/cpu/broadwell/Makefile | 1 + arch/x86/cpu/broadwell/power_state.c | 89 ++

[U-Boot] [PATCH v2 21/51] x86: Add macros to clear and set I/O bits

2016-03-11 Thread Simon Glass
The clrsetbits_...() macros are useful for working with memory mapped I/O. But they do not work with I/O space, as used on x86 machines. Add some macros to provide similar features for I/O. Signed-off-by: Simon Glass --- Changes in v2: - Use setio_32() instead of setio_le32(), etc. arch/x86/i

[U-Boot] [PATCH v2 32/51] x86: dts: Update the pinctrl binding a little

2016-03-11 Thread Simon Glass
Make a few minor updates to make the meaning clearer. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None doc/device-tree-bindings/gpio/intel,x86-pinctrl.txt | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/doc/device-tree-bindin

[U-Boot] [PATCH v2 43/51] x86: broadwell: Add support for high-speed I/O lane with ME

2016-03-11 Thread Simon Glass
Provide a way to determine the HSIO (high-speed I/O) version supported by the Intel Management Engine (ME) implementation on the platform. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/cpu/broadwell/Makefile | 1 + arch/x86/cpu/broadwell/me.c | 57 +++

[U-Boot] [PATCH v2 46/51] x86: Add a default address for reference code

2016-03-11 Thread Simon Glass
Add an address which can be used for loading and running the reference code when needed. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None include/configs/x86-chromebook.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/x86-chromebook.h b/include/c

[U-Boot] [PATCH v2 37/51] x86: broadwell: Add a northbridge driver

2016-03-11 Thread Simon Glass
Add a driver for the broadwell northbridge. This sets up the location of several blocks of registers. Signed-off-by: Simon Glass Acked-by: Bin Meng --- Changes in v2: None arch/x86/cpu/broadwell/Makefile | 1 + arch/x86/cpu/broadwell/northbridge.c | 59 ++

[U-Boot] [PATCH v2 39/51] x86: broadwell: Add reference code support

2016-03-11 Thread Simon Glass
Broadwell needs a special binary blob to set up the PCH. Add code to run this on start-up. Signed-off-by: Simon Glass --- Changes in v2: - Fix comment style arch/x86/cpu/broadwell/Makefile | 1 + arch/x86/cpu/broadwell/refcode.c | 113 +++ 2 files changed

[U-Boot] [PATCH v2 30/51] x86: Drop all the old pin configuration code

2016-03-11 Thread Simon Glass
We don't need this anymore - we can use device tree and the new pinconfig driver instead. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None arch/x86/include/asm/gpio.h | 141 -- board/coreboot/coreboot/coreboot.c| 5 --

[U-Boot] [PATCH v2 35/51] x86: broadwell: Add a pinctrl driver

2016-03-11 Thread Simon Glass
GPIO pins need to be set up on start-up. Add a driver to provide this, configured from the device tree. The binding is slightly different from the existing ICH6 binding, since that is quite verbose. The new binding should be just as extensible. Signed-off-by: Simon Glass Acked-by: Bin Meng ---

[U-Boot] [PATCH v2 24/51] x86: Record the CPU details when starting each core

2016-03-11 Thread Simon Glass
As each core starts up, record its microcode version and CPU ID so these can be presented with the 'cpu detail' command. Signed-off-by: Simon Glass --- Changes in v2: - Don't try to read microcode version on quark - Use gd->arch.x86_device instead of reading the device ID again arch/x86/cpu/in

[U-Boot] [PATCH v2 25/51] x86: ivybridge: Show microcode version for each core

2016-03-11 Thread Simon Glass
Enable the microcode feature so that the microcode version is shown with the 'cpu detail' command. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: - Rename subject to 'core' instead of 'code' arch/x86/cpu/ivybridge/model_206ax.c | 3 ++- 1 file changed, 2 insertions(+), 1

[U-Boot] [PATCH v2 44/51] x86: Support a chained-boot development flow

2016-03-11 Thread Simon Glass
Sometimes it is useful to jump into U-Boot directly from coreboot or UEFI without any 16-bit init. This can help during development by allowing U-Boot to avoid doing all the init required by the platform. In this case we cannot rely on the GDT settings. U-Boot will hang or crash if these are wrong

[U-Boot] [PATCH v2 38/51] x86: broadwell: Add an LPC driver

2016-03-11 Thread Simon Glass
Add a driver for the broadwell LPC (low-pin-count peripheral). This mostly uses common code. Signed-off-by: Simon Glass Acked-by: Bin Meng --- Changes in v2: - Use capitals for header guard arch/x86/cpu/broadwell/Makefile | 1 + arch/x86/cpu/broadwell/lpc.c | 77 ++

[U-Boot] [PATCH v2 27/51] x86: link: Add pin configuration to the device tree

2016-03-11 Thread Simon Glass
At present pin configuration on link does not use the standard mechanism, but some rather ugly custom code. As a first step to resolving this, add the pin configuration to the device tree. Four of the GPIOs must be available before relocation (for SDRAM pin strapping). Signed-off-by: Simon Glass

[U-Boot] [PATCH v2 26/51] x86: Update microcode for secondary CPUs

2016-03-11 Thread Simon Glass
Each CPU needs to have its microcode loaded. Add support for this so that all CPUs will have the same version. Signed-off-by: Simon Glass --- Changes in v2: - Fix micrcode typo - Don't try to update microcode on FSP platforms arch/x86/cpu/cpu.c | 1 + arch/x86/cpu/intel_common/ca

[U-Boot] [PATCH v2 18/51] x86: Add common SDRAM-init code

2016-03-11 Thread Simon Glass
The code to call the memory reference code is common to several Intel CPUs. Add common code for performing this init. Intel calls this 'Pre-EFI-Init' (PEI), where EFI stands for Extensible Firmware Interface. Signed-off-by: Simon Glass --- Changes in v2: - Rename sdram_common.c to mrc.c arch/x

[U-Boot] [PATCH v2 42/51] x86: broadwell: Add a GPIO driver

2016-03-11 Thread Simon Glass
Add a GPIO driver for the GPIO peripheral found on broadwell devices. Signed-off-by: Simon Glass Acked-by: Bin Meng --- Changes in v2: - Use setio_32() instead of setio_le32(), etc. - Fix 'configure' typo drivers/gpio/Kconfig| 9 ++ drivers/gpio/Makefile | 1

[U-Boot] [PATCH v2 29/51] x86: gpio: Allow the pinctrl driver to set up the pin config

2016-03-11 Thread Simon Glass
Rather than setting up the pin configuration in the GPIO driver, use the new pinctrl driver to do it. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None configs/bayleybay_defconfig | 2 + configs/cougarcanyon2_defconfig | 2 + configs/crownbay_defconfig |

[U-Boot] [PATCH v2 45/51] x86: broadwell: Add video support

2016-03-11 Thread Simon Glass
Add a video driver for Intel's broadwell integrated graphics controller. This uses a binary blob for most init, with the driver just performing a few basic tasks. This driver supports VESA as the mode-setting mechanism. Since most boards don't support driver model yet with VESA, a special case is

[U-Boot] [PATCH v2 31/51] x86: Add support for running Intel reference code

2016-03-11 Thread Simon Glass
Intel has invented yet another binary blob which firmware is required to run. This is run after SDRAM is ready. It is linked to load at a particular address, typically 0, but is a relocatable ELF so can be moved if required. Add support for this in the build system. The file should be placed in th

[U-Boot] [PATCH v2 17/51] x86: Move common PCH code into a common place

2016-03-11 Thread Simon Glass
The SATA indexed register write functions are common to several Intel PCHs. Move this into a common location. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/cpu/intel_common/Makefile| 1 + arch/x86/cpu/intel_common/pch_common.c| 25 ++ arch/x86/cpu/ivybrid

[U-Boot] [PATCH v2 20/51] x86: dts: Drop memory SPD compatible string

2016-03-11 Thread Simon Glass
This is not needed now that the memory controller driver has the SPD data in its own node. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None arch/x86/dts/chromebook_link.dts | 1 - include/fdtdec.h | 1 - lib/fdtdec.c | 1 - 3 files c

[U-Boot] [PATCH v2 47/51] x86: Use white on black for the console on chromebooks

2016-03-11 Thread Simon Glass
This is a little easier on the eyes, particularly when the backlight is set to maximum. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None include/configs/x86-chromebook.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/x86-chromebook.h b/include/co

[U-Boot] [PATCH v2 48/51] x86: Update README for new developments

2016-03-11 Thread Simon Glass
Update a few points which have become out-of-date. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: - Correct naming of Intel platforms doc/README.x86 | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/doc/README.x86 b/doc/README.x86 index

[U-Boot] [PATCH v2 51/51] x86: Add support for the samus chromebook

2016-03-11 Thread Simon Glass
This adds basic support for chromebook_samus. This is the 2015 Pixel and is based on an Intel broadwell platform. Supported so far are: - Serial - SPI flash - SDRAM init (with MRC cache) - SATA - Video (on the internal LCD panel) - Keyboard Various less-visible drivers are provided to make the ab

[U-Boot] [PATCH v2 16/51] x86: ivybridge: Drop sandybridge_early_init()

2016-03-11 Thread Simon Glass
This function was removed in the previous clean-up. Drop it from the header file also. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/include/asm/arch-ivybridge/sandybridge.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/include/asm/arch-ivybridge/sandybridge.h b/

[U-Boot] [PATCH v2 19/51] x86: ivybridge: Convert to use the common SDRAM code

2016-03-11 Thread Simon Glass
Adjust the existing implementation to use the new common SDRAM init code. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: - Rename sdram to mrc arch/x86/cpu/ivybridge/sdram.c | 394 + 1 file changed, 83 insertions(+), 311 deletions(-

[U-Boot] [PATCH v2 49/51] x86: Add a function to set the IOAPIC ID

2016-03-11 Thread Simon Glass
Add a function to set the ID in the IOAPIC. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None arch/x86/cpu/ioapic.c | 16 arch/x86/include/asm/ioapic.h | 2 ++ 2 files changed, 18 insertions(+) diff --git a/arch/x86/cpu/ioapic.c b/arch/x86/cpu

[U-Boot] [PATCH v2 15/51] x86: Move Intel Management Engine code to a common place

2016-03-11 Thread Simon Glass
Some of the Intel ME code is common to several Intel CPUs. Move it into a common location. Add a header file for report_platform.c also. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: - Use capitals for header guard arch/x86/cpu/intel_common/Makefile | 2

[U-Boot] [PATCH v2 14/51] x86: Rename PORT_RESET to IO_PORT_RESET

2016-03-11 Thread Simon Glass
This same name is used in USB. Add a prefix to distinguish it. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/cpu/cpu.c | 4 ++-- arch/x86/cpu/intel_common/cpu.c | 4 ++-- arch/x86/include/asm/processor.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) dif

[U-Boot] [PATCH v2 08/51] x86: Move cache-as-RAM code into a common location

2016-03-11 Thread Simon Glass
This cache-as-RAM (CAR) code is common to several Intel chips. Create a new intel_common directory and move it in there. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/cpu/Makefile | 1 + arch/x86/cpu/intel_common/Makefile | 7 +++ arch/x86

[U-Boot] [PATCH v2 13/51] x86: Move common CPU code to its own place

2016-03-11 Thread Simon Glass
Some of the Intel CPU code is common to several Intel CPUs. Move it into a common location along with required declarations. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: - Use capitals for header guard arch/x86/cpu/intel_common/Makefile| 1 + arch/x86/cpu/inte

[U-Boot] [PATCH v2 10/51] x86: Create a common header for Intel register access

2016-03-11 Thread Simon Glass
There are several blocks of registers that are accessed from all over the code on Intel CPUs. These don't currently have their own driver and it is not clear whether having a driver makes sense. An example is the Memory Controller Hub (MCH). We map it to a known location on some Intel chips (mostl

[U-Boot] [PATCH v2 11/51] x86: Add the root-complex block to common intel registers

2016-03-11 Thread Simon Glass
This is similar to MCH in that it is used in various drivers. Add it to the common header. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/cpu/ivybridge/bd82x6x.c | 1 + arch/x86/cpu/ivybridge/lpc.c | 6 -- arch/x86/include/asm/arch-ivybridge/pch.h | 5 ---

[U-Boot] [PATCH v2 06/51] x86: Allow use of serial soon after relocation

2016-03-11 Thread Simon Glass
At present on x86 machines with use cache-as-RAM, the memory goes away just before board_init_r() is called. This means that serial drivers are no-longer unavailable, until initr_dm() it called, etc. Any attempt to use printf() within this period will cause a hang. To fix this, mark the serial de

[U-Boot] [PATCH v2 22/51] x86: Allow I/O functions to use pointers

2016-03-11 Thread Simon Glass
It is common with memory-mapped I/O to use the address of a structure member to access memory, as in: struct some_regs { u32 ctrl; u32 data; } struct some_regs *regs = (struct some_regs *)BASE_ADDRESS; writel(1, ®->ctrl); writel(2, ®->data); This does not currently wo

[U-Boot] [PATCH v2 07/51] x86: cpu: Add functions to return the family and stepping

2016-03-11 Thread Simon Glass
These two identifiers can be useful for drivers which need to adjust their behaviour depending on the CPU family or stepping (revision). Signed-off-by: Simon Glass --- Changes in v2: - Use gd->arch.x86_mask to get the stepping value arch/x86/cpu/cpu.c | 10 ++ arch/x86/include/

[U-Boot] [PATCH v2 05/51] input: i8042: Make sure the keyboard is enabled

2016-03-11 Thread Simon Glass
Add one more step into the init sequence. This fixes the keyboard on samus, which otherwise does not work. Signed-off-by: Simon Glass --- Changes in v2: - Use a #define for the output flush command - Adjust the code order slightly drivers/input/i8042.c | 4 include/i8042.h | 1 + 2

[U-Boot] [PATCH v2 12/51] x86: Move common LPC code to its own place

2016-03-11 Thread Simon Glass
Some of the LPC code is common to several Intel LPC devices. Move it into a common location. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: - Use capitals for header guard - Move cougarcanyon lpc_common.h include to this patch arch/x86/cpu/intel_common/Makefile|

[U-Boot] [PATCH v2 09/51] x86: Move microcode code to a common location

2016-03-11 Thread Simon Glass
This code is used on several Intel CPUs. Move it into a common location. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: - Rename microcode_intel.c to microcode.c arch/x86/cpu/intel_common/Makefile| 3 +++ arch/x86/cpu/intel_common/car.S

[U-Boot] [PATCH v2 04/51] syscon: Avoid returning a device on failure

2016-03-11 Thread Simon Glass
If the device cannot be probed, syscon_get_by_driver_data() will still return a useful value in its devp parameter. Ensure that it returns NULL instead. Signed-off-by: Simon Glass --- Changes in v2: None drivers/core/syscon-uclass.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/c

[U-Boot] [PATCH v2 03/51] dhry: Correct dhrystone calculation for fast machines

2016-03-11 Thread Simon Glass
At present samus reports about 5600 DMIPS. With the default iteration count this is OK, but if 10 million runs are performed it overflows. Fix it. Signed-off-by: Simon Glass --- Changes in v2: None lib/dhry/cmd_dhry.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/

[U-Boot] [PATCH v2 02/51] arm: Add a 64-bit division routine to the private library

2016-03-11 Thread Simon Glass
This is missing, with causes lldiv() to fail on boards with use the private libgcc. Add the missing routine. Code is available for using the CLZ instruction but it is not enabled at present. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/lib/Makefile| 3 +- arch/arm/lib/_ul

[U-Boot] [PATCH v2 01/51] dm: timer: Correct timer init ordering after relocation

2016-03-11 Thread Simon Glass
Commit 1057e6c broke use of the timer with driver model. If the timer is used before relocation, then it becomes broken after relocation. This prevents some x86 boards from booting. Fix it. Fixes: 1057e6c (timer: Set up the real timer after driver model is available) Signed-off-by: Simon Glass -

Re: [U-Boot] [PATCH 63/69] x86: broadwell: Add video support

2016-03-11 Thread Simon Glass
Hi Bin, On 11 March 2016 at 01:54, Bin Meng wrote: > Hi Simon, > > On Mon, Mar 7, 2016 at 10:28 AM, Simon Glass wrote: >> Add a video driver for Intel's broadwell integrated graphics controller. >> This uses a binary blob for most init, with the driver just performing a few >> basic tasks. > > W

Re: [U-Boot] [PATCH 61/69] x86: broadwell: Add support for high-speed I/O lane with ME

2016-03-11 Thread Simon Glass
Hi Bin, On 11 March 2016 at 01:34, Bin Meng wrote: > Hi Simon, > > On Mon, Mar 7, 2016 at 10:28 AM, Simon Glass wrote: >> Provide a way to determine the HSIO (high-speed I/O) version supported by >> the Intel Management Engine (ME) implementation on the platform. >> >> Signed-off-by: Simon Glass

Re: [U-Boot] [PATCH 62/69] x86: Support a chained-boot development flow

2016-03-11 Thread Simon Glass
Hi Bin, On 11 March 2016 at 01:46, Bin Meng wrote: > Hi Simon, > > On Mon, Mar 7, 2016 at 10:28 AM, Simon Glass wrote: >> Sometimes it is useful to jump into U-Boot directly from coreboot or UEFI >> without any 16-bit init. This can help during development by allowing U-Boot >> to avoid doing al

[U-Boot] [PATCH v2 00/51] x86: Add support for samus

2016-03-11 Thread Simon Glass
This series adds support for samus, the Chromebook Pixel 2015. Since it is only the second board added that does not use an FSP, there is quite a bit of refactoring involved to avoid code duplication. Samus uses roughly the same binary blobs as link, except now there is one more called the referen

Re: [U-Boot] [PATCH 59/69] x86: broadwell: Add support for SDRAM setup

2016-03-11 Thread Simon Glass
Hi Bin, On 11 March 2016 at 01:30, Bin Meng wrote: > Hi Simon, > > On Mon, Mar 7, 2016 at 10:28 AM, Simon Glass wrote: >> Broadwell uses a binary blob called the memory reference code (MRC) to start >> up its SDRAM. This is similar to ivybridge so we can mostly use common code >> for running thi

Re: [U-Boot] [PATCH 48/69] x86: Add support for running Intel reference code

2016-03-11 Thread Simon Glass
Hi Bin, On 11 March 2016 at 00:29, Bin Meng wrote: > Hi Simon, > > On Mon, Mar 7, 2016 at 10:28 AM, Simon Glass wrote: >> Intel has invented yet another binary blob which firmware is required to >> run. This is run after SDRAM is ready. It is linked to load at a particular >> address, typically

Re: [U-Boot] [PATCH 24/69] x86: Move Intel Management Engine code to a common place

2016-03-11 Thread Simon Glass
Hi Bin, On 10 March 2016 at 22:27, Bin Meng wrote: > Hi Simon, > > On Mon, Mar 7, 2016 at 10:28 AM, Simon Glass wrote: >> Some of the Intel ME code is common to several Intel CPUs. Move it into a >> common location. Add a header file for report_platform.c also. >> >> Signed-off-by: Simon Glass

Re: [U-Boot] [PATCH 13/69] x86: Allow use of serial soon after relocation

2016-03-11 Thread Simon Glass
Hi Bin, On 10 March 2016 at 21:31, Bin Meng wrote: > Hi Simon, > > On Mon, Mar 7, 2016 at 10:27 AM, Simon Glass wrote: >> At present on x86 machines with use cache-as-RAM, the memory goes away just >> before board_init_r() is called. This means that serial drivers are >> no-longer unavailable, u

Re: [U-Boot] [PATCH 01/69] dm: timer: Correct timer init ordering after relocation

2016-03-11 Thread Simon Glass
Hi Bin, On 10 March 2016 at 20:25, Bin Meng wrote: > Hi Simon, > > On Mon, Mar 7, 2016 at 10:27 AM, Simon Glass wrote: >> Commit 1057e6c broke use of the timer with driver model. If the timer is used >> before relocation, then it becomes broken after relocation. This prevents >> some x86 boards

Re: [U-Boot] [PATCH 04/69] syscon: Avoid returning a device on failure

2016-03-11 Thread Simon Glass
Hi Bin, On 10 March 2016 at 20:28, Bin Meng wrote: > Hi Simon, > > On Mon, Mar 7, 2016 at 10:27 AM, Simon Glass wrote: >> If the device cannot be probed, syscon_get_by_driver_data() will still >> return a useful value in its devp parameter. Ensure that it returns NULL >> instead. > > Shouldn't t

Re: [U-Boot] [PATCH 15/69] x86: cpu: Add functions to return the family and stepping

2016-03-11 Thread Simon Glass
Hi Bin, On 10 March 2016 at 21:52, Bin Meng wrote: > Hi Simon, > > On Mon, Mar 7, 2016 at 10:27 AM, Simon Glass wrote: >> These two identifiers can be useful for drivers which need to adjust their >> behaviour depending on the CPU family or stepping (revision). >> >> Signed-off-by: Simon Glass

Re: [U-Boot] [PATCH 2/2] fsl: esdhc: support driver model

2016-03-11 Thread Peng Fan
Hi Simon, On Fri, Mar 11, 2016 at 05:33:05PM -0700, Simon Glass wrote: >Hi Peng, > >On 10 March 2016 at 01:57, Peng Fan wrote: >> Support Driver Model for fsl esdhc driver. >> >> In order to minimize the change, reuse the fsl_esdhc_initialize function. >> This new way is to fill an fsl_esdhc_cfg

Re: [U-Boot] [PATCH 00/69] x86: Add support for samus

2016-03-11 Thread Simon Glass
Hi Bin, On 11 March 2016 at 00:48, Bin Meng wrote: > > Hi Simon, > > On Mon, Mar 7, 2016 at 10:27 AM, Simon Glass wrote: > > This series adds support for samus, the Chromebook Pixel 2015. Since it is > > only the second board added that does not use an FSP, there is quite a bit > > of refactorin

[U-Boot] ums command using dwc3

2016-03-11 Thread Poonam Aggrwal
Hello Marek Vasut I am working on u-boot 2016.01. Using a platform with DWC3 USB 3.0 controller. My objective is to configure the USB in device mode and it gets exposed to an X86 as a USB mass storage. The memory exposed would be a SATA disk. Is it possible to do it via ums command? I gave it

Re: [U-Boot] [PATCH v2 17/18] board: Add Qualcomm Dragonboard 410C support

2016-03-11 Thread Daniel Glöckner
On Sun, Feb 07, 2016 at 09:57:37PM +0100, Mateusz Kulikowski wrote: > U-Boot boots chained with fastboot in 64-bit mode. > --- /dev/null > +++ b/board/qualcomm/dragonboard410c/head.S > @@ -0,0 +1,28 @@ > +/* > + * Little-Kernel/Fastboot header for proper chain-loading > + * > + * (C) Copyright 201

[U-Boot] [RFC PATCH v2 4/4] arm: bcm: configure NAND device and environment

2016-03-11 Thread Steve Rae
Configure the NAND device, define partition sizes, and create the environment space for Cygnus and NSP boards. Signed-off-by: Steve Rae --- Changes in v2: None arch/arm/include/asm/arch-bcmcygnus/configs.h | 33 +++ arch/arm/include/asm/arch-bcmnsp/configs.h| 33 +++

[U-Boot] [RFC PATCH v2 2/4] mtd: fix compiler warnings

2016-03-11 Thread Steve Rae
- add missing declaration - update debug output format specifiers Signed-off-by: Steve Rae --- the checkpatch warning: warning: cmd/mtdparts.c,1494: quoted string split across lines is for the existing code; it is not introduced with this change... Changes in v2: None cmd/mtdparts.c

[U-Boot] [RFC PATCH v2 1/4] arm: iproc: add NAND driver

2016-03-11 Thread Steve Rae
From: Jiandong Zheng Add support for the iproc NAND, and enable on Cygnus and NSP boards. Signed-off-by: Jiandong Zheng Signed-off-by: Steve Rae --- There was a previous attempt to implement this "iproc NAND" (see: http://patchwork.ozlabs.org/patch/505399), however, due to the amount of change

[U-Boot] [RFC PATCH v2 3/4] arm: bcm: enable MTD support

2016-03-11 Thread Steve Rae
Enable MTD support on Cygnus and NSP boards. Signed-off-by: Steve Rae --- Changes in v2: None arch/arm/include/asm/arch-bcmcygnus/configs.h | 6 ++ arch/arm/include/asm/arch-bcmnsp/configs.h| 6 ++ 2 files changed, 12 insertions(+) diff --git a/arch/arm/include/asm/arch-bcmcygnus/

Re: [U-Boot] [PATCH 2/2] fsl: esdhc: support driver model

2016-03-11 Thread Simon Glass
Hi Peng, On 10 March 2016 at 01:57, Peng Fan wrote: > Support Driver Model for fsl esdhc driver. > > In order to minimize the change, reuse the fsl_esdhc_initialize function. > This new way is to fill an fsl_esdhc_cfg struture and pass it > to fsl_esdhc_initialize, just like the code in different

Re: [U-Boot] buildman: arm: undefined reference to `__aeabi_ldivmod'

2016-03-11 Thread Simon Glass
+Stephen Hi Jagan, On 11 March 2016 at 01:00, Jagan Teki wrote: > > Hi, > > Did anyone encounter this issue? please let me know for any inputs. > >arm: + venice2 > +drivers/mtd/spi-nor/built-in.o: In function `spi_nor_write': > +build/../drivers/mtd/spi-nor/spi-nor.c:585: undefined re

Re: [U-Boot] [PATCH v4] x86: baytrail: Configure FSP UPD from device tree

2016-03-11 Thread Simon Glass
Hi Stefan, On 11 March 2016 at 09:28, Stefan Roese wrote: > Hi Simon, > > > On 09.03.2016 18:11, Simon Glass wrote: >> >> On 9 March 2016 at 09:15, Stefan Roese wrote: >>> >>> >>> Hi Simon, >>> >>> On 09.03.2016 00:33, Simon Glass wrote: >>> >>> >>> >>> I'm currently struggling with the USB

Re: [U-Boot] [PATCH v2 07/12] net: gmac_rk3288: Add RK3288 GMAC driver

2016-03-11 Thread Sjoerd Simons
On Mon, 2016-02-29 at 19:03 -0700, Simon Glass wrote: > Hi Sjoerd, > > On 28 February 2016 at 14:25, Sjoerd Simons > wrote: > > > >  > > diff --git a/drivers/net/gmac_rk3288.c b/drivers/net/gmac_rk3288.c > > new file mode 100644 > > index 000..5400b2c > > --- /dev/null > > +++ b/drivers/net/

[U-Boot] [PATCH v2] ARM: DRA7xx: Enable NFS boot command

2016-03-11 Thread Andrew F. Davis
NFS loading works on DRA7 variants, remove the undefinition. Signed-off-by: Andrew F. Davis Reviewed-by: Tom Rini --- Changes from v1: - Remove undefinition from dra74 and am57xx while we are here configs/am57xx_evm_defconfig | 1 - configs/dra72_evm_defconfig | 1 - config

[U-Boot] [PATCH v2] ti_armv7_common: env: Add NFS loading support to default enviroment

2016-03-11 Thread Andrew F. Davis
NFS loading is similar to net loading except initial files are loaded over NFS instead of TFTP, this removes the need for multiple different protocol servers running on the host and allows the use of a single network file system containing boot related files in their usual in-filesystem directory.

Re: [U-Boot] [PATCH] ti_armv7_common: env: Add NFS loading support to default enviroment

2016-03-11 Thread Nishanth Menon
On 03/11/2016 02:29 PM, Andrew F. Davis wrote: > On 03/11/2016 09:38 AM, Andrew F. Davis wrote: >> NFS loading is similar to net loading except initial files are loaded >> over NFS instead of TFTP, this removes the need for multiple different >> protocol servers running on the host and allows the u

Re: [U-Boot] [PATCH v4 1/4] drivers:usb:common:fsl-dt-fixup: Move device-tree fixup framework to common file

2016-03-11 Thread Marek Vasut
On 03/11/2016 07:26 AM, Sriram Dash wrote: > Move usb device-tree fixup framework from ehci-fsl.c to common place so > that it can be used by other drivers as well (xhci-fsl.c). > > Signed-off-by: Ramneek Mehresh > Signed-off-by: Sriram Dash > --- > Changes in v4: > - Retain copywrite info >

Re: [U-Boot] [PATCH v4 4/4] drivers:usb:common:fsl-dt-fixup: fix fdt_usb_get_node_type() to return error code

2016-03-11 Thread Marek Vasut
On 03/11/2016 07:26 AM, Sriram Dash wrote: > fdt_usb_get_node_type() to return error code instead of pointer. This sentence makes no sense. > Signed-off-by: Sriram Dash > Signed-off-by: Rajesh Bhagat > --- > drivers/usb/common/fsl-dt-fixup.c | 25 ++--- > 1 file changed, 14

Re: [U-Boot] [PATCH v4 2/4] drivers:usb:common:fsl-dt-fixup: Remove code duplication for fdt_usb_get_node_type

2016-03-11 Thread Marek Vasut
On 03/11/2016 07:26 AM, Sriram Dash wrote: > Call fdt_usb_get_node_type() from fdt_fixup_usb_mode_phy_type() to > avoid code duplication. > > Signed-off-by: Sriram Dash > Signed-off-by: Rajesh Bhagat > --- > Changes in v4: > - Make minimal modification to code > Changes in v3: > - Move the d

Re: [U-Boot] [PATCH v4 3/4] drivers:usb:common:fsl-dt-fixup: Add device-tree fixup support for xhci controller

2016-03-11 Thread Marek Vasut
On 03/11/2016 07:26 AM, Sriram Dash wrote: > Enables usb device-tree fixup code to incorporate xhci controller > > Signed-off-by: Ramneek Mehresh > Signed-off-by: Sriram Dash > --- > Changes in v4: > - Use a terminating entry in the array for getting node type for controller > Changes in v3: >

Re: [U-Boot] [PATCH] ti_armv7_common: env: Add NFS loading support to default enviroment

2016-03-11 Thread Andrew F. Davis
On 03/11/2016 09:38 AM, Andrew F. Davis wrote: > NFS loading is similar to net loading except initial files are loaded > over NFS instead of TFTP, this removes the need for multiple different > protocol servers running on the host and allows the use of a single > network file system containing boot

Re: [U-Boot] [PATCH 1/4] arm: iproc: add NAND driver

2016-03-11 Thread Steve Rae
On Fri, Mar 11, 2016 at 12:18 PM, Scott Wood wrote: > On Fri, 2016-03-11 at 12:13 -0800, Steve Rae wrote: >> On Fri, Mar 11, 2016 at 11:55 AM, Scott Wood wrote: >> > On Fri, 2016-03-11 at 11:47 -0800, Steve Rae wrote: >> > > On Fri, Mar 11, 2016 at 11:29 AM, Scott Wood wrote: >> > > > On Thu, 20

Re: [U-Boot] [PATCH 1/4] arm: iproc: add NAND driver

2016-03-11 Thread Scott Wood
On Fri, 2016-03-11 at 12:13 -0800, Steve Rae wrote: > On Fri, Mar 11, 2016 at 11:55 AM, Scott Wood wrote: > > On Fri, 2016-03-11 at 11:47 -0800, Steve Rae wrote: > > > On Fri, Mar 11, 2016 at 11:29 AM, Scott Wood wrote: > > > > On Thu, 2016-03-10 at 14:26 -0800, Steve Rae wrote: > > > > > From: J

Re: [U-Boot] [PATCH 1/4] arm: iproc: add NAND driver

2016-03-11 Thread Steve Rae
On Fri, Mar 11, 2016 at 11:55 AM, Scott Wood wrote: > On Fri, 2016-03-11 at 11:47 -0800, Steve Rae wrote: >> On Fri, Mar 11, 2016 at 11:29 AM, Scott Wood wrote: >> > On Thu, 2016-03-10 at 14:26 -0800, Steve Rae wrote: >> > > From: Jiandong Zheng >> > > >> > > Add support for the iproc NAND, and

Re: [U-Boot] [PATCH] sf: Correct data types in stm_is_locked_sr()

2016-03-11 Thread Albert ARIBAUD
Hello Jagan, On Sat, 12 Mar 2016 00:41:25 +0530, Jagan Teki wrote: > Hi Albert, > > On 12 March 2016 at 00:17, Albert ARIBAUD wrote: > > Hello Jagan, > > > > On Fri, 11 Mar 2016 12:09:37 +0530, Jagan Teki > > wrote: > >> On 11 March 2016 at 07:50, Marek Vasut wrote: > >> > The stm_is_locked_s

Re: [U-Boot] [PATCH 1/4] arm: iproc: add NAND driver

2016-03-11 Thread Scott Wood
On Thu, 2016-03-10 at 14:26 -0800, Steve Rae wrote: > From: Jiandong Zheng > > Add support for the iproc NAND, and enable on Cygnus and NSP boards. > > Signed-off-by: Jiandong Zheng > Signed-off-by: Steve Rae > --- > There was a previous attempt to implement this "iproc NAND" > (see: http://pa

Re: [U-Boot] [PATCH] sf: Correct data types in stm_is_locked_sr()

2016-03-11 Thread Jagan Teki
Hi Albert, On 12 March 2016 at 00:17, Albert ARIBAUD wrote: > Hello Jagan, > > On Fri, 11 Mar 2016 12:09:37 +0530, Jagan Teki > wrote: >> On 11 March 2016 at 07:50, Marek Vasut wrote: >> > The stm_is_locked_sr() function is picked from Linux kernel. For reason >> > unknown, the 64bit data types

Re: [U-Boot] [PATCH] sf: Correct data types in stm_is_locked_sr()

2016-03-11 Thread Albert ARIBAUD
Hello Jagan, On Fri, 11 Mar 2016 12:09:37 +0530, Jagan Teki wrote: > On 11 March 2016 at 07:50, Marek Vasut wrote: > > The stm_is_locked_sr() function is picked from Linux kernel. For reason > > unknown, the 64bit data types used by the function and present in Linux > > were replaced with 32bit

Re: [U-Boot] [PATCH v2 0/4] usb: Reduce USB scanning time

2016-03-11 Thread Hans de Goede
Hi, On 11-03-16 18:53, Stephen Warren wrote: On 03/11/2016 07:55 AM, Stefan Roese wrote: My current x86 platform (Bay Trail, not in mainline yet) has a quite complex USB infrastructure with many USB hubs. Here the USB scan takes an incredible huge amount of time: starting USB... USB0: USB E

Re: [U-Boot] [PATCH] sf: Correct data types in stm_is_locked_sr()

2016-03-11 Thread Marek Vasut
On 03/11/2016 07:44 PM, Jagan Teki wrote: > On 12 March 2016 at 00:03, Marek Vasut wrote: >> On 03/11/2016 07:07 PM, Jagan Teki wrote: >>> On 11 March 2016 at 23:32, Marek Vasut wrote: On 03/11/2016 06:34 PM, Jagan Teki wrote: > On 11 March 2016 at 17:59, Marek Vasut wrote: >> On 03

Re: [U-Boot] [PATCH] sf: Correct data types in stm_is_locked_sr()

2016-03-11 Thread Jagan Teki
On 12 March 2016 at 00:03, Marek Vasut wrote: > On 03/11/2016 07:07 PM, Jagan Teki wrote: >> On 11 March 2016 at 23:32, Marek Vasut wrote: >>> On 03/11/2016 06:34 PM, Jagan Teki wrote: On 11 March 2016 at 17:59, Marek Vasut wrote: > On 03/11/2016 07:39 AM, Jagan Teki wrote: >> On 11

Re: [U-Boot] [PATCH] sf: Correct data types in stm_is_locked_sr()

2016-03-11 Thread Marek Vasut
On 03/11/2016 07:07 PM, Jagan Teki wrote: > On 11 March 2016 at 23:32, Marek Vasut wrote: >> On 03/11/2016 06:34 PM, Jagan Teki wrote: >>> On 11 March 2016 at 17:59, Marek Vasut wrote: On 03/11/2016 07:39 AM, Jagan Teki wrote: > On 11 March 2016 at 07:50, Marek Vasut wrote: >> The s

Re: [U-Boot] [PATCH 1/4] arm: iproc: add NAND driver

2016-03-11 Thread Steve Rae
Thanks for this clarification... On Fri, Mar 11, 2016 at 10:18 AM, Tom Rini wrote: > On Fri, Mar 11, 2016 at 10:07:46AM -0800, Steve Rae wrote: > >> Is it expected the _every_ CONFIG_* and CONFIG_SYS_* will be moved to >> Kconfig? >> What about #defines that will absolutely never used by anyone

Re: [U-Boot] [PATCH 1/4] arm: iproc: add NAND driver

2016-03-11 Thread Tom Rini
On Fri, Mar 11, 2016 at 10:07:46AM -0800, Steve Rae wrote: > Is it expected the _every_ CONFIG_* and CONFIG_SYS_* will be moved to Kconfig? > What about #defines that will absolutely never used by anyone else? > for example, I (may) have a code fragment that distinguishes between > "CONFIG_CYGNUS"

Re: [U-Boot] [PATCH] sf: Correct data types in stm_is_locked_sr()

2016-03-11 Thread Jagan Teki
On 11 March 2016 at 23:32, Marek Vasut wrote: > On 03/11/2016 06:34 PM, Jagan Teki wrote: >> On 11 March 2016 at 17:59, Marek Vasut wrote: >>> On 03/11/2016 07:39 AM, Jagan Teki wrote: On 11 March 2016 at 07:50, Marek Vasut wrote: > The stm_is_locked_sr() function is picked from Linux k

Re: [U-Boot] [PATCH 1/4] arm: iproc: add NAND driver

2016-03-11 Thread Steve Rae
Is it expected the _every_ CONFIG_* and CONFIG_SYS_* will be moved to Kconfig? What about #defines that will absolutely never used by anyone else? for example, I (may) have a code fragment that distinguishes between "CONFIG_CYGNUS" and "CONFIG_NSPLUS"... Would these need to be Kconfig? or would tha

Re: [U-Boot] [PATCH] sf: Correct data types in stm_is_locked_sr()

2016-03-11 Thread Marek Vasut
On 03/11/2016 06:34 PM, Jagan Teki wrote: > On 11 March 2016 at 17:59, Marek Vasut wrote: >> On 03/11/2016 07:39 AM, Jagan Teki wrote: >>> On 11 March 2016 at 07:50, Marek Vasut wrote: The stm_is_locked_sr() function is picked from Linux kernel. For reason unknown, the 64bit data types

  1   2   >