[U-Boot] [PATCH 4/4] powerpc/t2080qds: enable eSDHC peripheral clock support for kernel

2015-03-25 Thread Yangbo Lu
Enable eSDHC peripheral clock support for kernel, and linux will use SD clock generated by peripheral clock instead of platform clock. Signed-off-by: Yangbo Lu Cc: York Sun --- include/configs/T208xQDS.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/T208xQDS.h b/include/co

[U-Boot] [PATCH 2/4] powerpc/t2080qds: enable eSDHC adapter card type identification

2015-03-25 Thread Yangbo Lu
Enable eSDHC adapter card type identification and this will do some corresponding operations and set 'adapter-type' property for device tree according SDHC Card ID. Signed-off-by: Yangbo Lu Cc: York Sun --- include/configs/T208xQDS.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/c

[U-Boot] [PATCH 3/4] mmc: fsl_esdhc: Add peripheral clock support for kernel

2015-03-25 Thread Yangbo Lu
The SD clock could be generated by platform clock or peripheral clock for some platforms. This patch adds peripheral clock support for kernel for T1024/T1040/T2080. To enable it, define CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK. Signed-off-by: Yangbo Lu Cc: York Sun --- arch/powerpc/cpu/mpc85xx/speed

[U-Boot] [PATCH 1/4] mmc: fsl_esdhc: Add adapter card type identification support

2015-03-25 Thread Yangbo Lu
Add adapter card type identification support by reading FPGA STAT_PRES1 register SDHC Card ID[0:2] bits. To use this function, define CONFIG_FSL_ESDHC_ADAPTER_IDENT. Signed-off-by: Yangbo Lu Cc: York Sun --- arch/powerpc/include/asm/global_data.h | 3 +++ board/freescale/common/qixis.h

[U-Boot] [PATCH v2 1/2] ARM: tegra: get rid of colibri_t20-common

2015-03-25 Thread Marcel Ziswiler
As a preparatory step to renaming the board folder as well first get rid of the colibri_t20-common after having integrated it into colibri_t20_iris for now. While at it also migrate to using NVIDIA's common.mk magic. Signed-off-by: Marcel Ziswiler --- .../colibri_t20-common/colibri_t20-common.c

[U-Boot] [PATCH v2 2/2] ARM: tegra: rename colibri_t20 board/configuration/device-tree

2015-03-25 Thread Marcel Ziswiler
In accordance with our other modules supported by U-Boot and as agreed upon for Apalis/Colibri T30 get rid of the carrier board in the board/ configuration/device-tree naming. While at it also bring the prompt more in line with our other products. Signed-off-by: Marcel Ziswiler --- arch/arm/dts

[U-Boot] [PATCH v2 0/2] rename colibri_t20

2015-03-25 Thread Marcel Ziswiler
In accordance with our other modules supported by U-Boot and as agreed upon for Apalis/Colibri T30 [1] get rid of the carrier board post fix in the board/configuration/device-tree naming. [1] http://article.gmane.org/gmane.comp.boot-loaders.u-boot/192041 Changes in v2: - squashed it all together

Re: [U-Boot] [PATCH v3 4/4] common/lcd_console: introduce display/framebuffer rotation

2015-03-25 Thread Hannes Petermaier
On 2015-03-25 17:24, Nikita Kiryanov wrote: Hi Hannes, Hi Nikita, This is almost an Acked-By from me, just a few final comments: Perfect, i think with v4 we can finish the thing :-) On 03/19/2015 10:37 AM, Hannes Petermaier wrote: diff --git a/README b/README index b0124d6..c649de1 100644

Re: [U-Boot] [PATCH v2 57/80] dm: usb: tegra: Remove the port_addr_clear_csc variable

2015-03-25 Thread Jim Lin
> -Original Message- > From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Simon Glass > Sent: Thursday, March 26, 2015 2:23 AM > To: U-Boot Mailing List > Cc: Marek Vasut; Stephen Warren; Vivek Gautam; Tom Warren > Subject: [U-Boot] [PATCH v2 57/80] dm: usb: tegra: Remove the

[U-Boot] Driver model Ethernet issue

2015-03-25 Thread Simon Glass
Hi Joe, I think moving the packet processing into the uclass was a good idea, but I did not think it through. If you look at the designware driver, when it receives a packet it processes it and then retires that buffer for later reuse. The few others I have looked at are similar. We can't retire

Re: [U-Boot] u-boot: OpenRD Ultimate fails to build

2015-03-25 Thread drEagle
Hi Vagrant, Le 21/03/2015 15:53, Vagrant Cascadian a écrit : > It seems that OpenRD Ultimate with u-boot 2015.04-rc3 and newer no > longer builds from source, both in Debian and with mainline git. It > appears to have overgrown the size limits set for it: Looks like the NAND partition map had to

Re: [U-Boot] [PATCH 1/2 v1] sf: probe: Add support Atmel AT45DB series devices special commands

2015-03-25 Thread Peng Fan
Hi Haikun, On 3/26/2015 10:39 AM, Wang Haikun-B53464 wrote: On 3/25/2015 10:10 PM, Fan Peng-B51431 wrote: Hi Haikun, On 3/25/2015 8:35 PM, Haikun Wang wrote: From: Haikun Wang Atmel AT45DB series devices commands is different from common spi flash commands. This patch add support for AT45DB

Re: [U-Boot] [PATCH 1/2 v1] sf: probe: Add support Atmel AT45DB series devices special commands

2015-03-25 Thread haikun.w...@freescale.com
On 3/25/2015 10:10 PM, Fan Peng-B51431 wrote: > Hi Haikun, > > On 3/25/2015 8:35 PM, Haikun Wang wrote: >> From: Haikun Wang >> >> Atmel AT45DB series devices commands is different from common spi flash >> commands. This patch add support for AT45DB special commands. >> Add a flag AT45DB_CMD to co

Re: [U-Boot] [PATCH 2/2 v1] sf: Update AT45DB021D flash chip parameters

2015-03-25 Thread haikun.w...@freescale.com
On 3/25/2015 10:11 PM, Fan Peng-B51431 wrote: > Hi Haikun, > > On 3/25/2015 8:36 PM, Haikun Wang wrote: >> From: Haikun Wang >> >> AT45DB021D flash size is 1024*page_size, page_size is 256bytes or 264bytes. >> In current params_table its size is 64*1024*8, recorrect it. >> Add AT45DB_CMD flag for

Re: [U-Boot] [PATCH V2] Exynos: Clock: Fix exynos5_get_periph_rate for I2C.

2015-03-25 Thread Simon Glass
On 19 March 2015 at 11:06, Guillaume Gardet wrote: > Ping. > > Guillaume > > > Le 11/03/2015 10:34, Guillaume GARDET a écrit : > >> Commit 2e82e9252695a612ab0cbf40fa0c7368515f6506 'Exynos: Clock: Cleanup >> soc_get_periph_rate' introduced a bug in I2C config. This patch makes >> cros_ec >> keyboar

[U-Boot] [PATCH v2] ARM: tegra: update colibri_t20 configuration

2015-03-25 Thread Marcel Ziswiler
Bring the Colibri T20 configuration in-line with Apalis/Colibri T30. Signed-off-by: Marcel Ziswiler --- Changes in v2: - added my previously missing signed-off-by include/configs/colibri_t20.h | 31 +++ 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/i

[U-Boot] [PATCH v2] ARM: tegra: fix colibri_t20 asix reset

2015-03-25 Thread Marcel Ziswiler
Fix ASIX USB to Ethernet chip reset. Signed-off-by: Marcel Ziswiler --- Changes in v2: - added my previously missing signed-off-by board/toradex/colibri_t20/colibri_t20.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/board/toradex/colibri_t20/colibri_t20.c b/board

[U-Boot] [PATCH v2] ARM: tegra: fix colibri_t20 machine type

2015-03-25 Thread Marcel Ziswiler
A while ago I got Russell to change the machine type of our Colibri T20 from COLIBRI_TEGRA2 to COLIBRI_T20 which at least in parts is also reflected in his machine registry: http://www.arm.linux.org.uk/developer/machines/list.php?id=3323 For us it is really very beneficial to actually still be ab

Re: [U-Boot] [PATCH] ARM: tegra: fix colibri_t20 machine type

2015-03-25 Thread Marcel Ziswiler
On Mon, 2015-03-23 at 13:37 -0600, Stephen Warren wrote: > Only "half" of the references there seem to be updated; there are still > some mentions of e.g. CONFIG_MACH_COLIBRI_TEGRA2, > MACH_TYPE_COLIBRI_TEGRA2. Perhaps it's still in flux? Ah, yes. Now I remember. Some stuff can't easily be chang

Re: [U-Boot] [PATCH] Exynos: Clock: Fix exynos5_get_periph_rate for I2C.

2015-03-25 Thread Simon Glass
Hi Minkyu, On 24 March 2015 at 01:45, Minkyu Kang wrote: > hi, > > On 20 March 2015 at 02:06, Guillaume Gardet > wrote: > >> Ping. >> >> Guillaume >> >> >> Le 11/03/2015 10:34, Guillaume GARDET a écrit : >> >> Commit 2e82e9252695a612ab0cbf40fa0c7368515f6506 'Exynos: Clock: Cleanup >>> soc_get_p

Re: [U-Boot] [PATCH v2 04/40] fdt: Add functions to retrieve strings

2015-03-25 Thread Simon Glass
Hi Thierry, On 8 September 2014 at 09:02, Simon Glass wrote: > Applied to u-boot-fdt/next, thanks! Did you submit these patches to dtc upstream? I don't see them applied. Regards, SImon ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de

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

2015-03-25 Thread Simon Glass
Hi Tom, The following changes since commit b81bdf62e0cf9b5c64d30284d01658a851f142f7: bav335x: Update defconfigs and fix typo in EEPROM config format (2015-03-24 10:56:35 -0400) are available in the git repository at: http://git.denx.de/u-boot-dm.git for you to fetch changes up to 891ee87e2

Re: [U-Boot] [PATCH] dm: serial: remove bogus include

2015-03-25 Thread Simon Glass
On 20 March 2015 at 17:52, Simon Glass wrote: > On 20 March 2015 at 09:24, Tom Rini wrote: >> On Fri, Mar 20, 2015 at 01:24:45PM +0900, Masahiro Yamada wrote: >> >>> Serial-uclass should be generically implemented without depending >>> a particular hardware. Fortunately, nothing in include/ns165

Re: [U-Boot] [PATCH 2/2] x86: galileo: Enable saving environment in SPI flash

2015-03-25 Thread Simon Glass
On 12 March 2015 at 19:40, Bin Meng wrote: > Hi Simon, > > On Fri, Mar 13, 2015 at 6:15 AM, Simon Glass wrote: >> On 11 March 2015 at 02:22, Bin Meng wrote: >>> Saving U-Boot's environment in SPI flash on Intel Galileo board. >>> >>> Signed-off-by: Bin Meng >>> --- >>> >>> include/configs/gali

Re: [U-Boot] [PATCH 4/4] x86: crownbay: Enable Intel Topcliff GMAC support

2015-03-25 Thread Simon Glass
On 20 March 2015 at 13:18, Joe Hershberger wrote: > On Fri, Mar 20, 2015 at 4:12 AM, Bin Meng wrote: >> >> Intel Crown Bay board has one ethernet port connected from Intel >> Topcliff PCH. Enable it in the board configuration. >> >> Signed-off-by: Bin Meng >> >> --- > > Reviewed-by: Joe Hershber

Re: [U-Boot] [PATCH 1/4] net: Add ethernet FCS length macro in net.h

2015-03-25 Thread Simon Glass
On 20 March 2015 at 13:18, Joe Hershberger wrote: > On Fri, Mar 20, 2015 at 4:12 AM, Bin Meng wrote: >> >> Some ethernet drivers use their own version of ethernet FCS length >> macro which is really common. We define ETH_FCS_LEN in net.h and >> replace those custom versions in various places. >>

Re: [U-Boot] [PATCH] x86: quark: Enable on-chip ethernet controllers

2015-03-25 Thread Simon Glass
On 12 March 2015 at 16:13, Simon Glass wrote: > Hi Bin, > > On 10 March 2015 at 20:25, Bin Meng wrote: >> Intel Quark SoC integrates two 10/100 ethernet controllers which can >> be connected to an external RMII PHY. The MAC IP is from Designware. >> Enable this support with the existing U-Boot De

Re: [U-Boot] serial atag tag in devicetree ?

2015-03-25 Thread Paul Kocialkowski
Le mardi 24 mars 2015 à 09:01 +0100, Hans de Goede a écrit : > Hi, > > On 24-03-15 00:12, Rob Herring wrote: > > On Mon, Mar 23, 2015 at 6:30 AM, Hans de Goede wrote: > >> Hi, > >> > >> > >> On 22-03-15 22:01, Rob Herring wrote: > > > > >>> There is already "serial-number" (a string) which exi

Re: [U-Boot] [PATCH 1/2] x86: crownbay: Enable saving environment in SPI flash

2015-03-25 Thread Simon Glass
On 12 March 2015 at 16:15, Simon Glass wrote: > On 11 March 2015 at 02:22, Bin Meng wrote: >> Saving U-Boot's environment in SPI flash on Intel CrownBay board. >> >> Signed-off-by: Bin Meng >> --- >> >> include/configs/crownbay.h | 8 >> 1 file changed, 8 insertions(+) >> >> diff --git

Re: [U-Boot] [PATCH 3/4] net: Add Intel Topcliff GMAC driver

2015-03-25 Thread Simon Glass
On 23 March 2015 at 22:54, Bin Meng wrote: > Hi Simon, > > On Tue, Mar 24, 2015 at 12:18 PM, Simon Glass wrote: >> Hi Bin, >> >> On Mar 23, 2015 7:24 PM, "Bin Meng" wrote: >>> >>> Hi Simon, >>> >>> On Tue, Mar 24, 2015 at 5:57 AM, Simon Glass wrote: >>> > Hi Bin, >>> > >>> > On 20 March 2015 at

Re: [U-Boot] [PATCH] x86: Add queensbay fsp patch information in README.x86

2015-03-25 Thread Simon Glass
On 5 March 2015 at 12:48, Simon Glass wrote: > On 4 March 2015 at 20:21, Bin Meng wrote: >> The FSP release version 001 for Intel Queensbay has a bug which >> could cause random endless loop during the FspInit call. This bug >> was published by Intel although Intel did not describe any details. >

Re: [U-Boot] [PATCH 2/4] net: Update README.drivers.eth to mention latest APIs

2015-03-25 Thread Simon Glass
On 20 March 2015 at 13:18, Joe Hershberger wrote: > On Fri, Mar 20, 2015 at 4:12 AM, Bin Meng wrote: >> >> README.drivers.eth still refers to the deprecated miiphy_register(). >> Update the doc to mention new APIs mdio_alloc() and mdio_register(). >> >> Signed-off-by: Bin Meng >> --- > > Acked-b

Re: [U-Boot] [PATCH] fdtdec: Improve fdtdec_get_pci_bdf() documentation

2015-03-25 Thread Simon Glass
On 5 March 2015 at 12:48, Simon Glass wrote: > On 4 March 2015 at 00:08, Bin Meng wrote: >> Add the description that how the compatible property is involved in >> the fdtdec_get_pci_bdf() documentation. >> >> Signed-off-by: Bin Meng >> --- >> >> include/fdtdec.h | 5 - >> 1 file changed, 4

Re: [U-Boot] [PATCH] arch/x86/cpu/quark/mrc.c: Switch to U_BOOT_DATE / U_BOOT_TIME

2015-03-25 Thread Simon Glass
On 19 February 2015 at 11:26, Simon Glass wrote: > On 19 February 2015 at 04:58, Tom Rini wrote: >> >> Using __DATE__ and __TIME__ results in an error due to -Werror=date-time >> with gcc-4.9 (__DATE__ / __TIME__ might prevent reproducible builds) so >> switch these over to U_BOOT_DATE / U_BOOT_T

[U-Boot] Please pull u-boot-x86.git

2015-03-25 Thread Simon Glass
Hi Tom, These are improvements to a new board and some code clean-ups that I requested, so I think it is probably reasonable to take these now. The following changes since commit b81bdf62e0cf9b5c64d30284d01658a851f142f7: bav335x: Update defconfigs and fix typo in EEPROM config format (2015-03

Re: [U-Boot] [PATCH 14/28] drivers/fsl-mc: Changed MC firmware loading for new boot architecture

2015-03-25 Thread Kim Phillips
On Tue, 24 Mar 2015 21:32:56 -0500 Stuart Yoder wrote: > Kim, why is this being taken off-list? Adding it back. Also, please don't top-post. > I think it is premature to start focusing on saving single digit > milliseconds in u-boot. The 35 second boot time you are seeing on > some ls2085 bo

Re: [U-Boot] [PATCH v2 3/3] config_distro_bootcmd.h: Prefer booting from bootable paritions

2015-03-25 Thread Tom Rini
On Wed, Feb 25, 2015 at 11:23:52PM +0100, Sjoerd Simons wrote: > List bootable partitions and only scan those for bootable files, falling > back to partition 1 if there are no bootable partitions > > Signed-off-by: Sjoerd Simons > Reviewed-by: Hans de Goede Applied to u-boot/master, thanks! -

Re: [U-Boot] [PATCH v2 1/3] part: Add support for list filtering on bootable partitions

2015-03-25 Thread Tom Rini
On Wed, Feb 25, 2015 at 11:23:50PM +0100, Sjoerd Simons wrote: > Add an optional -bootable parameter to the part list commands to only > put the list of bootable partitions in the environment variable > > Signed-off-by: Sjoerd Simons Applied to u-boot/master, thanks! -- Tom signature.asc De

Re: [U-Boot] [PATCH v2 2/3] config_cmd_default.h: Add 'env exists' command

2015-03-25 Thread Tom Rini
On Wed, Feb 25, 2015 at 11:23:51PM +0100, Sjoerd Simons wrote: > env exists allows scripts to query whether an environment variable > exists. Enable by default as it adds only a trivial amount of code and > can be useful in scripts. > > Signed-off-by: Sjoerd Simons > Reviewed-by: Hans de Goede

Re: [U-Boot] [PATCH 0/13] ARM: UniPhier: enable CONFIG_SPL_DM with some clean-ups

2015-03-25 Thread Simon Glass
Hi Masahiro, On 24 March 2015 at 22:08, Masahiro Yamada wrote: > Hi Simon, > > > 2015-03-24 7:47 GMT+09:00 Simon Glass : >> Hi Masahiro, >> >> On 23 March 2015 at 09:19, Masahiro Yamada >> wrote: >>> 2015-03-23 0:07 GMT+09:00 Masahiro Yamada : Masahiro Yamada (13): ARM

Re: [U-Boot] [PATCH] config: peach: Correct memory layout environment settings

2015-03-25 Thread Tom Rini
On Wed, Mar 25, 2015 at 08:54:16PM +0100, Sjoerd Simons wrote: > On Wed, 2015-03-25 at 12:58 -0400, Tom Rini wrote: > > On Wed, Mar 25, 2015 at 09:32:45AM +0100, Sjoerd Simons wrote: > > > On Wed, 2015-03-25 at 01:11 -0400, Tom Rini wrote: > > > > On Mon, Mar 23, 2015 at 03:04:48PM -0600, Simon Gla

Re: [U-Boot] [PATCH 2/5 v2] dm: ls1021a: Bring in ls1021a dts files from linux kernel

2015-03-25 Thread Simon Glass
On 25 March 2015 at 06:23, Haikun Wang wrote: > From: haikun > > Bring in required device tree files for ls1021a from Linux. > These are initially unchanged and have a number of pieces not needed by > U-Boot. > > Signed-off-by: Haikun Wang > --- > > Changes in v2: > - Use CONFIG_LS102XA in arch

Re: [U-Boot] [PATCH v3] arm: mx5: Add support for USB armory board

2015-03-25 Thread Andrej Rosano
Hi Stefano, On Wed, Mar 25, 2015 at 09:48:36AM +0100, Stefano Babic wrote: > Hi Andrej, > > On 24/03/2015 14:26, and...@inversepath.com wrote: > > From: Andrej Rosano > > > > Add support for Inverse Path USB armory board, an open source > > flash-drive sized computer based on Freescale i.MX53 S

Re: [U-Boot] [PATCH v3] arm: mx5: Add support for USB armory board

2015-03-25 Thread Vagrant Cascadian
On 2015-03-25, Stefano Babic wrote: >> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig >> index b9ebee1..a490084 100644 >> --- a/arch/arm/Kconfig >> +++ b/arch/arm/Kconfig >> @@ -462,6 +462,10 @@ config TARGET_MX53SMD >> bool "Support mx53smd" >> select CPU_V7 >> >> +config TARGET_USBA

Re: [U-Boot] [PATCH] config: peach: Correct memory layout environment settings

2015-03-25 Thread Sjoerd Simons
On Wed, 2015-03-25 at 12:58 -0400, Tom Rini wrote: > On Wed, Mar 25, 2015 at 09:32:45AM +0100, Sjoerd Simons wrote: > > On Wed, 2015-03-25 at 01:11 -0400, Tom Rini wrote: > > > On Mon, Mar 23, 2015 at 03:04:48PM -0600, Simon Glass wrote: > > > > Hi Sjoerd, > > > > > > > > On 12 March 2015 at 15:33

[U-Boot] [PATCH v2 15/80] dm: usb: Drop the legacy USB init sequence

2015-03-25 Thread Simon Glass
This CONFIG is not used anywhere in U-Boot, so drop it. Signed-off-by: Simon Glass --- Changes in v2: None common/usb.c | 26 -- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/common/usb.c b/common/usb.c index f87c6a5..330e6a2 100644 --- a/common/usb.c +

[U-Boot] [PATCH v2 22/80] dm: usb: Add driver model support for hubs

2015-03-25 Thread Simon Glass
Adjust the existing hub code to support driver model, and add a USB driver for hubs. Signed-off-by: Simon Glass --- Changes in v2: None common/usb_hub.c | 94 +++--- include/dm/uclass-id.h | 1 + 2 files changed, 91 insertions(+), 4 deletions(

[U-Boot] [PATCH v2 10/80] dm: gpio: Add an implementation for gpio_get_number()

2015-03-25 Thread Simon Glass
This has a prototype but no implementation. It returns the global GPIO number given a gpio_desc. It is useful for debugging in some cases. Signed-off-by: Simon Glass --- Changes in v2: None drivers/gpio/gpio-uclass.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/gpi

[U-Boot] [PATCH v2 54/80] dm: usb: dts: sandbox: Add some sample USB devices to sandbox

2015-03-25 Thread Simon Glass
These allow basic testing of the USB functionality within sandbox. Signed-off-by: Simon Glass --- Changes in v2: None arch/sandbox/dts/sandbox.dts | 40 1 file changed, 40 insertions(+) diff --git a/arch/sandbox/dts/sandbox.dts b/arch/sandbox/dts/sandb

[U-Boot] [PATCH v2 52/80] dm: usb: sandbox: Add an emulator for USB hub emulation

2015-03-25 Thread Simon Glass
All USB controllers need a root hub. Add a sandbox emulation for this so that we can add USB devices to sandbox. Signed-off-by: Simon Glass --- Changes in v2: None drivers/usb/emul/Makefile | 1 + drivers/usb/emul/sandbox_hub.c | 303 + include/us

[U-Boot] [PATCH v2 38/80] dm: usb: Refactor EHCI init

2015-03-25 Thread Simon Glass
Move the bulk of the code in usb_lowlevel_init() into a separate function which will also be used by driver model. Keep the CONFIG options out of this function by providing a tweak flag for Faraday. We need to avoid using CONFIG options in driver model code where possible, since it makes it impossi

[U-Boot] [PATCH v2 45/80] dm: usb: Split out the keyboard probe into its own function

2015-03-25 Thread Simon Glass
Before adding driver model support, split out code from this over-long function. Signed-off-by: Simon Glass --- Changes in v2: None common/usb_kbd.c | 89 1 file changed, 51 insertions(+), 38 deletions(-) diff --git a/common/usb_kbd.c b

[U-Boot] [PATCH v2 29/80] dm: usb: Move all the EHCI weak functions together and declare them

2015-03-25 Thread Simon Glass
Put these at the top of the file so they are in one place. Also add function prototypes to the header file to avoid call site mismatches. Signed-off-by: Simon Glass --- Changes in v2: None drivers/usb/host/ehci-hcd.c | 22 +++--- drivers/usb/host/ehci.h | 6 ++ 2 files

[U-Boot] [PATCH v2 24/80] dm: usb: Fix type problems in usb_stor_get_info()

2015-03-25 Thread Simon Glass
This function assumes that unsigned long is 32-bits wide, but it is not on 64-bit machines. Use the correct type, and add a few debug() lines also. Signed-off-by: Simon Glass --- Changes in v2: None common/usb_storage.c | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions(-)

[U-Boot] [PATCH v2 12/80] dm: usb: Adjust usb command to prepare for driver model

2015-03-25 Thread Simon Glass
Use 'udev' instead of 'dev' in a few places, reserving 'dev' for driver model's struct udevice. Also adjust the code in a few minor ways to make it easier to plumb in driver model. Signed-off-by: Simon Glass --- Changes in v2: None common/cmd_usb.c | 51 +---

[U-Boot] [PATCH v2 64/80] dm: usb: xhci: Factor out common init/uninit

2015-03-25 Thread Simon Glass
Since driver model will want to use most of the same code for XHCI init and uninit, put it in a separate function. Signed-off-by: Simon Glass --- Changes in v2: None drivers/usb/host/xhci.c | 85 ++--- 1 file changed, 52 insertions(+), 33 deletions(-

[U-Boot] [PATCH v2 78/80] dm: usb: tegra: Drop legacy USB code

2015-03-25 Thread Simon Glass
Drop the code that doesn't use driver model for USB. Signed-off-by: Simon Glass --- Changes in v2: None board/nvidia/common/board.c | 3 - drivers/usb/host/ehci-tegra.c | 150 -- include/fdtdec.h | 3 - lib/fdtdec.c |

[U-Boot] [PATCH v2 77/80] dm: usb: Add tests for the USB uclass

2015-03-25 Thread Simon Glass
This adds a simple test for probing and a functional test using the flash stick emulator, which tests a large chunk of the USB stack. Signed-off-by: Simon Glass --- Changes in v2: None test/dm/Makefile | 1 + test/dm/test-dm.sh | 3 +++ test/dm/test.dts | 41 +

[U-Boot] [PATCH v2 11/80] dm: usb: Add a uclass for USB controllers

2015-03-25 Thread Simon Glass
Add a uclass that can represent a USB controller. For now we do not create devices for things attached to the controller. This will be added later. Signed-off-by: Simon Glass --- Changes in v2: None drivers/usb/Kconfig | 14 ++ drivers/usb/host/Makefile | 4 + drivers/

[U-Boot] [PATCH v2 67/80] dm: usb: exynos: Adjust XHCI driver to support driver model

2015-03-25 Thread Simon Glass
Support driver model in the exynos XHCI driver. Signed-off-by: Simon Glass --- Changes in v2: None drivers/usb/host/xhci-exynos5.c | 120 +++- 1 file changed, 119 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci-exynos5.c b/drivers/usb/host/x

[U-Boot] [PATCH v2 63/80] dm: usb: xhci: Use explicit parameters for xhci_setup_addressable_virt_dev()

2015-03-25 Thread Simon Glass
This function should not be delving into struct usb_device. Pass in the parameters it needs directly. Signed-off-by: Simon Glass --- Changes in v2: None drivers/usb/host/xhci-mem.c | 19 +++ drivers/usb/host/xhci.c | 29 ++--- drivers/usb/host/xhci.h

[U-Boot] [PATCH v2 72/80] dm: usb: Add a generic descriptor struct

2015-03-25 Thread Simon Glass
This is useful for creating lists of descriptors, and is better than using void * for this purpose. Signed-off-by: Simon Glass --- Changes in v2: None include/linux/usb/ch9.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/linux/usb/ch9.h b/include/linux/usb/ch9.h index 10675b

[U-Boot] [PATCH v2 69/80] dm: usb: exynos: Enable both USB ports on snow

2015-03-25 Thread Simon Glass
Switch snow over to use both EHCI and XHCI at the same time. Signed-off-by: Simon Glass --- Changes in v2: None include/configs/snow.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/snow.h b/include/configs/snow.h index fe802f2..e024955 100644 --- a/include/configs/snow.

[U-Boot] [PATCH v2 58/80] dm: usb: tegra: Tidy up error handling and a static function

2015-03-25 Thread Simon Glass
Try to return useful error numbers where possible. Also avoid swallowing an error number when it is returned by a called function. Signed-off-by: Simon Glass --- Changes in v2: None drivers/usb/host/ehci-tegra.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff -

[U-Boot] [PATCH v2 73/80] dm: usb: Tidy up pipe value decoding

2015-03-25 Thread Simon Glass
Add a few more shifts/masks to make it easier to decode a pipe value (rather than just building it). We need this for USB device emulation. Signed-off-by: Simon Glass --- Changes in v2: None include/usb_defs.h | 23 +-- 1 file changed, 17 insertions(+), 6 deletions(-) diff

[U-Boot] [PATCH v2 50/80] dm: usb: sandbox: Reset emulation devices in usb stop()

2015-03-25 Thread Simon Glass
These devices must have their addresses removed ready for the next USB bus enumeration. Add this logic to usb_stop(). Signed-off-by: Simon Glass --- Changes in v2: None drivers/usb/host/usb-uclass.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/host/usb-uclass.c

[U-Boot] [PATCH v2 75/80] dm: test: Correct printf() output nit in 'dm uclass'

2015-03-25 Thread Simon Glass
Neither the hyphen nor the equals sign is needed. Signed-off-by: Simon Glass --- Changes in v2: None test/dm/cmd_dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/dm/cmd_dm.c b/test/dm/cmd_dm.c index 8d531fd..62e065c 100644 --- a/test/dm/cmd_dm.c +++ b/test/dm/cmd_d

[U-Boot] [PATCH v2 51/80] dm: usb: sandbox: Add an emulator for USB flash devices

2015-03-25 Thread Simon Glass
This emulator supports USB enumeration and allows a local file to be provided as the contents of the emulated flash stick. U-Boot can then use the file as it would a normal device, with all access passing through the usb_stor layer and the USB stack. Signed-off-by: Simon Glass --- Changes in v2:

[U-Boot] [PATCH v2 74/80] dm: usb: sandbox: Enable USB

2015-03-25 Thread Simon Glass
Enable USB emulation and associated features so that USB can be used in sandbox. Signed-off-by: Simon Glass --- Changes in v2: None configs/sandbox_defconfig | 4 include/configs/sandbox.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/configs/sandbox_defconfig b/configs/sandbox_d

[U-Boot] [PATCH v2 76/80] dm: test: Allow 'dm test' to select a particular test to run

2015-03-25 Thread Simon Glass
As well as running all tests, it is useful to be able to run a selected test. Signed-off-by: Simon Glass --- Changes in v2: None include/dm/test.h | 7 --- test/dm/cmd_dm.c| 11 --- test/dm/test-main.c | 7 +-- 3 files changed, 17 insertions(+), 8 deletions(-) diff --g

[U-Boot] [PATCH v2 57/80] dm: usb: tegra: Remove the port_addr_clear_csc variable

2015-03-25 Thread Simon Glass
This variable is a bit of a hack. We can obtain the same information from the normal device config. This will fit better with driver model, where global variables are best avoided. Signed-off-by: Simon Glass --- Changes in v2: None drivers/usb/host/ehci-tegra.c | 6 +- 1 file changed, 1 in

[U-Boot] [PATCH v2 60/80] dm: usb: tegra: Add driver model support to tegra EHCI

2015-03-25 Thread Simon Glass
Update this driver with driver model support for USB. Signed-off-by: Simon Glass --- Changes in v2: None drivers/usb/host/ehci-tegra.c | 83 +++ 1 file changed, 83 insertions(+) diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c

[U-Boot] [PATCH v2 79/80] dm: usb: exynos: Drop legacy USB code

2015-03-25 Thread Simon Glass
Drop the code that doesn't use driver model for USB. Signed-off-by: Simon Glass --- Changes in v2: None drivers/usb/host/ehci-exynos.c | 117 drivers/usb/host/xhci-exynos5.c | 108 - include/fdtdec.h|

[U-Boot] [PATCH v2 71/80] dm: usb: tegra: Move to driver model for USB

2015-03-25 Thread Simon Glass
Move Tegra boards over to driver model for USB EHCI. There are a few things that are no-longer needed (e.g. in fdtdec.h) but these will be cleaned up in a later patch to be applied one we are confident this change is fully tested. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/mac

[U-Boot] [PATCH v2 70/80] dm: usb: exynos: Enable both EHCI and XHCI on snow

2015-03-25 Thread Simon Glass
Since we can support both controllers now, enable this in the device tree. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/dts/exynos5250-snow.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/exynos5250-snow.dts b/arch/arm/dts/exynos5250-snow.dts index d6777ee..

[U-Boot] [PATCH v2 80/80] dm: usb: Add a README for driver model

2015-03-25 Thread Simon Glass
Add some documentation describing how USB is implemented with USB. This might make things easier for people to understand. Signed-off-by: Simon Glass --- Changes in v2: - Rewrite and expand series to support driver model fully doc/driver-model/usb-info.txt | 415 +++

[U-Boot] [PATCH v2 55/80] dm: usb: Add support for USB ethernet devices with driver model

2015-03-25 Thread Simon Glass
Add support for scanning USB etghernet devices with driver model. This mostly involves scanning all buses since device numbering is not unique across buses. Signed-off-by: Simon Glass --- Changes in v2: None drivers/usb/eth/usb_ether.c | 52 ++--- 1 file

[U-Boot] [PATCH v2 49/80] dm: usb: sandbox: Add a uclass for USB device emulation

2015-03-25 Thread Simon Glass
With sandbox we want to be able to emulate USB devices so that we can test the USB stack. Add a uclass to support this. It implements the same operations as a normal USB device driver, but in this case passes them on to an emulation driver. Signed-off-by: Simon Glass --- Changes in v2: None Ma

[U-Boot] [PATCH v2 65/80] dm: usb: Support driver model in XHCI

2015-03-25 Thread Simon Glass
Add driver model support in the XHCI support code so that it can be used by XHCI USB drivers. Signed-off-by: Simon Glass --- Changes in v2: None drivers/usb/host/xhci-mem.c | 1 + drivers/usb/host/xhci.c | 179 ++-- drivers/usb/host/xhci.h | 2

[U-Boot] [PATCH v2 48/80] dm: usb: Move struct usb_string to a common place

2015-03-25 Thread Simon Glass
This is needed for sandbox USB device emulation, so move it to a place where it can be found by things other than gadgets. Signed-off-by: Simon Glass --- Changes in v2: None include/linux/usb/ch9.h| 13 + include/linux/usb/gadget.h | 13 - 2 files changed, 13 insert

[U-Boot] [PATCH v2 53/80] dm: usb: sandbox: Add a driver for sandbox

2015-03-25 Thread Simon Glass
This driver supports using emulation devices to provide a USB bus within sandbox. Signed-off-by: Simon Glass --- Changes in v2: None drivers/usb/host/Makefile | 1 + drivers/usb/host/usb-sandbox.c | 117 + 2 files changed, 118 insertions(+) creat

[U-Boot] [PATCH v2 66/80] dm: usb: Rename the XHCI HCD to U-Boot

2015-03-25 Thread Simon Glass
This should be "U-Boot", not "u-boot". Signed-off-by: Simon Glass --- Changes in v2: None drivers/usb/host/xhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 6d9d4a6..7396c2d 100644 --- a/drivers/usb/host/xhci.c ++

[U-Boot] [PATCH v2 68/80] dm: usb: exynos: Use driver model for USB

2015-03-25 Thread Simon Glass
Convert Exynos boards over to use driver model for USB. This does not remove any unnecessary code so far. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/cpu/armv7/exynos/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/cpu/armv7/exynos/Kconfig b/arch/arm/cp

[U-Boot] [PATCH v2 28/80] dm: usb: Convert usb_storage to driver model

2015-03-25 Thread Simon Glass
Add support for scanning USB storage devices with driver model. This mostly involves adding a USB device ID for storage devices. Signed-off-by: Simon Glass --- Changes in v2: None common/usb_storage.c | 51 +-- 1 file changed, 49 insertions(+), 2

[U-Boot] [PATCH v2 59/80] dm: usb: tegra: Move most of init/uninit into a function

2015-03-25 Thread Simon Glass
We want to use mostly the same init and uninit code for driver model, so move the common part into two functions. Signed-off-by: Simon Glass --- Changes in v2: None drivers/usb/host/ehci-tegra.c | 143 -- 1 file changed, 81 insertions(+), 62 deletions(-)

[U-Boot] [PATCH v2 56/80] dm: usb: exynos: Add driver model support to exynos EHCI

2015-03-25 Thread Simon Glass
Update this driver with driver model support for USB. Signed-off-by: Simon Glass --- Changes in v2: None drivers/usb/host/ehci-exynos.c | 112 - 1 file changed, 111 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci-exynos.c b/drivers/usb/h

[U-Boot] [PATCH v2 36/80] dm: usb: Pass EHCI controller pointer to ehci_get_portsc_register()

2015-03-25 Thread Simon Glass
Adjust this function so that it is passed an EHCI controller pointer so that implementations can look up their controller. This makes the weak functions use a consistent API. Signed-off-by: Simon Glass --- Changes in v2: None drivers/usb/host/ehci-faraday.c | 4 ++-- drivers/usb/host/ehci-hcd.

[U-Boot] [PATCH v2 62/80] dm: usb: xhci: Use explicit parameters for xhci_alloc_virt_device()

2015-03-25 Thread Simon Glass
This function should not be delving into struct usb_device. Pass in the parameters it needs directly. Signed-off-by: Simon Glass --- Changes in v2: None drivers/usb/host/xhci-mem.c | 4 +--- drivers/usb/host/xhci.c | 2 +- drivers/usb/host/xhci.h | 2 +- 3 files changed, 3 insertions(+

[U-Boot] [PATCH v2 32/80] dm: usb: tegra: Store the controller type explicitly

2015-03-25 Thread Simon Glass
At present the tegra driver uses a separate pointer to know which controller type is in use. This works because only one controller type is used at a time. With driver model we want to make the controller state hermetic in the sense that it is not necessary to look elsewhere to know the controller

[U-Boot] [PATCH v2 61/80] dm: usb: xhci: Use a function to get xhci_ctrl

2015-03-25 Thread Simon Glass
Rather than getting this directly from struct usb_device, call a function to obtain it. This will make it possible for driver model to provide it another way. Signed-off-by: Simon Glass --- Changes in v2: None drivers/usb/host/xhci-ring.c | 8 drivers/usb/host/xhci.c | 19 ++

[U-Boot] [PATCH v2 42/80] dm: usb: Allow USB drivers to be declared and auto-probed

2015-03-25 Thread Simon Glass
USB devices in U-Boot are currently probed only after all devices have been enumerated. Each type of device is probed by custom code, e.g.: - USB storage - Keyboard - Ethernet With driver model this approach doesn't work very well. We could build a picture of the bus and then go back and add the

[U-Boot] [PATCH v2 39/80] dm: usb: Drop the EHCI weak functions

2015-03-25 Thread Simon Glass
These are a pain with driver model because we might have different EHCI drivers which want to implement them differently. Now that they use consistent function signatures, we can in good conscience move them to a struct. Signed-off-by: Simon Glass --- Changes in v2: None board/genesi/mx51_efik

[U-Boot] [PATCH v2 13/80] dm: usb: Adjust usb_alloc_new_device() to return an error

2015-03-25 Thread Simon Glass
This function returns NULL on error at present. Adjust it so that we can return a real error, as is needed with driver model. Also improve the error handling in its caller, usb_hub_port_connect_change(), and adjust the code order to prepare for driver model. Signed-off-by: Simon Glass --- Change

[U-Boot] [PATCH v2 30/80] dm: usb: Pass EHCI controller pointer to ehci_get_port_speed()

2015-03-25 Thread Simon Glass
Adjust this function so that it is passed an EHCI controller pointer so that implementations can look up their controller. Signed-off-by: Simon Glass --- Changes in v2: None drivers/usb/host/ehci-faraday.c | 5 +++-- drivers/usb/host/ehci-hcd.c | 4 ++-- drivers/usb/host/ehci-tegra.c | 5

[U-Boot] [PATCH v2 03/80] dm: test: bus: Use a local variable to simplify code

2015-03-25 Thread Simon Glass
Adjust this test to avoid repeating the same code too often. Signed-off-by: Simon Glass --- Changes in v2: None test/dm/bus.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/test/dm/bus.c b/test/dm/bus.c index faffe6a..116a52d 100644 --- a/test/dm/bus.c ++

[U-Boot] [PATCH v2 04/80] dm: exynos: snow: Move the keyboard to I2C

2015-03-25 Thread Simon Glass
The snow keyboard on shipping devices is actually on I2C not SPI. Move the label to indicate this. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/dts/exynos5250-snow.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/exynos5250-snow.dts b/arch

[U-Boot] [PATCH v2 43/80] dm: usb: Bind generic USB devices when there is no driver

2015-03-25 Thread Simon Glass
At present USB devices with no driver model driver cannot be seen in the device list, and we fail to set them up correctly. This means they cannot be used. While having real drivers that support driver model for all USB devices is the eventual goal, we are not there yet. As a stop-gap, add a gene

[U-Boot] [PATCH v2 27/80] dm: usb: Move storage device scanning into its own function

2015-03-25 Thread Simon Glass
The usb_stor_scan() function is quite long, so split out the code that scans each device into its own function. Also, rather than setting up the block device list once at the start, set it up as each device is scanned. This makes it possible to use this code from driver model. Signed-off-by: Simon

[U-Boot] [PATCH v2 44/80] dm: usb: Allow setting up a USB controller as a device/gadget

2015-03-25 Thread Simon Glass
Some controllers support OTG (on-the-go) where they can operate as either host or device. The gadget layer in U-Boot supports this. While this layer does not interact with driver model, we can provide a function which sets up the controller in the correct way. This way the code at least builds (al

[U-Boot] [PATCH v2 33/80] dm: usb: Pass EHCI controller pointer to ehci_powerup_fixup()

2015-03-25 Thread Simon Glass
Adjust this function so that it is passed an EHCI controller pointer so that implementations can look up their controller. Signed-off-by: Simon Glass --- Changes in v2: None board/genesi/mx51_efikamx/efikamx-usb.c | 3 ++- drivers/usb/host/ehci-hcd.c | 5 +++-- drivers/usb/host/ehc

  1   2   >