Lines Matching refs:reg_base

81 	data = sys_read32(cdns_params.reg_base + SDHC_CDNS_SRS09);  in sdhc_cdns_busy()
89 if (!WAIT_FOR((((sys_read32(cdns_params.reg_base + SDHC_CDNS_SRS09)) in sdhc_cdns_card_present()
103 (cdns_params.reg_base + SDHC_CDNS_SRS10)); in sdhc_cdns_vol_reset()
110 (cdns_params.reg_base + SDHC_CDNS_SRS10)); in sdhc_cdns_vol_reset()
183 ret = sdhc_cdns_write_phy_reg(cdns_params.reg_base + SDHC_CDNS_HRS04, in sdhc_cdns_program_phy_reg()
184 cdns_params.combophy + PHY_DQS_TIMING_REG, cdns_params.reg_base in sdhc_cdns_program_phy_reg()
200 ret = sdhc_cdns_write_phy_reg(cdns_params.reg_base + SDHC_CDNS_HRS04, in sdhc_cdns_program_phy_reg()
201 cdns_params.combophy + PHY_GATE_LPBK_CTRL_REG, cdns_params.reg_base in sdhc_cdns_program_phy_reg()
214 ret = sdhc_cdns_write_phy_reg(cdns_params.reg_base + SDHC_CDNS_HRS04, in sdhc_cdns_program_phy_reg()
215 cdns_params.combophy + PHY_DLL_MASTER_CTRL_REG, cdns_params.reg_base in sdhc_cdns_program_phy_reg()
230 ret = sdhc_cdns_write_phy_reg(cdns_params.reg_base + SDHC_CDNS_HRS04, in sdhc_cdns_program_phy_reg()
231 cdns_params.combophy + PHY_DLL_SLAVE_CTRL_REG, cdns_params.reg_base in sdhc_cdns_program_phy_reg()
242 sys_write32(cdns_params.combophy + PHY_CTRL_REG, cdns_params.reg_base in sdhc_cdns_program_phy_reg()
244 value = sys_read32(cdns_params.reg_base + SDHC_CDNS_HRS05); in sdhc_cdns_program_phy_reg()
248 sys_write32(value, cdns_params.reg_base + SDHC_CDNS_HRS05); in sdhc_cdns_program_phy_reg()
252 value = sys_read32(cdns_params.reg_base + SDHC_CDNS_HRS09); in sdhc_cdns_program_phy_reg()
254 sys_write32(value, cdns_params.reg_base + SDHC_CDNS_HRS09); in sdhc_cdns_program_phy_reg()
255 value = sys_read32(cdns_params.reg_base + SDHC_CDNS_HRS09); in sdhc_cdns_program_phy_reg()
269 ret = sdhc_cdns_write_phy_reg(cdns_params.reg_base + SDHC_CDNS_HRS04, in sdhc_cdns_program_phy_reg()
270 cdns_params.combophy + PHY_DQ_TIMING_REG, cdns_params.reg_base in sdhc_cdns_program_phy_reg()
323 base = cdns_params.reg_base; in sdhc_cdns_prepare()
346 sys_write32((uint32_t)desc_base, cdns_params.reg_base + SDHC_CDNS_SRS22); in sdhc_cdns_prepare()
347 sys_write32((uint32_t)(desc_base >> 32), cdns_params.reg_base + SDHC_CDNS_SRS23); in sdhc_cdns_prepare()
354 cdns_params.reg_base + SDHC_CDNS_SRS01); in sdhc_cdns_prepare()
366 sys_write32(0, cdns_params.reg_base + SDHC_CDNS_SRS11); in sdhc_cdns_host_set_clk()
368 CDNS_SRS11_ICE), cdns_params.reg_base + SDHC_CDNS_SRS11); in sdhc_cdns_host_set_clk()
370 ret = sdhc_cdns_wait_ics(WAIT_ICS_TIME_DELAY_US, cdns_params.reg_base + SDHC_CDNS_SRS11); in sdhc_cdns_host_set_clk()
376 sys_clear_bit(cdns_params.reg_base + SDHC_CDNS_HRS09, 0); in sdhc_cdns_host_set_clk()
378 sys_write32(((sys_read32(cdns_params.reg_base + SDHC_CDNS_HRS09) in sdhc_cdns_host_set_clk()
379 & 0xFFFFFFF7) | CDNS_HRS09_EXT_WR_MODE), (cdns_params.reg_base in sdhc_cdns_host_set_clk()
382 sys_set_bits(cdns_params.reg_base + SDHC_CDNS_HRS09, CDNS_HRS09_RDCMD_EN_BIT | in sdhc_cdns_host_set_clk()
387 cdns_params.reg_base + SDHC_CDNS_SRS11); in sdhc_cdns_host_set_clk()
389 sys_write32(0xFFFFFFFF, cdns_params.reg_base + SDHC_CDNS_SRS13); in sdhc_cdns_host_set_clk()
400 sys_clear_bit(cdns_params.reg_base + SDHC_CDNS_SRS10, WIDTH_BIT1); in sdhc_cdns_set_ios()
403 sys_set_bit(cdns_params.reg_base + SDHC_CDNS_SRS10, WIDTH_BIT4); in sdhc_cdns_set_ios()
406 sys_set_bit(cdns_params.reg_base + SDHC_CDNS_SRS10, WIDTH_BIT8); in sdhc_cdns_set_ios()
440 sys_write32(value, cdns_params.reg_base + SDHC_CDNS_HRS09); in sdhc_cdns_init_hrs_io()
447 sys_write32(value, cdns_params.reg_base + SDHC_CDNS_HRS10); in sdhc_cdns_init_hrs_io()
461 sys_write32(value, cdns_params.reg_base + SDHC_CDNS_HRS16); in sdhc_cdns_init_hrs_io()
469 sys_write32(value, cdns_params.reg_base + SDHC_CDNS_HRS07); in sdhc_cdns_init_hrs_io()
503 sys_write32(0, cdns_params.reg_base + SDHC_CDNS_SRS11); in sdhc_cdns_set_clk()
506 cdns_params.reg_base + SDHC_CDNS_SRS11); in sdhc_cdns_set_clk()
507 ret = sdhc_cdns_wait_ics(WAIT_ICS_TIME_DELAY_US, cdns_params.reg_base + SDHC_CDNS_SRS11); in sdhc_cdns_set_clk()
513 sys_clear_bit(cdns_params.reg_base + SDHC_CDNS_HRS09, 0); in sdhc_cdns_set_clk()
515 sys_write32(((sys_read32(cdns_params.reg_base + SDHC_CDNS_HRS09) & in sdhc_cdns_set_clk()
516 0xFFFFFFF7) | CDNS_HRS09_EXT_WR_MODE), (cdns_params.reg_base in sdhc_cdns_set_clk()
519 sys_set_bits(cdns_params.reg_base + SDHC_CDNS_HRS09, CDNS_HRS09_RDCMD_EN_BIT | in sdhc_cdns_set_clk()
523 CDNS_SRS11_ICE | CDNS_SRS11_SDCE, cdns_params.reg_base in sdhc_cdns_set_clk()
526 sys_write32(0xFFFFFFFF, cdns_params.reg_base + SDHC_CDNS_SRS13); in sdhc_cdns_set_clk()
534 sys_clear_bits(cdns_params.reg_base + SDHC_CDNS_SRS11, 0xFFFF); in sdhc_cdns_reset()
537 sys_set_bit(cdns_params.reg_base + SDHC_CDNS_HRS00, CDNS_HRS00_SWR); in sdhc_cdns_reset()
541 if (!WAIT_FOR(((sys_read32(cdns_params.reg_base + SDHC_CDNS_HRS00) & in sdhc_cdns_reset()
548 sys_clear_bit(cdns_params.reg_base + SDHC_CDNS_HRS09, CDNS_HRS09_PHY_SW_RESET); in sdhc_cdns_reset()
600 base = cdns_params.reg_base; in sdhc_cdns_send_cmd()
607 sys_set_bits(cdns_params.reg_base + SDHC_CDNS_SRS10, SRS10_VAL_SW); in sdhc_cdns_send_cmd()
608 sys_set_bits(cdns_params.reg_base + SDHC_CDNS_SRS11, SRS11_VAL_GEN); in sdhc_cdns_send_cmd()
609 sys_set_bits(cdns_params.reg_base + SDHC_CDNS_SRS15, SRS15_VAL_GEN); in sdhc_cdns_send_cmd()
615 sys_set_bits(cdns_params.reg_base + SDHC_CDNS_SRS10, SRS10_VAL_READ); in sdhc_cdns_send_cmd()
616 sys_set_bits(cdns_params.reg_base + SDHC_CDNS_SRS11, SRS11_VAL_GEN); in sdhc_cdns_send_cmd()
617 sys_set_bits(cdns_params.reg_base + SDHC_CDNS_SRS15, SRS15_VAL_RD_WR); in sdhc_cdns_send_cmd()
618 sys_write32(CDNS_SRS00_SAAR, cdns_params.reg_base + SDHC_CDNS_SRS00); in sdhc_cdns_send_cmd()
624 sys_set_bits(cdns_params.reg_base + SDHC_CDNS_SRS10, SRS10_VAL_READ); in sdhc_cdns_send_cmd()
625 sys_set_bits(cdns_params.reg_base + SDHC_CDNS_SRS11, SRS11_VAL_GEN); in sdhc_cdns_send_cmd()
626 sys_set_bits(cdns_params.reg_base + SDHC_CDNS_SRS15, SRS15_VAL_RD_WR); in sdhc_cdns_send_cmd()
627 sys_write32(CDNS_SRS00_SAAR, cdns_params.reg_base + SDHC_CDNS_SRS00); in sdhc_cdns_send_cmd()
632 sys_set_bits(cdns_params.reg_base + SDHC_CDNS_SRS10, ADMA2_32); in sdhc_cdns_send_cmd()
633 sys_set_bits(cdns_params.reg_base + SDHC_CDNS_SRS11, SRS11_VAL_GEN); in sdhc_cdns_send_cmd()
634 sys_set_bits(cdns_params.reg_base + SDHC_CDNS_SRS15, SRS15_VAL_GEN); in sdhc_cdns_send_cmd()
644 sys_set_bits(cdns_params.reg_base + SDHC_CDNS_SRS11, SRS11_VAL_CID); in sdhc_cdns_send_cmd()
645 sys_set_bits(cdns_params.reg_base + SDHC_CDNS_SRS15, CDNS_SRS15_HV4E); in sdhc_cdns_send_cmd()
649 sys_set_bits(cdns_params.reg_base + SDHC_CDNS_SRS11, SRS11_VAL_CID); in sdhc_cdns_send_cmd()
650 sys_set_bits(cdns_params.reg_base + SDHC_CDNS_SRS15, SRS15_VAL_CID); in sdhc_cdns_send_cmd()
655 sys_set_bits(cdns_params.reg_base + SDHC_CDNS_SRS11, SRS11_VAL_GEN); in sdhc_cdns_send_cmd()
656 sys_set_bits(cdns_params.reg_base + SDHC_CDNS_SRS15, CDNS_SRS15_HV4E); in sdhc_cdns_send_cmd()
716 sys_write32(~0, cdns_params.reg_base + SDHC_CDNS_SRS12); in sdhc_cdns_send_cmd()
718 sys_write32(cmd->cmd_arg, cdns_params.reg_base + SDHC_CDNS_SRS02); in sdhc_cdns_send_cmd()
719 sys_write32(RESET_SRS14, cdns_params.reg_base + SDHC_CDNS_SRS14); in sdhc_cdns_send_cmd()
720 sys_write32(op | cmd_indx, cdns_params.reg_base + SDHC_CDNS_SRS03); in sdhc_cdns_send_cmd()
723 if (!WAIT_FOR(((((sys_read32(cdns_params.reg_base + SDHC_CDNS_SRS12)) & in sdhc_cdns_send_cmd()
724 CDNS_SRS12_CC) == CDNS_SRS12_CC) | (((sys_read32(cdns_params.reg_base + in sdhc_cdns_send_cmd()
731 value = sys_read32(cdns_params.reg_base + SDHC_CDNS_SRS12); in sdhc_cdns_send_cmd()
739 cmd->resp_data[0] = sys_read32(cdns_params.reg_base + SDHC_CDNS_SRS04); in sdhc_cdns_send_cmd()
741 cmd->resp_data[1] = sys_read32(cdns_params.reg_base + SDHC_CDNS_SRS05); in sdhc_cdns_send_cmd()
742 cmd->resp_data[2] = sys_read32(cdns_params.reg_base + SDHC_CDNS_SRS06); in sdhc_cdns_send_cmd()
743 cmd->resp_data[3] = sys_read32(cdns_params.reg_base + SDHC_CDNS_SRS07); in sdhc_cdns_send_cmd()
779 ((params->reg_base & MMC_BLOCK_MASK) == 0) && in sdhc_cdns_sdmmc_init()