Lines Matching refs:ctrl_reg
42 u32 ctrl_reg; in mvebu_mmc_setup_data() local
49 ctrl_reg = mvebu_mmc_read(SDIO_HOST_CTRL); in mvebu_mmc_setup_data()
50 ctrl_reg |= SDIO_HOST_CTRL_TMOUT(SDIO_HOST_CTRL_TMOUT_MAX); in mvebu_mmc_setup_data()
51 mvebu_mmc_write(SDIO_HOST_CTRL, ctrl_reg); in mvebu_mmc_setup_data()
283 u32 ctrl_reg = 0; in mvebu_mmc_set_bus() local
285 ctrl_reg = mvebu_mmc_read(SDIO_HOST_CTRL); in mvebu_mmc_set_bus()
286 ctrl_reg &= ~SDIO_HOST_CTRL_DATA_WIDTH_4_BITS; in mvebu_mmc_set_bus()
290 ctrl_reg |= SDIO_HOST_CTRL_DATA_WIDTH_4_BITS; in mvebu_mmc_set_bus()
294 ctrl_reg |= SDIO_HOST_CTRL_DATA_WIDTH_1_BIT; in mvebu_mmc_set_bus()
298 ctrl_reg |= SDIO_HOST_CTRL_BIG_ENDIAN; in mvebu_mmc_set_bus()
299 ctrl_reg &= ~SDIO_HOST_CTRL_LSB_FIRST; in mvebu_mmc_set_bus()
302 ctrl_reg |= SDIO_HOST_CTRL_TMOUT(SDIO_HOST_CTRL_TMOUT_MAX); in mvebu_mmc_set_bus()
303 ctrl_reg |= SDIO_HOST_CTRL_TMOUT_EN; in mvebu_mmc_set_bus()
305 ctrl_reg |= SDIO_HOST_CTRL_PUSH_PULL_EN; in mvebu_mmc_set_bus()
307 ctrl_reg |= SDIO_HOST_CTRL_CARD_TYPE_MEM_ONLY; in mvebu_mmc_set_bus()
309 debug("%s: ctrl 0x%04x: %s %s %s\n", DRIVER_NAME, ctrl_reg, in mvebu_mmc_set_bus()
310 (ctrl_reg & SDIO_HOST_CTRL_PUSH_PULL_EN) ? in mvebu_mmc_set_bus()
312 (ctrl_reg & SDIO_HOST_CTRL_DATA_WIDTH_4_BITS) ? in mvebu_mmc_set_bus()
314 (ctrl_reg & SDIO_HOST_CTRL_HI_SPEED_EN) ? in mvebu_mmc_set_bus()
317 mvebu_mmc_write(SDIO_HOST_CTRL, ctrl_reg); in mvebu_mmc_set_bus()