Re: [U-Boot] [PATCH v2 10/12] jetson-tk1: Add PSCI configuration options and reserve secure code

2015-02-17 Thread Jan Kiszka
On 2015-02-17 22:05, Stephen Warren wrote: > On 02/16/2015 05:54 AM, Jan Kiszka wrote: >> The secure world code is relocated to the MB just below the top of 4G, we >> reserve it in the FDT (by setting CONFIG_ARMV7_SECURE_RESERVE_SIZE) >> but it is >> not protected in h/w. See next patch. > >> diff

Re: [U-Boot] [PATCH v2 11/12] tegra124: Reserve secure RAM using MC_SECURITY_CFG{0, 1}_0

2015-02-17 Thread Jan Kiszka
On 2015-02-17 22:06, Stephen Warren wrote: > On 02/16/2015 05:54 AM, Jan Kiszka wrote: >> From: Ian Campbell >> >> These registers can be used to prevent non-secure world from accessing a >> megabyte aligned region of RAM, use them to protect the u-boot secure >> monitor >> code. >> >> At first I

Re: [U-Boot] [PATCH v2 09/12] tegra124: Add PSCI support for Tegra124

2015-02-17 Thread Jan Kiszka
On 2015-02-17 22:03, Stephen Warren wrote: > On 02/16/2015 05:54 AM, Jan Kiszka wrote: >> This is based on Thierry Reding's work and uses Ian Campell's >> preparatory patches. It comes with full support for CPU_ON/OFF PSCI >> services. The algorithm used in this version for turning CPUs on and >> o

Re: [U-Boot] [ANN] U-Boot v2015.01-rc2 released

2015-02-17 Thread Sinan Akman
Hi Tom On 02/17/2015 03:25 PM, Tom Rini wrote: [...] In terms of big removal patches, now that -rc2 is out I'm going to take what Masahiro has posted and that didn't cause people to speak up and claim / fix the boards [...] I will be having access to : - mpc8323erdb and - mpc8308rdb

Re: [U-Boot] u-boot for Snow problem

2015-02-17 Thread Michal Suchanek
On 18 February 2015 at 03:27, Simon Glass wrote: > Hi Michal, > > On 16 February 2015 at 04:41, Michal Suchanek wrote: >> On 13 February 2015 at 05:51, Simon Glass wrote: >>> Hi Michal, >>> >>> On 11 February 2015 at 10:16, Michal Suchanek wrote: Hello, I changed the SYS_STA

Re: [U-Boot] [RFC PATCH v3 07/14] dm: eth: Add basic driver model support to Ethernet stack

2015-02-17 Thread Simon Glass
Hi Joe, On 16 February 2015 at 21:37, Joe Hershberger wrote: > Hi Simon, > > On Sun, Feb 15, 2015 at 9:49 AM, Simon Glass wrote: >> >> Hi Joe, >> >> On 10 February 2015 at 18:30, Joe Hershberger >> wrote: >> > First just add support for MAC drivers. >> >> It has taken me a while to get through

Re: [U-Boot] [RFC PATCH v3 14/14] dm: eth: Add a bridge to a real network for sandbox

2015-02-17 Thread Simon Glass
Hi Joe, On 16 February 2015 at 22:16, Joe Hershberger wrote: > Hi Simon, > > On Sun, Feb 15, 2015 at 9:50 AM, Simon Glass wrote: >> >> Hi Joe, >> >> On 10 February 2015 at 18:30, Joe Hershberger >> wrote: >> > Implement a bridge between u-boot's network stack and Linux's raw packet >> > API all

Re: [U-Boot] [RFC PATCH v3 11/14] dm: eth: Add support for aliases

2015-02-17 Thread Simon Glass
Hi Joe, On 16 February 2015 at 22:04, Joe Hershberger wrote: > > > On Sun, Feb 15, 2015 at 9:50 AM, Simon Glass wrote: >> >> Hi Joe, >> >> On 10 February 2015 at 18:30, Joe Hershberger >> wrote: >> > Allow network devices to be referred to as "eth0" instead of >> > "eth@12345678" when specified

Re: [U-Boot] [RFC PATCH v3 09/14] dm: eth: Add ARP and PING response to sandbox driver

2015-02-17 Thread Simon Glass
Hi Joe, On 16 February 2015 at 21:46, Joe Hershberger wrote: > > > On Sun, Feb 15, 2015 at 9:49 AM, Simon Glass wrote: >> >> Hi Joe, >> >> On 10 February 2015 at 18:30, Joe Hershberger >> wrote: >> > The sandbox driver will now generate response traffic to exercise the >> > ping command even wh

Re: [U-Boot] [PATCH 3/4] mmc: exynos dwmmc: check boot mode before init dwmmc

2015-02-17 Thread Simon Glass
Hi Przemyslaw, On 17 February 2015 at 06:09, Przemyslaw Marczak wrote: > Before this commit, the mmc devices were always registered > in the same order. So dwmmc channel 0 was registered as mmc 0, > channel 1 as mmc 1, etc. > In case of possibility to boot from more then one device, > the CONFIG_

Re: [U-Boot] [RFC PATCH v3 01/14] dm: core: Allow seq numbers to be resolved before probe

2015-02-17 Thread Simon Glass
Hi Joe, On 16 February 2015 at 21:17, Joe Hershberger wrote: > Hi Simon, > > > On Sun, Feb 15, 2015 at 9:59 AM, Simon Glass wrote: >> >> Hi Joe, >> >> On 13 February 2015 at 19:33, Joe Hershberger >> wrote: >> > On Thu, Feb 12, 2015 at 11:14 PM, Simon Glass wrote: >> >> >> >> Hi Joe, >> >> >>

Re: [U-Boot] [PATCH 11/14] usb: UniPhier: add UniPhier on-chip xHCI host driver support

2015-02-17 Thread Simon Glass
Hi Masahiro, On 17 February 2015 at 00:00, Masahiro Yamada wrote: > Support xHCI host driver used on Panasonic UniPhier platform. > > Signed-off-by: Masahiro Yamada > --- > Hi Marek, > > I want apply this patch onto u-boot-uniphier/master > to avoid conflicts. > > If you are OK with it, could yo

Re: [U-Boot] [PATCH 3/4] apalis_t30: enable gigabit ethernet via pcie

2015-02-17 Thread Simon Glass
On 17 February 2015 at 07:28, Marcel Ziswiler wrote: > Now with all the Tegra PCIe and Intel E1000 gigabit Ethernet driver > updates being merged actually make use of it. > > While at it get rid of the USB networking support which now does not > make much sense any longer. > > Signed-off-by: Marce

Re: [U-Boot] [PATCH 2/4] apalis/colibri_t30: fix MMC/SD card detect GPIOs

2015-02-17 Thread Simon Glass
On 17 February 2015 at 07:28, Marcel Ziswiler wrote: > This fixes the MMC/SD card detect GPIOs for Apalis T30 which got broken > by the following commit: > > 2b2b50bc8748bf1ddb2d96da7157f9eecbe24961 > > While at it also re-add the comments describing which particular > Apalis/Colibri pins those GP

Re: [U-Boot] [PATCH 2/3] dm: Move CONFIG_I2C_COMPAT to Kconfig

2015-02-17 Thread Simon Glass
On 13 February 2015 at 12:20, Simon Glass wrote: > Make this option available in Kconfig and clean up the board that uses it. > Note there is also an entry in exynos5-common.h but this affects multiple > boards and should be dropped as part of the Samsung I2C migration to > driver model. > > Signe

Re: [U-Boot] [PATCH 1/4] dm: gpio: extend gpio api by dm_gpio_set_pull()

2015-02-17 Thread Simon Glass
+Stephen who might have an opinion on this. Hi Przemyslaw, On 17 February 2015 at 06:09, Przemyslaw Marczak wrote: > This commits extends: > - dm gpio ops by: 'set_pull' call > - dm gpio uclass by: dm_gpio_set_pull() function > > The pull mode is not defined so should be driver specific. It's g

Re: [U-Boot] [PATCH] Documentation: gpio: fix bindings document

2015-02-17 Thread Simon Glass
On 17 February 2015 at 20:08, Simon Glass wrote: > On 12 February 2015 at 02:49, Masahiro Yamada > wrote: >> [ imported from Linux Kernel, commit 74981fb81d83 ] >> Signed-off-by: Masahiro Yamada >> Acked-by: Laurent Pinchart >> Signed-off-by: Linus Walleij > > Acked-by: Simon Glass Applied

Re: [U-Boot] [PATCH 1/3] dm: cros_ec: Convert to Kconfig

2015-02-17 Thread Simon Glass
On 13 February 2015 at 12:20, Simon Glass wrote: > Since both I2C and SPI are converted to Kconfig, we can convert cros_ec > to Kconfig for these buses. > > LPC will need to wait until driver mode PCI is available. > > Signed-off-by: Simon Glass > --- > > configs/peach-pi_defconfig | 4

Re: [U-Boot] [PATCH 3/3] dm: mx6: Adjust mx6sxsabresd to use Kconfig for DM_THERMAL

2015-02-17 Thread Simon Glass
On 13 February 2015 at 12:20, Simon Glass wrote: > Use Kconfig instead of board config for DM and DM_THERMAL. > > Signed-off-by: Simon Glass > --- > > configs/mx6sxsabresd_defconfig | 2 ++ > configs/mx6sxsabresd_spl_defconfig | 2 ++ > include/configs/mx6sxsabresd.h | 2 -- > 3 files ch

Re: [U-Boot] [PATCH v2 7/8] trats2: defconfig: enable expert and skip memset at malloc init

2015-02-17 Thread Simon Glass
On 16 February 2015 at 08:13, Przemyslaw Marczak wrote: > Reduce the boot time of Trats2 by disabling the memset > at malloc init. > > This was tested on Trats2. > A quick test with trace. Boot time from start to main_loop() entry: > - ~464ms - before this change (arch memset enabled for .bss clea

Re: [U-Boot] [PATCH v2 8/8] odroid: defconfig: enable expert and skip malloc memset

2015-02-17 Thread Simon Glass
On 16 February 2015 at 08:13, Przemyslaw Marczak wrote: > Reduce the boot time of Odroid X2/U3 by disabling the memset > at malloc init. > > This was tested on Odroid X2. > A quick test with checking gpio pin state using the oscilloscope. > Boot time from start to bootcmd (change gpio state by mem

Re: [U-Boot] [PATCH v2 6/8] kconfig: malloc: add option for skip memset at malloc init

2015-02-17 Thread Simon Glass
Hi Przemyslaw, On 16 February 2015 at 08:13, Przemyslaw Marczak wrote: > Signed-off-by: Przemyslaw Marczak > --- > Kconfig | 26 +++--- > 1 file changed, 19 insertions(+), 7 deletions(-) > > diff --git a/Kconfig b/Kconfig > index 4157da3..e08e44a 100644 > --- a/Kconfig > +++

Re: [U-Boot] [PATCH v2 5/8] README: add info about skip memset at malloc init

2015-02-17 Thread Simon Glass
Hi Przemyslaw, On 16 February 2015 at 08:13, Przemyslaw Marczak wrote: > Signed-off-by: Przemyslaw Marczak > --- > README | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/README b/README > index fefa71c..8673640 100644 > --- a/README > +++ b/README > @@ -3989,6 +3989,13 @@ Config

Re: [U-Boot] [PATCH v2 4/8] dlmalloc: add option for skip memset in malloc init

2015-02-17 Thread Simon Glass
Hi Przemyslaw, On 16 February 2015 at 08:13, Przemyslaw Marczak wrote: > This commit introduces new config: CONFIG_SYS_MALLOC_INIT_SKIP_ZEROING. > > Before this change, the all amount of memory reserved for the malloc, > was set to zero in mem_malloc_init(). When the malloc reserved memory > exce

Re: [U-Boot] [PATCH v2 3/8] dfu: mmc: file buffer: remove static allocation

2015-02-17 Thread Simon Glass
On 16 February 2015 at 08:13, Przemyslaw Marczak wrote: > For writing files, DFU implementation requires the file buffer > with the len at least of file size. For big files it requires > the same big buffer. > > Previously the file buffer was allocated as a static variable, > so it was a part of U

Re: [U-Boot] [PATCH v2 2/8] arm: relocation: clear .bss section with arch memset if defined

2015-02-17 Thread Simon Glass
Hi Przemyslaw, On 16 February 2015 at 08:21, Przemyslaw Marczak wrote: > Hello, > > > On 02/16/2015 04:13 PM, Przemyslaw Marczak wrote: >> >> For ARM architecture, enable the CONFIG_USE_ARCH_MEMSET/MEMCPY, >> will highly increase the memset/memcpy performance. This is able >> thanks to the ARM mu

Re: [U-Boot] [PATCH v2 1/8] exynos: config: enable arch memcpy and arch memset

2015-02-17 Thread Simon Glass
On 16 February 2015 at 08:13, Przemyslaw Marczak wrote: > This commit enables the following configs: > - CONFIG_USE_ARCH_MEMCPY > - CONFIG_USE_ARCH_MEMSET > This increases the performance of memcpy/memset > and also reduces the boot time. > > This was tested on Trats2. > A quick test with trace. B

Re: [U-Boot] [PATCH 06/12] pxa: colibri_pxa270: migrate to generic board

2015-02-17 Thread Simon Glass
On 16 February 2015 at 05:14, Marcel Ziswiler wrote: > Migrate Toradex Colibri PXA270 to use CONFIG_SYS_GENERIC_BOARD. > > Signed-off-by: Marcel Ziswiler > --- > include/configs/colibri_pxa270.h | 2 ++ > 1 file changed, 2 insertions(+) Reviewed-by: Simon Glass

[U-Boot] unassigned-patches/131: Re: [PATCH] x86: minnowmax: add GPIO mapping support

2015-02-17 Thread u-boot
Hi Gabriel, On 15 February 2015 at 14:55, Gabriel Huau wrote: > Configure the pinctrl as it required to make some IO controllers > working (USB/UART/I2C/...). > The idea would be in the next version to modify the pch GPIO driver and > configure these pins through the device tree. > > These modifi

Re: [U-Boot] [PATCH] x86: minnowmax: add GPIO mapping support

2015-02-17 Thread Simon Glass
Hi Gabriel, On 15 February 2015 at 14:55, Gabriel Huau wrote: > Configure the pinctrl as it required to make some IO controllers > working (USB/UART/I2C/...). > The idea would be in the next version to modify the pch GPIO driver and > configure these pins through the device tree. > > These modifi

Re: [U-Boot] [PATCH v2 0/3] Add generic early debug UART feature

2015-02-17 Thread Simon Glass
+tom, and pruning the cc list a little Hi, On 26 January 2015 at 18:27, Simon Glass wrote: > This series adds debug UART infrastructure which can in principle be used on > any architecture. It works best with those that don't need a stack to call > functions (e.g. ARM, PowerPC). I'd really quit

Re: [U-Boot] [PATCH] Documentation: gpio: fix bindings document

2015-02-17 Thread Simon Glass
On 12 February 2015 at 02:49, Masahiro Yamada wrote: > [ imported from Linux Kernel, commit 74981fb81d83 ] > Signed-off-by: Masahiro Yamada > Acked-by: Laurent Pinchart > Signed-off-by: Linus Walleij Acked-by: Simon Glass ___ U-Boot mailing list U-B

Re: [U-Boot] [PULL] u-boot-socfpga/master

2015-02-17 Thread Tom Rini
On Tue, Feb 17, 2015 at 09:11:01PM +0100, Marek Vasut wrote: > Hi Tom, > > SoCFPGA stuff for current release. > > The following changes since commit 7f641d53bbb3a426a3bfb132d8346153e86a9d08: > > Merge branch 'master' of git://git.denx.de/u-boot-ubi (2015-02-04 13:30:00 > -0500) > > are avai

[U-Boot] omap_gpmc: Do not default to HAM1 when SW ECC is selected

2015-02-17 Thread Adam YH Lee
The ECC scheme selection algorithm in OMAP GPMC appears to be left untested when BCH8 handling code was added. Running 'nandecc sw' defaults to HAM1 even if the board is using another scheme (ex. OMAP_ECC_BCH8_CODE_HW_DETECTION_SW on OMAP3). This results in unrecoverable ECC errors when reading dat

Re: [U-Boot] [PATCH V3 3/3] rpi: add support for Raspberry Pi 2 model B

2015-02-17 Thread Simon Glass
Hi Stephen, On 16 February 2015 at 21:19, Stephen Warren wrote: > On 02/16/2015 09:15 PM, Simon Glass wrote: >> Hi Stephen, >> >> On 16 February 2015 at 21:09, Stephen Warren wrote: >>> >>> On 02/16/2015 06:03 PM, Tom Rini wrote: On Mon, Feb 16, 2015 at 12:16:15PM -0700, Stephen Warren wrot

Re: [U-Boot] u-boot for Snow problem

2015-02-17 Thread Simon Glass
Hi Michal, On 16 February 2015 at 04:41, Michal Suchanek wrote: > On 13 February 2015 at 05:51, Simon Glass wrote: >> Hi Michal, >> >> On 11 February 2015 at 10:16, Michal Suchanek wrote: >>> >>> Hello, >>> >>> I changed the SYS_START to work around the bug in the manufacturer >>> firmware, app

Re: [U-Boot] [PATCH 1/2] ARM: tegra: add function to clear pinmux CLAMPING bit

2015-02-17 Thread Simon Glass
Hi Stephen, On 17 February 2015 at 11:56, Stephen Warren wrote: > From: Stephen Warren > > This is needed to correctly apply the new Jetson TK1 pinmux config. > > Signed-off-by: Stephen Warren > --- > arch/arm/cpu/tegra-common/pinmux-common.c | 10 ++ > arch/arm/include/asm/arch-tegra/

[U-Boot] Question on the max size of SPL and OMAP3 SRAM

2015-02-17 Thread Adam Lee
I have a Gumstix Overo (OMAP3) with a 512MiB NAND. I have been validating BCH8 ecc scheme and one of the problems I ran into is this: arm-linux-gnueabi-ld.bfd: u-boot-spl section `.rodata' will not fit in region `.sram' arm-linux-gnueabi-ld.bfd: region `.sram' overflowed by 4092 bytes This happe

[U-Boot] [PULL v2] u-boot-avr32/master -> u-boot/master

2015-02-17 Thread Andreas Bießmann
Hi Tom, reworked pull request for avr32 generic board support. The following changes since commit 5745f8c4fd5807becf7f246625e153388293aedc: Merge git://git.denx.de/u-boot-marvell (2015-02-16 08:44:03 -0500) are available in the git repository at: git://git.denx.de/u-boot-avr32.git master

[U-Boot] [PATCH 4/4] configs: ti_omap5_common: Enable workaround for ARM errata 798870

2015-02-17 Thread Nishanth Menon
From: Angela Stegmaier Enable the workaround for ARM errata 798870 for OMAP5 and DRA7xx since they are Coretx-A15 r2. Signed-off-by: Angela Stegmaier Signed-off-by: Nishanth Menon --- include/configs/ti_omap5_common.h |4 1 file changed, 4 insertions(+) diff --git a/include/configs/

[U-Boot] [PATCH 1/4] ARM: OMAP: Change set_pl310_ctrl_reg to be generic

2015-02-17 Thread Nishanth Menon
set_pl310_ctrl_reg does use the Secure Monitor Call (SMC) to setup PL310 control register, however, that is something that is generic enough to be used for OMAP5 generation of processors as well. The only difference being the service being invoked for the function. So, convert the service to a mac

[U-Boot] [PATCH 2/4] ARM: OMAP5 / DRA7: Setup L2 Aux Control Register with recommended configuration

2015-02-17 Thread Nishanth Menon
Update to existing recommendation for L2ACTLR configuration to prevent system instability and optimize performance. These apply to both OMAP5 and DRA7. Reported-by: Vivek Chengalvala Signed-off-by: Nishanth Menon --- arch/arm/cpu/armv7/omap5/hwinit.c | 16 arch/arm

[U-Boot] [PATCH 3/4] ARM / OMAP5: Add workaround for ARM errata 798870

2015-02-17 Thread Nishanth Menon
From: Praveen Rao This patch adds workaround for ARM errata 798870 which says "If back-to-back speculative cache line fills (fill A and fill B) are issued from the L1 data cache of a CPU to the L2 cache, the second request (fill B) is then cancelled, and the second request would have detected a h

[U-Boot] [PATCH 0/4] ARM / OMAP5 / DRA7 : Enable proper l2actl configuration

2015-02-17 Thread Nishanth Menon
Hi, Triggered by a user report, it was seen that recommended errata workaround and performance trade-offs as recommended by TI architects for ARM configuration was not being followed in OMAP5+ ARM A15 platforms in u-boot configuration. Note OMAP5, DRA7 all share the same cortex A15 revision (ID=0x

Re: [U-Boot] [U-boot][PATCH] keystone2: add support for UART download

2015-02-17 Thread Nishanth Menon
On Tue, Feb 17, 2015 at 4:27 PM, Murali Karicheri wrote: >>> is complete the boot-loader sets the PC to the first MSMC address >>> 0x0c00. The u-boot.bin is linked to the address 0x0c001000. >> >> why not just shift u-boot.bin to start of MSMC address? > > What is wrong with the current implem

[U-Boot] [PATCH 10/20] tegra: clock: Support enabling external clocks

2015-02-17 Thread Simon Glass
Add a simple function to enable external clocks. Signed-off-by: Simon Glass --- arch/arm/cpu/tegra-common/clock.c | 17 + arch/arm/include/asm/arch-tegra/clock.h | 8 2 files changed, 25 insertions(+) diff --git a/arch/arm/cpu/tegra-common/clock.c b/arch/arm/cp

[U-Boot] [PATCH 14/20] tegra: Increase maximum arguments to 32

2015-02-17 Thread Simon Glass
When setting up large environment variables we can exceed 16 arguemnts. Increase this to avoid problems. Signed-off-by: Simon Glass --- include/configs/tegra-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/tegra-common.h b/include/configs/tegra-commo

Re: [U-Boot] [PATCH] fs: ext4 write: return file len on success

2015-02-17 Thread Stephen Warren
On 02/17/2015 07:31 AM, Przemyslaw Marczak wrote: After rework of the file system API, the size of ext4 write was missed. This causes printing unreliable write size at the end of the file system write operation. Tested-by: Stephen Warren This fixes the issue I mentioned in the DFU-related thr

[U-Boot] [PATCH 16/20] tegra: Allow board-specific init

2015-02-17 Thread Simon Glass
Add a hook to allows boards to add their own init to board_init(). Signed-off-by: Simon Glass --- arch/arm/include/asm/arch-tegra/sys_proto.h | 7 +++ board/nvidia/common/board.c | 8 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/arch/arm/include/a

Re: [U-Boot] [PATCH v2 0/8] arm: a few steps to reduce the boot time

2015-02-17 Thread Stephen Warren
On 02/17/2015 02:43 PM, Stephen Warren wrote: On 02/16/2015 08:13 AM, Przemyslaw Marczak wrote: This patchset reduces the boot time for ARM architecture, Exynos boards, and boards with DFU enabled. I tested this series on NVIDIA's Jetson TK1 board. It doesn't seem to introduce any new issues,

[U-Boot] [PATCH 11/20] tegra: clock: Adjust PLL access to avoid a warning

2015-02-17 Thread Simon Glass
A harmless but confusing warning is displayed when looking up the DisplayPort PLL. Correct this. Signed-off-by: Simon Glass --- arch/arm/cpu/tegra-common/clock.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm/cpu/tegra-common/clock.c b/arch/arm/cpu/tegra-co

Re: [U-Boot] [U-boot][PATCH] keystone2: add support for UART download

2015-02-17 Thread Murali Karicheri
Nishanth, On 02/16/2015 03:15 PM, Nishanth Menon wrote: On 02/16/2015 12:22 PM, Vitaly Andrianov wrote: Currently to flash u-boot image onto NAND or SPI NOR flash, very first time user need to use Code Composer Studio (CCS). This is cumbersome for an user not familiar with CCS. This patch add s

[U-Boot] [PATCH 08/20] dm: gpio: Add an implementation for gpio_get_number()

2015-02-17 Thread Simon Glass
This has a prototype but no implementation. It returns the global GPIO number given a gpio_desc. It is useful for debugging in some cases. Signed-off-by: Simon Glass --- drivers/gpio/gpio-uclass.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/gpio/gpio-uclass.c b/dri

[U-Boot] [PATCH 12/20] tegra: Introduce SRAM repair on tegra124

2015-02-17 Thread Simon Glass
This is required in order to avoid instability when running from caches after the kernel starts. Signed-off-by: Simon Glass --- arch/arm/cpu/tegra-common/powergate.c | 20 +++- arch/arm/include/asm/arch-tegra124/flow.h | 12 2 files changed, 31 insertions(+), 1

[U-Boot] [PATCH 17/20] tegra: nyan-big: Add additional clock and kernel init

2015-02-17 Thread Simon Glass
We need to turn on all audio-related clocks for the kernel to boot. Otherwise it will hang when trying to enable audio. Also for Linux set up the ODMDATA and graphics driver video protection. Signed-off-by: Simon Glass --- board/nvidia/nyan-big/nyan-big.c | 76 +

[U-Boot] [PATCH 19/20] tegra: config: Allow Chrome OS environment settings to be included

2015-02-17 Thread Simon Glass
Bring these in if they are provided by the board. Signed-off-by: Simon Glass --- include/configs/tegra-common-post.h | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/configs/tegra-common-post.h b/include/configs/tegra-common-post.h index 2de5d36..a004b0b 100644

[U-Boot] [PATCH 20/20] tegra: config: nyan-big: Add options required by Chrome OS boot

2015-02-17 Thread Simon Glass
We need to match the device tree in the FIT with the U-Boot model so we can automatically select the right device tree. Also adjust the load address so that the device tree is not in the way when a zImage kernel tries to extract itself. Signed-off-by: Simon Glass --- include/configs/nyan-big.h

[U-Boot] [PATCH 13/20] tegra: Add missing tegra124 peripherals

2015-02-17 Thread Simon Glass
There are some missing entries in the tables. Add them. Signed-off-by: Simon Glass --- arch/arm/cpu/tegra124-common/clock.c | 2 +- arch/arm/include/asm/arch-tegra124/clock-tables.h | 12 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arm/cpu/tegr

[U-Boot] [PATCH 09/20] tegra: spi: Support slow SPI rates

2015-02-17 Thread Simon Glass
Use the oscillator as the source clock when we cannot achieve a low-enough speed with the peripheral clock. This happens when we request 3MHz on a SPI clock, for example. Signed-off-by: Simon Glass --- drivers/spi/tegra114_spi.c | 18 +++--- 1 file changed, 15 insertions(+), 3 delet

[U-Boot] [PATCH 15/20] tegra: lcd: Tidy up clock init

2015-02-17 Thread Simon Glass
Use the correct function for clock init. Signed-off-by: Simon Glass --- drivers/video/tegra124/tegra124-lcd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/tegra124/tegra124-lcd.c b/drivers/video/tegra124/tegra124-lcd.c index 55f63b1..d5b301d 100644 --- a

[U-Boot] [PATCH 18/20] Add Chrome OS config header

2015-02-17 Thread Simon Glass
From: Doug Anderson This header includes useful scripts which can be used with any board that can boot Chrome OS. In particular, 'run nvboot' will boot a board without verified boot enabled. Signed-off-by: Doug Anderson Signed-off-by: Simon Glass --- include/configs/chromeos.h | 464 +++

[U-Boot] [PATCH 06/20] tegra: spi: Drop the claim_bus() method to correct delays

2015-02-17 Thread Simon Glass
At present the driver does not properly honour the requested SPI CS deactivation delay since the SPI bus is changed in the claim_bus() method. Everything the claim_bus() method does can be done when the device is probed (setting the speed and mode) and at the start of a new transfer (where the fif

[U-Boot] [PATCH 02/20] cros_ec: Show the protocol version in the debug message

2015-02-17 Thread Simon Glass
When starting up, show the protocol version that has been negotiated with the EC. Signed-off-by: Simon Glass --- drivers/misc/cros_ec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/misc/cros_ec.c b/drivers/misc/cros_ec.c index 5846e76..962d1dd 100644 --- a/drive

[U-Boot] [PATCH 07/20] dm: tegra: cros_ec: Enable Chrome OS EC on Nyan-big

2015-02-17 Thread Simon Glass
Enable the EC and keyboard, using the SPI bus. The EC driver requires a particular format and a deactivation delay. Also U-Boot does not support interrupts. For now, adjust the device tree to comply. At some point we should tidy this up to support interrupts and make tegra and exynos use the same

[U-Boot] [PATCH 04/20] tegra: Provide more accurate microsecond time

2015-02-17 Thread Simon Glass
Add an implementation of the timer functions for tegra, so that timing is more accurate. Tegra has a 1 microsecond timer for this purpose. Signed-off-by: Simon Glass --- arch/arm/cpu/tegra-common/Makefile | 1 + arch/arm/cpu/tegra-common/timer.c | 87 ++ 2

[U-Boot] [PATCH 03/20] cros_ec: Handle the single duplex requirement in cros_ec

2015-02-17 Thread Simon Glass
With several chips using the SPI protocol it seems better to put the single duplex functionality in the EC rather than the SPI driver. Signed-off-by: Simon Glass --- drivers/misc/cros_ec_spi.c | 23 --- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/drivers/m

[U-Boot] [PATCH 01/20] dm: spi: Avoid setting the speed with every transfer

2015-02-17 Thread Simon Glass
Only set the speed if it has changed from last time. Since the speed will be 0 when the device is probed it will always be changed on the first transfer after the device is probed. Signed-off-by: Simon Glass --- drivers/spi/spi-uclass.c | 9 ++--- include/spi.h| 3 +++ 2 files c

[U-Boot] [PATCH 05/20] tegra: cros_ec: Add tegra support for Chrome OS EC

2015-02-17 Thread Simon Glass
This requires a change to stdin to include the 'cros-ec-keyb' input device. Put this in the common file, enabled by the relevant CONFIG. Signed-off-by: Simon Glass --- include/configs/tegra-common-post.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/configs/

[U-Boot] [PATCH 0/20] tegra: Expand Nyan-big support

2015-02-17 Thread Simon Glass
This series expands Nyan-big support: - Enable Chrome OS EC, so that the keyboard works - Add some extra clock and pre-kernel init required for reliable operation - Add Chrome OS environment variables, including 'run nvboot' to allow booting Chrome OS more easily Still missing are audio and USB.

Re: [U-Boot] [U-boot][PATCH v2] keystone2: add support for UART download

2015-02-17 Thread Nishanth Menon
On Tue, Feb 17, 2015 at 3:43 PM, Vitaly Andrianov wrote: > > The purpose of the patch is provide a way to download to KS2 internal RAM > and boot previously built u-boot.bin. But not to improve or change anything > else. > > V2 just addressed comments related to the atch itself, but not other > co

Re: [U-Boot] [PATCH v2 0/8] arm: a few steps to reduce the boot time

2015-02-17 Thread Stephen Warren
On 02/16/2015 08:13 AM, Przemyslaw Marczak wrote: This patchset reduces the boot time for ARM architecture, Exynos boards, and boards with DFU enabled. I tested this series on NVIDIA's Jetson TK1 board. It doesn't seem to introduce any new issues, but I did find a couple have crept in recently

Re: [U-Boot] [U-boot][PATCH v2] keystone2: add support for UART download

2015-02-17 Thread Vitaly Andrianov
On 02/17/2015 12:17 PM, Nishanth Menon wrote: On 02/17/2015 10:39 AM, Vitaly Andrianov wrote: Currently to flash u-boot image onto NAND or SPI NOR flash, very first time user need to use Code Composer Studio (CCS). This is cumbersome for an user not familiar with CCS. This patch add simpler proc

Re: [U-Boot] [PATCH v2 11/12] tegra124: Reserve secure RAM using MC_SECURITY_CFG{0, 1}_0

2015-02-17 Thread Stephen Warren
On 02/16/2015 05:54 AM, Jan Kiszka wrote: From: Ian Campbell These registers can be used to prevent non-secure world from accessing a megabyte aligned region of RAM, use them to protect the u-boot secure monitor code. At first I tried to do this from s_init(), however this inexplicably causes

Re: [U-Boot] [PATCH v2 10/12] jetson-tk1: Add PSCI configuration options and reserve secure code

2015-02-17 Thread Stephen Warren
On 02/16/2015 05:54 AM, Jan Kiszka wrote: The secure world code is relocated to the MB just below the top of 4G, we reserve it in the FDT (by setting CONFIG_ARMV7_SECURE_RESERVE_SIZE) but it is not protected in h/w. See next patch. diff --git a/include/configs/jetson-tk1.h b/include/configs/je

Re: [U-Boot] [PATCH v2 09/12] tegra124: Add PSCI support for Tegra124

2015-02-17 Thread Stephen Warren
On 02/16/2015 05:54 AM, Jan Kiszka wrote: This is based on Thierry Reding's work and uses Ian Campell's preparatory patches. It comes with full support for CPU_ON/OFF PSCI services. The algorithm used in this version for turning CPUs on and off was proposed by Thierry Reding in http://thread.gman

Re: [U-Boot] [PATCH 4/4] apalis/colibri_t30: add misc cmds increase buf sizes and max args

2015-02-17 Thread Stephen Warren
On 02/17/2015 07:28 AM, Marcel Ziswiler wrote: In order to work with our downstream U-Boot environment and update scripts add support for the following miscellaneous commands: CONFIG_CMD_SETEXPR CONFIG_FAT_WRITE CONFIG_CMDLINE_EDITING README isn't very informative on this subject. What does

Re: [U-Boot] [ANN] U-Boot v2015.01-rc2 released

2015-02-17 Thread Simon Glass
Hi Tom, On 17 February 2015 at 13:25, Tom Rini wrote: > Hey all, > > I've pushed v2015.01-rc2 out. Due to a hiccup (that is being worked on > right now), things aren't up in the usual place yet but I expect them to > be in the next day or so. Until then, it's also available at > https://github.

Re: [U-Boot] [PATCH 1/4] dm: tegra: dts: add aliases for spi on apalis_t30

2015-02-17 Thread Stephen Warren
On 02/17/2015 07:28 AM, Marcel Ziswiler wrote: All boards with a SPI interface have a suitable spi alias except Apalis T30. Add these missing aliases just as the following commit did for the others: d2f60f93325ac31f5f30ee94f15b87c89db46aec You probably don't need to respin like this, but it's

[U-Boot] [ANN] U-Boot v2015.01-rc2 released

2015-02-17 Thread Tom Rini
Hey all, I've pushed v2015.01-rc2 out. Due to a hiccup (that is being worked on right now), things aren't up in the usual place yet but I expect them to be in the next day or so. Until then, it's also available at https://github.com/u-boot/u-boot (but please don't start updating distro recipes t

Re: [U-Boot] [U-Boot, 1/3] ARM: DRA72x: DDR3: Fix EMIF timings for 666MHz clock

2015-02-17 Thread Tom Rini
On Mon, Feb 16, 2015 at 10:15:55AM +0530, Lokesh Vutla wrote: > From: Angela Stegmaier > > DDR3 timing and latency paramenters were not configured > correctly for 666MHz. Fixing the timing and latency values > according to Data sheet. > This fixes the random crashes seen on DRA72-evm. > > Signe

Re: [U-Boot] keystone2: ddr3: eliminate using global ddr3_size variable

2015-02-17 Thread Tom Rini
On Wed, Feb 11, 2015 at 02:07:58PM -0500, Vitaly Andrianov wrote: > KS2 ddr3 initialization uses ddr3_size global variable before u-boot > relocation. Even if the variable is not being used after relocation, > writing to it corrupts relocation table. > > This patch removes the global ddr3_size va

Re: [U-Boot] mtd, omap: fix case NAND_OMAP_GPMC_PREFETCH not defined

2015-02-17 Thread Tom Rini
On Fri, Feb 13, 2015 at 03:47:10PM +0100, Egli, Samuel wrote: > The patch c316f577b4b72d1a1aeb559e9b3fad20808f1ffd breaks > siemens boards because prefetch mode is not enabled. > I assume it breaks other boards as well that don't use > prefetch. > > This patch sets read_buf to nand_read_buf if >

Re: [U-Boot] [U-Boot,v3,6/6] KM/IVM: remove ivm_read_eeprom(void)

2015-02-17 Thread Tom Rini
On Tue, Feb 10, 2015 at 05:10:18PM +0100, Valentin Longchamp wrote: > This is not used anymore since the procedure was split into a simple > read function and a later alaysis. > > The ivm_read_eeprom name is now used for the previous > ivm_simple_read_eeprom function. > > Signed-off-by: Valentin

Re: [U-Boot] [U-Boot, 1/3] ARM: DRA72x: DDR3: Fix EMIF timings for 666MHz clock

2015-02-17 Thread Tom Rini
On Mon, Feb 16, 2015 at 10:15:55AM +0530, Lokesh Vutla wrote: > From: Angela Stegmaier > > DDR3 timing and latency paramenters were not configured > correctly for 666MHz. Fixing the timing and latency values > according to Data sheet. > This fixes the random crashes seen on DRA72-evm. > > Signe

Re: [U-Boot] [U-Boot, v3, 1/6] KM/IVM: split the IVM reading and parsing in 2 parts

2015-02-17 Thread Tom Rini
On Tue, Feb 10, 2015 at 05:10:13PM +0100, Valentin Longchamp wrote: > This allows to first read the IVM content (earlier in the boot sequence) > and define the ethaddr env variable thanks to the ivm_read_eepromi(). > Later, the IVM content can be parsed and used to define some hush > variables, wh

Re: [U-Boot] ARM: lpc3250: config: add generic board support

2015-02-17 Thread Tom Rini
On Thu, Feb 12, 2015 at 12:24:20AM +0200, Vladimir Zapolskiy wrote: > The only LPC3250 board works fine with enabled generic board support, > add CONFIG_SYS_GENERIC_BOARD right into the arch config header. > > Signed-off-by: Vladimir Zapolskiy Applied to u-boot/master, thanks! -- Tom signat

Re: [U-Boot] [U-Boot, 2/3] ARM: DRA7: EMIF: Update SDRAM_REF_CTRL register value

2015-02-17 Thread Tom Rini
On Mon, Feb 16, 2015 at 10:15:56AM +0530, Lokesh Vutla wrote: > The value in SDRAM_REF_CTRL controls the delay time between > the initial rising edge of DDR_RESETn to rising edge of DDR_CKE > (JEDEC specs this as 500us). In order to achieve this, SDRAM_REF_CTRL > should be written with a value cor

Re: [U-Boot] clock_am43xx:Set the MAC clock to /5 for OPP100

2015-02-17 Thread Tom Rini
On Wed, Feb 11, 2015 at 06:54:28PM -0500, Tom Rini wrote: > From: Steve Kipisz > > When EMAC is in the boot order, the boot ROM sets OPP50 and the > MAC clock is set to /2. SPL needs to change it to /5 for Ethernet > to generate the correct txclk. This patch sets it correctly. > > Signed-off-by

Re: [U-Boot] [U-Boot, 3/3] ARM: DRA7-evm: DDR3: Update leveling values

2015-02-17 Thread Tom Rini
On Mon, Feb 16, 2015 at 10:15:57AM +0530, Lokesh Vutla wrote: > Update the software leveling parameters. > This fixes the random crash seen on DRA7-evm. > > Signed-off-by: Lokesh Vutla Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature

Re: [U-Boot] Please pull u-boot-sunxi master

2015-02-17 Thread Tom Rini
On Mon, Feb 16, 2015 at 08:39:31PM +0100, Hans de Goede wrote: > Hi Tom, > > As discussed here is a pull-req to fix the FEL booting issue. We > had already build up a queue of some misc. fixes in u-boot-sunxi/next, > so those are included too. > > The following changes since commit bd2a4888b1237

Re: [U-Boot] [U-Boot, v3, 2/6] kirkwood/km_arm: read the IVM eeprom earlier

2015-02-17 Thread Tom Rini
On Tue, Feb 10, 2015 at 05:10:14PM +0100, Valentin Longchamp wrote: > This allows to define the ethaddr env variable according to the the IVM > content by reading the IVM in misc_init_r. > > Later, when HUSH is available the content read earlier is analyzed to > populate some non env variables. >

Re: [U-Boot] [U-Boot, v3, 4/6] 83xx/km83xx: read the IVM eeprom earlier

2015-02-17 Thread Tom Rini
On Tue, Feb 10, 2015 at 05:10:16PM +0100, Valentin Longchamp wrote: > This allows to define the ethaddr env variable according to the the IVM > content by reading the IVM in misc_init_r. > > Later, when HUSH is available the content read earlier is analyzed to > populate some non env variables. >

Re: [U-Boot] net: keystone_net: move serdes setup to initialization function

2015-02-17 Thread Tom Rini
On Wed, Feb 11, 2015 at 02:05:41PM -0500, Vitaly Andrianov wrote: > On Keystone2 devices serdes must be initialized before accessing MDIO bus. > This commit moves the keystone2_net_serdes_setup() from keystone2_eth_open > to keystone2_emac_initialize to meet that requirement. > > This also elimin

Re: [U-Boot] [U-Boot, v3, 5/6] 82xx/km82xx: read the IVM eeprom earlier

2015-02-17 Thread Tom Rini
On Tue, Feb 10, 2015 at 05:10:17PM +0100, Valentin Longchamp wrote: > This allows to define the ethaddr env variable according to the the IVM > content by reading the IVM in misc_init_r. > > Later, when HUSH is available the content read earlier is analyzed to > populate some non env variables. >

Re: [U-Boot] [U-Boot, v3, 3/6] 85xx/kmp204x: read the IVM eeprom earlier

2015-02-17 Thread Tom Rini
On Tue, Feb 10, 2015 at 05:10:15PM +0100, Valentin Longchamp wrote: > This allows to define the ethaddr env variable according to the the IVM > content by reading the IVM in misc_init_r. > > Later, when HUSH is available the content read earlier is analyzed to > populate some non env variables. >

Re: [U-Boot] [U-Boot, v3, 3/6] 85xx/kmp204x: read the IVM eeprom earlier

2015-02-17 Thread Tom Rini
On Tue, Feb 10, 2015 at 05:10:15PM +0100, Valentin Longchamp wrote: > This allows to define the ethaddr env variable according to the the IVM > content by reading the IVM in misc_init_r. > > Later, when HUSH is available the content read earlier is analyzed to > populate some non env variables. >

Re: [U-Boot] [U-Boot,v2] spl, spl_nor: fix compiler warning

2015-02-17 Thread Tom Rini
On Fri, Feb 06, 2015 at 09:31:36AM +0100, Heiko Schocher wrote: > executing "tools/buildman/buildman mpc5xx" drops this warning: > > common/spl/spl_nor.c: In function 'spl_nor_load_image': > common/spl/spl_nor.c:26:10: warning: assignment discards 'const' qualifier > from pointer target type [en

Re: [U-Boot] [U-Boot,v1] tools/imagetool: remove linker script

2015-02-17 Thread Tom Rini
On Mon, Feb 09, 2015 at 12:06:10AM +0100, Andreas Bießmann wrote: > Commit a93648d197df48fa46dd55f925ff70468bd81c71 introduced linker generated > lists for imagetool which is the base for some host tools (mkimage, dumpimage, > et al.). Unfortunately some host tool chains do not support the used t

Re: [U-Boot] [U-Boot, v2] image: Convert to use fdt_for_each_subnode macro

2015-02-17 Thread Tom Rini
On Sat, Feb 07, 2015 at 09:12:39AM +0800, Axel Lin wrote: > Use fdt_for_each_subnode macro to simplify the code a bit. > > Signed-off-by: Axel Lin > Acked-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature _

Re: [U-Boot] [U-Boot, v2] config_distro_bootcmd.h: Enable CONFIG_CMD_PART

2015-02-17 Thread Tom Rini
On Sat, Feb 07, 2015 at 01:38:19PM +0100, Hans de Goede wrote: > The recent changes to config_distro_bootcmd.h require CONFIG_CMD_PART to be > defined, as the default bootcmd now uses the "part" command. > > This fixes sunxi boards not booting with v2015.04-rc1. > > Signed-off-by: Hans de Goede

  1   2   >