summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-07-23 08:08:15 +0800
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-07-29 14:05:22 +0800
commitee80cbcd61fdad8b6b75be23b8417dc1dc188d59 (patch)
tree358f1ac445640d172eb2ecdbec006d26b1f1a7fc /include
parent06c36cf09e08cfd054c2d1e61be8492c4e5dc929 (diff)
downloadbarebox-ee80cbcd61fdad8b6b75be23b8417dc1dc188d59.tar.gz
barebox-ee80cbcd61fdad8b6b75be23b8417dc1dc188d59.tar.xz
resource: introduce add_usb_ehci_device to register echi device
pass the hccr and hcor register base via resource instroduce add_generic_usb_echi_device with hccr = base + 0x100 and hcor = base + 0x140 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'include')
-rw-r--r--include/driver.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/driver.h b/include/driver.h
index 38c0bcae7f..baf8d8810f 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -246,6 +246,23 @@ static inline struct device_d *add_dm9000_device(int id, resource_size_t base,
}
#endif
+#ifdef CONFIG_USB_EHCI
+struct device_d *add_usb_ehci_device(int id, resource_size_t hccr,
+ resource_size_t hcor, void *pdata);
+#else
+static inline struct device_d *add_usb_ehci_device(int id, resource_size_t hccr,
+ resource_size_t hcor, void *pdata)
+{
+ return NULL;
+}
+#endif
+
+static inline struct device_d *add_generic_usb_ehci_device(int id,
+ resource_size_t base, void *pdata)
+{
+ return add_usb_ehci_device(id, base + 0x100, base + 0x140, pdata);
+}
+
/* linear list over all available devices
*/
extern struct list_head device_list;