musb_dsps.c 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621
  1. /*
  2. * Texas Instruments DSPS platforms "glue layer"
  3. *
  4. * Copyright (C) 2012, by Texas Instruments
  5. *
  6. * Based on the am35x "glue layer" code.
  7. *
  8. * This file is part of the Inventra Controller Driver for Linux.
  9. *
  10. * The Inventra Controller Driver for Linux is free software; you
  11. * can redistribute it and/or modify it under the terms of the GNU
  12. * General Public License version 2 as published by the Free Software
  13. * Foundation.
  14. *
  15. * The Inventra Controller Driver for Linux is distributed in
  16. * the hope that it will be useful, but WITHOUT ANY WARRANTY;
  17. * without even the implied warranty of MERCHANTABILITY or
  18. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
  19. * License for more details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with The Inventra Controller Driver for Linux ; if not,
  23. * write to the Free Software Foundation, Inc., 59 Temple Place,
  24. * Suite 330, Boston, MA 02111-1307 USA
  25. *
  26. * musb_dsps.c will be a common file for all the TI DSPS platforms
  27. * such as dm64x, dm36x, dm35x, da8x, am35x and ti81x.
  28. * For now only ti81x is using this and in future davinci.c, am35x.c
  29. * da8xx.c would be merged to this file after testing.
  30. */
  31. #include <linux/init.h>
  32. #include <linux/io.h>
  33. #include <linux/err.h>
  34. #include <linux/platform_device.h>
  35. #include <linux/dma-mapping.h>
  36. #include <linux/pm_runtime.h>
  37. #include <linux/module.h>
  38. #include <linux/usb/usb_phy_gen_xceiv.h>
  39. #include <linux/platform_data/usb-omap.h>
  40. #include <linux/sizes.h>
  41. #include <linux/of.h>
  42. #include <linux/of_device.h>
  43. #include <linux/of_address.h>
  44. #include <linux/of_irq.h>
  45. #include "musb_core.h"
  46. static const struct of_device_id musb_dsps_of_match[];
  47. /**
  48. * avoid using musb_readx()/musb_writex() as glue layer should not be
  49. * dependent on musb core layer symbols.
  50. */
  51. static inline u8 dsps_readb(const void __iomem *addr, unsigned offset)
  52. { return __raw_readb(addr + offset); }
  53. static inline u32 dsps_readl(const void __iomem *addr, unsigned offset)
  54. { return __raw_readl(addr + offset); }
  55. static inline void dsps_writeb(void __iomem *addr, unsigned offset, u8 data)
  56. { __raw_writeb(data, addr + offset); }
  57. static inline void dsps_writel(void __iomem *addr, unsigned offset, u32 data)
  58. { __raw_writel(data, addr + offset); }
  59. /**
  60. * DSPS musb wrapper register offset.
  61. * FIXME: This should be expanded to have all the wrapper registers from TI DSPS
  62. * musb ips.
  63. */
  64. struct dsps_musb_wrapper {
  65. u16 revision;
  66. u16 control;
  67. u16 status;
  68. u16 epintr_set;
  69. u16 epintr_clear;
  70. u16 epintr_status;
  71. u16 coreintr_set;
  72. u16 coreintr_clear;
  73. u16 coreintr_status;
  74. u16 phy_utmi;
  75. u16 mode;
  76. /* bit positions for control */
  77. unsigned reset:5;
  78. /* bit positions for interrupt */
  79. unsigned usb_shift:5;
  80. u32 usb_mask;
  81. u32 usb_bitmap;
  82. unsigned drvvbus:5;
  83. unsigned txep_shift:5;
  84. u32 txep_mask;
  85. u32 txep_bitmap;
  86. unsigned rxep_shift:5;
  87. u32 rxep_mask;
  88. u32 rxep_bitmap;
  89. /* bit positions for phy_utmi */
  90. unsigned otg_disable:5;
  91. /* bit positions for mode */
  92. unsigned iddig:5;
  93. /* miscellaneous stuff */
  94. u8 poll_seconds;
  95. };
  96. /**
  97. * DSPS glue structure.
  98. */
  99. struct dsps_glue {
  100. struct device *dev;
  101. struct platform_device *musb; /* child musb pdev */
  102. const struct dsps_musb_wrapper *wrp; /* wrapper register offsets */
  103. struct timer_list timer; /* otg_workaround timer */
  104. unsigned long last_timer; /* last timer data for each instance */
  105. };
  106. /**
  107. * dsps_musb_enable - enable interrupts
  108. */
  109. static void dsps_musb_enable(struct musb *musb)
  110. {
  111. struct device *dev = musb->controller;
  112. struct platform_device *pdev = to_platform_device(dev->parent);
  113. struct dsps_glue *glue = platform_get_drvdata(pdev);
  114. const struct dsps_musb_wrapper *wrp = glue->wrp;
  115. void __iomem *reg_base = musb->ctrl_base;
  116. u32 epmask, coremask;
  117. /* Workaround: setup IRQs through both register sets. */
  118. epmask = ((musb->epmask & wrp->txep_mask) << wrp->txep_shift) |
  119. ((musb->epmask & wrp->rxep_mask) << wrp->rxep_shift);
  120. coremask = (wrp->usb_bitmap & ~MUSB_INTR_SOF);
  121. dsps_writel(reg_base, wrp->epintr_set, epmask);
  122. dsps_writel(reg_base, wrp->coreintr_set, coremask);
  123. /* Force the DRVVBUS IRQ so we can start polling for ID change. */
  124. dsps_writel(reg_base, wrp->coreintr_set,
  125. (1 << wrp->drvvbus) << wrp->usb_shift);
  126. }
  127. /**
  128. * dsps_musb_disable - disable HDRC and flush interrupts
  129. */
  130. static void dsps_musb_disable(struct musb *musb)
  131. {
  132. struct device *dev = musb->controller;
  133. struct platform_device *pdev = to_platform_device(dev->parent);
  134. struct dsps_glue *glue = platform_get_drvdata(pdev);
  135. const struct dsps_musb_wrapper *wrp = glue->wrp;
  136. void __iomem *reg_base = musb->ctrl_base;
  137. dsps_writel(reg_base, wrp->coreintr_clear, wrp->usb_bitmap);
  138. dsps_writel(reg_base, wrp->epintr_clear,
  139. wrp->txep_bitmap | wrp->rxep_bitmap);
  140. dsps_writeb(musb->mregs, MUSB_DEVCTL, 0);
  141. }
  142. static void otg_timer(unsigned long _musb)
  143. {
  144. struct musb *musb = (void *)_musb;
  145. void __iomem *mregs = musb->mregs;
  146. struct device *dev = musb->controller;
  147. struct dsps_glue *glue = dev_get_drvdata(dev->parent);
  148. const struct dsps_musb_wrapper *wrp = glue->wrp;
  149. u8 devctl;
  150. unsigned long flags;
  151. /*
  152. * We poll because DSPS IP's won't expose several OTG-critical
  153. * status change events (from the transceiver) otherwise.
  154. */
  155. devctl = dsps_readb(mregs, MUSB_DEVCTL);
  156. dev_dbg(musb->controller, "Poll devctl %02x (%s)\n", devctl,
  157. usb_otg_state_string(musb->xceiv->state));
  158. spin_lock_irqsave(&musb->lock, flags);
  159. switch (musb->xceiv->state) {
  160. case OTG_STATE_A_WAIT_BCON:
  161. devctl &= ~MUSB_DEVCTL_SESSION;
  162. dsps_writeb(musb->mregs, MUSB_DEVCTL, devctl);
  163. devctl = dsps_readb(musb->mregs, MUSB_DEVCTL);
  164. if (devctl & MUSB_DEVCTL_BDEVICE) {
  165. musb->xceiv->state = OTG_STATE_B_IDLE;
  166. MUSB_DEV_MODE(musb);
  167. } else {
  168. musb->xceiv->state = OTG_STATE_A_IDLE;
  169. MUSB_HST_MODE(musb);
  170. }
  171. break;
  172. case OTG_STATE_A_WAIT_VFALL:
  173. musb->xceiv->state = OTG_STATE_A_WAIT_VRISE;
  174. dsps_writel(musb->ctrl_base, wrp->coreintr_set,
  175. MUSB_INTR_VBUSERROR << wrp->usb_shift);
  176. break;
  177. case OTG_STATE_B_IDLE:
  178. devctl = dsps_readb(mregs, MUSB_DEVCTL);
  179. if (devctl & MUSB_DEVCTL_BDEVICE)
  180. mod_timer(&glue->timer,
  181. jiffies + wrp->poll_seconds * HZ);
  182. else
  183. musb->xceiv->state = OTG_STATE_A_IDLE;
  184. break;
  185. default:
  186. break;
  187. }
  188. spin_unlock_irqrestore(&musb->lock, flags);
  189. }
  190. static void dsps_musb_try_idle(struct musb *musb, unsigned long timeout)
  191. {
  192. struct device *dev = musb->controller;
  193. struct dsps_glue *glue = dev_get_drvdata(dev->parent);
  194. if (timeout == 0)
  195. timeout = jiffies + msecs_to_jiffies(3);
  196. /* Never idle if active, or when VBUS timeout is not set as host */
  197. if (musb->is_active || (musb->a_wait_bcon == 0 &&
  198. musb->xceiv->state == OTG_STATE_A_WAIT_BCON)) {
  199. dev_dbg(musb->controller, "%s active, deleting timer\n",
  200. usb_otg_state_string(musb->xceiv->state));
  201. del_timer(&glue->timer);
  202. glue->last_timer = jiffies;
  203. return;
  204. }
  205. if (time_after(glue->last_timer, timeout) &&
  206. timer_pending(&glue->timer)) {
  207. dev_dbg(musb->controller,
  208. "Longer idle timer already pending, ignoring...\n");
  209. return;
  210. }
  211. glue->last_timer = timeout;
  212. dev_dbg(musb->controller, "%s inactive, starting idle timer for %u ms\n",
  213. usb_otg_state_string(musb->xceiv->state),
  214. jiffies_to_msecs(timeout - jiffies));
  215. mod_timer(&glue->timer, timeout);
  216. }
  217. static irqreturn_t dsps_interrupt(int irq, void *hci)
  218. {
  219. struct musb *musb = hci;
  220. void __iomem *reg_base = musb->ctrl_base;
  221. struct device *dev = musb->controller;
  222. struct dsps_glue *glue = dev_get_drvdata(dev->parent);
  223. const struct dsps_musb_wrapper *wrp = glue->wrp;
  224. unsigned long flags;
  225. irqreturn_t ret = IRQ_NONE;
  226. u32 epintr, usbintr;
  227. spin_lock_irqsave(&musb->lock, flags);
  228. /* Get endpoint interrupts */
  229. epintr = dsps_readl(reg_base, wrp->epintr_status);
  230. musb->int_rx = (epintr & wrp->rxep_bitmap) >> wrp->rxep_shift;
  231. musb->int_tx = (epintr & wrp->txep_bitmap) >> wrp->txep_shift;
  232. if (epintr)
  233. dsps_writel(reg_base, wrp->epintr_status, epintr);
  234. /* Get usb core interrupts */
  235. usbintr = dsps_readl(reg_base, wrp->coreintr_status);
  236. if (!usbintr && !epintr)
  237. goto out;
  238. musb->int_usb = (usbintr & wrp->usb_bitmap) >> wrp->usb_shift;
  239. if (usbintr)
  240. dsps_writel(reg_base, wrp->coreintr_status, usbintr);
  241. dev_dbg(musb->controller, "usbintr (%x) epintr(%x)\n",
  242. usbintr, epintr);
  243. /*
  244. * DRVVBUS IRQs are the only proxy we have (a very poor one!) for
  245. * DSPS IP's missing ID change IRQ. We need an ID change IRQ to
  246. * switch appropriately between halves of the OTG state machine.
  247. * Managing DEVCTL.SESSION per Mentor docs requires that we know its
  248. * value but DEVCTL.BDEVICE is invalid without DEVCTL.SESSION set.
  249. * Also, DRVVBUS pulses for SRP (but not at 5V) ...
  250. */
  251. if (is_host_active(musb) && usbintr & MUSB_INTR_BABBLE)
  252. pr_info("CAUTION: musb: Babble Interrupt Occurred\n");
  253. if (usbintr & ((1 << wrp->drvvbus) << wrp->usb_shift)) {
  254. int drvvbus = dsps_readl(reg_base, wrp->status);
  255. void __iomem *mregs = musb->mregs;
  256. u8 devctl = dsps_readb(mregs, MUSB_DEVCTL);
  257. int err;
  258. err = musb->int_usb & MUSB_INTR_VBUSERROR;
  259. if (err) {
  260. /*
  261. * The Mentor core doesn't debounce VBUS as needed
  262. * to cope with device connect current spikes. This
  263. * means it's not uncommon for bus-powered devices
  264. * to get VBUS errors during enumeration.
  265. *
  266. * This is a workaround, but newer RTL from Mentor
  267. * seems to allow a better one: "re"-starting sessions
  268. * without waiting for VBUS to stop registering in
  269. * devctl.
  270. */
  271. musb->int_usb &= ~MUSB_INTR_VBUSERROR;
  272. musb->xceiv->state = OTG_STATE_A_WAIT_VFALL;
  273. mod_timer(&glue->timer,
  274. jiffies + wrp->poll_seconds * HZ);
  275. WARNING("VBUS error workaround (delay coming)\n");
  276. } else if (drvvbus) {
  277. musb->is_active = 1;
  278. MUSB_HST_MODE(musb);
  279. musb->xceiv->otg->default_a = 1;
  280. musb->xceiv->state = OTG_STATE_A_WAIT_VRISE;
  281. del_timer(&glue->timer);
  282. } else {
  283. musb->is_active = 0;
  284. MUSB_DEV_MODE(musb);
  285. musb->xceiv->otg->default_a = 0;
  286. musb->xceiv->state = OTG_STATE_B_IDLE;
  287. }
  288. /* NOTE: this must complete power-on within 100 ms. */
  289. dev_dbg(musb->controller, "VBUS %s (%s)%s, devctl %02x\n",
  290. drvvbus ? "on" : "off",
  291. usb_otg_state_string(musb->xceiv->state),
  292. err ? " ERROR" : "",
  293. devctl);
  294. ret = IRQ_HANDLED;
  295. }
  296. if (musb->int_tx || musb->int_rx || musb->int_usb)
  297. ret |= musb_interrupt(musb);
  298. /* Poll for ID change */
  299. if (musb->xceiv->state == OTG_STATE_B_IDLE)
  300. mod_timer(&glue->timer, jiffies + wrp->poll_seconds * HZ);
  301. out:
  302. spin_unlock_irqrestore(&musb->lock, flags);
  303. return ret;
  304. }
  305. static int dsps_musb_init(struct musb *musb)
  306. {
  307. struct device *dev = musb->controller;
  308. struct dsps_glue *glue = dev_get_drvdata(dev->parent);
  309. struct platform_device *parent = to_platform_device(dev->parent);
  310. const struct dsps_musb_wrapper *wrp = glue->wrp;
  311. void __iomem *reg_base;
  312. struct resource *r;
  313. u32 rev, val;
  314. r = platform_get_resource_byname(parent, IORESOURCE_MEM, "control");
  315. if (!r)
  316. return -EINVAL;
  317. reg_base = devm_ioremap_resource(dev, r);
  318. if (!musb->ctrl_base)
  319. return -EINVAL;
  320. musb->ctrl_base = reg_base;
  321. /* NOP driver needs change if supporting dual instance */
  322. musb->xceiv = devm_usb_get_phy_by_phandle(dev, "phys", 0);
  323. if (IS_ERR(musb->xceiv))
  324. return PTR_ERR(musb->xceiv);
  325. /* Returns zero if e.g. not clocked */
  326. rev = dsps_readl(reg_base, wrp->revision);
  327. if (!rev)
  328. return -ENODEV;
  329. usb_phy_init(musb->xceiv);
  330. setup_timer(&glue->timer, otg_timer, (unsigned long) musb);
  331. /* Reset the musb */
  332. dsps_writel(reg_base, wrp->control, (1 << wrp->reset));
  333. musb->isr = dsps_interrupt;
  334. /* reset the otgdisable bit, needed for host mode to work */
  335. val = dsps_readl(reg_base, wrp->phy_utmi);
  336. val &= ~(1 << wrp->otg_disable);
  337. dsps_writel(musb->ctrl_base, wrp->phy_utmi, val);
  338. return 0;
  339. }
  340. static int dsps_musb_exit(struct musb *musb)
  341. {
  342. struct device *dev = musb->controller;
  343. struct dsps_glue *glue = dev_get_drvdata(dev->parent);
  344. del_timer_sync(&glue->timer);
  345. usb_phy_shutdown(musb->xceiv);
  346. return 0;
  347. }
  348. static struct musb_platform_ops dsps_ops = {
  349. .init = dsps_musb_init,
  350. .exit = dsps_musb_exit,
  351. .enable = dsps_musb_enable,
  352. .disable = dsps_musb_disable,
  353. .try_idle = dsps_musb_try_idle,
  354. };
  355. static u64 musb_dmamask = DMA_BIT_MASK(32);
  356. static int get_int_prop(struct device_node *dn, const char *s)
  357. {
  358. int ret;
  359. u32 val;
  360. ret = of_property_read_u32(dn, s, &val);
  361. if (ret)
  362. return 0;
  363. return val;
  364. }
  365. static int dsps_create_musb_pdev(struct dsps_glue *glue,
  366. struct platform_device *parent)
  367. {
  368. struct musb_hdrc_platform_data pdata;
  369. struct resource resources[2];
  370. struct device *dev = &parent->dev;
  371. struct musb_hdrc_config *config;
  372. struct platform_device *musb;
  373. struct device_node *dn = parent->dev.of_node;
  374. struct device_node *child_node;
  375. int ret;
  376. child_node = of_get_child_by_name(dn, "usb");
  377. if (!child_node)
  378. return -EINVAL;
  379. memset(resources, 0, sizeof(resources));
  380. ret = of_address_to_resource(child_node, 0, &resources[0]);
  381. if (ret) {
  382. dev_err(dev, "failed to get memory.\n");
  383. return ret;
  384. }
  385. ret = of_irq_to_resource(child_node, 0, &resources[1]);
  386. if (ret == 0) {
  387. dev_err(dev, "failed to get irq.\n");
  388. ret = -EINVAL;
  389. return ret;
  390. }
  391. /* allocate the child platform device */
  392. musb = platform_device_alloc("musb-hdrc", PLATFORM_DEVID_AUTO);
  393. if (!musb) {
  394. dev_err(dev, "failed to allocate musb device\n");
  395. return -ENOMEM;
  396. }
  397. musb->dev.parent = dev;
  398. musb->dev.dma_mask = &musb_dmamask;
  399. musb->dev.coherent_dma_mask = musb_dmamask;
  400. musb->dev.of_node = of_node_get(child_node);
  401. glue->musb = musb;
  402. ret = platform_device_add_resources(musb, resources,
  403. ARRAY_SIZE(resources));
  404. if (ret) {
  405. dev_err(dev, "failed to add resources\n");
  406. goto err;
  407. }
  408. config = devm_kzalloc(&parent->dev, sizeof(*config), GFP_KERNEL);
  409. if (!config) {
  410. dev_err(dev, "failed to allocate musb hdrc config\n");
  411. ret = -ENOMEM;
  412. goto err;
  413. }
  414. pdata.config = config;
  415. pdata.platform_ops = &dsps_ops;
  416. config->num_eps = get_int_prop(child_node, "num-eps");
  417. config->ram_bits = get_int_prop(child_node, "ram-bits");
  418. pdata.mode = get_int_prop(child_node, "port-mode");
  419. pdata.power = get_int_prop(child_node, "power");
  420. config->multipoint = of_property_read_bool(child_node, "multipoint");
  421. ret = platform_device_add_data(musb, &pdata, sizeof(pdata));
  422. if (ret) {
  423. dev_err(dev, "failed to add platform_data\n");
  424. goto err;
  425. }
  426. ret = platform_device_add(musb);
  427. if (ret) {
  428. dev_err(dev, "failed to register musb device\n");
  429. goto err;
  430. }
  431. return 0;
  432. err:
  433. platform_device_put(musb);
  434. return ret;
  435. }
  436. static int dsps_probe(struct platform_device *pdev)
  437. {
  438. const struct of_device_id *match;
  439. const struct dsps_musb_wrapper *wrp;
  440. struct dsps_glue *glue;
  441. int ret;
  442. match = of_match_node(musb_dsps_of_match, pdev->dev.of_node);
  443. if (!match) {
  444. dev_err(&pdev->dev, "fail to get matching of_match struct\n");
  445. return -EINVAL;
  446. }
  447. wrp = match->data;
  448. /* allocate glue */
  449. glue = kzalloc(sizeof(*glue), GFP_KERNEL);
  450. if (!glue) {
  451. dev_err(&pdev->dev, "unable to allocate glue memory\n");
  452. return -ENOMEM;
  453. }
  454. glue->dev = &pdev->dev;
  455. glue->wrp = wrp;
  456. platform_set_drvdata(pdev, glue);
  457. pm_runtime_enable(&pdev->dev);
  458. ret = pm_runtime_get_sync(&pdev->dev);
  459. if (ret < 0) {
  460. dev_err(&pdev->dev, "pm_runtime_get_sync FAILED");
  461. goto err2;
  462. }
  463. ret = dsps_create_musb_pdev(glue, pdev);
  464. if (ret)
  465. goto err3;
  466. return 0;
  467. err3:
  468. pm_runtime_put(&pdev->dev);
  469. err2:
  470. pm_runtime_disable(&pdev->dev);
  471. kfree(glue);
  472. return ret;
  473. }
  474. static int dsps_remove(struct platform_device *pdev)
  475. {
  476. struct dsps_glue *glue = platform_get_drvdata(pdev);
  477. platform_device_unregister(glue->musb);
  478. /* disable usbss clocks */
  479. pm_runtime_put(&pdev->dev);
  480. pm_runtime_disable(&pdev->dev);
  481. kfree(glue);
  482. return 0;
  483. }
  484. static const struct dsps_musb_wrapper am33xx_driver_data = {
  485. .revision = 0x00,
  486. .control = 0x14,
  487. .status = 0x18,
  488. .epintr_set = 0x38,
  489. .epintr_clear = 0x40,
  490. .epintr_status = 0x30,
  491. .coreintr_set = 0x3c,
  492. .coreintr_clear = 0x44,
  493. .coreintr_status = 0x34,
  494. .phy_utmi = 0xe0,
  495. .mode = 0xe8,
  496. .reset = 0,
  497. .otg_disable = 21,
  498. .iddig = 8,
  499. .usb_shift = 0,
  500. .usb_mask = 0x1ff,
  501. .usb_bitmap = (0x1ff << 0),
  502. .drvvbus = 8,
  503. .txep_shift = 0,
  504. .txep_mask = 0xffff,
  505. .txep_bitmap = (0xffff << 0),
  506. .rxep_shift = 16,
  507. .rxep_mask = 0xfffe,
  508. .rxep_bitmap = (0xfffe << 16),
  509. .poll_seconds = 2,
  510. };
  511. static const struct of_device_id musb_dsps_of_match[] = {
  512. { .compatible = "ti,musb-am33xx",
  513. .data = (void *) &am33xx_driver_data, },
  514. { },
  515. };
  516. MODULE_DEVICE_TABLE(of, musb_dsps_of_match);
  517. static struct platform_driver dsps_usbss_driver = {
  518. .probe = dsps_probe,
  519. .remove = dsps_remove,
  520. .driver = {
  521. .name = "musb-dsps",
  522. .of_match_table = of_match_ptr(musb_dsps_of_match),
  523. },
  524. };
  525. MODULE_DESCRIPTION("TI DSPS MUSB Glue Layer");
  526. MODULE_AUTHOR("Ravi B <ravibabu@ti.com>");
  527. MODULE_AUTHOR("Ajay Kumar Gupta <ajay.gupta@ti.com>");
  528. MODULE_LICENSE("GPL v2");
  529. module_platform_driver(dsps_usbss_driver);