Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 1 | /* |
| 2 | * SAMSUNG S5P USB HOST EHCI Controller |
| 3 | * |
| 4 | * Copyright (C) 2011 Samsung Electronics Co.Ltd |
| 5 | * Author: Jingoo Han <jg1.han@samsung.com> |
| 6 | * Author: Joonyoung Shim <jy0922.shim@samsung.com> |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify it |
| 9 | * under the terms of the GNU General Public License as published by the |
| 10 | * Free Software Foundation; either version 2 of the License, or (at your |
| 11 | * option) any later version. |
| 12 | * |
| 13 | */ |
| 14 | |
| 15 | #include <linux/clk.h> |
Vivek Gautam | 2c026e2 | 2012-07-16 11:25:37 +0530 | [diff] [blame] | 16 | #include <linux/of.h> |
Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 17 | #include <linux/platform_device.h> |
Vivek Gautam | fd81d59 | 2012-07-17 10:10:50 +0530 | [diff] [blame] | 18 | #include <linux/of_gpio.h> |
Arnd Bergmann | 436d42c | 2012-08-24 15:22:12 +0200 | [diff] [blame] | 19 | #include <linux/platform_data/usb-ehci-s5p.h> |
Vivek Gautam | d233c19 | 2013-01-22 18:30:42 +0530 | [diff] [blame] | 20 | #include <linux/usb/phy.h> |
Vivek Gautam | b506eeb | 2013-01-22 18:30:40 +0530 | [diff] [blame] | 21 | #include <linux/usb/samsung_usb_phy.h> |
Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 22 | #include <plat/usb-phy.h> |
| 23 | |
Jingoo Han | 88555a6 | 2012-03-05 10:40:14 +0900 | [diff] [blame] | 24 | #define EHCI_INSNREG00(base) (base + 0x90) |
| 25 | #define EHCI_INSNREG00_ENA_INCR16 (0x1 << 25) |
| 26 | #define EHCI_INSNREG00_ENA_INCR8 (0x1 << 24) |
| 27 | #define EHCI_INSNREG00_ENA_INCR4 (0x1 << 23) |
| 28 | #define EHCI_INSNREG00_ENA_INCRX_ALIGN (0x1 << 22) |
| 29 | #define EHCI_INSNREG00_ENABLE_DMA_BURST \ |
| 30 | (EHCI_INSNREG00_ENA_INCR16 | EHCI_INSNREG00_ENA_INCR8 | \ |
| 31 | EHCI_INSNREG00_ENA_INCR4 | EHCI_INSNREG00_ENA_INCRX_ALIGN) |
| 32 | |
Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 33 | struct s5p_ehci_hcd { |
| 34 | struct device *dev; |
| 35 | struct usb_hcd *hcd; |
| 36 | struct clk *clk; |
Vivek Gautam | d233c19 | 2013-01-22 18:30:42 +0530 | [diff] [blame] | 37 | struct usb_phy *phy; |
| 38 | struct usb_otg *otg; |
| 39 | struct s5p_ehci_platdata *pdata; |
Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 40 | }; |
| 41 | |
| 42 | static const struct hc_driver s5p_ehci_hc_driver = { |
| 43 | .description = hcd_name, |
| 44 | .product_desc = "S5P EHCI Host Controller", |
| 45 | .hcd_priv_size = sizeof(struct ehci_hcd), |
| 46 | |
| 47 | .irq = ehci_irq, |
| 48 | .flags = HCD_MEMORY | HCD_USB2, |
| 49 | |
Alan Stern | 1a49e2a | 2012-07-09 15:55:14 -0400 | [diff] [blame] | 50 | .reset = ehci_setup, |
Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 51 | .start = ehci_run, |
| 52 | .stop = ehci_stop, |
| 53 | .shutdown = ehci_shutdown, |
| 54 | |
| 55 | .get_frame_number = ehci_get_frame, |
| 56 | |
| 57 | .urb_enqueue = ehci_urb_enqueue, |
| 58 | .urb_dequeue = ehci_urb_dequeue, |
| 59 | .endpoint_disable = ehci_endpoint_disable, |
| 60 | .endpoint_reset = ehci_endpoint_reset, |
| 61 | |
| 62 | .hub_status_data = ehci_hub_status_data, |
| 63 | .hub_control = ehci_hub_control, |
| 64 | .bus_suspend = ehci_bus_suspend, |
| 65 | .bus_resume = ehci_bus_resume, |
| 66 | |
| 67 | .relinquish_port = ehci_relinquish_port, |
| 68 | .port_handed_over = ehci_port_handed_over, |
| 69 | |
| 70 | .clear_tt_buffer_complete = ehci_clear_tt_buffer_complete, |
| 71 | }; |
| 72 | |
Vivek Gautam | d233c19 | 2013-01-22 18:30:42 +0530 | [diff] [blame] | 73 | static void s5p_ehci_phy_enable(struct s5p_ehci_hcd *s5p_ehci) |
| 74 | { |
| 75 | struct platform_device *pdev = to_platform_device(s5p_ehci->dev); |
| 76 | |
| 77 | if (s5p_ehci->phy) |
| 78 | usb_phy_init(s5p_ehci->phy); |
| 79 | else if (s5p_ehci->pdata->phy_init) |
| 80 | s5p_ehci->pdata->phy_init(pdev, USB_PHY_TYPE_HOST); |
| 81 | } |
| 82 | |
| 83 | static void s5p_ehci_phy_disable(struct s5p_ehci_hcd *s5p_ehci) |
| 84 | { |
| 85 | struct platform_device *pdev = to_platform_device(s5p_ehci->dev); |
| 86 | |
| 87 | if (s5p_ehci->phy) |
| 88 | usb_phy_shutdown(s5p_ehci->phy); |
| 89 | else if (s5p_ehci->pdata->phy_exit) |
| 90 | s5p_ehci->pdata->phy_exit(pdev, USB_PHY_TYPE_HOST); |
| 91 | } |
| 92 | |
Vivek Gautam | fd81d59 | 2012-07-17 10:10:50 +0530 | [diff] [blame] | 93 | static void s5p_setup_vbus_gpio(struct platform_device *pdev) |
| 94 | { |
| 95 | int err; |
| 96 | int gpio; |
| 97 | |
| 98 | if (!pdev->dev.of_node) |
| 99 | return; |
| 100 | |
| 101 | gpio = of_get_named_gpio(pdev->dev.of_node, |
| 102 | "samsung,vbus-gpio", 0); |
| 103 | if (!gpio_is_valid(gpio)) |
| 104 | return; |
| 105 | |
| 106 | err = gpio_request_one(gpio, GPIOF_OUT_INIT_HIGH, "ehci_vbus_gpio"); |
| 107 | if (err) |
| 108 | dev_err(&pdev->dev, "can't request ehci vbus gpio %d", gpio); |
| 109 | } |
| 110 | |
Vivek Gautam | 2c026e2 | 2012-07-16 11:25:37 +0530 | [diff] [blame] | 111 | static u64 ehci_s5p_dma_mask = DMA_BIT_MASK(32); |
| 112 | |
Bill Pemberton | 41ac7b3 | 2012-11-19 13:21:48 -0500 | [diff] [blame] | 113 | static int s5p_ehci_probe(struct platform_device *pdev) |
Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 114 | { |
Vivek Gautam | d233c19 | 2013-01-22 18:30:42 +0530 | [diff] [blame] | 115 | struct s5p_ehci_platdata *pdata = pdev->dev.platform_data; |
Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 116 | struct s5p_ehci_hcd *s5p_ehci; |
| 117 | struct usb_hcd *hcd; |
| 118 | struct ehci_hcd *ehci; |
| 119 | struct resource *res; |
Vivek Gautam | d233c19 | 2013-01-22 18:30:42 +0530 | [diff] [blame] | 120 | struct usb_phy *phy; |
Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 121 | int irq; |
| 122 | int err; |
| 123 | |
Vivek Gautam | 2c026e2 | 2012-07-16 11:25:37 +0530 | [diff] [blame] | 124 | /* |
| 125 | * Right now device-tree probed devices don't get dma_mask set. |
| 126 | * Since shared usb code relies on it, set it here for now. |
| 127 | * Once we move to full device tree support this will vanish off. |
| 128 | */ |
| 129 | if (!pdev->dev.dma_mask) |
| 130 | pdev->dev.dma_mask = &ehci_s5p_dma_mask; |
| 131 | if (!pdev->dev.coherent_dma_mask) |
| 132 | pdev->dev.coherent_dma_mask = DMA_BIT_MASK(32); |
| 133 | |
Vivek Gautam | fd81d59 | 2012-07-17 10:10:50 +0530 | [diff] [blame] | 134 | s5p_setup_vbus_gpio(pdev); |
| 135 | |
Jingoo Han | 9cb0756 | 2012-06-28 16:29:46 +0900 | [diff] [blame] | 136 | s5p_ehci = devm_kzalloc(&pdev->dev, sizeof(struct s5p_ehci_hcd), |
| 137 | GFP_KERNEL); |
Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 138 | if (!s5p_ehci) |
| 139 | return -ENOMEM; |
| 140 | |
Vivek Gautam | d233c19 | 2013-01-22 18:30:42 +0530 | [diff] [blame] | 141 | phy = devm_usb_get_phy(&pdev->dev, USB_PHY_TYPE_USB2); |
Felipe Balbi | a16283e | 2013-03-15 11:04:15 +0200 | [diff] [blame^] | 142 | if (IS_ERR(phy)) { |
Vivek Gautam | d233c19 | 2013-01-22 18:30:42 +0530 | [diff] [blame] | 143 | /* Fallback to pdata */ |
| 144 | if (!pdata) { |
| 145 | dev_warn(&pdev->dev, "no platform data or transceiver defined\n"); |
| 146 | return -EPROBE_DEFER; |
| 147 | } else { |
| 148 | s5p_ehci->pdata = pdata; |
| 149 | } |
| 150 | } else { |
| 151 | s5p_ehci->phy = phy; |
| 152 | s5p_ehci->otg = phy->otg; |
| 153 | } |
| 154 | |
Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 155 | s5p_ehci->dev = &pdev->dev; |
| 156 | |
| 157 | hcd = usb_create_hcd(&s5p_ehci_hc_driver, &pdev->dev, |
| 158 | dev_name(&pdev->dev)); |
| 159 | if (!hcd) { |
| 160 | dev_err(&pdev->dev, "Unable to create HCD\n"); |
Jingoo Han | 9cb0756 | 2012-06-28 16:29:46 +0900 | [diff] [blame] | 161 | return -ENOMEM; |
Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 162 | } |
| 163 | |
Yulgon Kim | e5d3d44 | 2011-08-18 14:02:45 +0900 | [diff] [blame] | 164 | s5p_ehci->hcd = hcd; |
Julia Lawall | 63fd0ae | 2012-07-30 16:43:44 +0200 | [diff] [blame] | 165 | s5p_ehci->clk = devm_clk_get(&pdev->dev, "usbhost"); |
Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 166 | |
| 167 | if (IS_ERR(s5p_ehci->clk)) { |
| 168 | dev_err(&pdev->dev, "Failed to get usbhost clock\n"); |
| 169 | err = PTR_ERR(s5p_ehci->clk); |
| 170 | goto fail_clk; |
| 171 | } |
| 172 | |
Thomas Abraham | e1deb56 | 2012-10-03 08:40:42 +0900 | [diff] [blame] | 173 | err = clk_prepare_enable(s5p_ehci->clk); |
Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 174 | if (err) |
Julia Lawall | 63fd0ae | 2012-07-30 16:43:44 +0200 | [diff] [blame] | 175 | goto fail_clk; |
Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 176 | |
| 177 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
| 178 | if (!res) { |
| 179 | dev_err(&pdev->dev, "Failed to get I/O memory\n"); |
| 180 | err = -ENXIO; |
| 181 | goto fail_io; |
| 182 | } |
| 183 | |
| 184 | hcd->rsrc_start = res->start; |
| 185 | hcd->rsrc_len = resource_size(res); |
Jingoo Han | 9cb0756 | 2012-06-28 16:29:46 +0900 | [diff] [blame] | 186 | hcd->regs = devm_ioremap(&pdev->dev, res->start, hcd->rsrc_len); |
Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 187 | if (!hcd->regs) { |
| 188 | dev_err(&pdev->dev, "Failed to remap I/O memory\n"); |
| 189 | err = -ENOMEM; |
| 190 | goto fail_io; |
| 191 | } |
| 192 | |
| 193 | irq = platform_get_irq(pdev, 0); |
| 194 | if (!irq) { |
| 195 | dev_err(&pdev->dev, "Failed to get IRQ\n"); |
| 196 | err = -ENODEV; |
Jingoo Han | 9cb0756 | 2012-06-28 16:29:46 +0900 | [diff] [blame] | 197 | goto fail_io; |
Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 198 | } |
| 199 | |
Vivek Gautam | d233c19 | 2013-01-22 18:30:42 +0530 | [diff] [blame] | 200 | if (s5p_ehci->otg) |
| 201 | s5p_ehci->otg->set_host(s5p_ehci->otg, &s5p_ehci->hcd->self); |
| 202 | |
| 203 | s5p_ehci_phy_enable(s5p_ehci); |
Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 204 | |
| 205 | ehci = hcd_to_ehci(hcd); |
| 206 | ehci->caps = hcd->regs; |
Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 207 | |
Jingoo Han | 88555a6 | 2012-03-05 10:40:14 +0900 | [diff] [blame] | 208 | /* DMA burst Enable */ |
| 209 | writel(EHCI_INSNREG00_ENABLE_DMA_BURST, EHCI_INSNREG00(hcd->regs)); |
| 210 | |
Yong Zhang | b5dd18d | 2011-09-07 16:10:52 +0800 | [diff] [blame] | 211 | err = usb_add_hcd(hcd, irq, IRQF_SHARED); |
Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 212 | if (err) { |
| 213 | dev_err(&pdev->dev, "Failed to add USB HCD\n"); |
Vivek Gautam | d233c19 | 2013-01-22 18:30:42 +0530 | [diff] [blame] | 214 | goto fail_add_hcd; |
Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 215 | } |
| 216 | |
| 217 | platform_set_drvdata(pdev, s5p_ehci); |
| 218 | |
| 219 | return 0; |
| 220 | |
Vivek Gautam | d233c19 | 2013-01-22 18:30:42 +0530 | [diff] [blame] | 221 | fail_add_hcd: |
| 222 | s5p_ehci_phy_disable(s5p_ehci); |
Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 223 | fail_io: |
Thomas Abraham | e1deb56 | 2012-10-03 08:40:42 +0900 | [diff] [blame] | 224 | clk_disable_unprepare(s5p_ehci->clk); |
Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 225 | fail_clk: |
| 226 | usb_put_hcd(hcd); |
Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 227 | return err; |
| 228 | } |
| 229 | |
Bill Pemberton | fb4e98a | 2012-11-19 13:26:20 -0500 | [diff] [blame] | 230 | static int s5p_ehci_remove(struct platform_device *pdev) |
Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 231 | { |
Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 232 | struct s5p_ehci_hcd *s5p_ehci = platform_get_drvdata(pdev); |
| 233 | struct usb_hcd *hcd = s5p_ehci->hcd; |
| 234 | |
| 235 | usb_remove_hcd(hcd); |
| 236 | |
Vivek Gautam | d233c19 | 2013-01-22 18:30:42 +0530 | [diff] [blame] | 237 | if (s5p_ehci->otg) |
| 238 | s5p_ehci->otg->set_host(s5p_ehci->otg, &s5p_ehci->hcd->self); |
| 239 | |
| 240 | s5p_ehci_phy_disable(s5p_ehci); |
Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 241 | |
Thomas Abraham | e1deb56 | 2012-10-03 08:40:42 +0900 | [diff] [blame] | 242 | clk_disable_unprepare(s5p_ehci->clk); |
Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 243 | |
| 244 | usb_put_hcd(hcd); |
Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 245 | |
| 246 | return 0; |
| 247 | } |
| 248 | |
| 249 | static void s5p_ehci_shutdown(struct platform_device *pdev) |
| 250 | { |
| 251 | struct s5p_ehci_hcd *s5p_ehci = platform_get_drvdata(pdev); |
| 252 | struct usb_hcd *hcd = s5p_ehci->hcd; |
| 253 | |
| 254 | if (hcd->driver->shutdown) |
| 255 | hcd->driver->shutdown(hcd); |
| 256 | } |
| 257 | |
Jingoo Han | 1acb30e | 2011-05-20 20:48:33 +0900 | [diff] [blame] | 258 | #ifdef CONFIG_PM |
| 259 | static int s5p_ehci_suspend(struct device *dev) |
| 260 | { |
| 261 | struct s5p_ehci_hcd *s5p_ehci = dev_get_drvdata(dev); |
| 262 | struct usb_hcd *hcd = s5p_ehci->hcd; |
Alan Stern | c5cf921 | 2012-06-28 11:19:02 -0400 | [diff] [blame] | 263 | bool do_wakeup = device_may_wakeup(dev); |
Alan Stern | c5cf921 | 2012-06-28 11:19:02 -0400 | [diff] [blame] | 264 | int rc; |
Jingoo Han | 1acb30e | 2011-05-20 20:48:33 +0900 | [diff] [blame] | 265 | |
Alan Stern | c5cf921 | 2012-06-28 11:19:02 -0400 | [diff] [blame] | 266 | rc = ehci_suspend(hcd, do_wakeup); |
Jingoo Han | 1acb30e | 2011-05-20 20:48:33 +0900 | [diff] [blame] | 267 | |
Vivek Gautam | d233c19 | 2013-01-22 18:30:42 +0530 | [diff] [blame] | 268 | if (s5p_ehci->otg) |
| 269 | s5p_ehci->otg->set_host(s5p_ehci->otg, &s5p_ehci->hcd->self); |
| 270 | |
| 271 | s5p_ehci_phy_disable(s5p_ehci); |
Jingoo Han | 1acb30e | 2011-05-20 20:48:33 +0900 | [diff] [blame] | 272 | |
Thomas Abraham | e1deb56 | 2012-10-03 08:40:42 +0900 | [diff] [blame] | 273 | clk_disable_unprepare(s5p_ehci->clk); |
Jingoo Han | 8b4fc8c | 2012-04-13 11:06:36 +0900 | [diff] [blame] | 274 | |
Jingoo Han | 1acb30e | 2011-05-20 20:48:33 +0900 | [diff] [blame] | 275 | return rc; |
| 276 | } |
| 277 | |
| 278 | static int s5p_ehci_resume(struct device *dev) |
| 279 | { |
| 280 | struct s5p_ehci_hcd *s5p_ehci = dev_get_drvdata(dev); |
| 281 | struct usb_hcd *hcd = s5p_ehci->hcd; |
Jingoo Han | 1acb30e | 2011-05-20 20:48:33 +0900 | [diff] [blame] | 282 | |
Thomas Abraham | e1deb56 | 2012-10-03 08:40:42 +0900 | [diff] [blame] | 283 | clk_prepare_enable(s5p_ehci->clk); |
Jingoo Han | 8b4fc8c | 2012-04-13 11:06:36 +0900 | [diff] [blame] | 284 | |
Vivek Gautam | d233c19 | 2013-01-22 18:30:42 +0530 | [diff] [blame] | 285 | if (s5p_ehci->otg) |
| 286 | s5p_ehci->otg->set_host(s5p_ehci->otg, &s5p_ehci->hcd->self); |
| 287 | |
| 288 | s5p_ehci_phy_enable(s5p_ehci); |
Jingoo Han | 1acb30e | 2011-05-20 20:48:33 +0900 | [diff] [blame] | 289 | |
Jingoo Han | 88555a6 | 2012-03-05 10:40:14 +0900 | [diff] [blame] | 290 | /* DMA burst Enable */ |
| 291 | writel(EHCI_INSNREG00_ENABLE_DMA_BURST, EHCI_INSNREG00(hcd->regs)); |
| 292 | |
Alan Stern | c5cf921 | 2012-06-28 11:19:02 -0400 | [diff] [blame] | 293 | ehci_resume(hcd, false); |
Jingoo Han | 1acb30e | 2011-05-20 20:48:33 +0900 | [diff] [blame] | 294 | return 0; |
| 295 | } |
| 296 | #else |
| 297 | #define s5p_ehci_suspend NULL |
| 298 | #define s5p_ehci_resume NULL |
| 299 | #endif |
| 300 | |
| 301 | static const struct dev_pm_ops s5p_ehci_pm_ops = { |
| 302 | .suspend = s5p_ehci_suspend, |
| 303 | .resume = s5p_ehci_resume, |
| 304 | }; |
| 305 | |
Vivek Gautam | 2c026e2 | 2012-07-16 11:25:37 +0530 | [diff] [blame] | 306 | #ifdef CONFIG_OF |
| 307 | static const struct of_device_id exynos_ehci_match[] = { |
Vivek Gautam | 6e24777 | 2013-01-24 19:15:29 +0530 | [diff] [blame] | 308 | { .compatible = "samsung,exynos4210-ehci" }, |
Vivek Gautam | 2c026e2 | 2012-07-16 11:25:37 +0530 | [diff] [blame] | 309 | {}, |
| 310 | }; |
| 311 | MODULE_DEVICE_TABLE(of, exynos_ehci_match); |
| 312 | #endif |
| 313 | |
Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 314 | static struct platform_driver s5p_ehci_driver = { |
| 315 | .probe = s5p_ehci_probe, |
Bill Pemberton | 7690417 | 2012-11-19 13:21:08 -0500 | [diff] [blame] | 316 | .remove = s5p_ehci_remove, |
Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 317 | .shutdown = s5p_ehci_shutdown, |
| 318 | .driver = { |
| 319 | .name = "s5p-ehci", |
| 320 | .owner = THIS_MODULE, |
Jingoo Han | 1acb30e | 2011-05-20 20:48:33 +0900 | [diff] [blame] | 321 | .pm = &s5p_ehci_pm_ops, |
Vivek Gautam | 2c026e2 | 2012-07-16 11:25:37 +0530 | [diff] [blame] | 322 | .of_match_table = of_match_ptr(exynos_ehci_match), |
Joonyoung Shim | 1bcc5aa | 2011-04-08 14:08:50 +0900 | [diff] [blame] | 323 | } |
| 324 | }; |
| 325 | |
| 326 | MODULE_ALIAS("platform:s5p-ehci"); |