Lines Matching refs:top_base

433 	void __iomem *top_base;		/* host top register base address */  member
949 if (host->top_base) { in msdc_set_mclk()
951 host->top_base + EMMC_TOP_CONTROL); in msdc_set_mclk()
953 host->top_base + EMMC_TOP_CMD); in msdc_set_mclk()
962 if (host->top_base) { in msdc_set_mclk()
964 host->top_base + EMMC_TOP_CONTROL); in msdc_set_mclk()
966 host->top_base + EMMC_TOP_CMD); in msdc_set_mclk()
1712 if (host->top_base) { in msdc_init_hw()
1713 writel(0, host->top_base + EMMC_TOP_CONTROL); in msdc_init_hw()
1714 writel(0, host->top_base + EMMC_TOP_CMD); in msdc_init_hw()
1741 if (host->top_base) in msdc_init_hw()
1742 sdr_set_bits(host->top_base + EMMC_TOP_CONTROL, in msdc_init_hw()
1764 if (host->top_base) { in msdc_init_hw()
1765 sdr_set_bits(host->top_base + EMMC_TOP_CONTROL, in msdc_init_hw()
1767 sdr_clr_bits(host->top_base + EMMC_TOP_CONTROL, in msdc_init_hw()
1769 sdr_set_bits(host->top_base + EMMC_TOP_CMD, in msdc_init_hw()
1778 if (host->top_base) in msdc_init_hw()
1779 sdr_set_bits(host->top_base + EMMC_TOP_CONTROL, in msdc_init_hw()
1804 if (host->top_base) { in msdc_init_hw()
1806 readl(host->top_base + EMMC_TOP_CONTROL); in msdc_init_hw()
1808 readl(host->top_base + EMMC_TOP_CMD); in msdc_init_hw()
1810 readl(host->top_base + EMMC_TOP_CONTROL); in msdc_init_hw()
1812 readl(host->top_base + EMMC_TOP_CMD); in msdc_init_hw()
1975 if (host->top_base) in msdc_set_cmd_delay()
1976 sdr_set_field(host->top_base + EMMC_TOP_CMD, PAD_CMD_RXDLY, in msdc_set_cmd_delay()
1987 if (host->top_base) in msdc_set_data_delay()
1988 sdr_set_field(host->top_base + EMMC_TOP_CONTROL, in msdc_set_data_delay()
2288 if (host->top_base) { in msdc_execute_tuning()
2289 host->saved_tune_para.emmc_top_control = readl(host->top_base + in msdc_execute_tuning()
2291 host->saved_tune_para.emmc_top_cmd = readl(host->top_base + in msdc_execute_tuning()
2302 if (host->top_base) in msdc_prepare_hs400_tuning()
2304 host->top_base + EMMC50_PAD_DS_TUNE); in msdc_prepare_hs400_tuning()
2323 if (host->top_base) { in msdc_execute_hs400_tuning()
2324 sdr_set_bits(host->top_base + EMMC50_PAD_DS_TUNE, in msdc_execute_hs400_tuning()
2327 sdr_set_field(host->top_base + EMMC50_PAD_DS_TUNE, in msdc_execute_hs400_tuning()
2338 if (host->top_base) in msdc_execute_hs400_tuning()
2339 sdr_set_field(host->top_base + EMMC50_PAD_DS_TUNE, in msdc_execute_hs400_tuning()
2357 if (host->top_base) in msdc_execute_hs400_tuning()
2358 sdr_set_field(host->top_base + EMMC50_PAD_DS_TUNE, in msdc_execute_hs400_tuning()
2364 if (host->top_base) in msdc_execute_hs400_tuning()
2365 val = readl(host->top_base + EMMC50_PAD_DS_TUNE); in msdc_execute_hs400_tuning()
2639 host->top_base = devm_ioremap_resource(&pdev->dev, res); in msdc_drv_probe()
2640 if (IS_ERR(host->top_base)) in msdc_drv_probe()
2641 host->top_base = NULL; in msdc_drv_probe()
2865 if (host->top_base) { in msdc_save_reg()
2867 readl(host->top_base + EMMC_TOP_CONTROL); in msdc_save_reg()
2869 readl(host->top_base + EMMC_TOP_CMD); in msdc_save_reg()
2871 readl(host->top_base + EMMC50_PAD_DS_TUNE); in msdc_save_reg()
2893 if (host->top_base) { in msdc_restore_reg()
2895 host->top_base + EMMC_TOP_CONTROL); in msdc_restore_reg()
2897 host->top_base + EMMC_TOP_CMD); in msdc_restore_reg()
2899 host->top_base + EMMC50_PAD_DS_TUNE); in msdc_restore_reg()