Lines Matching +full:0 +full:x64000000
27 #define OWL_REG_SD_EN 0x0000
28 #define OWL_REG_SD_CTL 0x0004
29 #define OWL_REG_SD_STATE 0x0008
30 #define OWL_REG_SD_CMD 0x000c
31 #define OWL_REG_SD_ARG 0x0010
32 #define OWL_REG_SD_RSPBUF0 0x0014
33 #define OWL_REG_SD_RSPBUF1 0x0018
34 #define OWL_REG_SD_RSPBUF2 0x001c
35 #define OWL_REG_SD_RSPBUF3 0x0020
36 #define OWL_REG_SD_RSPBUF4 0x0024
37 #define OWL_REG_SD_DAT 0x0028
38 #define OWL_REG_SD_BLK_SIZE 0x002c
39 #define OWL_REG_SD_BLK_NUM 0x0030
40 #define OWL_REG_SD_BUF_SIZE 0x0034
44 #define OWL_SD_EN_RAN_SEED(x) (((x) & 0x3f) << 24)
53 #define OWL_SD_EN_DATAWID(x) (((x) & 0x3) << 0)
57 #define OWL_SD_CTL_TOUTCNT(x) (((x) & 0x7f) << 24)
59 #define OWL_SD_CTL_RDELAY(x) (((x) & 0xf) << 20)
60 #define OWL_SD_CTL_WDELAY(x) (((x) & 0xf) << 16)
63 #define OWL_SD_CTL_TCN(x) (((x) & 0xf) << 8)
67 #define OWL_SD_CTL_TM(x) (((x) & 0xf) << 0)
69 #define OWL_SD_DELAY_LOW_CLK 0x0f
70 #define OWL_SD_DELAY_MID_CLK 0x0a
71 #define OWL_SD_DELAY_HIGH_CLK 0x09
72 #define OWL_SD_RDELAY_DDR50 0x0a
73 #define OWL_SD_WDELAY_DDR50 0x08
93 #define OWL_SD_STATE_CRC7ER BIT(0)
179 u32 cmd_rsp_mask = 0; in owl_mmc_send_cmd()
185 mode = OWL_SD_CTL_TM(0); in owl_mmc_send_cmd()
223 mode |= (readl(owl_host->base + OWL_REG_SD_CTL) & (0xff << 16)); in owl_mmc_send_cmd()
231 mode |= (OWL_SD_CTL_TS | OWL_SD_CTL_LBE | 0x64000000); in owl_mmc_send_cmd()
274 cmd->resp[0] = readl(owl_host->base + OWL_REG_SD_RSPBUF3); in owl_mmc_send_cmd()
276 resp[0] = readl(owl_host->base + OWL_REG_SD_RSPBUF0); in owl_mmc_send_cmd()
278 cmd->resp[0] = resp[1] << 24 | resp[0] >> 8; in owl_mmc_send_cmd()
335 data->error = 0; in owl_mmc_prepare_data()
337 return 0; in owl_mmc_prepare_data()
349 if (ret < 0) { in owl_mmc_request()
442 reg &= ~0x03; in owl_mmc_set_bus_width()
475 mode = (readl(owl_host->base + OWL_REG_SD_CTL) & (0xff << 16)); in owl_mmc_power_on()
529 owl_host->ddr_50 = 0; in owl_mmc_set_ios()
552 return 0; in owl_mmc_start_signal_voltage_switch()
582 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in owl_mmc_probe()
641 owl_host->irq = platform_get_irq(pdev, 0); in owl_mmc_probe()
642 if (owl_host->irq < 0) { in owl_mmc_probe()
648 0, dev_name(&pdev->dev), owl_host); in owl_mmc_probe()
663 return 0; in owl_mmc_probe()
680 return 0; in owl_mmc_remove()