[U-Boot] [PATCH] armv8: fsl-lsch2: disable ECC for sata on armv8 chassis 2 platforms

2017-01-23 Thread yuantian.tang
From: Tang Yuantian The Read DMA operations get early termination indication from the controller. This issue is observed as CRC error in the status registers. The issue is due to address collision at address 0 in the dual port memory. The read is a dummy read to flush out

Re: [U-Boot] [PATCH 3/9 v3] mmc: Add Marvell Xenon SDHCI controller driver

2017-01-23 Thread Stefan Roese
Hi Jaehoon, On 24.01.2017 07:19, Jaehoon Chung wrote: On 01/23/2017 07:52 PM, Stefan Roese wrote: This driver implementes platform specific code for the Xenon SDHCI controller which is integrated in the Marvell MVEBU Armada 37xx and Armada 7k / 8K SoCs. History: This driver is ported from the

[U-Boot] [PATCH v4 1/2] gpio: at91_gpio: Remove CPU_HAS_PIO3 macro

2017-01-23 Thread Wenyou Yang
The intention of this patch is the preparation to introduce the pinctrl driver for AT91 PIO. Use "union" to make the PIO3 and PIO2's registers be together and make their offset aligned. Signed-off-by: Wenyou Yang --- Changes in v4: - Fix the incomplete conversion of the

[U-Boot] [PATCH v4 2/2] pinctrl: at91: Add pinctrl driver

2017-01-23 Thread Wenyou Yang
AT91 PIO controller is a combined gpio-controller, pin-mux and pin-config module. The peripheral's pins are assigned through per-pin based muxing logic. Each soc will have to describe the SoC limitation and pin configuration via DT. This will allow to do not need to touch the C code when adding

[U-Boot] [PATCH v4 0/2] pinctrl: at91: Add pinctrl driver

2017-01-23 Thread Wenyou Yang
The purpose of this patch set is to add the pinctrl driver for AT91 PIO controller. Changes in v4: - Fix the incomplete conversion of the peripheral configurations on the sama5d3, sam9x5, and sam9n12. Changes in v3: - Add support for OUTPUT config Changes in v2: - Add more information for

Re: [U-Boot] [PATCH 1/9] mmc: sdhci: Clear SDHCI_CLOCK_CONTROL before configuring the new value

2017-01-23 Thread Jaehoon Chung
On 01/19/2017 04:39 PM, Stefan Roese wrote: > This patch completely clears the SDHCI_CLOCK_CONTROL register before the > new value is configured instead of just clearing the 2 bits > SDHCI_CLOCK_CARD_EN and SDHCI_CLOCK_INT_EN. Without this change, some > clock configurations will lead to the

Re: [U-Boot] [PATCH v4 10/17] dm: mmc: rpi: Convert Raspberry Pi to driver model for MMC

2017-01-23 Thread Jaehoon Chung
On 01/20/2017 11:07 PM, Simon Glass wrote: > Convert the bcm2835 SDHCI driver over to support CONFIG_DM_MMC and move > all boards over. There is no need to keep the old code since there are no > other users. > > Signed-off-by: Simon Glass Reviewed-by: Jaehoon Chung

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

2017-01-23 Thread Wenyou Yang
Before using the cs_gpio, check if the GPIO is valid. Signed-off-by: Wenyou Yang --- drivers/spi/atmel_spi.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/spi/atmel_spi.c b/drivers/spi/atmel_spi.c index 7649114231..8d29f7c4eb

Re: [U-Boot] [PATCH 2/9] mmc: sdhci: Add support for optional controller specific set_ios_post()

2017-01-23 Thread Jaehoon Chung
On 01/19/2017 04:39 PM, Stefan Roese wrote: > Some SDHCI drivers might need to do some special controller configuration > after the common clock set_ios() function has been called (speed / width > configuration). This patch adds a call to the newly created function > set_ios_port() when its

Re: [U-Boot] [linux-sunxi] Re: [RFC PATCH 08/11] sunxi: SPL: add FIT config selector for Pine64 boards

2017-01-23 Thread Icenowy Zheng
2017年1月24日 01:29于 Maxime Ripard 写道: > > On Sat, Jan 21, 2017 at 03:15:27PM +, André Przywara wrote: > > >>> On Fri, Jan 20, 2017 at 01:53:28AM +, Andre Przywara wrote:  > > For a board or platform to support FIT loading in the SPL, it has to > >

Re: [U-Boot] [PATCH v4 01/17] dm: mmc: Set up the MMC device when controller is probed

2017-01-23 Thread Jaehoon Chung
On 01/20/2017 11:07 PM, Simon Glass wrote: > When an MMC controller is set up we should probe the device to find out > what it is. This includes finding its capacity and reading its partition > table. > > Signed-off-by: Simon Glass Reviewed-by: Jaehoon Chung

Re: [U-Boot] [PATCH 3/9 v3] mmc: Add Marvell Xenon SDHCI controller driver

2017-01-23 Thread Jaehoon Chung
On 01/23/2017 07:52 PM, Stefan Roese wrote: > This driver implementes platform specific code for the Xenon SDHCI > controller which is integrated in the Marvell MVEBU Armada 37xx and > Armada 7k / 8K SoCs. > > History: > This driver is ported from the Marvell U-Boot version 2015.01 which is >

Re: [U-Boot] [PATCH] travis-ci: Add swig and libpython-dev to the package list

2017-01-23 Thread Heiko Schocher
Hello Tom, Am 23.01.2017 um 23:40 schrieb Tom Rini: As part of 1905c8fc711a we introduced failures depending on if swig and libpython-dev are installed or not. To provide coverage for this are of code in the future ensure we have these packages installed. Signed-off-by: Tom Rini

Re: [U-Boot] [PATCH] tools: Correct python building host tools

2017-01-23 Thread Heiko Schocher
Hello Tom, Am 23.01.2017 um 17:44 schrieb Tom Rini: When we have python building tools for the host it will not check HOSTXX variables but only XX variables, for example LDFLAGS and not HOSTLDFLAGS. Cc: Simon Glass Reported-by: Heiko Schocher Fixes:

[U-Boot] [RESEND V7 1/2] armv8/ls1043a: fixup GIC offset for ls1043a rev1

2017-01-23 Thread Wenbin song
The LS1043A rev1.1 silicon supports two types of GIC offset: 4K alignment and 64K alignment. The bit SCFG_GIC400_ALIGN[GIC_ADDR_BIT] is used to choose which offset will be used. The LS1043A rev1.0 silicon only supports the CIG offset with 4K alignment. If GIC_ADDR_BIT bit is set, 4K alignment is

[U-Boot] [RESEND V7 2/2] armv8/fsl-layerscape: fdt: fixup LS1043A rev1 MSI node

2017-01-23 Thread Wenbin song
The default MSI node in kernel tree is for LS1043A rev1.0 silicon, if rev1.1 silicon used, need to fixup the MSI node to match it. Signed-off-by: Wenbin Song Signed-off-by: Mingkai Hu --- Changes in v7: Use a new MSI node on rev1.1. ---

Re: [U-Boot] [PATCH] mach-omap2: Cleanup secure boot media generation

2017-01-23 Thread Lokesh Vutla
On Monday 23 January 2017 11:04 PM, Andrew F. Davis wrote: > Currently all secure media types of SPL are generated for all platforms, > all platforms do not need all types, only generate the media types valid > for each platform. This fixed the build error on am57xx_hs_evm_defconfig.

Re: [U-Boot] [PATCH 03/11] Convert CONFIG_ARCH_EARLY_INIT_R to Kconfig

2017-01-23 Thread Tom Rini
On Tue, Jan 24, 2017 at 11:36:11AM +0900, Masahiro Yamada wrote: > Hi Simon, Tom. > > 2017-01-24 5:31 GMT+09:00 Simon Glass : > > This converts the following to Kconfig: > >CONFIG_ARCH_EARLY_INIT_R > > > > Signed-off-by: Simon Glass > > --- > > > >

Re: [U-Boot] [PATCH 00/11] Move some init sequence options to Kconfig

2017-01-23 Thread Tom Rini
On Mon, Jan 23, 2017 at 01:31:16PM -0700, Simon Glass wrote: > This series moves three common CONFIG options to Kconfig. They are > somewhat tricky and I've had a hard time figuring out good Kconfig > defaults, particularly for CONFIG_BOARD_EARLY_INIT_F. Hopefully the board > maintainers can

Re: [U-Boot] [PATCH] bootz/booti: relocate ramdisk if CONFIG_SYS_BOOT_RAMDISK_HIGH set

2017-01-23 Thread Masahiro Yamada
2017-01-24 0:51 GMT+09:00 Cédric Schieli : > In commit c2e7e72, the ramdisk relocation code was moved from > image_setup_linux to do_bootm, leaving the bootz and booti cases broken. > > This patch fixes both by adding the BOOTM_STATE_RAMDISK state in their > call to

Re: [U-Boot] [PATCH 03/11] Convert CONFIG_ARCH_EARLY_INIT_R to Kconfig

2017-01-23 Thread Masahiro Yamada
Hi Simon, Tom. 2017-01-24 5:31 GMT+09:00 Simon Glass : > This converts the following to Kconfig: >CONFIG_ARCH_EARLY_INIT_R > > Signed-off-by: Simon Glass > --- > > arch/Kconfig| 1 + > arch/arc/include/asm/config.h

Re: [U-Boot] [PATCH v6] BOARD: MCCMON6: Provide support for iMX6q based mccmon6 board

2017-01-23 Thread Tom Rini
On Tue, Jan 24, 2017 at 12:43:11AM +0100, Lukasz Majewski wrote: > This patch provides u-boot support for Liebherr (LWN) mccmon6 board. [snip] > +#define MACH_TYPE_WANDBOARD 4412 > +#define CONFIG_MACH_TYPE MACH_TYPE_WANDBOARD Sorry for not spotting this part before. This

Re: [U-Boot] [RFC PATCH 04/11] SPL: FIT: allow loading multiple images

2017-01-23 Thread André Przywara
On 23/01/17 02:49, Kever Yang wrote: > Hi Andre, > > On 01/22/2017 06:58 PM, André Przywara wrote: >> On 22/01/17 07:08, Kever Yang wrote: >>> Hi Andre, >>> >>> Thanks for your patches, this is great help for enable ATF on >>> U-Boot >>> SPL. >>> For ATF use case, we would like to identify

[U-Boot] [PATCH v6] BOARD: MCCMON6: Provide support for iMX6q based mccmon6 board

2017-01-23 Thread Lukasz Majewski
This patch provides u-boot support for Liebherr (LWN) mccmon6 board. Signed-off-by: Lukasz Majewski --- Changes for v6: - mccmon6_{nor|sd}_defconfigs created by using make savedefconfig Changes for v5: - Remove network configuration data from envs - Clean up the envs - remove

Re: [U-Boot] [RFC PATCH 03/11] SPL: FIT: factor out spl_load_fit_image()

2017-01-23 Thread André Przywara
On 23/01/17 08:53, Lokesh Vutla wrote: Hi Lokesh, thanks a lot for having a thorough look at it! >> On Friday 20 January 2017 07:23 AM, Andre Przywara wrote: >> At the moment we load two images from a FIT image: the actual U-Boot >> image and the DTB. Both times we have very similar code to

Re: [U-Boot] [RFC PATCH 08/11] sunxi: SPL: add FIT config selector for Pine64 boards

2017-01-23 Thread André Przywara
On 23/01/17 17:29, Maxime Ripard wrote: > On Sat, Jan 21, 2017 at 03:15:27PM +, André Przywara wrote: > On Fri, Jan 20, 2017 at 01:53:28AM +, Andre Przywara wrote: >> For a board or platform to support FIT loading in the SPL, it has to >> provide a

[U-Boot] [PATCH] travis-ci: Add swig and libpython-dev to the package list

2017-01-23 Thread Tom Rini
As part of 1905c8fc711a we introduced failures depending on if swig and libpython-dev are installed or not. To provide coverage for this are of code in the future ensure we have these packages installed. Signed-off-by: Tom Rini --- .travis.yml | 2 ++ 1 file changed, 2

[U-Boot] [RESEND PATCH] include: nand: move endif to end of file

2017-01-23 Thread Grygorii Strashko
From: Mugunthan V N The terminator endif of ifdef _NAND_H_ should be at the end of file as a fail safe. Signed-off-by: Mugunthan V N Reviewed-by: Tom Rini Reviewed-by: Simon Glass Signed-off-by: Grygorii

Re: [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase

2017-01-23 Thread york sun
On 12/12/2016 09:32 PM, Yao Yuan wrote: > Hi Jagan, > > > > Do you have any comments? > > > > Thanks for your work and you know it’s important for QSPI with S25FS512S. > > > > It seems S25FS512S can’t support the SECT_4K, right? > > And it better to retain the disable_4kb, but we can add a flag in

[U-Boot] [PATCH 11/11] Drop CONFIG_CMD_DOC

2017-01-23 Thread Simon Glass
This is not used in U-Boot, and the only usage calls a non-existent function. Drop it. Signed-off-by: Simon Glass --- board/mpl/common/common_util.c | 9 - board/mpl/common/common_util.h | 3 --- common/board_r.c | 13 - include/common.h

[U-Boot] [PATCH 10/11] Drop prt_mpc5xxx_clks() in favour of print_cpuinfo()

2017-01-23 Thread Simon Glass
Rather than having an arch-specific function, use the existing generic one. Signed-off-by: Simon Glass --- arch/powerpc/cpu/mpc5xxx/speed.c | 2 +- common/Kconfig | 2 +- common/board_f.c | 3 --- 3 files changed, 2 insertions(+), 5

[U-Boot] [PATCH 09/11] Drop the static inline print_cpuinfo()

2017-01-23 Thread Simon Glass
This is only called from one place and the function cannot be inlined. Convert it to a normal function. Signed-off-by: Simon Glass --- common/board_f.c | 2 ++ include/common.h | 7 --- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/common/board_f.c

[U-Boot] [PATCH 08/11] Drop CONFIG_WINBOND_83C553

2017-01-23 Thread Simon Glass
This is not used in U-Boot. Drop this option and associated dead code. Signed-off-by: Simon Glass --- common/board_r.c | 14 --- drivers/pci/Makefile | 1 - drivers/pci/w83c553f.c | 206 ---

[U-Boot] [PATCH 07/11] powerpc: Drop CONFIG_SYS_ALLOC_DPRAM

2017-01-23 Thread Simon Glass
This is not defined anywhere in U-Boot. Drop this dead code. Signed-off-by: Simon Glass --- arch/powerpc/cpu/mpc8260/spi.c | 7 arch/powerpc/cpu/mpc8xx/Makefile | 1 - arch/powerpc/cpu/mpc8xx/commproc.c | 69 --

[U-Boot] [PATCH 06/11] powerpc: Drop probecpu() in favour of arch_cpu_init()

2017-01-23 Thread Simon Glass
To avoid an unnecessary arch-specific call in board_init_f(), rename this function. Signed-off-by: Simon Glass --- arch/powerpc/cpu/mpc8xxx/cpu.c | 2 +- board/Arcturus/ucp1020/spl.c | 2 +- board/freescale/b4860qds/spl.c | 2 +-

[U-Boot] [PATCH 05/11] Convert CONFIG_ARCH_MISC_INIT to Kconfig

2017-01-23 Thread Simon Glass
This converts the following to Kconfig: CONFIG_ARCH_MISC_INIT Signed-off-by: Simon Glass --- arch/Kconfig| 1 + arch/arm/Kconfig| 7 +++ arch/arm/mach-mvebu/Kconfig

[U-Boot] [PATCH 03/11] Convert CONFIG_ARCH_EARLY_INIT_R to Kconfig

2017-01-23 Thread Simon Glass
This converts the following to Kconfig: CONFIG_ARCH_EARLY_INIT_R Signed-off-by: Simon Glass --- arch/Kconfig| 1 + arch/arc/include/asm/config.h | 1 - arch/arm/Kconfig| 1 +

[U-Boot] [PATCH 00/11] Move some init sequence options to Kconfig

2017-01-23 Thread Simon Glass
This series moves three common CONFIG options to Kconfig. They are somewhat tricky and I've had a hard time figuring out good Kconfig defaults, particularly for CONFIG_BOARD_EARLY_INIT_F. Hopefully the board maintainers can improve things. It is build-tested and I've also checked it with

[U-Boot] [PATCH 02/11] config: Drop CONFIG_ARCH_DMA_PIO_WORDS

2017-01-23 Thread Simon Glass
This is not defined by any board in U-Boot. Signed-off-by: Simon Glass --- arch/arm/include/asm/imx-common/dma.h | 7 +-- scripts/config_whitelist.txt | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/arm/include/asm/imx-common/dma.h

Re: [U-Boot] [PATCH 05/12] aspeed/ast2500: Device Tree and bindings for some of the clocks

2017-01-23 Thread Simon Glass
Hi Maxim, On 23 January 2017 at 10:52, Maxim Sloyko wrote: > On Fri, Jan 20, 2017 at 7:52 PM, Simon Glass wrote: >> >> Hi Maxim, >> >> On 17 January 2017 at 16:27, Maxim Sloyko wrote: >> > >> > >> > On Sat, Jan 14, 2017 at 9:13 AM, Simon

Re: [U-Boot] [PATCH 05/14] x86: qemu: Hide arch_cpu_init() and print_cpuinfo() for U-Boot proper

2017-01-23 Thread Simon Glass
On 18 January 2017 at 04:32, Bin Meng wrote: > arch_cpu_init() and print_cpuinfo() should be only available in SPL > build. > > Signed-off-by: Bin Meng > --- > > arch/x86/cpu/qemu/qemu.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-)

Re: [U-Boot] [PATCH] spl: Add some missing newlines

2017-01-23 Thread Simon Glass
Hi Andrew, On 22 January 2017 at 14:35, Andrew F. Davis wrote: > On 01/20/2017 09:51 PM, Simon Glass wrote: >> Hi Andrew, >> >> On 12 January 2017 at 09:19, Andrew F. Davis wrote: >>> Signed-off-by: Andrew F. Davis >>> --- >>> common/spl/spl.c | 4 ++--

Re: [U-Boot] [PATCH 03/14] x86: spl: Add weak arch_cpu_init_dm()

2017-01-23 Thread Simon Glass
Hi Bin, On 18 January 2017 at 04:32, Bin Meng wrote: > arch_cpu_init_dm() might not be implemented by every platform. > Implement a weak version for SPL. > > Signed-off-by: Bin Meng > --- > > arch/x86/lib/spl.c | 5 + > 1 file changed, 5

Re: [U-Boot] [PATCH 04/14] x86: Compile irq.c for 64-bit

2017-01-23 Thread Simon Glass
On 18 January 2017 at 04:32, Bin Meng wrote: > There is no reason not to compile irq.c for 64-bit. > > Signed-off-by: Bin Meng > --- > > arch/x86/cpu/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH 02/14] x86: Wrap print_ch() with config option

2017-01-23 Thread Simon Glass
Hi Bin, On 18 January 2017 at 04:32, Bin Meng wrote: > print_ch() should not be used if DEBUG_UART is off. > > Signed-off-by: Bin Meng > --- > > arch/x86/cpu/x86_64/cpu.c | 2 ++ > 1 file changed, 2 insertions(+) Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH 01/14] x86: qemu: Add missing DECLARE_GLOBAL_DATA_PTR in e820.c

2017-01-23 Thread Simon Glass
On 18 January 2017 at 04:32, Bin Meng wrote: > DECLARE_GLOBAL_DATA_PTR is missing which causes 64-bit build error. > > Signed-off-by: Bin Meng > --- > > arch/x86/cpu/qemu/e820.c | 2 ++ > 1 file changed, 2 insertions(+) Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH v4 00/17] arm: rpi: Enable USB, Ethernet, MMC, Video driver model on Raspberry Pi

2017-01-23 Thread Tom Rini
On Fri, Jan 20, 2017 at 07:07:35AM -0700, Simon Glass wrote: > Raspberry Pi uses a DWC2 USB controller and a SMSC USB Ethernet adaptor. > Driver model support for these is available. > > This series does the following: > - Enable CONFIG_DM_ETH and CONFIG_DM_USB on Raspberry Pi > - Convert the

Re: [U-Boot] [PATCH] arm: am57xx: cl-som-am57x: fix Ethernet

2017-01-23 Thread Tom Rini
On Mon, Jan 23, 2017 at 01:14:18PM +0200, Uri Mashiach wrote: > The module is continuously rebooting with the following message: > Net: data abort > pc : [] lr : [] > reloc pc : [<80816f42>]lr : [<8080d32b>] > sp : fdf5ce48 ip : fdf5d79c fp : 0017 > r10: 8083cd58 r9 :

Re: [U-Boot] [PATCH v4 03/17] string: Use memcpy() within memmove() when we can

2017-01-23 Thread Tom Rini
On Fri, Jan 20, 2017 at 07:07:38AM -0700, Simon Glass wrote: > A common use of memmove() can be handled by memcpy(). Also memcpy() > includes an optimisation for large sizes: it copies a word at a time. So > we can get a speed-up by calling memcpy() to handle our move in this case. > > Update

Re: [U-Boot] [PATCH] mach-omap2: Cleanup secure boot media generation

2017-01-23 Thread Tom Rini
On Mon, Jan 23, 2017 at 11:34:37AM -0600, Andrew F. Davis wrote: > Currently all secure media types of SPL are generated for all platforms, > all platforms do not need all types, only generate the media types valid > for each platform. > > Signed-off-by: Andrew F. Davis

Re: [U-Boot] [RESEND] video: bcm2835: add support for reading from the video-mode environment variable

2017-01-23 Thread Stephen Warren
On 01/18/2017 07:15 PM, Brian Masney wrote: On Fri, Jan 13, 2017 at 10:21:15AM -0700, Stephen Warren wrote: On 01/13/2017 04:48 AM, Brian Masney wrote: On Thu, Jan 12, 2017 at 11:47:48AM -0700, Stephen Warren wrote: On 01/12/2017 11:32 AM, Brian Masney wrote: On Thu, Jan 12, 2017 at

Re: [U-Boot] [PATCH] bootz/booti: relocate ramdisk if CONFIG_SYS_BOOT_RAMDISK_HIGH set

2017-01-23 Thread Rick Altherr
Whoops. Thank you for catching that. Reviewed-by: Rick Altherr On Mon, Jan 23, 2017 at 7:51 AM, Cédric Schieli wrote: > In commit c2e7e72, the ramdisk relocation code was moved from > image_setup_linux to do_bootm, leaving the bootz and booti cases

Re: [U-Boot] [PATCH] arm: dts: imx53-cx9020: fix packetloss on fec_mxc

2017-01-23 Thread Tom Rini
On Mon, Jan 23, 2017 at 05:20:25PM +, linux-kernel-dev wrote: > >From: Tom Rini [mailto:tr...@konsulko.com] > >Sent: Montag, 23. Januar 2017 16:31 > > > >On Mon, Jan 23, 2017 at 03:11:27PM +0100, linux-kernel-...@beckhoff.com > >wrote: > > > >> From: Patrick Bruenn > >>

Re: [U-Boot] [PATCH 2/3] NXP: Introduce board/freescale/common/Kconfig and migrate CHAIN_OF_TRUST

2017-01-23 Thread york sun
On 01/22/2017 04:43 PM, Tom Rini wrote: > Introduce board/freescale/common/Kconfig so that we have a single place > for CONFIG options that are shared between ARM and PowerPC NXP platforms. > > Cc: York Sun > Signed-off-by: Tom Rini > --- >

[U-Boot] [PATCH] mach-omap2: Cleanup secure boot media generation

2017-01-23 Thread Andrew F. Davis
Currently all secure media types of SPL are generated for all platforms, all platforms do not need all types, only generate the media types valid for each platform. Signed-off-by: Andrew F. Davis --- arch/arm/mach-omap2/config.mk | 38 -- 1 file

Re: [U-Boot] [RFC PATCH 08/11] sunxi: SPL: add FIT config selector for Pine64 boards

2017-01-23 Thread Maxime Ripard
On Sat, Jan 21, 2017 at 03:15:27PM +, André Przywara wrote: > >>> On Fri, Jan 20, 2017 at 01:53:28AM +, Andre Przywara wrote: > For a board or platform to support FIT loading in the SPL, it has to > provide a board_fit_config_name_match() routine, which helps to select >

Re: [U-Boot] [PATCH] arm: dts: imx53-cx9020: fix packetloss on fec_mxc

2017-01-23 Thread linux-kernel-dev
>From: Tom Rini [mailto:tr...@konsulko.com] >Sent: Montag, 23. Januar 2017 16:31 > >On Mon, Jan 23, 2017 at 03:11:27PM +0100, linux-kernel-...@beckhoff.com >wrote: > >> From: Patrick Bruenn >> >> The pinmuxing for i.MX53 FEC ethernet copied from >>

Re: [U-Boot] [PATCH] tools: Correct python building host tools

2017-01-23 Thread Simon Glass
On 23 January 2017 at 09:44, Tom Rini wrote: > When we have python building tools for the host it will not check HOSTXX > variables but only XX variables, for example LDFLAGS and not > HOSTLDFLAGS. > > Cc: Simon Glass > Reported-by: Heiko Schocher

Re: [U-Boot] [PATCH 2/3] ARM: am335x: Add support for chiliSOM

2017-01-23 Thread Tom Rini
On Mon, Jan 23, 2017 at 05:27:09PM +0100, Marcin Niestroj wrote: > Hi, > Thanks for review! See my comment below. > > On 23.01.2017 16:56, Tom Rini wrote: > >On Mon, Jan 23, 2017 at 02:39:15PM +0100, Marcin Niestroj wrote: > > > >>chiliSOM is a System On Module

Re: [U-Boot] [PATCH v2] rpi: Fix device tree path on ARM64

2017-01-23 Thread Stephen Warren
On 01/22/2017 04:34 PM, Tuomas Tynkkynen wrote: The directory structure of device tree files produced by the kernel's 'make dtbs_install' is different on ARM64, the RPi3 device tree file is in a 'broadcom' subdirectory there. Acked-by: Stephen Warren

[U-Boot] [PATCH] tools: Correct python building host tools

2017-01-23 Thread Tom Rini
When we have python building tools for the host it will not check HOSTXX variables but only XX variables, for example LDFLAGS and not HOSTLDFLAGS. Cc: Simon Glass Reported-by: Heiko Schocher Fixes: 1905c8fc711a ("build: Always build the libfdt python module")

Re: [U-Boot] ext4: crash when writing a file

2017-01-23 Thread Brüns , Stefan
On Freitag, 20. Januar 2017 18:32:49 CET Sébastien Szymanski wrote: [...] > Then under the sandbox I do the following: > > U-Boot 2017.01-2-g558e41e-dirty (Jan 20 2017 - 16:19:47 +0100) > > DRAM: 256 MiB > MMC: > Using default environment > > In:serial > Out: serial > Err: serial >

Re: [U-Boot] [PATCH 2/3] ARM: am335x: Add support for chiliSOM

2017-01-23 Thread Marcin Niestroj
Hi, Thanks for review! See my comment below. On 23.01.2017 16:56, Tom Rini wrote: On Mon, Jan 23, 2017 at 02:39:15PM +0100, Marcin Niestroj wrote: chiliSOM is a System On Module (http://http://grinn-global.com/chilisom/). It can't exists on its own, but will be used as part of other boards.

Re: [U-Boot] [PATCH v2 1/4] kconfig: Add API kconfig file

2017-01-23 Thread Tom Rini
On Mon, Jan 23, 2017 at 05:05:50PM +0100, Emmanuel Vadot wrote: > > Hi Tom, > > On Mon, 23 Jan 2017 09:51:59 -0500 > Tom Rini wrote: > > > On Sat, Jan 21, 2017 at 09:22:47PM -0700, Warner Losh wrote: > > > On Fri, Jan 20, 2017 at 8:51 PM, Simon Glass

Re: [U-Boot] [PATCH v2 1/4] kconfig: Add API kconfig file

2017-01-23 Thread Emmanuel Vadot
Hi Tom, On Mon, 23 Jan 2017 09:51:59 -0500 Tom Rini wrote: > On Sat, Jan 21, 2017 at 09:22:47PM -0700, Warner Losh wrote: > > On Fri, Jan 20, 2017 at 8:51 PM, Simon Glass wrote: > > > Hi, > > > > > > On 17 January 2017 at 08:50, Emmanuel Vadot

Re: [U-Boot] [PATCH 3/3] board/chiliboard: Add support for chiliBoard

2017-01-23 Thread Tom Rini
On Mon, Jan 23, 2017 at 02:39:16PM +0100, Marcin Niestroj wrote: > chiliBoard is a development board which uses chiliSOM as its base. > > Hardware specification: > * chiliSOM (TI AM335x, DRAM, NAND) > * Ethernet PHY (id 0) > * USB host (usb1) > * MicroSD slot (mmc0) > > Signed-off-by:

Re: [U-Boot] U-Boot 2017-01 "-ansi" issue with cygwin 2.6.1

2017-01-23 Thread Tom Rini
On Mon, Jan 23, 2017 at 01:15:56AM -0700, Raph31 wrote: > Hello all, > > I'm trying to compile U-boot 2017.01 (Release) Under Cygwin 2.6.1 for a > BeagleBoneBlack target. > > I was facing the issue with a lot of error about the "inline" keyword. This > keyword is not supported with the "-ansi"

Re: [U-Boot] Linux fails to boot since commit c2e7e72

2017-01-23 Thread Cédric Schieli
Hi, 2017-01-23 9:08 GMT+01:00 Masahiro Yamada : > Hi. > > Today, I noticed Linux fails to mount initramdisk > on my boards. > > I found I could solve the issue by reverting the following commit: > > commit c2e7e72bb9f0cb47d024997b381cb64786eb5402 > Author: Rick

Re: [U-Boot] [PATCH 2/3] ARM: am335x: Add support for chiliSOM

2017-01-23 Thread Tom Rini
On Mon, Jan 23, 2017 at 02:39:15PM +0100, Marcin Niestroj wrote: > chiliSOM is a System On Module (http://http://grinn-global.com/chilisom/). > It can't exists on its own, but will be used as part of other boards. > > Hardware specification: > * TI AM335x processor > * 128M, 256M or 512M DDR3

[U-Boot] [PATCH] bootz/booti: relocate ramdisk if CONFIG_SYS_BOOT_RAMDISK_HIGH set

2017-01-23 Thread Cédric Schieli
In commit c2e7e72, the ramdisk relocation code was moved from image_setup_linux to do_bootm, leaving the bootz and booti cases broken. This patch fixes both by adding the BOOTM_STATE_RAMDISK state in their call to do_bootm_states if CONFIG_SYS_BOOT_RAMDISK_HIGH is set. Signed-off-by: Cédric

[U-Boot] [PATCH 2/2][v3] arch: arm: update the IFC IP input clock

2017-01-23 Thread Prabhakar Kushwaha
IFC IP clock is always a constant divisor of platform clock pre-defined per SoC. Clock control register (CCR) used in current implementation governs IFC IP output clock. So update IFC IP clock to be defined as per predefined clock divisor of platform clock. Signed-off-by: Prabhakar Kushwaha

[U-Boot] [PATCH 1/2][v3] arch: powerpc: update the IFC IP input clock

2017-01-23 Thread Prabhakar Kushwaha
IFC IP clock is always a constant divisor of platform clock pre-defined per SoC. Clock control register (CCR) used in current implementation governs IFC IP output clock. So update IFC IP clock to be defined as per predefined clock divisor of platform clock. Signed-off-by: Prabhakar Kushwaha

[U-Boot] U-Boot 2017-01 "-ansi" issue with cygwin 2.6.1

2017-01-23 Thread Raph31
Hello all, I'm trying to compile U-boot 2017.01 (Release) Under Cygwin 2.6.1 for a BeagleBoneBlack target. I was facing the issue with a lot of error about the "inline" keyword. This keyword is not supported with the "-ansi" option. After removing this option in the makefile, the compile is

Re: [U-Boot] [PATCH] arm: dts: imx53-cx9020: fix packetloss on fec_mxc

2017-01-23 Thread Tom Rini
On Mon, Jan 23, 2017 at 03:11:27PM +0100, linux-kernel-...@beckhoff.com wrote: > From: Patrick Bruenn > > The pinmuxing for i.MX53 FEC ethernet copied from > /arch/arm/boot/dts/imx53-qsb-common.dtsi (at least until v4.9) > was bad. It is different from the manual

[U-Boot] [PATCH 2/2][v4] arch: arm: update the IFC IP input clock

2017-01-23 Thread Prabhakar Kushwaha
IFC IP clock is always a constant divisor of platform clock pre-defined per SoC. Clock control register (CCR) used in current implementation governs IFC IP output clock. So update IFC IP clock to be defined as per predefined clock divisor of platform clock. Signed-off-by: Prabhakar Kushwaha

[U-Boot] [PATCH 1/2][v4] arch: powerpc: update the IFC IP input clock

2017-01-23 Thread Prabhakar Kushwaha
IFC IP clock is always a constant divisor of platform clock pre-defined per SoC. Clock control register (CCR) used in current implementation governs IFC IP output clock. So update IFC IP clock to be defined as per predefined clock divisor of platform clock. Signed-off-by: Prabhakar Kushwaha

[U-Boot] [PATCH v2] spi: ich: Configure SPI BIOS parameters

2017-01-23 Thread Stefan Roese
Without configuring these registers in the SPI controller, the Linux MTD device driver is not able to correctly read/write to the SPI NOR chip at all. In fact, the chip is not detected at all. Signed-off-by: Stefan Roese Cc: Bin Meng Cc: Simon Glass

Re: [U-Boot] [PATCH v2 1/4] kconfig: Add API kconfig file

2017-01-23 Thread Tom Rini
On Sat, Jan 21, 2017 at 09:22:47PM -0700, Warner Losh wrote: > On Fri, Jan 20, 2017 at 8:51 PM, Simon Glass wrote: > > Hi, > > > > On 17 January 2017 at 08:50, Emmanuel Vadot wrote: > >> Add kconfig file to enable API support > >> > >> Signed-off-by:

Re: [U-Boot] [BUG] am335x: SPL: fails to load u-boot.img from vfat partition on eMMC

2017-01-23 Thread Tom Rini
On Mon, Jan 23, 2017 at 01:00:54PM +0100, Heiko Schocher wrote: > Hello Stefan, > > the am335x based shc board fails loading u-boot.img in SPL from vfat > partition on eMMC card with current HEAD of mainline U-Boot: > > U-Boot SPL 2017.01-00294-g0c9e85f (Jan 23 2017 - 11:23:05) > SHC > MPU

Re: [U-Boot] [PATCH] arm: layerscape: Enable UUID & GPT partition for NXP's ARM SoC

2017-01-23 Thread Tom Rini
On Mon, Jan 23, 2017 at 11:40:22AM +0200, Igor Grinberg wrote: > On 01/19/17 19:31, york sun wrote: > > On 12/25/2016 10:45 PM, Prabhakar Kushwaha wrote: > >> Enable UUID and GPT partition support for NXP's ARM based SoCs > >> i.e. LS1012A, LS1021A, LS1043A, LS1046A and LS2080A. > >> > >> Also

[U-Boot] [PATCH 1/3] ARM: Makefile: Fix config.mk inclusion for multiple mach-* dirs

2017-01-23 Thread Marcin Niestroj
If multiple mach-* directories are enabled in Kconfig then there was a build error: make[1]: *** arch/arm/mach-/: Is a directory. Stop. Allow to enable multiple mach-* directories by proper config.mk inclusion for each of them. Signed-off-by: Marcin Niestroj ---

[U-Boot] [PATCH] arm: dts: imx53-cx9020: fix packetloss on fec_mxc

2017-01-23 Thread linux-kernel-dev
From: Patrick Bruenn The pinmuxing for i.MX53 FEC ethernet copied from /arch/arm/boot/dts/imx53-qsb-common.dtsi (at least until v4.9) was bad. It is different from the manual pinmuxing in /board/freescale/mx53loco/mx53loco.c which was used in cx9020 implementation

[U-Boot] [PATCH 0/3] ARM: am335x: Support chiliSOM and chiliBoard

2017-01-23 Thread Marcin Niestroj
These patches add support for chiliSOM (http://grinn-global.com/chilisom/), and chiliBoard (which uses chiliSOM as it's base). chiliSOM consists of processor (TI AM335x), RAM memory (up to 512M DDR3) and flash (NAND). The idea is that every board vendor can use chiliSOM as it's base for designed

[U-Boot] [PATCH 2/3] ARM: am335x: Add support for chiliSOM

2017-01-23 Thread Marcin Niestroj
chiliSOM is a System On Module (http://http://grinn-global.com/chilisom/). It can't exists on its own, but will be used as part of other boards. Hardware specification: * TI AM335x processor * 128M, 256M or 512M DDR3 memory * up to 256M NAND Here we treat SOM similar to SOC, so we place it

[U-Boot] [PATCH 3/3] board/chiliboard: Add support for chiliBoard

2017-01-23 Thread Marcin Niestroj
chiliBoard is a development board which uses chiliSOM as its base. Hardware specification: * chiliSOM (TI AM335x, DRAM, NAND) * Ethernet PHY (id 0) * USB host (usb1) * MicroSD slot (mmc0) Signed-off-by: Marcin Niestroj --- arch/arm/Kconfig |

Re: [U-Boot] [RFC PATCH 03/11] SPL: FIT: factor out spl_load_fit_image()

2017-01-23 Thread Tom Rini
On Mon, Jan 23, 2017 at 07:01:38PM +0530, Lokesh Vutla wrote: > Tom, > > On Monday 23 January 2017 06:28 PM, Tom Rini wrote: > > On Mon, Jan 23, 2017 at 02:23:40PM +0530, Lokesh Vutla wrote: > >> > >> > >> On Friday 20 January 2017 07:23 AM, Andre Przywara wrote: > >>> At the moment we load two

[U-Boot] [PATCH v4 16/16] sunxi: Add support for the CHIP Pro

2017-01-23 Thread Maxime Ripard
The CHIP Pro is a SoM that features the GR8 SIP, an AXP209, a BT/WiFi chip and a 512MiB SLC NAND. This it's an SLC NAND, it doesn't suffer the same drawbacks than found on the MLC NANDs, and we can enable it right away. Signed-off-by: Maxime Ripard Reviewed-by:

[U-Boot] [PATCH v4 13/16] nand: sunxi: Add options for the SPL NAND configuration

2017-01-23 Thread Maxime Ripard
The SPL image needs to be built with a different ECC configuration than the U-Boot binary. Add Kconfig options with defaults to provide a value that should work for anyone, but is still configurable if needs be. Signed-off-by: Maxime Ripard Acked-by: Boris

[U-Boot] [PATCH v4 15/16] sunxi: Sync GR8 DTS and AXP209 with the kernel

2017-01-23 Thread Maxime Ripard
Those DT will be part of 4.10, sync them so we can have our own config. Signed-off-by: Maxime Ripard Reviewed-by: Hans de Goede --- arch/arm/dts/Makefile |1 +- arch/arm/dts/axp209.dtsi|6 +-

[U-Boot] [PATCH v4 14/16] scripts: sunxi: Build an raw SPL image

2017-01-23 Thread Maxime Ripard
Introduce a new sunxi-spl-with-ecc.bin image with already the right header, ECC, randomizer and padding for the BROM to be able to read it. It needs to be flashed using a raw access to the NAND so that the controller doesn't change a thing to it, since we already have all the right parameters.

[U-Boot] [PATCH v4 10/16] mtd: sunxi: Change U-Boot offset

2017-01-23 Thread Maxime Ripard
The default U-Boot offset for the Allwinner SoCs was set to 32kB. This was probably to try to maintain some compatibility with the current image that we build for the MMC where the U-Boot binary is also located at a 32kB offset. However, this causes a number of issues. The first one is that it

[U-Boot] [PATCH v4 12/16] sunxi: Add the default mtdids and mtdparts to our env

2017-01-23 Thread Maxime Ripard
In order for the user to be able to see and modify them, add those variables to the default environment. Signed-off-by: Maxime Ripard Reviewed-by: Tom Rini --- include/configs/sunxi-common.h | 16 1 file changed, 16

[U-Boot] [PATCH v4 11/16] sunxi: Enable UBI and NAND support

2017-01-23 Thread Maxime Ripard
From: Hans de Goede Enable the NAND and UBI support in the configuration header so that we can (finally) use it. Signed-off-by: Hans de Goede Signed-off-by: Maxime Ripard --- cmd/Kconfig| 4

[U-Boot] [PATCH v4 8/16] cmd: nand: Expose optional suboptions in Kconfig

2017-01-23 Thread Maxime Ripard
From: Boris Brezillon Sometime we need to enable advanced suboptions of the nand command set. Expose these suboptions in Kconfig. Signed-off-by: Boris Brezillon Signed-off-by: Maxime Ripard

[U-Boot] [PATCH v4 9/16] mtd: sunxi: Select the U-Boot location config option

2017-01-23 Thread Maxime Ripard
We'll need that symbol so that the default offset are defined Signed-off-by: Maxime Ripard --- drivers/mtd/nand/Kconfig | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig index

[U-Boot] [PATCH v4 3/16] tools: sunxi: Add spl image builder

2017-01-23 Thread Maxime Ripard
This program generates raw SPL images that can be flashed on the NAND with the ECC and randomizer properly set up. This has been copied (and tweaked to find the right headers) from the sunxi-tools (https://github.com/linux-sunxi/sunxi-tools) upstream repository, commit 1c3a6ca5. Signed-off-by:

[U-Boot] [PATCH v4 4/16] common: Move environment choice to Kconfig

2017-01-23 Thread Maxime Ripard
The environment location is something that might change per board (depending on what storage options are availaible there) or depending on the user choice (when we have several options). Instead of hardcoding it in our configuration header, create a Kconfig choice with the options we use for now,

[U-Boot] [PATCH v4 7/16] cmd: Expose a Kconfig option to enable UBIFS commands

2017-01-23 Thread Maxime Ripard
From: Boris Brezillon Create a new Kconfig entry to allow CMD_UBIFS selection from Kconfig and add an hidden LZO option that can be selected by CMD_UBIFS. Signed-off-by: Boris Brezillon Signed-off-by: Maxime Ripard

[U-Boot] [PATCH v4 2/16] bch: Allow to build for the host

2017-01-23 Thread Maxime Ripard
We will need the bch functions in the tool to generate the SPL images for the Allwinner SoCs. Do the needed adjustments so that we can use it on the host. Signed-off-by: Maxime Ripard Reviewed-by: Tom Rini --- lib/bch.c | 48

[U-Boot] [PATCH v4 5/16] cmd: Add Kconfig option for CMD_MTDPARTS and related options

2017-01-23 Thread Maxime Ripard
CMD_MTDPARTS is something the user might or might not want to select, and might depends on (or be selected by) other options too. This is even truer for the MTDIDS_DEFAULT and MTDPARTS_DEFAULT options that might change from one board to another, or from one user to the other, depending on what it

  1   2   >