diff options
Diffstat (limited to 'firmware/target/arm')
-rw-r--r-- | firmware/target/arm/s5l8700/ata-nand-s5l8700.c | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/firmware/target/arm/s5l8700/ata-nand-s5l8700.c b/firmware/target/arm/s5l8700/ata-nand-s5l8700.c index 428836c050..4d42a63d9b 100644 --- a/firmware/target/arm/s5l8700/ata-nand-s5l8700.c +++ b/firmware/target/arm/s5l8700/ata-nand-s5l8700.c | |||
@@ -20,7 +20,7 @@ | |||
20 | ****************************************************************************/ | 20 | ****************************************************************************/ |
21 | #include "ata.h" | 21 | #include "ata.h" |
22 | #include "ata-target.h" | 22 | #include "ata-target.h" |
23 | #include "ata_idle_notify.h" | 23 | #include "nand_idle_notify.h" |
24 | #include "system.h" | 24 | #include "system.h" |
25 | #include <string.h> | 25 | #include <string.h> |
26 | #include "thread.h" | 26 | #include "thread.h" |
@@ -30,7 +30,7 @@ | |||
30 | #include "usb.h" | 30 | #include "usb.h" |
31 | 31 | ||
32 | /* for compatibility */ | 32 | /* for compatibility */ |
33 | int ata_spinup_time = 0; | 33 | int nand_spinup_time = 0; |
34 | 34 | ||
35 | long last_disk_activity = -1; | 35 | long last_disk_activity = -1; |
36 | 36 | ||
@@ -42,55 +42,49 @@ static long next_yield = 0; | |||
42 | 42 | ||
43 | /* API Functions */ | 43 | /* API Functions */ |
44 | 44 | ||
45 | void ata_led(bool onoff) | 45 | void nand_led(bool onoff) |
46 | { | 46 | { |
47 | led(onoff); | 47 | led(onoff); |
48 | } | 48 | } |
49 | 49 | ||
50 | int ata_read_sectors(IF_MV2(int drive,) unsigned long start, int incount, | 50 | int nand_read_sectors(IF_MV2(int drive,) unsigned long start, int incount, |
51 | void* inbuf) | 51 | void* inbuf) |
52 | { | 52 | { |
53 | 53 | ||
54 | } | 54 | } |
55 | 55 | ||
56 | int ata_write_sectors(IF_MV2(int drive,) unsigned long start, int count, | 56 | int nand_write_sectors(IF_MV2(int drive,) unsigned long start, int count, |
57 | const void* outbuf) | 57 | const void* outbuf) |
58 | { | 58 | { |
59 | } | 59 | } |
60 | 60 | ||
61 | void ata_spindown(int seconds) | 61 | void nand_spindown(int seconds) |
62 | { | 62 | { |
63 | (void)seconds; | 63 | (void)seconds; |
64 | } | 64 | } |
65 | 65 | ||
66 | bool ata_disk_is_active(void) | 66 | bool nand_disk_is_active(void) |
67 | { | 67 | { |
68 | return 0; | 68 | return 0; |
69 | } | 69 | } |
70 | 70 | ||
71 | void ata_sleep(void) | 71 | void nand_sleep(void) |
72 | { | 72 | { |
73 | } | 73 | } |
74 | 74 | ||
75 | void ata_spin(void) | 75 | void nand_spin(void) |
76 | { | 76 | { |
77 | } | 77 | } |
78 | 78 | ||
79 | /* Hardware reset protocol as specified in chapter 9.1, ATA spec draft v5 */ | 79 | int nand_soft_reset(void) |
80 | int ata_hard_reset(void) | ||
81 | { | 80 | { |
82 | return 0; | 81 | return 0; |
83 | } | 82 | } |
84 | 83 | ||
85 | int ata_soft_reset(void) | 84 | void nand_enable(bool on) |
86 | { | ||
87 | return 0; | ||
88 | } | ||
89 | |||
90 | void ata_enable(bool on) | ||
91 | { | 85 | { |
92 | } | 86 | } |
93 | 87 | ||
94 | int ata_init(void) | 88 | int nand_init(void) |
95 | { | 89 | { |
96 | } | 90 | } |