/u-boot/drivers/ata/ |
A D | ahci_sunxi.c | 19 static int sunxi_ahci_phy_init(u8 *reg_base) in sunxi_ahci_phy_init() argument 24 writel(0, reg_base + AHCI_RWCR); in sunxi_ahci_phy_init() 27 setbits_le32(reg_base + AHCI_PHYCS1R, 0x1 << 19); in sunxi_ahci_phy_init() 28 clrsetbits_le32(reg_base + AHCI_PHYCS0R, in sunxi_ahci_phy_init() 31 clrsetbits_le32(reg_base + AHCI_PHYCS1R, in sunxi_ahci_phy_init() 35 clrbits_le32(reg_base + AHCI_PHYCS1R, (0x1 << 19)); in sunxi_ahci_phy_init() 40 setbits_le32(reg_base + AHCI_PHYCS0R, (0x1 << 19)); in sunxi_ahci_phy_init() 44 reg_val = readl(reg_base + AHCI_PHYCS0R) & (0x7 << 28); in sunxi_ahci_phy_init() 54 setbits_le32(reg_base + AHCI_PHYCS2R, (0x1 << 24)); in sunxi_ahci_phy_init() 58 reg_val = readl(reg_base + AHCI_PHYCS2R) & (0x1 << 24); in sunxi_ahci_phy_init() [all …]
|
/u-boot/drivers/spi/ |
A D | cadence_qspi_apb.c | 184 reg = readl(reg_base + CQSPI_REG_CONFIG); in cadence_qspi_apb_controller_enable() 186 writel(reg, reg_base + CQSPI_REG_CONFIG); in cadence_qspi_apb_controller_enable() 192 reg = readl(reg_base + CQSPI_REG_CONFIG); in cadence_qspi_apb_controller_disable() 194 writel(reg, reg_base + CQSPI_REG_CONFIG); in cadence_qspi_apb_controller_disable() 201 reg = readl(reg_base + CQSPI_REG_CONFIG); in cadence_qspi_apb_dac_mode_enable() 203 writel(reg, reg_base + CQSPI_REG_CONFIG); in cadence_qspi_apb_dac_mode_enable() 215 if (CQSPI_REG_IS_IDLE(reg_base)) in cadence_qspi_wait_idle() 375 writel(reg, reg_base + CQSPI_REG_DELAY); in cadence_qspi_apb_delay() 431 if (!cadence_qspi_wait_idle(reg_base)) in cadence_qspi_apb_exec_flash_cmd() 512 writel(wr_data, reg_base + in cadence_qspi_apb_command_write() [all …]
|
A D | cadence_qspi.h | 58 void cadence_qspi_apb_dac_mode_enable(void *reg_base); 74 void cadence_qspi_apb_chipselect(void *reg_base, 76 void cadence_qspi_apb_set_clk_mode(void *reg_base, uint mode); 77 void cadence_qspi_apb_config_baudrate_div(void *reg_base, 79 void cadence_qspi_apb_delay(void *reg_base, 83 void cadence_qspi_apb_enter_xip(void *reg_base, char xip_dummy); 84 void cadence_qspi_apb_readdata_capture(void *reg_base,
|
A D | atmel_spi.c | 127 struct at91_spi *reg_base = bus_plat->regs; in atmel_spi_claim_bus() local 147 writel(csrx, ®_base->csr[cs]); in atmel_spi_claim_bus() 154 writel(mode, ®_base->mr); in atmel_spi_claim_bus() 156 writel(ATMEL_SPI_CR_SPIEN, ®_base->cr); in atmel_spi_claim_bus() 206 struct at91_spi *reg_base = bus_plat->regs; in atmel_spi_xfer() local 248 readl(®_base->rdr); in atmel_spi_xfer() 252 status = readl(®_base->sr); in atmel_spi_xfer() 262 writel(value, ®_base->tdr); in atmel_spi_xfer() 267 value = readl(®_base->rdr); in atmel_spi_xfer() 280 wait_for_bit_le32(®_base->sr, in atmel_spi_xfer()
|
/u-boot/arch/arm/mach-uniphier/clk/ |
A D | pll.h | 14 int uniphier_ld20_sscpll_init(unsigned long reg_base, unsigned int freq, 16 int uniphier_ld20_sscpll_ssc_en(unsigned long reg_base); 17 int uniphier_ld20_sscpll_set_regi(unsigned long reg_base, unsigned regi); 18 int uniphier_ld20_vpll27_init(unsigned long reg_base); 19 int uniphier_ld20_dspll_init(unsigned long reg_base);
|
A D | pll-base-ld20.c | 32 int uniphier_ld20_sscpll_init(unsigned long reg_base, unsigned int freq, in uniphier_ld20_sscpll_init() argument 35 void __iomem *base = sc_base + reg_base; in uniphier_ld20_sscpll_init() 63 int uniphier_ld20_sscpll_ssc_en(unsigned long reg_base) in uniphier_ld20_sscpll_ssc_en() argument 65 void __iomem *base = sc_base + reg_base; in uniphier_ld20_sscpll_ssc_en() 75 int uniphier_ld20_sscpll_set_regi(unsigned long reg_base, unsigned regi) in uniphier_ld20_sscpll_set_regi() argument 77 void __iomem *base = sc_base + reg_base; in uniphier_ld20_sscpll_set_regi() 88 int uniphier_ld20_vpll27_init(unsigned long reg_base) in uniphier_ld20_vpll27_init() argument 90 void __iomem *base = sc_base + reg_base; in uniphier_ld20_vpll27_init() 108 int uniphier_ld20_dspll_init(unsigned long reg_base) in uniphier_ld20_dspll_init() argument 110 void __iomem *base = sc_base + reg_base; in uniphier_ld20_dspll_init()
|
/u-boot/drivers/mmc/ |
A D | kona_sdhci.c | 82 void *reg_base; in kona_sdhci_init() local 92 reg_base = (void *)CONFIG_SYS_SDIO_BASE0; in kona_sdhci_init() 93 ret = clk_sdio_enable(reg_base, CONFIG_SYS_SDIO0_MAX_CLK, in kona_sdhci_init() 97 reg_base = (void *)CONFIG_SYS_SDIO_BASE1; in kona_sdhci_init() 98 ret = clk_sdio_enable(reg_base, CONFIG_SYS_SDIO1_MAX_CLK, in kona_sdhci_init() 102 reg_base = (void *)CONFIG_SYS_SDIO_BASE2; in kona_sdhci_init() 103 ret = clk_sdio_enable(reg_base, CONFIG_SYS_SDIO2_MAX_CLK, in kona_sdhci_init() 107 reg_base = (void *)CONFIG_SYS_SDIO_BASE3; in kona_sdhci_init() 108 ret = clk_sdio_enable(reg_base, CONFIG_SYS_SDIO3_MAX_CLK, in kona_sdhci_init() 122 host->ioaddr = reg_base; in kona_sdhci_init()
|
A D | davinci_mmc.c | 31 struct davinci_mmc_regs *reg_base; /* Register base address */ member 50 struct davinci_mmc_regs *regs = host->reg_base; 156 volatile struct davinci_mmc_regs *regs = host->reg_base; 349 struct davinci_mmc_regs *regs = host->reg_base; 385 struct davinci_mmc_regs *regs = host->reg_base; 392 struct davinci_mmc_regs *regs = host->reg_base; 484 priv->reg_base = plat->reg_base; 509 plat->reg_base = (struct davinci_mmc_regs *)dev_read_addr(dev);
|
/u-boot/drivers/net/pfe_eth/ |
A D | pfe_mdio.c | 22 void *reg_base = bus->priv; in pfe_write_addr() local 33 writel(reg_data, reg_base + EMAC_MII_DATA_REG); in pfe_write_addr() 48 writel(EMAC_IEVENT_MII, reg_base + EMAC_IEVENT_REG); in pfe_write_addr() 56 void *reg_base = bus->priv; in pfe_phy_read() local 81 writel(reg_data, reg_base + EMAC_MII_DATA_REG); in pfe_phy_read() 96 writel(EMAC_IEVENT_MII, reg_base + EMAC_IEVENT_REG); in pfe_phy_read() 101 val = (u16)readl(reg_base + EMAC_MII_DATA_REG); in pfe_phy_read() 111 void *reg_base = bus->priv; in pfe_phy_write() local 135 writel(reg_data, reg_base + EMAC_MII_DATA_REG); in pfe_phy_write() 150 writel(EMAC_IEVENT_MII, reg_base + EMAC_IEVENT_REG); in pfe_phy_write() [all …]
|
/u-boot/drivers/usb/musb-new/ |
A D | da8xx.c | 70 void __iomem *reg_base = musb->ctrl_base; in da8xx_musb_interrupt() local 103 int drvvbus = musb_readl(reg_base, DA8XX_USB_STAT_REG); in da8xx_musb_interrupt() 147 musb_writel(reg_base, DA8XX_USB_END_OF_INTR_REG, 0); in da8xx_musb_interrupt() 157 void __iomem *reg_base = musb->ctrl_base; in da8xx_musb_init() local 178 musb_readb(reg_base, DA8XX_USB_CTRL_REG)); in da8xx_musb_init() 199 void __iomem *reg_base = musb->ctrl_base; in da8xx_musb_enable() local 209 musb_writel(reg_base, DA8XX_USB_INTR_SRC_SET_REG, in da8xx_musb_enable() 220 void __iomem *reg_base = musb->ctrl_base; in da8xx_musb_disable() local 222 musb_writel(reg_base, DA8XX_USB_INTR_MASK_CLEAR_REG, in da8xx_musb_disable() 225 musb_writel(reg_base, DA8XX_USB_END_OF_INTR_REG, 0); in da8xx_musb_disable() [all …]
|
A D | am35x.c | 98 void __iomem *reg_base = musb->ctrl_base; in am35x_musb_enable() local 105 musb_writel(reg_base, EP_INTR_MASK_SET_REG, epmask); in am35x_musb_enable() 110 musb_writel(reg_base, CORE_INTR_SRC_SET_REG, in am35x_musb_enable() 122 void __iomem *reg_base = musb->ctrl_base; in am35x_musb_disable() local 125 musb_writel(reg_base, EP_INTR_MASK_CLEAR_REG, in am35x_musb_disable() 128 musb_writel(reg_base, USB_END_OF_INTR_REG, 0); in am35x_musb_disable() 230 void __iomem *reg_base = musb->ctrl_base; in am35x_musb_interrupt() local 287 int drvvbus = musb_readl(reg_base, USB_STAT_REG); in am35x_musb_interrupt() 344 musb_writel(reg_base, USB_END_OF_INTR_REG, 0); in am35x_musb_interrupt() 385 void __iomem *reg_base = musb->ctrl_base; in am35x_musb_init() local [all …]
|
A D | musb_dsps.c | 162 void __iomem *reg_base = musb->ctrl_base; in dsps_musb_enable() local 175 dsps_writel(reg_base, wrp->coreintr_set, in dsps_musb_enable() 192 void __iomem *reg_base = musb->ctrl_base; in dsps_musb_disable() local 195 dsps_writel(reg_base, wrp->epintr_clear, in dsps_musb_disable() 198 dsps_writel(reg_base, wrp->eoi, 0); in dsps_musb_disable() 299 void __iomem *reg_base = musb->ctrl_base; in dsps_interrupt() local 399 dsps_writel(reg_base, wrp->eoi, 1); in dsps_interrupt() 426 void __iomem *reg_base = musb->ctrl_base; in dsps_musb_init() local 442 rev = dsps_readl(reg_base, wrp->revision); in dsps_musb_init() 463 val = dsps_readl(reg_base, wrp->phy_utmi); in dsps_musb_init() [all …]
|
/u-boot/drivers/pci_endpoint/ |
A D | pcie-cadence.h | 231 void __iomem *reg_base; member 239 writeb(value, pcie->reg_base + reg); in cdns_pcie_writeb() 244 writew(value, pcie->reg_base + reg); in cdns_pcie_writew() 249 writel(value, pcie->reg_base + reg); in cdns_pcie_writel() 254 return readl(pcie->reg_base + reg); in cdns_pcie_readl() 261 writeb(value, pcie->reg_base + CDNS_PCIE_RP_BASE + reg); in cdns_pcie_rp_writeb() 267 writew(value, pcie->reg_base + CDNS_PCIE_RP_BASE + reg); in cdns_pcie_rp_writew() 273 writel(value, pcie->reg_base + CDNS_PCIE_RP_BASE + reg); in cdns_pcie_rp_writel() 297 return readb(pcie->reg_base + CDNS_PCIE_EP_FUNC_BASE(fn) + reg); in cdns_pcie_ep_fn_readb() 302 return readw(pcie->reg_base + CDNS_PCIE_EP_FUNC_BASE(fn) + reg); in cdns_pcie_ep_fn_readw() [all …]
|
/u-boot/drivers/phy/rockchip/ |
A D | phy-rockchip-pcie.c | 65 void *reg_base; member 77 writel(reg, priv->reg_base + priv->data->pcie_conf); in phy_wr_cfg() 84 writel(reg, priv->reg_base + priv->data->pcie_conf); in phy_wr_cfg() 91 writel(reg, priv->reg_base + priv->data->pcie_conf); in phy_wr_cfg() 109 writel(reg, priv->reg_base + priv->data->pcie_conf); in rockchip_pcie_phy_power_on() 114 writel(reg, priv->reg_base + priv->data->pcie_laneoff); in rockchip_pcie_phy_power_on() 117 ret = readl_poll_sleep_timeout(priv->reg_base + priv->data->pcie_status, in rockchip_pcie_phy_power_on() 131 ret = readl_poll_sleep_timeout(priv->reg_base + priv->data->pcie_status, in rockchip_pcie_phy_power_on() 144 writel(reg, priv->reg_base + priv->data->pcie_conf); in rockchip_pcie_phy_power_on() 173 writel(reg, priv->reg_base + priv->data->pcie_laneoff); in rockchip_pcie_phy_power_off() [all …]
|
A D | phy-rockchip-typec.c | 343 void __iomem *reg_base; member 399 writel(0x830, priv->reg_base + PMA_CMN_CTRL1); in rockchip_tcphy_cfg_24m() 423 priv->reg_base + usb3_pll_cfg[i].addr); in rockchip_tcphy_cfg_usb3_pll() 429 writel(0x7799, priv->reg_base + TX_PSC_A0(lane)); in rockchip_tcphy_tx_usb3_cfg_lane() 430 writel(0x7798, priv->reg_base + TX_PSC_A1(lane)); in rockchip_tcphy_tx_usb3_cfg_lane() 431 writel(0x5098, priv->reg_base + TX_PSC_A2(lane)); in rockchip_tcphy_tx_usb3_cfg_lane() 432 writel(0x5098, priv->reg_base + TX_PSC_A3(lane)); in rockchip_tcphy_tx_usb3_cfg_lane() 440 writel(0xa6fd, priv->reg_base + RX_PSC_A0(lane)); in rockchip_tcphy_rx_usb3_cfg_lane() 441 writel(0xa6fd, priv->reg_base + RX_PSC_A1(lane)); in rockchip_tcphy_rx_usb3_cfg_lane() 678 if (IS_ERR(priv->reg_base)) in rockchip_tcphy_probe() [all …]
|
A D | phy-rockchip-inno-usb2.c | 62 void *reg_base; member 67 static inline int property_enable(void *reg_base, in property_enable() argument 76 return writel(val, reg_base + reg->offset); in property_enable() 95 property_enable(priv->reg_base, &port_cfg->phy_sus, false); in rockchip_usb2phy_power_on() 109 property_enable(priv->reg_base, &port_cfg->phy_sus, true); in rockchip_usb2phy_power_off() 128 property_enable(priv->reg_base, &port_cfg->bvalid_det_clr, true); in rockchip_usb2phy_init() 129 property_enable(priv->reg_base, &port_cfg->bvalid_det_en, true); in rockchip_usb2phy_init() 132 property_enable(priv->reg_base, &port_cfg->bvalid_det_en, true); in rockchip_usb2phy_init() 178 priv->reg_base = syscon_get_first_range(ROCKCHIP_SYSCON_GRF); in rockchip_usb2phy_probe() 179 if (IS_ERR(priv->reg_base)) in rockchip_usb2phy_probe() [all …]
|
/u-boot/drivers/mtd/nand/raw/ |
A D | octeontx_bch.c | 88 writeq(1, bch->reg_base + BCH_CTL); in bch_reset() 94 writeq(~0ull, bch->reg_base + BCH_ERR_INT_ENA_W1C); in bch_disable() 95 writeq(~0ull, bch->reg_base + BCH_ERR_INT); in bch_disable() 101 return readq(bch->reg_base + BCH_BIST_RESULT); in bch_check_bist_status() 179 bch->reg_base = dm_pci_map_bar(dev, PCI_BASE_ADDRESS_0, PCI_REGION_MEM); in octeontx_pci_bchpf_probe() 182 debug("%s: base address: %p\n", __func__, bch->reg_base); in octeontx_pci_bchpf_probe() 365 debug("%s: reg base: %p\n", __func__, vf->reg_base); in octeontx_pci_bchvf_probe() 374 ctl.u = readq(vf->reg_base + BCH_VQX_CTL(0)); in octeontx_pci_bchvf_probe() 380 writeq(cbuf.u, vf->reg_base + BCH_VQX_CMD_BUF(0)); in octeontx_pci_bchvf_probe() 382 writeq(ctl.u, vf->reg_base + BCH_VQX_CTL(0)); in octeontx_pci_bchvf_probe() [all …]
|
A D | octeontx_bch.h | 42 void __iomem *reg_base; member 52 void __iomem *reg_base; member 117 writeq(num_words, vf->reg_base + BCH_VQX_DOORBELL(0)); in octeontx_bch_write_doorbell()
|
/u-boot/drivers/net/octeontx2/ |
A D | cgx.c | 88 reg_addr = lmac->cgx->reg_base + in cgx_lmac_mac_filter_clear() 97 reg_addr = lmac->cgx->reg_base + in cgx_lmac_mac_filter_clear() 119 reg_addr = lmac->cgx->reg_base + in cgx_lmac_mac_filter_setup() 127 reg_addr = lmac->cgx->reg_base + in cgx_lmac_mac_filter_setup() 221 cgx->cgx_id, cgx->reg_base); in cgx_lmac_init() 256 cgx->reg_base = dm_pci_map_bar(dev, PCI_BASE_ADDRESS_0, in cgx_probe() 259 cgx->cgx_id = ((u64)(cgx->reg_base) >> 24) & 0x7; in cgx_probe() 261 debug("%s CGX BAR %p, id: %d\n", __func__, cgx->reg_base, in cgx_probe() 276 __func__, cgx->reg_base, cgx->cgx_id); in cgx_remove()
|
A D | cgx.h | 62 void __iomem *reg_base; member 71 writeq(val, cgx->reg_base + CMR_SHIFT(lmac) + offset); in cgx_write() 76 return readq(cgx->reg_base + CMR_SHIFT(lmac) + offset); in cgx_read()
|
/u-boot/drivers/mailbox/ |
A D | stm32-ipcc.c | 39 void __iomem *reg_base; member 115 ipcc->reg_base = (void __iomem *)addr; in stm32_ipcc_probe() 129 ipcc->reg_proc = ipcc->reg_base + ipcc->proc_id * IPCC_PROC_OFFST; in stm32_ipcc_probe() 140 ipcc->n_chans = readl(ipcc->reg_base + IPCC_HWCFGR); in stm32_ipcc_probe()
|
/u-boot/drivers/clk/at91/ |
A D | compat.c | 26 struct at91_pmc *reg_base; member 53 plat->reg_base = dev_read_addr_ptr(dev); in at91_pmc_core_probe() 200 struct at91_pmc *pmc = plat->reg_base; in main_osc_clk_enable() 241 struct at91_pmc *pmc = plat->reg_base; in plla_clk_enable() 287 struct at91_pmc *pmc = plat->reg_base; in at91_plladiv_clk_get_rate() 306 struct at91_pmc *pmc = plat->reg_base; in at91_plladiv_clk_set_rate() 410 struct at91_pmc *pmc = plat->reg_base; in system_clk_enable() 492 struct at91_pmc *pmc = plat->reg_base; in periph_clk_enable() 561 struct at91_pmc *pmc = plat->reg_base; in utmi_clk_enable() 690 struct at91_pmc *pmc = plat->reg_base; in sama5d4_h32mx_clk_get_rate() [all …]
|
/u-boot/drivers/ram/aspeed/ |
A D | sdram_ast2600.c | 469 u32 reg_base = (u32)info->phy_setting; in ast2600_sdramphy_init() local 478 if (addr < reg_base) { in ast2600_sdramphy_init() 502 u32 reg_base = (u32)info->phy_status; in ast2600_sdramphy_check_status() local 508 value = readl(reg_base + 0x00); in ast2600_sdramphy_check_status() 518 value = readl(reg_base + 0x30); in ast2600_sdramphy_check_status() 524 value = readl(reg_base + 0x68); in ast2600_sdramphy_check_status() 535 value = readl(reg_base + 0xC8); in ast2600_sdramphy_check_status() 544 value = readl(reg_base + 0x7c); in ast2600_sdramphy_check_status() 556 value = readl(reg_base + 0x88); in ast2600_sdramphy_check_status() 565 value = readl(reg_base + 0x90); in ast2600_sdramphy_check_status() [all …]
|
/u-boot/board/freescale/ls1012afrdm/ |
A D | eth.c | 56 mac_mdio_info.reg_base = (void *)EMAC1_BASE_ADDR; in pfe_eth_board_init() 69 mac_mdio_info.reg_base = (void *)EMAC2_BASE_ADDR; in pfe_eth_board_init()
|
/u-boot/drivers/pinctrl/ |
A D | pinctrl-at91-pio4.c | 27 struct atmel_pio4_port *reg_base; member 109 (struct atmel_pio4_port *)((u32)plat->reg_base + in atmel_pio4_bank_base() 174 plat->reg_base = (struct atmel_pio4_port *)addr_base; in atmel_pinctrl_probe()
|