Searched refs:pcie2 (Results 1 - 8 of 8) sorted by relevance

/linux-4.1.27/drivers/bcma/
H A Ddriver_pcie2.c20 static u32 bcma_core_pcie2_cfg_read(struct bcma_drv_pcie2 *pcie2, u32 addr)
22 pcie2_write32(pcie2, BCMA_CORE_PCIE2_CONFIGINDADDR, addr);
23 pcie2_read32(pcie2, BCMA_CORE_PCIE2_CONFIGINDADDR);
24 return pcie2_read32(pcie2, BCMA_CORE_PCIE2_CONFIGINDDATA);
28 static void bcma_core_pcie2_cfg_write(struct bcma_drv_pcie2 *pcie2, u32 addr, bcma_core_pcie2_cfg_write() argument
31 pcie2_write32(pcie2, BCMA_CORE_PCIE2_CONFIGINDADDR, addr); bcma_core_pcie2_cfg_write()
32 pcie2_write32(pcie2, BCMA_CORE_PCIE2_CONFIGINDDATA, val); bcma_core_pcie2_cfg_write()
39 static u32 bcma_core_pcie2_war_delay_perst_enab(struct bcma_drv_pcie2 *pcie2, bcma_core_pcie2_war_delay_perst_enab() argument
45 val = pcie2_read32(pcie2, BCMA_CORE_PCIE2_CLK_CONTROL); bcma_core_pcie2_war_delay_perst_enab()
52 pcie2_write32(pcie2, (BCMA_CORE_PCIE2_CLK_CONTROL), val); bcma_core_pcie2_war_delay_perst_enab()
54 return pcie2_read32(pcie2, BCMA_CORE_PCIE2_CLK_CONTROL); bcma_core_pcie2_war_delay_perst_enab()
57 static void bcma_core_pcie2_set_ltr_vals(struct bcma_drv_pcie2 *pcie2) bcma_core_pcie2_set_ltr_vals() argument
60 pcie2_write32(pcie2, BCMA_CORE_PCIE2_CONFIGINDADDR, 0x844); bcma_core_pcie2_set_ltr_vals()
61 pcie2_write32(pcie2, BCMA_CORE_PCIE2_CONFIGINDDATA, 0x883c883c); bcma_core_pcie2_set_ltr_vals()
63 pcie2_write32(pcie2, BCMA_CORE_PCIE2_CONFIGINDADDR, 0x848); bcma_core_pcie2_set_ltr_vals()
64 pcie2_write32(pcie2, BCMA_CORE_PCIE2_CONFIGINDDATA, 0x88648864); bcma_core_pcie2_set_ltr_vals()
66 pcie2_write32(pcie2, BCMA_CORE_PCIE2_CONFIGINDADDR, 0x84C); bcma_core_pcie2_set_ltr_vals()
67 pcie2_write32(pcie2, BCMA_CORE_PCIE2_CONFIGINDDATA, 0x90039003); bcma_core_pcie2_set_ltr_vals()
70 static void bcma_core_pcie2_hw_ltr_war(struct bcma_drv_pcie2 *pcie2) bcma_core_pcie2_hw_ltr_war() argument
72 u8 core_rev = pcie2->core->id.rev; bcma_core_pcie2_hw_ltr_war()
78 pcie2_write32(pcie2, BCMA_CORE_PCIE2_CONFIGINDADDR, bcma_core_pcie2_hw_ltr_war()
80 devstsctr2 = pcie2_read32(pcie2, BCMA_CORE_PCIE2_CONFIGINDDATA); bcma_core_pcie2_hw_ltr_war()
83 bcma_core_pcie2_set_ltr_vals(pcie2); bcma_core_pcie2_hw_ltr_war()
86 si_core_wrapperreg(pcie2, 3, 0x60, 0x8080, 0); */ bcma_core_pcie2_hw_ltr_war()
90 pcie2_write32(pcie2, BCMA_CORE_PCIE2_CONFIGINDADDR, bcma_core_pcie2_hw_ltr_war()
92 pcie2_write32(pcie2, BCMA_CORE_PCIE2_CONFIGINDDATA, devstsctr2); bcma_core_pcie2_hw_ltr_war()
95 pcie2_write32(pcie2, BCMA_CORE_PCIE2_LTR_STATE, bcma_core_pcie2_hw_ltr_war()
100 pcie2_write32(pcie2, BCMA_CORE_PCIE2_LTR_STATE, bcma_core_pcie2_hw_ltr_war()
106 static void pciedev_crwlpciegen2(struct bcma_drv_pcie2 *pcie2) pciedev_crwlpciegen2() argument
108 u8 core_rev = pcie2->core->id.rev; pciedev_crwlpciegen2()
120 pcie2_set32(pcie2, BCMA_CORE_PCIE2_CLK_CONTROL, pciedev_crwlpciegen2()
123 pcie2_write32(pcie2, BCMA_CORE_PCIE2_CONFIGINDADDR, pciedev_crwlpciegen2()
125 pcie2_mask32(pcie2, BCMA_CORE_PCIE2_CONFIGINDDATA, pciedev_crwlpciegen2()
131 static void pciedev_crwlpciegen2_180(struct bcma_drv_pcie2 *pcie2) pciedev_crwlpciegen2_180() argument
133 pcie2_write32(pcie2, BCMA_CORE_PCIE2_CONFIGINDADDR, PCIE2_PMCR_REFUP); pciedev_crwlpciegen2_180()
134 pcie2_set32(pcie2, BCMA_CORE_PCIE2_CONFIGINDDATA, 0x1f); pciedev_crwlpciegen2_180()
137 static void pciedev_crwlpciegen2_182(struct bcma_drv_pcie2 *pcie2) pciedev_crwlpciegen2_182() argument
139 pcie2_write32(pcie2, BCMA_CORE_PCIE2_CONFIGINDADDR, PCIE2_SBMBX); pciedev_crwlpciegen2_182()
140 pcie2_write32(pcie2, BCMA_CORE_PCIE2_CONFIGINDDATA, 1 << 0); pciedev_crwlpciegen2_182()
143 static void pciedev_reg_pm_clk_period(struct bcma_drv_pcie2 *pcie2) pciedev_reg_pm_clk_period() argument
145 struct bcma_drv_cc *drv_cc = &pcie2->core->bus->drv_cc; pciedev_reg_pm_clk_period()
146 u8 core_rev = pcie2->core->id.rev; pciedev_reg_pm_clk_period()
152 pcie2_write32(pcie2, BCMA_CORE_PCIE2_CONFIGINDADDR, pciedev_reg_pm_clk_period()
154 pcie2_write32(pcie2, BCMA_CORE_PCIE2_CONFIGINDDATA, pm_value); pciedev_reg_pm_clk_period()
158 void bcma_core_pcie2_init(struct bcma_drv_pcie2 *pcie2) bcma_core_pcie2_init() argument
160 struct bcma_bus *bus = pcie2->core->bus; bcma_core_pcie2_init()
164 tmp = pcie2_read32(pcie2, BCMA_CORE_PCIE2_SPROM(54)); bcma_core_pcie2_init()
166 bcma_core_pcie2_cfg_write(pcie2, 0x4e0, 0x17); bcma_core_pcie2_init()
171 pcie2->reqsize = 1024; bcma_core_pcie2_init()
174 pcie2->reqsize = 128; bcma_core_pcie2_init()
179 bcma_core_pcie2_war_delay_perst_enab(pcie2, true); bcma_core_pcie2_init()
180 bcma_core_pcie2_hw_ltr_war(pcie2); bcma_core_pcie2_init()
181 pciedev_crwlpciegen2(pcie2); bcma_core_pcie2_init()
182 pciedev_reg_pm_clk_period(pcie2); bcma_core_pcie2_init()
183 pciedev_crwlpciegen2_180(pcie2); bcma_core_pcie2_init()
184 pciedev_crwlpciegen2_182(pcie2); bcma_core_pcie2_init()
191 void bcma_core_pcie2_up(struct bcma_drv_pcie2 *pcie2) bcma_core_pcie2_up() argument
193 struct bcma_bus *bus = pcie2->core->bus; bcma_core_pcie2_up()
197 err = pcie_set_readrq(dev, pcie2->reqsize); bcma_core_pcie2_up()
H A Dbcma_private.h129 void bcma_core_pcie2_init(struct bcma_drv_pcie2 *pcie2);
130 void bcma_core_pcie2_up(struct bcma_drv_pcie2 *pcie2);
132 static inline void bcma_core_pcie2_init(struct bcma_drv_pcie2 *pcie2) bcma_core_pcie2_init() argument
135 WARN_ON(pcie2->core->bus->hosttype == BCMA_HOSTTYPE_PCI); bcma_core_pcie2_init()
/linux-4.1.27/include/linux/bcma/
H A Dbcma_driver_pcie2.h150 #define pcie2_read16(pcie2, offset) bcma_read16((pcie2)->core, offset)
151 #define pcie2_read32(pcie2, offset) bcma_read32((pcie2)->core, offset)
152 #define pcie2_write16(pcie2, offset, val) bcma_write16((pcie2)->core, offset, val)
153 #define pcie2_write32(pcie2, offset, val) bcma_write32((pcie2)->core, offset, val)
155 #define pcie2_set32(pcie2, offset, set) bcma_set32((pcie2)->core, offset, set)
156 #define pcie2_mask32(pcie2, offset, mask) bcma_mask32((pcie2)->core, offset, mask)
/linux-4.1.27/drivers/misc/
H A Dspear13xx_pcie_gadget.c826 clk = clk_get_sys("pcie2", NULL); spear_pcie_gadget_probe()
828 pr_err("%s:couldn't get clk for pcie2\n", __func__); spear_pcie_gadget_probe()
833 pr_err("%s:couldn't enable clk for pcie2\n", __func__); spear_pcie_gadget_probe()
/linux-4.1.27/drivers/pinctrl/mvebu/
H A Dpinctrl-armada-38x.c107 MPP_VAR_FUNCTION(6, "pcie2", "clkreq", V_88F6810_PLUS)),
370 MPP_VAR_FUNCTION(3, "pcie2", "clkreq", V_88F6810_PLUS),
H A Dpinctrl-armada-39x.c351 MPP_VAR_FUNCTION(3, "pcie2", "clkreq", V_88F6920_PLUS),
/linux-4.1.27/arch/arm/mach-omap2/
H A Domap_hwmod_7xx_data.c1488 /* pcie2 */
1490 .name = "pcie2",
/linux-4.1.27/drivers/pinctrl/spear/
H A Dpinctrl-spear1310.c2100 /* pad multiplexing for (fix-part) pcie2 device */

Completed in 230 milliseconds