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