Re: [U-Boot] [PATCH V3 2/8] board: ks2_evm: get rid of bogus CONFIG_LINUX_BOOT_PARAM_ADDR

2015-07-22 Thread Tom Rini
On Sat, Jul 18, 2015 at 11:40:30AM -0500, Nishanth Menon wrote: CONFIG_LINUX_BOOT_PARAM_ADDR is not a valid configuration option. Do just like what the rest of the world does. Acked-by: Vitaly Andrianov vita...@ti.com Acked-By: Murali Karicheri m-kariche...@ti.com Signed-off-by: Nishanth

Re: [U-Boot] [PATCH V3 5/8] configs: ti_armv7_keystone2: switch addresses to generic addresses

2015-07-22 Thread Tom Rini
On Sat, Jul 18, 2015 at 11:40:33AM -0500, Nishanth Menon wrote: Use the defaults defined in DEFAULT_LINUX_BOOT_ENV Signed-off-by: Nishanth Menon n...@ti.com Reviewed-by: Tom Rini tr...@konsulko.com -- Tom signature.asc Description: Digital signature

[U-Boot] [PATCH 03/19] ARM: zynq: DT: Add a fixed regulator for CPU voltage

2015-07-22 Thread Michal Simek
To silence the warning cpufreq_cpu0: failed to get cpu0 regulator: -19 from the cpufreq driver regarding a missing regulator, add a fixed regulator to the DT. Zynq does not support voltage scaling and the CPU rail should always be supplied with 1 V, hence it is added in the SOC-level dtsi.

[U-Boot] [PATCH 05/19] ARM: zynq: DT: Remove 222 MHz OPP

2015-07-22 Thread Michal Simek
Due to dependencies between timer and CPU frequency, only changes by powers of two are allowed. The clocksource driver prevents other changes, but with cpufreq and its governors it can result in being spammed with error messages constantly. Hence, remove the 222 MHz OPP. Signed-off-by: Soren

[U-Boot] [PATCH 06/19] spi: Fix zynq SPI binding

2015-07-22 Thread Michal Simek
Zynq is using Cadence IP where binding is documented in the Linux kernel and there is no reason to use different binding. Synchronize it. Signed-off-by: Michal Simek michal.si...@xilinx.com --- arch/arm/dts/zynq-7000.dtsi | 4 ++-- doc/device-tree-bindings/spi/spi-zynq.txt | 35

[U-Boot] [PATCH 04/19] ARM: zynq: DT: Migrate UART to Cadence binding

2015-07-22 Thread Michal Simek
The Zynq UART is Cadence IP and the driver has been renamed accordingly. Migrate the DT to use the new binding for the UART driver. Signed-off-by: Soren Brinkmann soren.brinkm...@xilinx.com Acked-by: Peter Crosthwaite peter.crosthwa...@xilinx.com Acked-by: Rob Herring r...@kernel.org Tested-by:

[U-Boot] [PATCH 07/19] ARM: zynq: DT: Fix GEM register area size

2015-07-22 Thread Michal Simek
The size of the GEM's register area is only 0x1000 bytes. Signed-off-by: Soren Brinkmann soren.brinkm...@xilinx.com Signed-off-by: Michal Simek michal.si...@xilinx.com --- Sync from the kernel --- arch/arm/dts/zynq-7000.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH 08/19] ARM: zynq: DT: Use the zynq binding with macb

2015-07-22 Thread Michal Simek
Use the new zynq binding for macb ethernet, since it will disable half duplex gigabit like the Zynq TRM says to do. Also allow the compatible cadence gem binding that won't disable half duplex but works otherwise. Signed-off-by: Nathan Sullivan nathan.sulli...@ni.com Acked-by: Sören Brinkmann

[U-Boot] [PATCH 10/19] ARM: zynq: DT: Cleanup address-cells and size-cells

2015-07-22 Thread Michal Simek
Remove unneeded address-cells form intc node because it is already setup in parent node. Add missing address-cells and size-cells to eth node to be shared for every platform DTSes. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Sync with mainline. --- arch/arm/dts/zynq-7000.dtsi | 5

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

2015-07-22 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 12/48] x86: Tidy up the 64-bit calling code

2015-07-22 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 --- arch/x86/cpu/call64.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/cpu/call64.S b/arch/x86/cpu/call64.S index 74dd5a8..08dc473

[U-Boot] [PATCH 21/48] efi: Drop CONFIG_SYS_TEXT_BASE for EFI

2015-07-22 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.

[U-Boot] [PATCH 46/48] x86: qemu: Support operation as an EFI payload

2015-07-22 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 --- arch/x86/cpu/qemu/Makefile | 5 - arch/x86/cpu/qemu/qemu.c | 2 ++

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

2015-07-22 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 --- arch/x86/lib/Makefile | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git

Re: [U-Boot] [PATCH V3 8/8] configs: keystone2: remove distro specific ramdisk name

2015-07-22 Thread Murali Karicheri
On 07/18/2015 12:40 PM, Nishanth Menon wrote: u-boot should support multiple distros as necessary. So, DONOT hardcode distro specific image name in package. Instead we use a generic ramdisk.gz as image name which can be modified by distro specific logic. Signed-off-by: Nishanth Menon

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

2015-07-22 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 --- Makefile | 8 +++- config.mk |

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

2015-07-22 Thread Simon Glass
We should use these constants where possible. Signed-off-by: Simon Glass s...@chromium.org --- 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 b9134cf..d233a45 100644 --- a/arch/x86/cpu/cpu.c +++

[U-Boot] [PATCH 32/48] x86: Add a link script entry for U-Boot as a payload

2015-07-22 Thread Simon Glass
Allow U-Boot to be packaged into the image as a binary payload. Signed-off-by: Simon Glass s...@chromium.org --- arch/x86/cpu/efi/elf_ia32_efi.lds | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/cpu/efi/elf_ia32_efi.lds b/arch/x86/cpu/efi/elf_ia32_efi.lds index fca008b..87ddb4d

[U-Boot] [PATCH 45/48] x86: baytrail: Support operation as an EFI payload

2015-07-22 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 --- arch/x86/cpu/baytrail/Kconfig | 2 +- arch/x86/cpu/baytrail/cpu.c| 2 ++

Re: [U-Boot] [PATCH 1/3] ARM: at91: add cpu.h

2015-07-22 Thread Alexandre Belloni
Hi, On 15/06/2015 at 14:42:59 +0200, Heiko Schocher wrote : add cpu.h from linux: 7538ec7d1e5: ARM: at91: remove no-MMU at91x40 support so it is easier to port linux code, which is based on it. That file doesn't exist anymore, see f56d8f7c29320abe6f923fa1b3cb7adcc3252a24 and I think the

[U-Boot] [PATCH 2/2] zynqmp: Add support for IP detection via SLCR

2015-07-22 Thread Michal Simek
SLCR can be used for IP configuration setting. Add SLCR skeleton to enable run time checking. Signed-off-by: Michal Simek michal.si...@xilinx.com --- arch/arm/cpu/armv8/zynqmp/Makefile | 1 + arch/arm/cpu/armv8/zynqmp/slcr.c| 63 +

[U-Boot] [PATCH 19/19] ARM: zynq: Add support for zc770-xm011

2015-07-22 Thread Michal Simek
Add xm011 DTS file and related configs and configurations. Signed-off-by: Michal Simek michal.si...@xilinx.com --- arch/arm/dts/Makefile | 1 + arch/arm/dts/zynq-zc770-xm011.dts | 65 ++ configs/zynq_zc770_xm011_defconfig | 13

[U-Boot] [PATCH 0/8] ARM: keystone2: Clocls and PLLs cleanup

2015-07-22 Thread Lokesh Vutla
This seires does a several bunch of cleanups for clock and PLL related definitions. This helps a lot in adding data for new Keystone2 SoCs. And also adds support for CPU detection. This is based on Nishanth's config cleanup series:

[U-Boot] [PATCH 1/8] ARM: keystone2: Cleanup SoC detection

2015-07-22 Thread Lokesh Vutla
Add proper register definition for JTAG ID and cleanup cpu_is_* functions. Signed-off-by: Lokesh Vutla lokeshvu...@ti.com --- arch/arm/mach-keystone/include/mach/hardware.h | 42 -- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git

[U-Boot] [PATCH 17/19] ARM: zynq: DT: Add zc702 pushbuttons to DT as gpio-keys

2015-07-22 Thread Michal Simek
Adds the two MIO connected pushbuttons on the zc702 board to the devicetree as a single multi-key device for us with the gpio-keys driver. Signed-off-by: Ezra Savard ezra.sav...@xilinx.com Signed-off-by: Michal Simek michal.si...@xilinx.com --- arch/arm/dts/zynq-zc702.dts | 21

[U-Boot] [PATCH 18/19] ARM: zynq: DT: Update zc770 dtses

2015-07-22 Thread Michal Simek
Platform DTSes are missing content needed for platform to be able to use OF binding and DM. Signed-off-by: Michal Simek michal.si...@xilinx.com --- arch/arm/dts/zynq-zc770-xm010.dts | 75 --- arch/arm/dts/zynq-zc770-xm012.dts | 51 +++---

[U-Boot] [PATCH 1/2] zynqmp: mp: Simplify set_r5_start handling

2015-07-22 Thread Michal Simek
Pass directly boot_addr which is LOVEC (0) or HIVEC (0x). No reason to use magic values 0 and 1. Signed-off-by: Michal Simek michal.si...@xilinx.com --- arch/arm/cpu/armv8/zynqmp/mp.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git

Re: [U-Boot] [PATCH 1/8] ARM: keystone2: Cleanup SoC detection

2015-07-22 Thread Vitaly Andrianov
On 07/22/2015 11:39 AM, Lokesh Vutla wrote: Add proper register definition for JTAG ID and cleanup cpu_is_* functions. Signed-off-by: Lokesh Vutla lokeshvu...@ti.com --- arch/arm/mach-keystone/include/mach/hardware.h | 42 -- 1 file changed, 26 insertions(+), 16

Re: [U-Boot] [PATCH V3 3/8] configs: rename ks2_evm into ti_armv7_keystone2

2015-07-22 Thread Murali Karicheri
On 07/18/2015 12:40 PM, Nishanth Menon wrote: rename the keystone2 common header into an keystone2 architecture specific header which can then reuse the common ti_armv7 config headers. Acked-by: Vitaly Andrianov vita...@ti.com Acked-By: Murali Karicheri m-kariche...@ti.com Signed-off-by:

Re: [U-Boot] [PATCH V3 3/8] configs: rename ks2_evm into ti_armv7_keystone2

2015-07-22 Thread Tom Rini
On Sat, Jul 18, 2015 at 11:40:31AM -0500, Nishanth Menon wrote: rename the keystone2 common header into an keystone2 architecture specific header which can then reuse the common ti_armv7 config headers. Acked-by: Vitaly Andrianov vita...@ti.com Acked-By: Murali Karicheri m-kariche...@ti.com

Re: [U-Boot] [PATCH V3 6/8] ti_armv7_keystone2: switch to using kernel zImage

2015-07-22 Thread Tom Rini
On Sat, Jul 18, 2015 at 11:40:34AM -0500, Nishanth Menon wrote: Switch to using zImage instead of uImage. and while at it, start using bootz as default. While at it, get rid of BOOTIMAGE define and start using Linux upstream dtb file names. Signed-off-by: Nishanth Menon n...@ti.com

Re: [U-Boot] [PATCH V3 7/8] configs: k2*_evm: rename skernel binary names to generated file names

2015-07-22 Thread Tom Rini
On Sat, Jul 18, 2015 at 11:40:35AM -0500, Nishanth Menon wrote: using http://git.ti.com/keystone-linux/boot-monitor/trees/master as reference (tag K2_BM_15.07) the generated files do not have evm extensions by default. So dont use -evm extension. Signed-off-by: Nishanth Menon n...@ti.com

Re: [U-Boot] [PATCH V3 1/8] configs: split ti_armv7_common into a omap generic header

2015-07-22 Thread Tom Rini
On Sat, Jul 18, 2015 at 11:40:29AM -0500, Nishanth Menon wrote: TI armv7 based SoCs are based on two architectures - one based on OMAP generation architecture and others based on Keystone architecture. Many of the options are architecture specific, however a lot are common with v7

[U-Boot] [PATCH 8/8] ARM: keystone2: Use common definition for clk_get_rate

2015-07-22 Thread Lokesh Vutla
Since all the clocks are defined common, and has the same logic to get the frequencies, use a common definition for for clk_get_rate(). Signed-off-by: Lokesh Vutla lokeshvu...@ti.com --- arch/arm/mach-keystone/Makefile | 3 - arch/arm/mach-keystone/clock-k2e.c |

[U-Boot] [PATCH 7/8] ARM: keystone2: Remove unsed external clocks

2015-07-22 Thread Lokesh Vutla
Remove unused external clocks and make a common definition for all keystone platforms. Signed-off-by: Lokesh Vutla lokeshvu...@ti.com --- arch/arm/mach-keystone/clock-k2e.c | 2 +- arch/arm/mach-keystone/clock-k2l.c | 2 +-

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

2015-07-22 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 --- common/board_f.c

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

2015-07-22 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 --- drivers/pci/pci_auto.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH 14/48] x86: Tidy up a few minor issues with interrupts

2015-07-22 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 --- arch/x86/cpu/interrupts.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/arch/x86/cpu/interrupts.c

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

2015-07-22 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 --- include/linux/types.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/linux/types.h

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

2015-07-22 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 --- drivers/pci/pci_auto.c | 48 +++- 1 file changed, 23 insertions(+), 25 deletions(-) diff --git

[U-Boot] [PATCH 11/48] x86: Drop unused copy_fdt_to_ram()

2015-07-22 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 --- arch/x86/include/asm/relocate.h | 1 - arch/x86/lib/relocate.c | 18 -- 2 files changed, 19 deletions(-)

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

2015-07-22 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 --- arch/x86/cpu/Makefile | 6 + arch/x86/cpu/call32.S

Re: [U-Boot] [PATCH V3 4/8] configs: ti_armv7_keystone2: start using armv7_common

2015-07-22 Thread Murali Karicheri
On 07/18/2015 12:40 PM, Nishanth Menon wrote: Try to maintain as much commonality by conditionally including stuff in armv7_common as necessary and removing the common defines from keystone2 header. /* U-Boot Build Configuration */ #define CONFIG_SKIP_LOWLEVEL_INIT /* U-Boot is a 2nd

Re: [U-Boot] [PATCH V3 4/8] configs: ti_armv7_keystone2: start using armv7_common

2015-07-22 Thread Tom Rini
On Wed, Jul 22, 2015 at 11:19:29AM -0400, Murali Karicheri wrote: On 07/18/2015 12:40 PM, Nishanth Menon wrote: Try to maintain as much commonality by conditionally including stuff in armv7_common as necessary and removing the common defines from keystone2 header. /* U-Boot Build

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

2015-07-22 Thread Simon Glass
Provide the types necessary to relocate 64-bit images. Signed-off-by: Simon Glass s...@chromium.org --- include/elf.h | 26 ++ 1 file changed, 26 insertions(+) diff --git a/include/elf.h b/include/elf.h index 63d9341..1936ef6 100644 --- a/include/elf.h +++

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

2015-07-22 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 --- scripts/Makefile.lib | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

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

2015-07-22 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 10/48] x86: Tidy up global_data flags

2015-07-22 Thread Simon Glass
These flags now overlap some global ones. Adjust the x86-specific flags to avoid this. Signed-off-by: Simon Glass s...@chromium.org --- arch/x86/include/asm/global_data.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/include/asm/global_data.h

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

2015-07-22 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 --- arch/x86/cpu/start.S | 46 ++ 1 file changed, 26 insertions(+), 20 deletions(-) diff --git a/arch/x86/cpu/start.S

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

2015-07-22 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 --- drivers/core/uclass.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/core/uclass.c b/drivers/core/uclass.c index 7de8173..a930c30 100644 ---

[U-Boot] [PATCH 20/48] efi: Add a serial driver

2015-07-22 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 --- drivers/serial/Kconfig | 8 +++ drivers/serial/Makefile | 1 + drivers/serial/serial_efi.c | 149 3 files changed, 158

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

2015-07-22 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 --- doc/README.efi | 237 + 1 file changed, 237 insertions(+) create mode 100644

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

2015-07-22 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 --- arch/x86/include/asm/cpu.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/x86/include/asm/cpu.h b/arch/x86/include/asm/cpu.h index

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

2015-07-22 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 --- arch/x86/Kconfig | 16 arch/x86/cpu/cpu.c

[U-Boot] [PATCH 3/8] ARM: keystone2: Cleanup PLL init code

2015-07-22 Thread Lokesh Vutla
There are two types of PLL for all keystone platforms: Main PLL, Secondary PLL. Instead of duplicating the same definition for each secondary PLL, have a common function which does initialization for both PLLs. And also add proper register definitions. Signed-off-by: Lokesh Vutla

[U-Boot] [PATCH 4/8] ARM: keystone2: Fix dev and arm speed detection

2015-07-22 Thread Lokesh Vutla
As per the Documentation for K2HK[1], K2L[2], K2E[3], the definition of DEVSPEED register is same, only the supporting speeds are different. Hence use the same speed definition for all platforms, and read the DEVSPEED register to detect the supporting max speed. [1]

[U-Boot] [PATCH 6/8] ARM: keystone2: Cleanup init_pll definition

2015-07-22 Thread Lokesh Vutla
This is just a cosmetic change that makes the calling of pll init code looks much cleaner. Signed-off-by: Lokesh Vutla lokeshvu...@ti.com --- arch/arm/mach-keystone/clock.c | 12 ++--- arch/arm/mach-keystone/include/mach/clock.h | 3 ++- board/ti/ks2_evm/board_k2e.c

[U-Boot] [PATCH 5/8] ARM: keystone2: Use common structure for PLLs

2015-07-22 Thread Lokesh Vutla
Register Base addresses are same for PLLs in all keystone platforms. If a PLL is not available, the corresponding register addresses are marked as reserved. Hence use a common definition. Signed-off-by: Lokesh Vutla lokeshvu...@ti.com --- arch/arm/mach-keystone/clock-k2e.c | 6

[U-Boot] [PATCH 2/8] ARM: keystone2: Enable CONFIG_DISPLAY_CPUINFO

2015-07-22 Thread Lokesh Vutla
Add print_cpuinfo() function and enable CONFIG_DISPLAY_CPUINFO for keystone platforms, so that cpu info can be displayed during boot. Signed-off-by: Lokesh Vutla lokeshvu...@ti.com --- arch/arm/mach-keystone/init.c| 24 include/configs/ti_armv7_keystone2.h | 1 +

Re: [U-Boot] [PATCH 0/8] ARM: keystone2: Clocls and PLLs cleanup

2015-07-22 Thread Lokesh Vutla
Hi, On Wednesday 22 July 2015 09:09 PM, Lokesh Vutla wrote: This seires does a several bunch of cleanups for clock and PLL related definitions. This helps a lot in adding data for new Keystone2 SoCs. And also adds support for CPU detection. Sorry about the typo in $subject. Will update it after

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

2015-07-22 Thread Simon Glass
We cannot use this driver when running from EFI as we have no direct hardware access. 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 44/48] x86: Add helper code for running from EFI

2015-07-22 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 33/48] x86: Add relocation and link script for a 64-bit EFI application

2015-07-22 Thread Simon Glass
Add a link 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 --- arch/x86/cpu/efi/elf_x86_64_efi.lds | 87 +++ arch/x86/lib/reloc_x86_64.c | 90

Re: [U-Boot] [PATCH V3 6/8] ti_armv7_keystone2: switch to using kernel zImage

2015-07-22 Thread Murali Karicheri
On 07/18/2015 12:40 PM, Nishanth Menon wrote: Switch to using zImage instead of uImage. and while at it, start using bootz as default. While at it, get rid of BOOTIMAGE define and start using Linux upstream dtb file names. Signed-off-by: Nishanth Menon n...@ti.com --- New patch.

Re: [U-Boot] [PATCH V3 7/8] configs: k2*_evm: rename skernel binary names to generated file names

2015-07-22 Thread Murali Karicheri
On 07/18/2015 12:40 PM, Nishanth Menon wrote: using http://git.ti.com/keystone-linux/boot-monitor/trees/master as reference (tag K2_BM_15.07) the generated files do not have evm extensions by default. So dont use -evm extension. Signed-off-by: Nishanth Menon n...@ti.com --- New patch

Re: [U-Boot] [PATCH V3 8/8] configs: keystone2: remove distro specific ramdisk name

2015-07-22 Thread Nishanth Menon
On Wed, Jul 22, 2015 at 10:32 AM, Tom Rini tr...@konsulko.com wrote: Instead of trying to whack this stuff to be more generic lets just punt on it and drop when moving to config_distro_bootcmd.h OK. will do so. -- --- Regards, Nishanth Menon ___

[U-Boot] [PATCH 09/19] ARM: zynq: DT: Clean up timer device tree nodes

2015-07-22 Thread Michal Simek
Separate IRQ cells from each other for easier reading. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Sync with mainline kernel --- arch/arm/dts/zynq-7000.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/zynq-7000.dtsi

[U-Boot] [PATCH 24/48] x86: Add asm/elf.h for x86-specific ELF definitions

2015-07-22 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 --- arch/x86/include/asm/elf.h | 50 ++ 1 file changed, 50 insertions(+) create mode 100644 arch/x86/include/asm/elf.h

[U-Boot] [PATCH 39/48] x86: Add Makefile settings for EFI build

2015-07-22 Thread Simon Glass
This is not in a good place. I'm hoping that Masahiro can help figure this one out. Signed-off-by: Simon Glass s...@chromium.org --- scripts/Makefile.build | 8 1 file changed, 8 insertions(+) diff --git a/scripts/Makefile.build b/scripts/Makefile.build index ac0554e..9a7d28d 100644

[U-Boot] [PATCH 28/48] x86: Allow use of global_data with EFI

2015-07-22 Thread Simon Glass
On x86 the global_data pointer is provided through a somewhat-bizarre and x86-specific mechanism: the frame segment 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 Descriptor

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

2015-07-22 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

Re: [U-Boot] [PATCH 2/8] ARM: keystone2: Enable CONFIG_DISPLAY_CPUINFO

2015-07-22 Thread Vitaly Andrianov
On 07/22/2015 11:39 AM, Lokesh Vutla wrote: Add print_cpuinfo() function and enable CONFIG_DISPLAY_CPUINFO for keystone platforms, so that cpu info can be displayed during boot. Signed-off-by: Lokesh Vutla lokeshvu...@ti.com --- arch/arm/mach-keystone/init.c| 24

[U-Boot] [PATCH 40/48] x86: Add support for passing tables into U-Boot

2015-07-22 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. Signed-off-by: Simon Glass s...@chromium.org --- arch/x86/cpu/start.S

Re: [U-Boot] [PATCH V3 3/8] configs: rename ks2_evm into ti_armv7_keystone2

2015-07-22 Thread Murali Karicheri
On 07/18/2015 12:40 PM, Nishanth Menon wrote: rename the keystone2 common header into an keystone2 architecture specific header which can then reuse the common ti_armv7 config headers. Acked-by: Vitaly Andrianov vita...@ti.com Acked-By: Murali Karicheri m-kariche...@ti.com Signed-off-by:

[U-Boot] [PATCH 25/48] x86: Add support for U-Boot as an EFI application

2015-07-22 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 ---

[U-Boot] [PATCH 19/48] efi: Display the correct initcall pre-relocation values

2015-07-22 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 31/48] x86: Add definitions for the x86-efi board and plumb it in

2015-07-22 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 --- configs/efi-x86_defconfig | 16 include/configs/efi-x86.h | 37

[U-Boot] [PATCH 29/48] x86: Allow relocation code to build without text base

2015-07-22 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 --- arch/x86/lib/relocate.c | 17 +++-- 1 file changed, 11 insertions(+), 6

[U-Boot] [PATCH 26/48] x86: Add EFI board code

2015-07-22 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 --- arch/x86/Kconfig | 1 + board/efi/Kconfig |

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

2015-07-22 Thread Simon Glass
From: Ben Stoltz sto...@google.com Adjust the tool chain 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 --- arch/x86/config.mk | 35 --- 1 file

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

2015-07-22 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 --- Makefile | 5 + 1 file

[U-Boot] [PATCH 17/48] efi: Avoid using non-existent text base

2015-07-22 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 13/48] x86: Add some missing global_data declarations in files that use gd

2015-07-22 Thread Simon Glass
Some files use global_data but don't declare it. Fix this. Signed-off-by: Simon Glass s...@chromium.org --- arch/x86/cpu/mp_init.c | 2 ++ arch/x86/lib/bootm.c | 2 ++ arch/x86/lib/fsp/fsp_common.c | 2 ++ arch/x86/lib/lpc-uclass.c | 2 ++ arch/x86/lib/pch-uclass.c

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

2015-07-22 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 --- Makefile | 2 +- arch/x86/config.mk

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

2015-07-22 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 --- lib/efi/Makefile | 1 + lib/efi/efi_info.c | 47 +++

[U-Boot] [PATCH 42/48] efi: Add a command to display the memory map

2015-07-22 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 --- common/Makefile | 1 + common/cmd_efi.c | 258 +++ 2 files changed,

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

2015-07-22 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 --- arch/x86/lib/relocate.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/x86/lib/relocate.c

[U-Boot] [PATCH 27/48] x86: dts: Add a device tree file for EFI

2015-07-22 Thread Simon Glass
This contains just enough to bring up the serial UART. Signed-off-by: Simon Glass s...@chromium.org --- arch/x86/dts/Makefile | 1 + arch/x86/dts/efi.dts | 22 ++ 2 files changed, 23 insertions(+) create mode 100644 arch/x86/dts/efi.dts diff --git a/arch/x86/dts/Makefile

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

2015-07-22 Thread Simon Glass
This series allows U-Boot to be built 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

Re: [U-Boot] [PATCH V3 5/8] configs: ti_armv7_keystone2: switch addresses to generic addresses

2015-07-22 Thread Murali Karicheri
On 07/18/2015 12:40 PM, Nishanth Menon wrote: Use the defaults defined in DEFAULT_LINUX_BOOT_ENV Signed-off-by: Nishanth Menon n...@ti.com --- new patch based on review comments on https://patchwork.ozlabs.org/patch/496823/ include/configs/ti_armv7_keystone2.h | 22 +- 1

Re: [U-Boot] [PATCH V3 8/8] configs: keystone2: remove distro specific ramdisk name

2015-07-22 Thread Tom Rini
On Sat, Jul 18, 2015 at 11:40:36AM -0500, Nishanth Menon wrote: u-boot should support multiple distros as necessary. So, DONOT hardcode distro specific image name in package. Instead we use a generic ramdisk.gz as image name which can be modified by distro specific logic. Signed-off-by:

[U-Boot] [PATCH 01/19] ARM: zynq: DT: Use the right names for nodes

2015-07-22 Thread Michal Simek
Based on SPEC you right names with addresses. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Sync with the kernel --- arch/arm/dts/zynq-7000.dtsi | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/arm/dts/zynq-7000.dtsi

[U-Boot] [PATCH 02/19] ARM: zynq: DT: Add missing nodes to DTSI

2015-07-22 Thread Michal Simek
Add ADC, CAN, GPIO, MC, DMA, DEVCFG, USB, Watchdog IPs to DTSI. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Sync with the kernel. --- arch/arm/dts/zynq-7000.dtsi | 100 1 file changed, 100 insertions(+) diff --git

[U-Boot] [PATCH 13/19] ARM: zynq: DT: Sync zc702/zc706/zed/zybo DT with kernel

2015-07-22 Thread Michal Simek
Syncup with the latest DT from the Linux kernel. Signed-off-by: Michal Simek michal.si...@xilinx.com --- arch/arm/dts/zynq-zc702.dts | 351 +++- arch/arm/dts/zynq-zc706.dts | 293 +++- arch/arm/dts/zynq-zed.dts | 46

[U-Boot] [PATCH 11/19] ARM: zynq: DT: Add pinctrl node

2015-07-22 Thread Michal Simek
Add pinctrl node to DTSI. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Sync with mainline. --- arch/arm/dts/zynq-7000.dtsi | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/zynq-7000.dtsi b/arch/arm/dts/zynq-7000.dtsi index

[U-Boot] [PATCH 16/19] ARM: zynq: DT: Add missing interrupt for L2 pl310

2015-07-22 Thread Michal Simek
Add pl310 interrupt to the Zynq devicetree. Signed-off-by: Alex Wilson alex.david.wil...@gmail.com Signed-off-by: Michal Simek michal.si...@xilinx.com --- arch/arm/dts/zynq-7000.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/zynq-7000.dtsi b/arch/arm/dts/zynq-7000.dtsi

[U-Boot] [PATCH 12/19] ARM: zynq: DT: Add reference to bus node

2015-07-22 Thread Michal Simek
For adding OCM memory in platform DTS is necessary to have reference to amba bus. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Sync with mainline. --- arch/arm/dts/zynq-7000.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/zynq-7000.dtsi

[U-Boot] [PATCH 15/19] ARM: zynq: DT: Get rid of ps-clk-frequency

2015-07-22 Thread Michal Simek
ps-clk-frequency is platform specific setting and shouldn't be the part of DTSI. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Sync with mainline. --- arch/arm/dts/zynq-7000.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/dts/zynq-7000.dtsi

[U-Boot] [PATCH 14/19] ARM: zynq: DT: Update years in copyright

2015-07-22 Thread Michal Simek
Trivial. Signed-off-by: Michal Simek michal.si...@xilinx.com --- DTSI are coming from the same source that's why I have synced years according the Linux kernel. --- arch/arm/dts/zynq-7000.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/zynq-7000.dtsi

Re: [U-Boot] [PATCH 1/3] crypto/fsl: fix era property value on LE platforms

2015-07-22 Thread Ruchika Gupta
Acked-by: Ruchika Guptaruchika.gu...@freescale.com -Original Message- From: Sun York-R58495 Sent: Sunday, July 19, 2015 3:44 AM To: Gupta Ruchika-R66431 Subject: Re: [PATCH 1/3] crypto/fsl: fix era property value on LE platforms Ruchika, Please comment/ack. York On

  1   2   3   >