Re: [U-Boot] [PATCH 4/6] net: mii: Changes not made by spatch

2016-04-04 Thread Stefan Roese
Hi Joe, On 04.04.2016 11:07, Joe Hershberger wrote: If the functions passed to the registration function are not in the same C file (extern) then spatch will not handle the dependent changes. Make those changes manually. Signed-off-by: Joe Hershberger --- arch/m68k/include/asm/fec.h |

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

2016-04-04 Thread Stefan Roese
Hi Jagan, On 23.03.2016 15:36, Stefan Roese wrote: Hi Jagan, please excuse the long delay here. Some comments below. On 12.02.2016 21:27, Jagan Teki wrote: On 12 February 2016 at 18:15, Stefan Roese wrote: Currently only chip-select 0 is supported by the kirkwood SPI driver. The Armada XP /

Re: [U-Boot] [PATCH 1/2] dm: gpio: mxc: fix mxc_gpio_bank_get_value

2016-04-04 Thread Peng Fan
Hi Stefano, On Sun, Apr 03, 2016 at 08:09:35PM +0200, Stefano Babic wrote: >Hi Peng, > >On 17/03/2016 02:44, Peng Fan wrote: >> On Wed, Mar 16, 2016 at 09:48:24AM -0300, Fabio Estevam wrote: >>> Hi Peng, >>> >>> On Tue, Mar 15, 2016 at 10:27 PM, Peng Fan wrote: >>> If set the SION bit, we ne

Re: [U-Boot] [PATCH 0/2] cmd: fdt: Add device tree overlays support

2016-04-04 Thread Stefan Agner
Hi Maxime, Interesting patch set! I am not a dt (overlay) expert, but some comments below... On 2016-04-02 14:06, Maxime Ripard wrote: > The device tree overlays are a good way to deal with user-modifyable > boards or boards with some kind of an expansion mechanism where we can > easily plug new

[U-Boot] [RFC PATCH 1/2] spl: Add an option to load a FIT containing U-Boot from FS

2016-04-04 Thread Lokesh Vutla
This provides a way to load a FIT containing U-Boot and a selection of device tree files from a File system. Signed-off-by: Lokesh Vutla --- common/spl/spl_fit.c | 96 include/spl.h| 5 +++ 2 files changed, 101 insertions(+) diff --g

[U-Boot] [RFC PATCH 0/2] spl: Add support to load FIT from Filesystem

2016-04-04 Thread Lokesh Vutla
Some devices like MMC, USB can be formatted to a FS and can act as a boot media. Given that FIT image load support in SPL support only raw devices, SPL should also be able to support loading FIT image from a File system. This series add support to load FIT image from a filesystem and also adding ho

[U-Boot] [RFC PATCH 2/2] spl: Support loading a FIT from FAT FS

2016-04-04 Thread Lokesh Vutla
Detect a FIT when loading from a FAT File system and handle it using the new FIT SPL support. Signed-off-by: Lokesh Vutla --- common/spl/spl_fat.c | 27 +-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/common/spl/spl_fat.c b/common/spl/spl_fat.c index d7

Re: [U-Boot] [PATCH V2] fsl: esdhc: consolidate fsl_esdhc_cfg structure

2016-04-04 Thread york sun
Yes they are good. They are in my test queue. York Original Message From: Peng Fan Sent: Monday, April 4, 2016 08:05 PM To: york sun Subject: Re: [PATCH V2] fsl: esdhc: consolidate fsl_esdhc_cfg structure CC: sba...@denx.de,tr...@konsulko.com,u-boot@lists.denx.de,Yangbo Lu ,

Re: [U-Boot] [PATCH V2] fsl: esdhc: consolidate fsl_esdhc_cfg structure

2016-04-04 Thread Peng Fan
Hi York, On Mon, Mar 28, 2016 at 09:49:12PM -0700, York Sun wrote: >On 03/28/2016 09:44 PM, Peng Fan wrote: >> Hi York, >> >> On Tue, Mar 29, 2016 at 01:35:09AM +, york sun wrote: >>> On 03/28/2016 06:23 PM, Peng Fan wrote: Hi York, On Tue, Mar 29, 2016 at 12:33:42AM +, york

[U-Boot] [PATCH V2] rpi: remove redundant board files

2016-04-04 Thread Stephen Warren
Now that rpi_*defconfig and Kconfig (rather than the config header file) provide the identity of the build, we don't need to separate config headers and board directories for each RPi variant. Set CONFIG_SYS_BOARD and CONFIG_SYS_CONFIG_NAME so that we can get rid of the duplication. This requires a

Re: [U-Boot] [PATCH 1/2] serial: Introduce linflex uart support

2016-04-04 Thread Bin Meng
On Mon, Apr 4, 2016 at 10:22 PM, Eddy Petrișor wrote: > (- Eric, he left the company a little after he contributed to the linflex > driver, so he's email is no longer valid) > > Pe 4 apr. 2016 6:22 a.m., "Bin Meng" a scris: >> >> On Sun, Apr 3, 2016 at 8:10 AM, Eddy Petrișor >> wrote: >> > From:

Re: [U-Boot] [PATCH v4 20/21] board: Add Qualcomm Dragonboard 410C support

2016-04-04 Thread Andreas Färber
Am 05.04.2016 um 01:54 schrieb Daniel Glöckner: > On Tue, Apr 05, 2016 at 01:13:38AM +0200, Andreas Färber wrote: >> Am 31.03.2016 um 23:12 schrieb Mateusz Kulikowski: >>> +/* Environment */ >>> +#define CONFIG_EXTRA_ENV_SETTINGS \ >>> + "reflash="CONFIG_ENV_REFLASH"\0"\ >>> + "loadaddr=0x81000

Re: [U-Boot] [RFC] SPL -> U-Boot Chain of Trust

2016-04-04 Thread Simon Glass
Hi Andreas, On 28 March 2016 at 14:19, Andreas Dannenberg wrote: > On Mon, Mar 28, 2016 at 03:32:40PM -0400, Tom Rini wrote: >> I'm interested in getting secure device support going, but it seems >> like we should need more than that, ie something to keep the chain of >> trust going. > > Tom et a

Re: [U-Boot] [PATCH 0/2] cmd: fdt: Add device tree overlays support

2016-04-04 Thread Simon Glass
On 2 April 2016 at 15:06, Maxime Ripard wrote: > The current code only checks if the fdt subcommand is fdt addr by checking > whether it starts with 'a'. > > Since this is a pretty widely used letter, narrow down that check a bit. > > Signed-off-by: Maxime Ripard > --- > cmd/fdt.c | 2 +- > 1 fi

Re: [U-Boot] [PATCH] cmd: fdt: Use separate CMD_FDT Kconfig entry instead of OF_LIBFDT

2016-04-04 Thread Simon Glass
Hi Michal, On 4 April 2016 at 11:50, Michal Simek wrote: > Create CMD_FDT Kconfig entry to have an option to disable fdt command > which is not required for small configuration which requires libfdt > only. > Enable it by default for all targets which enables OF_LIBFDT. > > Signed-off-by: Michal

Re: [U-Boot] [PATCH v1] tpm: Fix uclass_first_device error handling

2016-04-04 Thread Simon Glass
Hi Mario, On 30 March 2016 at 02:22, Mario Six wrote: > uclass_first_device might return NULL for the device despite a zero > return code. Currently, this might lead to null pointer dereferencing, > since the returned device is not properly checked. > > Hence, always check if the device returned

Re: [U-Boot] [PATCH] dm: ns16550: Add support for reg-offset property

2016-04-04 Thread Simon Glass
Hi Michal, On 31 March 2016 at 03:16, Michal Simek wrote: > Hi Simon, > > >>> diff --git a/include/ns16550.h b/include/ns16550.h >>> index 5eeacd6..1311f4c 100644 >>> --- a/include/ns16550.h >>> +++ b/include/ns16550.h >>> @@ -54,9 +54,9 @@ >>> */ >>> struct ns16550_platdata { >>> unsi

Re: [U-Boot] [PATCH] test/py: pass -v option when executing sandbox

2016-04-04 Thread Simon Glass
On 4 April 2016 at 11:04, Stephen Warren wrote: > > From: Stephen Warren > > This shows more output, such as the internal output generated by the unit > test ("ut") command, which makes it easier to debug issues. > > Signed-off-by: Stephen Warren > --- > test/py/u_boot_console_sandbox.py | 1 +

Re: [U-Boot] [PATCH] common: cli: Fix typo CONFIG_CMDINE -> CONFIG_CMDLINE

2016-04-04 Thread Simon Glass
On 4 April 2016 at 08:32, Stefan Roese wrote: > Patch f8bb6964 (Drop command-processing code when CONFIG_CMDLINE is > disabled) introduced a small typo. This patch fixes it and unbreaks > all boards again that don't have the Hush parser enabled. > > Signed-off-by: Stefan Roese > Cc: Simon Glass

[U-Boot] [PATCH] stm32: stm32_flash: add memory barrier during flash write

2016-04-04 Thread Vikas Manocha
After writing data to flash space, next instruction is checking if flash controller is busy writing to the flash memory. Memory barrier is required here to avoid transaction re-ordering for data write and busy status check. Signed-off-by: Vikas Manocha --- drivers/mtd/stm32_flash.c | 4 1 f

Re: [U-Boot] [PATCH] test/py: pass -v option when executing sandbox

2016-04-04 Thread Tom Rini
On Mon, Apr 04, 2016 at 11:04:50AM -0600, Stephen Warren wrote: > From: Stephen Warren > > This shows more output, such as the internal output generated by the unit > test ("ut") command, which makes it easier to debug issues. > > Signed-off-by: Stephen Warren Reviewed-by: Tom Rini -- Tom

Re: [U-Boot] [PATCH v4 20/21] board: Add Qualcomm Dragonboard 410C support

2016-04-04 Thread Daniel Glöckner
On Tue, Apr 05, 2016 at 01:13:38AM +0200, Andreas Färber wrote: > Am 31.03.2016 um 23:12 schrieb Mateusz Kulikowski: > > +/* Environment */ > > +#define CONFIG_EXTRA_ENV_SETTINGS \ > > + "reflash="CONFIG_ENV_REFLASH"\0"\ > > + "loadaddr=0x8100\0" \ > > + "fdt_high=0x\0" \

Re: [U-Boot] [PATCH 4/5] configs: dra72_evm: enable mmc driver model

2016-04-04 Thread Tom Rini
On Mon, Apr 04, 2016 at 05:28:04PM +0530, Mugunthan V N wrote: > enable mmc driver model for dra72 evm as omap_hsmmc > supports driver model > > Signed-off-by: Mugunthan V N Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature __

Re: [U-Boot] [PATCH 5/5] configs: dra74_evm: enable mmc driver model

2016-04-04 Thread Tom Rini
On Mon, Apr 04, 2016 at 05:28:05PM +0530, Mugunthan V N wrote: > enable mmc driver model for dra74 evm as omap_hsmmc > supports driver model > > Signed-off-by: Mugunthan V N Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature __

Re: [U-Boot] [PATCH] sf: fix timebase data type in _wait_ready()

2016-04-04 Thread Tom Rini
On Mon, Apr 04, 2016 at 11:03:52AM -0600, Stephen Warren wrote: > From: Stephen Warren > > get_timer() returns an unsigned 64-bit value, but is currently assigned to > a signed 32-bit variable. Due to sign extension and data truncation, this > causes the timeout loop in spi_flash_cmd_wait_ready(

Re: [U-Boot] [PATCH 3/5] ARM: dts: dra7xx: am57xx: fix cd-gpios definition as per hardware design and dt binding docs

2016-04-04 Thread Tom Rini
On Mon, Apr 04, 2016 at 05:28:03PM +0530, Mugunthan V N wrote: > As per mmc device tree binding documentation card detect gpio has > to be active low signal. When a hardware is designed with active > high card detect, gpio polarity has to be changed with > cd-inverted dt property. > > In DRA72x a

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

2016-04-04 Thread Tom Rini
On Mon, Apr 04, 2016 at 02:07:13PM +0200, Stefan Roese wrote: > Hi Tom, > > please pull the Armada 375 support from the Marvell U-Boot > git repository. > > Thanks, > Stefan > > > The following changes since commit 563d8d93585035fa2a0b20190c1008eb625432c4: > > net: phy: Realtek RTL8211B/C P

Re: [U-Boot] [PATCH 2/5] ARM: dts: am43xx: fix cd-gpios definition as per hardware design and dt binding docs

2016-04-04 Thread Tom Rini
On Mon, Apr 04, 2016 at 05:28:02PM +0530, Mugunthan V N wrote: > As per mmc device tree binding documentation card detect gpio has > to be active low signal. When a hardware is designed with active > high card detect, gpio polarity has to be changed with > cd-inverted dt property. > > In AM43xx t

Re: [U-Boot] [GIT PULL] Xilinx changes

2016-04-04 Thread Tom Rini
On Mon, Apr 04, 2016 at 08:31:06PM +0200, Michal Simek wrote: > Hi Tom, > > please pull these xilinx changes to your branch. > > Thanks, > Michal > > The following changes since commit 563d8d93585035fa2a0b20190c1008eb625432c4: > > net: phy: Realtek RTL8211B/C PHY ID fix (2016-04-02 19:26:08

Re: [U-Boot] [PATCH] common: cli: Fix typo CONFIG_CMDINE -> CONFIG_CMDLINE

2016-04-04 Thread Tom Rini
On Mon, Apr 04, 2016 at 04:32:15PM +0200, Stefan Roese wrote: > Patch f8bb6964 (Drop command-processing code when CONFIG_CMDLINE is > disabled) introduced a small typo. This patch fixes it and unbreaks > all boards again that don't have the Hush parser enabled. > > Signed-off-by: Stefan Roese >

Re: [U-Boot] [PATCH 1/5] drivers: mmc: omap_hsmmc: request cd and wp gpios when DM_MMC is defined

2016-04-04 Thread Tom Rini
On Mon, Apr 04, 2016 at 05:28:01PM +0530, Mugunthan V N wrote: > Add request gpio for CD and WP gpios, so that the gpio can be > used for the respective purposes. > > Signed-off-by: Mugunthan V N Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature

Re: [U-Boot] [PATCH 1/2] arm: Replace v7_maint_dcache_all(ARMV7_DCACHE_CLEAN_INVAL_ALL) with asm code

2016-04-04 Thread Tom Rini
On Mon, Apr 04, 2016 at 08:31:48PM +0200, Hans de Goede wrote: > v7_maint_dcache_all() does not work reliable when build with gcc6, > see: https://bugzilla.redhat.com/show_bug.cgi?id=1318788 So, I see on the bug you want to know if U-Boot is OK with this patch series being the fix. At the high l

Re: [U-Boot] [PATCH v2] kirkwood_nand: claim MPP pins on the fly

2016-04-04 Thread Scott Wood
On 03/24/2016 03:40 AM, Stefan Roese wrote: > On 02.02.2016 00:35, Chris Packham wrote: >> Claim the MPP pins for the NAND flash controller only when it's actually >> being used. This allows the pins to be shared with the SPI interface >> which already supports an equivalent on-access MPP reconfigu

Re: [U-Boot] [PATCH v4 20/21] board: Add Qualcomm Dragonboard 410C support

2016-04-04 Thread Andreas Färber
Am 31.03.2016 um 23:12 schrieb Mateusz Kulikowski: > diff --git a/include/configs/dragonboard410c.h > b/include/configs/dragonboard410c.h > new file mode 100644 > index 000..a63440f > --- /dev/null > +++ b/include/configs/dragonboard410c.h [...] > +#include > + > +/* BOOTP options */ > +#defi

Re: [U-Boot] [PATCH 1/3] usb: bcm_udc_otg: enable clocks

2016-04-04 Thread Steve Rae
Hi Marek, On Mon, Apr 4, 2016 at 1:02 PM, Marek Vasut wrote: > > On 04/04/2016 09:59 PM, Steve Rae wrote: > > Turn on the USB OTG clocks. > > > > Signed-off-by: Steve Rae > > --- > > > > drivers/usb/gadget/bcm_udc_otg_phy.c | 4 > > 1 file changed, 4 insertions(+) > > > > diff --git a/driv

Re: [U-Boot] [PATCH 1/3] usb: bcm_udc_otg: enable clocks

2016-04-04 Thread Marek Vasut
On 04/04/2016 09:59 PM, Steve Rae wrote: > Turn on the USB OTG clocks. > > Signed-off-by: Steve Rae > --- > > drivers/usb/gadget/bcm_udc_otg_phy.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/drivers/usb/gadget/bcm_udc_otg_phy.c > b/drivers/usb/gadget/bcm_udc_otg_phy.c > index

[U-Boot] [PATCH 3/3] bcm281xx: save ENV to MMC

2016-04-04 Thread Steve Rae
Enable saving ENV to MMC for the bcm281xx boards. Signed-off-by: Steve Rae --- include/configs/bcm28155_ap.h | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/configs/bcm28155_ap.h b/include/configs/bcm28155_ap.h index f1e8ed1..2b8e324 100644 --- a/include/confi

[U-Boot] [PATCH 2/3] bcm281xx: enable CONFIG_OF_LIBFDT

2016-04-04 Thread Steve Rae
set the Kconfig parameter: CONFIG_OF_LIBFDT Signed-off-by: Steve Rae --- configs/bcm28155_ap_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/bcm28155_ap_defconfig b/configs/bcm28155_ap_defconfig index ba57944..538647d 100644 --- a/configs/bcm28155_ap_defconfig +++ b/config

[U-Boot] [PATCH 1/3] usb: bcm_udc_otg: enable clocks

2016-04-04 Thread Steve Rae
Turn on the USB OTG clocks. Signed-off-by: Steve Rae --- drivers/usb/gadget/bcm_udc_otg_phy.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/usb/gadget/bcm_udc_otg_phy.c b/drivers/usb/gadget/bcm_udc_otg_phy.c index 10b2e13..877f162 100644 --- a/drivers/usb/gadget/bcm_udc_otg_p

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

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

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

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

Re: [U-Boot] [linux-sunxi] A10 bring up and DRAM configuration procedure

2016-04-04 Thread Piotr Król
On Sun, Apr 03, 2016 at 07:11:21PM +0300, Siarhei Siamashka wrote: > Hi Piotr, Hi Siarhei, thanks for comprehensive reply. > > Other question is how to proceed from this point ? I have datasheet for > > DDR3, > > but number of possible parameters to tweak seems to be overwhelming. Also as > > su

[U-Boot] u-boot version for Linux kernel 3.18

2016-04-04 Thread Vijay Shrivastav
I am in the process of moving our Linux release (kernel 2.6.27) to ELDK 5.8 which comes with Linux kernel version 3.18. I also have a working u-boot version 2009 patch level 1 from the board manufacturer. My question is, Is this version of u-boot compatible with Linux kernel 3.18 or not. I am u

[U-Boot] [PATCH 1/2] arm: Replace v7_maint_dcache_all(ARMV7_DCACHE_CLEAN_INVAL_ALL) with asm code

2016-04-04 Thread Hans de Goede
v7_maint_dcache_all() does not work reliable when build with gcc6, see: https://bugzilla.redhat.com/show_bug.cgi?id=1318788 While debugging this I learned that v7_maint_dcache_all() is unreliable when build with gcc5 too when it is marked as noinline. This commit fixes the reliability issues by r

[U-Boot] [PATCH 2/2] arm: Replace v7_maint_dcache_all(ARMV7_DCACHE_INVAL_ALL) with asm code

2016-04-04 Thread Hans de Goede
Lets be consistent and also replace v7_maint_dcache_all() with asm code for the invalidate case. Signed-off-by: Hans de Goede --- arch/arm/cpu/armv7/cache_v7.c | 100 ++ arch/arm/cpu/armv7/cache_v7_asm.S | 70 ++ 2 files changed, 7

Re: [U-Boot] [PATCH v2] test/py: Add support for loading image via tftp to specified location

2016-04-04 Thread Stephen Warren
On 04/04/2016 12:06 PM, Michal Simek wrote: For example this setting: env__net_tftp_readable_file = { "fn": "ep108/image.ub", "addr": 0x1000, "size": 25846296, "crc32": "b726f9de", } Acked-by: Stephen Warren ___ U-Boot mailin

[U-Boot] [GIT PULL] Xilinx changes

2016-04-04 Thread Michal Simek
Hi Tom, please pull these xilinx changes to your branch. Thanks, Michal The following changes since commit 563d8d93585035fa2a0b20190c1008eb625432c4: net: phy: Realtek RTL8211B/C PHY ID fix (2016-04-02 19:26:08 -0400) are available in the git repository at: git://www.denx.de/git/u-boot-mic

[U-Boot] [PATCH RESEND 1/2] cmd: fdt: Narrow the check for fdt addr

2016-04-04 Thread Maxime Ripard
The current code only checks if the fdt subcommand is fdt addr by checking whether it starts with 'a'. Since this is a pretty widely used letter, narrow down that check a bit. Signed-off-by: Maxime Ripard --- cmd/fdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/fdt.

[U-Boot] [PATCH RESEND 2/2] cmd: fdt: add fdt overlay application subcommand

2016-04-04 Thread Maxime Ripard
The device tree overlays are a good way to deal with user-modifyable boards or boards with some kind of an expansion mechanism where we can easily plug new board in (like the BBB or the raspberry pi). However, so far, the usual mechanism to deal with it was to have in Linux some driver detecting t

[U-Boot] [PATCH RESEND 0/2] cmd: fdt: Add device tree overlays support

2016-04-04 Thread Maxime Ripard
Hi, The device tree overlays are a great solution to the issue raised by the bunch expandable boards we find everywhere these days, like the Beaglebone, Raspberry Pi or CHIP. However, most of the time, the overlays are applied through a mechanism involving the firmware request interface in Linux,

Re: [U-Boot] [PATCH] test/py: Add support for loading image via tftp to specified location

2016-04-04 Thread Michal Simek
On 31.3.2016 18:31, Stephen Warren wrote: > On 03/31/2016 02:32 AM, Michal Simek wrote: >> For example this setting: >> >> env__net_tftp_readable_file = { >> "fn": "ep108/image.ub", >> "addr": "0x1000", > > Why not remove the quotes, so the value is an integer already... > > Could y

[U-Boot] [PATCH v2] test/py: Add support for loading image via tftp to specified location

2016-04-04 Thread Michal Simek
For example this setting: env__net_tftp_readable_file = { "fn": "ep108/image.ub", "addr": 0x1000, "size": 25846296, "crc32": "b726f9de", } Signed-off-by: Michal Simek --- Changes in v2: - Remove quotes from addr field - Remove int conversion - Update example at the top of fi

Re: [U-Boot] [PATCH] spmi: Fix sandbox spmi driver memory corruption

2016-04-04 Thread Stephen Warren
On 04/04/2016 11:55 AM, Mateusz Kulikowski wrote: There is off-by-one error in sandbox_emul_gpio that causes segfault of certain tests. EMUL_GPIO_REG_END is the address of last valid (emulated) register. This patch fixed this (by adding one more element to emulated register array). Tested-by:

Re: [U-Boot] [U-Boot,v4,15/21] spmi: Add sandbox test driver

2016-04-04 Thread Mateusz Kulikowski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, On 04.04.2016 19:09, Stephen Warren wrote: > On 04/04/2016 10:19 AM, Mateusz Kulikowski wrote: [...] ... but note that the tests fail currently, please fix :) >>> >>> Yup, my automated build/test systems all started failing due to >>> this

[U-Boot] [PATCH] spmi: Fix sandbox spmi driver memory corruption

2016-04-04 Thread Mateusz Kulikowski
There is off-by-one error in sandbox_emul_gpio that causes segfault of certain tests. EMUL_GPIO_REG_END is the address of last valid (emulated) register. This patch fixed this (by adding one more element to emulated register array). Signed-off-by: Mateusz Kulikowski --- drivers/spmi/spmi-sandb

Re: [U-Boot] [PATCH] dm: gpio: handle GPIO_ACTIVE_LOW flag in DT

2016-04-04 Thread Stephen Warren
On 04/03/2016 08:07 AM, Eric Nelson wrote: Hi Stephen and Peng, On 04/02/2016 08:37 PM, Stephen Warren wrote: On 04/02/2016 09:13 AM, Eric Nelson wrote: On 04/01/2016 10:46 PM, Peng Fan wrote: On Thu, Mar 31, 2016 at 01:41:04PM -0700, Eric Nelson wrote: On 03/28/2016 09:57 PM, Peng Fan wrote

[U-Boot] [PATCH] cmd: fdt: Use separate CMD_FDT Kconfig entry instead of OF_LIBFDT

2016-04-04 Thread Michal Simek
Create CMD_FDT Kconfig entry to have an option to disable fdt command which is not required for small configuration which requires libfdt only. Enable it by default for all targets which enables OF_LIBFDT. Signed-off-by: Michal Simek --- cmd/Kconfig | 7 +++ cmd/Makefile | 2 +- 2 files ch

[U-Boot] [PATCH 0/2] cmd: fdt: Add device tree overlays support

2016-04-04 Thread Maxime Ripard
The device tree overlays are a good way to deal with user-modifyable boards or boards with some kind of an expansion mechanism where we can easily plug new board in (like the BBB or the raspberry pi). However, so far, the usual mechanism to deal with it was to have in Linux some driver detecting t

Re: [U-Boot] [PATCH 2/3] cmd: blkcache: simplify sub-command handling

2016-04-04 Thread Stephen Warren
On 04/02/2016 08:37 AM, Eric Nelson wrote: The series, Acked-by: Stephen Warren One nit below: diff --git a/cmd/blkcache.c b/cmd/blkcache.c @@ -73,12 +73,10 @@ static int do_blkcache(cmd_tbl_t *cmdtp, int flag, c = find_cmd_tbl(argv[0], &cmd_blkc_sub[0], ARRAY_SIZE(cmd_blkc_sub));

Re: [U-Boot] travis build fails

2016-04-04 Thread Stephen Warren
On 04/04/2016 10:27 AM, Heiko Schocher wrote: Hello, a lot of U-Boot builds fail on https://travis-ci.org/u-boot/u-boot because the dtc compiler drops the following warning: Warning (unit_address_vs_reg): Node XXX has a reg or ranges property, but no unit name for example: https://travis-ci.o

Re: [U-Boot] [PATCH 5/9] drivers: nand: omap_gpmc: convert driver to adopt driver model

2016-04-04 Thread Scott Wood
On Fri, 2016-04-01 at 16:59 +0530, Mugunthan V N wrote: > adopt omap_gpmc driver to driver model. > > Signed-off-by: Mugunthan V N > --- > drivers/mtd/nand/omap_gpmc.c | 205 > +++ > 1 file changed, 205 insertions(+) > > diff --git a/drivers/mtd/nand/omap

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

2016-04-04 Thread Steve Rae
That one fails for me too So I suspect that a conditional is required - something like: diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c index a54b4ee..41ec211 100644 --- a/drivers/usb/gadget/f_fastboot.c +++ b/drivers/usb/gadget/f_fastboot.c @@ -422,17 +422,19 @

Re: [U-Boot] [U-Boot,v4,15/21] spmi: Add sandbox test driver

2016-04-04 Thread Tom Rini
On Mon, Apr 04, 2016 at 09:49:06AM -0600, Stephen Warren wrote: > On 04/01/2016 08:04 PM, Tom Rini wrote: > >On Thu, Mar 31, 2016 at 11:12:28PM +0200, Mateusz Kulikowski wrote: > > > >>This patch adds emulated spmi bus controller with part of > >>pm8916 pmic on it to sandbox and tests validating SP

Re: [U-Boot] [U-Boot,v4,15/21] spmi: Add sandbox test driver

2016-04-04 Thread Stephen Warren
On 04/04/2016 10:19 AM, Mateusz Kulikowski wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, On 04.04.2016 17:49, Stephen Warren wrote: On 04/01/2016 08:04 PM, Tom Rini wrote: On Thu, Mar 31, 2016 at 11:12:28PM +0200, Mateusz Kulikowski wrote: This patch adds emulated spmi bus cont

[U-Boot] [PATCH] test/py: pass -v option when executing sandbox

2016-04-04 Thread Stephen Warren
From: Stephen Warren This shows more output, such as the internal output generated by the unit test ("ut") command, which makes it easier to debug issues. Signed-off-by: Stephen Warren --- test/py/u_boot_console_sandbox.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/py/u_boot_cons

[U-Boot] [PATCH] sf: fix timebase data type in _wait_ready()

2016-04-04 Thread Stephen Warren
From: Stephen Warren get_timer() returns an unsigned 64-bit value, but is currently assigned to a signed 32-bit variable. Due to sign extension and data truncation, this causes the timeout loop in spi_flash_cmd_wait_ready() to immediately (and incorrectly) fire for about 50% of all time values, b

[U-Boot] travis build fails

2016-04-04 Thread Heiko Schocher
Hello, a lot of U-Boot builds fail on https://travis-ci.org/u-boot/u-boot because the dtc compiler drops the following warning: Warning (unit_address_vs_reg): Node XXX has a reg or ranges property, but no unit name for example: https://travis-ci.org/u-boot/u-boot/jobs/120363766#L510 Any ide

Re: [U-Boot] Missing flush_cache in do_load function

2016-04-04 Thread James Chargin
Hi, On 03/31/2016 11:24 PM, Borsodi Petr wrote: Hi all, I found a problem with load command on ARM based board. When I load hello_world standalone application using filesystem load command, the u-boot crashes. Loading with loads is OK. I think that the problem is caused by cache inconsistency

Re: [U-Boot] [U-Boot,v4,15/21] spmi: Add sandbox test driver

2016-04-04 Thread Mateusz Kulikowski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, On 04.04.2016 17:49, Stephen Warren wrote: > On 04/01/2016 08:04 PM, Tom Rini wrote: >> On Thu, Mar 31, 2016 at 11:12:28PM +0200, Mateusz Kulikowski wrote: >> >>> This patch adds emulated spmi bus controller with part of >>> pm8916 pmic on it to

Re: [U-Boot] [PATCH v2 1/1] mpc85xx: Enable pre-relocation malloc for MPC85xx

2016-04-04 Thread York Sun
On 04/04/2016 03:01 AM, Mario Six wrote: > > Quoting York Sun : > >> On 04/01/2016 01:13 AM, Mario Six wrote: >>> To enable DM on MPC85xx, we need pre-relocation malloc, which is >>> implemented in this patch. >>> >>> We also make sure that the IVORs are always 4-aligned on e500 to prevent >>> al

Re: [U-Boot] [U-Boot,v4,15/21] spmi: Add sandbox test driver

2016-04-04 Thread Stephen Warren
On 04/01/2016 08:04 PM, Tom Rini wrote: On Thu, Mar 31, 2016 at 11:12:28PM +0200, Mateusz Kulikowski wrote: This patch adds emulated spmi bus controller with part of pm8916 pmic on it to sandbox and tests validating SPMI uclass. Signed-off-by: Mateusz Kulikowski Reviewed-by: Simon Glass Ap

Re: [U-Boot] [PATCH] rpi: remove redundant board files

2016-04-04 Thread Andreas Färber
Am 04.04.2016 um 17:36 schrieb Stephen Warren: > On 04/03/2016 09:41 AM, Andreas Färber wrote: >> Am 03.04.2016 um 05:56 schrieb Stephen Warren: >>> Now that rpi_*defconfig and Kconfig rather than the config header file, >> >> "rpi*_defconfig"? > > Both regexes match the same set of files at prese

Re: [U-Boot] [PATCH] rpi: remove redundant board files

2016-04-04 Thread Stephen Warren
On 04/03/2016 09:41 AM, Andreas Färber wrote: Am 03.04.2016 um 05:56 schrieb Stephen Warren: Now that rpi_*defconfig and Kconfig rather than the config header file, "rpi*_defconfig"? Both regexes match the same set of files at present, but I prefer the one I wrote, since it guarantees that

Re: [U-Boot] [PATCH] debug_uart: output CR along with LF

2016-04-04 Thread Tim Chick
Hi Masahiro, This patch breaks the debug_uart on my MIPS board. It means printascii now uses the stack, and my board does not have a stack when debug_uart_init is called. debug_uart_init calls printascii if DEBUG_UART_ANNOUNCE is defined. The patch below fixes it, and keeps your change: Thanks

Re: [U-Boot] [PATCH v3] armv8: LS2080A: Consolidate LS2080A and LS2085A

2016-04-04 Thread York Sun
On 04/04/2016 04:07 AM, Prabhakar Kushwaha wrote: > >> -Original Message- >> From: York Sun [mailto:york@nxp.com] >> Sent: Thursday, March 31, 2016 11:45 PM >> To: U-Boot Mailing List >> Cc: Stuart Yoder ; Scott Wood ; >> Huan Wang ; york sun ; >> Prabhakar Kushwaha ; Ramneek Mehresh

Re: [U-Boot] [PATCH 6/6] i2c: designware_i2c: Add support for PCI(e) based I2C cores (x86)

2016-04-04 Thread Stefan Roese
Hi Simon, as you seem to be back from vacation (?), we (Bin and myself) would like to hear your expert comment on a x86 issue I've discovered while porting the Designware I2C driver to x86. Please see below: On 28.03.2016 08:01, Bin Meng wrote: > Hi Stefan, > > On Mon, Mar 21, 2016 at 10:04 PM,

[U-Boot] [PATCH] common: cli: Fix typo CONFIG_CMDINE -> CONFIG_CMDLINE

2016-04-04 Thread Stefan Roese
Patch f8bb6964 (Drop command-processing code when CONFIG_CMDLINE is disabled) introduced a small typo. This patch fixes it and unbreaks all boards again that don't have the Hush parser enabled. Signed-off-by: Stefan Roese Cc: Simon Glass Cc: Tom Rini --- common/cli.c | 2 +- 1 file changed, 1

Re: [U-Boot] [U-Boot, v3, 5/9] Drop command-processing code when CONFIG_CMDLINE is disabled

2016-04-04 Thread Stefan Roese
Hi Simon, On 04.04.2016 16:05, Simon Glass wrote: On 5 April 2016 at 01:38, Stefan Roese wrote: Hi Simon, On 04.04.2016 15:18, Simon Glass wrote: On Apr 4, 2016 03:16, "Stefan Roese" mailto:s...@denx.de>> wrote: > > Hi Simon, Hi Tom! > > > On 02.04.2016 03:55, Tom Rini wrote: >

Re: [U-Boot] [PATCH 1/2] serial: Introduce linflex uart support

2016-04-04 Thread Eddy Petrișor
(- Eric, he left the company a little after he contributed to the linflex driver, so he's email is no longer valid) Pe 4 apr. 2016 6:22 a.m., "Bin Meng" a scris: > > On Sun, Apr 3, 2016 at 8:10 AM, Eddy Petrișor wrote: > > From: Stoica Cosmin-Stefan > > > > The Linflex module is integrated on s

Re: [U-Boot] [U-Boot, v3, 5/9] Drop command-processing code when CONFIG_CMDLINE is disabled

2016-04-04 Thread Simon Glass
Hi Stefan, On 5 April 2016 at 01:38, Stefan Roese wrote: > > Hi Simon, > > On 04.04.2016 15:18, Simon Glass wrote: >> >> On Apr 4, 2016 03:16, "Stefan Roese" mailto:s...@denx.de>> >> wrote: >> > >> > Hi Simon, Hi Tom! >> > >> > >> > On 02.04.2016 03:55, Tom Rini wrote: >> >> >> >> On Sat,

Re: [U-Boot] [U-Boot, v3, 5/9] Drop command-processing code when CONFIG_CMDLINE is disabled

2016-04-04 Thread Stefan Roese
Hi Simon, On 04.04.2016 15:18, Simon Glass wrote: On Apr 4, 2016 03:16, "Stefan Roese" mailto:s...@denx.de>> wrote: > > Hi Simon, Hi Tom! > > > On 02.04.2016 03:55, Tom Rini wrote: >> >> On Sat, Mar 19, 2016 at 02:18:38AM -0600, Simon Glass wrote: >> >>> Command parsing and processing c

Re: [U-Boot] [U-Boot, v3, 5/9] Drop command-processing code when CONFIG_CMDLINE is disabled

2016-04-04 Thread Simon Glass
Hi Stefan, On Apr 4, 2016 03:16, "Stefan Roese" wrote: > > Hi Simon, Hi Tom! > > > On 02.04.2016 03:55, Tom Rini wrote: >> >> On Sat, Mar 19, 2016 at 02:18:38AM -0600, Simon Glass wrote: >> >>> Command parsing and processing code is not needed when the command line is >>> disabled. Remove this co

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

2016-04-04 Thread Stefan Roese
Hi Tom, please pull the Armada 375 support from the Marvell U-Boot git repository. Thanks, Stefan The following changes since commit 563d8d93585035fa2a0b20190c1008eb625432c4: net: phy: Realtek RTL8211B/C PHY ID fix (2016-04-02 19:26:08 -0400) are available in the git repository at: git:/

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

2016-04-04 Thread Stefan Roese
On 23.03.2016 08:21, Stefan Roese wrote: This patch adds support for the mvpp2 ethernet controller which is integrated in the Marvell Armada 375 SoC. This port is based on the Linux driver (v4.4), which has been stripped of the in U-Boot unused portions. Tested on the Marvell Armada 375 eval boa

Re: [U-Boot] [PATCH 5/6] arm: mvebu: Add basic support for Armada 375 eval board db-88f6720

2016-04-04 Thread Stefan Roese
On 15.03.2016 17:35, Stefan Roese wrote: This patch adds basic support for the Marvell A375 eval board. Tested are the following interfaces: - I2C - SPI - SPI NOR - Ethernet (mvpp2), port 0 & 1 Currently the A375 SerDes and DDR3 init code is not intergrated. So the SPL U-Boot is not fully functi

Re: [U-Boot] [PATCH 4/6] arm: mvebu: Add basic support for the Marvell Armada 375 SoC

2016-04-04 Thread Stefan Roese
On 15.03.2016 17:35, Stefan Roese wrote: This patch adds basic support for the Armada 375. Please note that currently the SerDes and DDR3 init code for the A375 is not included / enabled. This will be done in a later, follow-up patch. Right now, this A375 mainline U-Boot can only be used by chai

Re: [U-Boot] [PATCH 6/6] arm: mvebu: Don't enable d-cache on A375

2016-04-04 Thread Stefan Roese
On 15.03.2016 17:35, Stefan Roese wrote: Armada 375 still has some problems with d-cache enabled in the ethernet driver (mvpp2). So lets keep the d-cache disabled until this is solved. Signed-off-by: Stefan Roese Cc: Luka Perkov Applied to u-boot-marvell/master. Thanks, Stefan

Re: [U-Boot] [PATCH 3/6] dt-bindings: Add include/dt-bindings/phy/phy.h from Linux v4.4

2016-04-04 Thread Stefan Roese
On 15.03.2016 17:35, Stefan Roese wrote: This will be needed by the upcoming Marvell Armada 375 dts files. Signed-off-by: Stefan Roese Cc: Luka Perkov Applied to u-boot-marvell/master. Thanks, Stefan ___ U-Boot mailing list U-Boot@lists.denx.de h

Re: [U-Boot] [PATCH 1/6] spi: kirkwood_spi.c: Add compatible match ID for Armada 375

2016-04-04 Thread Stefan Roese
On 15.03.2016 17:35, Stefan Roese wrote: This enables this driver for the Marvell Armada 375 SoC. Signed-off-by: Stefan Roese Cc: Luka Perkov Cc: Jagan Teki Applied to u-boot-marvell/master. Thanks, Stefan ___ U-Boot mailing list U-Boot@lists.de

[U-Boot] [PATCH 5/5] configs: dra74_evm: enable mmc driver model

2016-04-04 Thread Mugunthan V N
enable mmc driver model for dra74 evm as omap_hsmmc supports driver model Signed-off-by: Mugunthan V N --- configs/dra74_evm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/dra74_evm_defconfig b/configs/dra74_evm_defconfig index 9039b15..5f50004 100644 --- a/configs/dra74_e

[U-Boot] [PATCH 3/5] ARM: dts: dra7xx: am57xx: fix cd-gpios definition as per hardware design and dt binding docs

2016-04-04 Thread Mugunthan V N
As per mmc device tree binding documentation card detect gpio has to be active low signal. When a hardware is designed with active high card detect, gpio polarity has to be changed with cd-inverted dt property. In DRA72x and AM57xx EVMs the card detect gpio is designed as active low gpio. So corre

[U-Boot] [PATCH 2/5] ARM: dts: am43xx: fix cd-gpios definition as per hardware design and dt binding docs

2016-04-04 Thread Mugunthan V N
As per mmc device tree binding documentation card detect gpio has to be active low signal. When a hardware is designed with active high card detect, gpio polarity has to be changed with cd-inverted dt property. In AM43xx the card detect gpio is designed as active low gpio. So correcting the dt car

[U-Boot] [PATCH 4/5] configs: dra72_evm: enable mmc driver model

2016-04-04 Thread Mugunthan V N
enable mmc driver model for dra72 evm as omap_hsmmc supports driver model Signed-off-by: Mugunthan V N --- configs/dra72_evm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/dra72_evm_defconfig b/configs/dra72_evm_defconfig index da24992..6626a1e 100644 --- a/configs/dra72_e

[U-Boot] [PATCH 1/5] drivers: mmc: omap_hsmmc: request cd and wp gpios when DM_MMC is defined

2016-04-04 Thread Mugunthan V N
Add request gpio for CD and WP gpios, so that the gpio can be used for the respective purposes. Signed-off-by: Mugunthan V N --- drivers/mmc/omap_hsmmc.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index 1071314..85a832b 100644 ---

[U-Boot] [PATCH 0/5] omap_hsmmc: add cd/wp gpio request, mmc dt fixes and enable mmc dm for dra74/dra72 evms

2016-04-04 Thread Mugunthan V N
When omap_hsmmc was converted to DM, card detect and write protect gpios request were not implemented due to gpio failures [3], now as it is working adding cd/wp gpio request in probe. Also fixing the gpio active level in DT as done in kernel DT and enabling of DM_MMC for dra74 amd dra72 evm config

Re: [U-Boot] [PATCH v3] armv8: LS2080A: Consolidate LS2080A and LS2085A

2016-04-04 Thread Prabhakar Kushwaha
> -Original Message- > From: York Sun [mailto:york@nxp.com] > Sent: Thursday, March 31, 2016 11:45 PM > To: U-Boot Mailing List > Cc: Stuart Yoder ; Scott Wood ; > Huan Wang ; york sun ; > Prabhakar Kushwaha ; Ramneek Mehresh > ; Pratiyush Mohan Srivastava > ; Stuart Yoder > ; Li Yang

Re: [U-Boot] [U-Boot, v3, 5/9] Drop command-processing code when CONFIG_CMDLINE is disabled

2016-04-04 Thread Stefan Roese
Hi Simon, Hi Tom! On 02.04.2016 03:55, Tom Rini wrote: On Sat, Mar 19, 2016 at 02:18:38AM -0600, Simon Glass wrote: Command parsing and processing code is not needed when the command line is disabled. Remove this code in that case. Signed-off-by: Simon Glass Reviewed-by: Tom Rini Applied

[U-Boot] [PATCH] mmc: rmobile: add a compiler barrier

2016-04-04 Thread Yannick Gicquel
Building w/ GCC v5.2, the SD card access is broken due to invalid data in the response command reconstructed at the end of sh_sdhci_get_response(). Add a memory barrier between the two main steps of this function to ensure the resp[] table content is consistent before bits reordering. This fix ha

[U-Boot] [PATCH] board: ti: am57xx: Prevent init_sata() from being called twice

2016-04-04 Thread Roger Quadros
init_sata() is done as part of scsi_init() in arch/arm/cpu/armv7/omap-common/sata.c so no need to duplicate it here. This seems to fix SATA problems in the kernel when CONFIG_TI_PIPE3 is configured as loadable module. Cc: Cooper Jr., Franklin Cc: Nishanth Menon Signed-off-by: Roger Quadros ---

Re: [U-Boot] [PATCH v2 1/1] mpc85xx: Enable pre-relocation malloc for MPC85xx

2016-04-04 Thread Mario Six
Quoting York Sun : On 04/01/2016 01:13 AM, Mario Six wrote: To enable DM on MPC85xx, we need pre-relocation malloc, which is implemented in this patch. We also make sure that the IVORs are always 4-aligned on e500 to prevent alignment exceptions caused by code changes in start.S. Signed-off-

  1   2   >