blob: 08bee15fe6962c5a1086d28c338a20992b35885b [file] [log] [blame]
Dave Chapmand64e6262007-01-14 13:48:09 +00001/***************************************************************************
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 *
Daniel Stenberg2acc0ac2008-06-28 18:10:04 +000021 * 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.
Dave Chapmand64e6262007-01-14 13:48:09 +000025 *
26 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
27 * KIND, either express or implied.
28 *
29 ****************************************************************************/
30
31#include <stdbool.h>
32#include "system.h"
33#include "ata-target.h"
34
35void ata_reset()
36{
37 /* arch_ata_reset_HD(void) */
38 cpld_set_port_2(CPLD_HD_RESET);
39 cpld_clear_port_2(CPLD_HD_RESET);
40}
41
42void ata_enable(bool on)
43{
44 /* TODO: Implement ata_enable() */
45 (void)on;
46}
47
48bool ata_is_coldstart()
49{
50 /* TODO: Implement coldstart variable */
51 return true;
52}
53
54void ata_device_init()
55{
56 /* Set CF/HD selection to HD */
57 cpld_select(CPLD_HD_CF,CPLD_SEL_HD);
58}