diff options
Diffstat (limited to 'firmware/target/arm/archos/av300/ata-av300.c')
-rw-r--r-- | firmware/target/arm/archos/av300/ata-av300.c | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/firmware/target/arm/archos/av300/ata-av300.c b/firmware/target/arm/archos/av300/ata-av300.c new file mode 100644 index 0000000000..ae7b955632 --- /dev/null +++ b/firmware/target/arm/archos/av300/ata-av300.c | |||
@@ -0,0 +1,56 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id: ata-pp5020.c 10521 2006-08-11 08:35:27Z bger $ | ||
9 | * | ||
10 | * Target-specific ATA functions for AV3xx (TMS320DSC25) | ||
11 | * | ||
12 | * Based on code from the ArchOpen project - http://www.archopen.org | ||
13 | * Adapted for Rockbox in January 2007 | ||
14 | * | ||
15 | * Original file: | ||
16 | * lib/target/arch_AV3XX/ata.c | ||
17 | * | ||
18 | * AvLo - linav project | ||
19 | * Copyright (c) 2005 by Christophe THOMAS (oxygen77 at free.fr) | ||
20 | * | ||
21 | * All files in this archive are subject to the GNU General Public License. | ||
22 | * See the file COPYING in the source tree root for full license agreement. | ||
23 | * | ||
24 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
25 | * KIND, either express or implied. | ||
26 | * | ||
27 | ****************************************************************************/ | ||
28 | |||
29 | #include <stdbool.h> | ||
30 | #include "system.h" | ||
31 | #include "ata-target.h" | ||
32 | |||
33 | void ata_reset() | ||
34 | { | ||
35 | /* arch_ata_reset_HD(void) */ | ||
36 | cpld_set_port_2(CPLD_HD_RESET); | ||
37 | cpld_clear_port_2(CPLD_HD_RESET); | ||
38 | } | ||
39 | |||
40 | void ata_enable(bool on) | ||
41 | { | ||
42 | /* TODO: Implement ata_enable() */ | ||
43 | (void)on; | ||
44 | } | ||
45 | |||
46 | bool ata_is_coldstart() | ||
47 | { | ||
48 | /* TODO: Implement coldstart variable */ | ||
49 | return true; | ||
50 | } | ||
51 | |||
52 | void ata_device_init() | ||
53 | { | ||
54 | /* Set CF/HD selection to HD */ | ||
55 | cpld_select(CPLD_HD_CF,CPLD_SEL_HD); | ||
56 | } | ||