[U-Boot] [PATCH v7 6/6] arm: socfpga: Add FPGA driver support for Arria 10

2017-05-28 Thread tien . fong . chee
From: Tien Fong Chee Add FPGA driver support for Arria 10. Signed-off-by: Tien Fong Chee --- arch/arm/mach-socfpga/include/mach/fpga_manager.h | 2 + .../include/mach/fpga_manager_arria10.h| 100 + drivers/fpga/Makefile | 1 + drivers/fpga/socf

[U-Boot] [PATCH v7 4/6] drivers: Enable FPGA driver build on SPL

2017-05-28 Thread tien . fong . chee
From: Tien Fong Chee Enable FPGA driver build for SPL because FPGA driver is needed for SPL to configure and getting DDR up before loading U-boot into DDR and booting from there. Signed-off-by: Tien Fong Chee --- drivers/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/Make

[U-Boot] [PATCH v7 5/6] arm: socfpga: Move FPGA manager driver to FPGA driver

2017-05-28 Thread tien . fong . chee
From: Tien Fong Chee Move FPGA manager driver which is Gen5 specific code from arch/arm/ into FPGA driver at driver/fpga/. No functional change. Signed-off-by: Tien Fong Chee --- arch/arm/mach-socfpga/Makefile | 1 - arch/arm/mach-socfpga/fpga_manager.c | 78

[U-Boot] [PATCH v7 3/6] arm: socfpga: Enable FPGA driver on SPL

2017-05-28 Thread tien . fong . chee
From: Tien Fong Chee This patch is for enabling the FPGA driver support on SPL. Signed-off-by: Tien Fong Chee --- include/configs/socfpga_common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h index da7e4ad..e74e7eb 1006

[U-Boot] [PATCH v7 2/6] arm: socfpga: Restructure FPGA driver in the preparation to support A10

2017-05-28 Thread tien . fong . chee
From: Tien Fong Chee Move FPGA driver which is Gen5 specific code into Gen5 driver file and keeping common FPGA driver intact. All the changes are still keeping in driver/fpga/ and no functional change. Subsequent patch would move FPGA manager driver from arch/arm into driver/fpga/. Signed-off-b

[U-Boot] [PATCH v7 1/6] arm: socfpga: Remove unused passing parameter of socfpga_bridges_reset

2017-05-28 Thread tien . fong . chee
From: Tien Fong Chee Remove parameter from socfpga_bridges_reset(), and keeping this function for single purpose which is just triggering reset on bridges. socfpga_reset_deassert_bridges_handoff() can be called for releasing reset on any bridges based on the bridge setting defined in fdt. Signed

[U-Boot] [PATCH v7 0/6] Add Intel Arria 10 SoC FPGA driver

2017-05-28 Thread tien . fong . chee
From: Tien Fong Chee This is the 6th version of patchset to adds support for Intel Arria 10 SoC FPGA driver. This version mainly resolved comments from Dinh in [v6]. This series is working on top of u-boot.git - http://git.denx.de/u-boot.git. [v5]: https://www.mail-archive.com/u-boot@lists.denx.

Re: [U-Boot] [PATCH v6 0/6] Add Intel Arria 10 SoC FPGA driver

2017-05-28 Thread Chee, Tien Fong
On Jum, 2017-05-26 at 09:49 -0500, Dinh Nguyen wrote: > > On 05/26/2017 03:48 AM, Chee, Tien Fong wrote: > > > > > > > > > > > > So the patch for using CONFIG_SPL_FPGA_SUPPORT is causing this > > > build > > > error. Please investigate. > > > > > > Dinh > > Hi Dinh, > > > > I have tried with

Re: [U-Boot] [PATCH 3/3] marvell: armada385: Add the Turris Omnia board

2017-05-28 Thread Andreas Färber
Hi Pavel, Am 28.05.2017 um 21:17 schrieb Pavel Machek: >> Signed-off-by: Marek Behun [...] >> +++ b/arch/arm/dts/armada-385-turris-omnia.dts >> @@ -0,0 +1,428 @@ >> +/* >> + * Device Tree file for the Turris Omnia >> + * >> + * Copyright (C) 2014 Marvell >> + * >> + * Marek Behun > There should

[U-Boot] [PATCH v2 5/7] serial: stm32f7: disable overrun

2017-05-28 Thread Vikas Manocha
With overrun enabled, serial port console freezes & stops receiving data with overun error if we keep sending data. Signed-off-by: Vikas Manocha --- Changed in v2: None drivers/serial/serial_stm32x7.c | 3 +++ drivers/serial/serial_stm32x7.h | 2 ++ 2 files changed, 5 insertions(+) diff --git

[U-Boot] [PATCH v2 7/7] spl: stm32f7: configure for xip booting

2017-05-28 Thread Vikas Manocha
With xip booting configuration, we don't need to copy the next image (U-Boot or linux xipimage) from flash to sdram area. Flash memory organization is like this: spl-U-Boot: u-boot-spl.bin : 0x0800_ U-Boot :u-boot-dtb.bin : 0x0800_8000 linux : xipI

[U-Boot] [PATCH v2 6/7] spl: stm32f7: add kernel boot support

2017-05-28 Thread Vikas Manocha
Signed-off-by: Vikas Manocha --- Changed in v2: None arch/arm/mach-stm32/stm32f7/Kconfig| 1 + board/st/stm32f746-disco/stm32f746-disco.c | 9 + include/configs/stm32f746-disco.h | 7 +++ 3 files changed, 17 insertions(+) diff --git a/arch/arm/mach-stm32/stm32f7/Kc

[U-Boot] [PATCH v2 4/7] SPL: Add XIP booting support

2017-05-28 Thread Vikas Manocha
Enable support for XIP (execute in place) of U-Boot or kernel image. There is no need to copy image from flash to ram if flash supports execute in place. Signed-off-by: Vikas Manocha --- Changed in v2: - removed v7m thumb mode for entry point, added separate patch. - removed extra blank line.

[U-Boot] [PATCH v2 3/7] stm32: stm32f7: add spl build support

2017-05-28 Thread Vikas Manocha
This commit supports booting from stm32 internal nor flash. spl U-Boot initializes the sdram memory, copies next image (e.g. standard U-Boot) to sdram & then jumps to entry point. Here are the flash memory addresses for U-Boot-spl & standard U-Boot: - spl U-Boot: 0x0800_

[U-Boot] [PATCH v2 1/7] spl: armv7m: to keep ARM v7M in thumb mode before booting next image

2017-05-28 Thread Vikas Manocha
On ARM v7M, the processor will return to ARM mode when executing blx instruction with bit 0 of the address == 0. Always set it to 1 to stay in thumb mode. At present, it is applied only for raw U-Boot. This patch moves it to just before booting next image. This way armv7m will be in thumb mode for

[U-Boot] [PATCH v2 2/7] stm32f7: remove duplicate configs

2017-05-28 Thread Vikas Manocha
Signed-off-by: Vikas Manocha --- Changed in v2: None configs/stm32f746-disco_defconfig | 4 1 file changed, 4 deletions(-) diff --git a/configs/stm32f746-disco_defconfig b/configs/stm32f746-disco_defconfig index 4322aad..a334d50 100644 --- a/configs/stm32f746-disco_defconfig +++ b/config

[U-Boot] [PATCH v2 0/7] spl: add xip booting support

2017-05-28 Thread Vikas Manocha
This patchset adds support for XIP (execute in place) of U-Boot or kernel image and enables it for stm32f7. Changed in v2: - added patch to move v7m thumb mode just before next image boot - removed extra blank line. Vikas Manocha (7): spl: armv7m: to keep ARM v7M in thumb mode before booting n

Re: [U-Boot] [PATCH 3/3] marvell: armada385: Add the Turris Omnia board

2017-05-28 Thread Pavel Machek
Hi! > Signed-off-by: Marek Behun > --- > arch/arm/dts/armada-385-turris-omnia.dts | 428 > +++ > arch/arm/mach-mvebu/Kconfig | 7 + > board/CZ.NIC/turris_omnia/Makefile | 7 + > board/CZ.NIC/turris_omnia/kwbimage.cfg | 12 + > board/CZ.NIC/

[U-Boot] [PATCH] mx7dsabresd: Increase CONFIG_ENV_OFFSET

2017-05-28 Thread Fabio Estevam
From: Fabio Estevam After running 'saveenv' we can no longer boot. Adjust CONFIG_ENV_OFFSET so that U-Boot binary and the environment section do not overlap. Signed-off-by: Fabio Estevam --- include/configs/mx7dsabresd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/incl

[U-Boot] [PATCH] cmd/ethsw: Disable implicit enum conversion warning

2017-05-28 Thread Tom Rini
With clang-3.8 we see warnings like: cmd/ethsw.c:304:6: warning: implicit conversion from enumeration type 'enum ethsw_keyword_opt_id' to different enumeration type 'enum ethsw_keyword_id' [-Wenum-conversion] ethsw_id_pvid_no,

Re: [U-Boot] Please pull u-boot-dm (take 2)

2017-05-28 Thread Tom Rini
On Sat, May 27, 2017 at 04:01:29PM -0600, Simon Glass wrote: > Hi Tom, > > This is similar to the last attempt, but without this offending patch > which will be replaced by a little series sent today: (I'll pull in > that series later) > > 0a2980b dm: mmc: Avoid probing block devices in find_mmc

Re: [U-Boot] [PATCH 1/3] dm: blk: Add a way to obtain a block device from its parent

2017-05-28 Thread Tom Rini
On Sat, May 27, 2017 at 11:37:17AM -0600, Simon Glass wrote: > Many devices support a child block device (e.g. MMC, USB). Add a > convenient way to get this device given the parent device. > > Signed-off-by: Simon Glass Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signat

Re: [U-Boot] [PATCH 2/3] dm: mmc: Ensure that block device is probed

2017-05-28 Thread Tom Rini
On Sat, May 27, 2017 at 11:37:18AM -0600, Simon Glass wrote: > Make sure that we probe the block device before using it when reading > the environment. > > Signed-off-by: Simon Glass Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature _

Re: [U-Boot] [PATCH 3/3] dm: mmc: Avoid probing block devices in find_mmc_device()

2017-05-28 Thread Tom Rini
On Sat, May 27, 2017 at 11:37:19AM -0600, Simon Glass wrote: > We do not need to probe the block device here, so avoid doing so. The MMC > device itself must be active, but the block device can come later. > > Signed-off-by: Simon Glass > --- > > drivers/mmc/mmc-uclass.c | 6 -- > 1 file c