]> git.ipfire.org Git - people/ms/u-boot.git/commit
dm: usb: Refactor EHCI init
authorSimon Glass <sjg@chromium.org>
Wed, 25 Mar 2015 18:22:26 +0000 (12:22 -0600)
committerSimon Glass <sjg@chromium.org>
Sat, 18 Apr 2015 17:11:24 +0000 (11:11 -0600)
commit7372b5bd318515c0e756a96e1f730a3ff119bd31
treeaffc02a50ac064bf826d6f09ba0a1915df7e5d6c
parent24ed894fc05618aa38b82dc158e15d712833132b
dm: usb: Refactor EHCI init

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
impossible to use multiple controllers in that code where they have
different options.

The CONFIG_EHCI_HCD_INIT_AFTER_RESET option is also kept out of the
common init function. With driver model the controller will be able to
perform this extra init itself after registering with the EHCI layer.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Marek Vasut <marex@denx.de>
drivers/usb/host/ehci-hcd.c
drivers/usb/host/ehci.h