diff options
author | William Qiu <william.qiu@starfivetech.com> | 2023-07-17 09:45:18 +0300 |
---|---|---|
committer | William Qiu <william.qiu@starfivetech.com> | 2023-07-26 11:03:44 +0300 |
commit | f9516d9db115e5067079f823d2c4ad9938bd174e (patch) | |
tree | 191e27441ff28d27cddc5d32522ec7b2008708ad /include/dwmmc.h | |
parent | 8bc74ce3e17fc569c612f4f1c70d1be4c94475f5 (diff) | |
download | u-boot-f9516d9db115e5067079f823d2c4ad9938bd174e.tar.xz |
mmc: starfive: fix mmc device power-up sequence
fix mmc device power-up sequence.
Signed-off-by: William Qiu <william.qiu@starfivetech.com>
Diffstat (limited to 'include/dwmmc.h')
-rw-r--r-- | include/dwmmc.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/dwmmc.h b/include/dwmmc.h index a2f8ce2bf3..fe1be76a7d 100644 --- a/include/dwmmc.h +++ b/include/dwmmc.h @@ -92,6 +92,7 @@ #define DWMCI_CMD_RW (1 << 10) #define DWMCI_CMD_SEND_STOP (1 << 12) #define DWMCI_CMD_ABORT_STOP (1 << 14) +#define DWMCI_CMD_SEND_INIT (1 << 15) #define DWMCI_CMD_PRV_DAT_WAIT (1 << 13) #define DWMCI_CMD_UPD_CLK (1 << 21) #define DWMCI_CMD_USE_HOLD_REG (1 << 29) @@ -198,6 +199,14 @@ struct dwmci_host { /* use fifo mode to read and write data */ bool fifo_mode; + + /* Starfive: porting from kernel 5.15, fix mmc device power-up sequence */ + unsigned int flags; +#define DW_MMC_CARD_PRESENT 0 +#define DW_MMC_CARD_NEED_INIT 1 +#define DW_MMC_CARD_NO_LOW_PWR 2 +#define DW_MMC_CARD_NO_USE_HOLD 3 +#define DW_MMC_CARD_NEEDS_POLL 4 }; struct dwmci_idmac { |