diff options
Diffstat (limited to 'firmware/target/arm/archos')
-rw-r--r-- | firmware/target/arm/archos/av300/ata-av300.c | 58 | ||||
-rw-r--r-- | firmware/target/arm/archos/av300/ata-target.h | 39 | ||||
-rw-r--r-- | firmware/target/arm/archos/av300/button-target.h | 45 | ||||
-rw-r--r-- | firmware/target/arm/archos/av300/power-av300.c | 66 |
4 files changed, 0 insertions, 208 deletions
diff --git a/firmware/target/arm/archos/av300/ata-av300.c b/firmware/target/arm/archos/av300/ata-av300.c deleted file mode 100644 index e8623e5f16..0000000000 --- a/firmware/target/arm/archos/av300/ata-av300.c +++ /dev/null | |||
@@ -1,58 +0,0 @@ | |||
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 | * 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. | ||
25 | * | ||
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-driver.h" | ||
34 | |||
35 | void 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 | |||
42 | void ata_enable(bool on) | ||
43 | { | ||
44 | /* TODO: Implement ata_enable() */ | ||
45 | (void)on; | ||
46 | } | ||
47 | |||
48 | bool ata_is_coldstart() | ||
49 | { | ||
50 | /* TODO: Implement coldstart variable */ | ||
51 | return true; | ||
52 | } | ||
53 | |||
54 | void ata_device_init() | ||
55 | { | ||
56 | /* Set CF/HD selection to HD */ | ||
57 | cpld_select(CPLD_HD_CF,CPLD_SEL_HD); | ||
58 | } | ||
diff --git a/firmware/target/arm/archos/av300/ata-target.h b/firmware/target/arm/archos/av300/ata-target.h deleted file mode 100644 index 5732f17045..0000000000 --- a/firmware/target/arm/archos/av300/ata-target.h +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id: ata-target.h 11655 2006-12-03 22:13:44Z amiconn $ | ||
9 | * | ||
10 | * Copyright (C) 2007 by Dave Chapman | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | |||
22 | #ifndef ATA_TARGET_H | ||
23 | #define ATA_TARGET_H | ||
24 | |||
25 | /* Plain C read & write loops */ | ||
26 | |||
27 | #define ATA_IOBASE 0x02400000 | ||
28 | |||
29 | #define ATA_DATA (*((volatile unsigned short*)(ATA_IOBASE))) | ||
30 | #define ATA_ERROR (*((volatile unsigned char*)(ATA_IOBASE + 0x080))) | ||
31 | #define ATA_NSECTOR (*((volatile unsigned char*)(ATA_IOBASE + 0x100))) | ||
32 | #define ATA_SECTOR (*((volatile unsigned char*)(ATA_IOBASE + 0x180))) | ||
33 | #define ATA_LCYL (*((volatile unsigned char*)(ATA_IOBASE + 0x200))) | ||
34 | #define ATA_HCYL (*((volatile unsigned char*)(ATA_IOBASE + 0x280))) | ||
35 | #define ATA_SELECT (*((volatile unsigned char*)(ATA_IOBASE + 0x300))) | ||
36 | #define ATA_CONTROL (*((volatile unsigned char*)(ATA_IOBASE + 0x340))) | ||
37 | #define ATA_COMMAND (*((volatile unsigned char*)(ATA_IOBASE + 0x380))) | ||
38 | |||
39 | #endif /* ATA_TARGET_H */ | ||
diff --git a/firmware/target/arm/archos/av300/button-target.h b/firmware/target/arm/archos/av300/button-target.h deleted file mode 100644 index a4c439690f..0000000000 --- a/firmware/target/arm/archos/av300/button-target.h +++ /dev/null | |||
@@ -1,45 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id: button-target.h 11967 2007-01-09 23:29:07Z linus $ | ||
9 | * | ||
10 | * Copyright (C) 2007 by Dave Chapman | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | |||
22 | #ifndef _BUTTON_TARGET_H_ | ||
23 | #define _BUTTON_TARGET_H_ | ||
24 | |||
25 | /* Main unit's buttons */ | ||
26 | |||
27 | #define BUTTON_ON 0x00000001 | ||
28 | #define BUTTON_OFF 0x00000002 | ||
29 | |||
30 | #define BUTTON_LEFT 0x00000004 | ||
31 | #define BUTTON_RIGHT 0x00000008 | ||
32 | #define BUTTON_UP 0x00000010 | ||
33 | #define BUTTON_DOWN 0x00000020 | ||
34 | |||
35 | #define BUTTON_SELECT 0x00000040 | ||
36 | |||
37 | #define BUTTON_F1 0x00000080 | ||
38 | #define BUTTON_F2 0x00000100 | ||
39 | #define BUTTON_F3 0x00000200 | ||
40 | |||
41 | #define BUTTON_MAIN (BUTTON_ON|BUTTON_OFF|BUTTON_LEFT|BUTTON_RIGHT\ | ||
42 | |BUTTON_UP|BUTTON_DOWN|BUTTON_SELECT\ | ||
43 | |BUTTON_F1|BUTTON_F2|BUTTON_F3) | ||
44 | |||
45 | #endif /* _BUTTON_TARGET_H_ */ | ||
diff --git a/firmware/target/arm/archos/av300/power-av300.c b/firmware/target/arm/archos/av300/power-av300.c deleted file mode 100644 index 013fd04691..0000000000 --- a/firmware/target/arm/archos/av300/power-av300.c +++ /dev/null | |||
@@ -1,66 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id: power-x5.c 10967 2006-09-17 09:19:50Z jethead71 $ | ||
9 | * | ||
10 | * Based on code from the ArchOpen project - http://www.archopen.org | ||
11 | * Adapted for Rockbox in January 2007 | ||
12 | * | ||
13 | * Original files: | ||
14 | * lib/target/arch_AV3XX/ata.c | ||
15 | * | ||
16 | * AvLo - linav project | ||
17 | * Copyright (c) 2005 by Christophe THOMAS (oxygen77 at free.fr) | ||
18 | * | ||
19 | * This program is free software; you can redistribute it and/or | ||
20 | * modify it under the terms of the GNU General Public License | ||
21 | * as published by the Free Software Foundation; either version 2 | ||
22 | * of the License, or (at your option) any later version. | ||
23 | * | ||
24 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
25 | * KIND, either express or implied. | ||
26 | * | ||
27 | ****************************************************************************/ | ||
28 | #include "config.h" | ||
29 | #include "cpu.h" | ||
30 | #include <stdbool.h> | ||
31 | #include "kernel.h" | ||
32 | #include "system.h" | ||
33 | #include "power.h" | ||
34 | |||
35 | void power_init(void) | ||
36 | { | ||
37 | /* Charger detect */ | ||
38 | } | ||
39 | |||
40 | unsigned int power_input_status(void) | ||
41 | { | ||
42 | return POWER_INPUT_NONE; | ||
43 | } | ||
44 | |||
45 | void ide_power_enable(bool on) | ||
46 | { | ||
47 | if(on) | ||
48 | cpld_set_port_3(CPLD_HD_POWER); /* powering up HD */ | ||
49 | else | ||
50 | cpld_clear_port_3(CPLD_HD_POWER); | ||
51 | } | ||
52 | |||
53 | bool ide_powered(void) | ||
54 | { | ||
55 | return false; | ||
56 | } | ||
57 | |||
58 | void power_off(void) | ||
59 | { | ||
60 | } | ||
61 | |||
62 | bool tuner_power(bool status) | ||
63 | { | ||
64 | (void)status; | ||
65 | return true; | ||
66 | } | ||