pcie-iproc.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562
  1. /*
  2. * Copyright (C) 2014 Hauke Mehrtens <hauke@hauke-m.de>
  3. * Copyright (C) 2015 Broadcom Corporation
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License as
  7. * published by the Free Software Foundation version 2.
  8. *
  9. * This program is distributed "as is" WITHOUT ANY WARRANTY of any
  10. * kind, whether express or implied; without even the implied warranty
  11. * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. */
  14. #include <linux/kernel.h>
  15. #include <linux/pci.h>
  16. #include <linux/msi.h>
  17. #include <linux/clk.h>
  18. #include <linux/module.h>
  19. #include <linux/mbus.h>
  20. #include <linux/slab.h>
  21. #include <linux/delay.h>
  22. #include <linux/interrupt.h>
  23. #include <linux/platform_device.h>
  24. #include <linux/of_address.h>
  25. #include <linux/of_pci.h>
  26. #include <linux/of_irq.h>
  27. #include <linux/of_platform.h>
  28. #include <linux/phy/phy.h>
  29. #include "pcie-iproc.h"
  30. #define EP_PERST_SOURCE_SELECT_SHIFT 2
  31. #define EP_PERST_SOURCE_SELECT BIT(EP_PERST_SOURCE_SELECT_SHIFT)
  32. #define EP_MODE_SURVIVE_PERST_SHIFT 1
  33. #define EP_MODE_SURVIVE_PERST BIT(EP_MODE_SURVIVE_PERST_SHIFT)
  34. #define RC_PCIE_RST_OUTPUT_SHIFT 0
  35. #define RC_PCIE_RST_OUTPUT BIT(RC_PCIE_RST_OUTPUT_SHIFT)
  36. #define PAXC_RESET_MASK 0x7f
  37. #define CFG_IND_ADDR_MASK 0x00001ffc
  38. #define CFG_ADDR_BUS_NUM_SHIFT 20
  39. #define CFG_ADDR_BUS_NUM_MASK 0x0ff00000
  40. #define CFG_ADDR_DEV_NUM_SHIFT 15
  41. #define CFG_ADDR_DEV_NUM_MASK 0x000f8000
  42. #define CFG_ADDR_FUNC_NUM_SHIFT 12
  43. #define CFG_ADDR_FUNC_NUM_MASK 0x00007000
  44. #define CFG_ADDR_REG_NUM_SHIFT 2
  45. #define CFG_ADDR_REG_NUM_MASK 0x00000ffc
  46. #define CFG_ADDR_CFG_TYPE_SHIFT 0
  47. #define CFG_ADDR_CFG_TYPE_MASK 0x00000003
  48. #define SYS_RC_INTX_MASK 0xf
  49. #define PCIE_PHYLINKUP_SHIFT 3
  50. #define PCIE_PHYLINKUP BIT(PCIE_PHYLINKUP_SHIFT)
  51. #define PCIE_DL_ACTIVE_SHIFT 2
  52. #define PCIE_DL_ACTIVE BIT(PCIE_DL_ACTIVE_SHIFT)
  53. #define OARR_VALID_SHIFT 0
  54. #define OARR_VALID BIT(OARR_VALID_SHIFT)
  55. #define OARR_SIZE_CFG_SHIFT 1
  56. #define OARR_SIZE_CFG BIT(OARR_SIZE_CFG_SHIFT)
  57. #define MAX_NUM_OB_WINDOWS 2
  58. #define IPROC_PCIE_REG_INVALID 0xffff
  59. enum iproc_pcie_reg {
  60. IPROC_PCIE_CLK_CTRL = 0,
  61. IPROC_PCIE_CFG_IND_ADDR,
  62. IPROC_PCIE_CFG_IND_DATA,
  63. IPROC_PCIE_CFG_ADDR,
  64. IPROC_PCIE_CFG_DATA,
  65. IPROC_PCIE_INTX_EN,
  66. IPROC_PCIE_OARR_LO,
  67. IPROC_PCIE_OARR_HI,
  68. IPROC_PCIE_OMAP_LO,
  69. IPROC_PCIE_OMAP_HI,
  70. IPROC_PCIE_LINK_STATUS,
  71. };
  72. /* iProc PCIe PAXB registers */
  73. static const u16 iproc_pcie_reg_paxb[] = {
  74. [IPROC_PCIE_CLK_CTRL] = 0x000,
  75. [IPROC_PCIE_CFG_IND_ADDR] = 0x120,
  76. [IPROC_PCIE_CFG_IND_DATA] = 0x124,
  77. [IPROC_PCIE_CFG_ADDR] = 0x1f8,
  78. [IPROC_PCIE_CFG_DATA] = 0x1fc,
  79. [IPROC_PCIE_INTX_EN] = 0x330,
  80. [IPROC_PCIE_OARR_LO] = 0xd20,
  81. [IPROC_PCIE_OARR_HI] = 0xd24,
  82. [IPROC_PCIE_OMAP_LO] = 0xd40,
  83. [IPROC_PCIE_OMAP_HI] = 0xd44,
  84. [IPROC_PCIE_LINK_STATUS] = 0xf0c,
  85. };
  86. /* iProc PCIe PAXC v1 registers */
  87. static const u16 iproc_pcie_reg_paxc[] = {
  88. [IPROC_PCIE_CLK_CTRL] = 0x000,
  89. [IPROC_PCIE_CFG_IND_ADDR] = 0x1f0,
  90. [IPROC_PCIE_CFG_IND_DATA] = 0x1f4,
  91. [IPROC_PCIE_CFG_ADDR] = 0x1f8,
  92. [IPROC_PCIE_CFG_DATA] = 0x1fc,
  93. [IPROC_PCIE_INTX_EN] = IPROC_PCIE_REG_INVALID,
  94. [IPROC_PCIE_OARR_LO] = IPROC_PCIE_REG_INVALID,
  95. [IPROC_PCIE_OARR_HI] = IPROC_PCIE_REG_INVALID,
  96. [IPROC_PCIE_OMAP_LO] = IPROC_PCIE_REG_INVALID,
  97. [IPROC_PCIE_OMAP_HI] = IPROC_PCIE_REG_INVALID,
  98. [IPROC_PCIE_LINK_STATUS] = IPROC_PCIE_REG_INVALID,
  99. };
  100. static inline struct iproc_pcie *iproc_data(struct pci_bus *bus)
  101. {
  102. struct iproc_pcie *pcie;
  103. #ifdef CONFIG_ARM
  104. struct pci_sys_data *sys = bus->sysdata;
  105. pcie = sys->private_data;
  106. #else
  107. pcie = bus->sysdata;
  108. #endif
  109. return pcie;
  110. }
  111. static inline bool iproc_pcie_reg_is_invalid(u16 reg_offset)
  112. {
  113. return !!(reg_offset == IPROC_PCIE_REG_INVALID);
  114. }
  115. static inline u16 iproc_pcie_reg_offset(struct iproc_pcie *pcie,
  116. enum iproc_pcie_reg reg)
  117. {
  118. return pcie->reg_offsets[reg];
  119. }
  120. static inline u32 iproc_pcie_read_reg(struct iproc_pcie *pcie,
  121. enum iproc_pcie_reg reg)
  122. {
  123. u16 offset = iproc_pcie_reg_offset(pcie, reg);
  124. if (iproc_pcie_reg_is_invalid(offset))
  125. return 0;
  126. return readl(pcie->base + offset);
  127. }
  128. static inline void iproc_pcie_write_reg(struct iproc_pcie *pcie,
  129. enum iproc_pcie_reg reg, u32 val)
  130. {
  131. u16 offset = iproc_pcie_reg_offset(pcie, reg);
  132. if (iproc_pcie_reg_is_invalid(offset))
  133. return;
  134. writel(val, pcie->base + offset);
  135. }
  136. static inline void iproc_pcie_ob_write(struct iproc_pcie *pcie,
  137. enum iproc_pcie_reg reg,
  138. unsigned window, u32 val)
  139. {
  140. u16 offset = iproc_pcie_reg_offset(pcie, reg);
  141. if (iproc_pcie_reg_is_invalid(offset))
  142. return;
  143. writel(val, pcie->base + offset + (window * 8));
  144. }
  145. /**
  146. * Note access to the configuration registers are protected at the higher layer
  147. * by 'pci_lock' in drivers/pci/access.c
  148. */
  149. static void __iomem *iproc_pcie_map_cfg_bus(struct pci_bus *bus,
  150. unsigned int devfn,
  151. int where)
  152. {
  153. struct iproc_pcie *pcie = iproc_data(bus);
  154. unsigned slot = PCI_SLOT(devfn);
  155. unsigned fn = PCI_FUNC(devfn);
  156. unsigned busno = bus->number;
  157. u32 val;
  158. u16 offset;
  159. /* root complex access */
  160. if (busno == 0) {
  161. if (slot > 0 || fn > 0)
  162. return NULL;
  163. iproc_pcie_write_reg(pcie, IPROC_PCIE_CFG_IND_ADDR,
  164. where & CFG_IND_ADDR_MASK);
  165. offset = iproc_pcie_reg_offset(pcie, IPROC_PCIE_CFG_IND_DATA);
  166. if (iproc_pcie_reg_is_invalid(offset))
  167. return NULL;
  168. else
  169. return (pcie->base + offset);
  170. }
  171. /*
  172. * PAXC is connected to an internally emulated EP within the SoC. It
  173. * allows only one device.
  174. */
  175. if (pcie->type == IPROC_PCIE_PAXC)
  176. if (slot > 0)
  177. return NULL;
  178. /* EP device access */
  179. val = (busno << CFG_ADDR_BUS_NUM_SHIFT) |
  180. (slot << CFG_ADDR_DEV_NUM_SHIFT) |
  181. (fn << CFG_ADDR_FUNC_NUM_SHIFT) |
  182. (where & CFG_ADDR_REG_NUM_MASK) |
  183. (1 & CFG_ADDR_CFG_TYPE_MASK);
  184. iproc_pcie_write_reg(pcie, IPROC_PCIE_CFG_ADDR, val);
  185. offset = iproc_pcie_reg_offset(pcie, IPROC_PCIE_CFG_DATA);
  186. if (iproc_pcie_reg_is_invalid(offset))
  187. return NULL;
  188. else
  189. return (pcie->base + offset);
  190. }
  191. static struct pci_ops iproc_pcie_ops = {
  192. .map_bus = iproc_pcie_map_cfg_bus,
  193. .read = pci_generic_config_read32,
  194. .write = pci_generic_config_write32,
  195. };
  196. static void iproc_pcie_reset(struct iproc_pcie *pcie)
  197. {
  198. u32 val;
  199. if (pcie->type == IPROC_PCIE_PAXC) {
  200. val = iproc_pcie_read_reg(pcie, IPROC_PCIE_CLK_CTRL);
  201. val &= ~PAXC_RESET_MASK;
  202. iproc_pcie_write_reg(pcie, IPROC_PCIE_CLK_CTRL, val);
  203. udelay(100);
  204. val |= PAXC_RESET_MASK;
  205. iproc_pcie_write_reg(pcie, IPROC_PCIE_CLK_CTRL, val);
  206. udelay(100);
  207. return;
  208. }
  209. /*
  210. * Select perst_b signal as reset source. Put the device into reset,
  211. * and then bring it out of reset
  212. */
  213. val = iproc_pcie_read_reg(pcie, IPROC_PCIE_CLK_CTRL);
  214. val &= ~EP_PERST_SOURCE_SELECT & ~EP_MODE_SURVIVE_PERST &
  215. ~RC_PCIE_RST_OUTPUT;
  216. iproc_pcie_write_reg(pcie, IPROC_PCIE_CLK_CTRL, val);
  217. udelay(250);
  218. val |= RC_PCIE_RST_OUTPUT;
  219. iproc_pcie_write_reg(pcie, IPROC_PCIE_CLK_CTRL, val);
  220. msleep(100);
  221. }
  222. static int iproc_pcie_check_link(struct iproc_pcie *pcie, struct pci_bus *bus)
  223. {
  224. u8 hdr_type;
  225. u32 link_ctrl, class, val;
  226. u16 pos, link_status;
  227. bool link_is_active = false;
  228. /*
  229. * PAXC connects to emulated endpoint devices directly and does not
  230. * have a Serdes. Therefore skip the link detection logic here.
  231. */
  232. if (pcie->type == IPROC_PCIE_PAXC)
  233. return 0;
  234. val = iproc_pcie_read_reg(pcie, IPROC_PCIE_LINK_STATUS);
  235. if (!(val & PCIE_PHYLINKUP) || !(val & PCIE_DL_ACTIVE)) {
  236. dev_err(pcie->dev, "PHY or data link is INACTIVE!\n");
  237. return -ENODEV;
  238. }
  239. /* make sure we are not in EP mode */
  240. pci_bus_read_config_byte(bus, 0, PCI_HEADER_TYPE, &hdr_type);
  241. if ((hdr_type & 0x7f) != PCI_HEADER_TYPE_BRIDGE) {
  242. dev_err(pcie->dev, "in EP mode, hdr=%#02x\n", hdr_type);
  243. return -EFAULT;
  244. }
  245. /* force class to PCI_CLASS_BRIDGE_PCI (0x0604) */
  246. #define PCI_BRIDGE_CTRL_REG_OFFSET 0x43c
  247. #define PCI_CLASS_BRIDGE_MASK 0xffff00
  248. #define PCI_CLASS_BRIDGE_SHIFT 8
  249. pci_bus_read_config_dword(bus, 0, PCI_BRIDGE_CTRL_REG_OFFSET, &class);
  250. class &= ~PCI_CLASS_BRIDGE_MASK;
  251. class |= (PCI_CLASS_BRIDGE_PCI << PCI_CLASS_BRIDGE_SHIFT);
  252. pci_bus_write_config_dword(bus, 0, PCI_BRIDGE_CTRL_REG_OFFSET, class);
  253. /* check link status to see if link is active */
  254. pos = pci_bus_find_capability(bus, 0, PCI_CAP_ID_EXP);
  255. pci_bus_read_config_word(bus, 0, pos + PCI_EXP_LNKSTA, &link_status);
  256. if (link_status & PCI_EXP_LNKSTA_NLW)
  257. link_is_active = true;
  258. if (!link_is_active) {
  259. /* try GEN 1 link speed */
  260. #define PCI_LINK_STATUS_CTRL_2_OFFSET 0x0dc
  261. #define PCI_TARGET_LINK_SPEED_MASK 0xf
  262. #define PCI_TARGET_LINK_SPEED_GEN2 0x2
  263. #define PCI_TARGET_LINK_SPEED_GEN1 0x1
  264. pci_bus_read_config_dword(bus, 0,
  265. PCI_LINK_STATUS_CTRL_2_OFFSET,
  266. &link_ctrl);
  267. if ((link_ctrl & PCI_TARGET_LINK_SPEED_MASK) ==
  268. PCI_TARGET_LINK_SPEED_GEN2) {
  269. link_ctrl &= ~PCI_TARGET_LINK_SPEED_MASK;
  270. link_ctrl |= PCI_TARGET_LINK_SPEED_GEN1;
  271. pci_bus_write_config_dword(bus, 0,
  272. PCI_LINK_STATUS_CTRL_2_OFFSET,
  273. link_ctrl);
  274. msleep(100);
  275. pos = pci_bus_find_capability(bus, 0, PCI_CAP_ID_EXP);
  276. pci_bus_read_config_word(bus, 0, pos + PCI_EXP_LNKSTA,
  277. &link_status);
  278. if (link_status & PCI_EXP_LNKSTA_NLW)
  279. link_is_active = true;
  280. }
  281. }
  282. dev_info(pcie->dev, "link: %s\n", link_is_active ? "UP" : "DOWN");
  283. return link_is_active ? 0 : -ENODEV;
  284. }
  285. static void iproc_pcie_enable(struct iproc_pcie *pcie)
  286. {
  287. iproc_pcie_write_reg(pcie, IPROC_PCIE_INTX_EN, SYS_RC_INTX_MASK);
  288. }
  289. /**
  290. * Some iProc SoCs require the SW to configure the outbound address mapping
  291. *
  292. * Outbound address translation:
  293. *
  294. * iproc_pcie_address = axi_address - axi_offset
  295. * OARR = iproc_pcie_address
  296. * OMAP = pci_addr
  297. *
  298. * axi_addr -> iproc_pcie_address -> OARR -> OMAP -> pci_address
  299. */
  300. static int iproc_pcie_setup_ob(struct iproc_pcie *pcie, u64 axi_addr,
  301. u64 pci_addr, resource_size_t size)
  302. {
  303. struct iproc_pcie_ob *ob = &pcie->ob;
  304. unsigned i;
  305. u64 max_size = (u64)ob->window_size * MAX_NUM_OB_WINDOWS;
  306. u64 remainder;
  307. if (size > max_size) {
  308. dev_err(pcie->dev,
  309. "res size %pap exceeds max supported size 0x%llx\n",
  310. &size, max_size);
  311. return -EINVAL;
  312. }
  313. div64_u64_rem(size, ob->window_size, &remainder);
  314. if (remainder) {
  315. dev_err(pcie->dev,
  316. "res size %pap needs to be multiple of window size %pap\n",
  317. &size, &ob->window_size);
  318. return -EINVAL;
  319. }
  320. if (axi_addr < ob->axi_offset) {
  321. dev_err(pcie->dev,
  322. "axi address %pap less than offset %pap\n",
  323. &axi_addr, &ob->axi_offset);
  324. return -EINVAL;
  325. }
  326. /*
  327. * Translate the AXI address to the internal address used by the iProc
  328. * PCIe core before programming the OARR
  329. */
  330. axi_addr -= ob->axi_offset;
  331. for (i = 0; i < MAX_NUM_OB_WINDOWS; i++) {
  332. iproc_pcie_ob_write(pcie, IPROC_PCIE_OARR_LO, i,
  333. lower_32_bits(axi_addr) | OARR_VALID |
  334. (ob->set_oarr_size ? 1 : 0));
  335. iproc_pcie_ob_write(pcie, IPROC_PCIE_OARR_HI, i,
  336. upper_32_bits(axi_addr));
  337. iproc_pcie_ob_write(pcie, IPROC_PCIE_OMAP_LO, i,
  338. lower_32_bits(pci_addr));
  339. iproc_pcie_ob_write(pcie, IPROC_PCIE_OMAP_HI, i,
  340. upper_32_bits(pci_addr));
  341. size -= ob->window_size;
  342. if (size == 0)
  343. break;
  344. axi_addr += ob->window_size;
  345. pci_addr += ob->window_size;
  346. }
  347. return 0;
  348. }
  349. static int iproc_pcie_map_ranges(struct iproc_pcie *pcie,
  350. struct list_head *resources)
  351. {
  352. struct resource_entry *window;
  353. int ret;
  354. resource_list_for_each_entry(window, resources) {
  355. struct resource *res = window->res;
  356. u64 res_type = resource_type(res);
  357. switch (res_type) {
  358. case IORESOURCE_IO:
  359. case IORESOURCE_BUS:
  360. break;
  361. case IORESOURCE_MEM:
  362. ret = iproc_pcie_setup_ob(pcie, res->start,
  363. res->start - window->offset,
  364. resource_size(res));
  365. if (ret)
  366. return ret;
  367. break;
  368. default:
  369. dev_err(pcie->dev, "invalid resource %pR\n", res);
  370. return -EINVAL;
  371. }
  372. }
  373. return 0;
  374. }
  375. static int iproc_pcie_msi_enable(struct iproc_pcie *pcie)
  376. {
  377. struct device_node *msi_node;
  378. msi_node = of_parse_phandle(pcie->dev->of_node, "msi-parent", 0);
  379. if (!msi_node)
  380. return -ENODEV;
  381. /*
  382. * If another MSI controller is being used, the call below should fail
  383. * but that is okay
  384. */
  385. return iproc_msi_init(pcie, msi_node);
  386. }
  387. static void iproc_pcie_msi_disable(struct iproc_pcie *pcie)
  388. {
  389. iproc_msi_exit(pcie);
  390. }
  391. int iproc_pcie_setup(struct iproc_pcie *pcie, struct list_head *res)
  392. {
  393. int ret;
  394. void *sysdata;
  395. struct pci_bus *bus;
  396. if (!pcie || !pcie->dev || !pcie->base)
  397. return -EINVAL;
  398. ret = phy_init(pcie->phy);
  399. if (ret) {
  400. dev_err(pcie->dev, "unable to initialize PCIe PHY\n");
  401. return ret;
  402. }
  403. ret = phy_power_on(pcie->phy);
  404. if (ret) {
  405. dev_err(pcie->dev, "unable to power on PCIe PHY\n");
  406. goto err_exit_phy;
  407. }
  408. switch (pcie->type) {
  409. case IPROC_PCIE_PAXB:
  410. pcie->reg_offsets = iproc_pcie_reg_paxb;
  411. break;
  412. case IPROC_PCIE_PAXC:
  413. pcie->reg_offsets = iproc_pcie_reg_paxc;
  414. break;
  415. default:
  416. dev_err(pcie->dev, "incompatible iProc PCIe interface\n");
  417. ret = -EINVAL;
  418. goto err_power_off_phy;
  419. }
  420. iproc_pcie_reset(pcie);
  421. if (pcie->need_ob_cfg) {
  422. ret = iproc_pcie_map_ranges(pcie, res);
  423. if (ret) {
  424. dev_err(pcie->dev, "map failed\n");
  425. goto err_power_off_phy;
  426. }
  427. }
  428. #ifdef CONFIG_ARM
  429. pcie->sysdata.private_data = pcie;
  430. sysdata = &pcie->sysdata;
  431. #else
  432. sysdata = pcie;
  433. #endif
  434. bus = pci_create_root_bus(pcie->dev, 0, &iproc_pcie_ops, sysdata, res);
  435. if (!bus) {
  436. dev_err(pcie->dev, "unable to create PCI root bus\n");
  437. ret = -ENOMEM;
  438. goto err_power_off_phy;
  439. }
  440. pcie->root_bus = bus;
  441. ret = iproc_pcie_check_link(pcie, bus);
  442. if (ret) {
  443. dev_err(pcie->dev, "no PCIe EP device detected\n");
  444. goto err_rm_root_bus;
  445. }
  446. iproc_pcie_enable(pcie);
  447. if (IS_ENABLED(CONFIG_PCI_MSI))
  448. if (iproc_pcie_msi_enable(pcie))
  449. dev_info(pcie->dev, "not using iProc MSI\n");
  450. pci_scan_child_bus(bus);
  451. pci_assign_unassigned_bus_resources(bus);
  452. pci_fixup_irqs(pci_common_swizzle, pcie->map_irq);
  453. pci_bus_add_devices(bus);
  454. return 0;
  455. err_rm_root_bus:
  456. pci_stop_root_bus(bus);
  457. pci_remove_root_bus(bus);
  458. err_power_off_phy:
  459. phy_power_off(pcie->phy);
  460. err_exit_phy:
  461. phy_exit(pcie->phy);
  462. return ret;
  463. }
  464. EXPORT_SYMBOL(iproc_pcie_setup);
  465. int iproc_pcie_remove(struct iproc_pcie *pcie)
  466. {
  467. pci_stop_root_bus(pcie->root_bus);
  468. pci_remove_root_bus(pcie->root_bus);
  469. iproc_pcie_msi_disable(pcie);
  470. phy_power_off(pcie->phy);
  471. phy_exit(pcie->phy);
  472. return 0;
  473. }
  474. EXPORT_SYMBOL(iproc_pcie_remove);
  475. MODULE_AUTHOR("Ray Jui <rjui@broadcom.com>");
  476. MODULE_DESCRIPTION("Broadcom iPROC PCIe common driver");
  477. MODULE_LICENSE("GPL v2");