Lines Matching refs:top_base

457 	void __iomem *top_base;		/* host top register base address */  member
924 if (!host->top_base) in msdc_new_tx_setting()
927 sdr_set_bits(host->top_base + LOOP_TEST_CONTROL, in msdc_new_tx_setting()
929 sdr_set_bits(host->top_base + LOOP_TEST_CONTROL, in msdc_new_tx_setting()
931 sdr_clr_bits(host->top_base + LOOP_TEST_CONTROL, in msdc_new_tx_setting()
942 sdr_clr_bits(host->top_base + LOOP_TEST_CONTROL, in msdc_new_tx_setting()
949 sdr_set_bits(host->top_base + LOOP_TEST_CONTROL, in msdc_new_tx_setting()
1058 if (host->top_base) { in msdc_set_mclk()
1060 host->top_base + EMMC_TOP_CONTROL); in msdc_set_mclk()
1062 host->top_base + EMMC_TOP_CMD); in msdc_set_mclk()
1071 if (host->top_base) { in msdc_set_mclk()
1073 host->top_base + EMMC_TOP_CONTROL); in msdc_set_mclk()
1075 host->top_base + EMMC_TOP_CMD); in msdc_set_mclk()
1856 if (host->top_base) { in msdc_init_hw()
1857 writel(0, host->top_base + EMMC_TOP_CONTROL); in msdc_init_hw()
1858 writel(0, host->top_base + EMMC_TOP_CMD); in msdc_init_hw()
1893 if (host->top_base) in msdc_init_hw()
1894 sdr_set_bits(host->top_base + EMMC_TOP_CONTROL, in msdc_init_hw()
1916 if (host->top_base) { in msdc_init_hw()
1917 sdr_set_bits(host->top_base + EMMC_TOP_CONTROL, in msdc_init_hw()
1919 sdr_clr_bits(host->top_base + EMMC_TOP_CONTROL, in msdc_init_hw()
1921 sdr_set_bits(host->top_base + EMMC_TOP_CMD, in msdc_init_hw()
1924 sdr_set_bits(host->top_base + EMMC_TOP_CONTROL, in msdc_init_hw()
1926 sdr_set_bits(host->top_base + EMMC_TOP_CMD, in msdc_init_hw()
1940 if (host->top_base) in msdc_init_hw()
1941 sdr_set_bits(host->top_base + EMMC_TOP_CONTROL, in msdc_init_hw()
1966 if (host->top_base) { in msdc_init_hw()
1968 readl(host->top_base + EMMC_TOP_CONTROL); in msdc_init_hw()
1970 readl(host->top_base + EMMC_TOP_CMD); in msdc_init_hw()
1972 readl(host->top_base + EMMC_TOP_CONTROL); in msdc_init_hw()
1974 readl(host->top_base + EMMC_TOP_CMD); in msdc_init_hw()
2137 if (host->top_base) { in msdc_set_cmd_delay()
2139 sdr_set_field(host->top_base + EMMC_TOP_CMD, PAD_CMD_RXDLY, value); in msdc_set_cmd_delay()
2140 sdr_set_field(host->top_base + EMMC_TOP_CMD, PAD_CMD_RXDLY2, 0); in msdc_set_cmd_delay()
2142 sdr_set_field(host->top_base + EMMC_TOP_CMD, PAD_CMD_RXDLY, in msdc_set_cmd_delay()
2144 sdr_set_field(host->top_base + EMMC_TOP_CMD, PAD_CMD_RXDLY2, in msdc_set_cmd_delay()
2165 if (host->top_base) { in msdc_set_data_delay()
2167 sdr_set_field(host->top_base + EMMC_TOP_CONTROL, in msdc_set_data_delay()
2169 sdr_set_field(host->top_base + EMMC_TOP_CONTROL, in msdc_set_data_delay()
2172 sdr_set_field(host->top_base + EMMC_TOP_CONTROL, in msdc_set_data_delay()
2174 sdr_set_field(host->top_base + EMMC_TOP_CONTROL, in msdc_set_data_delay()
2489 if (host->top_base) { in msdc_execute_tuning()
2490 host->saved_tune_para.emmc_top_control = readl(host->top_base + in msdc_execute_tuning()
2492 host->saved_tune_para.emmc_top_cmd = readl(host->top_base + in msdc_execute_tuning()
2503 if (host->top_base) in msdc_prepare_hs400_tuning()
2505 host->top_base + EMMC50_PAD_DS_TUNE); in msdc_prepare_hs400_tuning()
2524 if (host->top_base) { in msdc_execute_hs400_tuning()
2525 sdr_set_bits(host->top_base + EMMC50_PAD_DS_TUNE, in msdc_execute_hs400_tuning()
2528 sdr_set_field(host->top_base + EMMC50_PAD_DS_TUNE, in msdc_execute_hs400_tuning()
2539 if (host->top_base) in msdc_execute_hs400_tuning()
2540 sdr_set_field(host->top_base + EMMC50_PAD_DS_TUNE, in msdc_execute_hs400_tuning()
2558 if (host->top_base) in msdc_execute_hs400_tuning()
2559 sdr_set_field(host->top_base + EMMC50_PAD_DS_TUNE, in msdc_execute_hs400_tuning()
2565 if (host->top_base) in msdc_execute_hs400_tuning()
2566 val = readl(host->top_base + EMMC50_PAD_DS_TUNE); in msdc_execute_hs400_tuning()
2888 host->top_base = devm_platform_ioremap_resource(pdev, 1); in msdc_drv_probe()
2889 if (IS_ERR(host->top_base)) in msdc_drv_probe()
2890 host->top_base = NULL; in msdc_drv_probe()
3125 if (host->top_base) { in msdc_save_reg()
3127 readl(host->top_base + EMMC_TOP_CONTROL); in msdc_save_reg()
3129 readl(host->top_base + EMMC_TOP_CMD); in msdc_save_reg()
3131 readl(host->top_base + EMMC50_PAD_DS_TUNE); in msdc_save_reg()
3133 readl(host->top_base + LOOP_TEST_CONTROL); in msdc_save_reg()
3164 if (host->top_base) { in msdc_restore_reg()
3166 host->top_base + EMMC_TOP_CONTROL); in msdc_restore_reg()
3168 host->top_base + EMMC_TOP_CMD); in msdc_restore_reg()
3170 host->top_base + EMMC50_PAD_DS_TUNE); in msdc_restore_reg()
3172 host->top_base + LOOP_TEST_CONTROL); in msdc_restore_reg()