Lines Matching refs:top_base

431 	void __iomem *top_base;		/* host top register base address */  member
965 if (host->top_base) { in msdc_set_mclk()
967 host->top_base + EMMC_TOP_CONTROL); in msdc_set_mclk()
969 host->top_base + EMMC_TOP_CMD); in msdc_set_mclk()
978 if (host->top_base) { in msdc_set_mclk()
980 host->top_base + EMMC_TOP_CONTROL); in msdc_set_mclk()
982 host->top_base + EMMC_TOP_CMD); in msdc_set_mclk()
1724 if (host->top_base) { in msdc_init_hw()
1725 writel(0, host->top_base + EMMC_TOP_CONTROL); in msdc_init_hw()
1726 writel(0, host->top_base + EMMC_TOP_CMD); in msdc_init_hw()
1753 if (host->top_base) in msdc_init_hw()
1754 sdr_set_bits(host->top_base + EMMC_TOP_CONTROL, in msdc_init_hw()
1776 if (host->top_base) { in msdc_init_hw()
1777 sdr_set_bits(host->top_base + EMMC_TOP_CONTROL, in msdc_init_hw()
1779 sdr_clr_bits(host->top_base + EMMC_TOP_CONTROL, in msdc_init_hw()
1781 sdr_set_bits(host->top_base + EMMC_TOP_CMD, in msdc_init_hw()
1790 if (host->top_base) in msdc_init_hw()
1791 sdr_set_bits(host->top_base + EMMC_TOP_CONTROL, in msdc_init_hw()
1816 if (host->top_base) { in msdc_init_hw()
1818 readl(host->top_base + EMMC_TOP_CONTROL); in msdc_init_hw()
1820 readl(host->top_base + EMMC_TOP_CMD); in msdc_init_hw()
1822 readl(host->top_base + EMMC_TOP_CONTROL); in msdc_init_hw()
1824 readl(host->top_base + EMMC_TOP_CMD); in msdc_init_hw()
1987 if (host->top_base) in msdc_set_cmd_delay()
1988 sdr_set_field(host->top_base + EMMC_TOP_CMD, PAD_CMD_RXDLY, in msdc_set_cmd_delay()
1999 if (host->top_base) in msdc_set_data_delay()
2000 sdr_set_field(host->top_base + EMMC_TOP_CONTROL, in msdc_set_data_delay()
2300 if (host->top_base) { in msdc_execute_tuning()
2301 host->saved_tune_para.emmc_top_control = readl(host->top_base + in msdc_execute_tuning()
2303 host->saved_tune_para.emmc_top_cmd = readl(host->top_base + in msdc_execute_tuning()
2314 if (host->top_base) in msdc_prepare_hs400_tuning()
2316 host->top_base + EMMC50_PAD_DS_TUNE); in msdc_prepare_hs400_tuning()
2335 if (host->top_base) { in msdc_execute_hs400_tuning()
2336 sdr_set_bits(host->top_base + EMMC50_PAD_DS_TUNE, in msdc_execute_hs400_tuning()
2339 sdr_set_field(host->top_base + EMMC50_PAD_DS_TUNE, in msdc_execute_hs400_tuning()
2350 if (host->top_base) in msdc_execute_hs400_tuning()
2351 sdr_set_field(host->top_base + EMMC50_PAD_DS_TUNE, in msdc_execute_hs400_tuning()
2369 if (host->top_base) in msdc_execute_hs400_tuning()
2370 sdr_set_field(host->top_base + EMMC50_PAD_DS_TUNE, in msdc_execute_hs400_tuning()
2376 if (host->top_base) in msdc_execute_hs400_tuning()
2377 val = readl(host->top_base + EMMC50_PAD_DS_TUNE); in msdc_execute_hs400_tuning()
2694 host->top_base = devm_ioremap_resource(&pdev->dev, res); in msdc_drv_probe()
2695 if (IS_ERR(host->top_base)) in msdc_drv_probe()
2696 host->top_base = NULL; in msdc_drv_probe()
2929 if (host->top_base) { in msdc_save_reg()
2931 readl(host->top_base + EMMC_TOP_CONTROL); in msdc_save_reg()
2933 readl(host->top_base + EMMC_TOP_CMD); in msdc_save_reg()
2935 readl(host->top_base + EMMC50_PAD_DS_TUNE); in msdc_save_reg()
2957 if (host->top_base) { in msdc_restore_reg()
2959 host->top_base + EMMC_TOP_CONTROL); in msdc_restore_reg()
2961 host->top_base + EMMC_TOP_CMD); in msdc_restore_reg()
2963 host->top_base + EMMC50_PAD_DS_TUNE); in msdc_restore_reg()