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
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
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
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
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
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
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
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
> -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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
>>
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
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
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
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
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.
>
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
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
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
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
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
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!
-
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
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
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
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
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
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
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
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
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
+
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(
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
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
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
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
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
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
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(-)
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 +---
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(-
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 |
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 +
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/
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
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
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
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.
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 -
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
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
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
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:
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
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
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
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
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|
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
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..
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 +++
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
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
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
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
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
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
++
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
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
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(-)
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
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.
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(+
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
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 ++
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
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
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
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
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
++
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
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
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
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
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 - 100 of 193 matches
Mail list logo