phy-ti-pipe3.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610
  1. /*
  2. * phy-ti-pipe3 - PIPE3 PHY driver.
  3. *
  4. * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * Author: Kishon Vijay Abraham I <kishon@ti.com>
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. */
  18. #include <linux/module.h>
  19. #include <linux/platform_device.h>
  20. #include <linux/slab.h>
  21. #include <linux/phy/phy.h>
  22. #include <linux/of.h>
  23. #include <linux/clk.h>
  24. #include <linux/err.h>
  25. #include <linux/io.h>
  26. #include <linux/pm_runtime.h>
  27. #include <linux/delay.h>
  28. #include <linux/phy/omap_control_phy.h>
  29. #include <linux/of_platform.h>
  30. #include <linux/spinlock.h>
  31. #define PLL_STATUS 0x00000004
  32. #define PLL_GO 0x00000008
  33. #define PLL_CONFIGURATION1 0x0000000C
  34. #define PLL_CONFIGURATION2 0x00000010
  35. #define PLL_CONFIGURATION3 0x00000014
  36. #define PLL_CONFIGURATION4 0x00000020
  37. #define PLL_REGM_MASK 0x001FFE00
  38. #define PLL_REGM_SHIFT 0x9
  39. #define PLL_REGM_F_MASK 0x0003FFFF
  40. #define PLL_REGM_F_SHIFT 0x0
  41. #define PLL_REGN_MASK 0x000001FE
  42. #define PLL_REGN_SHIFT 0x1
  43. #define PLL_SELFREQDCO_MASK 0x0000000E
  44. #define PLL_SELFREQDCO_SHIFT 0x1
  45. #define PLL_SD_MASK 0x0003FC00
  46. #define PLL_SD_SHIFT 10
  47. #define SET_PLL_GO 0x1
  48. #define PLL_LDOPWDN BIT(15)
  49. #define PLL_TICOPWDN BIT(16)
  50. #define PLL_LOCK 0x2
  51. #define PLL_IDLE 0x1
  52. /*
  53. * This is an Empirical value that works, need to confirm the actual
  54. * value required for the PIPE3PHY_PLL_CONFIGURATION2.PLL_IDLE status
  55. * to be correctly reflected in the PIPE3PHY_PLL_STATUS register.
  56. */
  57. #define PLL_IDLE_TIME 100 /* in milliseconds */
  58. #define PLL_LOCK_TIME 100 /* in milliseconds */
  59. struct pipe3_dpll_params {
  60. u16 m;
  61. u8 n;
  62. u8 freq:3;
  63. u8 sd;
  64. u32 mf;
  65. };
  66. struct pipe3_dpll_map {
  67. unsigned long rate;
  68. struct pipe3_dpll_params params;
  69. };
  70. struct ti_pipe3 {
  71. void __iomem *pll_ctrl_base;
  72. struct device *dev;
  73. struct device *control_dev;
  74. struct clk *wkupclk;
  75. struct clk *sys_clk;
  76. struct clk *refclk;
  77. struct clk *div_clk;
  78. struct pipe3_dpll_map *dpll_map;
  79. bool enabled;
  80. spinlock_t lock; /* serialize clock enable/disable */
  81. /* the below flag is needed specifically for SATA */
  82. bool refclk_enabled;
  83. };
  84. static struct pipe3_dpll_map dpll_map_usb[] = {
  85. {12000000, {1250, 5, 4, 20, 0} }, /* 12 MHz */
  86. {16800000, {3125, 20, 4, 20, 0} }, /* 16.8 MHz */
  87. {19200000, {1172, 8, 4, 20, 65537} }, /* 19.2 MHz */
  88. {20000000, {1000, 7, 4, 10, 0} }, /* 20 MHz */
  89. {26000000, {1250, 12, 4, 20, 0} }, /* 26 MHz */
  90. {38400000, {3125, 47, 4, 20, 92843} }, /* 38.4 MHz */
  91. { }, /* Terminator */
  92. };
  93. static struct pipe3_dpll_map dpll_map_sata[] = {
  94. {12000000, {1000, 7, 4, 6, 0} }, /* 12 MHz */
  95. {16800000, {714, 7, 4, 6, 0} }, /* 16.8 MHz */
  96. {19200000, {625, 7, 4, 6, 0} }, /* 19.2 MHz */
  97. {20000000, {600, 7, 4, 6, 0} }, /* 20 MHz */
  98. {26000000, {461, 7, 4, 6, 0} }, /* 26 MHz */
  99. {38400000, {312, 7, 4, 6, 0} }, /* 38.4 MHz */
  100. { }, /* Terminator */
  101. };
  102. static inline u32 ti_pipe3_readl(void __iomem *addr, unsigned offset)
  103. {
  104. return __raw_readl(addr + offset);
  105. }
  106. static inline void ti_pipe3_writel(void __iomem *addr, unsigned offset,
  107. u32 data)
  108. {
  109. __raw_writel(data, addr + offset);
  110. }
  111. static struct pipe3_dpll_params *ti_pipe3_get_dpll_params(struct ti_pipe3 *phy)
  112. {
  113. unsigned long rate;
  114. struct pipe3_dpll_map *dpll_map = phy->dpll_map;
  115. rate = clk_get_rate(phy->sys_clk);
  116. for (; dpll_map->rate; dpll_map++) {
  117. if (rate == dpll_map->rate)
  118. return &dpll_map->params;
  119. }
  120. dev_err(phy->dev, "No DPLL configuration for %lu Hz SYS CLK\n", rate);
  121. return NULL;
  122. }
  123. static int ti_pipe3_power_off(struct phy *x)
  124. {
  125. struct ti_pipe3 *phy = phy_get_drvdata(x);
  126. omap_control_phy_power(phy->control_dev, 0);
  127. return 0;
  128. }
  129. static int ti_pipe3_power_on(struct phy *x)
  130. {
  131. struct ti_pipe3 *phy = phy_get_drvdata(x);
  132. omap_control_phy_power(phy->control_dev, 1);
  133. return 0;
  134. }
  135. static int ti_pipe3_dpll_wait_lock(struct ti_pipe3 *phy)
  136. {
  137. u32 val;
  138. unsigned long timeout;
  139. timeout = jiffies + msecs_to_jiffies(PLL_LOCK_TIME);
  140. do {
  141. cpu_relax();
  142. val = ti_pipe3_readl(phy->pll_ctrl_base, PLL_STATUS);
  143. if (val & PLL_LOCK)
  144. return 0;
  145. } while (!time_after(jiffies, timeout));
  146. dev_err(phy->dev, "DPLL failed to lock\n");
  147. return -EBUSY;
  148. }
  149. static int ti_pipe3_dpll_program(struct ti_pipe3 *phy)
  150. {
  151. u32 val;
  152. struct pipe3_dpll_params *dpll_params;
  153. dpll_params = ti_pipe3_get_dpll_params(phy);
  154. if (!dpll_params)
  155. return -EINVAL;
  156. val = ti_pipe3_readl(phy->pll_ctrl_base, PLL_CONFIGURATION1);
  157. val &= ~PLL_REGN_MASK;
  158. val |= dpll_params->n << PLL_REGN_SHIFT;
  159. ti_pipe3_writel(phy->pll_ctrl_base, PLL_CONFIGURATION1, val);
  160. val = ti_pipe3_readl(phy->pll_ctrl_base, PLL_CONFIGURATION2);
  161. val &= ~PLL_SELFREQDCO_MASK;
  162. val |= dpll_params->freq << PLL_SELFREQDCO_SHIFT;
  163. ti_pipe3_writel(phy->pll_ctrl_base, PLL_CONFIGURATION2, val);
  164. val = ti_pipe3_readl(phy->pll_ctrl_base, PLL_CONFIGURATION1);
  165. val &= ~PLL_REGM_MASK;
  166. val |= dpll_params->m << PLL_REGM_SHIFT;
  167. ti_pipe3_writel(phy->pll_ctrl_base, PLL_CONFIGURATION1, val);
  168. val = ti_pipe3_readl(phy->pll_ctrl_base, PLL_CONFIGURATION4);
  169. val &= ~PLL_REGM_F_MASK;
  170. val |= dpll_params->mf << PLL_REGM_F_SHIFT;
  171. ti_pipe3_writel(phy->pll_ctrl_base, PLL_CONFIGURATION4, val);
  172. val = ti_pipe3_readl(phy->pll_ctrl_base, PLL_CONFIGURATION3);
  173. val &= ~PLL_SD_MASK;
  174. val |= dpll_params->sd << PLL_SD_SHIFT;
  175. ti_pipe3_writel(phy->pll_ctrl_base, PLL_CONFIGURATION3, val);
  176. ti_pipe3_writel(phy->pll_ctrl_base, PLL_GO, SET_PLL_GO);
  177. return ti_pipe3_dpll_wait_lock(phy);
  178. }
  179. static int ti_pipe3_init(struct phy *x)
  180. {
  181. struct ti_pipe3 *phy = phy_get_drvdata(x);
  182. u32 val;
  183. int ret = 0;
  184. /*
  185. * Set pcie_pcs register to 0x96 for proper functioning of phy
  186. * as recommended in AM572x TRM SPRUHZ6, section 18.5.2.2, table
  187. * 18-1804.
  188. */
  189. if (of_device_is_compatible(phy->dev->of_node, "ti,phy-pipe3-pcie")) {
  190. omap_control_pcie_pcs(phy->control_dev, 0x96);
  191. return 0;
  192. }
  193. /* Bring it out of IDLE if it is IDLE */
  194. val = ti_pipe3_readl(phy->pll_ctrl_base, PLL_CONFIGURATION2);
  195. if (val & PLL_IDLE) {
  196. val &= ~PLL_IDLE;
  197. ti_pipe3_writel(phy->pll_ctrl_base, PLL_CONFIGURATION2, val);
  198. ret = ti_pipe3_dpll_wait_lock(phy);
  199. }
  200. /* Program the DPLL only if not locked */
  201. val = ti_pipe3_readl(phy->pll_ctrl_base, PLL_STATUS);
  202. if (!(val & PLL_LOCK))
  203. if (ti_pipe3_dpll_program(phy))
  204. return -EINVAL;
  205. return ret;
  206. }
  207. static int ti_pipe3_exit(struct phy *x)
  208. {
  209. struct ti_pipe3 *phy = phy_get_drvdata(x);
  210. u32 val;
  211. unsigned long timeout;
  212. /* SATA DPLL can't be powered down due to Errata i783 and PCIe
  213. * does not have internal DPLL
  214. */
  215. if (of_device_is_compatible(phy->dev->of_node, "ti,phy-pipe3-sata") ||
  216. of_device_is_compatible(phy->dev->of_node, "ti,phy-pipe3-pcie"))
  217. return 0;
  218. /* Put DPLL in IDLE mode */
  219. val = ti_pipe3_readl(phy->pll_ctrl_base, PLL_CONFIGURATION2);
  220. val |= PLL_IDLE;
  221. ti_pipe3_writel(phy->pll_ctrl_base, PLL_CONFIGURATION2, val);
  222. /* wait for LDO and Oscillator to power down */
  223. timeout = jiffies + msecs_to_jiffies(PLL_IDLE_TIME);
  224. do {
  225. cpu_relax();
  226. val = ti_pipe3_readl(phy->pll_ctrl_base, PLL_STATUS);
  227. if ((val & PLL_TICOPWDN) && (val & PLL_LDOPWDN))
  228. break;
  229. } while (!time_after(jiffies, timeout));
  230. if (!(val & PLL_TICOPWDN) || !(val & PLL_LDOPWDN)) {
  231. dev_err(phy->dev, "Failed to power down: PLL_STATUS 0x%x\n",
  232. val);
  233. return -EBUSY;
  234. }
  235. return 0;
  236. }
  237. static struct phy_ops ops = {
  238. .init = ti_pipe3_init,
  239. .exit = ti_pipe3_exit,
  240. .power_on = ti_pipe3_power_on,
  241. .power_off = ti_pipe3_power_off,
  242. .owner = THIS_MODULE,
  243. };
  244. #ifdef CONFIG_OF
  245. static const struct of_device_id ti_pipe3_id_table[];
  246. #endif
  247. static int ti_pipe3_probe(struct platform_device *pdev)
  248. {
  249. struct ti_pipe3 *phy;
  250. struct phy *generic_phy;
  251. struct phy_provider *phy_provider;
  252. struct resource *res;
  253. struct device_node *node = pdev->dev.of_node;
  254. struct device_node *control_node;
  255. struct platform_device *control_pdev;
  256. const struct of_device_id *match;
  257. struct clk *clk;
  258. phy = devm_kzalloc(&pdev->dev, sizeof(*phy), GFP_KERNEL);
  259. if (!phy)
  260. return -ENOMEM;
  261. phy->dev = &pdev->dev;
  262. spin_lock_init(&phy->lock);
  263. if (!of_device_is_compatible(node, "ti,phy-pipe3-pcie")) {
  264. match = of_match_device(of_match_ptr(ti_pipe3_id_table),
  265. &pdev->dev);
  266. if (!match)
  267. return -EINVAL;
  268. phy->dpll_map = (struct pipe3_dpll_map *)match->data;
  269. if (!phy->dpll_map) {
  270. dev_err(&pdev->dev, "no DPLL data\n");
  271. return -EINVAL;
  272. }
  273. res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
  274. "pll_ctrl");
  275. phy->pll_ctrl_base = devm_ioremap_resource(&pdev->dev, res);
  276. if (IS_ERR(phy->pll_ctrl_base))
  277. return PTR_ERR(phy->pll_ctrl_base);
  278. phy->sys_clk = devm_clk_get(phy->dev, "sysclk");
  279. if (IS_ERR(phy->sys_clk)) {
  280. dev_err(&pdev->dev, "unable to get sysclk\n");
  281. return -EINVAL;
  282. }
  283. }
  284. phy->refclk = devm_clk_get(phy->dev, "refclk");
  285. if (IS_ERR(phy->refclk)) {
  286. dev_err(&pdev->dev, "unable to get refclk\n");
  287. /* older DTBs have missing refclk in SATA PHY
  288. * so don't bail out in case of SATA PHY.
  289. */
  290. if (!of_device_is_compatible(node, "ti,phy-pipe3-sata"))
  291. return PTR_ERR(phy->refclk);
  292. }
  293. if (!of_device_is_compatible(node, "ti,phy-pipe3-sata")) {
  294. phy->wkupclk = devm_clk_get(phy->dev, "wkupclk");
  295. if (IS_ERR(phy->wkupclk)) {
  296. dev_err(&pdev->dev, "unable to get wkupclk\n");
  297. return PTR_ERR(phy->wkupclk);
  298. }
  299. } else {
  300. phy->wkupclk = ERR_PTR(-ENODEV);
  301. }
  302. if (of_device_is_compatible(node, "ti,phy-pipe3-pcie")) {
  303. clk = devm_clk_get(phy->dev, "dpll_ref");
  304. if (IS_ERR(clk)) {
  305. dev_err(&pdev->dev, "unable to get dpll ref clk\n");
  306. return PTR_ERR(clk);
  307. }
  308. clk_set_rate(clk, 1500000000);
  309. clk = devm_clk_get(phy->dev, "dpll_ref_m2");
  310. if (IS_ERR(clk)) {
  311. dev_err(&pdev->dev, "unable to get dpll ref m2 clk\n");
  312. return PTR_ERR(clk);
  313. }
  314. clk_set_rate(clk, 100000000);
  315. clk = devm_clk_get(phy->dev, "phy-div");
  316. if (IS_ERR(clk)) {
  317. dev_err(&pdev->dev, "unable to get phy-div clk\n");
  318. return PTR_ERR(clk);
  319. }
  320. clk_set_rate(clk, 100000000);
  321. phy->div_clk = devm_clk_get(phy->dev, "div-clk");
  322. if (IS_ERR(phy->div_clk)) {
  323. dev_err(&pdev->dev, "unable to get div-clk\n");
  324. return PTR_ERR(phy->div_clk);
  325. }
  326. } else {
  327. phy->div_clk = ERR_PTR(-ENODEV);
  328. }
  329. control_node = of_parse_phandle(node, "ctrl-module", 0);
  330. if (!control_node) {
  331. dev_err(&pdev->dev, "Failed to get control device phandle\n");
  332. return -EINVAL;
  333. }
  334. control_pdev = of_find_device_by_node(control_node);
  335. if (!control_pdev) {
  336. dev_err(&pdev->dev, "Failed to get control device\n");
  337. return -EINVAL;
  338. }
  339. phy->control_dev = &control_pdev->dev;
  340. omap_control_phy_power(phy->control_dev, 0);
  341. platform_set_drvdata(pdev, phy);
  342. pm_runtime_enable(phy->dev);
  343. generic_phy = devm_phy_create(phy->dev, NULL, &ops);
  344. if (IS_ERR(generic_phy))
  345. return PTR_ERR(generic_phy);
  346. phy_set_drvdata(generic_phy, phy);
  347. phy_provider = devm_of_phy_provider_register(phy->dev,
  348. of_phy_simple_xlate);
  349. if (IS_ERR(phy_provider))
  350. return PTR_ERR(phy_provider);
  351. pm_runtime_get(&pdev->dev);
  352. return 0;
  353. }
  354. static int ti_pipe3_remove(struct platform_device *pdev)
  355. {
  356. if (!pm_runtime_suspended(&pdev->dev))
  357. pm_runtime_put(&pdev->dev);
  358. pm_runtime_disable(&pdev->dev);
  359. return 0;
  360. }
  361. #ifdef CONFIG_PM
  362. static int ti_pipe3_enable_refclk(struct ti_pipe3 *phy)
  363. {
  364. if (!IS_ERR(phy->refclk) && !phy->refclk_enabled) {
  365. int ret;
  366. ret = clk_prepare_enable(phy->refclk);
  367. if (ret) {
  368. dev_err(phy->dev, "Failed to enable refclk %d\n", ret);
  369. return ret;
  370. }
  371. phy->refclk_enabled = true;
  372. }
  373. return 0;
  374. }
  375. static void ti_pipe3_disable_refclk(struct ti_pipe3 *phy)
  376. {
  377. if (!IS_ERR(phy->refclk))
  378. clk_disable_unprepare(phy->refclk);
  379. phy->refclk_enabled = false;
  380. }
  381. static int ti_pipe3_enable_clocks(struct ti_pipe3 *phy)
  382. {
  383. int ret = 0;
  384. unsigned long flags;
  385. spin_lock_irqsave(&phy->lock, flags);
  386. if (phy->enabled)
  387. goto err1;
  388. ret = ti_pipe3_enable_refclk(phy);
  389. if (ret)
  390. goto err1;
  391. if (!IS_ERR(phy->wkupclk)) {
  392. ret = clk_prepare_enable(phy->wkupclk);
  393. if (ret) {
  394. dev_err(phy->dev, "Failed to enable wkupclk %d\n", ret);
  395. goto err2;
  396. }
  397. }
  398. if (!IS_ERR(phy->div_clk)) {
  399. ret = clk_prepare_enable(phy->div_clk);
  400. if (ret) {
  401. dev_err(phy->dev, "Failed to enable div_clk %d\n", ret);
  402. goto err3;
  403. }
  404. }
  405. phy->enabled = true;
  406. spin_unlock_irqrestore(&phy->lock, flags);
  407. return 0;
  408. err3:
  409. if (!IS_ERR(phy->wkupclk))
  410. clk_disable_unprepare(phy->wkupclk);
  411. err2:
  412. if (!IS_ERR(phy->refclk))
  413. clk_disable_unprepare(phy->refclk);
  414. ti_pipe3_disable_refclk(phy);
  415. err1:
  416. spin_unlock_irqrestore(&phy->lock, flags);
  417. return ret;
  418. }
  419. static void ti_pipe3_disable_clocks(struct ti_pipe3 *phy)
  420. {
  421. unsigned long flags;
  422. spin_lock_irqsave(&phy->lock, flags);
  423. if (!phy->enabled) {
  424. spin_unlock_irqrestore(&phy->lock, flags);
  425. return;
  426. }
  427. if (!IS_ERR(phy->wkupclk))
  428. clk_disable_unprepare(phy->wkupclk);
  429. /* Don't disable refclk for SATA PHY due to Errata i783 */
  430. if (!of_device_is_compatible(phy->dev->of_node, "ti,phy-pipe3-sata"))
  431. ti_pipe3_disable_refclk(phy);
  432. if (!IS_ERR(phy->div_clk))
  433. clk_disable_unprepare(phy->div_clk);
  434. phy->enabled = false;
  435. spin_unlock_irqrestore(&phy->lock, flags);
  436. }
  437. static int ti_pipe3_runtime_suspend(struct device *dev)
  438. {
  439. struct ti_pipe3 *phy = dev_get_drvdata(dev);
  440. ti_pipe3_disable_clocks(phy);
  441. return 0;
  442. }
  443. static int ti_pipe3_runtime_resume(struct device *dev)
  444. {
  445. struct ti_pipe3 *phy = dev_get_drvdata(dev);
  446. int ret = 0;
  447. ret = ti_pipe3_enable_clocks(phy);
  448. return ret;
  449. }
  450. static int ti_pipe3_suspend(struct device *dev)
  451. {
  452. struct ti_pipe3 *phy = dev_get_drvdata(dev);
  453. ti_pipe3_disable_clocks(phy);
  454. return 0;
  455. }
  456. static int ti_pipe3_resume(struct device *dev)
  457. {
  458. struct ti_pipe3 *phy = dev_get_drvdata(dev);
  459. int ret;
  460. ret = ti_pipe3_enable_clocks(phy);
  461. if (ret)
  462. return ret;
  463. pm_runtime_disable(dev);
  464. pm_runtime_set_active(dev);
  465. pm_runtime_enable(dev);
  466. return 0;
  467. }
  468. #endif
  469. static const struct dev_pm_ops ti_pipe3_pm_ops = {
  470. SET_RUNTIME_PM_OPS(ti_pipe3_runtime_suspend,
  471. ti_pipe3_runtime_resume, NULL)
  472. SET_SYSTEM_SLEEP_PM_OPS(ti_pipe3_suspend, ti_pipe3_resume)
  473. };
  474. #ifdef CONFIG_OF
  475. static const struct of_device_id ti_pipe3_id_table[] = {
  476. {
  477. .compatible = "ti,phy-usb3",
  478. .data = dpll_map_usb,
  479. },
  480. {
  481. .compatible = "ti,omap-usb3",
  482. .data = dpll_map_usb,
  483. },
  484. {
  485. .compatible = "ti,phy-pipe3-sata",
  486. .data = dpll_map_sata,
  487. },
  488. {
  489. .compatible = "ti,phy-pipe3-pcie",
  490. },
  491. {}
  492. };
  493. MODULE_DEVICE_TABLE(of, ti_pipe3_id_table);
  494. #endif
  495. static struct platform_driver ti_pipe3_driver = {
  496. .probe = ti_pipe3_probe,
  497. .remove = ti_pipe3_remove,
  498. .driver = {
  499. .name = "ti-pipe3",
  500. .pm = &ti_pipe3_pm_ops,
  501. .of_match_table = of_match_ptr(ti_pipe3_id_table),
  502. },
  503. };
  504. module_platform_driver(ti_pipe3_driver);
  505. MODULE_ALIAS("platform:ti_pipe3");
  506. MODULE_AUTHOR("Texas Instruments Inc.");
  507. MODULE_DESCRIPTION("TI PIPE3 phy driver");
  508. MODULE_LICENSE("GPL v2");