Searched refs:dw_params (Results 1 – 1 of 1) sorted by relevance
139 static dw_mmc_params_t dw_params; variable145 mmio_write_32(dw_params.reg_base + DWMMC_CMD, in dw_update_clk()149 data = mmio_read_32(dw_params.reg_base + DWMMC_CMD); in dw_update_clk()152 data = mmio_read_32(dw_params.reg_base + DWMMC_RINTSTS); in dw_update_clk()165 if ((dw_params.clk_rate / (2 * div)) <= clk) { in dw_set_clk()173 data = mmio_read_32(dw_params.reg_base + DWMMC_STATUS); in dw_set_clk()177 mmio_write_32(dw_params.reg_base + DWMMC_CLKENA, 0); in dw_set_clk()180 mmio_write_32(dw_params.reg_base + DWMMC_CLKDIV, div); in dw_set_clk()184 mmio_write_32(dw_params.reg_base + DWMMC_CLKENA, 1); in dw_set_clk()185 mmio_write_32(dw_params.reg_base + DWMMC_CLKSRC, 0); in dw_set_clk()[all …]