[U-Boot] [GIT PULL] Please pull u-boot-mmc master

2017-03-29 Thread Jaehoon Chung
Dear Tom, Could pull these patches into u-boot/master? The following changes since commit 5cf618ee60a752d058a767372ca1ecb8d9c09b16: Merge git://git.denx.de/u-boot-arc (2017-03-24 08:19:30 -0400) are available in the git repository at: git://git.denx.de/u-boot-mmc.git master for you to

[U-Boot] [PATCH v3 10/19] arm: socfpga: Add misc support for Arria 10

2017-03-29 Thread Ley Foon Tan
Add misc support for Arria 10. Signed-off-by: Tien Fong Chee Signed-off-by: Ley Foon Tan --- arch/arm/mach-socfpga/Makefile| 1 + arch/arm/mach-socfpga/include/mach/misc.h | 6 + arch/arm/mach-socfpga/misc_arria10.c | 258

[U-Boot] [PATCH v3 19/19] arm: socfpga: Enable build for Arria 10

2017-03-29 Thread Ley Foon Tan
Update Kconfig and Makefile to enable Arria 10. Clean up Makefile and sorting *.o alphanumerically. Signed-off-by: Tien Fong Chee Signed-off-by: Ley Foon Tan --- arch/arm/mach-socfpga/Kconfig | 10 + arch/arm/mach-socfpga/Makefile | 46

[U-Boot] [PATCH v3 18/19] arm: socfpga: Add board files for the Arria10

2017-03-29 Thread Ley Foon Tan
Add support for the Arria10 SoCDK. Signed-off-by: Tien Fong Chee Signed-off-by: Ley Foon Tan --- board/altera/arria10-socdk/Kconfig | 18 ++ board/altera/arria10-socdk/Makefile | 7 +++

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

2017-03-29 Thread Ley Foon Tan
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_socdk.h | 66

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

2017-03-29 Thread Ley Foon Tan
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/arm/mach-socfpga/include/mach/reset_manager.h | 2 +

[U-Boot] [PATCH v3 13/19] arm: dts: Add dts and dtsi for Arria 10

2017-03-29 Thread Ley Foon Tan
Device tree files for Arria 10 Signed-off-by: Tien Fong Chee Signed-off-by: Ley Foon Tan --- arch/arm/dts/Makefile | 1 + arch/arm/dts/socfpga_arria10.dtsi | 859 +

[U-Boot] [PATCH v3 16/19] arm: socfpga: Convert Altera DDR SDRAM driver to use Kconfig

2017-03-29 Thread Ley Foon Tan
Convert Altera DDR SDRAM driver to use Kconfig method. Enable ALTERA_SDRAM by default if it is on Gen5 target. Arria 10 will have different driver. Signed-off-by: Tien Fong Chee Signed-off-by: Ley Foon Tan --- drivers/Kconfig |

[U-Boot] [PATCH v3 11/19] arm: socfpga: Add pinmux for Arria 10

2017-03-29 Thread Ley Foon Tan
Add pinmux support for Arria 10. Signed-off-by: Tien Fong Chee Signed-off-by: Ley Foon Tan --- arch/arm/mach-socfpga/Makefile | 1 + arch/arm/mach-socfpga/include/mach/pinmux.h | 15 + arch/arm/mach-socfpga/pinmux_arria10.c

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

2017-03-29 Thread Ley Foon Tan
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

[U-Boot] [PATCH v3 14/19] arm: socfpga: Add SPL support for Arria 10

2017-03-29 Thread Ley Foon Tan
Add SPL support for Arria 10. Signed-off-by: Tien Fong Chee Signed-off-by: Ley Foon Tan --- arch/arm/mach-socfpga/spl.c | 74 ++--- 1 file changed, 69 insertions(+), 5 deletions(-) diff --git

[U-Boot] [PATCH v3 12/19] fdt: Add compatible strings for Arria 10

2017-03-29 Thread Ley Foon Tan
Add compatible strings for Intel Arria 10 SoCFPGA device. Signed-off-by: Tien Fong Chee Signed-off-by: Ley Foon Tan --- include/fdtdec.h | 8 lib/fdtdec.c | 8 2 files changed, 16 insertions(+) diff --git

[U-Boot] [PATCH v3 07/19] arm: socfpga: Add clock driver for Arria 10

2017-03-29 Thread Ley Foon Tan
Add clock driver support for Arria 10. Signed-off-by: Tien Fong Chee Signed-off-by: Ley Foon Tan Conflicts: arch/arm/mach-socfpga/clock_manager.c --- arch/arm/mach-socfpga/Makefile |3 +-

[U-Boot] [PATCH v3 09/19] arm: socfpga: Add sdram header file for Arria 10

2017-03-29 Thread Ley Foon Tan
Add sdram header file for Arria 10. Signed-off-by: Tien Fong Chee Signed-off-by: Ley Foon Tan --- arch/arm/mach-socfpga/include/mach/sdram_arria10.h | 380 + 1 file changed, 380 insertions(+) create mode 100644

[U-Boot] [PATCH v3 08/19] arm: socfpga: Add system manager for Arria 10

2017-03-29 Thread Ley Foon Tan
Add system manager register struct and macros for Arria 10. Signed-off-by: Tien Fong Chee Signed-off-by: Ley Foon Tan --- .../arm/mach-socfpga/include/mach/system_manager.h | 74 +--- .../include/mach/system_manager_arria10.h

[U-Boot] [PATCH v3 04/19] arm: socfpga: Restructure misc driver

2017-03-29 Thread Ley Foon Tan
Restructure misc driver in the preparation to support A10. Move the Gen5 specific code to gen5 file. No functional change. Change all uint32_t_to u32. Signed-off-by: Ley Foon Tan --- arch/arm/mach-socfpga/Makefile| 2 +-

[U-Boot] [PATCH v3 05/19] arm: socfpga: Add A10 macros

2017-03-29 Thread Ley Foon Tan
Add i2c, timer and other A10 macros. Signed-off-by: Ley Foon Tan --- arch/arm/mach-socfpga/include/mach/base_addr_a10.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-socfpga/include/mach/base_addr_a10.h

[U-Boot] [PATCH v3 03/19] arm: socfpga: Restructure system manager

2017-03-29 Thread Ley Foon Tan
Restructure system manager in the preparation to support A10. No functional change. Change uint32_t to u32. Signed-off-by: Ley Foon Tan --- arch/arm/mach-socfpga/Makefile | 5 +- .../arm/mach-socfpga/include/mach/system_manager.h | 128

[U-Boot] [PATCH v3 02/19] arm: socfpga: Restructure reset manager driver

2017-03-29 Thread Ley Foon Tan
Restructure reset manager driver in the preparation to support A10. Move the Gen5 specific code to gen5 files. Minor update in socfpga_per_reset(). No functional change. Signed-off-by: Ley Foon Tan --- arch/arm/mach-socfpga/Makefile | 2 +-

[U-Boot] [PATCH v3 01/19] arm: socfpga: Restructure clock manager driver

2017-03-29 Thread Ley Foon Tan
Restructure clock manager driver in the preparation to support A10. Move the Gen5 specific code to _gen5 files. No functional change. Change all uint32_t to u32 and change to use macro BIT(n) for bit shift. Signed-off-by: Ley Foon Tan --- arch/arm/mach-socfpga/Makefile

[U-Boot] [PATCH v3 00/19] Add Intel Arria 10 SoC support

2017-03-29 Thread Ley Foon Tan
This is the 3rd version of patchset to adds support for Intel Arria 10 SoC. This version mainly resolved comments from Marek in [v2]. This is initial patchset enables the basic support for Arria 10 and other features will come after this. This series is working on top of “arm: socfpga: Move to

Re: [U-Boot] [PATCH v2] rockchip: mmc: rk3399: work around DMA issue in SPL

2017-03-29 Thread Jaehoon Chung
On 03/30/2017 12:01 PM, Kever Yang wrote: > Hi Philipp, > > > On 03/29/2017 08:59 PM, Dr. Philipp Tomsich wrote: >> Kever, >> >> I did a bit of quick experiment by altering the DMA target addresses for >> the DMA and can confirm that the root cause must be one of the security >> registers. > >

Re: [U-Boot] env_init() for mmc

2017-03-29 Thread york sun
Sorry for top posting. I am using OWA which doesn't do inline reply. Jaehoon, The trouble is the env_init() returns the default environment for SPL part. It means whatever variables I saved doesn't get loaded during the SPL part. It is only available after the SPL loads the RAM version. For

Re: [U-Boot] env_init() for mmc

2017-03-29 Thread Jaehoon Chung
Hi York, On 03/23/2017 07:58 AM, york sun wrote: > Jaehoon, > > I noticed the env_init() returns default environmental variable for SPL > build. I wonder if you can make some change to use the actual variables? > I am having some trouble to get the saved variable during SPL boot. Which

Re: [U-Boot] [PATCH 17/17] i2c: Drop CONFIG_SOFT_I2C_MULTI_BUS

2017-03-29 Thread Jaehoon Chung
On 03/29/2017 05:41 PM, Lukasz Majewski wrote: > Hi Simon, > > +CC board maintainer: Jaehoon. > >> This is not used by any board. Drop it. >> >> Signed-off-by: Simon Glass >> Clean up board_f sequence a little >> This series tries to remove #ifdefs from the board_f init

Re: [U-Boot] [PATCH 3/4] drivers: omap_hsmmc: move the mmc_config to platdata when DM_MMC is used

2017-03-29 Thread Jaehoon Chung
On 03/23/2017 12:00 AM, Jean-Jacques Hiblot wrote: > This is a preparation work for the support of CONFIG_BLK. > > Signed-off-by: Jean-Jacques Hiblot Applied on u-boot-mmc. Thanks! Best Regards, Jaehoon Chung > --- > drivers/mmc/omap_hsmmc.c | 27 ++-

Re: [U-Boot] [PATCH 4/4] drivers: omap_hsmmc: add support for CONFIG_BLK

2017-03-29 Thread Jaehoon Chung
On 03/23/2017 12:00 AM, Jean-Jacques Hiblot wrote: > Signed-off-by: Jean-Jacques Hiblot Applied on u-boot-mmc. Thanks! Best Regards, Jaehoon Chung > --- > drivers/mmc/omap_hsmmc.c | 17 + > 1 file changed, 17 insertions(+) > > diff --git

Re: [U-Boot] [PATCH 2/4] drivers: omap_hsmmc: use mmc_get_blk_desc() to get the block device desc

2017-03-29 Thread Jaehoon Chung
On 03/23/2017 12:00 AM, Jean-Jacques Hiblot wrote: > Signed-off-by: Jean-Jacques Hiblot Applied on u-boot-mmc. Thanks! Best Regards, Jaehoon Chung > --- > drivers/mmc/omap_hsmmc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [U-Boot] [PATCH 1/4] drivers: omap_hsmmc: use an accessor to get the private data

2017-03-29 Thread Jaehoon Chung
Hi, On 03/23/2017 12:00 AM, Jean-Jacques Hiblot wrote: > For consistency, use an accessor to access the private data. Also for the > same reason, rename all priv_data to priv. > > Signed-off-by: Jean-Jacques Hiblot Applied on u-boot-mmc. Thanks! Best Regards, Jaehoon Chung >

Re: [U-Boot] [PATCH v5] mmc: gen_atmel_mci: add driver model support for mci

2017-03-29 Thread Jaehoon Chung
Hi Wenyou, On 03/23/2017 01:48 PM, Wenyou Yang wrote: > Add the driver model support for Atmel mci while retaining the > existing legacy code. This allows the driver to support boards > that have converted to driver model as well as those that have not. > > Signed-off-by: Wenyou Yang

Re: [U-Boot] [PATCH v3 2/2] rockchip: Add support for MiQi rk3288 board

2017-03-29 Thread Kever Yang
Hi Jernej, On 03/30/2017 07:23 AM, Jernej Skrabec wrote: MiQi is rk3288 based development board with 1 or 2 GB SDRAM, 16 GB eMMC, micro SD card interface, 4 USB 2.0 ports, HDMI, gigabit Ethernet and expansion ports. Signed-off-by: Jernej Skrabec --- Changes in v3: -

Re: [U-Boot] [PATCH v3 1/2] rockchip: cosmetic: Sort RK3288 boards

2017-03-29 Thread Kever Yang
Hi Jernej, On 03/30/2017 07:23 AM, Jernej Skrabec wrote: Sort rk3288 boards in alphabetical order. Signed-off-by: Jernej Skrabec --- Changes in v3: - new patch arch/arm/dts/Makefile | 10 ++-- arch/arm/mach-rockchip/rk3288/Kconfig | 90

Re: [U-Boot] [PATCH v3 1/2] spl: rk3399: disable DDR security regions for SPL (for DMA in dw_mmc)

2017-03-29 Thread Kever Yang
Hi Philipp, On 03/30/2017 03:20 AM, Philipp Tomsich wrote: The RK3399 hangs during DMA of the Designware MMC controller, when performing DMA-based transactions in SPL due to the DDR security settings left behind by the BootROM (i.e. accesses to the first MB of DRAM are restricted... however,

Re: [U-Boot] [PATCH v2] rockchip: mmc: rk3399: work around DMA issue in SPL

2017-03-29 Thread Kever Yang
Hi Philipp, On 03/29/2017 08:59 PM, Dr. Philipp Tomsich wrote: Kever, I did a bit of quick experiment by altering the DMA target addresses for the DMA and can confirm that the root cause must be one of the security registers. Thanks for debugging on this, you are right about the root cause.

[U-Boot] Please pull u-boot-dm

2017-03-29 Thread Simon Glass
Hi Tom, Herewith some fairly minor changes from my patchwork queue. The following changes since commit 5cf618ee60a752d058a767372ca1ecb8d9c09b16: Merge git://git.denx.de/u-boot-arc (2017-03-24 08:19:30 -0400) are available in the git repository at: git://git.denx.de/u-boot-dm.git for you

[U-Boot] [PATCH v3 1/2] rockchip: cosmetic: Sort RK3288 boards

2017-03-29 Thread Jernej Skrabec
Sort rk3288 boards in alphabetical order. Signed-off-by: Jernej Skrabec --- Changes in v3: - new patch arch/arm/dts/Makefile | 10 ++-- arch/arm/mach-rockchip/rk3288/Kconfig | 90 +-- doc/README.rockchip

[U-Boot] [PATCH v3 2/2] rockchip: Add support for MiQi rk3288 board

2017-03-29 Thread Jernej Skrabec
MiQi is rk3288 based development board with 1 or 2 GB SDRAM, 16 GB eMMC, micro SD card interface, 4 USB 2.0 ports, HDMI, gigabit Ethernet and expansion ports. Signed-off-by: Jernej Skrabec --- Changes in v3: - split out cosmetic changes into a new patch Changes in v2: -

[U-Boot] [PATCH v3 0/2] rockchip: Add support for MiQi board

2017-03-29 Thread Jernej Skrabec
This series adds support for MiQi board. MiQi is rk3288 based development board with 1 or 2 GB SDRAM, 16 GB eMMC, micro SD card interface, 4 USB 2.0 ports, HDMI, gigabit Ethernet and expansion ports. Patch 1 first sorts all rk3288 boards alphabeticaly. Patch 2 adds support for MiQi board

Re: [U-Boot] [PATCH v2 10/10] sunxi: Convert CONS_INDEX to Kconfig

2017-03-29 Thread Mylene Josserand
Hi Maxime, Thank you for all your reviews! On 29/03/2017 10:12, Maxime Ripard wrote: Hi, On Wed, Mar 29, 2017 at 09:26:37AM +0200, Mylène Josserand wrote: Convert the CONS_INDEX configuration to Kconfig. Update sunxi's defconfigs to remove SYS_EXTRA_OPTIONS variable not needed anymore.

[U-Boot] [PATCH 1/3] imx: imx-common: move aux core image parsing to common code

2017-03-29 Thread Stefan Agner
From: Stefan Agner For i.MX 6SoloX/i.MX 7 simple binary files are used to boot the auxiliary CPU core (Cortex-M4). This patch moves the "parsing" of this binary firmwares to the SoC independent code. This allows to add different binary formats more easily. While at it,

[U-Boot] [PATCH 3/3] ARM: vf610: add auxiliary core boot support

2017-03-29 Thread Stefan Agner
From: Stefan Agner Use i.MX bootaux support introduced for i.MX 6SoloX/i.MX 7 for Vybrid too. Starting the Cortex-M4 core on Vybrid works a bit differently, naemly it uses a GPR register to define the initial PC. There is no way to define the initial stack (the stack is

[U-Boot] [PATCH 2/3] imx: imx-common: add elf firmware support

2017-03-29 Thread Stefan Agner
From: Stefan Agner Support elf firmware files for the auxiliary Cortex-M4 core. This has the advantage that the user does not need to know to which address the binary has been linked to. However, in order to load the elf sections to the right address, we need to

[U-Boot] [PATCH 0/3] imx: bootaux elf firmware support

2017-03-29 Thread Stefan Agner
From: Stefan Agner This patchset enables to boot elf binaries on secondary Cortex-M class cores available on i.MX 6SoloX/7Solo/7Dual. This makes handling and loading firmwares much more convinient since all information where the firmware has to be loaded to is contained

[U-Boot] [PATCH] libfdt: fix build with Python 3

2017-03-29 Thread Stefan Agner
From: Stefan Agner For some reason Python 3 seems to think it does not need to build the library. Using the --force parameter makes sure that the library gets built always. This is especially important since we move the library in the next step of the Makefile, hence

Re: [U-Boot] [PATCH] fdt: allow address translation in case of SPL_OF_TRANSLATE

2017-03-29 Thread Vikas MANOCHA
Hi Simon, Just a reminder for your review whenever you get a chance. Cheers, Vikas > -Original Message- > From: Vikas MANOCHA > Sent: Friday, March 24, 2017 3:19 PM > To: u-boot@lists.denx.de > Cc: Vikas MANOCHA ; Simon Glass > Subject: [PATCH]

Re: [U-Boot] [PATCH] dm: avoid dropping pin control DT properties in case of SPL_PINCTRL

2017-03-29 Thread Vikas MANOCHA
Hi Michal/Simon, > -Original Message- > From: Vikas MANOCHA > Sent: Friday, March 24, 2017 2:48 PM > To: u-boot@lists.denx.de > Cc: Vikas MANOCHA ; Michal Simek > ; Simon Glass > Subject: [PATCH] dm: avoid dropping pin

[U-Boot] [PATCH v3 2/2] dts: rk3399-puma: disable 'fifo-mode' in sdmmc

2017-03-29 Thread Philipp Tomsich
Signed-off-by: Philipp Tomsich --- Changes in v3: None arch/arm/dts/rk3399-puma.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/dts/rk3399-puma.dts b/arch/arm/dts/rk3399-puma.dts index 09b3858..50e43c7 100644 ---

[U-Boot] [PATCH v3 1/2] spl: rk3399: disable DDR security regions for SPL (for DMA in dw_mmc)

2017-03-29 Thread Philipp Tomsich
The RK3399 hangs during DMA of the Designware MMC controller, when performing DMA-based transactions in SPL due to the DDR security settings left behind by the BootROM (i.e. accesses to the first MB of DRAM are restricted... however, the DMA is likely to target this first MB, as it transfers

[U-Boot] [PATCH] dts: rk3399: move rockchip, vbus-gpio properties into board-specific files

2017-03-29 Thread Philipp Tomsich
The (shared) rk3399.dtsi had defined the 'rockchip,vbus-gpio' properties for each USB 3.0 controller. As the GPIO usage will vary (e.g. one of those GPIOs shuts down one of the regulators on the RK3399-Q7) between boards, we move this from the shared dtsi into the device tree file for the EVB

Re: [U-Boot] [PATCH 6/7] SECURE_BOOT: Enable chain of trust on LS1012A platform

2017-03-29 Thread Sumit Garg
> -Original Message- > From: york sun > Sent: Wednesday, March 29, 2017 10:33 PM > To: Sumit Garg ; u-boot@lists.denx.de > Cc: Ruchika Gupta ; Prabhakar Kushwaha > ; Vini Pillai > Subject: Re:

Re: [U-Boot] [PATCH 6/7] SECURE_BOOT: Enable chain of trust on LS1012A platform

2017-03-29 Thread york sun
On 03/29/2017 10:01 AM, Sumit Garg wrote: >> -Original Message- >> From: york sun >> Sent: Wednesday, March 29, 2017 10:20 PM >> To: Sumit Garg ; u-boot@lists.denx.de >> Cc: Ruchika Gupta ; Prabhakar Kushwaha >> ; Vini

Re: [U-Boot] [PATCH 6/7] SECURE_BOOT: Enable chain of trust on LS1012A platform

2017-03-29 Thread Sumit Garg
> -Original Message- > From: york sun > Sent: Wednesday, March 29, 2017 10:20 PM > To: Sumit Garg ; u-boot@lists.denx.de > Cc: Ruchika Gupta ; Prabhakar Kushwaha > ; Vini Pillai > Subject: Re:

Re: [U-Boot] [u-boot-release] [PATCH 3/7] SECURE_BOOT: Enable chain of trust on LS1046A platform

2017-03-29 Thread Sumit Garg
> -Original Message- > From: york sun > Sent: Wednesday, March 29, 2017 10:16 PM > To: Sumit Garg ; u-boot@lists.denx.de > Cc: Prabhakar Kushwaha ; Ruchika Gupta > ; Vini Pillai > Subject: Re:

[U-Boot] [PATCH v5] ls1046ardb: SPL size reduction

2017-03-29 Thread Sumit Garg
Using changes in this patch we were able to reduce approx 4k size of u-boot-spl.bin image. Following is breif description of changes to reduce SPL size: 1. Changes in board/freescale/ls1046ardb/Makefile to remove compilation of eth.c and cpld.c in case of SPL build. 2. Changes in

[U-Boot] [PATCH v5] ls1043ardb: SPL size reduction

2017-03-29 Thread Sumit Garg
Using changes in this patch we were able to reduce approx 10k size of u-boot-spl.bin image. Following is breif description of changes to reduce SPL size: 1. Changes in board/freescale/ls1043ardb/Makefile to remove compilation of eth.c and cpld.c in case of SPL build. 2. Changes in

Re: [U-Boot] [PATCH 6/7] SECURE_BOOT: Enable chain of trust on LS1012A platform

2017-03-29 Thread york sun
On 03/23/2017 01:19 AM, Sumit Garg wrote: > From: Vinitha Pillai-B57223 > > Define bootscript and its header addresses for QSPI target > Also add PPA header address in Kconfig > > Signed-off-by: Vinitha Pillai > Signed-off-by: Sumit Garg

Re: [U-Boot] [u-boot-release] [PATCH 3/7] SECURE_BOOT: Enable chain of trust on LS1046A platform

2017-03-29 Thread york sun
On 03/23/2017 01:19 AM, Sumit Garg wrote: > From: Vinitha Pillai-B57223 > > Define bootscript and its header addresses for QSPI target. Also > define PPA header address to enable PPA validation. > > Signed-off-by: Vinitha Pillai > Signed-off-by:

[U-Boot] [Patch v2] drivers: ddr: fsl: fix unused-const-variable warnings

2017-03-29 Thread York Sun
From: Thomas Schaefer Depending on DDR configuration, gcc-6.x will show up unused-const- variable messages. Use __maybe_unused specifier for all dynamic_odt variable definitions to remove these warnings. Memory footprint will not increase as gcc will optimize out

Re: [U-Boot] [PATCH v4] ls1046ardb: SPL size reduction in case of non-xip boot

2017-03-29 Thread Sumit Garg
> -Original Message- > From: york sun > Sent: Wednesday, March 29, 2017 9:15 PM > To: Sumit Garg ; u-boot@lists.denx.de > Cc: Ruchika Gupta ; Prabhakar Kushwaha > ; Mingkai Hu ; Vini > Pillai

Re: [U-Boot] [PATCH v4] ls1046ardb: SPL size reduction in case of non-xip boot

2017-03-29 Thread york sun
On 03/29/2017 08:36 AM, Sumit Garg wrote: >>> >>> diff --git a/include/configs/ls1046ardb.h >>> b/include/configs/ls1046ardb.h index 2141b82..c01eb1f 100644 >>> --- a/include/configs/ls1046ardb.h >>> +++ b/include/configs/ls1046ardb.h >>> @@ -9,6 +9,18 @@ >>> >>> #include "ls1046a_common.h"

Re: [U-Boot] [PATCH v4] ls1046ardb: SPL size reduction in case of non-xip boot

2017-03-29 Thread Sumit Garg
> -Original Message- > From: york sun > Sent: Wednesday, March 29, 2017 8:57 PM > To: Sumit Garg ; u-boot@lists.denx.de > Cc: Ruchika Gupta ; Prabhakar Kushwaha > ; Mingkai Hu ; Vini > Pillai

Re: [U-Boot] [PATCH v4] ls1046ardb: SPL size reduction in case of non-xip boot

2017-03-29 Thread york sun
On 03/29/2017 05:33 AM, Sumit Garg wrote: > Using changes in this patch we were able to reduce approx 4k > size of u-boot-spl.bin image. Following is breif description of > changes to reduce SPL size: > 1. Changes in board/freescale/ls1046ardb/Makefile to remove >compilation of eth.c and

Re: [U-Boot] [PATCH v3 1/2] mx6sabresd: Make SPL DDR configuration to match the DCD table

2017-03-29 Thread Jagan Teki
Hi Fabio, On Mon, Sep 26, 2016 at 5:44 PM, Fabio Estevam wrote: > From: Fabio Estevam > > When using SPL on i.mx6 we frequently notice some DDR initialization > mismatches between the SPL code and the non-SPL code. > > This causes stability issues like

Re: [U-Boot] so u-boot can be configured to try to update itself on every boot?

2017-03-29 Thread Robert P. J. Day
On Wed, 29 Mar 2017, Wolfgang Denk wrote: > Dear Robert, > > In message you wrote: > > > > kind of a trivial question but i was just perusing the code related > > to FIT images and ran across this in main.c: > ... > > #if

Re: [U-Boot] [linux-sunxi] [PATCH 06/17] tools: mksunxiboot: allow larger SPL binaries

2017-03-29 Thread Andre Przywara
Hi Olliver, thanks for having a look. On 29/03/17 15:43, Olliver Schinagl wrote: > Hey Andre, > > On 01-03-17 03:25, Andre Przywara wrote: >> mksunxiboot limits the size of the resulting SPL binaries to pretty >> conservative values to cover all SoCs and all boot media (NAND). >> It turns out

Re: [U-Boot] so u-boot can be configured to try to update itself on every boot?

2017-03-29 Thread Wolfgang Denk
Dear Robert, In message you wrote: > > kind of a trivial question but i was just perusing the code related > to FIT images and ran across this in main.c: ... > #if defined(CONFIG_UPDATE_TFTP) > update_tftp(0UL, NULL, NULL);

[U-Boot] [PATCH 2/3][v2] arm: ls1043ardb: Add NAND secure boot target

2017-03-29 Thread Ruchika Gupta
From: Vinitha Pillai-B57223 Add NAND secure boot target for ls1043ardb. - Change the u-boot size defined by a macro for copying the main U-Boot by SPL to also include the u-boot Secure Boot header size as header is appended to u-boot image. So header will also be

[U-Boot] is the sandbox FIT image demo broken?

2017-03-29 Thread Robert P. J. Day
i'm following along the instructions to use the sandbox to demo a FIT image: $ make O=sandbox sandbox_config $ make O=sandbox $ ./test/image/test-fit.py -u sandbox/u-boot but running that last command produces only: FIT Tests = Warning (unit_address_vs_reg): Node /reset@0 has a

[U-Boot] [PATCH 3/3][v3] [RESEND] arm: ls1046ardb: Add SD secure boot target

2017-03-29 Thread Ruchika Gupta
From: Vinitha Pillai-B57223 - Add SD secure boot target for ls1046ardb. - Implement board specific spl_board_init() to setup CAAM stream ID and corresponding stream ID in SMMU. - Change the u-boot size defined by a macro for copying the main U-Boot by SPL to also

[U-Boot] [PATCH 3/3] arm: ls1046ardb: Add SD secure boot target

2017-03-29 Thread Ruchika Gupta
From: Vinitha Pillai-B57223 - Add SD secure boot target for ls1046ardb. - Implement board specific spl_board_init() to setup CAAM stream ID and corresponding stream ID in SMMU. - Change the u-boot size defined by a macro for copying the main U-Boot by SPL to also

[U-Boot] [PATCH 1/3][v2] arm: ls1043ardb: Add SD secure boot target

2017-03-29 Thread Ruchika Gupta
- Add SD secure boot target for ls1043ardb. - Implement board specific spl_board_init() to setup CAAM stream ID and corresponding stream ID in SMMU. - Change the u-boot size defined by a macro for copying the main U-Boot by SPL to also include the u-boot Secure Boot header size as header is

[U-Boot] confusing error message in common/update.c

2017-03-29 Thread Robert P. J. Day
at the top of that file: #if !(defined(CONFIG_FIT) && defined(CONFIG_OF_LIBFDT)) #error "CONFIG_FIT and CONFIG_OF_LIBFDT are required for auto-update feature" #endif #if defined(CONFIG_UPDATE_TFTP) && !defined(CONFIG_MTD_NOR_FLASH) #error "CONFIG_UPDATE_TFTP and !CONFIG_MTD_NOR_FLASH needed

[U-Boot] so u-boot can be configured to try to update itself on every boot?

2017-03-29 Thread Robert P. J. Day
kind of a trivial question but i was just perusing the code related to FIT images and ran across this in main.c: /* We come here after U-Boot is initialised and ready to process commands */ void main_loop(void) { const char *s; bootstage_mark_name(BOOTSTAGE_ID_MAIN_LOOP,

Re: [U-Boot] [PATCH v2] rockchip: mmc: rk3399: work around DMA issue in SPL

2017-03-29 Thread Dr. Philipp Tomsich
Kever, I did a bit of quick experiment by altering the DMA target addresses for the DMA and can confirm that the root cause must be one of the security registers. The DMA target addresses are located on the SPL stack, which by default grows down from 0x0008_ (so the addresses will be

[U-Boot] [PATCH v4] ls1046ardb: SPL size reduction in case of non-xip boot

2017-03-29 Thread Sumit Garg
Using changes in this patch we were able to reduce approx 4k size of u-boot-spl.bin image. Following is breif description of changes to reduce SPL size: 1. Changes in board/freescale/ls1046ardb/Makefile to remove compilation of eth.c and cpld.c in case of SPL build. 2. Changes in

Re: [U-Boot] [PATCH v2 14/18] sunxi: Pine64: defconfig: enable SPL FIT support

2017-03-29 Thread Maxime Ripard
On Wed, Mar 29, 2017 at 12:17:31PM +0100, Andre Przywara wrote: > Hi, > > On 29/03/17 07:57, Maxime Ripard wrote: > > On Tue, Mar 28, 2017 at 01:45:22AM +0100, Andre Przywara wrote: > >> The Pine64 (and all other 64-bit Allwinner boards) need to load an > >> ARM Trusted Firmware image beside the

[U-Boot] [PATCH v4] ls1043ardb: SPL size reduction in case of non-xip boot

2017-03-29 Thread Sumit Garg
Using changes in this patch we were able to reduce approx 10k size of u-boot-spl.bin image. Following is breif description of changes to reduce SPL size: 1. Changes in board/freescale/ls1043ardb/Makefile to remove compilation of eth.c and cpld.c in case of SPL build. 2. Changes in

[U-Boot] [PATCH v2 4/6] rockchip: spi: enable support for the rk_spi driver for the RK3399

2017-03-29 Thread Philipp Tomsich
From: Jakob Unterwurzacher The existing Rockchip SPI (rk_spi.c) driver also matches the hardware block found in the RK3399. This has been confirmed both with SPI NOR flashes and general SPI transfers on the RK3399-Q7 for SPI1 and SPI5. This change

[U-Boot] [PATCH v2 6/6] rockchip: spl: rk3399: enable SPL_SPI_LOAD if SPI is enabled for SPL

2017-03-29 Thread Philipp Tomsich
To include the ability to load from an SPI flash in SPL, it's not sufficient to define SPL_SPI_SUPPORT and SPL_SPI_FLASH_SUPPORT via Kconfig... so we conditionally define SPL_SPI_LOAD if SPI support is already enabled for SPL via Kconfig. Signed-off-by: Philipp Tomsich

[U-Boot] [PATCH v2 2/6] clk: rk3399: fix off-by one during rate calculation in i2c/spi_set_rate

2017-03-29 Thread Philipp Tomsich
For the RK3399, i2c_set_rate (and by extension: our spi_set_rate, which had been mindlessly following the template of the i2c_set_rate implementation) miscalculates the rate returned due to a off-by-one error resulting from the following sequence of events: 1. calculates 'src_div := src_freq /

[U-Boot] [PATCH v2 5/6] rockchip: spi: rk3399: move CONFIG_SPI and CONFIG_SPI_FLASH to defconfig

2017-03-29 Thread Philipp Tomsich
From: Jakob Unterwurzacher On the RK3399-Q7 we need to enable a number of configuration options (e.g. CONFIG_SPI_FLASH_WINBND) dependent on Kconfig seeing CONFIG_SPI and CONFIG_SPI_FLASH active. To allow for these being defined in Kconfig (e.g. via

[U-Boot] [PATCH v2 1/6] rockchip: clk: rk3399: add clock support for SCLK_SPI1 and SCLK_SPI5

2017-03-29 Thread Philipp Tomsich
This change adds support for configuring the module clocks for SPI1 and SPI5 from the 594MHz GPLL. Note that the driver (rk_spi.c) always sets this to 99MHz, but the implemented functionality is more general and will also support different clock configurations. X-AffectedPlatforms: RK3399-Q7

[U-Boot] [PATCH v2 0/6] rockchip: spl: rk3399: prepare to have SPI config per-board

2017-03-29 Thread Philipp Tomsich
To support SPI flashes (via the device model) and enable loading of later-stage images from SPI in SPL, we need a few adjustments to the common configuration header for the RK3399: - enable SPL_SPI_LOAD if SPI is enabled for SPL (in rk3399_common) - move CONFIG_SPI and CONFIG_SPI_FLASH (from

[U-Boot] [PATCH v2 3/6] rockchip: pinctrl: rk3399: add support for the SPI5 controller

2017-03-29 Thread Philipp Tomsich
This commit adds support for the pin-configuration of the SPI5 controller of the RK3399 through the following changes: * grf_rk3399.h: adds definition for configuring the SPI5 pins in the GPIO2C group * periph.h: defines PERIPH_ID_SPI3 through PERIPH_ID_SPI5 * pinctrl_rk3399.c:

Re: [U-Boot] [PATCH v2 14/18] sunxi: Pine64: defconfig: enable SPL FIT support

2017-03-29 Thread Andre Przywara
Hi, On 29/03/17 07:57, Maxime Ripard wrote: > On Tue, Mar 28, 2017 at 01:45:22AM +0100, Andre Przywara wrote: >> The Pine64 (and all other 64-bit Allwinner boards) need to load an >> ARM Trusted Firmware image beside the actual U-Boot proper. >> This can now be easily achieved by using the just

Re: [U-Boot] __FILE__ usage and and SPL limits for SRAM

2017-03-29 Thread Masahiro Yamada
2017-03-28 20:47 GMT+09:00 Felipe Balbi : > > Hi, > > Nishanth Menon writes: >> Hi Masahiro-san, >> >> On Tue, Mar 28, 2017 at 1:29 AM, Masahiro Yamada >> wrote: >> [...] >>> >>> When O= is given, the build system runs in

[U-Boot] Please pull u-boot-marvell/master

2017-03-29 Thread Stefan Roese
Hi Tom, please pull the Marvell mvpp2 patches with the ethernet support for the ARMv8 Armada 7k/8k platforms. The ethernet patches are all acked by Joe and he is okay with me pushing them via the Marvell tree. Thanks, Stefan The following changes since commit

Re: [U-Boot] [PATCH v2 00/45] Add PPv2.2 support to the mvpp2 ethernet driver and enable it for A7k/8k

2017-03-29 Thread Stefan Roese
On 23.03.2017 17:01, Stefan Roese wrote: This patchset does the following things: - It brings the latest Linux changes from the mvpp2 ethernet driver done by Thomas Petazzoni to the U-Boot version of this driver. This enables the usage of this driver on the new Marvell Armada 7k / 8k ARMv8

Re: [U-Boot] [PATCH] ARM: socfpga: boot0 hook: remove macro from boot0 header file

2017-03-29 Thread Marek Vasut
On 03/29/2017 05:49 AM, tien.fong.c...@intel.com wrote: > From: "Chee, Tien Fong" > > Commit ce62e57fc571 ("ARM: boot0 hook: remove macro, include whole > header file") miss out cleaning macro in this header file, and this > has broken implementation of a boot header

Re: [U-Boot] [PATCH 17/17] i2c: Drop CONFIG_SOFT_I2C_MULTI_BUS

2017-03-29 Thread Lukasz Majewski
Hi Simon, +CC board maintainer: Jaehoon. > This is not used by any board. Drop it. > > Signed-off-by: Simon Glass > Clean up board_f sequence a little > This series tries to remove #ifdefs from the board_f init sequence. It > gets as far as I2C and then we need to discuss

Re: [U-Boot] [PATCH v2 10/10] sunxi: Convert CONS_INDEX to Kconfig

2017-03-29 Thread Maxime Ripard
Hi, On Wed, Mar 29, 2017 at 09:26:37AM +0200, Mylène Josserand wrote: > Convert the CONS_INDEX configuration to Kconfig. > Update sunxi's defconfigs to remove SYS_EXTRA_OPTIONS variable not > needed anymore. > Default value is 1 except for sun5i (equals 2) and sun8i (equals 5). > >

Re: [U-Boot] [PATCH v2 07/10] sunxi: Convert CONFIG_RGMII to Kconfig

2017-03-29 Thread Maxime Ripard
On Wed, Mar 29, 2017 at 09:26:34AM +0200, Mylène Josserand wrote: > Convert CONFIG_RGMII to Kconfig. Thanks to that, it is possible to > update defconfig files of SYS_EXTRA_OPTIONS accordingly and > remove it when it is possible. > > Signed-off-by: Mylène Josserand

Re: [U-Boot] [PATCH v2 06/10] sunxi: Convert SUNXI_EMAC to Kconfig

2017-03-29 Thread Maxime Ripard
On Wed, Mar 29, 2017 at 09:26:33AM +0200, Mylène Josserand wrote: > Convert the SUNXI_EMAC config to Kconfig. Remove it from SYS_EXTRA_OPTIONS > from many sunxi defconfig and renamed it into SUN4I_EMAC to not confuse it > with SUN8I_EMAC. > > Signed-off-by: Mylène Josserand

Re: [U-Boot] [PATCH v2 01/10] sunxi: Convert SUNXI_GMAC to Kconfig

2017-03-29 Thread Maxime Ripard
Hi, On Wed, Mar 29, 2017 at 09:26:28AM +0200, Mylène Josserand wrote: > +config SUN7I_GMAC > + bool "Enable GMAC Ethernet support" GMAC itself is a quite common term when talking about a Gigabit Ethernet controller. How about something like "Enable Allwinner GMAC Ethernet Support"? Once

Re: [U-Boot] [PATCH v2] rockchip: mmc: rk3399: work around DMA issue in SPL

2017-03-29 Thread Dr. Philipp Tomsich
Kever, we didn’t have time to track this down yet, so we’ve put this work-around in place to be reverted once we isolate this issue. The problem goes away once ATF is running in EL3 and U-Boot executes in its normal privilege level… so our guess is that it’s either an issue with running in EL3

[U-Boot] [PATCH v2 06/10] sunxi: Convert SUNXI_EMAC to Kconfig

2017-03-29 Thread Mylène Josserand
Convert the SUNXI_EMAC config to Kconfig. Remove it from SYS_EXTRA_OPTIONS from many sunxi defconfig and renamed it into SUN4I_EMAC to not confuse it with SUN8I_EMAC. Signed-off-by: Mylène Josserand --- configs/A10-OLinuXino-Lime_defconfig | 3 ++-

[U-Boot] [PATCH v2 10/10] sunxi: Convert CONS_INDEX to Kconfig

2017-03-29 Thread Mylène Josserand
Convert the CONS_INDEX configuration to Kconfig. Update sunxi's defconfigs to remove SYS_EXTRA_OPTIONS variable not needed anymore. Default value is 1 except for sun5i (equals 2) and sun8i (equals 5). Signed-off-by: Mylène Josserand --- board/sunxi/Kconfig

[U-Boot] [PATCH v2 03/10] sunxi: icnova-a20-swac_defconfig: Remove CMD_BMP from SYS_EXTRA_OPTIONS

2017-03-29 Thread Mylène Josserand
This configuration is not necessary in a defconfig file so it is removed from the SYS_EXTRA_OPTIONS. Signed-off-by: Mylène Josserand Acked-by: Maxime Ripard --- configs/icnova-a20-swac_defconfig | 2 +- 1 file changed, 1

[U-Boot] [PATCH v2 08/10] sunxi: Convert CONFIG_SATAPWR to Kconfig

2017-03-29 Thread Mylène Josserand
Convert the CONFIG_SATAPWR into kconfig. Thanks to that, many SYS_EXTRA_OPTIONS can be removed from some defconfigs. Signed-off-by: Mylène Josserand Acked-by: Maxime Ripard --- board/sunxi/Kconfig| 7

[U-Boot] [PATCH v2 09/10] sunxi: Convert CONFIG_MACPWR to Kconfig

2017-03-29 Thread Mylène Josserand
Convert the CONFIG_MACPWR to Kconfig and update all the sunxi defconfigs that used it in SYS_EXTRA_OPTIONS. Signed-off-by: Mylène Josserand Acked-by: Maxime Ripard --- board/sunxi/Kconfig | 7 +++

  1   2   >