libpayload: Add init() function to hci_t and rework uhci_reset()
commit6e711c6a97a9d4122615018121d0d2a37b642ed1
authorNico Huber <nico.huber@secunet.com>
Mon, 12 Nov 2012 15:20:32 +0000 (12 16:20 +0100)
committerRonald G. Minnich <rminnich@gmail.com>
Wed, 14 Nov 2012 16:45:16 +0000 (14 17:45 +0100)
tree745114ff1c6b485f4194818203edea3714cf56ce
parentaaa212d17d0070850f1dd2195129788acc978a9f
libpayload: Add init() function to hci_t and rework uhci_reset()

uhci_reset() differs in semantics compared to the other HCI's reset()
implementations. uhci_reset() does some initialization work after a
controller reset. So move the initialization part to a new function,
uhci_reinit(), which get's exported through a new entry in hci_t:
hci_t.init().

Warning: This breaks code that relies on the current, special,
counterintuitive behaviour of uhci_reset(). If one wants a working host
controller after calling hci_t.reset(), he should call hci_t.init()
afterwards.

Change-Id: Ia7ce80865d12d11157645ce251f77f349f8e3c34
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: http://review.coreboot.org/1851
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
payloads/libpayload/drivers/usb/ehci.c
payloads/libpayload/drivers/usb/ohci.c
payloads/libpayload/drivers/usb/uhci.c
payloads/libpayload/drivers/usb/xhci.c
payloads/libpayload/include/usb/usb.h