Lines Matching refs:mvebu_mmc_write
28 static void mvebu_mmc_write(u32 offs, u32 val) in mvebu_mmc_write() function
49 mvebu_mmc_write(SDIO_HOST_CTRL, ctrl_reg); in mvebu_mmc_setup_data()
52 mvebu_mmc_write(SDIO_SYS_ADDR_LOW, (u32)data->dest & 0xffff); in mvebu_mmc_setup_data()
53 mvebu_mmc_write(SDIO_SYS_ADDR_HI, (u32)data->dest >> 16); in mvebu_mmc_setup_data()
55 mvebu_mmc_write(SDIO_SYS_ADDR_LOW, (u32)data->src & 0xffff); in mvebu_mmc_setup_data()
56 mvebu_mmc_write(SDIO_SYS_ADDR_HI, (u32)data->src >> 16); in mvebu_mmc_setup_data()
59 mvebu_mmc_write(SDIO_BLK_COUNT, data->blocks); in mvebu_mmc_setup_data()
60 mvebu_mmc_write(SDIO_BLK_SIZE, data->blocksize); in mvebu_mmc_setup_data()
107 mvebu_mmc_write(SDIO_NOR_INTR_STATUS, SDIO_POLL_MASK); in mvebu_mmc_send_cmd()
108 mvebu_mmc_write(SDIO_ERR_INTR_STATUS, SDIO_POLL_MASK); in mvebu_mmc_send_cmd()
155 mvebu_mmc_write(SDIO_ARG_LOW, cmd->cmdarg & 0xffff); in mvebu_mmc_send_cmd()
156 mvebu_mmc_write(SDIO_ARG_HI, cmd->cmdarg >> 16); in mvebu_mmc_send_cmd()
159 mvebu_mmc_write(SDIO_XFER_MODE, xfertype); in mvebu_mmc_send_cmd()
162 mvebu_mmc_write(SDIO_CMD, resptype); in mvebu_mmc_send_cmd()
245 mvebu_mmc_write(SDIO_NOR_INTR_EN, 0); in mvebu_mmc_power_up()
246 mvebu_mmc_write(SDIO_ERR_INTR_EN, 0); in mvebu_mmc_power_up()
249 mvebu_mmc_write(SDIO_SW_RESET, SDIO_SW_RESET_NOW); in mvebu_mmc_power_up()
251 mvebu_mmc_write(SDIO_XFER_MODE, 0); in mvebu_mmc_power_up()
254 mvebu_mmc_write(SDIO_NOR_STATUS_EN, SDIO_POLL_MASK); in mvebu_mmc_power_up()
255 mvebu_mmc_write(SDIO_ERR_STATUS_EN, SDIO_POLL_MASK); in mvebu_mmc_power_up()
258 mvebu_mmc_write(SDIO_NOR_INTR_STATUS, SDIO_POLL_MASK); in mvebu_mmc_power_up()
259 mvebu_mmc_write(SDIO_ERR_INTR_STATUS, SDIO_POLL_MASK); in mvebu_mmc_power_up()
268 mvebu_mmc_write(SDIO_XFER_MODE, SDIO_XFER_MODE_STOP_CLK); in mvebu_mmc_set_clk()
269 mvebu_mmc_write(SDIO_CLK_DIV, MVEBU_MMC_BASE_DIV_MAX); in mvebu_mmc_set_clk()
274 mvebu_mmc_write(SDIO_CLK_DIV, m & MVEBU_MMC_BASE_DIV_MAX); in mvebu_mmc_set_clk()
315 mvebu_mmc_write(SDIO_HOST_CTRL, ctrl_reg); in mvebu_mmc_set_bus()
336 mvebu_mmc_write(WINDOW_CTRL(i), 0); in mvebu_window_setup()
337 mvebu_mmc_write(WINDOW_BASE(i), 0); in mvebu_window_setup()
365 mvebu_mmc_write(WINDOW_CTRL(i), in mvebu_window_setup()
371 mvebu_mmc_write(WINDOW_CTRL(i), MVCPU_WIN_DISABLE); in mvebu_window_setup()
373 mvebu_mmc_write(WINDOW_BASE(i), base); in mvebu_window_setup()
386 mvebu_mmc_write(SDIO_HOST_CTRL, in mvebu_mmc_initialize()
393 mvebu_mmc_write(SDIO_CLK_CTRL, 0); in mvebu_mmc_initialize()
396 mvebu_mmc_write(SDIO_NOR_STATUS_EN, SDIO_POLL_MASK); in mvebu_mmc_initialize()
397 mvebu_mmc_write(SDIO_ERR_STATUS_EN, SDIO_POLL_MASK); in mvebu_mmc_initialize()
400 mvebu_mmc_write(SDIO_NOR_INTR_EN, 0); in mvebu_mmc_initialize()
401 mvebu_mmc_write(SDIO_ERR_INTR_EN, 0); in mvebu_mmc_initialize()
406 mvebu_mmc_write(SDIO_SW_RESET, SDIO_SW_RESET_NOW); in mvebu_mmc_initialize()