| /linux/drivers/bus/ |
| H A D | bt1-apb.c | 70 static inline unsigned long bt1_apb_n_to_timeout_us(struct bt1_apb *apb, u32 n) in bt1_apb_n_to_timeout_us() argument 74 do_div(timeout, apb->rate); in bt1_apb_n_to_timeout_us() 80 static inline unsigned long bt1_apb_timeout_to_n_us(struct bt1_apb *apb, in bt1_apb_timeout_to_n_us() argument 83 u64 n = (u64)timeout * apb->rate; in bt1_apb_timeout_to_n_us() 93 struct bt1_apb *apb = data; in bt1_apb_isr() local 96 regmap_read(apb->regs, APB_EHB_ADDR, &addr); in bt1_apb_isr() 98 dev_crit_ratelimited(apb->dev, in bt1_apb_isr() 100 atomic_inc_return(&apb->count), in bt1_apb_isr() 112 regmap_update_bits(apb->regs, APB_EHB_ISR, APB_EHB_ISR_PENDING, 0); in bt1_apb_isr() 119 struct bt1_apb *apb = data; in bt1_apb_clear_data() local [all …]
|
| /linux/drivers/staging/greybus/ |
| H A D | arche-apb-ctrl.c | 70 struct arche_apb_ctrl_drvdata *apb = platform_get_drvdata(pdev); in coldboot_seq() local 73 if (apb->init_disabled || in coldboot_seq() 74 apb->state == ARCHE_PLATFORM_STATE_ACTIVE) in coldboot_seq() 78 assert_reset(apb->resetn); in coldboot_seq() 80 if (apb->state == ARCHE_PLATFORM_STATE_FW_FLASHING && apb->spi_en) in coldboot_seq() 81 devm_gpiod_put(dev, apb->spi_en); in coldboot_seq() 84 if (!IS_ERR(apb->vcore)) { in coldboot_seq() 85 ret = regulator_enable(apb->vcore); in coldboot_seq() 92 if (!IS_ERR(apb->vio)) { in coldboot_seq() 93 ret = regulator_enable(apb->vio); in coldboot_seq() [all …]
|
| /linux/arch/arm/boot/dts/synaptics/ |
| H A D | berlin2.dtsi | 176 apb@e80000 { 185 compatible = "snps,dw-apb-gpio"; 191 compatible = "snps,dw-apb-gpio-port"; 203 compatible = "snps,dw-apb-gpio"; 209 compatible = "snps,dw-apb-gpio-port"; 221 compatible = "snps,dw-apb-gpio"; 227 compatible = "snps,dw-apb-gpio-port"; 239 compatible = "snps,dw-apb-gpio"; 245 compatible = "snps,dw-apb-gpio-port"; 257 compatible = "snps,dw-apb-timer"; [all …]
|
| H A D | berlin2cd.dtsi | 166 apb@e80000 { 175 compatible = "snps,dw-apb-gpio"; 181 compatible = "snps,dw-apb-gpio-port"; 193 compatible = "snps,dw-apb-gpio"; 199 compatible = "snps,dw-apb-gpio-port"; 211 compatible = "snps,dw-apb-gpio"; 217 compatible = "snps,dw-apb-gpio-port"; 229 compatible = "snps,dw-apb-gpio"; 235 compatible = "snps,dw-apb-gpio-port"; 267 compatible = "snps,dw-apb-ssi"; [all …]
|
| H A D | berlin2q.dtsi | 237 apb@e80000 { 246 compatible = "snps,dw-apb-gpio"; 252 compatible = "snps,dw-apb-gpio-port"; 264 compatible = "snps,dw-apb-gpio"; 270 compatible = "snps,dw-apb-gpio-port"; 282 compatible = "snps,dw-apb-gpio"; 288 compatible = "snps,dw-apb-gpio-port"; 300 compatible = "snps,dw-apb-gpio"; 306 compatible = "snps,dw-apb-gpio-port"; 342 compatible = "snps,dw-apb-timer"; [all …]
|
| /linux/arch/arm64/boot/dts/synaptics/ |
| H A D | berlin4ct.dtsi | 127 apb@e80000 { 136 compatible = "snps,dw-apb-gpio"; 142 compatible = "snps,dw-apb-gpio-port"; 154 compatible = "snps,dw-apb-gpio"; 160 compatible = "snps,dw-apb-gpio-port"; 172 compatible = "snps,dw-apb-gpio"; 178 compatible = "snps,dw-apb-gpio-port"; 190 compatible = "snps,dw-apb-gpio"; 196 compatible = "snps,dw-apb-gpio-port"; 208 compatible = "snps,dw-apb-ictl"; [all …]
|
| /linux/arch/riscv/boot/dts/thead/ |
| H A D | th1520.dtsi | 299 compatible = "thead,th1520-spi", "snps,dw-apb-ssi"; 309 compatible = "snps,dw-apb-uart"; 322 reg-names = "dwmac", "apb"; 327 clock-names = "stmmaceth", "pclk", "apb"; 345 reg-names = "dwmac", "apb"; 350 clock-names = "stmmaceth", "pclk", "apb"; 393 compatible = "snps,dw-apb-uart"; 404 compatible = "snps,dw-apb-uart"; 415 compatible = "snps,dw-apb-gpio"; 423 compatible = "snps,dw-apb-gpio-port"; [all …]
|
| /linux/arch/arm64/boot/dts/bitmain/ |
| H A D | bm1880.dtsi | 123 compatible = "snps,dw-apb-gpio"; 127 compatible = "snps,dw-apb-gpio-port"; 141 compatible = "snps,dw-apb-gpio"; 145 compatible = "snps,dw-apb-gpio-port"; 159 compatible = "snps,dw-apb-gpio"; 163 compatible = "snps,dw-apb-gpio-port"; 175 compatible = "snps,dw-apb-uart"; 188 compatible = "snps,dw-apb-uart"; 201 compatible = "snps,dw-apb-uart"; 214 compatible = "snps,dw-apb-uart";
|
| /linux/arch/riscv/boot/dts/sophgo/ |
| H A D | cv180x.dtsi | 88 compatible = "snps,dw-apb-gpio"; 95 compatible = "snps,dw-apb-gpio-port"; 107 compatible = "snps,dw-apb-gpio"; 114 compatible = "snps,dw-apb-gpio-port"; 126 compatible = "snps,dw-apb-gpio"; 133 compatible = "snps,dw-apb-gpio-port"; 145 compatible = "snps,dw-apb-gpio"; 152 compatible = "snps,dw-apb-gpio-port"; 292 compatible = "snps,dw-apb-uart"; 304 compatible = "snps,dw-apb-uart"; [all …]
|
| /linux/arch/arc/boot/dts/ |
| H A D | axs10x_mb.dtsi | 132 compatible = "snps,dw-apb-uart"; 142 compatible = "snps,dw-apb-uart"; 153 compatible = "snps,dw-apb-uart"; 244 compatible = "snps,dw-apb-gpio"; 250 compatible = "snps,dw-apb-gpio-port"; 258 compatible = "snps,dw-apb-gpio-port"; 266 compatible = "snps,dw-apb-gpio-port"; 275 compatible = "snps,dw-apb-gpio"; 281 compatible = "snps,dw-apb-gpio-port"; 289 compatible = "snps,dw-apb-gpio-port"; [all …]
|
| H A D | axc001.dtsi | 47 dw-apb-gpio@2000 { 48 compatible = "snps,dw-apb-gpio"; 54 compatible = "snps,dw-apb-gpio-port"; 66 debug_uart: dw-apb-uart@5000 { 67 compatible = "snps,dw-apb-uart"; 96 compatible = "snps,dw-apb-ictl";
|
| H A D | axc003.dtsi | 55 dw-apb-gpio@2000 { 56 compatible = "snps,dw-apb-gpio"; 62 compatible = "snps,dw-apb-gpio-port"; 74 debug_uart: dw-apb-uart@5000 { 75 compatible = "snps,dw-apb-uart"; 134 compatible = "snps,dw-apb-ictl";
|
| H A D | axc003_idu.dtsi | 62 dw-apb-gpio@2000 { 63 compatible = "snps,dw-apb-gpio"; 69 compatible = "snps,dw-apb-gpio-port"; 81 debug_uart: dw-apb-uart@5000 { 82 compatible = "snps,dw-apb-uart"; 140 compatible = "snps,dw-apb-ictl";
|
| H A D | vdk_axc003.dtsi | 36 debug_uart: dw-apb-uart@5000 { 37 compatible = "snps,dw-apb-uart"; 51 compatible = "snps,dw-apb-ictl";
|
| /linux/drivers/clk/sunxi-ng/ |
| H A D | ccu-sun55i-a523-mcu.c | 34 static const struct clk_parent_data apb[] = { variable 143 static SUNXI_CCU_GATE_DATA(bus_i2s0_clk, "bus-i2s0", apb, 0x040, BIT(0), 0); 144 static SUNXI_CCU_GATE_DATA(bus_i2s1_clk, "bus-i2s1", apb, 0x040, BIT(1), 0); 145 static SUNXI_CCU_GATE_DATA(bus_i2s2_clk, "bus-i2s2", apb, 0x040, BIT(2), 0); 146 static SUNXI_CCU_GATE_DATA(bus_i2s3_clk, "bus-i2s3", apb, 0x040, BIT(3), 0); 168 static SUNXI_CCU_GATE_DATA(bus_spdif_clk, "bus-spdif", apb, 0x04c, BIT(0), 0); 177 static SUNXI_CCU_GATE_DATA(bus_dmic_clk, "bus-dmic", apb, 0x054, BIT(0), 0); 195 apb, 0x060, BIT(0), 0); 200 apb, 0x06c, BIT(0), 0); 282 static SUNXI_CCU_GATE_DATA(bus_mcu_pwm0_clk, "bus-mcu-pwm0", apb,
|
| /linux/arch/riscv/boot/dts/eswin/ |
| H A D | eic7700.dtsi | 249 compatible = "snps,dw-apb-uart"; 259 compatible = "snps,dw-apb-uart"; 269 compatible = "snps,dw-apb-uart"; 279 compatible = "snps,dw-apb-uart"; 289 compatible = "snps,dw-apb-uart"; 299 compatible = "snps,dw-apb-gpio"; 305 compatible = "snps,dw-apb-gpio-port"; 321 compatible = "snps,dw-apb-gpio-port"; 329 compatible = "snps,dw-apb-gpio-port"; 337 compatible = "snps,dw-apb-gpio-port";
|
| /linux/drivers/phy/hisilicon/ |
| H A D | phy-hi3670-pcie.c | 160 struct regmap *apb; member 288 regmap_write(phy->apb, SOC_PCIECTRL_CTRL20_ADDR, in hi3670_pcie_natural_cfg() 291 regmap_read(phy->apb, SOC_PCIECTRL_CTRL7_ADDR, &val); in hi3670_pcie_natural_cfg() 293 regmap_write(phy->apb, SOC_PCIECTRL_CTRL7_ADDR, val); in hi3670_pcie_natural_cfg() 296 regmap_read(phy->apb, SOC_PCIECTRL_CTRL12_ADDR, &val); in hi3670_pcie_natural_cfg() 299 regmap_write(phy->apb, SOC_PCIECTRL_CTRL12_ADDR, val); in hi3670_pcie_natural_cfg() 439 regmap_write(phy->apb, SOC_PCIECTRL_CTRL21_ADDR, in hi3670_pcie_ioref_gt() 586 phy->apb = dev_get_regmap(pcie_dev, "kirin_pcie_apb"); in hi3670_pcie_get_resources_from_pcie() 587 if (!phy->apb) { in hi3670_pcie_get_resources_from_pcie() 698 regmap_read(phy->apb, SOC_PCIECTRL_CTRL12_ADDR, &val); in hi3670_pcie_phy_power_on() [all …]
|
| /linux/arch/arm/boot/dts/hisilicon/ |
| H A D | hip01.dtsi | 45 compatible = "snps,dw-apb-uart"; 55 compatible = "snps,dw-apb-uart"; 65 compatible = "snps,dw-apb-uart"; 75 compatible = "snps,dw-apb-uart";
|
| /linux/arch/riscv/boot/dts/canaan/ |
| H A D | k210.dtsi | 179 compatible = "snps,dw-apb-gpio"; 190 compatible = "snps,dw-apb-gpio-port"; 200 compatible = "snps,dw-apb-uart"; 217 compatible = "snps,dw-apb-uart"; 234 compatible = "snps,dw-apb-uart"; 338 compatible = "snps,dw-apb-timer"; 348 compatible = "snps,dw-apb-timer"; 358 compatible = "snps,dw-apb-timer"; 368 compatible = "snps,dw-apb-timer"; 378 compatible = "snps,dw-apb-timer"; [all …]
|
| /linux/drivers/pci/controller/dwc/ |
| H A D | pcie-kirin.c | 74 struct regmap *apb; member 460 kirin_pcie->apb = devm_regmap_init_mmio(dev, apb_base, in kirin_pcie_get_resource() 462 if (IS_ERR(kirin_pcie->apb)) in kirin_pcie_get_resource() 463 return PTR_ERR(kirin_pcie->apb); in kirin_pcie_get_resource() 491 regmap_read(kirin_pcie->apb, SOC_PCIECTRL_CTRL0_ADDR, &val); in kirin_pcie_sideband_dbi_w_mode() 497 regmap_write(kirin_pcie->apb, SOC_PCIECTRL_CTRL0_ADDR, val); in kirin_pcie_sideband_dbi_w_mode() 505 regmap_read(kirin_pcie->apb, SOC_PCIECTRL_CTRL1_ADDR, &val); in kirin_pcie_sideband_dbi_r_mode() 511 regmap_write(kirin_pcie->apb, SOC_PCIECTRL_CTRL1_ADDR, val); in kirin_pcie_sideband_dbi_r_mode() 594 regmap_read(kirin_pcie->apb, PCIE_APB_PHY_STATUS0, &val); in kirin_pcie_link_up() 603 regmap_write(kirin_pcie->apb, PCIE_APP_LTSSM_ENABLE, in kirin_pcie_start_link()
|
| H A D | pci-meson.c | 62 struct reset_control *apb; member 98 mrst->apb = meson_pcie_get_reset(mp, "apb", PCIE_SHARED_RESET); in meson_pcie_get_resets() 99 if (IS_ERR(mrst->apb)) in meson_pcie_get_resets() 100 return PTR_ERR(mrst->apb); in meson_pcie_get_resets() 101 reset_control_deassert(mrst->apb); in meson_pcie_get_resets() 167 reset_control_assert(mrst->apb); in meson_pcie_reset() 170 reset_control_deassert(mrst->apb); in meson_pcie_reset()
|
| /linux/arch/arm64/boot/dts/intel/ |
| H A D | keembay-soc.dtsi | 84 compatible = "snps,dw-apb-uart"; 94 compatible = "snps,dw-apb-uart"; 104 compatible = "snps,dw-apb-uart"; 114 compatible = "snps,dw-apb-uart";
|
| /linux/arch/arm/boot/dts/broadcom/ |
| H A D | bcm11351.dtsi | 53 compatible = "brcm,bcm11351-dw-apb-uart", "snps,dw-apb-uart"; 63 compatible = "brcm,bcm11351-dw-apb-uart", "snps,dw-apb-uart"; 73 compatible = "brcm,bcm11351-dw-apb-uart", "snps,dw-apb-uart"; 83 compatible = "brcm,bcm11351-dw-apb-uart", "snps,dw-apb-uart";
|
| /linux/drivers/net/ethernet/stmicro/stmmac/ |
| H A D | dwmac-thead.c | 222 void __iomem *apb; in thead_dwmac_probe() local 252 apb = devm_platform_ioremap_resource(pdev, 1); in thead_dwmac_probe() 253 if (IS_ERR(apb)) in thead_dwmac_probe() 254 return dev_err_probe(&pdev->dev, PTR_ERR(apb), in thead_dwmac_probe() 259 dwmac->apb_base = apb; in thead_dwmac_probe()
|
| /linux/arch/arm64/boot/dts/altera/ |
| H A D | socfpga_stratix10.dtsi | 231 compatible = "snps,dw-apb-gpio"; 237 compatible = "snps,dw-apb-gpio-port"; 251 compatible = "snps,dw-apb-gpio"; 257 compatible = "snps,dw-apb-gpio-port"; 429 compatible = "snps,dw-apb-ssi"; 443 compatible = "snps,dw-apb-ssi"; 462 compatible = "snps,dw-apb-timer"; 470 compatible = "snps,dw-apb-timer"; 478 compatible = "snps,dw-apb-timer"; 486 compatible = "snps,dw-apb-timer"; [all …]
|