summaryrefslogtreecommitdiff
path: root/firmware/drivers/ata.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/ata.c')
-rw-r--r--firmware/drivers/ata.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c
index 339073969c..cfdae2c090 100644
--- a/firmware/drivers/ata.c
+++ b/firmware/drivers/ata.c
@@ -1070,6 +1070,15 @@ int ata_hard_reset(void)
1070 1070
1071 GPIO_OUT |= 0x00080000; 1071 GPIO_OUT |= 0x00080000;
1072 sleep(1); /* > 25us */ 1072 sleep(1); /* > 25us */
1073#elif CONFIG_CPU == TCC730
1074 P1 |= 0x04;
1075 P10CON &= ~0x56;
1076 sleep(1); /* > ???ms */
1077
1078 P10CON |= 0x56;
1079 P10 &= ~0x56;
1080 P1 &= ~0x04;
1081 sleep(1); /* > ???ms */
1073#endif 1082#endif
1074 1083
1075 /* state HRR2 */ 1084 /* state HRR2 */
@@ -1196,6 +1205,11 @@ void ata_enable(bool on)
1196 1205
1197 GPIO_ENABLE |= 0x00040000; 1206 GPIO_ENABLE |= 0x00040000;
1198 GPIO_FUNCTION |= 0x00040000; 1207 GPIO_FUNCTION |= 0x00040000;
1208#elif CONFIG_CPU == TCC730
1209 if(on)
1210 P1 |= 0x08;
1211 else
1212 P1 &= ~0x08;
1199#endif 1213#endif
1200} 1214}
1201 1215