forked from len0rd/rockbox
Revert "ata: Use PIO0 when ATA_SET_PIO_TIMING is not defined"
This reverts commit 95d6c74627
.
This commit is contained in:
parent
95d6c74627
commit
a6f0044d40
1 changed files with 1 additions and 4 deletions
|
@ -1102,10 +1102,8 @@ static int set_features(void)
|
||||||
{ 82, 6, 0xaa, 0 }, /* enable read look-ahead */
|
{ 82, 6, 0xaa, 0 }, /* enable read look-ahead */
|
||||||
};
|
};
|
||||||
int i;
|
int i;
|
||||||
int pio_mode = 0;
|
int pio_mode = 2; /* Lowest */
|
||||||
|
|
||||||
#ifdef ATA_SET_PIO_TIMING
|
|
||||||
pio_mode = 2;
|
|
||||||
/* Find out the highest supported PIO mode */
|
/* Find out the highest supported PIO mode */
|
||||||
if (identify_info[53] & (1<<1)) { /* Is word 64 valid? */
|
if (identify_info[53] & (1<<1)) { /* Is word 64 valid? */
|
||||||
if (identify_info[64] & 2)
|
if (identify_info[64] & 2)
|
||||||
|
@ -1113,7 +1111,6 @@ static int set_features(void)
|
||||||
else if(identify_info[64] & 1)
|
else if(identify_info[64] & 1)
|
||||||
pio_mode = 3;
|
pio_mode = 3;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Update the table: set highest supported pio mode that we also support */
|
/* Update the table: set highest supported pio mode that we also support */
|
||||||
features[0].parameter = 8 + pio_mode;
|
features[0].parameter = 8 + pio_mode;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue