summaryrefslogtreecommitdiff
path: root/firmware/target/arm/s5l8702/ipod6g/storage_ata-ipod6g.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/s5l8702/ipod6g/storage_ata-ipod6g.c')
-rw-r--r--firmware/target/arm/s5l8702/ipod6g/storage_ata-ipod6g.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/target/arm/s5l8702/ipod6g/storage_ata-ipod6g.c b/firmware/target/arm/s5l8702/ipod6g/storage_ata-ipod6g.c
index 3458e1918c..ef39a5cabb 100644
--- a/firmware/target/arm/s5l8702/ipod6g/storage_ata-ipod6g.c
+++ b/firmware/target/arm/s5l8702/ipod6g/storage_ata-ipod6g.c
@@ -46,7 +46,7 @@
46#define CEATA_MMC_RCA 1 46#define CEATA_MMC_RCA 1
47 47
48 48
49/** static, private data **/ 49/** static, private data **/
50static uint8_t ceata_taskfile[16] STORAGE_ALIGN_ATTR; 50static uint8_t ceata_taskfile[16] STORAGE_ALIGN_ATTR;
51static uint16_t ata_identify_data[0x100] STORAGE_ALIGN_ATTR; 51static uint16_t ata_identify_data[0x100] STORAGE_ALIGN_ATTR;
52static bool ceata; 52static bool ceata;
@@ -131,13 +131,13 @@ static int ata_wait_for_end_of_transfer(long timeout)
131 if (dad & BIT(0)) RET_ERR(1); 131 if (dad & BIT(0)) RET_ERR(1);
132 if ((dad & (BIT(3) | BITRANGE(5, 7))) == BIT(6)) return 0; 132 if ((dad & (BIT(3) | BITRANGE(5, 7))) == BIT(6)) return 0;
133 RET_ERR(2); 133 RET_ERR(2);
134} 134}
135 135
136static int mmc_dsta_check_command_success(bool disable_crc) 136static int mmc_dsta_check_command_success(bool disable_crc)
137{ 137{
138 int rc = 0; 138 int rc = 0;
139 uint32_t dsta = SDCI_DSTA; 139 uint32_t dsta = SDCI_DSTA;
140 if (dsta & SDCI_DSTA_RESTOUTE) rc |= 1; 140 if (dsta & SDCI_DSTA_RESTOUTE) rc |= 1;
141 if (dsta & SDCI_DSTA_RESENDE) rc |= 2; 141 if (dsta & SDCI_DSTA_RESENDE) rc |= 2;
142 if (dsta & SDCI_DSTA_RESINDE) rc |= 4; 142 if (dsta & SDCI_DSTA_RESINDE) rc |= 4;
143 if (!disable_crc) 143 if (!disable_crc)
@@ -363,7 +363,7 @@ static int ceata_init(int buswidth)
363{ 363{
364 uint32_t result; 364 uint32_t result;
365 PASS_RC(mmc_send_command(SDCI_CMD_CMD_NUM(MMC_CMD_SWITCH) | SDCI_CMD_RES_BUSY 365 PASS_RC(mmc_send_command(SDCI_CMD_CMD_NUM(MMC_CMD_SWITCH) | SDCI_CMD_RES_BUSY
366 | SDCI_CMD_CMD_TYPE_AC | SDCI_CMD_RES_TYPE_R1 366 | SDCI_CMD_CMD_TYPE_AC | SDCI_CMD_RES_TYPE_R1
367 | SDCI_CMD_RES_SIZE_48 | SDCI_CMD_NCR_NID_NCR, 367 | SDCI_CMD_RES_SIZE_48 | SDCI_CMD_NCR_NID_NCR,
368 MMC_CMD_SWITCH_ACCESS_WRITE_BYTE 368 MMC_CMD_SWITCH_ACCESS_WRITE_BYTE
369 | MMC_CMD_SWITCH_INDEX(MMC_CMD_SWITCH_FIELD_HS_TIMING) 369 | MMC_CMD_SWITCH_INDEX(MMC_CMD_SWITCH_FIELD_HS_TIMING)
@@ -1093,7 +1093,7 @@ static int ata_num_drives(int first_drive)
1093{ 1093{
1094 /* We don't care which logical drive number(s) we have been assigned */ 1094 /* We don't care which logical drive number(s) we have been assigned */
1095 (void)first_drive; 1095 (void)first_drive;
1096 1096
1097 return 1; 1097 return 1;
1098} 1098}
1099#endif 1099#endif