/u-boot/drivers/mmc/ |
A D | sh_sdhi.c | 45 writeq(val, host->addr + (reg << host->bus_shift)); in sh_sdhi_writeq() 50 return readq(host->addr + (reg << host->bus_shift)); in sh_sdhi_readq() 55 writew(val, host->addr + (reg << host->bus_shift)); in sh_sdhi_writew() 60 return readw(host->addr + (reg << host->bus_shift)); in sh_sdhi_readw() 114 host->sd_error = 1; in sh_sdhi_intr() 115 host->wait_int = 1; in sh_sdhi_intr() 124 host->wait_int = 1; in sh_sdhi_intr() 768 if (!host) in sh_sdhi_init() 777 host->ch = ch; in sh_sdhi_init() 788 free(host); in sh_sdhi_init() [all …]
|
A D | exynos_dw_mmc.c | 39 struct dwmci_host host; member 52 container_of(host, struct dwmci_exynos_priv_data, host); in exynos_dwmci_clksel() 107 if (host->bus_hz) in exynos_dwmci_core_init() 108 freq = host->bus_hz; in exynos_dwmci_core_init() 163 host->dev_index = fdtdec_get_int(blob, node, "index", host->dev_id); in exynos_dwmci_get_config() 164 if (host->dev_index == host->dev_id) in exynos_dwmci_get_config() 165 host->dev_index = host->dev_id - PERIPH_ID_SDMMC0; in exynos_dwmci_get_config() 187 host->dev_index); in exynos_dwmci_get_config() 216 struct dwmci_host *host = &priv->host; in exynos_dwmmc_probe() local 229 host->mmc->priv = &priv->host; in exynos_dwmmc_probe() [all …]
|
A D | sh_mmcif.c | 83 host->sd_error = 1; in sh_mmcif_intr() 86 host->wait_int = 1; in sh_mmcif_intr() 147 host->sd_error = 0; in sh_mmcif_error_manage() 148 host->wait_int = 0; in sh_mmcif_error_manage() 367 if (host->data) { in sh_mmcif_set_cmd() 469 if (host->data) { in sh_mmcif_start_cmd() 514 if (host->data) in sh_mmcif_start_cmd() 622 if (!host) in mmcif_mmc_init() 624 memset(host, 0, sizeof(*host)); in mmcif_mmc_init() 634 free(host); in mmcif_mmc_init() [all …]
|
A D | bcm2835_sdhost.c | 234 host->clock = 0; in bcm2835_reset_internal() 235 writel(host->hcfg, host->ioaddr + SDHCFG); in bcm2835_reset_internal() 236 writel(host->cdiv, host->ioaddr + SDCDIV); in bcm2835_reset_internal() 428 host->cmd = cmd; in bcm2835_send_command() 525 if (!host->cmd) in bcm2835_check_cmd_error() 628 writel(host->cdiv, host->ioaddr + SDCDIV); in bcm2835_set_clock() 651 writel(host->cdiv, host->ioaddr + SDCDIV); in bcm2835_set_clock() 654 writel(host->mmc->clock / 2, host->ioaddr + SDTOUT); in bcm2835_set_clock() 699 while (host->use_busy || host->data) { in bcm2835_send_cmd() 728 writel(host->hcfg, host->ioaddr + SDHCFG); in bcm2835_set_ios() [all …]
|
A D | sdhci.c | 389 if (host->ops && host->ops->set_delay) 390 host->ops->set_delay(host); 432 if (host->ops && host->ops->set_clock) 433 host->ops->set_clock(host, div); 624 host->ops->set_control_reg(host); 674 return host->ops->set_ios_post(host); 711 if (host->ops && host->ops->get_cd) 712 host->ops->get_cd(host); 738 err = host->ops->deferred_probe(host); 868 host->max_clk *= host->clk_mul; [all …]
|
A D | mxcmmc.c | 156 host->data = data; in mxcmci_setup_data() 168 host->cmd = cmd; in mxcmci_start_cmd() 199 host->cmd = NULL; in mxcmci_finish_request() 200 host->data = NULL; in mxcmci_finish_request() 225 host->data = NULL; in mxcmci_finish_data() 376 mxcmci_finish_request(host, host->cmd, host->data); in mxcmci_cmd_done() 381 mxcmci_finish_request(host, host->cmd, host->data); in mxcmci_cmd_done() 387 mxcmci_finish_request(host, host->cmd, host->data); in mxcmci_cmd_done() 478 host->rev_no = readl(&host->base->rev_no); in mxcmci_init() 481 host->rev_no); in mxcmci_init() [all …]
|
A D | s5p_sdhci.c | 90 host->name = S5P_NAME; in s5p_sdhci_core_init() 95 host->max_clk = 52000000; in s5p_sdhci_core_init() 97 host->ops = &s5p_sdhci_ops; in s5p_sdhci_core_init() 99 if (host->bus_width == 8) in s5p_sdhci_core_init() 112 if (!host) { in s5p_sdhci_init() 117 host->index = index; in s5p_sdhci_init() 205 ret = do_sdhci_init(host); in s5p_sdhci_probe() 213 host->mmc = &plat->mmc; in s5p_sdhci_probe() 214 host->mmc->dev = dev; in s5p_sdhci_probe() 220 host->mmc->priv = host; in s5p_sdhci_probe() [all …]
|
A D | iproc_sdhci.c | 21 struct sdhci_host host; member 39 host->name, host->index, reg, val); in sdhci_iproc_readl() 63 host->name, host->index, reg, val); in sdhci_iproc_writel() 67 if (host->mmc) in sdhci_iproc_writel() 68 clock = host->mmc->clock; in sdhci_iproc_writel() 189 sdhci_start_tuning(host); in sdhci_iproc_execute_tuning() 226 sdhci_end_tuning(host); in sdhci_iproc_execute_tuning() 267 host->name = dev->name; in iproc_sdhci_probe() 273 host->version = sdhci_readw(host, SDHCI_HOST_VERSION); in iproc_sdhci_probe() 289 memcpy(&iproc_host->host, host, sizeof(struct sdhci_host)); in iproc_sdhci_probe() [all …]
|
A D | mtk-sd.c | 855 host->mclk = 0; in msdc_set_mclk() 936 msdc_set_timeout(host, host->timeout_ns, host->timeout_clks); in msdc_set_mclk() 943 writel(host->def_tune_para.iocon, &host->base->msdc_iocon); in msdc_set_mclk() 947 writel(host->saved_tune_para.iocon, &host->base->msdc_iocon); in msdc_set_mclk() 969 if (host->mclk != clock || host->timing != mmc->selected_mode) in msdc_ops_set_ios() 1231 if (host->dev_comp->async_fifo || host->hs200_cmd_int_delay) in msdc_tune_response() 1424 writel(host->hs400_ds_delay, &host->base->pad_ds_tune); in msdc_execute_tuning() 1451 host->saved_tune_para.iocon = readl(&host->base->msdc_iocon); in msdc_execute_tuning() 1612 host->def_tune_para.iocon = readl(&host->base->msdc_iocon); in msdc_init_hw() 1613 host->def_tune_para.pad_tune = readl(&host->base->pad_tune); in msdc_init_hw() [all …]
|
A D | xenon_sdhci.c | 123 struct sdhci_host host; member 246 if (IS_SD(host->mmc)) in xenon_mmc_start_signal_voltage_switch() 313 xenon_mmc_phy_init(host); in xenon_mmc_phy_set() 406 if (IS_SD(host->mmc)) { in xenon_sdhci_set_ios_post() 423 if (host->mmc->ddr_mode) in xenon_sdhci_set_ios_post() 432 xenon_mmc_phy_set(host); in xenon_sdhci_set_ios_post() 450 host->mmc = &plat->mmc; in xenon_sdhci_probe() 451 host->mmc->priv = host; in xenon_sdhci_probe() 452 host->mmc->dev = dev; in xenon_sdhci_probe() 453 upriv->mmc = host->mmc; in xenon_sdhci_probe() [all …]
|
A D | dw_mmc.c | 415 sclk = host->get_mmc_clk(host, freq); 417 sclk = host->bus_hz; 458 host->clock = freq; 499 if (host->clksel) { 502 ret = host->clksel(host); 529 if (host->board_init) 530 host->board_init(host); 558 dwmci_writel(host, DWMCI_FIFOTH, host->fifoth_val); 563 if (!host->fifo_mode) 624 dwmci_setup_cfg(&host->cfg, host, max_clk, min_clk); [all …]
|
A D | kona_sdhci.c | 47 (sdhci_readl(host, SDHCI_CORECTRL_OFFSET) & in init_kona_mmc_core() 83 struct sdhci_host *host = NULL; in kona_sdhci_init() local 86 if (!host) { in kona_sdhci_init() 117 free(host); in kona_sdhci_init() 121 host->name = "kona-sdhci"; in kona_sdhci_init() 122 host->ioaddr = reg_base; in kona_sdhci_init() 123 host->quirks = quirks; in kona_sdhci_init() 124 host->max_clk = max_clk; in kona_sdhci_init() 126 if (init_kona_mmc_core(host)) { in kona_sdhci_init() 127 free(host); in kona_sdhci_init() [all …]
|
A D | ca_dw_mmc.c | 38 struct dwmci_host host; member 96 struct dwmci_host *host = &priv->host; in ca_dwmmc_of_to_plat() local 99 host->name = dev->name; in ca_dwmmc_of_to_plat() 100 host->dev_index = 0; in ca_dwmmc_of_to_plat() 118 if (!host->ioaddr) in ca_dwmmc_of_to_plat() 121 host->priv = priv; in ca_dwmmc_of_to_plat() 133 struct dwmci_host *host = &priv->host; in ca_dwmmc_probe() local 137 dwmci_setup_cfg(&plat->cfg, host, host->bus_hz, MIN_FREQ); in ca_dwmmc_probe() 141 host->mmc = &plat->mmc; in ca_dwmmc_probe() 142 host->mmc->priv = &priv->host; in ca_dwmmc_probe() [all …]
|
A D | arm_pl180_mmci.c | 353 writel(host->pwr_init, &host->base->power); in mmc_host_reset() 374 writel(host->pwr_init, &host->base->power); in arm_pl180_mmci_init() 375 writel(host->clkdiv_init, &host->base->clock); in arm_pl180_mmci_init() 382 host->cfg.name = host->name; in arm_pl180_mmci_init() 386 host->cfg.host_caps = host->caps; in arm_pl180_mmci_init() 387 host->cfg.voltages = host->voltages; in arm_pl180_mmci_init() 388 host->cfg.f_min = host->clock_min; in arm_pl180_mmci_init() 389 host->cfg.f_max = host->clock_max; in arm_pl180_mmci_init() 391 host->cfg.b_max = host->b_max; in arm_pl180_mmci_init() 395 *mmc = mmc_create(&host->cfg, host); in arm_pl180_mmci_init() [all …]
|
A D | bcm2835_sdhci.c | 61 struct sdhci_host host; member 68 return (struct bcm2835_sdhci_host *)host; in to_bcm() 90 writel(val, host->ioaddr + reg); in bcm2835_sdhci_raw_writel() 96 return readl(host->ioaddr + reg); in bcm2835_sdhci_raw_readl() 179 struct sdhci_host *host = &priv->host; in bcm2835_sdhci_probe() local 212 host->name = dev->name; in bcm2835_sdhci_probe() 216 host->max_clk = emmc_freq; in bcm2835_sdhci_probe() 218 host->ops = &bcm2835_ops; in bcm2835_sdhci_probe() 220 host->mmc = &plat->mmc; in bcm2835_sdhci_probe() 221 host->mmc->dev = dev; in bcm2835_sdhci_probe() [all …]
|
A D | zynq_sdhci.c | 42 struct sdhci_host *host; member 106 struct sdhci_host *host; in arasan_sdhci_execute_tuning() local 113 host = priv->host; in arasan_sdhci_execute_tuning() 558 struct sdhci_host *host; in arasan_sdhci_probe() local 563 host = priv->host; in arasan_sdhci_probe() 601 host->max_clk = clock; in arasan_sdhci_probe() 603 host->mmc = &plat->mmc; in arasan_sdhci_probe() 604 host->mmc->dev = dev; in arasan_sdhci_probe() 605 host->mmc->priv = host; in arasan_sdhci_probe() 611 upriv->mmc = host->mmc; in arasan_sdhci_probe() [all …]
|
A D | snps_dw_mmc.c | 31 struct dwmci_host host; member 38 struct dwmci_host *host = &priv->host; in snps_dwmmc_clk_setup() local 82 struct dwmci_host *host = &priv->host; in snps_dwmmc_of_to_plat() local 103 if (host->buswidth != 1 && host->buswidth != 4 && host->buswidth != 8) in snps_dwmmc_of_to_plat() 115 host->name = dev->name; in snps_dwmmc_of_to_plat() 116 host->dev_index = 0; in snps_dwmmc_of_to_plat() 117 host->priv = priv; in snps_dwmmc_of_to_plat() 125 struct dwmci_host *host = &priv->host; in snps_dwmmc_getcd() local 139 struct dwmci_host *host = &priv->host; in snps_dwmmc_probe() local 164 host->mmc->priv = &priv->host; in snps_dwmmc_probe() [all …]
|
A D | hi6220_dw_mmc.c | 23 struct dwmci_host host; member 34 struct dwmci_host *host = &priv->host; in hi6220_dwmmc_of_to_plat() local 36 host->name = dev->name; in hi6220_dwmmc_of_to_plat() 43 host->dev_index = 0; in hi6220_dwmmc_of_to_plat() 45 host->dev_index = 1; in hi6220_dwmmc_of_to_plat() 47 host->priv = priv; in hi6220_dwmmc_of_to_plat() 57 struct dwmci_host *host = &priv->host; in hi6220_dwmmc_probe() local 65 dwmci_setup_cfg(&plat->cfg, host, host->bus_hz, 400000); in hi6220_dwmmc_probe() 66 host->mmc = &plat->mmc; in hi6220_dwmmc_probe() 69 host->mmc->priv = &priv->host; in hi6220_dwmmc_probe() [all …]
|
A D | socfpga_dw_mmc.c | 33 struct dwmci_host host; member 91 struct dwmci_host *host = &priv->host; in socfpga_dwmmc_get_clk_rate() local 118 struct dwmci_host *host = &priv->host; in socfpga_dwmmc_of_to_plat() local 128 host->name = dev->name; in socfpga_dwmmc_of_to_plat() 138 host->dev_index = 0; in socfpga_dwmmc_of_to_plat() 145 host->priv = priv; in socfpga_dwmmc_of_to_plat() 157 struct dwmci_host *host = &priv->host; in socfpga_dwmmc_probe() local 167 dwmci_setup_cfg(&plat->cfg, host, host->bus_hz, 400000); in socfpga_dwmmc_probe() 171 ret = add_dwmci(host, host->bus_hz, 400000); in socfpga_dwmmc_probe() 175 host->mmc->priv = &priv->host; in socfpga_dwmmc_probe() [all …]
|
A D | atmel_sdhci.c | 21 struct sdhci_host *host; in atmel_sdhci_init() local 25 if (!host) { in atmel_sdhci_init() 31 host->ioaddr = regbase; in atmel_sdhci_init() 36 free(host); in atmel_sdhci_init() 39 host->max_clk = max_clk; in atmel_sdhci_init() 72 host->name = dev->name; in atmel_sdhci_probe() 98 host->max_clk = max_clk; in atmel_sdhci_probe() 99 host->mmc = &plat->mmc; in atmel_sdhci_probe() 100 host->mmc->dev = dev; in atmel_sdhci_probe() 106 host->mmc->priv = host; in atmel_sdhci_probe() [all …]
|
A D | rockchip_dw_mmc.c | 32 struct dwmci_host host; member 57 struct dwmci_host *host = &priv->host; in rockchip_dwmmc_of_to_plat() local 59 host->name = dev->name; in rockchip_dwmmc_of_to_plat() 63 host->priv = dev; in rockchip_dwmmc_of_to_plat() 67 host->dev_index = 0; in rockchip_dwmmc_of_to_plat() 69 host->dev_index = 1; in rockchip_dwmmc_of_to_plat() 107 struct dwmci_host *host = &priv->host; in rockchip_dwmmc_probe() local 117 host->priv = dev; in rockchip_dwmmc_probe() 118 host->dev_index = 0; in rockchip_dwmmc_probe() 149 host->mmc->priv = &priv->host; in rockchip_dwmmc_probe() [all …]
|
/u-boot/scripts/ |
A D | Makefile.host | 56 host-csingle := $(addprefix $(obj)/,$(host-csingle)) 57 host-cmulti := $(addprefix $(obj)/,$(host-cmulti)) 58 host-cobjs := $(addprefix $(obj)/,$(host-cobjs)) 59 host-cxxmulti := $(addprefix $(obj)/,$(host-cxxmulti)) 60 host-cxxobjs := $(addprefix $(obj)/,$(host-cxxobjs)) 61 host-cshlib := $(addprefix $(obj)/,$(host-cshlib)) 63 host-cshobjs := $(addprefix $(obj)/,$(host-cshobjs)) 65 host-shared := $(addprefix $(obj)/,$(host-shared)) 168 targets += $(host-csingle) $(host-cmulti) $(host-cobjs)\ 169 $(host-cxxmulti) $(host-cxxobjs) $(host-shared) \ [all …]
|
/u-boot/drivers/usb/musb-new/ |
A D | musb_uboot.c | 83 host->isr(0, host); in submit_urb() 179 host->host->isr(0, host->host); in _musb_poll_int_queue() 199 host->host->ops->pre_root_reset_end(host->host); in _musb_reset_root_port() 205 host->host->ops->post_root_reset_end(host->host); in _musb_reset_root_port() 207 host->host->isr(0, host->host); in _musb_reset_root_port() 224 if (!host->host) { in musb_lowlevel_init() 229 ret = musb_start(host->host); in musb_lowlevel_init() 233 mbase = host->host->mregs; in musb_lowlevel_init() 239 musb_stop(host->host); in musb_lowlevel_init() 244 host->host->is_active = 1; in musb_lowlevel_init() [all …]
|
/u-boot/drivers/mtd/nand/raw/ |
A D | mxc_nand.c | 763 host->col_addr++; 1041 send_prog_page(host, 0, host->spare_only); 1045 send_prog_page(host, 1, host->spare_only); 1046 send_prog_page(host, 2, host->spare_only); 1047 send_prog_page(host, 3, host->spare_only); 1092 send_read_page(host, 0, host->spare_only); 1094 send_read_page(host, 1, host->spare_only); 1095 send_read_page(host, 2, host->spare_only); 1096 send_read_page(host, 3, host->spare_only); 1099 send_read_page(host, 0, host->spare_only); [all …]
|
/u-boot/include/ |
A D | sdhci.h | 345 host->ops->write_l(host, val, reg); in sdhci_writel() 353 host->ops->write_w(host, val, reg); in sdhci_writew() 361 host->ops->write_b(host, val, reg); in sdhci_writeb() 368 if (unlikely(host->ops->read_l)) in sdhci_readl() 369 return host->ops->read_l(host, reg); in sdhci_readl() 376 if (unlikely(host->ops->read_w)) in sdhci_readw() 377 return host->ops->read_w(host, reg); in sdhci_readw() 384 if (unlikely(host->ops->read_b)) in sdhci_readb() 385 return host->ops->read_b(host, reg); in sdhci_readb() 394 writel(val, host->ioaddr + reg); in sdhci_writel() [all …]
|