1 #include "hal_clk.h"
2 #include "hal_reset.h"
3 #include "usb_sun8iw18.h"
4 
5 static const struct platform_usb_config *usb_hci_table = 0;
6 
7 static const struct platform_usb_config usb_otg_table =
8 {
9     .name       = "sunxi-otg",
10     .pbase      = SUNXI_USB_OTG_PBASE,
11     .irq        = 69,
12     .usb_clk    = 0,
13     .usb_rst    = 0,
14     .phy_clk    = 0,
15     .phy_rst    = 0
16 };
17 
platform_get_hci_table(void)18 struct platform_usb_config *platform_get_hci_table(void)
19 {
20     return (struct platform_usb_config *)usb_hci_table;
21 }
22 
platform_get_otg_table(void)23 struct platform_usb_config *platform_get_otg_table(void)
24 {
25     return (struct platform_usb_config *)&usb_otg_table;
26 }
27