Fix struct tegra_sdmmc definition

Definition errors were cancelling each other (for the most part)
This commit is contained in:
TuxSH 2018-05-09 19:33:54 +02:00
parent 3206583db3
commit b9b13e215f
2 changed files with 8 additions and 10 deletions

View File

@ -25,7 +25,7 @@
/** /**
* Map of tegra SDMMC registers * Map of tegra SDMMC registers
*/ */
struct PACKED tegra_sdmmc { struct tegra_sdmmc {
/* SDHCI standard registers */ /* SDHCI standard registers */
uint32_t dma_address; uint32_t dma_address;
@ -56,7 +56,7 @@ struct PACKED tegra_sdmmc {
uint16_t set_acmd12_error; uint16_t set_acmd12_error;
uint16_t set_int_error; uint16_t set_int_error;
uint16_t adma_error; uint16_t adma_error;
uint8_t _0x55[0x3]; uint8_t _0x56[0x2];
uint32_t adma_address; uint32_t adma_address;
uint32_t upper_adma_address; uint32_t upper_adma_address;
uint16_t preset_for_init; uint16_t preset_for_init;
@ -67,7 +67,7 @@ struct PACKED tegra_sdmmc {
uint16_t preset_for_sdr50; uint16_t preset_for_sdr50;
uint16_t preset_for_sdr104; uint16_t preset_for_sdr104;
uint16_t preset_for_ddr50; uint16_t preset_for_ddr50;
uint8_t _0x70[0x3]; uint8_t _0x70[0x4];
uint32_t _0x74[0x22]; uint32_t _0x74[0x22];
uint16_t slot_int_status; uint16_t slot_int_status;
uint16_t host_version; uint16_t host_version;
@ -84,7 +84,7 @@ struct PACKED tegra_sdmmc {
uint32_t vendor_misc_cntrl; uint32_t vendor_misc_cntrl;
uint32_t max_current_override; uint32_t max_current_override;
uint32_t max_current_override_hi; uint32_t max_current_override_hi;
uint32_t _0x12c[0x21]; uint32_t _0x12c[0x20];
uint32_t vendor_io_trim_cntrl; uint32_t vendor_io_trim_cntrl;
/* start of sdmmc2/sdmmc4 only */ /* start of sdmmc2/sdmmc4 only */
@ -112,7 +112,6 @@ struct PACKED tegra_sdmmc {
uint32_t _0x1fc; uint32_t _0x1fc;
}; };
/** /**
* SDMMC response lengths * SDMMC response lengths
*/ */

View File

@ -25,7 +25,7 @@
/** /**
* Map of tegra SDMMC registers * Map of tegra SDMMC registers
*/ */
struct PACKED tegra_sdmmc { struct tegra_sdmmc {
/* SDHCI standard registers */ /* SDHCI standard registers */
uint32_t dma_address; uint32_t dma_address;
@ -56,7 +56,7 @@ struct PACKED tegra_sdmmc {
uint16_t set_acmd12_error; uint16_t set_acmd12_error;
uint16_t set_int_error; uint16_t set_int_error;
uint16_t adma_error; uint16_t adma_error;
uint8_t _0x55[0x3]; uint8_t _0x56[0x2];
uint32_t adma_address; uint32_t adma_address;
uint32_t upper_adma_address; uint32_t upper_adma_address;
uint16_t preset_for_init; uint16_t preset_for_init;
@ -67,7 +67,7 @@ struct PACKED tegra_sdmmc {
uint16_t preset_for_sdr50; uint16_t preset_for_sdr50;
uint16_t preset_for_sdr104; uint16_t preset_for_sdr104;
uint16_t preset_for_ddr50; uint16_t preset_for_ddr50;
uint8_t _0x70[0x3]; uint8_t _0x70[0x4];
uint32_t _0x74[0x22]; uint32_t _0x74[0x22];
uint16_t slot_int_status; uint16_t slot_int_status;
uint16_t host_version; uint16_t host_version;
@ -84,7 +84,7 @@ struct PACKED tegra_sdmmc {
uint32_t vendor_misc_cntrl; uint32_t vendor_misc_cntrl;
uint32_t max_current_override; uint32_t max_current_override;
uint32_t max_current_override_hi; uint32_t max_current_override_hi;
uint32_t _0x12c[0x21]; uint32_t _0x12c[0x20];
uint32_t vendor_io_trim_cntrl; uint32_t vendor_io_trim_cntrl;
/* start of sdmmc2/sdmmc4 only */ /* start of sdmmc2/sdmmc4 only */
@ -112,7 +112,6 @@ struct PACKED tegra_sdmmc {
uint32_t _0x1fc; uint32_t _0x1fc;
}; };
/** /**
* SDMMC response lengths * SDMMC response lengths
*/ */