Searched refs:dw_params (Results 1 – 1 of 1) sorted by relevance
135 static dw_mmc_params_t dw_params; variable141 mmio_write_32(dw_params.reg_base + DWMMC_CMD, in dw_update_clk()145 data = mmio_read_32(dw_params.reg_base + DWMMC_CMD); in dw_update_clk()148 data = mmio_read_32(dw_params.reg_base + DWMMC_RINTSTS); in dw_update_clk()161 if ((dw_params.clk_rate / (2 * div)) <= clk) { in dw_set_clk()169 data = mmio_read_32(dw_params.reg_base + DWMMC_STATUS); in dw_set_clk()173 mmio_write_32(dw_params.reg_base + DWMMC_CLKENA, 0); in dw_set_clk()176 mmio_write_32(dw_params.reg_base + DWMMC_CLKDIV, div); in dw_set_clk()180 mmio_write_32(dw_params.reg_base + DWMMC_CLKENA, 1); in dw_set_clk()181 mmio_write_32(dw_params.reg_base + DWMMC_CLKSRC, 0); in dw_set_clk()[all …]