Re: [U-Boot] [PATCH 0/3] ARM: uniphier: more patches for bulk updates for v2016.05-rc1

2016-03-23 Thread Masahiro Yamada
2016-03-23 1:40 GMT+09:00 Masahiro Yamada : > > > > Masahiro Yamada (3): > ARM: uniphier: fix README instruction for updating U-Boot via TFTP > ARM: uniphier: add NOR boot support > ARM: uniphier: switch to raw U-Boot image Series, Applied to

Re: [U-Boot] [RFC V2 PATCH 3/3] mmc: add support for block device cache

2016-03-23 Thread Eric Nelson
Hi Stephen, On 03/23/2016 10:27 AM, Stephen Warren wrote: > On 03/20/2016 07:45 PM, Eric Nelson wrote: > >> diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c > >> @@ -6,7 +6,6 @@ >>* >>* SPDX-License-Identifier:GPL-2.0+ >>*/ >> - >> #include > > Unrelated change? > Yes.

Re: [U-Boot] [RFC V2 PATCH 3/3] mmc: add support for block device cache

2016-03-23 Thread Stephen Warren
On 03/20/2016 07:45 PM, Eric Nelson wrote: diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c @@ -6,7 +6,6 @@ * * SPDX-License-Identifier: GPL-2.0+ */ - #include Unrelated change? I don't see any cache invalidation call when the SD device is re-initialized. I think I

Re: [U-Boot] [RFC V2 PATCH 1/3] drivers: block: add block device cache

2016-03-23 Thread Eric Nelson
Hi Stephen, Thanks again for the detailed review. On 03/23/2016 10:22 AM, Stephen Warren wrote: > On 03/20/2016 07:45 PM, Eric Nelson wrote: >> Add a block device cache to speed up repeated reads of block devices by >> various filesystems. >> >> This small amount of cache can dramatically speed

Re: [U-Boot] [RFC V2 PATCH 2/3] block: add Kconfig options for [CMD_]BLOCK_CACHE

2016-03-23 Thread Eric Nelson
On 03/23/2016 10:24 AM, Stephen Warren wrote: > On 03/20/2016 07:45 PM, Eric Nelson wrote: >> Allow the selection of CONFIG_BLOCK_CACHE, CONFIG_CMD_BLOCK_CACHE >> using menuconfig. > > I think this should be part of patch 1. Works for me, especially as it adds some documentation in the form of

[U-Boot] pull request: u-boot-uniphier/master

2016-03-23 Thread Masahiro Yamada
Hi Tom, Here is a series of UniPhier SoCs updates for v2016.5-rc1. It includes ARM64 compiler warning fixes, cleanups, new SoC/board DTS, and misc changes. The following changes since commit 0764f24ae6bc937e358990c357f7452b4d5351e3: net: Move CONFIG_RTL8169 to Kconfig (2016-03-22 12:19:53

[U-Boot] [PATCH] sunxi: A83T: fix 32bit overflow warning

2016-03-23 Thread Vishnu Patekar
In mctl_channel_init, (0x50<<26) which overflows 32bit. It was supposed to be 0x50<<16,corrected now. Reported-by: Hans de Goede Signed-off-by: Vishnu Patekar --- arch/arm/cpu/armv7/sunxi/dram_sun8i_a83t.c | 2 +- 1 file changed, 1

Re: [U-Boot] [PATCH] mtd: denali: fix warning when compiled for 64bit system

2016-03-23 Thread Masahiro Yamada
2016-02-29 20:57 GMT+09:00 Masahiro Yamada : > The 64-bit compiler (ex. aarch64) emits "warning: cast from pointer > to integer of different size". > > Make it work with 64bit DMA address while I am here. > > Signed-off-by: Masahiro Yamada

Re: [U-Boot] [PATCH v2] spl_mmc: allow to load raw image

2016-03-23 Thread Masahiro Yamada
2016-03-16 12:10 GMT+09:00 Masahiro Yamada : > The function spl_parse_image_header() falls back to a raw image > if the U-Boot header is missing and CONFIG_SPL_PANIC_ON_RAW_IMAGE > is undefined. While, mmc_load_image_raw_sector() only accepts a > U-Boot legacy image

Re: [U-Boot] [RFC V2 PATCH 1/3] drivers: block: add block device cache

2016-03-23 Thread Stephen Warren
On 03/20/2016 07:45 PM, Eric Nelson wrote: Add a block device cache to speed up repeated reads of block devices by various filesystems. This small amount of cache can dramatically speed up filesystem operations by skipping repeated reads of common areas of a block device (typically directory

Re: [U-Boot] [PATCH 5/5] lib: Enable private libgcc by default

2016-03-23 Thread Albert ARIBAUD
Hello Tom, On Wed, 23 Mar 2016 09:22:38 -0400, Tom Rini wrote: > On Wed, Mar 23, 2016 at 01:53:35PM +0100, Albert ARIBAUD wrote: > > Hello Marek, > > > > On Sun, 20 Mar 2016 17:15:34 +0100, Marek Vasut wrote: > > > This patch decouples U-Boot binary from the

Re: [U-Boot] [PATCH v1] Revert "fastboot: OUT transaction length must be aligned to wMaxPacketSize"

2016-03-23 Thread Steve Rae
On Wed, Mar 23, 2016 at 12:40 PM, Sam Protsenko wrote: > On Wed, Mar 23, 2016 at 7:40 PM, Steve Rae wrote: >> Lukasz & Sam: >> >> On Wed, Mar 23, 2016 at 8:54 AM, Sam Protsenko >> wrote: >>> >>> On Wed, Mar 23, 2016

Re: [U-Boot] [PATCH v1] Revert "fastboot: OUT transaction length must be aligned to wMaxPacketSize"

2016-03-23 Thread Sam Protsenko
On Wed, Mar 23, 2016 at 7:40 PM, Steve Rae wrote: > Lukasz & Sam: > > On Wed, Mar 23, 2016 at 8:54 AM, Sam Protsenko > wrote: >> >> On Wed, Mar 23, 2016 at 11:49 AM, Lukasz Majewski >> wrote: >> > Hi Marek, >> > >> >>

[U-Boot] [RFC PATCH v1] armv8: LS2080A: Consolidate LS2080A and LS2085A

2016-03-23 Thread York Sun
LS2080A is the primary SoC, and LS2085A is a personality with AIOP and DPAA DDR. The RDB and QDS boards support both personality. By detecting the SVR at runtime, a single image per board can support both SoCs. It gives users flexibility to swtich SoC without the need to reprogram the board.

Re: [U-Boot] sunxi: A83T: fix 32bit overflow warning

2016-03-23 Thread Hans de Goede
Hi, On 23-03-16 18:54, vishnupatekar wrote: In mctl_channel_init, (0x50<<26) which overflows 32bit. It was supposed to be 0x50<<16,corrected now. Reported-by: Hans de Goede Signed-off-by: Vishnu Patekar Thanks, applied. Regards, Hans

Re: [U-Boot] [PATCH 5/5] lib: Enable private libgcc by default

2016-03-23 Thread Tom Rini
On Wed, Mar 23, 2016 at 06:08:45PM +0100, Albert ARIBAUD wrote: > Hello Tom, > > On Wed, 23 Mar 2016 09:22:38 -0400, Tom Rini wrote: > > On Wed, Mar 23, 2016 at 01:53:35PM +0100, Albert ARIBAUD wrote: > > > Hello Marek, > > > > > > On Sun, 20 Mar 2016 17:15:34 +0100, Marek

[U-Boot] [RFC PATCH v1 0/1] Use LS2080A as the only SoC name

2016-03-23 Thread York Sun
Not long ago, a change was made in U-Boot to switch the primary SoC from LS2085A to LS2080A. SoC name and board names were changed. It turns out the same board support both SoCs with a socket. It is possible to swtich SoC. In this case, using one unified image is more appropriate. If future SoC

[U-Boot] [PATCH] armv8/ls1043aqds: dts: set SPI mode for DSPI

2016-03-23 Thread Gong Qianyu
It's necessary to set the clock phase and polarity for DSPI flash or it could not work properly. Signed-off-by: Gong Qianyu --- arch/arm/dts/fsl-ls1043a-qds.dtsi | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/fsl-ls1043a-qds.dtsi

Re: [U-Boot] [PATCH v2] sunxi: Select CONFIG_OF_BOARD_SETUP from CONFIG_VIDEO

2016-03-23 Thread Ian Campbell
On Tue, 2016-03-22 at 23:08 +0100, Hans de Goede wrote: > Select OF_BOARD_SETUP when CONFIG_VIDEO is set, rather then having it > in > almost all our defconfigs. This also fixes it missing from some > recently > added defconfigs. > > Signed-off-by: Hans de Goede > --- >

Re: [U-Boot] [PATCH v2] sunxi: Select CONFIG_OF_BOARD_SETUP from CONFIG_VIDEO

2016-03-23 Thread Hans de Goede
Hi, On 23-03-16 10:26, Ian Campbell wrote: On Tue, 2016-03-22 at 23:08 +0100, Hans de Goede wrote: Select OF_BOARD_SETUP when CONFIG_VIDEO is set, rather then having it in almost all our defconfigs. This also fixes it missing from some recently added defconfigs. Signed-off-by: Hans de Goede

Re: [U-Boot] [PATCHv3 2/2] Add support the Avionic Design Meerkat COM and Kein Baseboard

2016-03-23 Thread Julian Scheel
On 04.03.2016 08:32, Julian Scheel wrote: Add support for platforms based on the Meerkat COM module. Includes support for the minimal reference platform called Kein Baseboard, which in fact is sufficient to run most existing Meerkat carriers. Signed-off-by: Julian Scheel ---

[U-Boot] [PATCH 1/2] armv8: fsl-layerscape: change LS1043A SVR register

2016-03-23 Thread Gong Qianyu
From: Mingkai Hu Signed-off-by: Mingkai Hu Signed-off-by: Gong Qianyu --- arch/arm/include/asm/arch-fsl-layerscape/soc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [U-Boot] [PATCH v1] Revert "fastboot: OUT transaction length must be aligned to wMaxPacketSize"

2016-03-23 Thread Lukasz Majewski
Hi Marek, > On 03/23/2016 01:50 AM, Steve Rae wrote: > > This reverts commit 9e4b510d40310bf46e09f4edd0a0b6356213df47. > > > > Signed-off-by: Steve Rae > > --- > > As discussed on the mailing list, this change breaks the download > > portion of fastboot by causing the server

Re: [U-Boot] pull request: u-boot-uniphier/master

2016-03-23 Thread Tom Rini
On Thu, Mar 24, 2016 at 01:56:11AM +0900, Masahiro Yamada wrote: > Hi Tom, > > > Here is a series of UniPhier SoCs updates for v2016.5-rc1. > It includes ARM64 compiler warning fixes, cleanups, new SoC/board DTS, > and misc changes. > > > > The following changes since commit

Re: [U-Boot] [PATCH 5/5] lib: Enable private libgcc by default

2016-03-23 Thread Sergey Kubushyn
On Thu, 24 Mar 2016, Marek Vasut wrote: On 03/24/2016 12:08 AM, Tom Rini wrote: On Wed, Mar 23, 2016 at 04:02:07PM -0700, Sergey Kubushyn wrote: On Wed, 23 Mar 2016, Tom Rini wrote: On Wed, Mar 23, 2016 at 06:08:45PM +0100, Albert ARIBAUD wrote: Hello Tom, On Wed, 23 Mar 2016 09:22:38

Re: [U-Boot] [PATCH 5/5] lib: Enable private libgcc by default

2016-03-23 Thread Sergey Kubushyn
On Wed, 23 Mar 2016, Tom Rini wrote: On Wed, Mar 23, 2016 at 06:08:45PM +0100, Albert ARIBAUD wrote: Hello Tom, On Wed, 23 Mar 2016 09:22:38 -0400, Tom Rini wrote: On Wed, Mar 23, 2016 at 01:53:35PM +0100, Albert ARIBAUD wrote: Hello Marek, On Sun, 20 Mar 2016 17:15:34

[U-Boot] [PATCH] arm: mxs: Update MX28EVK config

2016-03-23 Thread Marek Vasut
Enable FIT image support, EXT4 support and generic FS support. Signed-off-by: Marek Vasut Cc: Stefano Babic Cc: Fabio Estevam --- configs/mx28evk_defconfig | 1 + include/configs/mx28evk.h | 3 +++ 2 files changed, 4 insertions(+) diff

Re: [U-Boot] [PATCH v2 1/2] fastboot: sparse: fix block addressing for don't care chunk type

2016-03-23 Thread Steve Rae
On Wed, Mar 9, 2016 at 12:46 PM, Maxime Ripard wrote: > On Tue, Feb 09, 2016 at 11:19:10AM -0800, Steve Rae wrote: >> When 7bfc3b1 (sparse: Refactor chunk parsing function) was implemented, >> it dropped 9981945 (aboot: fix block addressing for don't care chunk

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

2016-03-23 Thread Hans de Goede
Hi Tom, Here is the first sunxi pull-req for v2016.05, it contains: -A sync of the sunxi dts files with the kernel -Addition of support for 10 new boards -Various fixes The following changes since commit 0764f24ae6bc937e358990c357f7452b4d5351e3: net: Move CONFIG_RTL8169 to Kconfig

Re: [U-Boot] [PATCH 5/5] lib: Enable private libgcc by default

2016-03-23 Thread Tom Rini
On Wed, Mar 23, 2016 at 04:02:07PM -0700, Sergey Kubushyn wrote: > On Wed, 23 Mar 2016, Tom Rini wrote: > > >On Wed, Mar 23, 2016 at 06:08:45PM +0100, Albert ARIBAUD wrote: > >>Hello Tom, > >> > >>On Wed, 23 Mar 2016 09:22:38 -0400, Tom Rini wrote: > >>>On Wed, Mar 23, 2016

Re: [U-Boot] [PATCH 5/5] lib: Enable private libgcc by default

2016-03-23 Thread Sergey Kubushyn
On Wed, 23 Mar 2016, Tom Rini wrote: On Wed, Mar 23, 2016 at 04:02:07PM -0700, Sergey Kubushyn wrote: On Wed, 23 Mar 2016, Tom Rini wrote: On Wed, Mar 23, 2016 at 06:08:45PM +0100, Albert ARIBAUD wrote: Hello Tom, On Wed, 23 Mar 2016 09:22:38 -0400, Tom Rini wrote: On

Re: [U-Boot] [PATCH 5/5] lib: Enable private libgcc by default

2016-03-23 Thread Marek Vasut
On 03/24/2016 12:08 AM, Tom Rini wrote: > On Wed, Mar 23, 2016 at 04:02:07PM -0700, Sergey Kubushyn wrote: >> On Wed, 23 Mar 2016, Tom Rini wrote: >> >>> On Wed, Mar 23, 2016 at 06:08:45PM +0100, Albert ARIBAUD wrote: Hello Tom, On Wed, 23 Mar 2016 09:22:38 -0400, Tom Rini

Re: [U-Boot] [PATCH 5/5] lib: Enable private libgcc by default

2016-03-23 Thread Marek Vasut
On 03/24/2016 12:47 AM, Sergey Kubushyn wrote: > On Thu, 24 Mar 2016, Marek Vasut wrote: > >> On 03/24/2016 12:08 AM, Tom Rini wrote: >>> On Wed, Mar 23, 2016 at 04:02:07PM -0700, Sergey Kubushyn wrote: On Wed, 23 Mar 2016, Tom Rini wrote: > On Wed, Mar 23, 2016 at 06:08:45PM +0100,

Re: [U-Boot] [PATCH v2 2/2] fastboot: sparse: remove unnecessary logging

2016-03-23 Thread Steve Rae
On Wed, Mar 9, 2016 at 12:47 PM, Maxime Ripard wrote: > On Tue, Feb 09, 2016 at 11:19:11AM -0800, Steve Rae wrote: >> remove logging of the 'skipped' blocks >> >> Signed-off-by: Steve Rae > > Acked-by: Maxime Ripard

Re: [U-Boot] [PATCH 5/5] lib: Enable private libgcc by default

2016-03-23 Thread Sergey Kubushyn
On Thu, 24 Mar 2016, Marek Vasut wrote: On 03/24/2016 12:47 AM, Sergey Kubushyn wrote: On Thu, 24 Mar 2016, Marek Vasut wrote: On 03/24/2016 12:08 AM, Tom Rini wrote: On Wed, Mar 23, 2016 at 04:02:07PM -0700, Sergey Kubushyn wrote: On Wed, 23 Mar 2016, Tom Rini wrote: On Wed, Mar 23,

Re: [U-Boot] [RFC V2 PATCH 2/3] block: add Kconfig options for [CMD_]BLOCK_CACHE

2016-03-23 Thread Stephen Warren
On 03/20/2016 07:45 PM, Eric Nelson wrote: Allow the selection of CONFIG_BLOCK_CACHE, CONFIG_CMD_BLOCK_CACHE using menuconfig. I think this should be part of patch 1. ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH 2/2] ARM: keystone2: Add missing privilege ID settings

2016-03-23 Thread Lokesh Vutla
On Wednesday 23 March 2016 08:44 PM, Nishanth Menon wrote: > Add missing Privilege ID settings for KS2 SoCs. > > Based on: > K2H/K: Table 6-7. Privilege ID Settings from SPRS866E (Nov 2013) > http://www.ti.com/lit/ds/symlink/66ak2h14.pdf (page 99) > K2L: Table 7-7. Privilege ID Settings from

Re: [U-Boot] [PATCH 1/2] ARM: keystone2: Refactor MSMC macros to avoid #ifdeffery

2016-03-23 Thread Lokesh Vutla
On Wednesday 23 March 2016 08:44 PM, Nishanth Menon wrote: > MSMC segment Privilege ID is not consistent accross the keystone2 SoCs. > As the first step to ensure complete SoC wide coherency setup, lets > refactor the macros to remove the #if-deffery around the code which > obfuscates which IDs

[U-Boot] [PATCH v4 5/5] bcm2835 video: Map fb as cached

2016-03-23 Thread Alexander Graf
The bcm2835 frame buffer is in RAM, so we can easily map it as cached and gain all the glorious performance boost that brings with it. Signed-off-by: Alexander Graf --- v2 -> v3: - Fix align parameters - Fix whitespace v3 -> v4: - Align start of fb as well to align with

Re: [U-Boot] [PATCH 5/5] lib: Enable private libgcc by default

2016-03-23 Thread Marek Vasut
On 03/24/2016 01:13 AM, Tom Rini wrote: > On Thu, Mar 24, 2016 at 12:49:54AM +0100, Marek Vasut wrote: >> On 03/24/2016 12:47 AM, Sergey Kubushyn wrote: >>> On Thu, 24 Mar 2016, Marek Vasut wrote: >>> On 03/24/2016 12:08 AM, Tom Rini wrote: > On Wed, Mar 23, 2016 at 04:02:07PM -0700,

[U-Boot] [PATCH] efi_loader: Fix some entry/exit points

2016-03-23 Thread Alexander Graf
When switching between EFI context and U-Boot context we need to swap the register that "gd" resides in. Some functions slipped through here, with efi_allocate_pool / efi_free_pool not doing the switch correctly and efi_return_handle switching too often. Fix them all up to make sure we always

Re: [U-Boot] [PATCH v4 5/5] bcm2835 video: Map fb as cached

2016-03-23 Thread Stephen Warren
On 03/23/2016 06:27 PM, Alexander Graf wrote: The bcm2835 frame buffer is in RAM, so we can easily map it as cached and gain all the glorious performance boost that brings with it. Tested-by: Stephen Warren diff --git a/drivers/video/bcm2835.c

[U-Boot] [PATCH] arm: lib: Import __do_div64 from Linux

2016-03-23 Thread Marek Vasut
Import __do_div64 from Linux 4.4.6 , commit 0d1912303e54ed1b2a371be0bba51c384dd57326 on arm32. This function is for some toolchains, which generate _udivmoddi4() for 64 bit division. Since we do not support stack unwinding, instead of importing the whole asm/unwind.h and all the baggage, this

Re: [U-Boot] [PATCH 5/5] lib: Enable private libgcc by default

2016-03-23 Thread Sergey Kubushyn
On Thu, 24 Mar 2016, Marek Vasut wrote: On 03/24/2016 12:54 AM, Sergey Kubushyn wrote: On Thu, 24 Mar 2016, Marek Vasut wrote: On 03/24/2016 12:47 AM, Sergey Kubushyn wrote: On Thu, 24 Mar 2016, Marek Vasut wrote: On 03/24/2016 12:08 AM, Tom Rini wrote: On Wed, Mar 23, 2016 at 04:02:07PM

Re: [U-Boot] [PATCH] arm: mxs: Update MX28EVK config

2016-03-23 Thread Fabio Estevam
On Wed, Mar 23, 2016 at 8:57 PM, Marek Vasut wrote: > Enable FIT image support, EXT4 support and generic FS support. > > Signed-off-by: Marek Vasut > Cc: Stefano Babic > Cc: Fabio Estevam Reviewed-by: Fabio Estevam

Re: [U-Boot] [PATCH 5/5] lib: Enable private libgcc by default

2016-03-23 Thread Tom Rini
On Thu, Mar 24, 2016 at 12:49:54AM +0100, Marek Vasut wrote: > On 03/24/2016 12:47 AM, Sergey Kubushyn wrote: > > On Thu, 24 Mar 2016, Marek Vasut wrote: > > > >> On 03/24/2016 12:08 AM, Tom Rini wrote: > >>> On Wed, Mar 23, 2016 at 04:02:07PM -0700, Sergey Kubushyn wrote: > On Wed, 23 Mar

Re: [U-Boot] [PATCH 5/5] lib: Enable private libgcc by default

2016-03-23 Thread Marek Vasut
On 03/24/2016 12:54 AM, Sergey Kubushyn wrote: > On Thu, 24 Mar 2016, Marek Vasut wrote: > >> On 03/24/2016 12:47 AM, Sergey Kubushyn wrote: >>> On Thu, 24 Mar 2016, Marek Vasut wrote: >>> On 03/24/2016 12:08 AM, Tom Rini wrote: > On Wed, Mar 23, 2016 at 04:02:07PM -0700, Sergey Kubushyn

[U-Boot] [PATCH v5 04/14] ls2080: Add Secure Boot support

2016-03-23 Thread Saksham Jain
Sec_init has been called in the starting to initialize SEC Block (CAAM) which will be used for Secure Boot validation later for both ls2080a qds and rdb. 64-bit address in ESBC Header has been enabled as this SoC is based on armv8. Secure Boot defconfigs created for boards (NOR Boot).

[U-Boot] [PATCH v5 07/14] ls2080: Change env variable "fdt_high"

2016-03-23 Thread Saksham Jain
"fdt_high" env variable has been changed to 0xa000 for ls2080 during Secure Boot. This env_varible is used to specify the upper limit to be used for copying flat device tree. This address must be visible to kernel. The "fdt_high" value has been set during Secure Boot to same value as it's

[U-Boot] [PATCH v5 10/14] crypto/fsl: Correct 64-bit Write when MMU disabled

2016-03-23 Thread Saksham Jain
When MMU is disabled, 64bit Write must be at a memory aligned at 64-bit Boundary. So, this commit splits the 64-bit write into two 32-bit writes as the memory location is not guaranteed to be 64-bit aligned. The alignment exception only occurs when MMU is disabled. Signed-off-by: Aneesh Bansal

[U-Boot] [PATCH v5 03/14] fsl: ls-ch3: Add new header for Secure Boot

2016-03-23 Thread Saksham Jain
For Secure Boot, a header is used to identify key table, signature and image address. For Ls-Ch3, there is a new header structure being used. Currently Key extension (IE) feature is not supported. Single Key feature is not supported. Keys must be in table format. Hence, SRK (Key table) is by

[U-Boot] POST WORD for socfpga platform

2016-03-23 Thread Abhishek Madhyastha
Hi, I'm working on enabling the POST feature for the socfpga cyclone v platform but I'm unable to define a proper address for the post word. >From what I've read, I believe this word needs to point to a location on the on chip RAM, especially for ARM based architectures. Ref:

[U-Boot] [PATCH v5 14/14] SECURE BOOT: Change fsl_secboot_validate func to ret image addr

2016-03-23 Thread Saksham Jain
Currently, fsl_secboot_validate function used to set env variable "img_addr" to contain address of image being validated. The function has been changed to output image addr via argument img_addr_ptr. The command esbc_validate sets the env variable "img_addr". This change helps when

[U-Boot] [PATCH v5 12/14] SECURE_BOOT: Use default bootargs

2016-03-23 Thread Saksham Jain
For secure boot, currently we were using fixed bootargs for all SoCs. This is not needed and we can use the bootargs which are used in non-secure boot. Incase bootargs are not defined for non-secure boot of any platform, we use default bootargs. Signed-off-by: Aneesh Bansal

[U-Boot] [PATCH v5 05/14] Add bootscript header addr for ls2080a secure boot

2016-03-23 Thread Saksham Jain
During secure boot, Linux image along with other images are validated using bootscript. This bootscript also needs to be validated before it is executed. This requires a header for bootscript. When secure boot is enabled, default bootcmd is changed to first validate bootscript using the header

[U-Boot] [PATCH v5 06/14] fsl: ls-ch3: Copy Bootscript and header from NOR to DDR

2016-03-23 Thread Saksham Jain
During Secure Boot, a bootscript is validated using its header. This patch copies both these images to DDR from NOR and then validates and executed them from DDR. (If NOR is the boot source for LS2080). This copy step is done to make this step common across booting sources. Because in case of

[U-Boot] [PATCH 2/6 v3] net: mvpp2.c: Add Marvell mvpp2 network driver for Armada 375

2016-03-23 Thread Stefan Roese
This patch adds support for the mvpp2 ethernet controller which is integrated in the Marvell Armada 375 SoC. This port is based on the Linux driver (v4.4), which has been stripped of the in U-Boot unused portions. Tested on the Marvell Armada 375 eval board db-88f6720. Signed-off-by: Stefan

[U-Boot] [PATCH v5 13/14] SECURE BOOT: Halt execution when secure boot fail

2016-03-23 Thread Saksham Jain
In case of fatal failure during secure boot execution (e.g. header not found), it is needed that the execution stops. Earlier, we assert reset request in case in case of failure. But if the RESET_REQ is not tied off to HRESET, this allows the execution to continue. This can either be taken care

[U-Boot] [PATCH v5 09/14] armv8: fsl-lsch3: Disable SMMU during Secure Boot

2016-03-23 Thread Saksham Jain
During secure boot, SMMU is enabled on POR by SP bootrom. SMMU needs to be put in Bypass mode in uboot to enable CAAM transcations to pass through. During Nonsecure Boot, SP BootROM doesn't enable SMMU and at reset SMMU is in bypass mode. Signed-off-by: Aneesh Bansal

Re: [U-Boot] [PATCH v3] sunxi: Select CONFIG_OF_BOARD_SETUP from arch/arm/Kconfig

2016-03-23 Thread Ian Campbell
On Wed, 2016-03-23 at 11:13 +0100, Hans de Goede wrote: > Always select OF_BOARD_SETUP on sunxi, rather then having it in > almost > all our defconfigs. This also fixes it missing from some recently > added defconfigs. > > This commit also modifies our ft_board_setup() to not cause warnings >

Re: [U-Boot] [PATCH] sunxi: Add defconfig and dts for Orange Pi 2 SBC

2016-03-23 Thread Ian Campbell
On Wed, 2016-03-23 at 11:13 +0100, Hans de Goede wrote: > The Orange Pi 2 is a SBC based on the Allwinner H3 SoC with a uSD > slot, > 4 USB ports connected via a USB-2 hub, a 10/100M ethernet port using > the > SoC's integrated PHY, Wifi via a RTL8189ETV sdio wifi chip, USB OTG, > HDMI, > a TRRS

[U-Boot] [PATCH v5 01/14] armv8: ls2080: Add SFP Configs for LS2080

2016-03-23 Thread Saksham Jain
In LS2080, SFP is Little Endian and Verion is 3.4 . The base address is 0x01e80200. SFP will be used in Secure Boot to read fuses. Signed-off-by: Aneesh Bansal Signed-off-by: Saksham Jain --- Changes for v2: - No changes Changes for v3:

[U-Boot] [PATCH v5 02/14] ls2080: Add configs for SEC, SecMon, SRK and DCFG

2016-03-23 Thread Saksham Jain
For ls2080, Added configs for various IPs used during secure boot. Added address and endianness for SEC and Security Monitor. SRK are Fuses in SFP (Fuses for public key's hash). These are stored in Little Endian format. Signed-off-by: Aneesh Bansal Signed-off-by: Saksham

Re: [U-Boot] [PATCH] usb: gadget: Move CONFIG_USB_GADGET to Kconfig

2016-03-23 Thread Stephen Warren
On 03/22/2016 01:59 PM, Semen Protsenko wrote: From: Sam Protsenko The description was borrowed from kernel. "tristate" type was changed to "bool" (I believe we don't support modules for u-boot yet, right?). CONFIG_USB_GADGET requires CONFIG_USB to be defined too,

[U-Boot] [PATCH v5 00/14] Add Support for Secure Boot on LS2080

2016-03-23 Thread Saksham Jain
Secure Boot ESBC has been enabled on FSL LS208x platforms. Changes for v2: - changed function fsl_secboot_validate to return address of image - corrected Bootscript header for ls1043 and ls1021 Changes for v3: - minor changes to remove compilation warnings Changes for v4:

Re: [U-Boot] [PATCHv2 2/3] ARMv8/layerscape: Add FSL PPA support

2016-03-23 Thread Zhiqiang Hou
Hi Chenhui, Do you have any update about how to fixup the related device node according to the PSCI and spin-table? > -Original Message- > From: york sun > Sent: 2016年3月18日 5:09 > To: Zhiqiang Hou ; Bhupesh Sharma > ; Scott Wood

Re: [U-Boot] [PATCH 5/5] lib: Enable private libgcc by default

2016-03-23 Thread Albert ARIBAUD
Hello Marek, On Sun, 20 Mar 2016 17:15:34 +0100, Marek Vasut wrote: > This patch decouples U-Boot binary from the toolchain on systems where > private libgcc is available. Instead of pulling in functions provided > by the libgcc from the toolchain, U-Boot will use it's own set of

Re: [U-Boot] [PATCH 5/5] lib: Enable private libgcc by default

2016-03-23 Thread Tom Rini
On Wed, Mar 23, 2016 at 01:53:35PM +0100, Albert ARIBAUD wrote: > Hello Marek, > > On Sun, 20 Mar 2016 17:15:34 +0100, Marek Vasut wrote: > > This patch decouples U-Boot binary from the toolchain on systems where > > private libgcc is available. Instead of pulling in functions

[U-Boot] [PATCH 2/6 v2] net: mvpp2.c: Add Marvell mvpp2 network driver for Armada 375

2016-03-23 Thread Stefan Roese
This patch adds support for the mvpp2 ethernet controller which is integrated in the Marvell Armada 375 SoC. This port is based on the Linux driver (v4.4), which has been stripped of the in U-Boot unused portions. Tested on the Marvell Armada 375 eval board db-88f6720. Signed-off-by: Stefan

[U-Boot] [PATCH v5 11/14] crypto/fsl: Make CAAM transactions cacheable

2016-03-23 Thread Saksham Jain
This commit solves CAAM coherency issue on ls2080. When Caches are enabled and CAAM's DMA's AXI transcations are not made cacheable, Core reads/write data from/to Caches and CAAM does from Main Memory. This forces data flushes to synchronize various data structures. But even if any data in

[U-Boot] [PATCH v5 08/14] ls2080: Add config for endianess of CCSR GUR

2016-03-23 Thread Saksham Jain
The GUR (DCFG) registers in CCSR space are in Little Endian format for ls2080. Defined a config CONFIG_SYS_FSL_CCSR_GUR_LE in arch/arm/include/asm/arch-fsl-layerscape/config.h Signed-off-by: Aneesh Bansal Signed-off-by: Saksham Jain --- Changes for

[U-Boot] [PATCH v3] sunxi: Select CONFIG_OF_BOARD_SETUP from arch/arm/Kconfig

2016-03-23 Thread Hans de Goede
Always select OF_BOARD_SETUP on sunxi, rather then having it in almost all our defconfigs. This also fixes it missing from some recently added defconfigs. This commit also modifies our ft_board_setup() to not cause warnings when CONFIG_VIDEO_DT_SIMPLEFB is not set, since we will now always build

[U-Boot] [PATCH] sunxi: Add defconfig and dts for Orange Pi 2 SBC

2016-03-23 Thread Hans de Goede
The Orange Pi 2 is a SBC based on the Allwinner H3 SoC with a uSD slot, 4 USB ports connected via a USB-2 hub, a 10/100M ethernet port using the SoC's integrated PHY, Wifi via a RTL8189ETV sdio wifi chip, USB OTG, HDMI, a TRRS headphone jack for stereo out and composite out, a microphone, an IR

[U-Boot] [PATCH 2/2] armv8: fsl-layerscape: add LS1023A SVR

2016-03-23 Thread Gong Qianyu
From: Mingkai Hu Signed-off-by: Mingkai Hu Signed-off-by: Gong Qianyu --- arch/arm/include/asm/arch-fsl-layerscape/cpu.h | 1 + arch/arm/include/asm/arch-fsl-layerscape/soc.h | 1 + 2 files changed, 2 insertions(+) diff --git

[U-Boot] [PATCH 0/2] ARM: keystone2: Fix missing privilege ID

2016-03-23 Thread Nishanth Menon
Looks like Keystone2 platform may have quite a few missing configurations for various SoC variants. We need mark each of these id as shared in corresponding registers as well, without doing this, drivers fail inexplicably since the drivers seem to expect SoC wide coherency capability - which needs

[U-Boot] [PATCH 2/2] ARM: keystone2: Add missing privilege ID settings

2016-03-23 Thread Nishanth Menon
Add missing Privilege ID settings for KS2 SoCs. Based on: K2H/K: Table 6-7. Privilege ID Settings from SPRS866E (Nov 2013) http://www.ti.com/lit/ds/symlink/66ak2h14.pdf (page 99) K2L: Table 7-7. Privilege ID Settings from SPRS930 (April 2015) http://www.ti.com/lit/ds/symlink/66ak2l06.pdf

Re: [U-Boot] [PATCH v2 00/11] armv8: ls2080aqds: Enable QSPI boot support

2016-03-23 Thread york sun
On 03/23/2016 01:12 AM, Yao Yuan wrote: > On 03/23/2016 03:09 AM, York Sun wrote: >> On 03/06/2016 11:56 PM, Yuan Yao wrote: >>> From: Yuan Yao >>> >>> This series add support for QSPI boot on LS2080AQDS. >>> >>> Yuan Yao (11): >>> armv8: ls2080aqds: Select QSPI CLK div via

[U-Boot] [PATCH 1/2] ARM: keystone2: Refactor MSMC macros to avoid #ifdeffery

2016-03-23 Thread Nishanth Menon
MSMC segment Privilege ID is not consistent accross the keystone2 SoCs. As the first step to ensure complete SoC wide coherency setup, lets refactor the macros to remove the #if-deffery around the code which obfuscates which IDs are actually enabled for which SoC. As a result of this change the

Re: [U-Boot] [PATCH 2/6 v2] i2c: designware_i2c: Add dw_i2c_enable() helper function

2016-03-23 Thread Marek Vasut
On 03/23/2016 06:46 AM, Stefan Roese wrote: > dw_i2c_enable() is used to dis-/en-able the I2C controller. It makes > sense to add such a function, as the controller is dis-/en-abled > multiple times in the code. Additionally, this function now checks, > if the controller is really dis-/en-abled.

Re: [U-Boot] [PATCH 2/6] net: mvpp2.c: Add Marvell mvpp2 network driver for Armada 375

2016-03-23 Thread Stefan Roese
Hi Joe, On 22.03.2016 20:10, Joe Hershberger wrote: Sorry for the delay. No problem. Thanks for the review. On Tue, Mar 15, 2016 at 11:35 AM, Stefan Roese wrote: This patch adds support for the mvpp2 ethernet controller which is integrated in the Marvell Armada 375 SoC. This

Re: [U-Boot] [PATCH] spi: kirkwood_spi: Add support for multiple chip-selects on MVEBU

2016-03-23 Thread Stefan Roese
Hi Jagan, please excuse the long delay here. Some comments below. On 12.02.2016 21:27, Jagan Teki wrote: On 12 February 2016 at 18:15, Stefan Roese wrote: Currently only chip-select 0 is supported by the kirkwood SPI driver. The Armada XP / 38x SoCs also use this driver and

Re: [U-Boot] Newbie SPL question for socfpga_sockit

2016-03-23 Thread Chin Liang See
On Mon, 2016-03-21 at 23:45 +0800, Chin Liang See wrote: > On Mon, 2016-03-21 at 22:05 +0800, Chin Liang See wrote: > > On Fri, 2016-03-04 at 20:03 +0100, Marek Vasut wrote: > > > On 03/04/2016 05:06 PM, Dinh Nguyen wrote: > > > > On 03/02/2016 05:24 PM, Marek Vasut wrote: [..] > > > > > Well,

Re: [U-Boot] [PATCH v1] Revert "fastboot: OUT transaction length must be aligned to wMaxPacketSize"

2016-03-23 Thread Sam Protsenko
On Wed, Mar 23, 2016 at 11:49 AM, Lukasz Majewski wrote: > Hi Marek, > >> On 03/23/2016 01:50 AM, Steve Rae wrote: >> > This reverts commit 9e4b510d40310bf46e09f4edd0a0b6356213df47. >> > >> > Signed-off-by: Steve Rae >> > --- >> > As discussed on the

Re: [U-Boot] [PATCH] smsc95xx: fix operation on 64-bit systems

2016-03-23 Thread Joe Hershberger
On Tue, Mar 22, 2016 at 11:28 PM, Stephen Warren wrote: > smsc95xx_read_reg() should calculate sizeof(*data) not sizeof(data) since > data is a pointer, and the value pointed at is being transferred over USB, > not the value of the pointer. This fixes operation of the

[U-Boot] SoCFPGA cache / S-bit problem - was Re: Newbie SPL question for socfpga_sockit

2016-03-23 Thread Stefan Roese
Hi Chin, On 23.03.2016 16:00, Chin Liang See wrote: On Mon, 2016-03-21 at 23:45 +0800, Chin Liang See wrote: On Mon, 2016-03-21 at 22:05 +0800, Chin Liang See wrote: On Fri, 2016-03-04 at 20:03 +0100, Marek Vasut wrote: On 03/04/2016 05:06 PM, Dinh Nguyen wrote: On 03/02/2016 05:24 PM,

[U-Boot] [PATCH] README: Specify the full path for README.displaying-bmps

2016-03-23 Thread Fabio Estevam
From: Fabio Estevam It is clearer to specify the full path to access the doc/README.displaying-bmps file. Signed-off-by: Fabio Estevam --- README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README b/README index

[U-Boot] [PATCH][v4] armv8/ls2080ardb: Enable VID support

2016-03-23 Thread Rai Harninder
This patch enable VID support for ls2080ardb platform. It uses the common VID driver Signed-off-by: Rai Harninder --- Changes in v4: - Fix implicit declaration warning for adjust_vdd() by including approriate header file Changes in v3: - Call adjust_vdd() so that the

Re: [U-Boot] [T1040] Boot location and NOR flash memory mapping

2016-03-23 Thread york sun
Valentin, Your understand is correct. Please see my answers below to your questions. On 03/23/2016 12:46 AM, Valentin Longchamp wrote: > Hello, > > We are currently designing a board based on the T1040 CPU from Freescale/NXP. > I > am preparing its u-boot support and bring-up tools (JTAG) as

[U-Boot] [PATCH 4/5] ARM: bcm2835: expand Kconfig target descriptions

2016-03-23 Thread Stephen Warren
This adds an explanation of which Raspberry Pi models each target option supports. Signed-off-by: Stephen Warren --- arch/arm/mach-bcm283x/Kconfig | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-bcm283x/Kconfig

[U-Boot] [PATCH 3/5] rpi: add Raspberry Pi 3 board ID

2016-03-23 Thread Stephen Warren
by loading the pi3-miniuart-bt DT overlay. As of 20160323 (or firmware.git commit 7f536a27cc74 "kernel: lirc_rpi: Lower IR reception error to debug See: https://github.com/raspberrypi/linux/pull/1361; this doesn't seem to work; I assume this is due to a firmware bug. Signed-off-by: Stephen Warren

[U-Boot] [PATCH 2/5] rpi: use constant "unknown board" DT filename

2016-03-23 Thread Stephen Warren
To simplify support for new SoCs, just use a constant filename for the unknown case. In practice this case shouldn't be hit anyway, so the filename isn't relevant, and certainly doesn't need to differentiate between SoCs. If a user has an as-yet-unknown board, they can override this value in the

[U-Boot] [PATCH 5/5] rpi: BCM2837 and Raspberry Pi 3 32-bit support

2016-03-23 Thread Stephen Warren
perating correctly on any Pi. As of 20160323 that is not fixed. Signed-off-by: Stephen Warren <swar...@wwwdotorg.org> --- arch/arm/mach-bcm283x/Kconfig | 21 + board/raspberrypi/rpi/rpi.c | 16 +++- board/raspberrypi/rpi_3_32b/MAINTAINERS | 6 +

[U-Boot] [PATCH 1/5] ARM: bcm2835: move CONFIG_BCM283* to Kconfig

2016-03-23 Thread Stephen Warren
Signed-off-by: Stephen Warren --- This series depends on: * My series beginning with "ARM: bcm283x: don't always define CONFIG_BCM2835" * My patch "serial: add BCM283x mini UART driver". * Alexander Graf's arm64 page table/cache series starting with "arm64: Add 32bit

Re: [U-Boot] [PATCH 0/3] ARM: DRA7: Fix fastboot command

2016-03-23 Thread Lokesh Vutla
On Thursday 24 March 2016 12:13 AM, Semen Protsenko wrote: > > Hi All, > > This series reverts recently added patches that break fastboot command. > I propose to keep it this way until issue is found and fixed. Let's get this fixed instead of reverting any of the patches :). This is because

[U-Boot] [RFC PATCH] ARM: asm: types: Introduce DMA_ADDR_T_64BIT

2016-03-23 Thread Lokesh Vutla
dma_addr_t holds any valid DMA address. If the DMA API only uses 32-bit addresses, dma_addr_t need only be 32 bits wide. Bus addresses, e.g., PCI BARs, may be wider than 32 bits, but drivers do memory-mapped I/O to ioremapped kernel virtual addresses, so they don't care about the size of the

Re: [U-Boot] [PATCH 00/13] ARM: uniphier: bulk changes for v2016.05-rc1

2016-03-23 Thread Masahiro Yamada
2016-03-18 16:41 GMT+09:00 Masahiro Yamada : > > > > Masahiro Yamada (13): > ARM: dts: uniphier: add device tree for Micro Support Card > ARM: uniphier: remove commented out define > ARM: uniphier: fix bogus comment > ARM: uniphier: drop PH1- prefix from

Re: [U-Boot] [PATCH v1] Revert "fastboot: OUT transaction length must be aligned to wMaxPacketSize"

2016-03-23 Thread Steve Rae
Lukasz & Sam: On Wed, Mar 23, 2016 at 8:54 AM, Sam Protsenko wrote: > > On Wed, Mar 23, 2016 at 11:49 AM, Lukasz Majewski > wrote: > > Hi Marek, > > > >> On 03/23/2016 01:50 AM, Steve Rae wrote: > >> > This reverts commit

[U-Boot] [PATCH 3/3] Revert "ARM: DRA7-evm: Update memory info in banks"

2016-03-23 Thread Semen Protsenko
From: Sam Protsenko This reverts commit d468b1781abe3975fdbc1695ef1fcfb48b01732b. --- board/ti/dra7xx/evm.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c index eb19a6d..4f60837 100644 ---

[U-Boot] [PATCH 2/3] Revert "ARM: DRA7: EMIF: Add 4GB DDR settings"

2016-03-23 Thread Semen Protsenko
From: Sam Protsenko This reverts commit c4a2736ca165167aa38228a60354c6a8950d42f8. --- board/ti/dra7xx/evm.c | 83 ++- 1 file changed, 3 insertions(+), 80 deletions(-) diff --git a/board/ti/dra7xx/evm.c

[U-Boot] [PATCH 1/3] Revert "ARM: DRA7: configs: Prepare for detecting memory > 2GB"

2016-03-23 Thread Semen Protsenko
From: Sam Protsenko This reverts commit 212425b2721bb67273963b7fc517455425948d90. --- include/configs/dra7xx_evm.h | 5 - 1 file changed, 5 deletions(-) diff --git a/include/configs/dra7xx_evm.h b/include/configs/dra7xx_evm.h index c0795ab..6e3a482 100644 ---

  1   2   >