1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
8 * $Id: ata-pp5020.c 10521 2006-08-11 08:35:27Z bger $
10 * Target-specific ATA functions for AV3xx (TMS320DSC25)
12 * Based on code from the ArchOpen project - http://www.archopen.org
13 * Adapted for Rockbox in January 2007
16 * lib/target/arch_AV3XX/ata.c
18 * AvLo - linav project
19 * Copyright (c) 2005 by Christophe THOMAS (oxygen77 at free.fr)
21 * This program is free software; you can redistribute it and/or
22 * modify it under the terms of the GNU General Public License
23 * as published by the Free Software Foundation; either version 2
24 * of the License, or (at your option) any later version.
26 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
27 * KIND, either express or implied.
29 ****************************************************************************/
33 #include "ata-driver.h"
37 /* arch_ata_reset_HD(void) */
38 cpld_set_port_2(CPLD_HD_RESET
);
39 cpld_clear_port_2(CPLD_HD_RESET
);
42 void ata_enable(bool on
)
44 /* TODO: Implement ata_enable() */
48 bool ata_is_coldstart()
50 /* TODO: Implement coldstart variable */
54 void ata_device_init()
56 /* Set CF/HD selection to HD */
57 cpld_select(CPLD_HD_CF
,CPLD_SEL_HD
);