Re: [U-Boot] [PATCH] usb: dwc2: Add driver for Synopsis DWC2 USB IP block

2014-10-20 Thread Pavel Machek
Hi! > This is the USB host controller used on the Altera SoCFPGA and Raspbery Pi. > > This code has three checkpatch warnings, but to make sure it stays at least > readable and clear, these are not fixed. These bugs are in the USB request > handling combinatorial logic, so any abstracting of thos

Re: [U-Boot] [PATCH] arm: socfpga: Move code from misc_init_r() to arch_early_init_r()

2014-10-20 Thread Pavel Machek
On Sun 2014-10-19 20:40:47, Marek Vasut wrote: > Move this initialization code to proper place. The misc_init_r() > function is called way too late and the platform initialization > code should be executed much earlier. > > Signed-off-by: Marek Vasut > Cc: Chin Liang See > Cc: Dinh Nguyen > Cc:

Re: [U-Boot] [PATCH 1/7] spi: altera: Use struct-based register access

2014-10-20 Thread Pavel Machek
On Sun 2014-10-19 20:43:33, Marek Vasut wrote: > Zap the offset-based register access and use the struct-based one > as this is the preferred method. > > No functional change, but there are some line-over-80 problems in > the driver, which will be addressed later. For the whole series, Acked-by:

Re: [U-Boot] [PATCH] arm: socfpga: Zap spl.h and ad-hoc related syms

2014-10-20 Thread Pavel Machek
On Sun 2014-10-19 23:16:12, Marek Vasut wrote: > Switch to the common spl.h file and zap the arch/spl.h . Since the arch/spl.h > contained various ad-hoc symbols, zap those symbols as well and rework the > board configuration a little so it doesn't depend on them. > > Signed-off-by: Marek Vasut >

[U-Boot] [PATCH] common/cmd_io.c: Fix incorrect help for iod/iow

2014-10-20 Thread Bin Meng
Signed-off-by: Bin Meng --- common/cmd_io.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/cmd_io.c b/common/cmd_io.c index eefac36..c59148f 100644 --- a/common/cmd_io.c +++ b/common/cmd_io.c @@ -70,8 +70,8 @@ int do_io_iow(cmd_tbl_t *cmdtp, int flag, int argc, c

[U-Boot] [PATCH v2] powerpc/t4rdb: Add support of CPLD

2014-10-20 Thread Chunhe Lan
This support of CPLD includes - Files and register definitions - Command to switch alternate bank - Command to switch default bank Signed-off-by: Chunhe Lan --- board/freescale/t4rdb/Makefile |1 + board/freescale/t4rdb/cpld.c | 136 ++

[U-Boot] [PATCH v4 2/2] kconfig: add CONFIG_SUPPORT_TPL

2014-10-20 Thread Masahiro Yamada
CONFIG_TPL should not be enabled for boards that do not have TPL. CONFIG_SUPPORT_TPL introduced by this commit should be "select"ed by boards with TPL support and CONFIG_TPL should depend on it. Signed-off-by: Masahiro Yamada --- Changes in v4: None Changes in v3: None Changes in v2: - bug fix

[U-Boot] [PATCH v4 1/2] kconfig: add CONFIG_SUPPORT_SPL

2014-10-20 Thread Masahiro Yamada
CONFIG_SPL should not be enabled for boards that do not have SPL. CONFIG_SUPPORT_SPL introduced by this commit should be "select"ed by boards with SPL support and CONFIG_SPL should depend on it. Signed-off-by: Masahiro Yamada Acked-by: Simon Glass --- Changes in v4: - Add "select SUPPORT_SPL"

[U-Boot] [PATCH v4 0/2] Introduce CONFIG_SUPPORT_SPL/TPL

2014-10-20 Thread Masahiro Yamada
Masahiro Yamada (2): kconfig: add CONFIG_SUPPORT_SPL kconfig: add CONFIG_SUPPORT_TPL Kconfig| 9 ++- arch/arm/Kconfig | 46 ++ arch/arm/cpu/arm926ejs/davinci/Kconfig | 4 +++ arch/arm/cpu/armv7/exynos/

[U-Boot] [PATCH v3 2/5] ARM: HYP/non-sec: Fix the ARCH Timer frequency setting.

2014-10-20 Thread Xiubo Li
For some SoCs, the system clock frequency may not equal to the ARCH Timer's frequency. This patch uses the CONFIG_TIMER_CLK_FREQ instead of CONFIG_SYS_CLK_FREQ, then the system clock macro and arch timer macor could be set separately and without interfering each other. Signed-off-by: Xiubo Li --

[U-Boot] [PATCH v3 3/5] ls102xa: HYP/non-sec: support for ls102xa boards

2014-10-20 Thread Xiubo Li
Enable hypervisors utilizing the ARMv7 virtualization extension on the LS1021A-QDS/TWR boards with the A7 core tile, we add the required configuration variable. Also we define the board specific smp_set_cpu_boot_addr() function to set the start address for secondary cores in the LS1021A specific ma

[U-Boot] [PATCH v3 0/5] ls102xa: HYP/non-sec: for ls102xa.

2014-10-20 Thread Xiubo Li
Change for V3: - Fix the language in commit message. Change for V2: - All the registers are defined as a struct, here use it. - Use CONFIG_PEN_ADDR_BIG_ENDIAN instead of CONFIG_SOC_BIG_ENDIAN. Xiubo Li (5): ARM: HYP/non-sec: add the pen address BE mode support. ARM: HYP/non-sec: Fix the ARCH

[U-Boot] [PATCH v3 4/5] ARM: ls102xa: allow all the peripheral access permissions as R/W.

2014-10-20 Thread Xiubo Li
The Central Security Unit (CSU) allows secure world software to change the default access control policies of peripherals/bus slaves, determining which bus masters may access them. This allows peripherals to be separated into distinct security domains. Combined with SMMU configuration of the system

[U-Boot] [PATCH v3 5/5] ARM: ls102xa: Setting device's stream id for SMMUs.

2014-10-20 Thread Xiubo Li
LS1 has 4 SMMUs for address translation of the masters. All the SMMUs' stream IDs are 8-bit. The address translation depends on the stream ID of the incoming transaction. Each master has unique stream ID assigned to it and is configurable through SCFG registers. The stream ID for the masters is ide

[U-Boot] [PATCH v3 1/5] ARM: HYP/non-sec: add the pen address BE mode support.

2014-10-20 Thread Xiubo Li
For some SoCs, the pen address register maybe in BE mode and the CPUs are in LE mode. This patch adds BE mode support for smp pen address. Signed-off-by: Xiubo Li --- arch/arm/cpu/armv7/nonsec_virt.S | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/cpu/armv7/nonsec_virt.S b/arch/

Re: [U-Boot] Mini Summit 2014 Followup / Transcript of Open Discussion

2014-10-20 Thread Michal Simek
Hi Detlev On 10/17/2014 05:02 PM, Detlev Zundel wrote: > Hi, > > it was a pleasure for me to meet so many of you this Monday in > Düsseldorf at the ELCE. As many as 17 current custodians and 2 > prospective new custodians were present at the event: > > Hans de Goede - Sunxi > Alexey Brodkin

[U-Boot] [PATCH] config: MPC837X : Add complete USB EHCI support

2014-10-20 Thread Nikhil Badola
Add complete USB EHCI support for MPC837XEMDS and MPC837XERDB Signed-off-by: Nikhil Badola --- include/configs/MPC837XEMDS.h | 5 + include/configs/MPC837XERDB.h | 5 + 2 files changed, 10 insertions(+) diff --git a/include/configs/MPC837XEMDS.h b/include/configs/MPC837XEMDS.h index 695

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

2014-10-20 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 --- Changes for v2 : - Fixed compilation error for Platforms with CONFIG_USB_MAX_CON

[U-Boot] [PATCH] ARM: UniPhier: make pinmon command optional

2014-10-20 Thread Masahiro Yamada
Add CONFIG_CMD_PINMON to UniPhier-specific Kconfig and make the "pinmon" command user-configurable. This command can be disabled via the configuration if users do not need it. Signed-off-by: Masahiro Yamada --- arch/arm/cpu/armv7/uniphier/Kconfig | 9 + arch/arm/cpu/armv7/uniphier/Make

[U-Boot] [PATCH 2/2][v2] powerpc/t2080qds: fix for 1000BASE-KX

2014-10-20 Thread shh.xie
From: Shaohui Xie 1000BASE-KX(1G-KX) uses SGMII protocol but the serdes lane runs in 1G-KX mode. By default, the lane runs in SGMII mode, when a MAC uses a lane in 1G-KX mode, corresponding bit in PCCR1 for the lane needs to be set, and needs to fixup dtb accordingly for kernel to do proper initi

[U-Boot] [PATCH 1/2][v2] powerpc/t2080qds: fixup dtb for 10g-kr

2014-10-20 Thread Shaohui Xie
XFI ports on t2080qds can work with fiber cable and direct attach cable(copper). We use hwconfig to define cable type for XFI, and fixup dtb based on the cable type. For copper cable, set below env in hwconfig: fsl_10gkr_copper:<10g_mac_name> the <10g_mac_name> can be fm1_10g1, fm1_10g2, fm1_10g

Re: [U-Boot] [PATCH 1/7] spi: altera: Use struct-based register access

2014-10-20 Thread Jagan Teki
On 20 October 2014 00:13, Marek Vasut wrote: > Zap the offset-based register access and use the struct-based one > as this is the preferred method. > > No functional change, but there are some line-over-80 problems in > the driver, which will be addressed later. > > Signed-off-by: Marek Vasut > C

Re: [U-Boot] [PATCH v9 0/12] Enable driver model for GPIOs on Tegra and Exynos

2014-10-20 Thread Przemyslaw Marczak
Hello Simon, Everything seems fine, but there some issues. In last days I tried to run my Odroid with SD card and the card is not detected, then I found few things, that should be fixed. Please follow other patch comments. On 10/15/2014 10:37 AM, Simon Glass wrote: (Note: Tegra patches have b

Re: [U-Boot] [PATCH v9 04/12] dm: exynos: dts: Adjust device tree files for U-Boot

2014-10-20 Thread Przemyslaw Marczak
Hello Simon, On 10/15/2014 10:37 AM, Simon Glass wrote: The pinctrl bindings used by Linux are an incomplete description of the hardware. It is possible in most cases to determine the register address of each, but not in all cases. By adding an additional property we can fix this, and avoid addi

Re: [U-Boot] [PATCH v9 12/12] dm: exynos: gpio: Convert to driver model

2014-10-20 Thread Przemyslaw Marczak
Hello Simon, On 10/15/2014 10:38 AM, Simon Glass wrote: Convert the exynos GPIO driver to driver model. This implements the generic GPIO interface but not the extra Exynos-specific functions. Signed-off-by: Simon Glass --- Changes in v9: - Add missing compatible strings from exynos_gpio_ids[]

[U-Boot] [PATCH 0/3] DM9000 support for multiple interfaces

2014-10-20 Thread Andrew Ruder
This is a rework of the DM9000 driver to support registering interfaces dynamically (i.e. determine how many ethernet chips we have at boot and register 0, 1, 2, or more). It was tested on a yet-to-be-submitted board which is based on the PXA270 + 0, 1, or 2 DM9000 chips. To maintain backwards co

[U-Boot] [PATCH 2/3] dm9000: Add struct eth_device * to SROM functions

2014-10-20 Thread Andrew Ruder
Currently this argument is not used. To eventually support multiple DM9000's these public-facing functions will need a new argument - the ethernet device. Fix-up the one board using this part of the DM9000 API. Compile-tested only. Signed-off-by: Andrew Ruder Cc: Joe Hershberger Cc: Stefano B

[U-Boot] [PATCH 1/3] dm9000: mark dump_regs() function as unused

2014-10-20 Thread Andrew Ruder
dump_regs() is a handy function to keep around for bringing up a new dm9000-based board, but defining CONFIG_DM9000_DEBUG only adds the function - nowhere currently uses it. Rather than remove a potentially useful function, let's just tell gcc to not emit a warning when it is unused. Signed-off-b

[U-Boot] [PATCH 3/3] dm9000: rework dm9000 to support multiple devices

2014-10-20 Thread Andrew Ruder
The DM9000 was hard-coded to only support one DM9000 device. This patch adds a new initialization function - dm9000_initialize_ex() - to support registering multiple (and possibly dynamic) numbers of dm9000 devices. This patch consists of: * Change the board_info struct to a private struct und

Re: [U-Boot] [PATCH 4/7] spi: altera: Zap endless loop

2014-10-20 Thread Jagan Teki
On 20 October 2014 00:13, Marek Vasut wrote: > The driver contained an endless loop when waiting for TX completion, > this is a bad idea since if the hardware fails, the loop might spin > forever. Add timeout and handle it. > > Signed-off-by: Marek Vasut > Cc: Chin Liang See > Cc: Dinh Nguyen >

Re: [U-Boot] [PATCH 6/7] spi: altera: Add short note about EPCS/EPCQx1

2014-10-20 Thread Jagan Teki
On 20 October 2014 00:13, Marek Vasut wrote: > Add short documentation-alike note on how to use the Altera SPI > driver with the EPCS/EPCQx1 FPGA IP block on SoCFPGA Cyclone V. > > Signed-off-by: Marek Vasut > Cc: Chin Liang See > Cc: Dinh Nguyen > Cc: Albert Aribaud > Cc: Tom Rini > Cc: Wolf

Re: [U-Boot] [PATCH 0/14] dm: omap: Provide access to driver model for am335x, and move boards

2014-10-20 Thread Tom Rini
On Tue, Oct 14, 2014 at 09:26:51AM +0200, Simon Glass wrote: > Hi, > > On 22 September 2014 17:48, Simon Glass wrote: > > This series adjusts the serial and GPIO drivers, used by Beaglebone for > > example, to work with driver model. Since there are still boards using > > these drivers but not dr

Re: [U-Boot] [U-boot] [Patch v4 2/6] keystone2: clock: add K2L clock definitions and commands

2014-10-20 Thread Tom Rini
On Wed, Oct 15, 2014 at 02:55:28AM +0300, Ivan Khoronzhuk wrote: > From: Hao Zhang > > This patch adds clock definitions and commands to support Keystone II > K2L SOC. > > Acked-by: Vitaly Andrianov > Signed-off-by: Hao Zhang > Signed-off-by: Ivan Khoronzhuk [snip] > diff --git a/arch/arm/cp

Re: [U-Boot] [U-boot] [Patch v4 3/6] keystone2: msmc: add MSMC cache coherency support for K2L SOC

2014-10-20 Thread Tom Rini
On Wed, Oct 15, 2014 at 02:55:29AM +0300, Ivan Khoronzhuk wrote: > From: Hao Zhang > > This patch adds Keystone II Lamar (K2L) SoC specific definitions > to support MSMC cache coherency. > > Acked-by: Vitaly Andrianov > Signed-off-by: Hao Zhang > Signed-off-by: Ivan Khoronzhuk > --- > arch/a

Re: [U-Boot] [U-boot] [Patch v4 3/6] keystone2: msmc: add MSMC cache coherency support for K2L SOC

2014-10-20 Thread Ivan Khoronzhuk
On 10/20/2014 06:13 PM, Tom Rini wrote: On Wed, Oct 15, 2014 at 02:55:29AM +0300, Ivan Khoronzhuk wrote: From: Hao Zhang This patch adds Keystone II Lamar (K2L) SoC specific definitions to support MSMC cache coherency. Acked-by: Vitaly Andrianov Signed-off-by: Hao Zhang Signed-off-by: Ivan

Re: [U-Boot] [PATCH 2/3] dm9000: Add struct eth_device * to SROM functions

2014-10-20 Thread Stefano Babic
Hi Andrew, On 20/10/2014 16:59, Andrew Ruder wrote: > Currently this argument is not used. To eventually support multiple > DM9000's these public-facing functions will need a new argument - the > ethernet device. Fix-up the one board using this part of the DM9000 > API. Compile-tested only. >

Re: [U-Boot] [PATCH] arm: tegra: use architecture specific memcpy

2014-10-20 Thread Marcel Ziswiler
On Tue, 2014-08-26 at 10:27 -0600, Stephen Warren wrote: > On Jetson TK1, this makes my "dhcp zImage" on my USB ethernet dongle got > from ~1.7MiB/s to ~2.8MiB/s :-) I just noticed this not having been applied anywhere yet. Is the tegra tree eventually gona be re-based and this being applied? __

Re: [U-Boot] [PATCH v9 04/12] dm: exynos: dts: Adjust device tree files for U-Boot

2014-10-20 Thread Simon Glass
Hi, On 20 October 2014 08:55, Przemyslaw Marczak wrote: > Hello Simon, > > > On 10/15/2014 10:37 AM, Simon Glass wrote: >> >> The pinctrl bindings used by Linux are an incomplete description of the >> hardware. It is possible in most cases to determine the register address >> of each, but not in

Re: [U-Boot] [PATCH v9 12/12] dm: exynos: gpio: Convert to driver model

2014-10-20 Thread Simon Glass
Hi, On 20 October 2014 08:55, Przemyslaw Marczak wrote: > Hello Simon, > > > On 10/15/2014 10:38 AM, Simon Glass wrote: >> >> Convert the exynos GPIO driver to driver model. This implements the >> generic >> GPIO interface but not the extra Exynos-specific functions. >> >> Signed-off-by: Simon Gl

Re: [U-Boot] [U-boot] [Patch v4 2/6] keystone2: clock: add K2L clock definitions and commands

2014-10-20 Thread Ivan Khoronzhuk
On 10/20/2014 06:13 PM, Tom Rini wrote: On Wed, Oct 15, 2014 at 02:55:28AM +0300, Ivan Khoronzhuk wrote: From: Hao Zhang This patch adds clock definitions and commands to support Keystone II K2L SOC. Acked-by: Vitaly Andrianov Signed-off-by: Hao Zhang Signed-off-by: Ivan Khoronzhuk [snip

Re: [U-Boot] [PATCH 04/19] dm: pmic: add implementation of driver model pmic uclass

2014-10-20 Thread Przemyslaw Marczak
Hello Simon, I missed some of your comments. On 10/11/2014 01:18 AM, Simon Glass wrote: Hi, On 10 October 2014 07:32, Przemyslaw Marczak wrote: Hello Simon, On 10/10/2014 05:17 AM, Simon Glass wrote: Hi, On 8 October 2014 14:48, Przemyslaw Marczak wrote: This is an introduction to dr

Re: [U-Boot] [PATCH 06/19] dm: common: board_r: add call and weak of power_init_dm()

2014-10-20 Thread Przemyslaw Marczak
Hello Simon, On 10/10/2014 05:32 AM, Simon Glass wrote: Hi, On 8 October 2014 14:48, Przemyslaw Marczak wrote: This function call is required to init dm pmic framework and drivers before call to power_init_board(). Signed-off-by: Przemyslaw Marczak --- common/board_r.c | 8 1 fil

Re: [U-Boot] [PATCH 3/3] dm9000: rework dm9000 to support multiple devices

2014-10-20 Thread Andrew Ruder
This one triggered a whole bunch of check-patch issues that I need to clean-up mostly due to dm9000x.c not originally meeting all of the coding conventions. I'll send a V2 of this momentarily. - Andy ___ U-Boot mailing list U-Boot@lists.denx.de http://l

Re: [U-Boot] [PATCH 04/19] dm: pmic: add implementation of driver model pmic uclass

2014-10-20 Thread Simon Glass
Hi, On 20 October 2014 09:44, Przemyslaw Marczak wrote: > Hello Simon, > > I missed some of your comments. > > > On 10/11/2014 01:18 AM, Simon Glass wrote: >> >> Hi, >> >> On 10 October 2014 07:32, Przemyslaw Marczak >> wrote: >>> >>> Hello Simon, >>> >>> >>> On 10/10/2014 05:17 AM, Simon Glass

Re: [U-Boot] puts() and newlines (was Re: Discussion topics / issues)

2014-10-20 Thread Tom Rini
On Wed, Oct 15, 2014 at 10:40:12AM +0200, Pavel Machek wrote: > Hi! > > > First, we have a compatibility problem here. GCC assumes that puts() > > will add a newline character after the string; U-Boot puts() does NOT > > do this. So the GCC auto-converted printf()s will all be wrong, as > > they

Re: [U-Boot] [PATCH 04/19] dm: pmic: add implementation of driver model pmic uclass

2014-10-20 Thread Przemyslaw Marczak
Hello, ... snip ... Thank you again. I'm going to check the i2c-working tree and maybe rebase the dm-pmic onto it. Is it good idea? Sounds good. Once I get the main DM patches landed (hopefully this week) I'll rebase the other series including I2C. But for now you should be good to use it.

Re: [U-Boot] [U-boot] [Patch v4 2/6] keystone2: clock: add K2L clock definitions and commands

2014-10-20 Thread Tom Rini
On Mon, Oct 20, 2014 at 06:41:29PM +0300, Ivan Khoronzhuk wrote: > On 10/20/2014 06:13 PM, Tom Rini wrote: > >On Wed, Oct 15, 2014 at 02:55:28AM +0300, Ivan Khoronzhuk wrote: > > > >>From: Hao Zhang > >> > >>This patch adds clock definitions and commands to support Keystone II > >>K2L SOC. > >> >

Re: [U-Boot] [PATCH v9 12/12] dm: exynos: gpio: Convert to driver model

2014-10-20 Thread Przemyslaw Marczak
Hello, On 10/20/2014 05:31 PM, Simon Glass wrote: Hi, On 20 October 2014 08:55, Przemyslaw Marczak wrote: Hello Simon, On 10/15/2014 10:38 AM, Simon Glass wrote: Convert the exynos GPIO driver to driver model. This implements the generic GPIO interface but not the extra Exynos-specific fu

Re: [U-Boot] [PATCH v9 12/12] dm: exynos: gpio: Convert to driver model

2014-10-20 Thread Przemyslaw Marczak
Hello again, On 10/20/2014 05:53 PM, Przemyslaw Marczak wrote: Hello, On 10/20/2014 05:31 PM, Simon Glass wrote: Hi, On 20 October 2014 08:55, Przemyslaw Marczak wrote: Hello Simon, On 10/15/2014 10:38 AM, Simon Glass wrote: Convert the exynos GPIO driver to driver model. This implement

Re: [U-Boot] [PATCH] common/cmd_io.c: Fix incorrect help for iod/iow

2014-10-20 Thread Simon Glass
Hi Bin, On 20 October 2014 02:14, Bin Meng wrote: > Signed-off-by: Bin Meng > --- > common/cmd_io.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/common/cmd_io.c b/common/cmd_io.c > index eefac36..c59148f 100644 > --- a/common/cmd_io.c > +++ b/common/cmd_io.c >

Re: [U-Boot] [PATCH] arm: socfpga: Add I2C support to SoCFPGA

2014-10-20 Thread Marek Vasut
On Monday, October 20, 2014 at 08:45:48 AM, Stefan Roese wrote: Hi all, > This patch adds I2C support for the SoCFPGA. Using the designware I2C > controller driver. It supports all 4 I2C busses on the SoCFPGA. > > Signed-off-by: Stefan Roese > Cc: Marek Vasut > Cc: Vince Briders > Cc: Chin Li

Re: [U-Boot] [PATCH 6/7] spi: altera: Add short note about EPCS/EPCQx1

2014-10-20 Thread Marek Vasut
On Monday, October 20, 2014 at 05:10:17 PM, Jagan Teki wrote: [...] > > * based on bfin_spi.c > > * Copyright (c) 2005-2008 Analog Devices Inc. > > * Copyright (C) 2010 Thomas Chou > > > > + * Copyright (C) 2014 Marek Vasut > > Looks not good to me - with few changes. > > > + * > > + *

Re: [U-Boot] [PATCH 01/25] ppc: Zap ICU862 board

2014-10-20 Thread Marek Vasut
On Monday, October 20, 2014 at 05:54:18 AM, Masahiro Yamada wrote: > Hi Marek, Hi! > On Mon, 20 Oct 2014 03:48:02 +0200 > > Marek Vasut wrote: > > This board is the only user of CONFIG_SYS_EEPROM_X40430 , remove > > it so the EEPROM command code can be cleansed of the related code > > as well.

Re: [U-Boot] [PATCH 1/7] spi: altera: Use struct-based register access

2014-10-20 Thread Marek Vasut
On Monday, October 20, 2014 at 04:53:15 PM, Jagan Teki wrote: [...] > > -#define ALTERA_SPI_RXDATA 0 > > -#define ALTERA_SPI_TXDATA 4 > > -#define ALTERA_SPI_STATUS 8 > > -#define ALTERA_SPI_CONTROL 12 > > -#define ALTERA_SPI_SLAVE_SEL 20 > > +struct altera_spi_regs { > > +

Re: [U-Boot] [PATCH 1/7] spi: altera: Use struct-based register access

2014-10-20 Thread Jagan Teki
On 20 October 2014 20:40, Marek Vasut wrote: > On Monday, October 20, 2014 at 04:53:15 PM, Jagan Teki wrote: > > [...] > >> > -#define ALTERA_SPI_RXDATA 0 >> > -#define ALTERA_SPI_TXDATA 4 >> > -#define ALTERA_SPI_STATUS 8 >> > -#define ALTERA_SPI_CONTROL 12 >> > -#define ALTERA

Re: [U-Boot] [PATCH v9 12/12] dm: exynos: gpio: Convert to driver model

2014-10-20 Thread Simon Glass
Hi, On 20 October 2014 10:06, Przemyslaw Marczak wrote: > Hello again, > > > On 10/20/2014 05:53 PM, Przemyslaw Marczak wrote: >> >> Hello, >> >> On 10/20/2014 05:31 PM, Simon Glass wrote: >>> >>> Hi, >>> >>> On 20 October 2014 08:55, Przemyslaw Marczak >>> wrote: Hello Simon, >>>

Re: [U-Boot] [PATCH 6/7] spi: altera: Add short note about EPCS/EPCQx1

2014-10-20 Thread Jagan Teki
On 20 October 2014 20:43, Marek Vasut wrote: > On Monday, October 20, 2014 at 05:10:17 PM, Jagan Teki wrote: > > [...] > >> > * based on bfin_spi.c >> > * Copyright (c) 2005-2008 Analog Devices Inc. >> > * Copyright (C) 2010 Thomas Chou >> > >> > + * Copyright (C) 2014 Marek Vasut >> >> Lo

[U-Boot] [PATCH v2 1/3] arm: odroid: pmic77686: allow bucket voltage settings

2014-10-20 Thread Suriyan Ramasami
Allow to set the bucket voltage for the max77686. This will be used to reset the SMC LAN9730 ethernet on the odroids. Signed-off-by: Suriyan Ramasami --- drivers/power/pmic/pmic_max77686.c | 48 +- include/power/max77686_pmic.h | 3 +++ 2 files changed,

[U-Boot] [PATCH v2 2/3] arm: odroid: enable/disable usb host phy for exynos4412

2014-10-20 Thread Suriyan Ramasami
Enable/disable the usb host phy on the odroid U/X2 boards which are based on the Exynos4412 SOC. Signed-off-by: Suriyan Ramasami --- arch/arm/cpu/armv7/exynos/power.c| 26 ++ arch/arm/include/asm/arch-exynos/power.h | 7 +++ 2 files changed, 33 insertions(+)

[U-Boot] [PATCH v2 3/3] arm: odroid: usb: add support for usb host including ethernet

2014-10-20 Thread Suriyan Ramasami
This change adds support for enabling the USB host features of the board. This includes the USB3503A hub and the SMC LAN9730 ethernet controller as well. Credit goes to Tushar Berara for the function set_usb_ethaddr(). Signed-off-by: Suriyan Ramasami --- v2: * Removed an unneeded header file f

[U-Boot] [PATCH 3/3 V2] dm9000: rework dm9000 to support multiple devices

2014-10-20 Thread Andrew Ruder
The DM9000 was hard-coded to only support one DM9000 device. This patch adds a new initialization function - dm9000_initialize_ex() - to support registering multiple (and possibly dynamic) numbers of dm9000 devices. This patch consists of: * Change the board_info struct to a private struct und

Re: [U-Boot] [PATCH 01/25] ppc: Zap ICU862 board

2014-10-20 Thread Wolfgang Denk
Dear Marek, In message <201410201649.49448.ma...@denx.de> you wrote: > > Ah, you're right, we have this thing. One thing I'm not sure about is how > is someone supposed to determine the commit in which the board was removed > before the commit was created in the upstream repository. This kinda do

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

2014-10-20 Thread Jeroen Hofstee
Hello Masahiro, On 19-10-14 16:28, Jeroen Hofstee wrote: Hello Tom, On 01-10-14 17:31, Jeroen Hofstee wrote: On 30-09-14 03:29, Tom Everett wrote: 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

Re: [U-Boot] [PATCH 01/25] ppc: Zap ICU862 board

2014-10-20 Thread Wolfgang Denk
Dear Marek Vasut, In message <1413769706-8596-2-git-send-email-ma...@denx.de> you wrote: > This board is the only user of CONFIG_SYS_EEPROM_X40430 , remove > it so the EEPROM command code can be cleansed of the related code > as well. > > Signed-off-by: Marek Vasut > Cc: Masahiro Yamada > Cc: T

Re: [U-Boot] [PATCH 06/25] ppc: Zap TQM8260 board

2014-10-20 Thread Wolfgang Denk
Dear Marek Vasut, In message <1413769706-8596-7-git-send-email-ma...@denx.de> you wrote: > This board is old and is using CONFIG_I2C_X, which is wrong. > > Signed-off-by: Marek Vasut > Cc: Masahiro Yamada > Cc: Tom Rini > Cc: Wolfgang Denk > Cc: Simon Glass > Cc: Heiko Schocher Assuming yo

Re: [U-Boot] [PATCH 07/25] ppc: Zap TQM8272 board

2014-10-20 Thread Wolfgang Denk
Dear Marek Vasut, In message <1413769706-8596-8-git-send-email-ma...@denx.de> you wrote: > This board is old and is using CONFIG_I2C_X, which is wrong. > > Signed-off-by: Marek Vasut > Cc: Masahiro Yamada > Cc: Tom Rini > Cc: Wolfgang Denk > Cc: Simon Glass > Cc: Heiko Schocher Assuming yo

Re: [U-Boot] [PATCH 1/3] dm9000: mark dump_regs() function as unused

2014-10-20 Thread Tom Rini
On Mon, Oct 20, 2014 at 09:59:43AM -0500, Andrew Ruder wrote: > dump_regs() is a handy function to keep around for bringing up a new > dm9000-based board, but defining CONFIG_DM9000_DEBUG only adds the > function - nowhere currently uses it. Rather than remove a potentially > useful function, let

Re: [U-Boot] [PATCH 2/3] dm9000: Add struct eth_device * to SROM functions

2014-10-20 Thread Tom Rini
On Mon, Oct 20, 2014 at 09:59:44AM -0500, Andrew Ruder wrote: > Currently this argument is not used. To eventually support multiple > DM9000's these public-facing functions will need a new argument - the > ethernet device. Fix-up the one board using this part of the DM9000 > API. Compile-tested

Re: [U-Boot] [PATCH 2/3] dm9000: Add struct eth_device * to SROM functions

2014-10-20 Thread Andrew Ruder
On Mon, Oct 20, 2014 at 03:17:13PM -0400, Tom Rini wrote: > You shouldn't have to add this to avoid a warning I think. And frankly, > if it does for some reason since 3/3 makes use of dev, I'm OK with a > bisect adding a trivial warning like this, rather than do compiler > games. Fair enough, the

Re: [U-Boot] [PATCH 3/3 V2] dm9000: rework dm9000 to support multiple devices

2014-10-20 Thread Tom Rini
On Mon, Oct 20, 2014 at 01:11:48PM -0500, Andrew Ruder wrote: > The DM9000 was hard-coded to only support one DM9000 device. This patch > adds a new initialization function - dm9000_initialize_ex() - to support > registering multiple (and possibly dynamic) numbers of dm9000 devices. > This patch c

Re: [U-Boot] [PATCH] checkpatch: Add a check for forbidden tags in the git log

2014-10-20 Thread Tom Rini
On Tue, Oct 07, 2014 at 11:53:54AM +0200, Alban Bedel wrote: > After doing this error too many times myself add a check for left > over tags from gerrit and co. > > Signed-off-by: Alban Bedel > --- > scripts/checkpatch.pl | 15 +++ > 1 file changed, 15 insertions(+) > > diff --git

Re: [U-Boot] [PATCH 3/3 V2] dm9000: rework dm9000 to support multiple devices

2014-10-20 Thread Andrew Ruder
On 10/20/2014 03:00 PM, Tom Rini wrote: > So, on new platforms we call dm9000_initialize with the right IO/DATA > locations for the given device, yes? I think I'd rather update everyone > else to call things the right and new way, rather than work-around > supporting both. The expectation is that

Re: [U-Boot] [PATCH v2 2/3] arm: relocate the exception vectors

2014-10-20 Thread Georges Savoundararadj
Hi Albert, Le 15/10/2014 00:11, Albert ARIBAUD a écrit : Hi Georges, On Tue, 14 Oct 2014 22:02:00 +0200, Georges Savoundararadj wrote: Hi Albert, Hi Masahiro, (putting Masahiro in Cc: just in case) As my issue is related to Kconfig, I would like you to give me your opinions. Le 11/10/2

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

2014-10-20 Thread Anatolij Gustschin
Hey Tom, The following changes since commit c43fd23cf619856b0763a64a6a3bcf3663058c49: Prepare v2014.10 (2014-10-14 04:47:15 -0400) are available in the git repository at: git://git.denx.de/u-boot-video.git master for you to fetch changes up to 3e780af127282e5e24fa737a5b56d7c4523a72c9: v

[U-Boot] Please pull u-boot-fsl-qoriq master

2014-10-20 Thread York Sun
Tom, The following changes since commit c43fd23cf619856b0763a64a6a3bcf3663058c49: Prepare v2014.10 (2014-10-14 04:47:15 -0400) are available in the git repository at: git://git.denx.de/u-boot-fsl-qoriq.git master for you to fetch changes up to ba4740205d22d31da289f5b6b2f8db7d27896f40: l

Re: [U-Boot] [PATCH][v4] ls102x: configs - Add hash command in freescale LS1 platforms

2014-10-20 Thread York Sun
On 10/14/2014 11:09 PM, Ruchika Gupta wrote: > Hardware accelerated support for SHA-1 and SHA-256 has been added. > Hash command enabled along with hardware accelerated support for > SHA-1 and SHA-256 for platforms which have CAAM block. > > Signed-off-by: Ruchika Gupta > CC: York Sun > --- > Th

Re: [U-Boot] [PATCH] image: Fix Android boot image support

2014-10-20 Thread Simon Glass
Hi, On 16 October 2014 22:52, Ahmad Draidi wrote: > This patch makes the following changes: > - Set kernel entry point correctly > - Append bootargs from image to global bootargs instead > of replacing them > - Return end address instead of size from android_image_get_end() > - Give corre

Re: [U-Boot] [PATCH] image: Fix Android boot image support

2014-10-20 Thread Simon Glass
Hi Ahmad, On 17 October 2014 23:34, Ahmad Draidi wrote: > Hello Mr. Glass > > On Fri, Oct 17, 2014 at 11:19 PM, Simon Glass wrote: >> Hi, >> >> On 16 October 2014 22:52, Ahmad Draidi wrote: >>> This patch makes the following changes: >>> - Set kernel entry point correctly >>> - Append bootargs

Re: [U-Boot] [RFC] net/e1000: Fix EEPROM access error

2014-10-20 Thread Marcel Ziswiler
On Sat, 2014-10-18 at 01:40 +0200, Marek Vasut wrote: > +CC Marcel. Marcel, can you please take a look at this and test this with > i210 > card ? Good catch. Yes, I can confirm that this properly fixes at least one of the remaining issues as previously seen on the i210/i211. Acked-by: Marcel Zi

Re: [U-Boot] [PATCH 3/3 V2] dm9000: rework dm9000 to support multiple devices

2014-10-20 Thread Tom Rini
On Mon, Oct 20, 2014 at 08:16:59PM +, Andrew Ruder wrote: > On 10/20/2014 03:00 PM, Tom Rini wrote: > > So, on new platforms we call dm9000_initialize with the right IO/DATA > > locations for the given device, yes? I think I'd rather update everyone > > else to call things the right and new wa

Re: [U-Boot] [PATCH] common/cmd_io.c: Fix incorrect help for iod/iow

2014-10-20 Thread Bin Meng
Hi Simon, On Tue, Oct 21, 2014 at 12:46 AM, Simon Glass wrote: > Hi Bin, > > Are you using the coreboot support? What board are you using? Not coreboot, but U-Boot directly booting from reset vector on Intel Crown Bay board. Regards, Bin ___ U-Boot ma

Re: [U-Boot] [PATCH] common/cmd_io.c: Fix incorrect help for iod/iow

2014-10-20 Thread Simon Glass
Hi Bin, On 20 October 2014 19:20, Bin Meng wrote: > Hi Simon, > > On Tue, Oct 21, 2014 at 12:46 AM, Simon Glass wrote: >> Hi Bin, >> >> Are you using the coreboot support? What board are you using? > > Not coreboot, but U-Boot directly booting from reset vector on Intel > Crown Bay board. OK I

[U-Boot] [PATCH v10 11/12] dm: exynos: Make sure that GPIOs are requested

2014-10-20 Thread Simon Glass
With driver model GPIOs must be requested before use. Make sure this is done correctly. (Note that the soft SPI part of universal is omitted, since this driver is about to be replaced with a driver-model-aware version) Signed-off-by: Simon Glass --- Changes in v10: None Changes in v9: None Chan

[U-Boot] [PATCH v10 0/12] Enable driver model for GPIOs on Tegra and Exynos

2014-10-20 Thread Simon Glass
(Note: Tegra patches have been applied, I am resending with exynos only) Now that driver model is part of U-Boot, the task of converting drivers over to it begins. GPIO is one of the easiest to convert, since it already has a sandbox driver and a uclass driver. The Tegra GPIO driver is relatively

[U-Boot] [PATCH v10 05/12] dm: exynos: Add pinctrl settings for smdkc100

2014-10-20 Thread Simon Glass
These describe the GPIOs in enough detail for U-Boot's GPIO driver to operate. Signed-off-by: Simon Glass --- Changes in v10: None Changes in v9: None Changes in v8: - Add patch containing pinctrl settings for s5p_goni Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: N

[U-Boot] [PATCH v10 01/12] dm: exynos: dts: Convert /include/ to #include

2014-10-20 Thread Simon Glass
We should be consistent about this. The kernel has moved to #include which breaks error reporting to some extent but does allow us to include binding files. Signed-off-by: Simon Glass --- Changes in v10: None Changes in v9: None Changes in v8: - Adjust odroid device tree file to use #include ins

[U-Boot] [PATCH v10 02/12] dm: exynos: Bring in pinctrl dts files from Linux kernel

2014-10-20 Thread Simon Glass
Bring in required device tree files for pinctrl from Linux v3.14. These are initially unchanged and have a number of pieces not needed by U-Boot. Note that exynos5420 is renamed to exynos54xx here since we want to support exynos5422 also. Signed-off-by: Simon Glass --- Changes in v10: None Chan

[U-Boot] [PATCH v10 07/12] dm: exynos: Move smdkc100 to generic board

2014-10-20 Thread Simon Glass
The generic board deadline is approaching, and we need this feature to enable driver model. Enable CONFIG_SYS_GENERIC_BOARD for smdkc100. Signed-off-by: Simon Glass --- Changes in v10: None Changes in v9: None Changes in v8: - Add new patch to move smdkc100 to generic board Changes in v7: None

[U-Boot] [PATCH v10 04/12] dm: exynos: dts: Adjust device tree files for U-Boot

2014-10-20 Thread Simon Glass
The pinctrl bindings used by Linux are an incomplete description of the hardware. It is possible in most cases to determine the register address of each, but not in all cases. By adding an additional property we can fix this, and avoid adding a table to U-Boot for every single Exynos SOC. Signed-o

[U-Boot] [PATCH v10 03/12] dm: exynos: dts: Remove unused pinctrl information to save space

2014-10-20 Thread Simon Glass
We don't include the pinctrl functions for U-Boot as they use up quite a bit of space and are not used. We could instead perhaps eliminate this material with fdtgrep, but so far this tool has not made it to upstream. Signed-off-by: Simon Glass --- Changes in v10: None Changes in v9: None Change

[U-Boot] [PATCH v10 06/12] dm: exynos: Add pinctrl settings for s5p_goni

2014-10-20 Thread Simon Glass
These describe the GPIOs in enough detail for U-Boot's GPIO driver to operate. Signed-off-by: Simon Glass --- Changes in v10: None Changes in v9: - Change compatible string to s5pc110-pinctrl for s5p_goni Changes in v8: - Add patch containing pinctrl settings for s5p_goni Changes in v7: None C

[U-Boot] [PATCH v10 10/12] dm: exynos: Tidy up GPIO defines

2014-10-20 Thread Simon Glass
The defines at the top of the GPIO driver use single-character names for parameters which are not very descriptive. Improve these to use descriptive parameter names. Signed-off-by: Simon Glass --- Changes in v10: None Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: No

[U-Boot] [PATCH v10 08/12] dm: exynos: Move s5p_goni to generic board

2014-10-20 Thread Simon Glass
The generic board deadline is approaching, and we need this feature to enable driver model. Enable CONFIG_SYS_GENERIC_BOARD for s5p_goni. Signed-off-by: Simon Glass --- Changes in v10: None Changes in v9: None Changes in v8: - Add new patch to move s5p_goni to generic board Changes in v7: None

Re: [U-Boot] [PATCH 01/11] fdt: Allow ft_board_setup() to report failure

2014-10-20 Thread Simon Glass
Hi Anatolij, On 17 October 2014 14:19, Anatolij Gustschin wrote: > Hi Simon, > > some comments on return values and error reporting below: > > On Wed, 15 Oct 2014 02:05:31 -0600 > Simon Glass wrote: > ... >> diff --git a/board/amcc/sequoia/sequoia.c b/board/amcc/sequoia/sequoia.c >> index 53f9b3

[U-Boot] [PATCH v10 12/12] dm: exynos: gpio: Convert to driver model

2014-10-20 Thread Simon Glass
Convert the exynos GPIO driver to driver model. This implements the generic GPIO interface but not the extra Exynos-specific functions. Signed-off-by: Simon Glass --- Changes in v10: - Remove gaps in the GPIO numbering since these are not needed now Changes in v9: - Add missing compatible strin

[U-Boot] [PATCH v10 09/12] dm: exynos: Tidy up GPIO headers

2014-10-20 Thread Simon Glass
The wrong header is being included, thus requiring the code to re-declare the generic GPIO interface in each GPIO header. Fix this. Signed-off-by: Simon Glass --- Changes in v10: None Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in

Re: [U-Boot] [PATCH 0/4] dm: rpi: Move Raspberry Pi to use driver model

2014-10-20 Thread Stephen Warren
On 10/19/2014 09:14 PM, Simon Glass wrote: > Hi Stephen, > > On 17 October 2014 20:51, Stephen Warren wrote: >> On 09/30/2014 07:41 PM, Stephen Warren wrote: >>> On 09/22/2014 05:30 PM, Simon Glass wrote: This series adds driver model support to the GPIO and serial drivers used by Raspb

Re: [U-Boot] [PATCH] common/cmd_io.c: Fix incorrect help for iod/iow

2014-10-20 Thread Bin Meng
Hi Simon, On Tue, Oct 21, 2014 at 9:34 AM, Simon Glass wrote: > Hi Bin, > > OK I see - interesting! I talked with Wolfgang at the mini-Summit last > week about a bare x86 port and he seemed keen on the idea. So I've > been taking a look. I was planning to use the Minnowboard Max, but I > don't ha

[U-Boot] Hi Simon, There may exist a problem about FIT image signature verify , can you check this problem?

2014-10-20 Thread Duxiaoqiang
Hi Simon & All These days I tested verified U-Boot on ARM Foundation. And I found a problem when I tested like this: 1) Generate a FIT image and signature blob file like: mkimage -D "-I dts -O dtb -p 2000" -F kernel.its -k keys -K fvp.dtb -r signed_image.fit 2) Compile the Uboot li

[U-Boot] [PATCH] kbuild: clear VENDOR variable to fix build error on tcsh

2014-10-20 Thread Masahiro Yamada
Since the environment "VENDOR" is set in tcsh, it must be cleared in our makefile. Otherwise, boards without CONFIG_SYS_VENDOR fail to build: > make CROSS_COMPILE=arm-linux-gnueabi- wandboard_quad_defconfig all [ snip ] AR arch/arm/lib/lib.a CC arch/arm/lib/eabi_compat.o

  1   2   >