[U-Boot] [PATCH v3] spi: atmel: check GPIO validity before using cs_gpios

2017-04-07 Thread Wenyou Yang
Before using the cs_gpio, check if the GPIO is valid or not. Signed-off-by: Wenyou Yang --- Changes in v3: - According to the advice from Jagan Teki, rearrange the code. Changes in v2: - Rebase on v2017.03. drivers/spi/atmel_spi.c | 9 + 1 file changed, 9 insertions(+) diff --git a

Re: [U-Boot] [PATCH v4 0/7] board: sama5d4: convert boards to support DM/DT

2017-04-07 Thread Yang, Wenyou
Hi Andreas, Could you help find a time to take these patch series? They are here for a long time. Thank you! Best Regards, Wenyou Yang On 2017/3/23 14:10, Wenyou Yang wrote: The purpose of patch set is to convert the board to support device tree and driver model, and enable the early debug

Re: [U-Boot] [PATCH v4 06/19] arm: socfpga: Add reset driver support for Arria 10

2017-04-07 Thread Ley Foon Tan
On Fri, Apr 7, 2017 at 3:37 AM, Dinh Nguyen wrote: > On Wed, Apr 5, 2017 at 4:32 AM, Ley Foon Tan wrote: >> Add reset driver support for Arria 10. >> >> Signed-off-by: Tien Fong Chee >> Signed-off-by: Ley Foon Tan >> --- >> arch/arm/mach-socfpga/Makefile | 2 + >> arch/ar

[U-Boot] [RFC] tiny-printf: Add support for %p format

2017-04-07 Thread Vignesh R
Add support for %p, %pa[p], %pM, %pm and %pI4 formats to tiny-printf. %pM and %pI4 are widely used by SPL networking stack and is required if networking support is desired in SPL. Before this patch: $ size spl/u-boot-spl textdata bss dec hex filename 993254899 218584 322

Re: [U-Boot] [PATCH v2 1/2] spi: sunxi_spi: Add DM SPI driver for A31/A80/A64

2017-04-07 Thread Jagan Teki
On Thu, Mar 2, 2017 at 2:59 AM, Philipp Tomsich wrote: > This adds a rewrite of the SPI driver we had in use for the A31-uQ7 > (sun6i), A80-Q7 (sun9i) and A64-uQ7 (sun50i) boards, which includes > support for: > * cs-gpios (i.e. GPIOs as additional chip-selects) > * clocking, reset and pinctrl b

Re: [U-Boot] [PATCH v2 0/2] sunxi: DM-based driver for SPI

2017-04-07 Thread Jagan Teki
On Thu, Mar 2, 2017 at 2:59 AM, Philipp Tomsich wrote: > A new iteration of the dual-IO aware device-model based SPI driver > for sunxi (Allwinner SoCs). > > As before, this has been tested with dual-IO flashes (Winbond > W25Q80DV) on our A64-uQ7 at up to 100MHz. > > Changes in v2: > * Uses wait_

Re: [U-Boot] [PATCH v1] mmc: sdhci: SDHCI controllers also need power

2017-04-07 Thread Jaehoon Chung
Hi Andy, On 04/06/2017 07:58 PM, Andy Shevchenko wrote: > On Thu, Apr 6, 2017 at 1:50 PM, Jaehoon Chung wrote: >> On 04/06/2017 06:46 PM, Andy Shevchenko wrote: >>> On Thu, 2017-04-06 at 18:24 +0900, Jaehoon Chung wrote: On 04/06/2017 05:51 PM, Andy Shevchenko wrote: > On Thu, Apr 6, 201

[U-Boot] [PATCH] rockchip: rk3399: do not use lower address

2017-04-07 Thread Kever Yang
The lower address is reserved for ATF, do not use it. Signed-off-by: Kever Yang --- include/configs/rk3399_common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/configs/rk3399_common.h b/include/configs/rk3399_common.h index 8bd2737..32b94f6 100644 --- a/inclu

Re: [U-Boot] [PATCH v3] spi: atmel: check GPIO validity before using cs_gpios

2017-04-07 Thread Jagan Teki
On Fri, Apr 7, 2017 at 12:44 PM, Wenyou Yang wrote: > Before using the cs_gpio, check if the GPIO is valid or not. > > Signed-off-by: Wenyou Yang -- Applied to u-boot-spi/master thanks! -- Jagan Teki Free Software Engineer | www.openedev.com U-Boot, Linux | Upstream Maintainer Hyderabad, India

[U-Boot] [PATCH] rockchip: rk3399: defconfig: add CONFIG_OF_EMBED support

2017-04-07 Thread Kever Yang
Need to enablt CONFIG_OF_EMBED if we use separate uboot and dtb in FIT image for SPL loading. Run make savedefconfig to make the options order correct. Signed-off-by: Kever Yang --- configs/evb-rk3399_defconfig | 43 --- 1 file changed, 20 insertions(+),

[U-Boot] [PATCH] rockchip: sysreset: rk3188: Make sure remap is off on warm-resets

2017-04-07 Thread Heiko Stuebner
The warm-reset of rk3188 socs keeps the remap setting as it was, so if it was enabled, the cpu would start from address 0x0 of the sram instead of address 0x0 of the bootrom, thus making the reset hang. Therefore make sure the remap is disabled before attempting a warm reset. Cold reset is not af

[U-Boot] [PATCH] arm: mvebu: Minor fixes in the AXP / A38x SERDES code

2017-04-07 Thread Stefan Roese
From: Uwe Kleine-König - Fix spelling error of SERDES_VERSION - Remove superfluous definition of this macro - Remove unnecessary include of i2c.h Signed-off-by: Uwe Kleine-König Signed-off-by: Stefan Roese --- arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec-38x.c | 2 -- arch/arm/mach-mve

Re: [U-Boot] MTD devices emulation driver (gluebi) support

2017-04-07 Thread Heiko Schocher
Hello Manuel, Am 06.04.2017 um 10:36 schrieb manuelcur...@eaton.com: Hi, I want to read a jffs2 file system over ubi from uboot. From ubi.h, I found the CONFIG_MTD_UBI_GLUEBI define to allow this functionality (I think) : /* gluebi.c */ #ifdef CONFIG_MTD_UBI_GLUEBI However, when I set

[U-Boot] [PATCH] power: regulator: pwm: support pwm polarity setting

2017-04-07 Thread Kever Yang
The latest kernel PWM drivers enable the polarity settings. When system run from U-Boot to kerenl, if there are differences in polarity set or duty cycle, the PMW will re-init: close -> set polarity and duty cycle -> enable the PWM. The power supply controled by pwm regulator may have voltage sha

Re: [U-Boot] [PATCH] power: regulator: pwm: support pwm polarity setting

2017-04-07 Thread Jaehoon Chung
Hi Kever, On 04/07/2017 08:02 PM, Kever Yang wrote: > The latest kernel PWM drivers enable the polarity settings. When system > run from U-Boot to kerenl, if there are differences in polarity set or > duty cycle, the PMW will re-init: > close -> set polarity and duty cycle -> enable the PWM. > T

[U-Boot] [PATCH 1/3] fsl: PPA: add support PPA image validation from NAND and SD

2017-04-07 Thread Sumit Garg
Signed-off-by: Sumit Garg Signed-off-by: Udit Agarwal Tested-by: Vinitha Pillai --- arch/arm/cpu/armv8/fsl-layerscape/ppa.c | 67 - 1 file changed, 66 insertions(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv8/fsl-layerscape/ppa.c b/arch/arm/cpu/armv8/fsl-lay

[U-Boot] [PATCH v2 01/10] arm: omap: sata: move enable sata clocks to enable_basic_clocks()

2017-04-07 Thread Jean-Jacques Hiblot
From: Mugunthan V N All the clocks which has to be enabled has to be done in enable_basic_clocks(), so moving enable sata clock to common clocks enable function. Signed-off-by: Mugunthan V N Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini --- the patch hasn't changed since v1 arch/

[U-Boot] [PATCH 2/3] fsl-ppa: Kconfig: Support to load PPA hdr from eMMC/SD and NAND Flash

2017-04-07 Thread Sumit Garg
Add support to load PPA hdr from eMMC/SD and NAND Flash in Kconfig Signed-off-by: Sumit Garg Signed-off-by: Udit Agarwal Tested-by: Vinitha Pillai --- arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/cpu/armv8/fsl-layerscape/Kco

[U-Boot] [PATCH v2 00/10] OMAP: Move SATA to use block driver model

2017-04-07 Thread Jean-Jacques Hiblot
This series adds support for SATA using the driver model on omap platforms. It is based on the work of Mugunthan V N in Feb 2016 The first 2 patches are preparatory work. The 3rd patch adds a new framework to handle PHYs in a generic manner. The idea is to move the phy initialization out of the b

[U-Boot] [PATCH v2 03/10] drivers: phy: add generic PHY framework

2017-04-07 Thread Jean-Jacques Hiblot
The PHY framework provides a set of APIs to control a PHY. This API is derived from the linux version of the generic PHY framework. Currently the API supports init(), deinit(), power_on, power_off() and reset(). The framework provides a way to get a reference to a phy from the device-tree. Signed-

[U-Boot] [PATCH v2 05/10] dra7: dtsi: mark ocp2scp bus compatible with "simple-bus"

2017-04-07 Thread Jean-Jacques Hiblot
This is needed to probe devices under that bus such as the SATA PHY. Signed-off-by: Jean-Jacques Hiblot --- arch/arm/dts/dra7.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/dra7.dtsi b/arch/arm/dts/dra7.dtsi index 5570e30..6978359 100644 --- a/arch/arm/dts/

[U-Boot] [PATCH v2 10/10] defconfig: dra7xx_evm: enable CONFIG_BLK and disk driver model for SCSI

2017-04-07 Thread Jean-Jacques Hiblot
Enable disk driver model for dra7xx_evm as dwc_ahci supports driver model. As a consequence we must also enable CONFIG_BLK and CONFIG_DM_USB. Signed-off-by: Mugunthan V N Signed-off-by: Jean-Jacques Hiblot --- configs/dra7xx_evm_defconfig| 12 +++- configs/dra7xx_hs_evm_defconfig |

[U-Boot] [PATCH v2 07/10] scsi: make the LUN a parameter of scsi_detect_dev()

2017-04-07 Thread Jean-Jacques Hiblot
This is a cosmetic change. target and LUN have kind of the same role in this function. One of them was passed as a parameter and the other was embedded in a structure. For consistency, pass both of them as parameters. Signed-off-by: Jean-Jacques Hiblot --- common/scsi.c | 14 +++--- 1 fi

[U-Boot] [PATCH v2 02/10] arm: omap: sata: compile out board-level sata code when CONFIG_DM_SCSI is defined

2017-04-07 Thread Jean-Jacques Hiblot
When CONFIG_DM_SCSI is defined, the SATA initialization will be implemented in the scsi-uclass driver. Signed-off-by: Jean-Jacques Hiblot --- Instead of compiling out the code inside the C file, let's just not compile the files at all. arch/arm/mach-omap2/Makefile | 2 ++ 1 file changed, 2 in

[U-Boot] [PATCH 3/3] ls104xardb: Secure Boot: enable PPA support for eMMC/SD and NAND boot

2017-04-07 Thread Sumit Garg
Signed-off-by: Sumit Garg Signed-off-by: Udit Agarwal Tested-by: Vinitha Pillai --- configs/ls1043ardb_nand_SECURE_BOOT_defconfig | 1 + configs/ls1043ardb_sdcard_SECURE_BOOT_defconfig | 1 + configs/ls1046ardb_sdcard_SECURE_BOOT_defconfig | 1 + 3 files changed, 3 insertions(+) diff --git a

[U-Boot] [PATCH v2 09/10] dm: scsi: fix divide-by-0 error in scsi_scan()

2017-04-07 Thread Jean-Jacques Hiblot
With DM_SCSI enabled, blk_create_devicef() is called with blkz = 0, leading to a divide-by-0 exception. scsi_detect_dev() can be used to get the required parameters (block size and number of blocks) from the drive before calling blk_create_devicef(). Signed-off-by: Jean-Jacques Hiblot --- common

[U-Boot] [PATCH v2 06/10] drivers: block: dwc_ahci: Implement a driver for Synopsys DWC sata device

2017-04-07 Thread Jean-Jacques Hiblot
From: Mugunthan V N Implement a sata driver for Synopsys DWC sata device based on U-boot driver model. Signed-off-by: Mugunthan V N Signed-off-by: Jean-Jacques Hiblot --- drivers/block/Kconfig| 10 + drivers/block/Makefile | 1 + drivers/block/dwc_ahci.c | 100 +++

[U-Boot] [PATCH v2 04/10] drivers: phy: add PIPE3 phy driver

2017-04-07 Thread Jean-Jacques Hiblot
This phy is found on omap platforms with sata capabilities. Except for the part related to the DM and the PHY framework, the code is basically a copy paste from arch/arm/mach-omap2/pipe3-phy.c Signed-off-by: Jean-Jacques Hiblot --- drivers/phy/Kconfig| 12 ++ drivers/phy/Makefile

[U-Boot] [PATCH v2 08/10] scsi: move the partition initialization out of the scsi detection

2017-04-07 Thread Jean-Jacques Hiblot
We might want to get information about the scsi device without initializing the partition. Signed-off-by: Jean-Jacques Hiblot --- common/scsi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/scsi.c b/common/scsi.c index d55ba89..972ef338 100644 --- a/common/scsi.c

Re: [U-Boot] [PATCH] env_mmc: Allow SPL to use any MMC device to load/save the environment

2017-04-07 Thread Jean-Jacques Hiblot
On 14/02/2017 19:52, Tom Rini wrote: On Tue, Feb 14, 2017 at 02:16:13PM +0100, Jean-Jacques Hiblot wrote: Hi Tom, Have you had a chance to look at the patch below? It looks fine but was too close to the release window (given the potential impact) to merge. Thanks! Hi Tom, Don't want to p

Re: [U-Boot] [PATCH v2] Add 16-bit single register pin controller support

2017-04-07 Thread Felix Brack
Hello James, This patch does not compile without errors. On 06.04.2017 07:38, James Balean wrote: > Enables the pinctrl-single driver to support 16-bit registers. Only > 32-bit registers were supported previously. Reduced width registers are > required for some platforms, such as OMAP. > > Signe

Re: [U-Boot] [PATCH] defconfig: am43xx_hs_evm: Sync HS defconfig with non-HS defconfig

2017-04-07 Thread Andrew F. Davis
Ping? On 02/07/2017 05:02 PM, Andrew F. Davis wrote: > The non-HS defconfig has been modified without equivalent changes being > applied to the HS defconfig. Sync these here. > > Signed-off-by: Andrew F. Davis > --- > configs/am43xx_hs_evm_defconfig | 8 ++-- > 1 file changed, 6 insertions(

Re: [U-Boot] [PATCH v2] Add 16-bit single register pin controller support

2017-04-07 Thread Felix Brack
Hello James, Sorry I missed your followup. Please always send to 'everybody' and not just the list. You should though read my comment as there is some more work to be done. regards Felix On 07.04.2017 03:44, James Balean wrote: > Apologies! Just noticed I submitted the untested patch update. I'l

Re: [U-Boot] [PATCH] defconfig: am43xx_hs_evm: Sync HS defconfig with non-HS defconfig

2017-04-07 Thread Tom Rini
On Fri, Apr 07, 2017 at 08:21:38AM -0500, Andrew F. Davis wrote: > Ping? Been waiting for a v2 of this, I'd assume it doesn't apply cleanly and/or needs further additions. > > On 02/07/2017 05:02 PM, Andrew F. Davis wrote: > > The non-HS defconfig has been modified without equivalent changes be

Re: [U-Boot] [PATCH] defconfig: am43xx_hs_evm: Sync HS defconfig with non-HS defconfig

2017-04-07 Thread Andrew F. Davis
On 04/07/2017 08:23 AM, Tom Rini wrote: > On Fri, Apr 07, 2017 at 08:21:38AM -0500, Andrew F. Davis wrote: > >> Ping? > > Been waiting for a v2 of this, I'd assume it doesn't apply cleanly > and/or needs further additions. > It applied just fine 2 months ago when posted, why would you wait for

Re: [U-Boot] [PATCH 5/6] arm: sunxi: Use board hooks to obtain MAC address

2017-04-07 Thread Olliver Schinagl
Hey Joe, On 30-11-16 22:36, Joe Hershberger wrote: On Fri, Nov 25, 2016 at 9:38 AM, Olliver Schinagl wrote: Add board hooks allowing to get ethernet addresses in a board specific manner. Currently this is done by generating a MAC address from the SID and injecting the ethernet device number in

Re: [U-Boot] [PATCH] defconfig: am43xx_hs_evm: Sync HS defconfig with non-HS defconfig

2017-04-07 Thread Tom Rini
On Fri, Apr 07, 2017 at 08:31:20AM -0500, Andrew F. Davis wrote: > On 04/07/2017 08:23 AM, Tom Rini wrote: > > On Fri, Apr 07, 2017 at 08:21:38AM -0500, Andrew F. Davis wrote: > > > >> Ping? > > > > Been waiting for a v2 of this, I'd assume it doesn't apply cleanly > > and/or needs further additi

Re: [U-Boot] [PATCH v4 17/19] arm: socfpga: Add config and defconfig for Arria 10

2017-04-07 Thread Dinh Nguyen
On Wed, Apr 5, 2017 at 4:32 AM, Ley Foon Tan wrote: > Add config and defconfig for the Arria10 and update socfpga_common.h. > > Signed-off-by: Tien Fong Chee > Signed-off-by: Ley Foon Tan > --- > configs/socfpga_arria10_defconfig | 28 ++ > include/configs/socfpga_arria10_socd

Re: [U-Boot] [PATCH v4 15/19] drivers: fpga: Add compile switch for Gen5 only registers

2017-04-07 Thread Dinh Nguyen
On Wed, Apr 5, 2017 at 4:32 AM, Ley Foon Tan wrote: > These registers only available for Gen5 device, exclude them > from Arria 10 build. > > Signed-off-by: Tien Fong Chee > Signed-off-by: Ley Foon Tan > --- > drivers/fpga/socfpga.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a

[U-Boot] [PATCH] ti_armv7_common: env: Use args_mmc in FIT loading path

2017-04-07 Thread Andrew F. Davis
The env command 'args_fit' does not define a root path, this forces us to embed the rootfs into the FIT image. FIT images do not need to contain a rootfs, when they do not the kernel will fall-back to the kernel argument 'root', if this is not defined the kernel will not boot. It is safe to add thi

[U-Boot] [PATCH] ti_armv7_common: env: Change FIT image name to match build name

2017-04-07 Thread Andrew F. Davis
The most common name for a FIT image containing a bootable kernel is "fitImage", as our builds now use this name also, change this to the default in our U-Boot environment. Signed-off-by: Andrew F. Davis --- include/configs/ti_armv7_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[U-Boot] [PATCH v2 01/10] image: Fixes build warning with CONFIG_FIT_IMAGE_POST_PROCESS

2017-04-07 Thread Andrew F. Davis
From: Madan Srinivas The function 'board_fit_image_post_process' is defined only when the config option CONFIG_FIT_IMAGE_POST_PROCESS is enabled. For secure systems that do not use SPL but do use FIT kernel images, only CONFIG_FIT_IMAGE_POST_PROCESS will be defined, which will result in an implic

[U-Boot] [PATCH v2 02/10] arm: mach-keystone: Implements FIT post-processing call for keystone SoCs

2017-04-07 Thread Andrew F. Davis
From: Vitaly Andrianov This commit implements the board_fit_image_post_process() function for the keystone architecture. This function calls into the secure boot monitor for secure authentication/decryption of the image. All needed work is handled by the boot monitor and, depending on the keyston

[U-Boot] [PATCH v2 05/10] ARM: Keystone2: Build secure images for K2

2017-04-07 Thread Andrew F. Davis
From: Madan Srinivas Adds an additional image type needed for supporting secure keystone devices. The build generates u-boot_HS_MLO which can be used to boot from all media on secure keystone devices. Signed-off-by: Madan Srinivas Signed-off-by: Andrew F. Davis Reviewed-by: Tom Rini --- arch

[U-Boot] [PATCH v2 07/10] Kconfig: Adds SYS_TEXT_BASE config option for Keystone2

2017-04-07 Thread Andrew F. Davis
From: Madan Srinivas This patch makes SYS_TEXT_BASE a config option for Keystone2 so that it can be used to load u-boot at different addresses on secure and non-secure Keystone2 devices. Signed-off-by: Madan Srinivas Signed-off-by: Andrew F. Davis Reviewed-by: Tom Rini --- Kconfig

[U-Boot] [PATCH v2 04/10] arm: mach-omap2: Add secure image name common to OMAP and keystone

2017-04-07 Thread Andrew F. Davis
From: Madan Srinivas As K2 can directly boot U-Boot, add u-boot_HS_MLO as the secure image name for secure K2 devices, for all boot modes other than SPI flash. Signed-off-by: Madan Srinivas Signed-off-by: Andrew F. Davis Reviewed-by: Tom Rini --- arch/arm/mach-omap2/config_secure.mk | 6

[U-Boot] [PATCH v2 03/10] arm: mach-omap2: Enable Kconfig support for K2 HS devices

2017-04-07 Thread Andrew F. Davis
From: Vitaly Andrianov Like the OMAP54xx, AM43xx, & AM33xx family SoCs, the keystone family of SoCs also have high security enabled models. Allow K2E devices to be built with HS Device Type Support. Signed-off-by: Vitaly Andrianov Signed-off-by: Madan Srinivas Signed-off-by: Andrew F. Davis R

[U-Boot] [PATCH v2 09/10] defconfig: k2hk_hs_evm: Add k2hk_hs_evm_defconfig

2017-04-07 Thread Andrew F. Davis
TI K2HK secure devices have to be built with TI_SECURE_DEVICE, FIT, and FIT_IMAGE_POST_PROCESS enabled. Add a dedicated defconfig for this. Signed-off-by: Andrew F. Davis --- configs/k2hk_hs_evm_defconfig | 51 +++ 1 file changed, 51 insertions(+) create

[U-Boot] [PATCH v2 10/10] defconfig: k2g_hs_evm: Add k2g_hs_evm_defconfig

2017-04-07 Thread Andrew F. Davis
TI K2G secure devices have to be built with TI_SECURE_DEVICE, FIT, and FIT_IMAGE_POST_PROCESS enabled. Add a dedicated defconfig for this. Signed-off-by: Andrew F. Davis --- configs/k2g_hs_evm_defconfig | 55 1 file changed, 55 insertions(+) create m

[U-Boot] [PATCH v2 06/10] doc: Updates info on using Keystone2 secure devices

2017-04-07 Thread Andrew F. Davis
From: Madan Srinivas Add a section describing the secure boot image used on Keystone2 secure devices. Signed-off-by: Madan Srinivas Signed-off-by: Andrew F. Davis Reviewed-by: Tom Rini --- doc/README.ti-secure | 20 1 file changed, 20 insertions(+) diff --git a/doc/READ

[U-Boot] [PATCH v3] spl: net: Add FIT image support over network boot

2017-04-07 Thread Andrew F. Davis
FIT support in the net boot case is much like the RAM boot case in that we load our image to "load_addr" and pass a dummy read function into "spl_load_simple_fit()". As the load address is no longer hard-coded to the final execution address, RAW image loading will rely on "load_addr" pointing to th

[U-Boot] [PATCH v2 08/10] defconfig: k2e_hs_evm: Add k2e_hs_evm_defconfig

2017-04-07 Thread Andrew F. Davis
From: Vitaly Andrianov TI K2E secure devices have to be built with TI_SECURE_DEVICE, FIT, and FIT_IMAGE_POST_PROCESS enabled. Add a dedicated defconfig for this. Signed-off-by: Vitaly Andrianov Signed-off-by: Madan Srinivas Signed-off-by: Andrew F. Davis Reviewed-by: Simon Glass --- configs

[U-Boot] [PATCH v2 00/10] Add support for secure boot on Keystone2 SoCs

2017-04-07 Thread Andrew F. Davis
Hello all, This series adds support for secure Keystone2 K2E, K2G, and K2HK devices, much of the work is borrowed from the OMAP style devices as the secure workings are very similar, allowing minimal changes for this support. Thanks, Andrew Changes from v1: - Add Reviewed-bys - Add k2g_hs_evm_

Re: [U-Boot] [RFC] tiny-printf: Add support for %p format

2017-04-07 Thread Tom Rini
On Fri, Apr 07, 2017 at 03:20:34PM +0530, Vignesh R wrote: > Add support for %p, %pa[p], %pM, %pm and %pI4 formats to tiny-printf. > %pM and %pI4 are widely used by SPL networking stack and is required if > networking support is desired in SPL. > > Before this patch: > $ size spl/u-boot-spl >

[U-Boot] [PATCH v2 1/8] defconfigs: am335x_hs_evm: Sync HS and non-HS defconfigs

2017-04-07 Thread Andrew F. Davis
Sync new additions to non-HS defconfig with HS defconfig. Also add SPL NAND support, this was disabled before due to size constraints, enable this now at the expense of the less used GPT partition support. Signed-off-by: Andrew F. Davis --- configs/am335x_hs_evm_defconfig | 6 ++ 1 file chan

[U-Boot] [PATCH v2 3/8] defconfigs: am57xx_hs_evm: Sync HS and non-HS defconfigs

2017-04-07 Thread Andrew F. Davis
Additions have been made to the non-HS defconfig without the same being made to the HS defconfig, sync them. Signed-off-by: Andrew F. Davis --- configs/am57xx_hs_evm_defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/configs/am57xx_hs_evm_defconfig b/configs/am57xx_hs_evm_defco

[U-Boot] [PATCH v2 0/8] Update and sync HS configs

2017-04-07 Thread Andrew F. Davis
Hello all, This series is a consolidation of several past series and patches. We first sync the current HS and non-HS defconfigs. Then we merge in two AM43xx defconfigs into the HS defconfig. Lastly we add a defconfig for AM335x UART boot, we cannot add UART boot to the regular defconfig due to SP

[U-Boot] [PATCH v2 7/8] defconfigs: am43xx_hs_evm: Add USB Host boot mode support

2017-04-07 Thread Andrew F. Davis
Enable SPL_USB_HOST_SUPPORT in the default defconfig to allow booting from USB peripherals. Unlike the non-HS boards, we already load SPL to a 0x4030_+ address, so no other changes are needed. Signed-off-by: Andrew F. Davis --- configs/am43xx_hs_evm_defconfig | 1 + 1 file changed, 1 inserti

[U-Boot] [PATCH v2 8/8] defconfigs: Add a config for AM335x High Security EVM with UART Boot support

2017-04-07 Thread Andrew F. Davis
Add a new defconfig file for the AM335x High Security EVM. This config is specific for the case of UART booting Signed-off-by: Andrew F. Davis --- configs/am335x_hs_evm_uart_defconfig | 69 1 file changed, 69 insertions(+) create mode 100644 configs/am335x_h

[U-Boot] [PATCH v2 6/8] defconfigs: am43xx_hs_evm: Add USB client boot mode support

2017-04-07 Thread Andrew F. Davis
Enable CONFIG_SPL_USBETH_SUPPORT in the default defconfig to allow booting as a USB RNDIS peripheral. Signed-off-by: Andrew F. Davis --- configs/am43xx_hs_evm_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/am43xx_hs_evm_defconfig b/configs/am43xx_hs_evm_defconfig index

[U-Boot] [PATCH v2 2/8] defconfigs: am43xx_hs_evm: Sync HS and non-HS defconfigs

2017-04-07 Thread Andrew F. Davis
Additions have been made to the non-HS defconfig without the same being made to the HS defconfig, sync them. Signed-off-by: Andrew F. Davis --- configs/am43xx_hs_evm_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs/am43xx_hs_evm_defconfig b/configs/am43xx_

[U-Boot] [PATCH v2 5/8] defconfigs: am43xx_hs_evm: Add Net boot mode support

2017-04-07 Thread Andrew F. Davis
Enable Eth/Net boot support in the default defconfig to allow network booting. Signed-off-by: Andrew F. Davis --- configs/am43xx_hs_evm_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs/am43xx_hs_evm_defconfig b/configs/am43xx_hs_evm_defconfig index 7a39d38

[U-Boot] [PATCH v2 4/8] defconfigs: dra7xx_hs_evm: Sync HS and non-HS defconfigs

2017-04-07 Thread Andrew F. Davis
Additions have been made to the non-HS defconfig without the same being made to the HS defconfig, sync them. Signed-off-by: Andrew F. Davis --- configs/dra7xx_hs_evm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/dra7xx_hs_evm_defconfig b/configs/dra7xx_hs_evm_defconfig in

Re: [U-Boot] [PATCH 5/6] arm: sunxi: Use board hooks to obtain MAC address

2017-04-07 Thread o . schinagl
On Fri, 2017-04-07 at 15:45 +0200, Olliver Schinagl wrote: > Hey Joe, > > On 30-11-16 22:36, Joe Hershberger wrote: > > On Fri, Nov 25, 2016 at 9:38 AM, Olliver Schinagl > nl> wrote: > > > Add board hooks allowing to get ethernet addresses in a board > > > specific > > > manner. Currently this is

[U-Boot] [PATCH 1/2] defconfigs: dra7xx_hs_evm: Move OPTEE load address to avoid overlaps

2017-04-07 Thread Andrew F. Davis
From: Misael Lopez Cruz Move the OPTEE load address to 0xbdb0 in order to avoid overlap with the memory regions used in radio and RVC usecases. Signed-off-by: Misael Lopez Cruz Signed-off-by: Andrew F. Davis --- configs/dra7xx_hs_evm_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 del

[U-Boot] [PATCH 2/2] defconfigs: am57xx_hs_evm: Move OPTEE load address to avoid overlaps

2017-04-07 Thread Andrew F. Davis
Move the OPTEE load address to 0xbdb0 in order to avoid overlap with the memory regions used in radio and RVC usecases. Signed-off-by: Andrew F. Davis --- configs/am57xx_hs_evm_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/am57xx_hs_evm_defconfig b/con

[U-Boot] [PATCH v4] imx: i.mx6q: add the initial support for LogicPD i.MX6Q SOM

2017-04-07 Thread Adam Ford
Logic PD has an i.MX6Q system on module (SOM) with a development kit. The SOM has a built-in microSD socket, DDR and NAND flash. The development kit has an SMSC Ethernet PHY, serial debug port and a variety of peripherals. This have been verified to boot the i.MX6Q version over either SD on the de

Re: [U-Boot] [PATCH v2] Add support for Microchip LAN78xx

2017-04-07 Thread Yuiko.Oshino
From: Yuiko Oshino >-Original Message- >From: Marek Vasut [mailto:ma...@denx.de] >Sent: Monday, March 27, 2017 9:30 AM >To: Yuiko Oshino - C18177; u-boot@lists.denx.de >Subject: Re: [PATCH v2] Add support for Microchip LAN78xx > >On 03/27/2017 01:59 PM, yuiko.osh...@microchip.com wrote: >>

Re: [U-Boot] [U-Boot,v2] Add support for Microchip LAN78xx

2017-04-07 Thread Yuiko.Oshino
From: Yuiko Oshino >-Original Message- >From: Tom Rini [mailto:tr...@konsulko.com] >Sent: Tuesday, April 04, 2017 10:46 AM >To: Yuiko Oshino - C18177 >Cc: u-boot@lists.denx.de; ma...@denx.de >Subject: Re: [U-Boot,v2] Add support for Microchip LAN78xx > >On Fri, Mar 24, 2017 at 06:30:46PM +

Re: [U-Boot] [U-Boot,v2] pci: Add a command to show PCI regions

2017-04-07 Thread Tom Rini
On Sun, Apr 02, 2017 at 12:27:16PM -0600, Simon Glass wrote: > Add 'pci regions' which lists the I/O and memory regions accessible from > the PCI controller. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Drop duplicate PCI_REGION_IO line > > cmd/pci.c | 48 ++

Re: [U-Boot] lib: div64: sync with Linux

2017-04-07 Thread Tom Rini
On Tue, Mar 28, 2017 at 05:05:09PM +0800, Peng Fan wrote: > Sync with Linux commit ad0376eb1483b ("Merge tag 'edac_for_4.11_2'"). > > Signed-off-by: Peng Fan > Cc: Tom Rini aarch64: + uniphier_v8 +(uniphier_v8) cmd/built-in.o: In function `lldiv': +(uniphier_v8) include/div64.h:45

Re: [U-Boot] [PATCH 2/3] fsl-ppa: Kconfig: Support to load PPA hdr from eMMC/SD and NAND Flash

2017-04-07 Thread York Sun
On 04/07/2017 04:42 AM, Sumit Garg wrote: Add support to load PPA hdr from eMMC/SD and NAND Flash in Kconfig Signed-off-by: Sumit Garg Signed-off-by: Udit Agarwal Tested-by: Vinitha Pillai --- arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 10 ++ 1 file changed, 10 insertions(+) diff -

Re: [U-Boot] [RFC PATCH v3 00/16] GPT over MTD

2017-04-07 Thread Tom Rini
On Mon, Feb 06, 2017 at 10:06:40AM +0100, Patrick Delaunay wrote: > > I have a request to support GPT over MTD to be able to have dynamic > MTD informations without U-Boot environment(CONFIG_ENV_IS_NOWHERE > is a other requirement of my project). > > The idea is to use the GPT header to save par

Re: [U-Boot] [PATCH v4 00/16] GPT over MTD

2017-04-07 Thread Tom Rini
On Wed, Mar 15, 2017 at 03:11:31PM +0100, Patrick Delaunay wrote: > > I have a request to support GPT over MTD to have the MTD informations > without U-Boot environment(CONFIG_ENV_IS_NOWHERE is a other requirement > of my project to manage several board configuration with > the same defconfig; bo

Re: [U-Boot] [PATCH v2] Add support for Microchip LAN78xx

2017-04-07 Thread Marek Vasut
On 04/07/2017 05:43 PM, yuiko.osh...@microchip.com wrote: > From: Yuiko Oshino >> -Original Message- >> From: Marek Vasut [mailto:ma...@denx.de] >> Sent: Monday, March 27, 2017 9:30 AM >> To: Yuiko Oshino - C18177; u-boot@lists.denx.de >> Subject: Re: [PATCH v2] Add support for Microchip L

Re: [U-Boot] [PATCH 8/8] dm: led: Add a new 'led' command

2017-04-07 Thread Tom Rini
On Fri, Mar 31, 2017 at 11:55:05AM -0600, Simon Glass wrote: > When driver model is used for LEDs, provide a command to allow LED access. > > Signed-off-by: Simon Glass [snip] > +static const char *const state_label[] = { > + [LEDST_OFF] = "off", > + [LEDST_ON] = "on", > + [

[U-Boot] [PATCH] dts: rk3399-puma: make the DTS dual-licensed

2017-04-07 Thread Philipp Tomsich
The RK3399-Q7 (Puma) DTS should (of course) be dual-licensed. This updates the licensing info in the rk3399-puma.dts. Signed-off-by: Philipp Tomsich --- arch/arm/dts/rk3399-puma.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/rk3399-puma.dts b/arch/arm/dts/

[U-Boot] [PATCH v2] ARM64: rockchip: split RK3399-Q7 board off the RK3399-EVB board

2017-04-07 Thread Philipp Tomsich
From: Klaus Goger The RK3399-Q7 SoM is a Qseven-compatible (70mm x 70mm, MXM-230 connector) system-on-module from Theobroma Systems, featuring the Rockchip RK3399. It provides the following feature set: * up to 4GB DDR3 * on-module SPI-NOR flash * on-module eMMC (with 8-bit interace) * SD ca

Re: [U-Boot] [U-Boot, 3/7] mtd: nand: Consolidate nand spl loaders implementation

2017-04-07 Thread Tom Rini
On Sat, Apr 01, 2017 at 05:16:37PM +0200, Ladislav Michl wrote: > nand_spl_load_image implementation was copied over into three > different drivers and now with nand_spl_read_block used for > ubispl situation gets even worse. For now use least intrusive > solution and #include the same implementat

Re: [U-Boot] [U-Boot, 1/3] cmd: cramfs: use map_sysmem for sandbox support

2017-04-07 Thread Tom Rini
On Wed, Mar 22, 2017 at 04:02:04PM -0400, Tyler Hall wrote: > As with most other commands, this needs to factor in the sysmem offset > in the sandbox or it will try to dereference the simulated physical > address directly. > > Signed-off-by: Tyler Hall This series introduces a few problems such

[U-Boot] Pull request: u-boot-sunxi/master

2017-04-07 Thread Jagan Teki
Hi Tom, Please take this PR. thanks! Jagan. The following changes since commit d53ecad92f06d2e38a5cbc13af7473867c7fa277: Merge branch 'master' of git://git.denx.de/u-boot-sunxi (2017-04-06 20:40:24 -0400) are available in the git repository at: git://git.denx.de/u-boot-sunxi.git master

Re: [U-Boot] [RFC] tiny-printf: Add support for %p format

2017-04-07 Thread Vignesh R
On 4/7/2017 8:40 PM, Tom Rini wrote: > On Fri, Apr 07, 2017 at 03:20:34PM +0530, Vignesh R wrote: > >> Add support for %p, %pa[p], %pM, %pm and %pI4 formats to tiny-printf. >> %pM and %pI4 are widely used by SPL networking stack and is required if >> networking support is desired in SPL. >> >> B

Re: [U-Boot] [PATCH v3] spl: net: Add FIT image support over network boot

2017-04-07 Thread Vignesh R
On 4/7/2017 8:36 PM, Davis, Andrew wrote: > FIT support in the net boot case is much like the RAM boot case in that > we load our image to "load_addr" and pass a dummy read function into > "spl_load_simple_fit()". As the load address is no longer hard-coded to > the final execution address, RAW i

[U-Boot] [PATCH] Fix a bug with PL010s running at 19200 baud

2017-04-07 Thread Alyssa Rosenzweig
I don't have the hardware test this, but it is almost certainly a typo in the code dating back to at least 2004. Signed-off-by: Alyssa Rosenzweig --- drivers/serial/serial_pl01x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/serial_pl01x.c b/drivers/serial/s

Re: [U-Boot] [PATCH 0/2] Improve Raspberry Pi mmc writes.

2017-04-07 Thread Alex Deymo
2017-04-06 21:53 GMT-07:00 Jaehoon Chung : > On 04/02/2017 03:58 PM, Alex Deymo wrote: > > When experimenting with fastboot from U-Boot on the Raspberry Pi 3 we > > found that the writes to the sdcard are much more slow than when > > accessing it from the userspace. These two patches speed up the

[U-Boot] [PATCH] mx6sabresd: README: Add eMMC boot configuration

2017-04-07 Thread Breno Lima
Explain how to flash the eMMC and how to boot from it. Signed-off-by: Breno Lima --- board/freescale/mx6sabresd/README | 22 ++ 1 file changed, 22 insertions(+) diff --git a/board/freescale/mx6sabresd/README b/board/freescale/mx6sabresd/README index 5814b9d..875d4b2 100644

Re: [U-Boot] [PATCH v3] spl: net: Add FIT image support over network boot

2017-04-07 Thread Andrew F. Davis
On 04/07/2017 01:26 PM, Vignesh R wrote: > > > On 4/7/2017 8:36 PM, Davis, Andrew wrote: >> FIT support in the net boot case is much like the RAM boot case in that >> we load our image to "load_addr" and pass a dummy read function into >> "spl_load_simple_fit()". As the load address is no longer

[U-Boot] [PATCH v4] spl: net: Add FIT image support over network boot

2017-04-07 Thread Andrew F. Davis
FIT support in the net boot case is much like the RAM boot case in that we load our image to "load_addr" and pass a dummy read function into "spl_load_simple_fit()". As the load address is no longer hard-coded to the final execution address, legacy image loading will require load_addr to be set cor

Re: [U-Boot] Low priority request for info about alternative to #ifdef

2017-04-07 Thread James Chargin
Did I make a mistake including "Low priority" in the subject? If anyone remembers this discussion, I'd appreciate a pointer. Thanks, Jim On 03/21/2017 07:08 AM, James Chargin wrote: Hi I've seen periodic discussion on the U-Boot mailing list of alternatives to #ifdef. I need a bit more inform

[U-Boot] [PATCH] ARCv2: SLC: Make sure busy bit is set properly on SLC flushing

2017-04-07 Thread Alexey Brodkin
As reported in STAR 9001165532, an SLC control reg read (for checking busy state) right after SLC invalidate command may incorrectly return NOT busy causing software to NOT spin-wait while operation is underway. (and for some reason this only happens if L1 cache is also disabled - as required by IO

Re: [U-Boot] [PATCH 3/7] ti: wdt: omap: Disable watchdog timer before performing initialization

2017-04-07 Thread Lukasz Majewski
Hi Tom, > On Sun, Feb 19, 2017 at 11:24:38PM +0100, Lukasz Majewski wrote: > > > The OMAP WDT IP block requires to be stopped before any write to its > > registers is performed. > > > > This problem has been thoroughly described in Linux kernel: > > > > "watchdog: omap: assert the counter being

Re: [U-Boot] [RFC] tiny-printf: Add support for %p format

2017-04-07 Thread Tom Rini
On Fri, Apr 07, 2017 at 11:42:56PM +0530, Vignesh R wrote: > > > On 4/7/2017 8:40 PM, Tom Rini wrote: > > On Fri, Apr 07, 2017 at 03:20:34PM +0530, Vignesh R wrote: > > > >> Add support for %p, %pa[p], %pM, %pm and %pI4 formats to tiny-printf. > >> %pM and %pI4 are widely used by SPL networking

[U-Boot] [PATCH] spl: make image arg or fdt blob address reconfigurable

2017-04-07 Thread Vikas Manocha
At present fdt blob or argument address being passed to kernel is fixed at compile time using macro CONFIG_SYS_SPL_ARGS_ADDR. FDT blob from different media like nand, nor flash are copied to the address pointed by the macro. The problem is, it makes args/fdt blob compulsory to copy which is not req

Re: [U-Boot] orangepi_pc2: Build error

2017-04-07 Thread André Przywara
On 07/04/17 06:10, Jagan Teki wrote: Hi Jagan, > Can you check this error on master? > > COPYspl/u-boot-spl.bin > MKSUNXI spl/sunxi-spl.bin > ERROR: File too large! > make[1]: *** [spl/sunxi-spl.bin] Error 1 > make: *** [spl/u-boot-spl] Error 2 Yeah, this is unfortunately a known issue

Re: [U-Boot] [PATCH] mx6sabresd: README: Add eMMC boot configuration

2017-04-07 Thread Fabio Estevam
Hi Breno, On Fri, Apr 7, 2017 at 4:22 PM, Breno Lima wrote: > Explain how to flash the eMMC and how to boot from it. > > Signed-off-by: Breno Lima > --- > board/freescale/mx6sabresd/README | 22 ++ > 1 file changed, 22 insertions(+) > > diff --git a/board/freescale/mx6sabres

Re: [U-Boot] [PATCH v2 02/10] arm: mach-keystone: Implements FIT post-processing call for keystone SoCs

2017-04-07 Thread Lokesh Vutla
On 4/7/2017 8:30 PM, Andrew F. Davis wrote: > From: Vitaly Andrianov > > This commit implements the board_fit_image_post_process() function for > the keystone architecture. This function calls into the secure boot > monitor for secure authentication/decryption of the image. All needed > work is

Re: [U-Boot] [PATCH v2 01/10] image: Fixes build warning with CONFIG_FIT_IMAGE_POST_PROCESS

2017-04-07 Thread Lokesh Vutla
On 4/7/2017 8:30 PM, Andrew F. Davis wrote: > From: Madan Srinivas > > The function 'board_fit_image_post_process' is defined only when the > config option CONFIG_FIT_IMAGE_POST_PROCESS is enabled. For secure > systems that do not use SPL but do use FIT kernel images, only > CONFIG_FIT_IMAGE_PO

Re: [U-Boot] [PATCH v2 03/10] arm: mach-omap2: Enable Kconfig support for K2 HS devices

2017-04-07 Thread Lokesh Vutla
On 4/7/2017 8:30 PM, Andrew F. Davis wrote: > From: Vitaly Andrianov > > Like the OMAP54xx, AM43xx, & AM33xx family SoCs, the keystone family > of SoCs also have high security enabled models. Allow K2E devices to > be built with HS Device Type Support. > > Signed-off-by: Vitaly Andrianov > Si

Re: [U-Boot] [PATCH v2 04/10] arm: mach-omap2: Add secure image name common to OMAP and keystone

2017-04-07 Thread Lokesh Vutla
On 4/7/2017 8:30 PM, Andrew F. Davis wrote: > From: Madan Srinivas > > As K2 can directly boot U-Boot, add u-boot_HS_MLO as the secure image > name for secure K2 devices, for all boot modes other than SPI flash. > > Signed-off-by: Madan Srinivas > Signed-off-by: Andrew F. Davis > Reviewed-by

Re: [U-Boot] [PATCH v2 05/10] ARM: Keystone2: Build secure images for K2

2017-04-07 Thread Lokesh Vutla
On 4/7/2017 8:30 PM, Andrew F. Davis wrote: > From: Madan Srinivas > > Adds an additional image type needed for supporting secure keystone > devices. The build generates u-boot_HS_MLO which can be used to boot > from all media on secure keystone devices. SPI boot has a different image on non-H

  1   2   >