[U-Boot] [PATCH 5/5] dra7xx: Add dra72_evm_defconfig using CONFIG_DM

2015-07-31 Thread Tom Rini
- Import various DT files for DRA7 / DR72x / dra72-evm from Linux Kernel v4.1 - Add config file for this board, enable DM and DM_GPIO Cc: Simon Glass s...@chromium.org Signed-off-by: Tom Rini tr...@konsulko.com --- For some reason I can't yet figure out, enabling CONFIG_DM_SERIAL seems to be

Re: [U-Boot] [PATCH] Makefile: Use correct timezone for U_BOOT_TZ

2015-07-31 Thread Paul Kocialkowski
Le vendredi 31 juillet 2015 à 22:04 +1200, Chris Packham a écrit : When building with SOURCE_DATE_EPOCH the timezone is in UTC. When building normally the timezone is taken from the build machine's locale setting. Thanks a lot for introducing this, I thought it might disturb a few people.

Re: [U-Boot] [PATCH resend V2 1/3] mtd: nand: mxs support oobsize bigger than 512

2015-07-31 Thread Peng Fan
On Fri, Jul 31, 2015 at 12:07:50PM -0500, Scott Wood wrote: On Tue, 2015-07-21 at 16:15 +0800, Peng Fan wrote: If ecc chunk data size is 512 and oobsize is bigger than 512, there is a chance that block_mark_bit_offset conflicts with bch ecc area. The following graph is modified from kernel

Re: [U-Boot] [PATCH 06/13][v4] imx: system counter driver for imx7d and mx6ul

2015-07-31 Thread Nikolay Dimitrov
Hi Adrian, On 07/31/2015 01:35 AM, Adrian Alonso wrote: * The system counter driver for imx7d abd mx6ul, move this timer driver to imx-common and rename it as syscounter.c For mx6ul and mx7, configurations are used for choose the GPT timer or system counter timer (default). GPT

Re: [U-Boot] [PATCH v3 2/4] sunxi: nand: Add basic sunxi NAND driver for SPL with DMA support

2015-07-31 Thread Boris Brezillon
Hi Michal, On Fri, 31 Jul 2015 16:25:00 +0200 Michal Suchanek hramr...@gmail.com wrote: On 31 July 2015 at 11:24, Boris Brezillon boris.brezil...@free-electrons.com wrote: Hi Hans, On Fri, 31 Jul 2015 10:36:43 +0200 Hans de Goede hdego...@redhat.com wrote: Hi, On 31-07-15

Re: [U-Boot] driver model is not smp safe

2015-07-31 Thread Tom Rini
On Thu, Jul 30, 2015 at 12:12:03PM +0800, Bin Meng wrote: Hi Simon, When adding x86 multi-cpu initialization on a board with 4 cores, I found: = cpu list 0: cpu@0 Genuine Intel(R) CPU @ 1.58GHz 1: cpu@1 Genuine Intel(R) CPU @ 1.58GHz 2:

Re: [U-Boot] driver model is not smp safe

2015-07-31 Thread Bin Meng
Hi Andrew, On Fri, Jul 31, 2015 at 8:30 PM, Andrew Bradford and...@bradfordembedded.com wrote: Hi Bin, On 07/30 12:12, Bin Meng wrote: Hi Simon, When adding x86 multi-cpu initialization on a board with 4 cores, I found: = cpu list 0: cpu@0 Genuine Intel(R) CPU @

Re: [U-Boot] [PATCH V2 3/3] mtd: nand: mxs invalidate dcache before DMA read

2015-07-31 Thread Tim Harvey
On Tue, Jul 21, 2015 at 1:15 AM, Peng Fan peng@freescale.com wrote: Follow linux dma flow: Before DMA read, be sure to invalidate the cache over the address range of DMA buffer to prevent cache coherency problems. After DMA read, invalidate dcache again. Signed-off-by: Peng Fan

Re: [U-Boot] [PATCH] arm: mx6: tqma6: fix build for WRU-IV baseboard

2015-07-31 Thread Stefan Roese
On 26.07.2015 14:28, Stefano Babic wrote: Fix: undefined reference to `spi_flash_free' undefined reference to `spi_flash_probe' Signed-off-by: Stefano Babic sba...@denx.de CC: Stefan Roese s...@denx.de Cc: Markus Niebel markus.nie...@tq-group.com Thanks Stefano: Acked-by: Stefan Roese

Re: [U-Boot] driver model is not smp safe

2015-07-31 Thread Simon Glass
Hi, On 31 July 2015 at 07:42, Bin Meng bmeng...@gmail.com wrote: Hi Andrew, On Fri, Jul 31, 2015 at 8:30 PM, Andrew Bradford and...@bradfordembedded.com wrote: Hi Bin, On 07/30 12:12, Bin Meng wrote: Hi Simon, When adding x86 multi-cpu initialization on a board with 4 cores, I found:

Re: [U-Boot] [PATCH v3 2/4] sunxi: nand: Add basic sunxi NAND driver for SPL with DMA support

2015-07-31 Thread Michal Suchanek
On 31 July 2015 at 11:24, Boris Brezillon boris.brezil...@free-electrons.com wrote: Hi Hans, On Fri, 31 Jul 2015 10:36:43 +0200 Hans de Goede hdego...@redhat.com wrote: Hi, On 31-07-15 02:47, Scott Wood wrote: On Thu, 2015-07-23 at 14:33 +0200, Piotr Zierhoffer wrote: +int

Re: [U-Boot] [PATCH] Makefile: Use correct timezone for U_BOOT_TZ

2015-07-31 Thread Bin Meng
On Fri, Jul 31, 2015 at 6:04 PM, Chris Packham judge.pack...@gmail.com wrote: When building with SOURCE_DATE_EPOCH the timezone is in UTC. When building normally the timezone is taken from the build machine's locale setting. Fixes: f3f431a71272 (Reproducible U-Boot build support, using

[U-Boot] Please pull u-boot-x86

2015-07-31 Thread Simon Glass
Hi Tom, A fix for a nasty problem where patman runs twice! The following changes since commit cc35734358540a1bbaf042fdf9f4cb2de17389ed: Merge branch 'master' of git://git.denx.de/u-boot-tegra (2015-07-29 18:58:39 -0400) are available in the git repository at:

Re: [U-Boot] [PATCH v3 2/4] sunxi: nand: Add basic sunxi NAND driver for SPL with DMA support

2015-07-31 Thread Hans de Goede
Hi, On 31-07-15 16:25, Michal Suchanek wrote: On 31 July 2015 at 11:24, Boris Brezillon boris.brezil...@free-electrons.com wrote: Hi Hans, On Fri, 31 Jul 2015 10:36:43 +0200 Hans de Goede hdego...@redhat.com wrote: Hi, On 31-07-15 02:47, Scott Wood wrote: On Thu, 2015-07-23 at 14:33

Re: [U-Boot] driver model is not smp safe

2015-07-31 Thread Andrew Bradford
Hi Bin, On 07/30 12:12, Bin Meng wrote: Hi Simon, When adding x86 multi-cpu initialization on a board with 4 cores, I found: = cpu list 0: cpu@0 Genuine Intel(R) CPU @ 1.58GHz 1: cpu@1 Genuine Intel(R) CPU @ 1.58GHz 2: cpu@2

Re: [U-Boot] U-boot mini-summit @ ELCE 2015, Dublin, date ?

2015-07-31 Thread Wolfgang Denk
Dear Hans, In message 55bb35d8.6010...@redhat.com you wrote: Sorry for the late reply. I was not sure how far along you were with organizing things, so I find the reply time pretty quick actually, thanks for that. Heh. You know, all of this is kind of event-driven ;-) The U-Boot

Re: [U-Boot] [PATCH v3 2/4] sunxi: nand: Add basic sunxi NAND driver for SPL with DMA support

2015-07-31 Thread Michal Suchanek
On 31 July 2015 at 16:41, Boris Brezillon boris.brezil...@free-electrons.com wrote: Hi Michal, On Fri, 31 Jul 2015 16:25:00 +0200 Michal Suchanek hramr...@gmail.com wrote: On 31 July 2015 at 11:24, Boris Brezillon boris.brezil...@free-electrons.com wrote: Hi Hans, On Fri, 31 Jul 2015

[U-Boot] [PATCH v2 02/47] dm: core: Check for empty list in uclass_find_device()

2015-07-31 Thread Simon Glass
This function needs to check the list has entries before traversing it. Fix this bug. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Correct the return code to avoid a test failure drivers/core/uclass.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[U-Boot] [PATCH v2 05/47] Add a way to skip relocation

2015-07-31 Thread Simon Glass
When running U-Boot as an EFI application we cannot relocate since we do not have relocation information. U-Boot has already been relocated to a suitable address. Add a global_data flag to control skipping relocation. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None

[U-Boot] [PATCH v2 17/47] pci: Fix up code for CONFIG_PCI_ENUM_ONLY

2015-07-31 Thread Simon Glass
This option is not used by any board but appears to still be useful, at least for testing. With recent commits it does not build, so fix it. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None drivers/pci/pci_auto.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)

[U-Boot] [PATCH v2 21/47] efi: Display the correct initcall pre-relocation values

2015-07-31 Thread Simon Glass
With EFI the start address of U-Boot is specified differently. We could consider just setting GD_FLG_RELOC and then setting up reloc_off. But that flag has other implementations and we are not able to use U-Boot relocation which this flag implies. Instead, just add a special case for EFI.

[U-Boot] [PATCH v2 22/47] efi: Add a serial driver

2015-07-31 Thread Simon Glass
Add a serial driver which makes use of EFI's console in/out service. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add a comment about special handling for backspace - Add a comment as to why debug_uart_init() is empty - Drop unused DECLARE_GLOBAL_DATA_PTR - Rename

[U-Boot] [PATCH v2 16/47] pci: Use debug() instead of DEBUGF() in pci_auto.c

2015-07-31 Thread Simon Glass
This file does not need its own way of doing debug(). Clean it up to use the new way. Signed-off-by: Simon Glass s...@chromium.org Acked-by: Pavel Machek pa...@denx.de Reviewed-by: Bin Meng bmeng...@gmail.com --- Changes in v2: None drivers/pci/pci_auto.c | 48

[U-Boot] [PATCH v2 15/47] x86: Tidy up a few minor issues with interrupts

2015-07-31 Thread Simon Glass
Fix a typo, remove an unused field and make sure to use existing #define constants instead of open-coded values. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None arch/x86/cpu/interrupts.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git

Re: [U-Boot] [PATCH 18/48] efi: Add start-up library code

2015-07-31 Thread Simon Glass
Hi Bin, On 23 July 2015 at 02:09, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Wed, Jul 22, 2015 at 11:49 PM, Simon Glass s...@chromium.org wrote: When running as an EFI application, U-Boot must request memory from EFI, and provide access to the boot services U-Boot needs. Add library

Re: [U-Boot] [PATCH 23/48] x86: Support skipping relocation for EFI

2015-07-31 Thread Simon Glass
Hi Bin, On 23 July 2015 at 02:51, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Wed, Jul 22, 2015 at 11:49 PM, Simon Glass s...@chromium.org wrote: When running as an EFI application we must skip relocation. Add support for this in the x86 relocation code. Signed-off-by: Simon Glass

Re: [U-Boot] [PATCH 16/48] pci: Fix up code for CONFIG_PCI_ENUM_ONLY

2015-07-31 Thread Simon Glass
Hi Bin, On 23 July 2015 at 00:46, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Wed, Jul 22, 2015 at 11:49 PM, Simon Glass s...@chromium.org wrote: This option is not used by any board but appears to still be useful, at least for testing. With recent commits it does not build, so fix it.

Re: [U-Boot] [PATCH 05/48] Add a way to skip relocation

2015-07-31 Thread Simon Glass
Hi Bin, On 22 July 2015 at 21:41, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Wed, Jul 22, 2015 at 11:48 PM, Simon Glass s...@chromium.org wrote: When running U-Boot as an EFI application we cannot relocate since we do not have relocation information. U-Boot has already been relocated to

Re: [U-Boot] [PATCH][v2] powerpc/t4: update serdes table

2015-07-31 Thread York Sun
On 07/28/2015 08:28 PM, shh@gmail.com wrote: From: Shaohui Xie shaohui@freescale.com Serdes Lanes availability on T4160 and T4080 are same, which serdes 2 3 support 8 Lanes, but serdes 1 4 support only 4 Lanes E/F/G/H, Lanes A/B/C/D are not available, updated the serdes table

[U-Boot] Please pull u-boot-mpc85xx master

2015-07-31 Thread York Sun
Tom, The following changes since commit 26473945ad6667183296e7edee2a65edf31bb6f7: Merge branch 'master' of http://git.denx.de/u-boot-sunxi (2015-07-25 09:04:18 -0400) are available in the git repository at: git://git.denx.de/u-boot-mpc85xx.git master for you to fetch changes up to

Re: [U-Boot] [PATCH resend V2 1/3] mtd: nand: mxs support oobsize bigger than 512

2015-07-31 Thread Tim Harvey
On Tue, Jul 21, 2015 at 1:15 AM, Peng Fan peng@freescale.com wrote: If ecc chunk data size is 512 and oobsize is bigger than 512, there is a chance that block_mark_bit_offset conflicts with bch ecc area. The following graph is modified from kernel gpmi-nand.c driver with each data block

Re: [U-Boot] [PATCH V2 3/3] mtd: nand: mxs invalidate dcache before DMA read

2015-07-31 Thread Marek Vasut
On Friday, July 31, 2015 at 04:49:50 PM, Tim Harvey wrote: On Tue, Jul 21, 2015 at 1:15 AM, Peng Fan peng@freescale.com wrote: Follow linux dma flow: Before DMA read, be sure to invalidate the cache over the address range of DMA buffer to prevent cache coherency problems. After DMA

[U-Boot] [PATCH v2 13/47] x86: Tidy up the 64-bit calling code

2015-07-31 Thread Simon Glass
The GDT works but technically the length is incorrect. Fix this and add a comment. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Bin Meng bmeng...@gmail.com --- Changes in v2: None arch/x86/cpu/call64.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH v2 09/47] x86: Use CR0 constants in CPU init

2015-07-31 Thread Simon Glass
We should use these constants where possible. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Bin Meng bmeng...@gmail.com --- Changes in v2: None arch/x86/cpu/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/cpu/cpu.c b/arch/x86/cpu/cpu.c index

[U-Boot] [PATCH v2 08/47] x86: Add various minor tidy-ups to the 32-bit startup code

2015-07-31 Thread Simon Glass
Fix a typo, improve some comments and add a little more detail in some cases. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Bin Meng bmeng...@gmail.com --- Changes in v2: None arch/x86/cpu/start.S | 46 ++ 1 file changed, 26

[U-Boot] [PATCH v2 14/47] x86: Add some missing global_data declarations in files that use gd

2015-07-31 Thread Simon Glass
Some files use global_data but don't declare it. Fix this. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Bin Meng bmeng...@gmail.com --- Changes in v2: None arch/x86/cpu/mp_init.c | 2 ++ arch/x86/lib/bootm.c | 2 ++ arch/x86/lib/fsp/fsp_common.c | 2 ++

[U-Boot] [PATCH v2 10/47] Reserve the top 16 flag bits for architecture-specific use

2015-07-31 Thread Simon Glass
Add a convention that the generic global_data only occupy the bottom 16 bits of the flags word, so that there is less chance of a conflict. At present the x86 flags conflict. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add new patch to reserve the top 16 flag bits for

[U-Boot] [PATCH v2 12/47] x86: Drop unused copy_fdt_to_ram()

2015-07-31 Thread Simon Glass
This is now handled by generic U-Boot code so we do not need an x86 version. It is no-longer called, so remove it. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Bin Meng bmeng...@gmail.com --- Changes in v2: None arch/x86/include/asm/relocate.h | 1 - arch/x86/lib/relocate.c

Re: [U-Boot] [PATCH 2/3][[v7] powerpc/mpc85xx: SECURE BOOT- NAND secure boot target for P5020 and P5040

2015-07-31 Thread York Sun
On 06/15/2015 10:06 PM, Aneesh Bansal wrote: Secure Boot Target is added for NAND for P5020 and P5040. The Secure boot target has already been added for P3041 by enabling CONFIG_SYS_RAMBOOT and configuring CPC as SRAM. The targets for P5020 and P5040 are added in the same manner.

Re: [U-Boot] [PATCH 3/3][v7] powerpc/mpc85xx: SECURE BOOT-Copy Boot Script on RAM

2015-07-31 Thread York Sun
On 06/15/2015 10:06 PM, Aneesh Bansal wrote: For running Chain of Trust when doing Secure Boot from NAND, the Bootscript header and bootscript must be copied from NAND to RAM(DDR). The addresses and commands for the same have been defined. Signed-off-by: Saksham Jain saks...@freescale.com

[U-Boot] [PATCH v2 04/47] elf: Add a few definitions for 64-bit relocation

2015-07-31 Thread Simon Glass
Provide the types necessary to relocate 64-bit images. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Follow existing file conventions for type definitions include/elf.h | 26 ++ 1 file changed, 26 insertions(+) diff --git a/include/elf.h

[U-Boot] [PATCH v2 07/47] Bring in __aligned_u64 and friends to linux/types.h

2015-07-31 Thread Simon Glass
These will be used for efi.h both for U-Boot running as an EFI application and as a payload. They come from Linux 4.1. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Fix _aligned() typo include/linux/types.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff

[U-Boot] [PATCH v2 03/47] dm: serial: Correct logic in serial_find_console_or_panic()

2015-07-31 Thread Simon Glass
In a final attempt to find a console UART this function uses the first first available serial device. However the check for a valid device is inverted. This code is only executed when there is in fact no serial UART, but at present it can fail to reach the panic_str() call in this case, and start

[U-Boot] [PATCH v2 06/47] Allow objcopy to work without filling gaps with 0xff

2015-07-31 Thread Simon Glass
This is currently done for all targets, since 0xff is the default erased value for most flash devices. In some cases this is not what we want (e.g. for EFI images) so provide a command to do a vanilla objcopy. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Bin Meng bmeng...@gmail.com

[U-Boot] [PATCH v2 11/47] x86: Tidy up global_data flags

2015-07-31 Thread Simon Glass
These flags now overlap some global ones. Adjust the x86-specific flags to avoid this. Since this requires a change to the start.S code, add a way for tools to find the 32-bit cold reset entry point. Previously this was at a fixed offset. Signed-off-by: Simon Glass s...@chromium.org --- Changes

[U-Boot] [PATCH v2 20/47] efi: Avoid using non-existent text base

2015-07-31 Thread Simon Glass
From: Ben Stoltz sto...@google.com When U-Boot runs as an EFI application is does not have a definition of CONFIG_SYS_TEXT_BASE. U-Boot is a relocatable application and the relocation is done by EFI. U-Boot can be loaded at any address. This is similar to how sandbox works. Adjust the early

[U-Boot] [PATCH v2 29/47] x86: Add EFI board code

2015-07-31 Thread Simon Glass
From: Ben Stoltz sto...@google.com Add support for the efi-x86 board, which supports running U-Boot as an EFI 32-bit application. Signed-off-by: Ben Stoltz sto...@google.com Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Drop unnecessary SYS_CAR_ADDR/SIZE Kconfig options -

[U-Boot] [PATCH v2 35/47] x86: Support building the EFI stub

2015-07-31 Thread Simon Glass
Add support for building a 32/64-bit EFI stub for x86. This involves building the startup and relocation code for either i386 or x86_64. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add a comment as to why the AFLAGS_REMOVE_.. lines are needed - Move the crt and reloc files

Re: [U-Boot] [PATCH][v7] mpc85xx/T104xD4RDB: Add T104xD4RDB boards support

2015-07-31 Thread York Sun
On 06/05/2015 02:59 AM, Priyanka Jain wrote: T1040D4RDB is a Freescale reference board that hosts the T1040 SoC. T1040D4RDB is re-designed T1040RDB board with following changes : - Support of DDR4 memory - Support of 0x66 serdes protocol which can support following interfaces

[U-Boot] [PATCH v2 24/47] x86: Set up toolchain flags for running as EFI application

2015-07-31 Thread Simon Glass
From: Ben Stoltz sto...@google.com Adjust the toolchain flags to build U-Boot as a relocatable shared library, as required by EFI. Signed-off-by: Ben Stoltz sto...@google.com Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add a comment as to where LDFLAGS_EFI is used - Drop

[U-Boot] [PATCH v2 23/47] efi: Drop CONFIG_SYS_TEXT_BASE for EFI

2015-07-31 Thread Simon Glass
From: Ben Stoltz sto...@google.com When U-Boot runs as an EFI application is does not have a definition of CONFIG_SYS_TEXT_BASE. U-Boot is a relocatable application and the relocation is done by EFI. U-Boot can be loaded at any address. Ensure that this CONFIG option is not set in this case.

Re: [U-Boot] [PATCH 30/48] x86: Set up tool chain flags for running as EFI application

2015-07-31 Thread Simon Glass
Hi Bin, On 23 July 2015 at 05:07, Bin Meng bmeng...@gmail.com wrote: Hi Simon, I think this patch should come before patch#22 in which it refers to OBJCOPYFLAGS_EFI defined in this patch. More comments below. On Wed, Jul 22, 2015 at 11:49 PM, Simon Glass s...@chromium.org wrote: From: Ben

Re: [U-Boot] [PATCH 43/48] x86: Handle running as EFI payload

2015-07-31 Thread Simon Glass
Hi Bin, On 24 July 2015 at 02:58, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Wed, Jul 22, 2015 at 11:49 PM, Simon Glass s...@chromium.org wrote: When U-Boot runs as an EFI payload it needs to avoid setting up the CPU again. Also U-Boot currently does not handle interrupts for many

Re: [U-Boot] [PATCH 41/48] efi: Add functions for decoding the EFI tables

2015-07-31 Thread Simon Glass
Hi Bin, On 24 July 2015 at 02:19, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Wed, Jul 22, 2015 at 11:49 PM, Simon Glass s...@chromium.org wrote: The EFI stub can pass a table to U-Boot with information about the memory map Potentially other things will follow. Add a way to access this

Re: [U-Boot] [PATCH] powerpc: mpc85xx: Correct CONFIG_USB_MAX_CONTROLLER_COUNT for p1025

2015-07-31 Thread York Sun
On 05/20/2015 08:37 PM, Nikhil Badola wrote: Correct the value CONFIG_USB_MAX_CONTROLLER_COUNT macro to 1 for p1025 as it has one USB controller Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com --- Applied to u-boot-mpc85xx master after fixing subject. Thanks. York

Re: [U-Boot] [PATCH 37/48] x86: Add a way to call 32-bit code from 64-bit mode

2015-07-31 Thread Simon Glass
Hi Bin, On 24 July 2015 at 01:25, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Wed, Jul 22, 2015 at 11:49 PM, Simon Glass s...@chromium.org wrote: The procedure to drop from 64-bit mode to 32-bit is a bit messy. Add a function to take care of it. It requires identity-mapped pages and that

Re: [U-Boot] [PATCH 22/48] efi: Support building a u-boot.efi executable

2015-07-31 Thread Simon Glass
Hi Bin, On 23 July 2015 at 02:46, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Wed, Jul 22, 2015 at 11:49 PM, Simon Glass s...@chromium.org wrote: Add support for building U-Boot as an EFI application with a .efi suffix. This can be loaded by EFI provided that EFI has the same bit width

Re: [U-Boot] [RFC PATCH] efi: Another way to create u-boot payload for EFI

2015-07-31 Thread Simon Glass
Hi Bin, On 23 July 2015 at 09:45, Bin Meng bmeng...@gmail.com wrote: This approach is different from Simon's approach. It uses objcopy to convert u-boot-dtb.bin into an ELF object with all the binary content included in the .data section. This elinimates the need to include a special section

Re: [U-Boot] [PATCH 1/1] T102xRDB: Enable ifc nand ecc encode and decode

2015-07-31 Thread York Sun
On 05/22/2015 02:51 AM, Raghav Dogra wrote: From: Jaiprakash Singh b44...@freescale.com IFC nand ecc encode and decode mode are not correctly set in CSOR register during nand initialization.Enable ecc encode/decode in 4-bit mode Signed-off-by: Jaiprakash Singh b44...@freescale.com ---

Re: [U-Boot] [PATCH V2 2/3] mtd: nand: mxs check maximum ecc that platfrom supports

2015-07-31 Thread Tim Harvey
On Tue, Jul 21, 2015 at 1:15 AM, Peng Fan peng@freescale.com wrote: Check maximum ecc strength for each platfrom to avoid the calculated ecc exceed the limitation. Signed-off-by: Peng Fan peng@freescale.com Signed-off-by: Han Xu b45...@freescale.com Reviewed-by: Marek Vasut

[U-Boot] [PATCH v2 00/47] Add support for running U-Boot as an EFI payload/application

2015-07-31 Thread Simon Glass
This series allows U-Boot to be build as an EFI payload so that U-Boot can be started on almost any x86 platform that supports EFI. This is implemented as a stub which EFI can load plus a payload that is copied to RAM. The payload contains a normal U-Boot binary image and device tree. This allows

[U-Boot] [PATCH v2 01/47] Support removing default assembler flags

2015-07-31 Thread Simon Glass
The CFLAGS_REMOVE_file feature allows default C compiler flags to be removed for particular files. Add the same feature for assembler, using AFLAGS_REMOVE_file. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Bin Meng bmeng...@gmail.com --- Changes in v2: None scripts/Makefile.lib |

[U-Boot] [PATCH v2 32/47] x86: Add definitions for the x86-efi board and plumb it in

2015-07-31 Thread Simon Glass
From: Ben Stoltz sto...@google.com Add configuration and Kconfig changes for this board. Signed-off-by: Ben Stoltz sto...@google.com Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Remove CONFIG_SYS_EARLY_PCI_INIT and CONFIG_PCI_PNP - Remove superfluous Kconfig options -

Re: [U-Boot] [PATCH 1/4][v8] powerpc/mpc85xx: SECURE BOOT- NAND secure boot target for P3041

2015-07-31 Thread York Sun
On 07/31/2015 08:12 AM, York Sun wrote: On 07/31/2015 01:39 AM, Aneesh Bansal wrote: Secure Boot Target is added for NAND for P3041. Changes: In PowerPC, the core begins execution from address 0xFFFC. In case of secure boot, this default address maps to Boot ROM. The Boot ROM code

[U-Boot] [PATCH v2 39/47] x86: Add support for passing tables into U-Boot

2015-07-31 Thread Simon Glass
The EFI stub provides information to U-Boot in a table. This includes the memory map which is needed to decide where to relocate U-Boot. Collect this information in the early init code and store it in global_data. Fix up the BIST code at the same time since we don't have it when booting from EFI

[U-Boot] [PATCH v2 40/47] efi: Add functions for decoding the EFI tables

2015-07-31 Thread Simon Glass
The EFI stub can pass a table to U-Boot with information about the memory map Potentially other things will follow. Add a way to access this table. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Bin Meng bmeng...@gmail.com --- Changes in v2: None lib/efi/Makefile | 1 +

Re: [U-Boot] [PATCH v2] board/p2020rdb: fix the FDT_ERR_NOTFOUND issue

2015-07-31 Thread York Sun
On 04/24/2015 12:49 AM, ying.zh...@freescale.com wrote: From: Ying Zhang b40...@freescale.com Because the function ft_board_setup() delete the USB2 device node, it leads to can't find the device node and hung up. In fact only P1020RDB needs to delete the USB2 node, this patch fixes this

[U-Boot] [PATCH v2 43/47] x86: Add helper code for running from EFI

2015-07-31 Thread Simon Glass
When U-Boot is running from EFI some of the x86 init is replaced with EFI-specific init. For example, since DRAM has already been set up, we only need to find it, not init it. Add these functions so that boards can easily allow booting from EFI if required. Signed-off-by: Simon Glass

[U-Boot] [PATCH v2 36/47] x86: Add an enum for some commonly-used GDT bits

2015-07-31 Thread Simon Glass
Rather than add these as open-coded values, create an enum with the commonly used flags. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add descriptor bits for the base and limit - Rename GDT_4GB to GDT_4KB arch/x86/include/asm/cpu.h | 18 ++ 1 file changed,

[U-Boot] [PATCH v2 37/47] x86: Add a way to call 32-bit code from 64-bit mode

2015-07-31 Thread Simon Glass
The procedure to drop from 64-bit mode to 32-bit is a bit messy. Add a function to take care of it. It requires identity-mapped pages and that the calling code is running below 4GB. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add a comment about the REX prefix - Drop the

Re: [U-Boot] GUID/UUID string representation

2015-07-31 Thread Stephen Warren
On 07/31/2015 05:31 AM, Przemyslaw Marczak wrote: Hello, On 07/30/2015 01:19 PM, Palacios, Hector wrote: Hello, Commit d718ded056eefb6239bd2e0a57b7f6d99c6e9e4b introduced translation of UUID binary data to GUID string representation. So, for example, if I use the 'gpt' command to create a

[U-Boot] [PATCH v2 47/47] efi: Add a README to explain how things work

2015-07-31 Thread Simon Glass
Add some documentation on the EFI implementation in U-Boot. Signed-off-by: Ben Stoltz sto...@google.com Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Bin Meng bmeng...@gmail.com --- Changes in v2: - Drop patch Add a link script entry for U-Boot as a payload - Replace 'Coreboot' with

[U-Boot] [PATCH v2 19/47] efi: Add start-up library code

2015-07-31 Thread Simon Glass
When running as an EFI application, U-Boot must request memory from EFI, and provide access to the boot services U-Boot needs. Add library code to perform these tasks. This includes efi_main() which is the entry point from EFI. U-Boot is built as a shared library. Signed-off-by: Simon Glass

[U-Boot] [PATCH v2 41/47] efi: Add a command to display the memory map

2015-07-31 Thread Simon Glass
The EFI memory map is passed from the stub to U-Boot in a table. Add a command to display it in a vaguely readable fashion. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Drop a left-over debug printf() - Fix alignment of region index field in the output - Fix

[U-Boot] [PATCH v2 25/47] efi: Support building a u-boot.efi executable

2015-07-31 Thread Simon Glass
Add support for building U-Boot as an EFI application with a .efi suffix. This can be loaded by EFI provided that EFI has the same bit width (32- or 64-bit) as U-Boot. This unfortunate limitation is imposed by EFI. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Rename

[U-Boot] [PATCH v2 18/47] x86: Allow use of global_data with EFI

2015-07-31 Thread Simon Glass
On x86 the global_data pointer is provided through a somewhat-bizarre and x86-specific mechanism: the F segment register is set to a pointer to the start of global_data, so that accesses can use this build-in register. When running as an EFI payload we don't want to mess with the Global

[U-Boot] [PATCH v2 38/47] efi: Add 64-bit payload support

2015-07-31 Thread Simon Glass
Most EFI implementations use 64-bit. Add a way to build U-Boot as a 64-bit EFI payload. The payload unpacks a (32-bit) U-Boot and starts it. This can be enabled for x86 boards at present. Signed-off-by: Simon Glass s...@chromium.org Improvements to how the payload is built: Signed-off-by: Bin

[U-Boot] [PATCH v2 42/47] x86: Handle running as EFI payload

2015-07-31 Thread Simon Glass
When U-Boot runs as an EFI payload it needs to avoid setting up the CPU again. Also U-Boot currently does not handle interrupts for many devices, so run with interrupts disabled. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add a note that bootm does not work when running as

Re: [U-Boot] [PATCH] powerpc/t4rdb: fix cpld reset altbank

2015-07-31 Thread York Sun
On 04/28/2015 11:56 PM, shh@gmail.com wrote: From: Shaohui Xie shaohui@freescale.com cpld reset altbank should always reset to bank4 no matter what current bank is. Signed-off-by: Shaohui Xie shaohui@freescale.com --- Applied to u-boot-mpc85xx master. Thanks. York

Re: [U-Boot] [PATCH] mpc85xx/t104x, t102x: Update CPC debug register value in PBI commands

2015-07-31 Thread York Sun
On 05/07/2015 01:54 AM, Priyanka Jain wrote: Update PBI command in pbi_cfg files to keep register bit to default reset value while configuring CPC as SRAM Signed-off-by: Priyanka Jain priyanka.j...@freescale.com --- Applied to u-boot-mpc85xx master. Thanks. York

[U-Boot] [PATCH v2 45/47] x86: qemu: Support operation as an EFI payload

2015-07-31 Thread Simon Glass
Disable a few things which interfere with the EFI init. This allows QEMU to to boot into EFI, load a U-Boot payload then boot to the U-Boot prompt. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Bin Meng bmeng...@gmail.com --- Changes in v2: - Fix indenting in

Re: [U-Boot] [PATCH 1/3][v7] powerpc/mpc85xx: SECURE BOOT- NAND secure boot target for P3041

2015-07-31 Thread York Sun
On 06/15/2015 10:06 PM, Aneesh Bansal wrote: Secure Boot Target is added for NAND for P3041. Changes: In PowerPC, the core begins execution from address 0xFFFC. In case of secure boot, this default address maps to Boot ROM. The Boot ROM code requires that the bootloader(U-boot) must lie

Re: [U-Boot] [PATCH][v2] mpc85xx/T104xRDB: Remove vbank check redundant code

2015-07-31 Thread York Sun
On 07/29/2015 09:50 PM, Priyanka Jain wrote: sw variable in checkboard function is storing vbank value which can only take 3-bit value. So check of sw value for if greater than 7 is redundant. Signed-off-by: Priyanka Jain priyanka.j...@freescale.com --- Changes for v2: Corrected

[U-Boot] [PATCH v2 34/47] efi: Add support for loading U-Boot through an EFI stub

2015-07-31 Thread Simon Glass
It is useful to be able to load U-Boot onto a board even it is it already running EFI. This can allow access to the U-Boot command interface, flexible booting options and easier development. The easiest way to do this is to build U-Boot as a binary blob and have an EFI stub copy it into RAM. Add

[U-Boot] [PATCH v2 31/47] x86: Allow relocation code to build without text base

2015-07-31 Thread Simon Glass
This code currently requires CONFIG_SYS_TEXT_BASE but this should be unnecessary. As a first step, remove the build-time limitation and report an error instead. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Bin Meng bmeng...@gmail.com --- Changes in v2: - Set text_base to 0 to avoid

[U-Boot] [PATCH v2 46/47] x86: Gracefully disable the vesa driver when running from EFI

2015-07-31 Thread Simon Glass
We cannot use this driver when running from EFI as we have no direct hardware access. In fact coreboot uses a different driver which uses tables provided by coreboot. So far it does not seem possible to use a normal video driver when booting from EFI. Signed-off-by: Simon Glass s...@chromium.org

[U-Boot] [PATCH v2 30/47] x86: dts: Add a device tree file for EFI

2015-07-31 Thread Simon Glass
This contains just enough to bring up the serial UART. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Remove extraneous '+' in comment - Use efi,app instead of efi,payload for the compatible string arch/x86/dts/Makefile | 1 + arch/x86/dts/efi.dts | 22

[U-Boot] [PATCH v2 27/47] x86: Add asm/elf.h for x86-specific ELF definitions

2015-07-31 Thread Simon Glass
Bring in this file from Linux 4.1. It supports relocation features specific to x86. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Bin Meng bmeng...@gmail.com --- Changes in v2: - Drop unneeded include of asm/ptrace.h - Fix comment style arch/x86/include/asm/elf.h | 46

Re: [U-Boot] [PATCH] powerpc/t1024: update fman liodn for mac1

2015-07-31 Thread York Sun
On 05/14/2015 01:51 AM, Shengzhou Liu wrote: MAC1 acts as 1G/10G dual-role MAC on T1024. We introduce macro SET_FMAN_RX_10G_TYPE2_LIODN for 10G MACs which have same Port ID and same offset of address with 1G MAC. Update it to match with the setting of fman in t1024 device tree, otherwise

Re: [U-Boot] [PATCH][v3] powerpc/b4860qds:Update README for DIP switch information

2015-07-31 Thread York Sun
On 05/14/2015 04:17 AM, Raghav Dogra wrote: The board manual desribes ON as boolean 1 and OFF as boolean 0. Updating README with correct boolean values. Signed-off-by: Raghav Dogra rag...@freescale.com --- Changes for v2: -Reduced the description -Modified the heading Changes for

Re: [U-Boot] [PATCH v2] board/t1023rdb: add support for T1023RDB RevC

2015-07-31 Thread York Sun
On 06/17/2015 01:37 AM, Shengzhou Liu wrote: Add support for NOR flash and GPIO/I2C switch control on RevC. - NOR support - bank0/bank4 switch - SD/eMMC switch - board version Signed-off-by: Shengzhou Liu shengzhou@freescale.com --- v2: updated rcw. Applied to u-boot-mpc85xx

Re: [U-Boot] [PATCH v3 2/4] sunxi: nand: Add basic sunxi NAND driver for SPL with DMA support

2015-07-31 Thread Scott Wood
On Fri, 2015-07-31 at 16:41 +0200, Boris Brezillon wrote: Hi Michal, On Fri, 31 Jul 2015 16:25:00 +0200 Michal Suchanek hramr...@gmail.com wrote: On 31 July 2015 at 11:24, Boris Brezillon boris.brezil...@free-electrons.com wrote: Hi Hans, On Fri, 31 Jul 2015 10:36:43 +0200

Re: [U-Boot] [PATCH 1/4][v8] powerpc/mpc85xx: SECURE BOOT- NAND secure boot target for P3041

2015-07-31 Thread York Sun
On 07/31/2015 01:39 AM, Aneesh Bansal wrote: Secure Boot Target is added for NAND for P3041. Changes: In PowerPC, the core begins execution from address 0xFFFC. In case of secure boot, this default address maps to Boot ROM. The Boot ROM code requires that the bootloader(U-boot) must lie

[U-Boot] [PATCH v2 28/47] x86: Add support for U-Boot as an EFI application

2015-07-31 Thread Simon Glass
From: Ben Stoltz sto...@google.com Add the required x86 glue code. This includes the initial start-up, relocation and jumping to efi_main(). We also need to avoid fiddling with interrupts. Signed-off-by: Ben Stoltz sto...@google.com Signed-off-by: Simon Glass s...@chromium.org --- Changes in

[U-Boot] [PATCH v2 44/47] x86: baytrail: Support operation as an EFI payload

2015-07-31 Thread Simon Glass
Disable a few things which interfere with the EFI init. This allows the Minnowboard MAX to boot into EFI, load a U-Boot payload then boot to the U-Boot prompt. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Bin Meng bmeng...@gmail.com --- Changes in v2: - Fix indenting in

[U-Boot] [PATCH v2 33/47] x86: Add relocation and link script for a 64-bit EFI application

2015-07-31 Thread Simon Glass
Add a linker script and relocation code for building 64-bit EFI applications. This can be used for the EFI stub. Signed-off-by: Simon Glass s...@chromium.org Improvements to how the payload is built: Signed-off-by: Bin Meng bmeng...@gmail.com --- Changes in v2: - Add a comment as to why .hash

[U-Boot] [PATCH v2 26/47] x86: Support skipping relocation for EFI

2015-07-31 Thread Simon Glass
When running as an EFI application we must skip relocation. Add support for this in the x86 relocation code. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Return early in copy_uboot_to_ram() and clear_bbs() when relocation disabled arch/x86/lib/relocate.c | 6 ++ 1 file

Re: [U-Boot] [PATCH] T104xD4: Add Secure boot support for T104xD4RDB platforms.

2015-07-31 Thread York Sun
On 03/26/2015 03:22 AM, Gaurav Rana wrote: defconfig files are added and SFP version for these platforms is updated. Signed-off-by: Gaurav Rana gaurav.r...@freescale.com --- Applied to u-boot-mpc85xx master. Don't worry about the D4 in the board name. We have more than one board. We can

Re: [U-Boot] [PATCH] powerpc/t1023rdb: eMMC boot without external SD card

2015-07-31 Thread York Sun
On 07/27/2015 07:46 PM, Shengzhou Liu wrote: eMMC has no CD and WP pins, it needs to add board-specific board_mmc_getcd() and board_mmc_getwp() in SPL to support eMMC boot without external SD card inserted. Signed-off-by: Shengzhou Liu shengzhou@freescale.com --- Applied to

Re: [U-Boot] [PATCH resend V2 1/3] mtd: nand: mxs support oobsize bigger than 512

2015-07-31 Thread Scott Wood
On Tue, 2015-07-21 at 16:15 +0800, Peng Fan wrote: If ecc chunk data size is 512 and oobsize is bigger than 512, there is a chance that block_mark_bit_offset conflicts with bch ecc area. The following graph is modified from kernel gpmi-nand.c driver with each data block 512 bytes. We can see

  1   2   >