mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
hw: sd: allwinner-sdhost: Add sun50i-a64 SoC support
A64's sd register was similar to H3, and it introduced a new register named SAMP_DL_REG location at 0x144. The dma descriptor buffer size of mmc2 is only 8K and the other mmc controllers has 64K. Also fix allwinner-r40's mmc controller type. Signed-off-by: qianfan Zhao <qianfanguijin@163.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
4a52ef61d9
commit
2c992b88cc
3 changed files with 79 additions and 4 deletions
|
@ -38,6 +38,12 @@
|
|||
/** Allwinner sun5i family and newer (A13, H2+, H3, etc) */
|
||||
#define TYPE_AW_SDHOST_SUN5I TYPE_AW_SDHOST "-sun5i"
|
||||
|
||||
/** Allwinner sun50i-a64 */
|
||||
#define TYPE_AW_SDHOST_SUN50I_A64 TYPE_AW_SDHOST "-sun50i-a64"
|
||||
|
||||
/** Allwinner sun50i-a64 emmc */
|
||||
#define TYPE_AW_SDHOST_SUN50I_A64_EMMC TYPE_AW_SDHOST "-sun50i-a64-emmc"
|
||||
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
@ -110,6 +116,7 @@ struct AwSdHostState {
|
|||
uint32_t startbit_detect; /**< eMMC DDR Start Bit Detection Control */
|
||||
uint32_t response_crc; /**< Response CRC */
|
||||
uint32_t data_crc[8]; /**< Data CRC */
|
||||
uint32_t sample_delay; /**< Sample delay control */
|
||||
uint32_t status_crc; /**< Status CRC */
|
||||
|
||||
/** @} */
|
||||
|
@ -132,6 +139,8 @@ struct AwSdHostClass {
|
|||
size_t max_desc_size;
|
||||
bool is_sun4i;
|
||||
|
||||
/** does the IP block support autocalibration? */
|
||||
bool can_calibrate;
|
||||
};
|
||||
|
||||
#endif /* HW_SD_ALLWINNER_SDHOST_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue