Re: [U-Boot] [PATCH v3 10/16] drivers: mtd: spi: sf_probe: add compatible for spansion spi flash

2015-12-05 Thread Mugunthan V N
On Thursday 03 December 2015 09:32 PM, Jagan Teki wrote: > Hi Mugunthan, > > On 23 November 2015 at 18:42, Jagan Teki wrote: >> On 23 November 2015 at 16:59, Mugunthan V N wrote: >>> On Friday 20 November 2015 05:57 PM, Jagan Teki wrote: On 20 November 2015 at 11:31, Mugunthan V N wrote: >

Re: [U-Boot] [PATCH v3 05/16] spi: Add support for dual and quad mode

2015-12-05 Thread Mugunthan V N
On Thursday 03 December 2015 09:37 PM, Jagan Teki wrote: > On 19 November 2015 at 12:35, Mugunthan V N wrote: >> spi bus can support dual and quad wire data transfers for tx and >> rx. So defining dual and quad modes for both tx and rx. Also add >> support to parse bus width used for spi tx and rx

[U-Boot] [PULL] Please pull u-boot-nios/master

2015-12-05 Thread Thomas Chou
The following changes since commit 9eed48c8bec98425dbd995dd72c40e9ad7a8c26b: Merge branch 'master' of http://git.denx.de/u-boot-sparc (2015-12-04 17:50:34 -0500) are available in the git repository at: git://git.denx.de/u-boot-nios.git master for you to fetch changes up to f118fe5cf960702f

Re: [U-Boot] [PATCH v2 1/2] altera_qspi: add lock unlock ops

2015-12-05 Thread Thomas Chou
On 2015年12月01日 17:07, Thomas Chou wrote: Add lock() and unlock() mtd ops to altera_qspi. Signed-off-by: Thomas Chou --- v2 change uint64_t to u64 as suggested by Marek. add macros for status register. limit get_locked_range to mtd->size. drivers/mtd/altera_qspi.c | 95

Re: [U-Boot] [PATCH v2 2/2] altera_qspi: fix erase and write error code

2015-12-05 Thread Thomas Chou
On 2015年12月01日 17:07, Thomas Chou wrote: Fix erase and write error code, which should be "protected". From the "Embedded Peripherals IP User Guide" of Altera, The "Illegal write" flag indicates that a write instruction is targeting a protected sector on the flash memory. This bit is set to

Re: [U-Boot] [PATCH] spl: mmc: Fix compiler warning

2015-12-05 Thread Marek Vasut
On Saturday, December 05, 2015 at 10:02:56 PM, Tom Rini wrote: > On Sat, Dec 05, 2015 at 09:42:35PM +0100, Marek Vasut wrote: > > Fix the following warning: > > common/spl/spl_mmc.c: In function 'spl_mmc_load_image': > > common/spl/spl_mmc.c:31:24: warning: 'mmc' may be used uninitialized in > > th

Re: [U-Boot] [PATCH] spl: mmc: Fix compiler warning

2015-12-05 Thread Tom Rini
On Sat, Dec 05, 2015 at 09:42:35PM +0100, Marek Vasut wrote: > Fix the following warning: > common/spl/spl_mmc.c: In function 'spl_mmc_load_image': > common/spl/spl_mmc.c:31:24: warning: 'mmc' may be used uninitialized in this > function [-Wmaybe-uninitialized] > count = mmc->block_dev.block_re

[U-Boot] [PATCH 5/6] arm: socfpga: Introduce common board code

2015-12-05 Thread Marek Vasut
The SoCFPGA has reached a point where every single board code become the same, since each and every single board is probed equally from OF. Move the common board code into arch/arm/mach-socfpga/ . Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen --- arch/arm/mach-socfpga/Makefile

[U-Boot] [PATCH 6/6] arm: socfpga: Drop the board boilerplate

2015-12-05 Thread Marek Vasut
Drop all the common board code, since it is not completely useless. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen --- board/altera/arria5-socdk/socfpga.c | 56 --- board/altera/cyclone5-socdk/socfpga.c | 56 ---

[U-Boot] [PATCH 4/6] arm: socfpga: Switch CONFIG_HOSTNAME to CONFIG_SYS_BOARD

2015-12-05 Thread Marek Vasut
We already have the CONFIG_SYS_BOARD variable, which defines the name of the board. The value in CONFIG_HOSTNAME is exactly the same and is thus just a duplicity, so switch it to reuse CONFIG_SYS_BOARD . Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen --- include/configs/socfpga_

[U-Boot] [PATCH 2/6] arm: socfpga: sockit: Zap VIRTUAL_TARGET

2015-12-05 Thread Marek Vasut
There is no VT for this board, so remove this incorrect macro. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen --- include/configs/socfpga_sockit.h | 4 1 file changed, 4 deletions(-) diff --git a/include/configs/socfpga_sockit.h b/include/configs/socfpga_sockit.h index eef

[U-Boot] [PATCH 3/6] arm: socfpga: Switch CONFIG_G_DNL_MANUFACTURER to CONFIG_SYS_VENDOR

2015-12-05 Thread Marek Vasut
We already have the CONFIG_SYS_VENDOR variable, which defines the manufacturer of the board. The value in CONFIG_G_DNL_MANUFACTURER is just a duplicity, so switch it to reuse CONFIG_SYS_VENDOR . Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen --- include/configs/socfpga_arria5_so

[U-Boot] [PATCH 1/6] arm: socfpga: de0_nano: Zap VIRTUAL_TARGET

2015-12-05 Thread Marek Vasut
There is no VT for this board, so remove this incorrect macro. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen --- include/configs/socfpga_de0_nano_soc.h | 4 1 file changed, 4 deletions(-) diff --git a/include/configs/socfpga_de0_nano_soc.h b/include/configs/socfpga_de0_n

[U-Boot] [PATCH 7/7] arm: socfpga: socrates: Probe DWC2 UDC from OF instead of hard-coded data

2015-12-05 Thread Marek Vasut
This patch adds the necessary OF alias for the UDC node, which let's the code locate the DWC2 UDC base address in OF instead of hard-coding it into the U-Boot binary. The code is adjusted to use the address from OF instead of the hard-coded one. Finally, the hard-coded address is removed and USB DM

[U-Boot] [PATCH 1/7] arm: socfpga: Allow DWC2 UDC probing from OF

2015-12-05 Thread Marek Vasut
The USB gadget framework does not support DM yet, so add this bit to let DWC2 UDC probe from OF on platforms which support it. Signed-off-by: Marek Vasut Cc: Simon Glass Cc: Chin Liang See Cc: Dinh Nguyen Cc: Lukasz Majewski Cc: Lukasz Majewski --- include/fdtdec.h | 1 + lib/fdtdec.c |

[U-Boot] [PATCH 6/7] arm: socfpga: sockit: Probe DWC2 UDC from OF instead of hard-coded data

2015-12-05 Thread Marek Vasut
This patch adds the necessary OF alias for the UDC node, which let's the code locate the DWC2 UDC base address in OF instead of hard-coding it into the U-Boot binary. The code is adjusted to use the address from OF instead of the hard-coded one. Finally, the hard-coded address is removed and USB DM

[U-Boot] [PATCH 5/7] arm: socfpga: mcvevk: Probe DWC2 UDC from OF instead of hard-coded data

2015-12-05 Thread Marek Vasut
This patch adds the necessary OF alias for the UDC node, which let's the code locate the DWC2 UDC base address in OF instead of hard-coding it into the U-Boot binary. The code is adjusted to use the address from OF instead of the hard-coded one. Finally, the hard-coded address is removed and USB DM

[U-Boot] [PATCH 3/7] arm: socfpga: cyclone5-socdk: Probe DWC2 UDC from OF instead of hard-coded data

2015-12-05 Thread Marek Vasut
This patch adds the necessary OF alias for the UDC node, which let's the code locate the DWC2 UDC base address in OF instead of hard-coding it into the U-Boot binary. The code is adjusted to use the address from OF instead of the hard-coded one. Finally, the hard-coded address is removed and USB DM

[U-Boot] [PATCH] spl: mmc: Fix compiler warning

2015-12-05 Thread Marek Vasut
Fix the following warning: common/spl/spl_mmc.c: In function 'spl_mmc_load_image': common/spl/spl_mmc.c:31:24: warning: 'mmc' may be used uninitialized in this function [-Wmaybe-uninitialized] count = mmc->block_dev.block_read(0, sector, 1, header); ^ common/spl/spl_mmc.c

[U-Boot] [PATCH 2/7] arm: socfpga: arria5-socdk: Probe DWC2 UDC from OF instead of hard-coded data

2015-12-05 Thread Marek Vasut
This patch adds the necessary OF alias for the UDC node, which let's the code locate the DWC2 UDC base address in OF instead of hard-coding it into the U-Boot binary. The code is adjusted to use the address from OF instead of the hard-coded one. Finally, the hard-coded address is removed and USB DM

[U-Boot] [PATCH 6/7] arm: socfpga: sockit: Remove Micrel PHY configuration

2015-12-05 Thread Marek Vasut
The Micrel PHY configuration is now done from OF, so hard-coding the configuration into the board file is no longer necessary. Signed-off-by: Marek Vasut Cc: Joe Hershberger Cc: Chin Liang See Cc: Dinh Nguyen --- board/terasic/sockit/socfpga.c | 40

[U-Boot] [PATCH 5/7] arm: socfpga: de0_nano: Remove Micrel PHY configuration

2015-12-05 Thread Marek Vasut
The Micrel PHY configuration is now done from OF, so hard-coding the configuration into the board file is no longer necessary. Signed-off-by: Marek Vasut Cc: Joe Hershberger Cc: Chin Liang See Cc: Dinh Nguyen --- board/terasic/de0-nano-soc/socfpga.c | 50 --

[U-Boot] [PATCH 4/7] arm: socfpga: de0_nano: Probe DWC2 UDC from OF instead of hard-coded data

2015-12-05 Thread Marek Vasut
This patch adds the necessary OF alias for the UDC node, which let's the code locate the DWC2 UDC base address in OF instead of hard-coding it into the U-Boot binary. The code is adjusted to use the address from OF instead of the hard-coded one. Finally, the hard-coded address is removed and USB DM

[U-Boot] [PATCH 3/7] arm: socfpga: arria5-socdk: Remove Micrel PHY configuration

2015-12-05 Thread Marek Vasut
The Micrel PHY configuration is now done from OF, so hard-coding the configuration into the board file is no longer necessary. Signed-off-by: Marek Vasut Cc: Joe Hershberger Cc: Chin Liang See Cc: Dinh Nguyen --- board/altera/arria5-socdk/socfpga.c| 40 --

[U-Boot] [PATCH 1/7] net: phy: micrel: Configure KSZ9021/KSZ9031 skew from OF

2015-12-05 Thread Marek Vasut
Add code to process the KSZ9021/KSZ9031 OF props if they are present and configure skew registers based on the information from the OF. This code is only enabled if the DM support for ethernet is also enabled. Signed-off-by: Marek Vasut Cc: Joe Hershberger Cc: Chin Liang See Cc: Dinh Nguyen --

[U-Boot] [PATCH 2/7] arm: socfpga: socrates: Add missing PHY skew config

2015-12-05 Thread Marek Vasut
Add missing KSZ9021 PHY skew configuration for the EBV socrates board. Signed-off-by: Marek Vasut Cc: Joe Hershberger Cc: Chin Liang See Cc: Dinh Nguyen --- arch/arm/dts/socfpga_cyclone5_socrates.dts | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/dts/socfpga_cyclone5_so

[U-Boot] [PATCH 4/7] arm: socfpga: cyclone5-socdk: Remove Micrel PHY configuration

2015-12-05 Thread Marek Vasut
The Micrel PHY configuration is now done from OF, so hard-coding the configuration into the board file is no longer necessary. Signed-off-by: Marek Vasut Cc: Joe Hershberger Cc: Chin Liang See Cc: Dinh Nguyen --- board/altera/cyclone5-socdk/socfpga.c| 40

[U-Boot] [PATCH 7/7] arm: socfpga: socrates: Remove Micrel PHY configuration

2015-12-05 Thread Marek Vasut
The Micrel PHY configuration is now done from OF, so hard-coding the configuration into the board file is no longer necessary. Signed-off-by: Marek Vasut Cc: Joe Hershberger Cc: Chin Liang See Cc: Dinh Nguyen --- board/ebv/socrates/socfpga.c | 40 --

Re: [U-Boot] [PATCH] imx_common: check for Serial Downloader in spl_boot_device

2015-12-05 Thread Eric Nelson
Hi Stefano, On 12/04/2015 02:02 AM, Stefano Babic wrote: > Check for bmode before reading the boot device > to check if a serial downloader is started, > and returns UART if the serial downloader is set, > letting SPL to wait for an image if > CONFIG_SPL_YMODEM_SUPPORT is set. > > This allows to

[U-Boot] [PATCH] spl: mmc: use block device number, not hard-coded 0

2015-12-05 Thread Eric Nelson
In order to support boot from multiple devices through board_boot_order, it's necessary to use the block number of a device. The use of a hard-coded 0 for the device number also creates a need to re-order block devices for use in SPL like this: http://git.denx.de/?p=u-boot.git;a=blob;f=bo

Re: [U-Boot] [PATCH] arm: socfpga: Don't redefine CONFIG_PHYLIB

2015-12-05 Thread Marek Vasut
On Saturday, December 05, 2015 at 07:03:36 PM, Pavel Machek wrote: > On Sat 2015-12-05 18:54:01, Marek Vasut wrote: > > On Saturday, December 05, 2015 at 06:25:19 PM, Pavel Machek wrote: > > > On Sat 2015-12-05 15:04:25, Marek Vasut wrote: > > > > On Saturday, December 05, 2015 at 08:50:39 AM, Pave

Re: [U-Boot] [PATCH] arm: socfpga: Don't redefine CONFIG_PHYLIB

2015-12-05 Thread Pavel Machek
On Sat 2015-12-05 18:54:01, Marek Vasut wrote: > On Saturday, December 05, 2015 at 06:25:19 PM, Pavel Machek wrote: > > On Sat 2015-12-05 15:04:25, Marek Vasut wrote: > > > On Saturday, December 05, 2015 at 08:50:39 AM, Pavel Machek wrote: > > > > CONFIG_PHYLIB is already set by the config system >

Re: [U-Boot] [PATCH] arm: socfpga: Don't redefine CONFIG_PHYLIB

2015-12-05 Thread Marek Vasut
On Saturday, December 05, 2015 at 06:25:19 PM, Pavel Machek wrote: > On Sat 2015-12-05 15:04:25, Marek Vasut wrote: > > On Saturday, December 05, 2015 at 08:50:39 AM, Pavel Machek wrote: > > > CONFIG_PHYLIB is already set by the config system > > > > Where exactly is it set by the config system ?

Re: [U-Boot] [PATCH] arm: socfpga: Don't redefine CONFIG_PHYLIB

2015-12-05 Thread Pavel Machek
On Sat 2015-12-05 15:04:25, Marek Vasut wrote: > On Saturday, December 05, 2015 at 08:50:39 AM, Pavel Machek wrote: > > CONFIG_PHYLIB is already set by the config system > > Where exactly is it set by the config system ? > > > don't set it again. > > Avoids ton of warnings. > > Sorry, I don't se

Re: [U-Boot] [PATCH] arm: socfpga: Don't redefine CONFIG_PHYLIB

2015-12-05 Thread Marek Vasut
On Saturday, December 05, 2015 at 08:50:39 AM, Pavel Machek wrote: > CONFIG_PHYLIB is already set by the config system Where exactly is it set by the config system ? > don't set it again. > Avoids ton of warnings. Sorry, I don't seem to be able to replicate these warnings. Can you provide more d

Re: [U-Boot] [PATCH 0/7] Switch rockchip firefly to using tiny-printf

2015-12-05 Thread Stefan Roese
On 04.12.2015 23:27, Sjoerd Simons wrote: The Rockchip rk3288 SPL was always too close to the 32k limit, either needing gcc 5 or a patched gcc (with some constant string GC fixes) to actually stay (just) below 32k. With recent changes, it unfortunatly went over with common gcc versions. This se