Re: [U-Boot] [PATCH v3] driver: spi: fsl-qspi: disable AHB buffer prefetch

2016-07-12 Thread Yunhui Cui
On 07/12/2016 11:15 PM, York wrote: > On 07/11/2016 08:00 PM, Yunhui Cui wrote: > > From: Yunhui Cui > > > > Errata: A-009282: QuadSPI data pre-fetch can result in incorrect data > > We need this errata workaround when CONFIG_SYS_FSL_QSPI_AHB is enabled. > > > > Signed-off-by: Yunhui Cui > > ---

Re: [U-Boot] [PATCH 8/8] xtensa: add support for the 'xtfpga' evaluation board

2016-07-12 Thread Michal Simek
On 8.7.2016 17:42, Max Filippov wrote: > From: Chris Zankel > > The 'xtfpga' board is actually a set of FPGA evaluation boards that > can be configured to run an Xtensa processor. > > - Avnet Xilinx LX60 > - Avnet Xilinx LX110 > - Avnet Xilinx LX200 > - Xilinx ML605 > - Xilinx KC705 > > Th

Re: [U-Boot] [PATCH 7/8] net/ethoc: don't advertise gigabit on the connected PHY

2016-07-12 Thread Michal Simek
On 8.7.2016 17:42, Max Filippov wrote: > Introduce MDIO communication routines. Scan MDIO bus at reset to find > attached PHYs and see if they support gigabit speeds. If they do check > their gigabit control register: if gigabit autonegotiation is enabled > clear it and reset the PHY. > > This all

[U-Boot] [PATCH] x86: doc: Add note about the debug FSP usage on BayTrail

2016-07-12 Thread Stefan Roese
The debug FSP image is bigger in size than the normal FSP image. This patch adds a small description on how to use this FSP debug version by changing CONFIG_FSP_ADDR. Signed-off-by: Stefan Roese Cc: Bin Meng Cc: Simon Glass --- doc/README.x86 | 4 1 file changed, 4 insertions(+) diff --g

[U-Boot] xHCI on x86

2016-07-12 Thread Stefan Roese
Hi! I'm currently trying to get xHCI working on some BayTrail based x86 boards. For this I've added DM support to xhci-pci and made a small change to cache.h to enable compilation of the xhci driver on x86 (please find those 2 patches attached - I'll send then to the list once this is resolved).

Re: [U-Boot] [PATCH 8/9] power: pmic: add Ricoh RN5T567 PMIC support

2016-07-12 Thread Stefan Agner
On 2016-07-03 16:18, Simon Glass wrote: > Hi, > > On 3 July 2016 at 13:33, Stefan Agner wrote: >> From: Stefan Agner >> >> Add power driver for Ricoh PMIC used on Colibri iMX7. >> >> Signed-off-by: Stefan Agner >> Acked-by: Marcel Ziswiler >> --- >> >> drivers/power/pmic/Makefile | 1

[U-Boot] [PATCH 1/2] x86: Add DFI BT700 BayTrail board support

2016-07-12 Thread Stefan Roese
This patch adds support for the DFI BayTrail BT700 QSeven SoM installed on the DFI Q7X-151 baseboard. The baseboard is equipped with the Nuvoton NCT6102D Super IO chip providing the UART as console. Signed-off-by: Stefan Roese Cc: Simon Glass Cc: Bin Meng --- arch/x86/Kconfig

[U-Boot] [PATCH 2/2] x86: Add theadorable-x86-dfi-bt700 board support

2016-07-12 Thread Stefan Roese
This patch adds support for the BayTrail based theadorable-x86-dfi-bt700 board which uses the DFI BT700 BayTrail Qseven SoM on a custom baseboard. The main difference to the DFI baseboard is, that it isn't equipped with a Super IO chip and uses the internal HS SIO UART (memory mapped PCI based) as

[U-Boot] [PATCH] serial: ns16550: Add support for the BayTrail internal HS UART

2016-07-12 Thread Stefan Roese
To support the BayTrail internal SIO HS UART, the internal UART clock needs to get configured. This patch adds support for this clock configuration which will be done, if a compatible DT node is found. Signed-off-by: Stefan Roese Cc: Simon Glass Cc: Bin Meng --- drivers/serial/ns16550.c | 26 +

[U-Boot] [PATCH] misc: Add simple driver for some Nuvoton NCT6102D devices

2016-07-12 Thread Stefan Roese
This simple driver provides some functions to control some of the integrated devices. The watchdog is enabled per default. This driver adds a function to disable the watchdog. Also the internal legacy UART (io address 0x3f8/0x2f8) is enabled per default. Signed-off-by: Stefan Roese Cc: Bin Meng

[U-Boot] [PATCH v2] driver: spi: fsl-qspi: remove compile Warnings

2016-07-12 Thread Yunhui Cui
From: Yunhui Cui Warnins log: drivers/spi/fsl_qspi.c: In function ‘qspi_ahb_read’: drivers/spi/fsl_qspi.c:400:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] memcpy(rxbuf, (u8 *)(priv->cur_amba_base + priv->sf_addr), len); Signed-off-by: Yunhui Cui --- dr

Re: [U-Boot] [PATCH] warp7: Increase CONFIG_BOOTDELAY

2016-07-12 Thread Peter Robinson
On Tue, Jul 12, 2016 at 11:12 PM, Fabio Estevam wrote: > Hi Breno, > > On Tue, Jul 12, 2016 at 12:55 PM, Breno Lima wrote: >> Increase the boot delay to 3 seconds, because it's more convenient >> to load u-boot from imx_usb_loader tool. >> >> Signed-off-by: Breno Lima > > Yes, this is a better v

Re: [U-Boot] [PATCH v3 4/4] usb: dwc2: invalidate dcache before starting DMA

2016-07-12 Thread Ziyuan Xu
On 2016年07月12日 20:59, Simon Glass wrote: Hi Ziyuan, On 6 July 2016 at 03:34, Ziyuan Xu wrote: From: Xu Ziyuan Invalidate dcache before starting the DMA to ensure coherency. In case there are any dirty lines from the DMA buffer in the cache, subsequent cache-line replacements may corrupt th

Re: [U-Boot] [PATCH v5] rockchip: add option to change method of loading u-boot

2016-07-12 Thread Ziyuan Xu
hi Simon, On 2016年07月12日 21:28, Simon Glass wrote: On 12 July 2016 at 05:09, Ziyuan Xu wrote: From: Xu Ziyuan If we would like to boot from SD card, we have to implement mmc driver in SPL stage, and get a slightly large SPL binary. Rockchip SoC's bootrom code has the ability to load spl and

Re: [U-Boot] [PATCH] warp7: Increase CONFIG_BOOTDELAY

2016-07-12 Thread Fabio Estevam
Hi Breno, On Tue, Jul 12, 2016 at 12:55 PM, Breno Lima wrote: > Increase the boot delay to 3 seconds, because it's more convenient > to load u-boot from imx_usb_loader tool. > > Signed-off-by: Breno Lima Yes, this is a better value for the BOOTDELAY, so: Acked-by: Fabio Estevam __

Re: [U-Boot] [PATCH] arm: start.S: Fix startup of dragonboard410c

2016-07-12 Thread André Przywara
On 12/07/16 21:15, Mateusz Kulikowski wrote: Hi Mateusz, > Commit d73718f3 breaks devices where: > - There is EL2/EL3 firmware and > - U-Boot starts in NS EL1 and > - EL2/EL3 firmware didn't unlocked write-access to CPUECTLR_EL1. > > This patch makes that change opt-out configuration option, > a

Re: [U-Boot] [PATCH 8/8] xtensa: add support for the 'xtfpga' evaluation board

2016-07-12 Thread Simon Glass
Hi Max, On 8 July 2016 at 09:42, Max Filippov wrote: > From: Chris Zankel > > The 'xtfpga' board is actually a set of FPGA evaluation boards that > can be configured to run an Xtensa processor. > > - Avnet Xilinx LX60 > - Avnet Xilinx LX110 > - Avnet Xilinx LX200 > - Xilinx ML605 > - Xilinx

Re: [U-Boot] [PATCH v2 2/4] fdt_support: define stub for fdt_fixup_mtdparts

2016-07-12 Thread Simon Glass
On 12 July 2016 at 15:37, wrote: > From: Christopher Spinrath > > Define an inline stub for fdt_fixup_mtdparts in the case that > CONFIG_FDT_FIXUP_PARTITIONS is not defined. This avoids the need > to guard every call to this function by a proper #ifdef in board > files. > > Signed-off-by: Christ

Re: [U-Boot] [PATCH] dm: mmc: Add the function for getting current device number

2016-07-12 Thread Simon Glass
Hi Jaehoon, On 4 July 2016 at 01:40, Jaehoon Chung wrote: > get_mmc_num can be returned 0. Then if you use the "mmcinfo" command, it > can't print the mmc information. > If get_mmc_num is 0, it means that there is not mmc device. > So it added the get_mmc_curr_num() function for getting current d

Re: [U-Boot] [PATCH v2 08/13] dm: mmc: zynq: Convert zynq to use driver model for MMC

2016-07-12 Thread Simon Glass
Hi Jaehoon, On 6 July 2016 at 00:53, Jaehoon Chung wrote: > Hi Simon, > > On 07/06/2016 08:10 AM, Simon Glass wrote: >> Move zynq to the latest driver model support by enabling CONFIG_DM_MMC, >> CONFIG_DM_MMC_OPS and CONFIG_BLK. >> >> Signed-off-by: Simon Glass >> --- >> >> Changes in v2: None >

Re: [U-Boot] [PATCH 2/8] xtensa: add support for the xtensa processor architecture [2/2]

2016-07-12 Thread Simon Glass
Hi Max, On 8 July 2016 at 09:42, Max Filippov wrote: > From: Chris Zankel > > The Xtensa processor architecture is a configurable, extensible, > and synthesizable 32-bit RISC processor core provided by Tensilica, inc. > > This is the second part of the basic architecture port, adding the > 'arch

[U-Boot] [PATCH] warp7: Increase CONFIG_BOOTDELAY

2016-07-12 Thread Breno Lima
Increase the boot delay to 3 seconds, because it's more convenient to load u-boot from imx_usb_loader tool. Signed-off-by: Breno Lima --- configs/warp7_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/warp7_defconfig b/configs/warp7_defconfig index 102b5b1..d

Re: [U-Boot] [PATCH 6/8] net/ethoc: support private memory configurations

2016-07-12 Thread Simon Glass
Hi, On 8 July 2016 at 09:42, Max Filippov wrote: > From: Chris Zankel > > The 'ethoc' device could also be configured to have a private memory > region instead of having access to the main memory. In that case, > the packets must be copied into (transmit) or out of (receive) that > memory. > > T

Re: [U-Boot] [PATCH 5/8] xtensa: add core information for the de212 processor

2016-07-12 Thread Simon Glass
Hi, On 8 July 2016 at 09:42, Max Filippov wrote: > Signed-off-by: Max Filippov > --- > arch/xtensa/include/asm/arch-de212/core.h| 594 > +++ > arch/xtensa/include/asm/arch-de212/tie-asm.h | 170 > arch/xtensa/include/asm/arch-de212/tie.h | 136 ++ >

Re: [U-Boot] [PATCH 7/8] net/ethoc: don't advertise gigabit on the connected PHY

2016-07-12 Thread Simon Glass
Hi Max, On 8 July 2016 at 09:42, Max Filippov wrote: > Introduce MDIO communication routines. Scan MDIO bus at reset to find > attached PHYs and see if they support gigabit speeds. If they do check > their gigabit control register: if gigabit autonegotiation is enabled > clear it and reset the PH

Re: [U-Boot] [PATCH 4/8] xtensa: add core information for the dc233c processor

2016-07-12 Thread Simon Glass
Hi Max, On 8 July 2016 at 09:42, Max Filippov wrote: > Signed-off-by: Max Filippov > --- Commit message? > arch/xtensa/include/asm/arch-dc233c/core.h| 475 > ++ > arch/xtensa/include/asm/arch-dc233c/tie-asm.h | 193 +++ > arch/xtensa/include/asm/arch-dc233

Re: [U-Boot] [PATCH 3/8] xtensa: add core information for the dc232b processor

2016-07-12 Thread Simon Glass
Hi Max, On 8 July 2016 at 09:42, Max Filippov wrote: > From: Chris Zankel Commit message? > > Signed-off-by: Chris Zankel > Signed-off-by: Max Filippov > --- > arch/xtensa/include/asm/arch-dc232b/core.h| 422 > ++ > arch/xtensa/include/asm/arch-dc232b/tie-asm.h

[U-Boot] U-Boot mkimage does not support option -K,-k

2016-07-12 Thread leo tao
Hello Jagan, I just realize the uboot tool mkimage i have is "mkimage version 2013.10", which does not support "-K,-k" and other options. Thus the command failed to run: $ mkimage –D “${DTC_OPS}” –f rsa.its –K zynq-zed-pubkey.dtb –k mykeys –r rsa_signed.img How can I get the latest mkimage whic

Re: [U-Boot] [PATCH 1/8] xtensa: add support for the xtensa processor architecture [1/2]

2016-07-12 Thread Simon Glass
Hi Max, On 8 July 2016 at 09:41, Max Filippov wrote: > From: Chris Zankel > > The Xtensa processor architecture is a configurable, extensible, > and synthesizable 32-bit RISC processor core provided by Cadence. > > This is the first part of the basic architecture port with changes to > common fi

[U-Boot] [PATCH v2] net: smsc95xx: Use correct get_unaligned functions

2016-07-12 Thread Chris Packham
The __get_unaligned_le* functions may not be declared on all platforms. Instead, get_unaligned_le* should be used. On many platforms both of these are the same function. Signed-off-by: Chris Packham --- Hi Joe, Mark didn't manage to get to this before he went on leave so I've taken it over. Cha

[U-Boot] [PATCH v2 2/4] fdt_support: define stub for fdt_fixup_mtdparts

2016-07-12 Thread christopher.spinrath
From: Christopher Spinrath Define an inline stub for fdt_fixup_mtdparts in the case that CONFIG_FDT_FIXUP_PARTITIONS is not defined. This avoids the need to guard every call to this function by a proper #ifdef in board files. Signed-off-by: Christopher Spinrath --- Notes: Changes since v1:

[U-Boot] [PATCH v2 3/4] ARM: board: cm_fx6: fixup mtd partitions in the fdt

2016-07-12 Thread christopher.spinrath
From: Christopher Spinrath The cm-fx6 module has an on-board st,m25p compatible spi flash chip used for U-Boot (binary & environment). Overwrite the partitions in the device tree by the partition table provided in the mtdparts environment variable, if it is set. This allows to specify a kernel i

[U-Boot] [PATCH v2 4/4] ARM: configs: cm_fx6: add mtd support

2016-07-12 Thread christopher.spinrath
From: Christopher Spinrath The cm-fx6 module has an on-board spi flash chip. Enable mtd support and the mtdparts command. Also define a default partitioning, add it to the default environment, and enable support to overwrite the partitioning defined in a device tree by it. Finally, probe for the

[U-Boot] [PATCH v2 1/4] ARM: configs: cm_fx6: improve default environment

2016-07-12 Thread christopher.spinrath
From: Christopher Spinrath Currently, entire script segments have to be changed in the default environment to change the kernel image location or to append kernel cmdline parameters. In the later case this has to be changed for every possible boot device. Introduce new variables for kernel image

[U-Boot] [PATCH v2 0/4] ARM: imx: enhance support for the cm-fx6 module

2016-07-12 Thread christopher.spinrath
Hi, this is v2 of the series. To address the review comments of v1, v2 has an addtional patch (2/4) touching include/fdt_support.h (thus, I added Simon to the recipients). The original cover letter was (for a discussion cf. [2]): this series aims at enhancing support for the cm-fx6 module. In pa

[U-Boot] [PATCH] arm: start.S: Fix startup of dragonboard410c

2016-07-12 Thread Mateusz Kulikowski
Commit d73718f3 breaks devices where: - There is EL2/EL3 firmware and - U-Boot starts in NS EL1 and - EL2/EL3 firmware didn't unlocked write-access to CPUECTLR_EL1. This patch makes that change opt-out configuration option, and disables it for dragonboard410c. Signed-off-by: Mateusz Kulikowski -

Re: [U-Boot] [PATCH 2/2] ARM: bcm283x: Implement EFI RTS reset_system

2016-07-12 Thread Alexander Graf
On 12.07.16 21:35, Simon Glass wrote: > Hi Alexander, > > > On 5 June 2016 at 15:17, Alexander Graf wrote: >> The rpi has a pretty simple way of resetting the whole system. All it takes >> is to poke a few registers at a well defined location in MMIO space. >> >> This patch adds support for th

Re: [U-Boot] How to support ATF on u-boot

2016-07-12 Thread Simon Glass
+Tom Hi, On 19 June 2016 at 20:59, Kever Yang wrote: > Hi U-boot Maintainers, > > I want to upstream a new SoC named RK3399 from Rockchip which is > AARCH64/ARMv8, we need to support Arm Trust Firmware base on U-boot. > > Right now we are using a miniloader(just like SPL in U-boot) to lo

Re: [U-Boot] [PATCH 2/2] ARM: bcm283x: Implement EFI RTS reset_system

2016-07-12 Thread Simon Glass
Hi Alexander, On 5 June 2016 at 15:17, Alexander Graf wrote: > The rpi has a pretty simple way of resetting the whole system. All it takes > is to poke a few registers at a well defined location in MMIO space. > > This patch adds support for the EFI loader implementation to allow an OS to > rese

Re: [U-Boot] [PATCH] dragonboard410c: adding missing default addr for script and pxe boot

2016-07-12 Thread Mateusz Kulikowski
On 03.07.2016 19:16, Ricardo Salveti wrote: > Cc: Mateusz Kulikowski > Signed-off-by: Ricardo Salveti > --- > include/configs/dragonboard410c.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/include/configs/dragonboard410c.h > b/include/configs/dragonboard410c.h > index 74a827d..1d

Re: [U-Boot] [PATCH] dragonboard410c: prefer sdcard boot over emmc

2016-07-12 Thread Mateusz Kulikowski
On 03.07.2016 18:59, Ricardo Salveti wrote: > Make the external devices the preferred ones when booting the system > (usb is already the first option). This allows users to easily boot > custom distributions without requiring them to reflash/customize u-boot. > > Cc: Mateusz Kulikowski > Signed-o

[U-Boot] [PATCH v5 25/26] igep00x0: generate default mtdparts according NAND chip used

2016-07-12 Thread Ladislav Michl
Signed-off-by: Ladislav Michl --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None board/isee/igep00x0/igep00x0.c | 18 ++ include/configs/omap3_igep00x0.h | 1 + 2 files changed, 19 insertions(+) diff --git a/board/isee/igep00x0/igep00x0.c b/b

[U-Boot] [PATCH v5 26/26] igep00x0: Falcon mode

2016-07-12 Thread Ladislav Michl
Implement spl_start_uboot to let Falcon mode work. Signed-off-by: Ladislav Michl Reviewed-by: Heiko Schocher Acked-by: Enric Balletbo i Serra --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None board/isee/igep00x0/igep00x0.c | 12 1 file changed,

[U-Boot] [PATCH v5 24/26] igep00x0: UBIize

2016-07-12 Thread Ladislav Michl
Convert IGEP board to use UBI volumes for U-Boot, its environment and kernel. With exception of first four sectors read by SoC boot ROM whole (One)NAND is UBI managed. Also merge NAND and OneNAND defconfigs as now one binary can serve both flashes. As code is too big now, drop CONFIG_SPL_EXT_SUPPOR

[U-Boot] [PATCH v5 23/26] igep00x0: runtime flash detection

2016-07-12 Thread Ladislav Michl
Signed-off-by: Ladislav Michl --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None board/isee/igep00x0/igep00x0.c | 71 +++--- 1 file changed, 53 insertions(+), 18 deletions(-) diff --git a/board/isee/igep00x0/igep00x0.c b/boar

[U-Boot] [PATCH v5 21/26] igep00x0: remove useless setup_net_chip declaration

2016-07-12 Thread Ladislav Michl
Signed-off-by: Ladislav Michl --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None board/isee/igep00x0/igep00x0.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/board/isee/igep00x0/igep00x0.h b/board/isee/igep00x0/igep00x0.h index e47ee66..5698efa 100644 ---

[U-Boot] [PATCH v5 20/26] igep00x0: reorder lan9221 code to remove ifdefs

2016-07-12 Thread Ladislav Michl
Signed-off-by: Ladislav Michl --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None board/isee/igep00x0/igep00x0.c | 41 + 1 file changed, 17 insertions(+), 24 deletions(-) diff --git a/board/isee/igep00x0/igep00x0.c b/board

[U-Boot] [PATCH v5 22/26] igep00x0: remove unused empty function omap_rev_string()

2016-07-12 Thread Ladislav Michl
Signed-off-by: Ladislav Michl --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None board/isee/igep00x0/igep00x0.c | 8 1 file changed, 8 deletions(-) diff --git a/board/isee/igep00x0/igep00x0.c b/board/isee/igep00x0/igep00x0.c index 4baaee5..5dfb7d2 1006

[U-Boot] [PATCH v5 17/26] cmd: mtdparts: use defaults by default

2016-07-12 Thread Ladislav Michl
Boards which are defining default mtdparts often need them early in boot process (to load environment from UBI volume, for example). This is currently solved by adding mtdparts and mtdids variable definitions also to default environment. With this change, default partitions are used by default unle

[U-Boot] [PATCH v5 18/26] cmd: mtdparts: support runtime generated mtdparts

2016-07-12 Thread Ladislav Michl
Some CPUs contains boot ROM code capable reading first few blocks (where SPL resides) of NAND flash and executing it. It is wise to create separate partition here for SPL. As block size depends on NAND chip used, we could either use worst case (biggest) partition size or base its size on actual blo

[U-Boot] [PATCH v5 19/26] igep00x0: move sysinfo into C file

2016-07-12 Thread Ladislav Michl
Signed-off-by: Ladislav Michl --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None board/isee/igep00x0/igep00x0.c | 18 ++ board/isee/igep00x0/igep00x0.h | 18 -- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/boar

[U-Boot] [PATCH v5 14/26] cmd: mtdparts: fix mtdparts variable presence confusion in mtdparts_init

2016-07-12 Thread Ladislav Michl
A private buffer is used to read mtdparts variable from non-relocated environment. A pointer to that buffer is returned unconditionally, confusing later test for variable presence in the environment. Fix it by returning NULL when getenv_f fails. Signed-off-by: Ladislav Michl --- Changes in v5: N

[U-Boot] [PATCH v5 16/26] cmd: mtdparts: consolidate mtdparts reading from env

2016-07-12 Thread Ladislav Michl
Signed-off-by: Ladislav Michl --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None cmd/mtdparts.c | 42 -- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/cmd/mtdparts.c b/cmd/mtdparts.c index 995cb87..7860ed

[U-Boot] [PATCH v5 15/26] cmd: mtdparts: fix null pointer dereference in parse_mtdparts

2016-07-12 Thread Ladislav Michl
In case there is no mtdparts variable in relocated environment, NULL is assigned to p, which is later fed to strncpy. Also function parameter mtdparts is completely ignored, so use it in case mtdparts variable is not found in environment. This parameter is checked not to be NULL in caller. Signed-

[U-Boot] [PATCH v5 12/26] mtd: OneNAND: allow board init function fail

2016-07-12 Thread Ladislav Michl
Signed-off-by: Ladislav Michl --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None board/micronas/vct/ebi_onenand.c | 4 +++- board/samsung/goni/onenand.c | 4 +++- board/samsung/smdkc100/onenand.c | 4 +++- board/samsung/universal_c210/on

[U-Boot] [PATCH v5 13/26] mtd: OneNAND: initialize mtd->writebufsize to let UBI work

2016-07-12 Thread Ladislav Michl
io_init checks this value and fails with "bad write buffer size 0 for 2048 min. I/O unit" Signed-off-by: Ladislav Michl --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None drivers/mtd/onenand/onenand_base.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dri

[U-Boot] [PATCH v5 11/26] mtd: OneNAND: add timeout to wait ready loops

2016-07-12 Thread Ladislav Michl
Add timeout to onenand_wait ready loop as it hangs here indefinitely when chip not present. Once there, do the same for onenand_bbt_wait as well (note: recent Linux driver code does the same) Signed-off-by: Ladislav Michl --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in

[U-Boot] [PATCH v5 09/26] armv7: armv7: introduce set_gpmc_cs0

2016-07-12 Thread Ladislav Michl
Allow boards to runtime detect flash type. Signed-off-by: Ladislav Michl --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/cpu/armv7/omap-common/mem-common.c | 148 +--- arch/arm/include/asm/arch-omap3/sys_proto.h | 1 + incl

[U-Boot] [PATCH v5 10/26] armv7: simplify identify_nand_chip

2016-07-12 Thread Ladislav Michl
Use newly introduced function Signed-off-by: Ladislav Michl --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/cpu/armv7/omap3/spl_id_nand.c | 35 +++--- 1 file changed, 11 insertions(+), 24 deletions(-) diff --git a/arch/a

[U-Boot] [PATCH v5 08/26] armv7: make gpmc_cfg const

2016-07-12 Thread Ladislav Michl
Signed-off-by: Ladislav Michl --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/cpu/armv7/omap-common/mem-common.c | 8 +++- arch/arm/include/asm/arch-omap3/sys_proto.h | 4 ++-- drivers/mtd/nand/omap_gpmc.c| 3 ++- include/linux/mt

[U-Boot] [PATCH v5 07/26] armv7: add reset timeout to identify_nand_chip

2016-07-12 Thread Ladislav Michl
identify_nand_chip hangs forever in loop when NAND is not present. As IGEPv2 comes either with NAND or OneNAND flash, add reset timeout to let function fail gracefully allowing caller to know NAND is not present. On NAND equipped board, reset succeeds on first read, so 1000 loops seems to be safe t

[U-Boot] [PATCH v5 05/26] spl: support loading from UBI volumes

2016-07-12 Thread Ladislav Michl
Add support for loading from UBI volumes on the top of NAND and OneNAND. Signed-off-by: Ladislav Michl Reviewed-by: Heiko Schocher --- Changes in v5: - dual license GPL/BSD Changes in v4: None Changes in v3: None Changes in v2: None common/spl/Makefile | 3 ++ common/spl/spl.c | 6 ++

[U-Boot] [PATCH v5 02/26] nand_spl_simple: Add a simple NAND read function

2016-07-12 Thread Ladislav Michl
From: Thomas Gleixner To support UBI in SPL we need a simple NAND read function. Add one to nand_spl_simple and keep it as simple as it goes. Signed-off-by: Thomas Gleixner Signed-off-by: Ladislav Michl Acked-by: Scott Wood Reviewed-by: Tom Rini Reviewed-by: Heiko Schocher --- Changes in

[U-Boot] [PATCH v5 06/26] spl: zImage support in Falcon mode

2016-07-12 Thread Ladislav Michl
Other payload than uImage is currently considered to be raw U-Boot image. Check also for zImage in Falcon mode. Signed-off-by: Ladislav Michl Reviewed-by: Heiko Schocher --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/lib/Makefile | 2 ++ arch/arm

[U-Boot] [PATCH v5 00/26] spl: Lightweight UBI and UBI fastmap support

2016-07-12 Thread Ladislav Michl
Core of this patch serie is based on Thomas's patchset: https://patchwork.ozlabs.org/patch/367305/ https://patchwork.ozlabs.org/patch/367306/ This serie contains also changes needed to let single binary running on IGEPv2 board equipped either with NAND or OneNAND flash memory: igep0020_nand_defcon

[U-Boot] [PATCH v5 03/26] onenand_spl_simple: Add a simple OneNAND read function

2016-07-12 Thread Ladislav Michl
Signed-off-by: Ladislav Michl --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None drivers/mtd/onenand/onenand_spl.c | 48 +++ include/onenand_uboot.h | 1 + 2 files changed, 49 insertions(+) diff --git a/drivers/mtd

[U-Boot] [PATCH v5 04/26] spl: Lightweight UBI and UBI fastmap support

2016-07-12 Thread Ladislav Michl
From: Thomas Gleixner Booting a payload out of NAND FLASH from the SPL is a crux today, as it requires hard partioned FLASH. Not a brilliant idea with the reliability of todays NAND FLASH chips. The upstream UBI + UBI fastmap implementation which is about to brought to u-boot is too heavy weight

[U-Boot] [PATCH v5 01/26] mtd: Sort subsystem directories aplhabeticaly in Makefile

2016-07-12 Thread Ladislav Michl
Signed-off-by: Ladislav Michl Reviewed-by: Tom Rini Reviewed-by: Heiko Schocher --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None drivers/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/Makefile b/drivers/Makefile inde

[U-Boot] [U-boot] Add Memset and Memcpy support to standalone Application

2016-07-12 Thread Amit Mahadik
Hi, I have a Cortex-A9 processor based development board with me. I have run the standalone Hello World Application successfully. I want to add support for memcpy and memset functions so I have modified the hello_world code and written basic implementations of memcpy and memset functions.

[U-Boot] EL3 to EL1 for u-boot-2016.05

2016-07-12 Thread wilson002
The linux kernel runs under EL1 model for MMU(msr ttbr0_el1, x25/msr ttbr1_el1, x26). But uboot woks at EL3. How to switch from EL3 to EL1 inside UBOOT for linux kernel loading? -- View this message in context: http://u-boot.10912.n7.nabble.com/EL3-to-EL1-for-u-boot-2016-05-tp260647.html

Re: [U-Boot] [PATCH 4/6] efi_loader: Improve .dtb search for arm64

2016-07-12 Thread Tom Rini
On Tue, Jul 12, 2016 at 05:59:58PM +0200, Andreas Färber wrote: > Am 12.07.2016 um 16:50 schrieb Tom Rini: > > On Tue, Jul 12, 2016 at 06:21:45AM +0200, Andreas Färber wrote: > > > >> On arm64 Linux device trees are organized by SoC vendor. Therefore we > >> need to search the vendor subdirectory

Re: [U-Boot] [RFC PATCH 3/7] env: Introduce "export" operation and (access flag) restriction

2016-07-12 Thread Bernhard Nortmann
Am 11.07.2016 um 20:14 schrieb Bernhard Nortmann: This patch introduces a new "export" environment operation (env_op_export) and the corresponding access flag ENV_FLAGS_VARACCESS_PREVENT_EXPORT; so that env_flags_validate() may now check requests to export specific variables. In turn, hexport_r(

Re: [U-Boot] Please pull u-boot-x86

2016-07-12 Thread Tom Rini
On Tue, Jul 12, 2016 at 02:09:06PM +0800, Bin Meng wrote: > Hi Tom, > > The following changes since commit 19ce924ff914f315dc2fdf79f357825c513aed6e: > > Prepare v2016.07 (2016-07-11 15:01:01 -0400) > > are available in the git repository at: > > git://git.denx.de/u-boot-x86.git master > >

Re: [U-Boot] Pull request: u-boot-spi/master

2016-07-12 Thread Tom Rini
On Sat, Jul 09, 2016 at 09:00:16PM +0530, Jagan Teki wrote: > Hi Tom, > > Please take this series. > > thanks! > Jagan. > > The following changes since commit e8009beff6d5c55c1bf1ae8184791f167e6378b0: > > Merge git://git.denx.de/u-boot-arc (2016-07-04 11:46:21 -0400) > > are available in th

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

2016-07-12 Thread Tom Rini
On Mon, Jul 11, 2016 at 04:08:46PM -0600, Simon Glass wrote: > Hi Tom, > > This includes the MMC block-device stuff (which needs lots of testing > time), cleaning up some fdtdec COMPAT strings and some patman improvements. > > The following changes since commit 19ce924ff914f315dc2fdf79f357825c51

Re: [U-Boot] net: rtl8169: Fix return value for rtl_send_common

2016-07-12 Thread Joe Hershberger
Hi Oleksandr, https://patchwork.ozlabs.org/patch/643462/ was applied to u-boot-net.git. Thanks! -Joe ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] net: designware: Make driver independent from DM_GPIO again

2016-07-12 Thread Joe Hershberger
Hi Alexey, https://patchwork.ozlabs.org/patch/640922/ was applied to u-boot-net.git. Thanks! -Joe ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] driver: net: phylib: add support for aquantia AQR106/107 PHY

2016-07-12 Thread Joe Hershberger
Hi Qianyu, https://patchwork.ozlabs.org/patch/642927/ was applied to u-boot-net.git. Thanks! -Joe ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] net: Fix incorrect RPC packets on 64-bit systems

2016-07-12 Thread Joe Hershberger
Hi Ralf, https://patchwork.ozlabs.org/patch/643461/ was applied to u-boot-net.git. Thanks! -Joe ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] common: Always include errno.h in common.h

2016-07-12 Thread Joe Hershberger
Hi Joe, https://patchwork.ozlabs.org/patch/605766/ was applied to u-boot-net.git. Thanks! -Joe ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] configs: da850evm: enable bootz command

2016-07-12 Thread Kevin Hilman
Sekhar Nori writes: > Enable bootz command on Texas Instruments DA850 EVM > board. This helps it boot zImage with device-tree > blob passed. > > Signed-off-by: Sekhar Nori Tested-by: Kevin Hilman Thanks! This was the only change I needed to use the latest mainline u-boot on my da850evm. Kev

Re: [U-Boot] (no subject)

2016-07-12 Thread Joe Hershberger
Hi , https://patchwork.ozlabs.org/patch/19c9dda/ was applied to u-boot-net.git. Thanks! -Joe ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] (no subject)

2016-07-12 Thread Joe Hershberger
Hi , https://patchwork.ozlabs.org/patch/66d027e/ was applied to u-boot-net.git. Thanks! -Joe ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] (no subject)

2016-07-12 Thread Joe Hershberger
Hi , https://patchwork.ozlabs.org/patch/e4ead4a/ was applied to u-boot-net.git. Thanks! -Joe ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] (no subject)

2016-07-12 Thread Joe Hershberger
Hi , https://patchwork.ozlabs.org/patch/4c64c4d/ was applied to u-boot-net.git. Thanks! -Joe ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] (no subject)

2016-07-12 Thread Joe Hershberger
Hi , https://patchwork.ozlabs.org/patch/2307ea4/ was applied to u-boot-net.git. Thanks! -Joe ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH v2 07/22] clock-uclass: allow disabling a peripheral clock

2016-07-12 Thread Stephen Warren
On 07/12/2016 10:02 AM, Simon Glass wrote: +Stephen Hi Benjamin, On 20 June 2016 at 12:26, Benjamin Tietz wrote: From: Benjamin Tietz Currently, clocks can be enabled, only. To be feature-complete - and allow a bit of power-saving in applications - disabling a clock should be possible, too.

Re: [U-Boot] [PATCH 4/6] efi_loader: Improve .dtb search for arm64

2016-07-12 Thread Stephen Warren
On 07/12/2016 01:29 AM, Alexander Graf wrote: On 12.07.16 06:21, Andreas Färber wrote: On arm64 Linux device trees are organized by SoC vendor. Therefore we need to search the vendor subdirectory as well. Since the SoC vendor may be different from ${vendor}, introduce a new ${soc_vendor}. If

Re: [U-Boot] [PATCH v2 07/22] clock-uclass: allow disabling a peripheral clock

2016-07-12 Thread Simon Glass
+Stephen Hi Benjamin, On 20 June 2016 at 12:26, Benjamin Tietz wrote: > From: Benjamin Tietz > > Currently, clocks can be enabled, only. To be feature-complete - and allow > a bit of power-saving in applications - disabling a clock should be > possible, too. > > This extend the API of the DM cl

Re: [U-Boot] Avoiding overwriting FDT from FIT image

2016-07-12 Thread Simon Glass
+Masahiro On 21 June 2016 at 17:30, Chris Packham wrote: > Hi, > > We have several boards making use of FIT images for the kernel/initrd/fdt. > > With v2015.04 we can successfully boot our application image. With > v2016.05 we run into a problem where the FDT is overwritten when the > ramdisk is

Re: [U-Boot] [PATCH 4/6] efi_loader: Improve .dtb search for arm64

2016-07-12 Thread Andreas Färber
Am 12.07.2016 um 16:50 schrieb Tom Rini: > On Tue, Jul 12, 2016 at 06:21:45AM +0200, Andreas Färber wrote: > >> On arm64 Linux device trees are organized by SoC vendor. Therefore we >> need to search the vendor subdirectory as well. >> >> Since the SoC vendor may be different from ${vendor}, intro

Re: [U-Boot] [PATCH] driver: spi: fsl-qspi: remove compile Warnings

2016-07-12 Thread york sun
On 07/11/2016 09:08 PM, Yunhui Cui wrote: > From: Yunhui Cui > > Warnins log: > drivers/spi/fsl_qspi.c: In function ‘qspi_ahb_read’: > drivers/spi/fsl_qspi.c:400:16: warning: cast to pointer from integer of > different size [-Wint-to-pointer-cast] >memcpy(rxbuf, (u8 *)(priv->cur_amba_base + p

Re: [U-Boot] [PATCH v3] driver: spi: fsl-qspi: disable AHB buffer prefetch

2016-07-12 Thread york sun
On 07/11/2016 08:00 PM, Yunhui Cui wrote: > From: Yunhui Cui > > Errata: A-009282: QuadSPI data pre-fetch can result in incorrect data > We need this errata workaround when CONFIG_SYS_FSL_QSPI_AHB is enabled. > > Signed-off-by: Yunhui Cui > --- > drivers/spi/fsl_qspi.c | 12 +++- > 1 f

Re: [U-Boot] [PATCH 4/6] efi_loader: Improve .dtb search for arm64

2016-07-12 Thread Tom Rini
On Tue, Jul 12, 2016 at 06:21:45AM +0200, Andreas Färber wrote: > On arm64 Linux device trees are organized by SoC vendor. Therefore we > need to search the vendor subdirectory as well. > > Since the SoC vendor may be different from ${vendor}, introduce a new > ${soc_vendor}. If this is not set,

Re: [U-Boot] [PATCH 6/6] efi_loader: Display which .dtb we found

2016-07-12 Thread Andreas Färber
Am 12.07.2016 um 16:25 schrieb Alexander Graf: > On 12.07.16 14:45, Andreas Färber wrote: >> Am 12.07.2016 um 09:30 schrieb Alexander Graf: >>> On 12.07.16 06:21, Andreas Färber wrote: We do so for the EFI binary already and it aids debugging. Cc: Alexander Graf Signed-off-by:

Re: [U-Boot] [PATCH 6/6] efi_loader: Display which .dtb we found

2016-07-12 Thread Alexander Graf
On 12.07.16 14:45, Andreas Färber wrote: > Am 12.07.2016 um 09:30 schrieb Alexander Graf: >> On 12.07.16 06:21, Andreas Färber wrote: >>> We do so for the EFI binary already and it aids debugging. >>> >>> Cc: Alexander Graf >>> Signed-off-by: Andreas Färber >>> --- >>> include/config_distro_bo

Re: [U-Boot] Support for GPIO in U-boot for Intel Edison

2016-07-12 Thread Simon Glass
+Bin Hi, On 10 June 2016 at 17:09, SANRIO ALVARES wrote: > Hi, > Is there any support for GPIO in U-boot for Intel Edison Boards? Mainline U-Boot does not support Edison yet. It is so far a downstream port. Hopefully it will make it to mainline soon. Regards, Simon

Re: [U-Boot] [PATCH 4/6] efi_loader: Improve .dtb search for arm64

2016-07-12 Thread Andreas Färber
Am 12.07.2016 um 14:38 schrieb Andreas Färber: > Am 12.07.2016 um 09:29 schrieb Alexander Graf: >> On 12.07.16 06:21, Andreas Färber wrote: >>> On arm64 Linux device trees are organized by SoC vendor. Therefore we >>> need to search the vendor subdirectory as well. >>> >>> Since the SoC vendor may

Re: [U-Boot] [PATCH v5] rockchip: add option to change method of loading u-boot

2016-07-12 Thread Simon Glass
On 12 July 2016 at 05:09, Ziyuan Xu wrote: > From: Xu Ziyuan > > If we would like to boot from SD card, we have to implement mmc driver > in SPL stage, and get a slightly large SPL binary. Rockchip SoC's > bootrom code has the ability to load spl and u-boot, then boot. > > If CONFIG_ROCKCHIP_SPL_

Re: [U-Boot] [PATCH] pwm: add MACRO to limit some code which only for rk3288

2016-07-12 Thread Simon Glass
Hi Kever, On 11 July 2016 at 20:45, Kever Yang wrote: > Hi Simon, > > CC Doug for this topic. > > > On 07/12/2016 07:54 AM, Simon Glass wrote: >> >> Hi Kever, >> >> On 11 July 2016 at 00:58, Kever Yang wrote: >>> >>> Hi Simon, >>> >>> On 07/09/2016 10:39 PM, Simon Glass wrote: Hi Kever

  1   2   >