usbmisc_imx.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558
  1. /*
  2. * Copyright 2012 Freescale Semiconductor, Inc.
  3. *
  4. * The code contained herein is licensed under the GNU General Public
  5. * License. You may obtain a copy of the GNU General Public License
  6. * Version 2 or later at the following locations:
  7. *
  8. * http://www.opensource.org/licenses/gpl-license.html
  9. * http://www.gnu.org/copyleft/gpl.html
  10. */
  11. #include <linux/module.h>
  12. #include <linux/of_platform.h>
  13. #include <linux/err.h>
  14. #include <linux/io.h>
  15. #include <linux/delay.h>
  16. #include "ci_hdrc_imx.h"
  17. #define MX25_USB_PHY_CTRL_OFFSET 0x08
  18. #define MX25_BM_EXTERNAL_VBUS_DIVIDER BIT(23)
  19. #define MX25_EHCI_INTERFACE_SINGLE_UNI (2 << 0)
  20. #define MX25_EHCI_INTERFACE_DIFF_UNI (0 << 0)
  21. #define MX25_EHCI_INTERFACE_MASK (0xf)
  22. #define MX25_OTG_SIC_SHIFT 29
  23. #define MX25_OTG_SIC_MASK (0x3 << MX25_OTG_SIC_SHIFT)
  24. #define MX25_OTG_PM_BIT BIT(24)
  25. #define MX25_OTG_PP_BIT BIT(11)
  26. #define MX25_OTG_OCPOL_BIT BIT(3)
  27. #define MX25_H1_SIC_SHIFT 21
  28. #define MX25_H1_SIC_MASK (0x3 << MX25_H1_SIC_SHIFT)
  29. #define MX25_H1_PP_BIT BIT(18)
  30. #define MX25_H1_PM_BIT BIT(16)
  31. #define MX25_H1_IPPUE_UP_BIT BIT(7)
  32. #define MX25_H1_IPPUE_DOWN_BIT BIT(6)
  33. #define MX25_H1_TLL_BIT BIT(5)
  34. #define MX25_H1_USBTE_BIT BIT(4)
  35. #define MX25_H1_OCPOL_BIT BIT(2)
  36. #define MX27_H1_PM_BIT BIT(8)
  37. #define MX27_H2_PM_BIT BIT(16)
  38. #define MX27_OTG_PM_BIT BIT(24)
  39. #define MX53_USB_OTG_PHY_CTRL_0_OFFSET 0x08
  40. #define MX53_USB_OTG_PHY_CTRL_1_OFFSET 0x0c
  41. #define MX53_USB_UH2_CTRL_OFFSET 0x14
  42. #define MX53_USB_UH3_CTRL_OFFSET 0x18
  43. #define MX53_BM_OVER_CUR_DIS_H1 BIT(5)
  44. #define MX53_BM_OVER_CUR_DIS_OTG BIT(8)
  45. #define MX53_BM_OVER_CUR_DIS_UHx BIT(30)
  46. #define MX53_USB_PHYCTRL1_PLLDIV_MASK 0x3
  47. #define MX53_USB_PLL_DIV_24_MHZ 0x01
  48. #define MX6_BM_NON_BURST_SETTING BIT(1)
  49. #define MX6_BM_OVER_CUR_DIS BIT(7)
  50. #define MX6_BM_OVER_CUR_POLARITY BIT(8)
  51. #define MX6_BM_WAKEUP_ENABLE BIT(10)
  52. #define MX6_BM_ID_WAKEUP BIT(16)
  53. #define MX6_BM_VBUS_WAKEUP BIT(17)
  54. #define MX6SX_BM_DPDM_WAKEUP_EN BIT(29)
  55. #define MX6_BM_WAKEUP_INTR BIT(31)
  56. #define MX6_USB_OTG1_PHY_CTRL 0x18
  57. /* For imx6dql, it is host-only controller, for later imx6, it is otg's */
  58. #define MX6_USB_OTG2_PHY_CTRL 0x1c
  59. #define MX6SX_USB_VBUS_WAKEUP_SOURCE(v) (v << 8)
  60. #define MX6SX_USB_VBUS_WAKEUP_SOURCE_VBUS MX6SX_USB_VBUS_WAKEUP_SOURCE(0)
  61. #define MX6SX_USB_VBUS_WAKEUP_SOURCE_AVALID MX6SX_USB_VBUS_WAKEUP_SOURCE(1)
  62. #define MX6SX_USB_VBUS_WAKEUP_SOURCE_BVALID MX6SX_USB_VBUS_WAKEUP_SOURCE(2)
  63. #define MX6SX_USB_VBUS_WAKEUP_SOURCE_SESS_END MX6SX_USB_VBUS_WAKEUP_SOURCE(3)
  64. #define VF610_OVER_CUR_DIS BIT(7)
  65. #define MX7D_USBNC_USB_CTRL2 0x4
  66. #define MX7D_USB_VBUS_WAKEUP_SOURCE_MASK 0x3
  67. #define MX7D_USB_VBUS_WAKEUP_SOURCE(v) (v << 0)
  68. #define MX7D_USB_VBUS_WAKEUP_SOURCE_VBUS MX7D_USB_VBUS_WAKEUP_SOURCE(0)
  69. #define MX7D_USB_VBUS_WAKEUP_SOURCE_AVALID MX7D_USB_VBUS_WAKEUP_SOURCE(1)
  70. #define MX7D_USB_VBUS_WAKEUP_SOURCE_BVALID MX7D_USB_VBUS_WAKEUP_SOURCE(2)
  71. #define MX7D_USB_VBUS_WAKEUP_SOURCE_SESS_END MX7D_USB_VBUS_WAKEUP_SOURCE(3)
  72. struct usbmisc_ops {
  73. /* It's called once when probe a usb device */
  74. int (*init)(struct imx_usbmisc_data *data);
  75. /* It's called once after adding a usb device */
  76. int (*post)(struct imx_usbmisc_data *data);
  77. /* It's called when we need to enable/disable usb wakeup */
  78. int (*set_wakeup)(struct imx_usbmisc_data *data, bool enabled);
  79. };
  80. struct imx_usbmisc {
  81. void __iomem *base;
  82. spinlock_t lock;
  83. const struct usbmisc_ops *ops;
  84. };
  85. static int usbmisc_imx25_init(struct imx_usbmisc_data *data)
  86. {
  87. struct imx_usbmisc *usbmisc = dev_get_drvdata(data->dev);
  88. unsigned long flags;
  89. u32 val = 0;
  90. if (data->index > 1)
  91. return -EINVAL;
  92. spin_lock_irqsave(&usbmisc->lock, flags);
  93. switch (data->index) {
  94. case 0:
  95. val = readl(usbmisc->base);
  96. val &= ~(MX25_OTG_SIC_MASK | MX25_OTG_PP_BIT);
  97. val |= (MX25_EHCI_INTERFACE_DIFF_UNI & MX25_EHCI_INTERFACE_MASK) << MX25_OTG_SIC_SHIFT;
  98. val |= (MX25_OTG_PM_BIT | MX25_OTG_OCPOL_BIT);
  99. writel(val, usbmisc->base);
  100. break;
  101. case 1:
  102. val = readl(usbmisc->base);
  103. val &= ~(MX25_H1_SIC_MASK | MX25_H1_PP_BIT | MX25_H1_IPPUE_UP_BIT);
  104. val |= (MX25_EHCI_INTERFACE_SINGLE_UNI & MX25_EHCI_INTERFACE_MASK) << MX25_H1_SIC_SHIFT;
  105. val |= (MX25_H1_PM_BIT | MX25_H1_OCPOL_BIT | MX25_H1_TLL_BIT |
  106. MX25_H1_USBTE_BIT | MX25_H1_IPPUE_DOWN_BIT);
  107. writel(val, usbmisc->base);
  108. break;
  109. }
  110. spin_unlock_irqrestore(&usbmisc->lock, flags);
  111. return 0;
  112. }
  113. static int usbmisc_imx25_post(struct imx_usbmisc_data *data)
  114. {
  115. struct imx_usbmisc *usbmisc = dev_get_drvdata(data->dev);
  116. void __iomem *reg;
  117. unsigned long flags;
  118. u32 val;
  119. if (data->index > 2)
  120. return -EINVAL;
  121. if (data->evdo) {
  122. spin_lock_irqsave(&usbmisc->lock, flags);
  123. reg = usbmisc->base + MX25_USB_PHY_CTRL_OFFSET;
  124. val = readl(reg);
  125. writel(val | MX25_BM_EXTERNAL_VBUS_DIVIDER, reg);
  126. spin_unlock_irqrestore(&usbmisc->lock, flags);
  127. usleep_range(5000, 10000); /* needed to stabilize voltage */
  128. }
  129. return 0;
  130. }
  131. static int usbmisc_imx27_init(struct imx_usbmisc_data *data)
  132. {
  133. struct imx_usbmisc *usbmisc = dev_get_drvdata(data->dev);
  134. unsigned long flags;
  135. u32 val;
  136. switch (data->index) {
  137. case 0:
  138. val = MX27_OTG_PM_BIT;
  139. break;
  140. case 1:
  141. val = MX27_H1_PM_BIT;
  142. break;
  143. case 2:
  144. val = MX27_H2_PM_BIT;
  145. break;
  146. default:
  147. return -EINVAL;
  148. }
  149. spin_lock_irqsave(&usbmisc->lock, flags);
  150. if (data->disable_oc)
  151. val = readl(usbmisc->base) | val;
  152. else
  153. val = readl(usbmisc->base) & ~val;
  154. writel(val, usbmisc->base);
  155. spin_unlock_irqrestore(&usbmisc->lock, flags);
  156. return 0;
  157. }
  158. static int usbmisc_imx53_init(struct imx_usbmisc_data *data)
  159. {
  160. struct imx_usbmisc *usbmisc = dev_get_drvdata(data->dev);
  161. void __iomem *reg = NULL;
  162. unsigned long flags;
  163. u32 val = 0;
  164. if (data->index > 3)
  165. return -EINVAL;
  166. /* Select a 24 MHz reference clock for the PHY */
  167. val = readl(usbmisc->base + MX53_USB_OTG_PHY_CTRL_1_OFFSET);
  168. val &= ~MX53_USB_PHYCTRL1_PLLDIV_MASK;
  169. val |= MX53_USB_PLL_DIV_24_MHZ;
  170. writel(val, usbmisc->base + MX53_USB_OTG_PHY_CTRL_1_OFFSET);
  171. if (data->disable_oc) {
  172. spin_lock_irqsave(&usbmisc->lock, flags);
  173. switch (data->index) {
  174. case 0:
  175. reg = usbmisc->base + MX53_USB_OTG_PHY_CTRL_0_OFFSET;
  176. val = readl(reg) | MX53_BM_OVER_CUR_DIS_OTG;
  177. break;
  178. case 1:
  179. reg = usbmisc->base + MX53_USB_OTG_PHY_CTRL_0_OFFSET;
  180. val = readl(reg) | MX53_BM_OVER_CUR_DIS_H1;
  181. break;
  182. case 2:
  183. reg = usbmisc->base + MX53_USB_UH2_CTRL_OFFSET;
  184. val = readl(reg) | MX53_BM_OVER_CUR_DIS_UHx;
  185. break;
  186. case 3:
  187. reg = usbmisc->base + MX53_USB_UH3_CTRL_OFFSET;
  188. val = readl(reg) | MX53_BM_OVER_CUR_DIS_UHx;
  189. break;
  190. }
  191. if (reg && val)
  192. writel(val, reg);
  193. spin_unlock_irqrestore(&usbmisc->lock, flags);
  194. }
  195. return 0;
  196. }
  197. static int usbmisc_imx6q_set_wakeup
  198. (struct imx_usbmisc_data *data, bool enabled)
  199. {
  200. struct imx_usbmisc *usbmisc = dev_get_drvdata(data->dev);
  201. unsigned long flags;
  202. u32 val;
  203. u32 wakeup_setting = (MX6_BM_WAKEUP_ENABLE |
  204. MX6_BM_VBUS_WAKEUP | MX6_BM_ID_WAKEUP);
  205. int ret = 0;
  206. if (data->index > 3)
  207. return -EINVAL;
  208. spin_lock_irqsave(&usbmisc->lock, flags);
  209. val = readl(usbmisc->base + data->index * 4);
  210. if (enabled) {
  211. val |= wakeup_setting;
  212. writel(val, usbmisc->base + data->index * 4);
  213. } else {
  214. if (val & MX6_BM_WAKEUP_INTR)
  215. pr_debug("wakeup int at ci_hdrc.%d\n", data->index);
  216. val &= ~wakeup_setting;
  217. writel(val, usbmisc->base + data->index * 4);
  218. }
  219. spin_unlock_irqrestore(&usbmisc->lock, flags);
  220. return ret;
  221. }
  222. static int usbmisc_imx6q_init(struct imx_usbmisc_data *data)
  223. {
  224. struct imx_usbmisc *usbmisc = dev_get_drvdata(data->dev);
  225. unsigned long flags;
  226. u32 reg;
  227. if (data->index > 3)
  228. return -EINVAL;
  229. spin_lock_irqsave(&usbmisc->lock, flags);
  230. reg = readl(usbmisc->base + data->index * 4);
  231. if (data->disable_oc) {
  232. reg |= MX6_BM_OVER_CUR_DIS;
  233. } else if (data->oc_polarity == 1) {
  234. /* High active */
  235. reg &= ~(MX6_BM_OVER_CUR_DIS | MX6_BM_OVER_CUR_POLARITY);
  236. }
  237. writel(reg, usbmisc->base + data->index * 4);
  238. /* SoC non-burst setting */
  239. reg = readl(usbmisc->base + data->index * 4);
  240. writel(reg | MX6_BM_NON_BURST_SETTING,
  241. usbmisc->base + data->index * 4);
  242. spin_unlock_irqrestore(&usbmisc->lock, flags);
  243. usbmisc_imx6q_set_wakeup(data, false);
  244. return 0;
  245. }
  246. static int usbmisc_imx6sx_init(struct imx_usbmisc_data *data)
  247. {
  248. void __iomem *reg = NULL;
  249. unsigned long flags;
  250. struct imx_usbmisc *usbmisc = dev_get_drvdata(data->dev);
  251. u32 val;
  252. usbmisc_imx6q_init(data);
  253. if (data->index == 0 || data->index == 1) {
  254. reg = usbmisc->base + MX6_USB_OTG1_PHY_CTRL + data->index * 4;
  255. spin_lock_irqsave(&usbmisc->lock, flags);
  256. /* Set vbus wakeup source as bvalid */
  257. val = readl(reg);
  258. writel(val | MX6SX_USB_VBUS_WAKEUP_SOURCE_BVALID, reg);
  259. /*
  260. * Disable dp/dm wakeup in device mode when vbus is
  261. * not there.
  262. */
  263. val = readl(usbmisc->base + data->index * 4);
  264. writel(val & ~MX6SX_BM_DPDM_WAKEUP_EN,
  265. usbmisc->base + data->index * 4);
  266. spin_unlock_irqrestore(&usbmisc->lock, flags);
  267. }
  268. return 0;
  269. }
  270. static int usbmisc_vf610_init(struct imx_usbmisc_data *data)
  271. {
  272. struct imx_usbmisc *usbmisc = dev_get_drvdata(data->dev);
  273. u32 reg;
  274. /*
  275. * Vybrid only has one misc register set, but in two different
  276. * areas. These is reflected in two instances of this driver.
  277. */
  278. if (data->index >= 1)
  279. return -EINVAL;
  280. if (data->disable_oc) {
  281. reg = readl(usbmisc->base);
  282. writel(reg | VF610_OVER_CUR_DIS, usbmisc->base);
  283. }
  284. return 0;
  285. }
  286. static int usbmisc_imx7d_set_wakeup
  287. (struct imx_usbmisc_data *data, bool enabled)
  288. {
  289. struct imx_usbmisc *usbmisc = dev_get_drvdata(data->dev);
  290. unsigned long flags;
  291. u32 val;
  292. u32 wakeup_setting = (MX6_BM_WAKEUP_ENABLE |
  293. MX6_BM_VBUS_WAKEUP | MX6_BM_ID_WAKEUP);
  294. spin_lock_irqsave(&usbmisc->lock, flags);
  295. val = readl(usbmisc->base);
  296. if (enabled) {
  297. writel(val | wakeup_setting, usbmisc->base);
  298. } else {
  299. if (val & MX6_BM_WAKEUP_INTR)
  300. dev_dbg(data->dev, "wakeup int\n");
  301. writel(val & ~wakeup_setting, usbmisc->base);
  302. }
  303. spin_unlock_irqrestore(&usbmisc->lock, flags);
  304. return 0;
  305. }
  306. static int usbmisc_imx7d_init(struct imx_usbmisc_data *data)
  307. {
  308. struct imx_usbmisc *usbmisc = dev_get_drvdata(data->dev);
  309. unsigned long flags;
  310. u32 reg;
  311. if (data->index >= 1)
  312. return -EINVAL;
  313. spin_lock_irqsave(&usbmisc->lock, flags);
  314. reg = readl(usbmisc->base);
  315. if (data->disable_oc) {
  316. reg |= MX6_BM_OVER_CUR_DIS;
  317. } else if (data->oc_polarity == 1) {
  318. /* High active */
  319. reg &= ~(MX6_BM_OVER_CUR_DIS | MX6_BM_OVER_CUR_POLARITY);
  320. }
  321. writel(reg, usbmisc->base);
  322. reg = readl(usbmisc->base + MX7D_USBNC_USB_CTRL2);
  323. reg &= ~MX7D_USB_VBUS_WAKEUP_SOURCE_MASK;
  324. writel(reg | MX7D_USB_VBUS_WAKEUP_SOURCE_BVALID,
  325. usbmisc->base + MX7D_USBNC_USB_CTRL2);
  326. spin_unlock_irqrestore(&usbmisc->lock, flags);
  327. usbmisc_imx7d_set_wakeup(data, false);
  328. return 0;
  329. }
  330. static const struct usbmisc_ops imx25_usbmisc_ops = {
  331. .init = usbmisc_imx25_init,
  332. .post = usbmisc_imx25_post,
  333. };
  334. static const struct usbmisc_ops imx27_usbmisc_ops = {
  335. .init = usbmisc_imx27_init,
  336. };
  337. static const struct usbmisc_ops imx53_usbmisc_ops = {
  338. .init = usbmisc_imx53_init,
  339. };
  340. static const struct usbmisc_ops imx6q_usbmisc_ops = {
  341. .set_wakeup = usbmisc_imx6q_set_wakeup,
  342. .init = usbmisc_imx6q_init,
  343. };
  344. static const struct usbmisc_ops vf610_usbmisc_ops = {
  345. .init = usbmisc_vf610_init,
  346. };
  347. static const struct usbmisc_ops imx6sx_usbmisc_ops = {
  348. .set_wakeup = usbmisc_imx6q_set_wakeup,
  349. .init = usbmisc_imx6sx_init,
  350. };
  351. static const struct usbmisc_ops imx7d_usbmisc_ops = {
  352. .init = usbmisc_imx7d_init,
  353. .set_wakeup = usbmisc_imx7d_set_wakeup,
  354. };
  355. int imx_usbmisc_init(struct imx_usbmisc_data *data)
  356. {
  357. struct imx_usbmisc *usbmisc;
  358. if (!data)
  359. return 0;
  360. usbmisc = dev_get_drvdata(data->dev);
  361. if (!usbmisc->ops->init)
  362. return 0;
  363. return usbmisc->ops->init(data);
  364. }
  365. EXPORT_SYMBOL_GPL(imx_usbmisc_init);
  366. int imx_usbmisc_init_post(struct imx_usbmisc_data *data)
  367. {
  368. struct imx_usbmisc *usbmisc;
  369. if (!data)
  370. return 0;
  371. usbmisc = dev_get_drvdata(data->dev);
  372. if (!usbmisc->ops->post)
  373. return 0;
  374. return usbmisc->ops->post(data);
  375. }
  376. EXPORT_SYMBOL_GPL(imx_usbmisc_init_post);
  377. int imx_usbmisc_set_wakeup(struct imx_usbmisc_data *data, bool enabled)
  378. {
  379. struct imx_usbmisc *usbmisc;
  380. if (!data)
  381. return 0;
  382. usbmisc = dev_get_drvdata(data->dev);
  383. if (!usbmisc->ops->set_wakeup)
  384. return 0;
  385. return usbmisc->ops->set_wakeup(data, enabled);
  386. }
  387. EXPORT_SYMBOL_GPL(imx_usbmisc_set_wakeup);
  388. static const struct of_device_id usbmisc_imx_dt_ids[] = {
  389. {
  390. .compatible = "fsl,imx25-usbmisc",
  391. .data = &imx25_usbmisc_ops,
  392. },
  393. {
  394. .compatible = "fsl,imx35-usbmisc",
  395. .data = &imx25_usbmisc_ops,
  396. },
  397. {
  398. .compatible = "fsl,imx27-usbmisc",
  399. .data = &imx27_usbmisc_ops,
  400. },
  401. {
  402. .compatible = "fsl,imx51-usbmisc",
  403. .data = &imx53_usbmisc_ops,
  404. },
  405. {
  406. .compatible = "fsl,imx53-usbmisc",
  407. .data = &imx53_usbmisc_ops,
  408. },
  409. {
  410. .compatible = "fsl,imx6q-usbmisc",
  411. .data = &imx6q_usbmisc_ops,
  412. },
  413. {
  414. .compatible = "fsl,vf610-usbmisc",
  415. .data = &vf610_usbmisc_ops,
  416. },
  417. {
  418. .compatible = "fsl,imx6sx-usbmisc",
  419. .data = &imx6sx_usbmisc_ops,
  420. },
  421. {
  422. .compatible = "fsl,imx6ul-usbmisc",
  423. .data = &imx6sx_usbmisc_ops,
  424. },
  425. {
  426. .compatible = "fsl,imx7d-usbmisc",
  427. .data = &imx7d_usbmisc_ops,
  428. },
  429. { /* sentinel */ }
  430. };
  431. MODULE_DEVICE_TABLE(of, usbmisc_imx_dt_ids);
  432. static int usbmisc_imx_probe(struct platform_device *pdev)
  433. {
  434. struct resource *res;
  435. struct imx_usbmisc *data;
  436. const struct of_device_id *of_id;
  437. of_id = of_match_device(usbmisc_imx_dt_ids, &pdev->dev);
  438. if (!of_id)
  439. return -ENODEV;
  440. data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL);
  441. if (!data)
  442. return -ENOMEM;
  443. spin_lock_init(&data->lock);
  444. res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
  445. data->base = devm_ioremap_resource(&pdev->dev, res);
  446. if (IS_ERR(data->base))
  447. return PTR_ERR(data->base);
  448. data->ops = (const struct usbmisc_ops *)of_id->data;
  449. platform_set_drvdata(pdev, data);
  450. return 0;
  451. }
  452. static int usbmisc_imx_remove(struct platform_device *pdev)
  453. {
  454. return 0;
  455. }
  456. static struct platform_driver usbmisc_imx_driver = {
  457. .probe = usbmisc_imx_probe,
  458. .remove = usbmisc_imx_remove,
  459. .driver = {
  460. .name = "usbmisc_imx",
  461. .of_match_table = usbmisc_imx_dt_ids,
  462. },
  463. };
  464. module_platform_driver(usbmisc_imx_driver);
  465. MODULE_ALIAS("platform:usbmisc-imx");
  466. MODULE_LICENSE("GPL v2");
  467. MODULE_DESCRIPTION("driver for imx usb non-core registers");
  468. MODULE_AUTHOR("Richard Zhao <richard.zhao@freescale.com>");