diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/drivers/lcd-player.c | 2 | ||||
-rw-r--r-- | firmware/drivers/power.c | 6 | ||||
-rw-r--r-- | firmware/export/hwcompat.h | 3 | ||||
-rw-r--r-- | firmware/hwcompat.c | 4 |
4 files changed, 7 insertions, 8 deletions
diff --git a/firmware/drivers/lcd-player.c b/firmware/drivers/lcd-player.c index ced421b88f..1b841b5848 100644 --- a/firmware/drivers/lcd-player.c +++ b/firmware/drivers/lcd-player.c | |||
@@ -496,7 +496,7 @@ void lcd_init (void) | |||
496 | 496 | ||
497 | (void)data_vector; | 497 | (void)data_vector; |
498 | 498 | ||
499 | new_lcd = has_new_lcd(); | 499 | new_lcd = is_new_player(); |
500 | memset(extended_chars_mapped, NO_CHAR, sizeof(extended_chars_mapped)); | 500 | memset(extended_chars_mapped, NO_CHAR, sizeof(extended_chars_mapped)); |
501 | memset(extended_pattern_content, NO_CHAR,sizeof(extended_pattern_content)); | 501 | memset(extended_pattern_content, NO_CHAR,sizeof(extended_pattern_content)); |
502 | memset(extended_pattern_usage, 0, sizeof(extended_pattern_usage)); | 502 | memset(extended_pattern_usage, 0, sizeof(extended_pattern_usage)); |
diff --git a/firmware/drivers/power.c b/firmware/drivers/power.c index c67dd8be05..d4e8b3315b 100644 --- a/firmware/drivers/power.c +++ b/firmware/drivers/power.c | |||
@@ -119,7 +119,7 @@ void ide_power_enable(bool on) | |||
119 | if(on) | 119 | if(on) |
120 | { | 120 | { |
121 | #ifdef ATA_POWER_PLAYERSTYLE | 121 | #ifdef ATA_POWER_PLAYERSTYLE |
122 | if (has_ata_power_control()) | 122 | if (is_new_player()) |
123 | { | 123 | { |
124 | or_b(0x10, &PBDRL); | 124 | or_b(0x10, &PBDRL); |
125 | touched = true; | 125 | touched = true; |
@@ -134,7 +134,7 @@ void ide_power_enable(bool on) | |||
134 | if(!on) | 134 | if(!on) |
135 | { | 135 | { |
136 | #ifdef ATA_POWER_PLAYERSTYLE | 136 | #ifdef ATA_POWER_PLAYERSTYLE |
137 | if (has_ata_power_control()) | 137 | if (is_new_player()) |
138 | { | 138 | { |
139 | and_b(~0x10, &PBDRL); | 139 | and_b(~0x10, &PBDRL); |
140 | touched = true; | 140 | touched = true; |
@@ -166,7 +166,7 @@ bool ide_powered(void) | |||
166 | { | 166 | { |
167 | #if defined(NEEDS_ATA_POWER_ON) || defined(HAVE_ATA_POWER_OFF) | 167 | #if defined(NEEDS_ATA_POWER_ON) || defined(HAVE_ATA_POWER_OFF) |
168 | #ifdef ATA_POWER_PLAYERSTYLE | 168 | #ifdef ATA_POWER_PLAYERSTYLE |
169 | if (has_ata_power_control()) | 169 | if (is_new_player()) |
170 | { | 170 | { |
171 | if ((PBCR2 & 0x0300) || !(PBIOR & 0x0010)) /* not configured for output */ | 171 | if ((PBCR2 & 0x0300) || !(PBIOR & 0x0010)) /* not configured for output */ |
172 | return false; /* would be floating low, disk off */ | 172 | return false; /* would be floating low, disk off */ |
diff --git a/firmware/export/hwcompat.h b/firmware/export/hwcompat.h index f33bb9cc6e..03fb161ce4 100644 --- a/firmware/export/hwcompat.h +++ b/firmware/export/hwcompat.h | |||
@@ -34,8 +34,7 @@ int read_rom_version(void); | |||
34 | int read_hw_mask(void); | 34 | int read_hw_mask(void); |
35 | 35 | ||
36 | #ifdef ARCHOS_PLAYER | 36 | #ifdef ARCHOS_PLAYER |
37 | bool has_new_lcd(void); | 37 | bool is_new_player(void); |
38 | bool has_ata_power_control(void) __attribute__ ((alias ("has_new_lcd"))); | ||
39 | #endif | 38 | #endif |
40 | 39 | ||
41 | #endif | 40 | #endif |
diff --git a/firmware/hwcompat.c b/firmware/hwcompat.c index 43a516815f..ceac5b1c58 100644 --- a/firmware/hwcompat.c +++ b/firmware/hwcompat.c | |||
@@ -39,8 +39,8 @@ int read_hw_mask(void) | |||
39 | } | 39 | } |
40 | 40 | ||
41 | #ifdef ARCHOS_PLAYER | 41 | #ifdef ARCHOS_PLAYER |
42 | bool has_new_lcd(void) | 42 | bool is_new_player(void) |
43 | { | 43 | { |
44 | return read_rom_version() > 451; | 44 | return read_rom_version() > 451; |
45 | } | 45 | } |
46 | #endif | 46 | #endif |