diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2021-04-23 11:09:49 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2021-04-26 07:41:51 -0400 |
commit | 3ba2f6e5c7383c5d7a6f8a1c38b6b5403a8a5dcb (patch) | |
tree | 2741885caf2393cf05ddd5fac7559df3abcd17dd /firmware/target/arm/tcc77x/logikdax | |
parent | 77188e41f5c9966432a0fbb3bffd2069d53cc608 (diff) | |
download | rockbox-3ba2f6e5c7383c5d7a6f8a1c38b6b5403a8a5dcb.tar.gz rockbox-3ba2f6e5c7383c5d7a6f8a1c38b6b5403a8a5dcb.zip |
Nuke all TCC77x targets: iAudio 7, Sansa C100, M200(v1-3), Logik DAX
They were never finished, never saw any release ever, and haven't
compiled for the better part of a decade. Given their HW capabilities [1],
they are not worth trying to fix.
[1] 1-2MB RAM, ~256MB onboard flash, no expandability
Change-Id: I7b2a5806d687114c22156bb0458d4a10a9734190
Diffstat (limited to 'firmware/target/arm/tcc77x/logikdax')
-rw-r--r-- | firmware/target/arm/tcc77x/logikdax/adc-target.h | 28 | ||||
-rw-r--r-- | firmware/target/arm/tcc77x/logikdax/audio-logikdax.c | 40 | ||||
-rw-r--r-- | firmware/target/arm/tcc77x/logikdax/backlight-target.h | 40 | ||||
-rw-r--r-- | firmware/target/arm/tcc77x/logikdax/button-logikdax.c | 100 | ||||
-rw-r--r-- | firmware/target/arm/tcc77x/logikdax/button-target.h | 45 | ||||
-rw-r--r-- | firmware/target/arm/tcc77x/logikdax/power-logikdax.c | 44 |
6 files changed, 0 insertions, 297 deletions
diff --git a/firmware/target/arm/tcc77x/logikdax/adc-target.h b/firmware/target/arm/tcc77x/logikdax/adc-target.h deleted file mode 100644 index 1916d93598..0000000000 --- a/firmware/target/arm/tcc77x/logikdax/adc-target.h +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2007 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 | #ifndef _ADC_TARGET_H_ | ||
22 | #define _ADC_TARGET_H_ | ||
23 | |||
24 | #define NUM_ADC_CHANNELS 8 | ||
25 | |||
26 | #define ADC_BUTTONS 0 | ||
27 | |||
28 | #endif /* _ADC_TARGET_H_ */ | ||
diff --git a/firmware/target/arm/tcc77x/logikdax/audio-logikdax.c b/firmware/target/arm/tcc77x/logikdax/audio-logikdax.c deleted file mode 100644 index 90c9a68827..0000000000 --- a/firmware/target/arm/tcc77x/logikdax/audio-logikdax.c +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2007 by Michael Sevakis | ||
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 | #include "system.h" | ||
22 | #include "cpu.h" | ||
23 | #include "audio.h" | ||
24 | #include "sound.h" | ||
25 | |||
26 | int audio_channels = 2; | ||
27 | int audio_output_source = AUDIO_SRC_PLAYBACK; | ||
28 | |||
29 | #if INPUT_SRC_CAPS != 0 | ||
30 | void audio_set_output_source(int source) | ||
31 | { | ||
32 | (void)source; | ||
33 | } | ||
34 | |||
35 | void audio_input_mux(int source, unsigned flags) | ||
36 | { | ||
37 | (void)source; | ||
38 | (void)flags; | ||
39 | } | ||
40 | #endif | ||
diff --git a/firmware/target/arm/tcc77x/logikdax/backlight-target.h b/firmware/target/arm/tcc77x/logikdax/backlight-target.h deleted file mode 100644 index 202e118606..0000000000 --- a/firmware/target/arm/tcc77x/logikdax/backlight-target.h +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
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 | #ifndef BACKLIGHT_TARGET_H | ||
22 | #define BACKLIGHT_TARGET_H | ||
23 | |||
24 | #include "tcc77x.h" | ||
25 | |||
26 | #define backlight_hw_init() true | ||
27 | |||
28 | static inline void backlight_hw_on(void) | ||
29 | { | ||
30 | /* Enable backlight */ | ||
31 | GPIOD |= 0x10; | ||
32 | } | ||
33 | |||
34 | static inline void backlight_hw_off(void) | ||
35 | { | ||
36 | /* Disable backlight */ | ||
37 | GPIOD &= ~0x10; | ||
38 | } | ||
39 | |||
40 | #endif | ||
diff --git a/firmware/target/arm/tcc77x/logikdax/button-logikdax.c b/firmware/target/arm/tcc77x/logikdax/button-logikdax.c deleted file mode 100644 index abf939753a..0000000000 --- a/firmware/target/arm/tcc77x/logikdax/button-logikdax.c +++ /dev/null | |||
@@ -1,100 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
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 | #include "config.h" | ||
23 | #include "cpu.h" | ||
24 | #include "button.h" | ||
25 | #include "adc.h" | ||
26 | |||
27 | /* | ||
28 | |||
29 | Results of button testing: | ||
30 | |||
31 | HOLD: GPIOA & 0x0002 (0=pressed, 0x0002 = released) | ||
32 | POWER: GPIOA & 0x8000 (0=pressed, 0x8000 = released) | ||
33 | |||
34 | ADC[0]: (approx values) | ||
35 | |||
36 | RIGHT - 0x37 | ||
37 | LEFT - 0x7f | ||
38 | JOYSTICK PRESS - 0xc7 | ||
39 | UP - 0x11e | ||
40 | DOWN - 0x184 | ||
41 | MODE - 0x1f0/0x1ff | ||
42 | PRESET - 0x268/0x269 | ||
43 | REC - 0x2dd | ||
44 | |||
45 | Values of ADC[0] tested in OF disassembly: 0x50, 0x96, 0xdc, 0x208, 0x384 | ||
46 | |||
47 | */ | ||
48 | |||
49 | void button_init_device(void) | ||
50 | { | ||
51 | /* Nothing to do */ | ||
52 | } | ||
53 | |||
54 | int button_read_device(void) | ||
55 | { | ||
56 | int btn = BUTTON_NONE; | ||
57 | int adc; | ||
58 | |||
59 | adc = adc_read(ADC_BUTTONS); | ||
60 | |||
61 | if (adc < 0x384) { | ||
62 | if (adc < 0x140) { | ||
63 | if (adc < 0x96) { | ||
64 | if (adc < 0x50) { | ||
65 | btn |= BUTTON_RIGHT; /* 0x00..0x4f */ | ||
66 | } else { | ||
67 | btn |= BUTTON_LEFT; /* 0x50..0x95 */ | ||
68 | } | ||
69 | } else { | ||
70 | if (adc < 0xe0) { | ||
71 | btn |= BUTTON_SELECT; /* 0x96..0xdf */ | ||
72 | } else { | ||
73 | btn |= BUTTON_UP; /* 0xe0..0x13f */ | ||
74 | } | ||
75 | } | ||
76 | } else { | ||
77 | if (adc < 0x208) { | ||
78 | if (adc < 0x1b0) { | ||
79 | btn |= BUTTON_DOWN; /* 0x140..0x1af */ | ||
80 | } else { | ||
81 | btn |= BUTTON_MODE; /* 0x1b0..0x207 */ | ||
82 | } | ||
83 | } else { | ||
84 | if (adc < 0x290) { | ||
85 | btn |= BUTTON_PRESET; /* 0x208..0x28f */ | ||
86 | } else { | ||
87 | btn |= BUTTON_REC; /* 0x290..0x383 */ | ||
88 | } | ||
89 | } | ||
90 | } | ||
91 | } | ||
92 | |||
93 | if (!(GPIOA & 0x2)) | ||
94 | btn |= BUTTON_HOLD; | ||
95 | |||
96 | if (!(GPIOA & 0x8000)) | ||
97 | btn |= BUTTON_POWERPLAY; | ||
98 | |||
99 | return btn; | ||
100 | } | ||
diff --git a/firmware/target/arm/tcc77x/logikdax/button-target.h b/firmware/target/arm/tcc77x/logikdax/button-target.h deleted file mode 100644 index 505fe438ed..0000000000 --- a/firmware/target/arm/tcc77x/logikdax/button-target.h +++ /dev/null | |||
@@ -1,45 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
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 | #define BUTTON_POWERPLAY 0x00000001 | ||
27 | #define BUTTON_MODE 0x00000002 | ||
28 | #define BUTTON_HOLD 0x00000004 | ||
29 | #define BUTTON_REC 0x00000008 | ||
30 | #define BUTTON_PRESET 0x00000010 | ||
31 | #define BUTTON_LEFT 0x00000020 | ||
32 | #define BUTTON_RIGHT 0x00000040 | ||
33 | #define BUTTON_UP 0x00000080 | ||
34 | #define BUTTON_DOWN 0x00000100 | ||
35 | #define BUTTON_SELECT 0x00000200 | ||
36 | |||
37 | #define BUTTON_MAIN (BUTTON_POWERPLAY|BUTTON_MODE|BUTTON_HOLD\ | ||
38 | |BUTTON_REC|BUTTON_PRESET|BUTTON_LEFT\ | ||
39 | |BUTTON_RIGHT|BUTTON_UP|BUTTON_DOWN|BUTTON_SELECT) | ||
40 | |||
41 | /* Software power-off */ | ||
42 | #define POWEROFF_BUTTON BUTTON_POWERPLAY | ||
43 | #define POWEROFF_COUNT 40 | ||
44 | |||
45 | #endif /* _BUTTON_TARGET_H_ */ | ||
diff --git a/firmware/target/arm/tcc77x/logikdax/power-logikdax.c b/firmware/target/arm/tcc77x/logikdax/power-logikdax.c deleted file mode 100644 index 840b02a2a5..0000000000 --- a/firmware/target/arm/tcc77x/logikdax/power-logikdax.c +++ /dev/null | |||
@@ -1,44 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2007 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 | #include "config.h" | ||
22 | #include "cpu.h" | ||
23 | #include <stdbool.h> | ||
24 | #include "kernel.h" | ||
25 | #include "system.h" | ||
26 | #include "power.h" | ||
27 | |||
28 | void power_init(void) | ||
29 | { | ||
30 | } | ||
31 | |||
32 | void ide_power_enable(bool on) | ||
33 | { | ||
34 | (void)on; | ||
35 | } | ||
36 | |||
37 | bool ide_powered(void) | ||
38 | { | ||
39 | return true; | ||
40 | } | ||
41 | |||
42 | void power_off(void) | ||
43 | { | ||
44 | } | ||