Re: [U-Boot] [PATCH 1/5] usb: ehci: mxs: Add board-specific callbacks

2014-09-29 Thread Stefano Babic
Hi Marek, On 28/04/2014 03:38, Marek Vasut wrote: > Add board-specific callbacks for enabling/disabling port power > into the MXS EHCI controller driver. This is in-line with the > names of callbacks on other systems. > > Signed-off-by: Marek Vasut > Cc: Stefano Babic > --- Series applied to u

Re: [U-Boot] [PATCH 4/7] ARM: sun6i: Add clock support

2014-09-29 Thread Olliver Schinagl
On 28-09-14 17:42, Hans de Goede wrote: Hi, On 09/28/2014 05:37 PM, Ian Campbell wrote: On Sun, 2014-09-28 at 17:23 +0200, Hans de Goede wrote: If you take a closer look at the code you will see not all 3 writes are the same: /* Set PLL ldo voltage without this PLL6 does not work pr

Re: [U-Boot] [PATCH v2 00/40] ARM: tegra: Add PCIe support

2014-09-29 Thread Thierry Reding
On Sun, Sep 28, 2014 at 04:48:47PM -0600, Simon Glass wrote: > Hi Thierry, > > On 26 August 2014 09:33, Thierry Reding wrote: > > > From: Thierry Reding > > > > This series adds PCIe support for Tegra20, Tegra30 and Tegra124. The size > > is > > mostly due to the large number of infrastructure

Re: [U-Boot] [PATCH v3 3/5] imx: mx6dlarm2: Add support for i.MX6DL arm2 DDR3 board

2014-09-29 Thread Stefano Babic
On 09/09/2014 04:16, Ye.Li wrote: > This patch adds the i.MX6DL arm2 board support. The i.MX6DL ARM2 > shared the same board with i.MX6Q ARM2 board since the i.MX6DL is > pin-pin compatible with i.MX6Q. > > The patch also support the DDR 32-BIT mode option. Please define > CONFIG_DDR_32BIT in the

Re: [U-Boot] [PATCH v3 2/5] imx: mx6qarm2: Change the mmcroot and mmcpart env value

2014-09-29 Thread Stefano Babic
On 09/09/2014 04:16, Ye.Li wrote: > 1. Set the image load partition to the first FAT partition. > 2. Set the kernel rootfs partition to the second partition. > > Signed-off-by: Ye.Li > --- Applied to u-boot-imx, thanks ! Best regards, Stefano Babic -- ===

Re: [U-Boot] [PATCH v3 1/5] imx: mx6qarm2: Add the kernel FDT Loading support

2014-09-29 Thread Stefano Babic
On 09/09/2014 04:16, Ye.Li wrote: > To support loading FDT file for kernel, add the fdt address, > file and loading script to arm2 board default environment. > > Signed-off-by: Ye.Li > --- Applied to u-boot-imx, thanks ! Best regards, Stefano Babic -- ===

Re: [U-Boot] [PATCH v3 4/5] imx: mx6: Checking PLL2 PFD0 and PFD2 for periph_clk before PFD reset

2014-09-29 Thread Stefano Babic
On 09/09/2014 04:17, Ye.Li wrote: > Checking the pre_periph_clk_sel and pre_periph2_clk of CCM CBCMR > register, if the PLL2 PFD0 or PLL2 PFD2 is used for the clock source, > do not reset this PFD to avoid system hang. Customers may set this > in DDR script or use BT_FREQ to select low freq boot. >

Re: [U-Boot] [PATCH v3 5/5] imx: mx6dlarm2: Add support for i.MX6Q/DL arm2 LPDDR2 boards

2014-09-29 Thread Stefano Babic
On 09/09/2014 04:17, Ye.Li wrote: > Update the ddr scripts for LPDDR2 and add two build configs for LPDDR2 > arm2 board. Since the LPDDR2 arm2 board has different DDR size, use > CONFIG_DDR_MB in defconfig to replace the PHYS_SDRAM_SIZE. > > Signed-off-by: Ye.Li > --- Applied to u-boot-imx, than

Re: [U-Boot] [PATCH v3 3/5] imx: mx6dlarm2: Add support for i.MX6DL arm2 DDR3 board

2014-09-29 Thread Stefano Babic
On 29/09/2014 10:14, Stefano Babic wrote: > On 09/09/2014 04:16, Ye.Li wrote: >> This patch adds the i.MX6DL arm2 board support. The i.MX6DL ARM2 >> shared the same board with i.MX6Q ARM2 board since the i.MX6DL is >> pin-pin compatible with i.MX6Q. >> >> The patch also support the DDR 32-BIT mode

Re: [U-Boot] [PATCH] usb: ehci-mx6: Rename the USB register base address

2014-09-29 Thread Stefano Babic
On 15/09/2014 11:23, Ye.Li wrote: > The mx6sl/mx6sx has 2 OTG and 1 host. So they have name > "USBO2H_USB_BASE_ADDR" in imx-regs.h. The driver hard codes > the USB base address name to "USBOH3", which causes the driver > failed to build for mx6sl/mx6sx. > > This patch uniform the address name to "

Re: [U-Boot] [PATCH] imx6: add Bachmann OT1200 board v2

2014-09-29 Thread Stefano Babic
Hi Christian, On 22/09/2014 13:57, Christian Gmeiner wrote: > This patch adds support for the OT1200 series of devices. > > Following components are used in u-boot: > + ethernet > + i2c > + emmc > + gpio > > For more details see README. > > Changes v1 > v2 Can you also version your patches in

[U-Boot] Generic Board Progress

2014-09-29 Thread Masahiro Yamada
Hi. Analysis for the latest commit (commit be9f643ae6aa9044c60fe80e3a2c10be8371c692). [1] The number of converted boards (based on the number of *_defconfig): 367 / 1194 = 30.7 % [2] The number of architectures with generic board support: 8 / 15 = 53.3 % Done: ARC, ARM, Blackfin, MIPS

Re: [U-Boot] [linux-sunxi] [PATCH 5/7] sun4i: Add support for a number of new sun4i boards

2014-09-29 Thread Arnd Gronenberg
On 09/29/2014 12:09 AM, Siarhei Siamashka wrote: On Sun, 28 Sep 2014 21:34:57 +0200 Arnd Gronenberg wrote: On 09/28/2014 05:58 PM, Hans de Goede wrote: [...] On 09/18/2014 06:07 PM, Siarhei Siamashka wrote: Which revision of A10-OLinuXino-LIME do you have? Revision A is known to have troub

Re: [U-Boot] [PATCH 0/3] usb: dwc2: Add and enable DWC2 driver

2014-09-29 Thread Lukasz Majewski
Hi Marek, > This series adds reworked DWC2 USB driver based on work from > Oleksandr. This series also enables that driver on Altera SoCFPGA > Cyclone V SoC and RPi B+ . Do you have any plans to provide support not only for the host but also for device driver? Why I'm asking? I ask because Samsu

Re: [U-Boot] [PATCH 1/4] arm: m28evk: Test if bootscript exists before loading it

2014-09-29 Thread Stefano Babic
On 23/09/2014 13:18, Marek Vasut wrote: > Make sure the boot.scr exists on the card before loading it > from the card to avoid annoying message on the console. > > Signed-off-by: Marek Vasut > Cc: Stefano Babic > --- Applied to u-boot-imx, thanks ! Best regards, Stefano Babic -- ==

Re: [U-Boot] [PATCH 2/4] arm: m53evk: Test if bootscript exists before loading it

2014-09-29 Thread Stefano Babic
On 23/09/2014 13:18, Marek Vasut wrote: > Make sure the boot.scr exists on the card before loading it > from the card to avoid annoying message on the console. > > Signed-off-by: Marek Vasut > Cc: Stefano Babic > --- Applied to u-boot-imx, thanks ! Best regards, Stefano Babic -- ==

Re: [U-Boot] [PATCH 4/4] arm: m53evk: Enable FS_GENERIC

2014-09-29 Thread Stefano Babic
On 23/09/2014 13:18, Marek Vasut wrote: > Enable the CONFIG_CMD_FS_GENERIC on m53evk to avoid per-fs specific commands > and tweak the environment to cater for this new option. > > Signed-off-by: Marek Vasut > Cc: Stefano Babic > --- Applied to u-boot-imx, thanks ! Best regards, Stefano Babic

Re: [U-Boot] [PATCH 3/4] arm: m28evk: Enable FS_GENERIC

2014-09-29 Thread Stefano Babic
On 23/09/2014 13:18, Marek Vasut wrote: > Enable the CONFIG_CMD_FS_GENERIC on m28evk to avoid per-fs specific commands > and tweak the environment to cater for this new option. > > Signed-off-by: Marek Vasut > Cc: Stefano Babic > --- Applied to u-boot-imx, thanks ! Best regards, Stefano Babic

Re: [U-Boot] [PATCH v2] mvebu_mmc: Driver addition

2014-09-29 Thread Mario Schuknecht
Is there a chance that this patch [1] will be applied? Mario [1] http://lists.denx.de/pipermail/u-boot/2014-August/187109.html 2014-08-25 15:28 GMT+02:00 Stefan Roese : > On 25.08.2014 14:12, Mario Schuknecht wrote: > >> In function mvebu_mmc_write notice command timeout. It is possible that a

[U-Boot] [PATCH] arndale: Use config_distro_bootcmd.h

2014-09-29 Thread Ian Campbell
From: Ian Campbell Signed-off-by: Ian Campbell --- include/configs/arndale.h | 38 +- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/include/configs/arndale.h b/include/configs/arndale.h index db7623d..a6630fd 100644 --- a/include/configs/arnd

Re: [U-Boot] [PATCH] ARNDALE: Enhance arndale config to be more flexible on boot.

2014-09-29 Thread Ian Campbell
Hi Guillaume, On Mon, 2014-09-29 at 08:36 +0200, Guillaume Gardet wrote: I missed this before. You might be interested in http://lists.denx.de/pipermail/u-boot/2014-September/189939.html http://lists.denx.de/pipermail/u-boot/2014-September/190128.html Which I think together have much the same a

Re: [U-Boot] [PATCH 00/51] arm: socfpga: Usability fixes

2014-09-29 Thread Pavel Machek
Hi! > This entire series is the second stab at making SoCFPGA usable with > mainline U-Boot again. There are much fewer bits missing than in the > last series, more cleanup happened and bugs were fixed. This allows > me to use mainline U-Boot on my SoCFPGA systems. You can add my Acked-by: Pave

Re: [U-Boot] [PATCH] ARNDALE: Enhance arndale config to be more flexible on boot.

2014-09-29 Thread Guillaume Gardet
Hi Ian, Le 29/09/2014 12:27, Ian Campbell a écrit : Hi Guillaume, On Mon, 2014-09-29 at 08:36 +0200, Guillaume Gardet wrote: I missed this before. You might be interested in http://lists.denx.de/pipermail/u-boot/2014-September/189939.html http://lists.denx.de/pipermail/u-boot/2014-September/19

Re: [U-Boot] Generic Board Progress

2014-09-29 Thread Michal Simek
Hi Masahiro, On 09/29/2014 10:55 AM, Masahiro Yamada wrote: > Hi. > > > > Analysis for the latest commit > (commit be9f643ae6aa9044c60fe80e3a2c10be8371c692). > > > > [1] The number of converted boards > (based on the number of *_defconfig): > > 367 / 1194 = 30.7 % > > > > [2] The numbe

Re: [U-Boot] [PATCH v2 00/40] ARM: tegra: Add PCIe support

2014-09-29 Thread Simon Glass
Hi Thierry, On 29 September 2014 02:11, Thierry Reding wrote: > On Sun, Sep 28, 2014 at 04:48:47PM -0600, Simon Glass wrote: > > Hi Thierry, > > > > On 26 August 2014 09:33, Thierry Reding > wrote: > > > > > From: Thierry Reding > > > > > > This series adds PCIe support for Tegra20, Tegra30 an

Re: [U-Boot] [PATCH] usb: ci_udc: respect CONFIG_USB_GADGET_DUALSPEED

2014-09-29 Thread Felipe Balbi
On Sun, Sep 28, 2014 at 06:35:14PM -0700, Eric Nelson wrote: > Force full-speed (12 Mbit/s) operation if CONFIG_USB_GADGET_DUALSPEED > is not defined. > > The controller is capable of high-speed (480 Mbit/s) operation, > but some designs may require the use of lower-speed operation. > > Signed-of

Re: [U-Boot] [PATCH] usb: ci_udc: respect CONFIG_USB_GADGET_DUALSPEED

2014-09-29 Thread Marek Vasut
On Monday, September 29, 2014 at 04:01:19 PM, Felipe Balbi wrote: > On Sun, Sep 28, 2014 at 06:35:14PM -0700, Eric Nelson wrote: > > Force full-speed (12 Mbit/s) operation if CONFIG_USB_GADGET_DUALSPEED > > is not defined. > > > > The controller is capable of high-speed (480 Mbit/s) operation, > >

[U-Boot] Git reorganization

2014-09-29 Thread Detlev Zundel
Hi, our last git update on git.denx.de last friday caused some minor problems pushing to repositories created already years ago. We hope to have fixed all the problems that we observered in a manner transparent to all users, but if you still have any problem, be sure to complain loudly to me and

Re: [U-Boot] [PATCH v4 1/3] spi:rewrite the Freescale DSPI driver.

2014-09-29 Thread Simon Glass
Hi, On 25 September 2014 21:22, Chao Fu wrote: > > > > From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass > Sent: 2014年9月20日 0:25 > To: Fu Chao-B44548 > Cc: Albert ARIBAUD; Jagannadha Sutradharudu Teki; Stefano Babic; Jagan Teki; > Jin Zhengxiong-R64188; U-Boot Mailing List

Re: [U-Boot] Congatec Conga-QEVAL board sd-card boot not working

2014-09-29 Thread Tobias Andresen
Hi Alexander, Please enter following commands fot the qmx6: mw.l 0x20D8040 0x2840 mw.l 0x20D8044 0x1000 reset Hope that helps Best regards Tobias ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH v4 1/2] imx: mx6dlarm2: Add support for i.MX6DL arm2 DDR3 board

2014-09-29 Thread Ye . Li
This patch adds the i.MX6DL arm2 board support. The i.MX6DL ARM2 shared the same board with i.MX6Q ARM2 board since the i.MX6DL is pin-pin compatible with i.MX6Q. The patch also support the DDR 32-BIT mode option. Please define CONFIG_DDR_32BIT in the board configure file to enable DDR 32-BIT mode

[U-Boot] [PATCH v4 2/2] imx: mx6dlarm2: Add support for i.MX6Q/DL arm2 LPDDR2 boards

2014-09-29 Thread Ye . Li
Update the ddr scripts for LPDDR2 and add two build configs for LPDDR2 arm2 board. Since the LPDDR2 arm2 board has different DDR size, use CONFIG_DDR_MB in defconfig to replace the PHYS_SDRAM_SIZE. Signed-off-by: Ye.Li --- Changes since v3: - Add maintainer and status information Changes since v

Re: [U-Boot] [PATCH] patman: Check commit_match before stripping leading whitespace

2014-09-29 Thread Scott Wood
On Sun, 2014-09-28 at 12:04 -0600, Simon Glass wrote: > Hi Scott, > > On 25 September 2014 13:30, Scott Wood wrote: > > True commit lines start at column zero. Anything that is indented > > is part of the commit message instead. I noticed this by trying to > > run buildman with commit e3a4facdf

[U-Boot] UBI issues on SAMA5D31 NOR flash

2014-09-29 Thread Andy Pont
Hello, Using the patches from Bo Shen to support the NOR flash on the Atmel SAMA5D31EK hardware platform I am trying to get a UBI root file system within the NOR flash, at offset 0x1000 in the memory map, to work but get errors from the "ubi part" command using U-Boot 2014.04: U-Boot> mtdpart

Re: [U-Boot] [PATCH] powerpc/mpc85xx: Add DSP side awareness for Freescale Heterogeneous SoCs

2014-09-29 Thread York Sun
On 09/12/2014 02:09 AM, Shaveta Leekha wrote: > The code provides framework for heterogeneous multicore chips based on > StarCore > and Power Architecture which are chasis-2 compliant, like B4860 and B4420 > > It will make u-boot recognize all non-ppc cores and peripherals like > SC3900/DSP CPUs,

Re: [U-Boot] [PATCH] powerpc/mpc85xx:Update RESET_VECTOR_ADDRESS for 768KB u-boot size

2014-09-29 Thread York Sun
On 09/28/2014 10:44 PM, Ruchika Gupta wrote: > U-boot binary size has been increased from 512KB to 768KB. > > So update CONFIG_RESET_VECTOR_ADDRESS to reflect the same for > P1010 SPI Flash Secure boot target. > > Signed-off-by: Ruchika Gupta > --- > include/configs/P1010RDB.h | 2 +- > 1 file

Re: [U-Boot] [PATCH] usb: ci_udc: respect CONFIG_USB_GADGET_DUALSPEED

2014-09-29 Thread Eric Nelson
Thanks Marek and Felipe, On 09/29/2014 07:43 AM, Marek Vasut wrote: > On Monday, September 29, 2014 at 04:01:19 PM, Felipe Balbi wrote: >> On Sun, Sep 28, 2014 at 06:35:14PM -0700, Eric Nelson wrote: >>> Force full-speed (12 Mbit/s) operation if CONFIG_USB_GADGET_DUALSPEED >>> is not defined. >>>

Re: [U-Boot] environment expectations of config_distro_bootcmd.h

2014-09-29 Thread Stephen Warren
On 09/28/2014 08:30 AM, Ian Campbell wrote: Is there any documentation as to what environment variables a platform must provide if it uses config_distro_bootcmd.h. ${scriptaddr} seems clear but what about e.g. kernel_addr_r and friends? I suppose the use of the pxe commands has some implicit depe

Re: [U-Boot] environment expectations of config_distro_bootcmd.h

2014-09-29 Thread Otavio Salvador
On Mon, Sep 29, 2014 at 2:17 PM, Stephen Warren wrote: > On 09/28/2014 08:30 AM, Ian Campbell wrote: >> >> Is there any documentation as to what environment variables a platform >> must provide if it uses config_distro_bootcmd.h. ${scriptaddr} seems >> clear but what about e.g. kernel_addr_r and f

Re: [U-Boot] [linux-sunxi] Re: [PATCH v2 10/10] ARM: sun6i: Add Colombus board defconfig

2014-09-29 Thread Hans de Goede
Hi, On 09/28/2014 11:36 PM, Ian Campbell wrote: > On Sun, 2014-09-28 at 20:10 +0200, Hans de Goede wrote: >> On 09/28/2014 06:20 PM, Ian Campbell wrote: >>> On Sun, 2014-09-28 at 17:40 +0200, Hans de Goede wrote: > Before you do that, note that I've just added 2 patches there, which I

Re: [U-Boot] [linux-sunxi] Re: [PATCH] sunxi: Fix gmac not working reliable on the Bananapi

2014-09-29 Thread jonsm...@gmail.com
On Mon, Sep 29, 2014 at 2:16 PM, Karsten Merker wrote: > On Mon, Sep 29, 2014 at 09:13:37AM +0300, Siarhei Siamashka wrote: > >> On Sun, 28 Sep 2014 20:13:21 +0200 >> Hans de Goede wrote: >> >> > In order for the gmac nic to work reliable on the Bananapi, we need to poke >> > these 2 undocumented

[U-Boot] [U-boot] [Patch v2 1/5] net: keystone_net: remove SoC specific emac_regs structure

2014-09-29 Thread Ivan Khoronzhuk
From: Hao Zhang This patch removes K2HK SOC specifc emac_regs structure, it uses soc specific register offset to keep the network driver common across all the Keystone II EVMs. Acked-by: Murali Karicheri Signed-off-by: Hao Zhang Signed-off-by: Ivan Khoronzhuk --- arch/arm/include/asm/arch-ke

[U-Boot] [U-boot] [Patch v2 0/5] keystone2: generalize keystone_net driver usage

2014-09-29 Thread Ivan Khoronzhuk
This series generalize keystone_net driver usage in order to add keystone2 K2E/K2L SoCs support. Based on "[U-boot] [Patch v2] keystone: usb: add support of usb xhci" https://patchwork.ozlabs.org/patch/386506/ v2..v1: net: keystone_net: remove redundant code from keystone_net.c - remove

[U-Boot] [U-boot] [Patch v2 5/5] net: keystone_net: remove redundant code from keystone_net.c

2014-09-29 Thread Ivan Khoronzhuk
Remove unused tx_send_loop variable. Removes duplicated get_link_status() call from the keystone2_eth_send_packet(). The emac_gigabit_enable() is called at opening Ethernet and there is no need to enable it on sending each packet. So remove that call from keystone2_eth_send_packet() as well. The

[U-Boot] [U-boot] [Patch v2 3/5] net: keystone_net: move header file from arch to ti-common

2014-09-29 Thread Ivan Khoronzhuk
The header file for the driver should be in correct place. So move it to "arch/arm/include/asm/ti-common/keystone_net.h" and correct driver's external dependencies. At the same time align and correct some definitions. Acked-by: Murali Karicheri Signed-off-by: Ivan Khoronzhuk --- arch/arm/includ

[U-Boot] [U-boot] [Patch v2 4/5] net: keystone_net: increase MDIO clock frequency

2014-09-29 Thread Ivan Khoronzhuk
From: Vitaly Andrianov With MAC_PHY sgmii configuration, u-boot checks PHY link status before sending each packet. Increasing MDIO frequency increases overall tftp speed. We set it to maximum 2.5MHz. Acked-by: Murali Karicheri Signed-off-by: Vitaly Andrianov Signed-off-by: Ivan Khoronzhuk ---

[U-Boot] [U-boot] [Patch v2 2/5] net: keystone_net: add support for NETCP v1.5

2014-09-29 Thread Ivan Khoronzhuk
Currently the network driver is used only by k2hk evm board. The k2hk SoC contains NETCP v1.0, but Keystone2 SoCs, like k2e contain NETCP v1.5. So driver should be able to work with such kind of NETCP. This commit adds this opportunity. The main difference in masks and some registers, the logic is

[U-Boot] [PATCH v3 0/29] Introduce driver model support for SPI, SPI flash, cros_ec

2014-09-29 Thread Simon Glass
Up until now driver model has not been used for any type of bus. Buses have some unique properties and needs, so we cannot claim that driver model can cover all the common cases unless we have converted a bus over to driver model. SPI is a reasonable choice for this next step. It has a fairly simp

[U-Boot] [PATCH v3 23/29] dm: spi: Add tests

2014-09-29 Thread Simon Glass
These tests use SPI flash (and the sandbox emulation) to operate. Signed-off-by: Simon Glass --- Changes in v3: - Expand SPI tests to cover compatibility functions - Minor renames for clarity Changes in v2: - Create a 'spi.bin' file for the SPI tests test/dm/Makefile | 1 + test/dm/spi.c

[U-Boot] [PATCH v3 01/29] sandbox: dts: Add a SPI device and cros_ec device

2014-09-29 Thread Simon Glass
Add a SPI device which can be used for testing SPI flash features in sandbox. Also add a cros_ec device since with driver model the Chrome OS EC emulation will not otherwise be available. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: - Adjust binding to avoid Linux-specific

[U-Boot] [PATCH v3 13/29] dm: spi: Add soft_spi implementation

2014-09-29 Thread Simon Glass
Add a new implementation of soft_spi that uses device tree to specify the GPIOs. This will replace soft_spi_legacy for boards which use driver model. Signed-off-by: Simon Glass --- Changes in v3: - Word-wrap the first paragraph of the binding Changes in v2: None doc/device-tree-bindings/spi/s

[U-Boot] [PATCH v3 10/29] dm: sandbox: spi: Move to driver model

2014-09-29 Thread Simon Glass
Adjust the sandbox SPI driver to support driver model and move sandbox over to driver model for SPI. Signed-off-by: Simon Glass --- Changes in v3: - Add implementation/comment for the cs_info() method - Remove the child_pre_probe() method which is no longer needed Changes in v2: - Correct sandb

[U-Boot] [PATCH v3 17/29] sf: Tidy up public and private header files

2014-09-29 Thread Simon Glass
Since spi_flash.h is supposed to be the public API for SPI flash, move private things to sf_internal.h. Also tidy up a few comment nits. Signed-off-by: Simon Glass --- Changes in v3: - Add spi.h header to 3 sh boards - Rebase to master Changes in v2: None board/buffalo/lsxl/lsxl.c |

[U-Boot] [PATCH v3 27/29] dm: cros_ec: Add support for driver model

2014-09-29 Thread Simon Glass
Add support for driver model if enabled. This involves minimal changes to the code, mostly just plumbing around the edges. Signed-off-by: Simon Glass --- Changes in v3: - Add a missing tab character Changes in v2: None common/cros_ec.c | 30 ++ drivers/misc/cros_ec.c

[U-Boot] [PATCH v3 03/29] dm: core: Allow parents to pass data to children during probe

2014-09-29 Thread Simon Glass
Buses sometimes want to pass data to their children when they are probed. For example, a SPI bus may want to tell the slave device about the chip select it is connected to. Add a new function to permit the parent data to be supplied to the child. Signed-off-by: Simon Glass --- Changes in v3: -

[U-Boot] [PATCH v3 06/29] dm: sandbox: Add a SPI emulation uclass

2014-09-29 Thread Simon Glass
U-Boot includes a SPI emulation driver already but it is not explicit, and is hidden in the SPI flash code. Conceptually with sandbox's SPI implementation we have a layer which creates SPI bus transitions and a layer which interprets them, currently only for SPI flash. The latter is actually an em

[U-Boot] [PATCH v3 07/29] dm: Remove spi_init() from board_r.c when using driver model

2014-09-29 Thread Simon Glass
Driver model does its own init, so we don't need this. There is still a call in board_f.c but it is only enabled by CONFIG_HARD_SPI. It is easy enough to disable that option when converting boards which use it to driver model. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: -

[U-Boot] [PATCH v3 08/29] dm: Add spi.h header to a few files

2014-09-29 Thread Simon Glass
Some files are using SPI functions but not explitly including the SPI header file. Fix this, since driver model needs it. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: - Add spi.h header to dfu_sf.c common/env_sf.c | 1 + drivers/dfu/dfu_sf.c| 1 + drive

[U-Boot] [PATCH v3 04/29] dm: core: Add a clarifying comment on struct udevice's seq member

2014-09-29 Thread Simon Glass
The sequence number is unique within the uclass, so state this clearly. Signed-off-by: Simon Glass --- Changes in v3: - Add new patch to add a clarifying comment on struct udevice's seq member Changes in v2: None doc/driver-model/README.txt | 4 +++- include/dm/device.h | 3 ++- 2 fil

[U-Boot] [PATCH v3 02/29] dm: core: Add functions for iterating through device children

2014-09-29 Thread Simon Glass
Buses need to iterate through their children in some situations. Add a few functions to make this easy. Signed-off-by: Simon Glass --- Changes in v3: - Add new functions to iterate through device children Changes in v2: None doc/driver-model/README.txt | 3 ++- drivers/core/device.c |

[U-Boot] [PATCH v3 05/29] dm: spi: Add a uclass for SPI

2014-09-29 Thread Simon Glass
Add a uclass which provides access to SPI buses and includes operations required by SPI. For a time driver model will need to co-exist with the legacy SPI interface so some parts of the header file are changed depending on which is in use. The exports are adjusted also since some functions are not

[U-Boot] [PATCH v3 28/29] dm: sandbox: cros_ec: Move sandbox cros_ec to driver module

2014-09-29 Thread Simon Glass
Adjust the sandbox cros_ec emulation driver to work with driver model, and switch over to driver model for sandbox cros_ec. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/misc/cros_ec_sandbox.c | 90 +++--- include/configs/san

[U-Boot] [PATCH v3 18/29] spi: Use error return value in sf_ops

2014-09-29 Thread Simon Glass
Adjust spi_flash_probe_slave() to return an error value instead of a pointer so we get the correct error return. Have the caller allocate memory for spi_flash to simplify error handling, and also so that driver model can use its existing allocated memory. Add a spi.h include in the sf_params file

[U-Boot] [PATCH v3 29/29] dm: exynos: cros_ec: Move cros_ec_spi to driver model

2014-09-29 Thread Simon Glass
Adjust this driver to use driver model and move smdk5420 boards over to use it. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/misc/cros_ec_spi.c | 68 +++-- include/configs/peach-pit.h | 1 + 2 files changed, 60 inserti

[U-Boot] [PATCH v3 09/29] dm: spi: Adjust cmd_spi to work with driver model

2014-09-29 Thread Simon Glass
Driver model uses a different way to find the SPI bus and slave from the numbered devices given on the command line. Adjust the code to suit. We use a generic SPI device, and attach it to the SPI bus before performing the transaction. Signed-off-by: Simon Glass --- Changes in v3: - Use a generi

[U-Boot] [PATCH v3 25/29] dm: tegra: dts: Add aliases for spi on tegra30 boards

2014-09-29 Thread Simon Glass
All boards with a SPI interface have a suitable spi alias except the tegra30 boards. Add these missing aliases. Signed-off-by: Simon Glass --- Changes in v3: - Add new patch to add aliases for spi on tegra30 boards Changes in v2: None arch/arm/dts/tegra20-trimslice.dts | 1 + arch/arm/dts/teg

[U-Boot] [PATCH v3 19/29] dm: sf: Add a uclass for SPI flash

2014-09-29 Thread Simon Glass
Add a driver model uclass for SPI flash which supports the common operations (read, write, erase). Since we must keep support for the non-dm interface, some modification of the spi_flash header is required. CONFIG_DM_SPI_FLASH is used to enable driver model for SPI flash. Signed-off-by: Simon Gla

[U-Boot] [PATCH v3 26/29] dm: tegra: spi: Convert to driver model

2014-09-29 Thread Simon Glass
This converts the Tegra SPI drivers to use driver model. This is tested on: - Tegra20 - trimslice - Tegra30 - beaver - Tegra124 - dalmore (not tested on Tegra124) Signed-off-by: Simon Glass --- Changes in v3: - Add implementation/comment for the cs_info() method - Add new patch to convert Tegr

[U-Boot] [PATCH v3 20/29] dm: Convert spi_flash_probe() and 'sf probe' to use driver model

2014-09-29 Thread Simon Glass
We want the SPI flash probing feature to operate as a standard driver. Add a driver for the basic probing feature used by most boards. This will be activated by device_probe() as with any other driver. The 'sf probe' command currently keeps track of the SPI slave that it last used. This doesn't wo

[U-Boot] [PATCH v3 16/29] exynos: universal_c210: Move to driver model soft_spi

2014-09-29 Thread Simon Glass
Adjust this board to use the driver model soft_spi implementation. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/arm/dts/exynos4210-universal_c210.dts | 13 board/samsung/universal_c210/universal.c | 52 -- include/configs/s5

[U-Boot] [PATCH v3 21/29] dm: sf: sandbox: Convert SPI flash driver to driver model

2014-09-29 Thread Simon Glass
Convert sandbox's spi flash emulation driver to use driver model. Signed-off-by: Simon Glass --- Changes in v3: - Add a few more debug() statements - Use an explicit chip select value instead of reusing device sequence number Changes in v2: None arch/sandbox/include/asm/spi.h | 13 -- arch

[U-Boot] [PATCH v3 11/29] dm: spi: Rename soft_spi.c to soft_spi_legacy.c

2014-09-29 Thread Simon Glass
Reserve the 'normal' name for use by driver model, and rename the old driver so that it is clear that it is for 'legacy' drivers only. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/spi/Makefile | 2 +- drivers/spi/{soft_spi.c => soft_sp

[U-Boot] [PATCH v3 22/29] dm: exynos: config: Use driver model for SPI flash

2014-09-29 Thread Simon Glass
Use driver model for exynos5 board SPI flash. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None include/configs/exynos-common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/exynos-common.h b/include/configs/exynos-common.h index eb6745e..6ba9bb7 1006

[U-Boot] [PATCH v3 14/29] dm: exynos: Convert SPI to driver model

2014-09-29 Thread Simon Glass
Move the exynos SPI driver over to driver model. This removes quite a bit of boilerplate from the driver, although it adds some for driver model. A few device tree additions are needed to make the SPI flash available. Signed-off-by: Simon Glass --- Changes in v3: - Add implementation/comment fo

[U-Boot] [PATCH v3 24/29] dm: sf: Add tests for SPI flash

2014-09-29 Thread Simon Glass
Add a simple test for SPI that uses SPI flash. It operates by creating a SPI flash file and using the 'sf test' command to test that all operations work correctly. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None test/dm/Makefile | 1 + test/dm/sf.c | 43

[U-Boot] [PATCH v3 12/29] dm: spi: Remove SPI_INIT feature

2014-09-29 Thread Simon Glass
This feature provides for init of a single SPI port for the soft SPI feature. It is not really compatible with driver model since it assumes a single SPI port. Also, inserting SPI init into the driver by means of a #define is not very nice. This feature is not used by any active boards, so let's r

[U-Boot] [PATCH v3 15/29] dm: spi: Add documentation on how to convert over SPI drivers

2014-09-29 Thread Simon Glass
This README is intended to help maintainers move their SPI drivers over to driver model. It works through the required steps with an example. Signed-off-by: Simon Glass --- Changes in v3: - Update for the new cs_info() method Changes in v2: - Fix typos reported by Jagannadha Sutradharudu Teki -

[U-Boot] [U-boot] [Patch v2 1/5] net: phy: print a number of phy that is not found

2014-09-29 Thread Ivan Khoronzhuk
In case when several Ethernet ports are supported it's convenient to see the number of phy that is not found. Signed-off-by: Ivan Khoronzhuk --- drivers/net/phy/phy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index 1d6c14f..

[U-Boot] [U-boot] [Patch v2 2/5] net: keystone_net: use mdio_reset function

2014-09-29 Thread Ivan Khoronzhuk
Don't use mdio_enable twice while eth open. Also rename it to keystone2_mdio_reset as more appropriate name. Signed-off-by: Ivan Khoronzhuk --- drivers/net/keystone_net.c | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/drivers/net/keystone_net.c b/drivers/net

[U-Boot] [U-boot] [Patch v2 0/5] keystone2: serdes: add seredes driver

2014-09-29 Thread Ivan Khoronzhuk
This patch series adds serdes driver, taking out it from keystone_net driver. v2..v1: - just rebase. Based on "[U-boot] [Patch v2 0/5] keystone2: generalize keystone_net driver usage" https://www.mail-archive.com/u-boot@lists.denx.de/msg148657.html Ivan Khoronzhuk (5): net: phy: print

[U-Boot] [U-boot] [Patch v2 4/5] net: keystone_net: register eth PHYs on MDIO bus

2014-09-29 Thread Ivan Khoronzhuk
As MDIO bus has been added we can register PHYs on it. Register only for SGMII ports connected with appropriate PHY. After registration, the PHY driver will be probed according to the hardware on board. Signed-off-by: Ivan Khoronzhuk --- drivers/net/keystone_net.c | 14 ++ include/co

[U-Boot] [U-boot] [Patch v2 3/5] net: keystone_net: register MDIO bus

2014-09-29 Thread Ivan Khoronzhuk
Currently MDIO framework is not used to configure Ethernet PHY. As result some of already implemented functions are duplicated. So register MDIO bus in order to use it. On that stage it's just registered, it'll be used as we start to use PHY framework. Use mdio bus read/write/reset functions in th

[U-Boot] [U-boot] [Patch v2 5/5] net: keystone_net: use general get link function

2014-09-29 Thread Ivan Khoronzhuk
The phy framework has function to get link, so use it instead of own implementation. There is no reason to check SGMII link while sending each packet, phy link is enough. Check SGMII link only while ethernet open. Signed-off-by: Ivan Khoronzhuk --- arch/arm/include/asm/ti-common/keystone_net.h

[U-Boot] [PATCH] beagleboard: Remove side effects of i2c2 pullup resisters initialization code

2014-09-29 Thread Alexander Kochetkov
Fix typo of commit d4e53f063dd25e071444b87303573e7440deeb89. i2c2 pullup resisters are controlled by bit 0 of CONTROL_PROG_IO1. It's value after reset is 0x0011. In order to clear bit 0, original code write 0xfffe to CONTROL_PROG_IO1 and toggle almost all default values. Original code af

Re: [U-Boot] [linux-sunxi] Re: [PATCH] sunxi: Fix gmac not working reliable on the Bananapi

2014-09-29 Thread Siarhei Siamashka
On Mon, 29 Sep 2014 20:16:35 +0200 Karsten Merker wrote: > On Mon, Sep 29, 2014 at 09:13:37AM +0300, Siarhei Siamashka wrote: > > > On Sun, 28 Sep 2014 20:13:21 +0200 > > Hans de Goede wrote: > > > > > In order for the gmac nic to work reliable on the Bananapi, we need to > > > poke > > > the

Re: [U-Boot] [patch 2/2] spl: Lightweight UBI and UBI fastmap support

2014-09-29 Thread Richard Weinberger
Am 05.07.2014 11:48, schrieb Thomas Gleixner: > +/** > + * ubi_calc_fm_size - calculates the fastmap size in bytes for an UBI device. > + * @ubi: UBI device description object > + */ > +static size_t ubi_calc_fm_size(struct ubi_scan_info *ubi) > +{ > + size_t size; > + > + size = sizeof(str

Re: [U-Boot] [PATCH v3 26/29] dm: tegra: spi: Convert to driver model

2014-09-29 Thread Igor Grinberg
Hi Simon, On 09/29/14 22:35, Simon Glass wrote: > diff --git a/board/compulab/common/eeprom.c b/board/compulab/common/eeprom.c > index 85442cd..ba3a5bf 100644 > --- a/board/compulab/common/eeprom.c > +++ b/board/compulab/common/eeprom.c > @@ -33,7 +33,7 @@ static int cl_eeprom_read(uint offset, u

Re: [U-Boot] [PATCH] usb: ci_udc: respect CONFIG_USB_GADGET_DUALSPEED

2014-09-29 Thread Marek Vasut
On Monday, September 29, 2014 at 03:35:14 AM, Eric Nelson wrote: > Force full-speed (12 Mbit/s) operation if CONFIG_USB_GADGET_DUALSPEED > is not defined. > > The controller is capable of high-speed (480 Mbit/s) operation, > but some designs may require the use of lower-speed operation. > > Signe

Re: [U-Boot] [PATCH 00/51] arm: socfpga: Usability fixes

2014-09-29 Thread Marek Vasut
On Monday, September 29, 2014 at 01:12:37 PM, Pavel Machek wrote: > Hi! > > > This entire series is the second stab at making SoCFPGA usable with > > mainline U-Boot again. There are much fewer bits missing than in the > > last series, more cleanup happened and bugs were fixed. This allows > > me

Re: [U-Boot] [PATCH V2 1/2] ARM: rpi_b: query internal MAC address from firmware

2014-09-29 Thread Stephen Warren
On 09/27/2014 01:43 PM, Marek Vasut wrote: > On Saturday, September 27, 2014 at 04:51:39 AM, Stephen Warren wrote: >> The built-in SMSC 95xx chip doesn't know its own MAC address. Instead, >> we must query it from the VC firmware; it's probably encoded in fuses >> on the BCM2835. >> >> Signed-off-b

[U-Boot] compile issue with U-boot-2014.10-rc2 & Cubieboard

2014-09-29 Thread Tom Everett
I am getting this compile error: scripts/Makefile.build:55: /tank/home/tom/freebsd/uboot/u-boot-2014.10-rc2/board/amd/sunxi/Makefile: No such file or directory gmake[1]: *** No rule to make target `/tank/home/tom/freebsd/uboot/u-boot-2014.10-rc2/board/amd/sunxi/Makefile'. Stop. It appears that t

Re: [U-Boot] UBI issues on SAMA5D31 NOR flash

2014-09-29 Thread Heiko Schocher
Hello Andy, Am 29.09.2014 18:40, schrieb Andy Pont: Hello, Using the patches from Bo Shen to support the NOR flash on the Atmel which patches? SAMA5D31EK hardware platform I am trying to get a UBI root file system within the NOR flash, at offset 0x1000 in the memory map, to work but get

Re: [U-Boot] [patch 2/2] spl: Lightweight UBI and UBI fastmap support

2014-09-29 Thread Heiko Schocher
Hello Richard, Am 30.09.2014 00:21, schrieb Richard Weinberger: Am 05.07.2014 11:48, schrieb Thomas Gleixner: +/** + * ubi_calc_fm_size - calculates the fastmap size in bytes for an UBI device. + * @ubi: UBI device description object + */ +static size_t ubi_calc_fm_size(struct ubi_scan_info *ub

Re: [U-Boot] [PATCH 0/5] omap3: overo: Add foreign expansion board support

2014-09-29 Thread Stefan Herbrechtsmeier
Am 16.09.2014 um 17:51 schrieb Stefan Herbrechtsmeier: At the moment the boot loader use a common configuration for all Gumstix Overo expansion boards. This also includes configuration of all inputs and outputs even if they aren't used by the boot loader. Because the Overo module could be used on

[U-Boot] [PATCH 2/3] drivers: usb: Make usb device-tree fixup code architecture independent

2014-09-29 Thread Nikhil Badola
move usb device tree fixup code from "arch/powerpc/" to "drivers/usb/" so that it works independent of architecture it is running on Signed-off-by: Ramneek Mehresh Signed-off-by: Nikhil Badola --- arch/powerpc/cpu/mpc8xxx/fdt.c | 104 --- drivers/usb/host/ehc