diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-07-15 19:40:55 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-07-24 21:20:13 +0000 |
commit | 092c340a2062fa98b7387fc5fd63578ddae7d0b6 (patch) | |
tree | 98ec96946eeb2ae709cb0528cc6998e21bb9b290 /apps/plugins/rockboy | |
parent | 17f7cc92c258bc456a27c3e7c5a19c9409851879 (diff) | |
download | rockbox-092c340a2062fa98b7387fc5fd63578ddae7d0b6.tar.gz rockbox-092c340a2062fa98b7387fc5fd63578ddae7d0b6.zip |
[1/4] Remove SH support and all archos targets
This removes all code specific to SH targets
Change-Id: I7980523785d2596e65c06430f4638eec74a06061
Diffstat (limited to 'apps/plugins/rockboy')
-rw-r--r-- | apps/plugins/rockboy/lcd.c | 153 | ||||
-rw-r--r-- | apps/plugins/rockboy/rockboy.c | 10 | ||||
-rw-r--r-- | apps/plugins/rockboy/sys_rockbox.c | 54 |
3 files changed, 3 insertions, 214 deletions
diff --git a/apps/plugins/rockboy/lcd.c b/apps/plugins/rockboy/lcd.c index e8d43f772a..143b8fdfa8 100644 --- a/apps/plugins/rockboy/lcd.c +++ b/apps/plugins/rockboy/lcd.c | |||
@@ -69,7 +69,7 @@ static void updatepatpix(void) ICODE_ATTR; | |||
69 | static void updatepatpix(void) | 69 | static void updatepatpix(void) |
70 | { | 70 | { |
71 | int i, j; | 71 | int i, j; |
72 | #if ((CONFIG_CPU != SH7034) && !defined(CPU_COLDFIRE)) | 72 | #if !defined(CPU_COLDFIRE) |
73 | int k, a, c; | 73 | int k, a, c; |
74 | #endif | 74 | #endif |
75 | byte *vram = lcd.vbank[0]; | 75 | byte *vram = lcd.vbank[0]; |
@@ -83,76 +83,7 @@ static void updatepatpix(void) | |||
83 | patdirty[i] = 0; | 83 | patdirty[i] = 0; |
84 | for (j = 0; j < 8; j++) | 84 | for (j = 0; j < 8; j++) |
85 | { | 85 | { |
86 | #if CONFIG_CPU == SH7034 | 86 | #if defined(CPU_COLDFIRE) |
87 | asm volatile ( | ||
88 | "mov.w @%2,r1 \n" | ||
89 | "swap.b r1,r2 \n" | ||
90 | |||
91 | "mov #0,r0 \n" | ||
92 | "shlr r1 \n" | ||
93 | "rotcl r0 \n" | ||
94 | "shlr r2 \n" | ||
95 | "rotcl r0 \n" | ||
96 | "mov.b r0,@%0 \n" | ||
97 | "mov.b r0,@(7,%1) \n" | ||
98 | "mov #0,r0 \n" | ||
99 | "shlr r1 \n" | ||
100 | "rotcl r0 \n" | ||
101 | "shlr r2 \n" | ||
102 | "rotcl r0 \n" | ||
103 | "mov.b r0,@(1,%0) \n" | ||
104 | "mov.b r0,@(6,%1) \n" | ||
105 | "mov #0,r0 \n" | ||
106 | "shlr r1 \n" | ||
107 | "rotcl r0 \n" | ||
108 | "shlr r2 \n" | ||
109 | "rotcl r0 \n" | ||
110 | "mov.b r0,@(2,%0) \n" | ||
111 | "mov.b r0,@(5,%1) \n" | ||
112 | "mov #0,r0 \n" | ||
113 | "shlr r1 \n" | ||
114 | "rotcl r0 \n" | ||
115 | "shlr r2 \n" | ||
116 | "rotcl r0 \n" | ||
117 | "mov.b r0,@(3,%0) \n" | ||
118 | "mov.b r0,@(4,%1) \n" | ||
119 | "mov #0,r0 \n" | ||
120 | "shlr r1 \n" | ||
121 | "rotcl r0 \n" | ||
122 | "shlr r2 \n" | ||
123 | "rotcl r0 \n" | ||
124 | "mov.b r0,@(4,%0) \n" | ||
125 | "mov.b r0,@(3,%1) \n" | ||
126 | "mov #0,r0 \n" | ||
127 | "shlr r1 \n" | ||
128 | "rotcl r0 \n" | ||
129 | "shlr r2 \n" | ||
130 | "rotcl r0 \n" | ||
131 | "mov.b r0,@(5,%0) \n" | ||
132 | "mov.b r0,@(2,%1) \n" | ||
133 | "mov #0,r0 \n" | ||
134 | "shlr r1 \n" | ||
135 | "rotcl r0 \n" | ||
136 | "shlr r2 \n" | ||
137 | "rotcl r0 \n" | ||
138 | "mov.b r0,@(6,%0) \n" | ||
139 | "mov.b r0,@(1,%1) \n" | ||
140 | "mov #0,r0 \n" | ||
141 | "shlr r1 \n" | ||
142 | "rotcl r0 \n" | ||
143 | "shlr r2 \n" | ||
144 | "rotcl r0 \n" | ||
145 | "mov.b r0,@(7,%0) \n" | ||
146 | "mov.b r0,@%1 \n" | ||
147 | : /* outputs */ | ||
148 | : /* inputs */ | ||
149 | /* %0 */ "r"(patpix[i+1024][j]), | ||
150 | /* %1 */ "r"(patpix[i][j]), | ||
151 | /* %2 */ "r"(&vram[(i<<4)|(j<<1)]) | ||
152 | : /* clobbers */ | ||
153 | "r0", "r1", "r2" | ||
154 | ); | ||
155 | #elif defined(CPU_COLDFIRE) | ||
156 | asm volatile ( | 87 | asm volatile ( |
157 | "move.b (%2),%%d2 \n" | 88 | "move.b (%2),%%d2 \n" |
158 | "move.b (1,%2),%%d1 \n" | 89 | "move.b (1,%2),%%d1 \n" |
@@ -229,85 +160,7 @@ static void updatepatpix(void) | |||
229 | patpix[i+1024][j][7-k]; | 160 | patpix[i+1024][j][7-k]; |
230 | #endif | 161 | #endif |
231 | } | 162 | } |
232 | #if CONFIG_CPU == SH7034 | 163 | #if defined(CPU_COLDFIRE) |
233 | asm volatile ( | ||
234 | "mov.l @%0,r0 \n" | ||
235 | "mov.l @(4,%0),r1 \n" | ||
236 | "mov.l r0,@(56,%1) \n" | ||
237 | "mov.l r1,@(60,%1) \n" | ||
238 | "mov.l @(8,%0),r0 \n" | ||
239 | "mov.l @(12,%0),r1 \n" | ||
240 | "mov.l r0,@(48,%1) \n" | ||
241 | "mov.l r1,@(52,%1) \n" | ||
242 | "mov.l @(16,%0),r0 \n" | ||
243 | "mov.l @(20,%0),r1 \n" | ||
244 | "mov.l r0,@(40,%1) \n" | ||
245 | "mov.l r1,@(44,%1) \n" | ||
246 | "mov.l @(24,%0),r0 \n" | ||
247 | "mov.l @(28,%0),r1 \n" | ||
248 | "mov.l r0,@(32,%1) \n" | ||
249 | "mov.l r1,@(36,%1) \n" | ||
250 | "mov.l @(32,%0),r0 \n" | ||
251 | "mov.l @(36,%0),r1 \n" | ||
252 | "mov.l r0,@(24,%1) \n" | ||
253 | "mov.l r1,@(28,%1) \n" | ||
254 | "mov.l @(40,%0),r0 \n" | ||
255 | "mov.l @(44,%0),r1 \n" | ||
256 | "mov.l r0,@(16,%1) \n" | ||
257 | "mov.l r1,@(20,%1) \n" | ||
258 | "mov.l @(48,%0),r0 \n" | ||
259 | "mov.l @(52,%0),r1 \n" | ||
260 | "mov.l r0,@(8,%1) \n" | ||
261 | "mov.l r1,@(12,%1) \n" | ||
262 | "mov.l @(56,%0),r0 \n" | ||
263 | "mov.l @(60,%0),r1 \n" | ||
264 | "mov.l r0,@%1 \n" | ||
265 | "mov.l r1,@(4,%1) \n" | ||
266 | |||
267 | "add %2,%0 \n" | ||
268 | "add %2,%1 \n" | ||
269 | |||
270 | "mov.l @%0,r0 \n" | ||
271 | "mov.l @(4,%0),r1 \n" | ||
272 | "mov.l r0,@(56,%1) \n" | ||
273 | "mov.l r1,@(60,%1) \n" | ||
274 | "mov.l @(8,%0),r0 \n" | ||
275 | "mov.l @(12,%0),r1 \n" | ||
276 | "mov.l r0,@(48,%1) \n" | ||
277 | "mov.l r1,@(52,%1) \n" | ||
278 | "mov.l @(16,%0),r0 \n" | ||
279 | "mov.l @(20,%0),r1 \n" | ||
280 | "mov.l r0,@(40,%1) \n" | ||
281 | "mov.l r1,@(44,%1) \n" | ||
282 | "mov.l @(24,%0),r0 \n" | ||
283 | "mov.l @(28,%0),r1 \n" | ||
284 | "mov.l r0,@(32,%1) \n" | ||
285 | "mov.l r1,@(36,%1) \n" | ||
286 | "mov.l @(32,%0),r0 \n" | ||
287 | "mov.l @(36,%0),r1 \n" | ||
288 | "mov.l r0,@(24,%1) \n" | ||
289 | "mov.l r1,@(28,%1) \n" | ||
290 | "mov.l @(40,%0),r0 \n" | ||
291 | "mov.l @(44,%0),r1 \n" | ||
292 | "mov.l r0,@(16,%1) \n" | ||
293 | "mov.l r1,@(20,%1) \n" | ||
294 | "mov.l @(48,%0),r0 \n" | ||
295 | "mov.l @(52,%0),r1 \n" | ||
296 | "mov.l r0,@(8,%1) \n" | ||
297 | "mov.l r1,@(12,%1) \n" | ||
298 | "mov.l @(56,%0),r0 \n" | ||
299 | "mov.l @(60,%0),r1 \n" | ||
300 | "mov.l r0,@%1 \n" | ||
301 | "mov.l r1,@(4,%1) \n" | ||
302 | : /* outputs */ | ||
303 | : /* inputs */ | ||
304 | /* %0 */ "r"(patpix[i][0]), | ||
305 | /* %1 */ "r"(patpix[i+2048][0]), | ||
306 | /* %2 */ "r"(1024*64) | ||
307 | : /* clobbers */ | ||
308 | "r0", "r1" | ||
309 | ); | ||
310 | #elif defined(CPU_COLDFIRE) | ||
311 | asm volatile ( | 164 | asm volatile ( |
312 | "movem.l (%0),%%d0-%%d3 \n" | 165 | "movem.l (%0),%%d0-%%d3 \n" |
313 | "move.l %%d0,%%d4 \n" | 166 | "move.l %%d0,%%d4 \n" |
diff --git a/apps/plugins/rockboy/rockboy.c b/apps/plugins/rockboy/rockboy.c index f188dc1e24..57f0c95ea6 100644 --- a/apps/plugins/rockboy/rockboy.c +++ b/apps/plugins/rockboy/rockboy.c | |||
@@ -110,16 +110,6 @@ static void setoptions (void) | |||
110 | options.SELECT = BUTTON_SELECT; | 110 | options.SELECT = BUTTON_SELECT; |
111 | options.MENU = BUTTON_OFF; | 111 | options.MENU = BUTTON_OFF; |
112 | 112 | ||
113 | #elif CONFIG_KEYPAD == RECORDER_PAD | ||
114 | options.UP = BUTTON_UP; | ||
115 | options.DOWN = BUTTON_DOWN; | ||
116 | |||
117 | options.A = BUTTON_F1; | ||
118 | options.B = BUTTON_F2; | ||
119 | options.START = BUTTON_F3; | ||
120 | options.SELECT = BUTTON_PLAY; | ||
121 | options.MENU = BUTTON_OFF; | ||
122 | |||
123 | #elif CONFIG_KEYPAD == IPOD_4G_PAD | 113 | #elif CONFIG_KEYPAD == IPOD_4G_PAD |
124 | options.UP = BUTTON_MENU; | 114 | options.UP = BUTTON_MENU; |
125 | options.DOWN = BUTTON_PLAY; | 115 | options.DOWN = BUTTON_PLAY; |
diff --git a/apps/plugins/rockboy/sys_rockbox.c b/apps/plugins/rockboy/sys_rockbox.c index 3a1f3c6760..e27cbbe3e7 100644 --- a/apps/plugins/rockboy/sys_rockbox.c +++ b/apps/plugins/rockboy/sys_rockbox.c | |||
@@ -91,9 +91,6 @@ void ev_poll(void) | |||
91 | if (rb->button_hold()&~holdbutton) | 91 | if (rb->button_hold()&~holdbutton) |
92 | fb.mode=(fb.mode+1)%4; | 92 | fb.mode=(fb.mode+1)%4; |
93 | holdbutton=rb->button_hold(); | 93 | holdbutton=rb->button_hold(); |
94 | #elif CONFIG_KEYPAD == RECORDER_PAD | ||
95 | if (pressed & BUTTON_ON) | ||
96 | fb.mode=(fb.mode+1)%4; | ||
97 | #endif | 94 | #endif |
98 | 95 | ||
99 | #ifdef HAVE_WHEEL_POSITION | 96 | #ifdef HAVE_WHEEL_POSITION |
@@ -220,12 +217,10 @@ void ev_poll(void) | |||
220 | #else | 217 | #else |
221 | if(pressed & options.MENU) { | 218 | if(pressed & options.MENU) { |
222 | #endif | 219 | #endif |
223 | #if (CONFIG_KEYPAD != RECORDER_PAD) | ||
224 | #ifdef HAVE_WHEEL_POSITION | 220 | #ifdef HAVE_WHEEL_POSITION |
225 | rb->wheel_send_events(true); | 221 | rb->wheel_send_events(true); |
226 | #endif | 222 | #endif |
227 | if (do_user_menu() == USER_MENU_QUIT) | 223 | if (do_user_menu() == USER_MENU_QUIT) |
228 | #endif | ||
229 | { | 224 | { |
230 | die(""); | 225 | die(""); |
231 | cleanshut=1; | 226 | cleanshut=1; |
@@ -300,54 +295,6 @@ void vid_update(int scanline) | |||
300 | balance += LCD_WIDTH; | 295 | balance += LCD_WIDTH; |
301 | if (balance > 0) | 296 | if (balance > 0) |
302 | { | 297 | { |
303 | #if (CONFIG_CPU == SH7034) && !defined(SIMULATOR) | ||
304 | asm volatile ( | ||
305 | "mov.b @%0,r0 \n" | ||
306 | "add %1,%0 \n" | ||
307 | "tst #0x02, r0 \n" /* ~bit 1 */ | ||
308 | "rotcr r1 \n" | ||
309 | "mov.b @%0,r0 \n" | ||
310 | "add %1,%0 \n" | ||
311 | "tst #0x02, r0 \n" /* ~bit 1 */ | ||
312 | "rotcr r1 \n" | ||
313 | "mov.b @%0,r0 \n" | ||
314 | "add %1,%0 \n" | ||
315 | "tst #0x02, r0 \n" /* ~bit 1 */ | ||
316 | "rotcr r1 \n" | ||
317 | "mov.b @%0,r0 \n" | ||
318 | "add %1,%0 \n" | ||
319 | "tst #0x02, r0 \n" /* ~bit 1 */ | ||
320 | "rotcr r1 \n" | ||
321 | "mov.b @%0,r0 \n" | ||
322 | "add %1,%0 \n" | ||
323 | "tst #0x02, r0 \n" /* ~bit 1 */ | ||
324 | "rotcr r1 \n" | ||
325 | "mov.b @%0,r0 \n" | ||
326 | "add %1,%0 \n" | ||
327 | "tst #0x02, r0 \n" /* ~bit 1 */ | ||
328 | "rotcr r1 \n" | ||
329 | "mov.b @%0,r0 \n" | ||
330 | "add %1,%0 \n" | ||
331 | "tst #0x02, r0 \n" /* ~bit 1 */ | ||
332 | "rotcr r1 \n" | ||
333 | "mov.b @%0,r0 \n" | ||
334 | "add %1,%0 \n" | ||
335 | "tst #0x02, r0 \n" /* ~bit 1 */ | ||
336 | "rotcr r1 \n" | ||
337 | |||
338 | "shlr16 r1 \n" | ||
339 | "shlr8 r1 \n" | ||
340 | "not r1,r1 \n" /* account for negated bits */ | ||
341 | "mov.b r1,@%2 \n" | ||
342 | : /* outputs */ | ||
343 | : /* inputs */ | ||
344 | /* %0 */ "r"(scan.buf[0] + cnt), | ||
345 | /* %1 */ "r"(256), /* scan.buf line length */ | ||
346 | /* %2 */ "r"(frameb++) | ||
347 | : /* clobbers */ | ||
348 | "r0", "r1" | ||
349 | ); | ||
350 | #else | ||
351 | register unsigned scrbyte = 0; | 298 | register unsigned scrbyte = 0; |
352 | if (scan.buf[0][cnt] & 0x02) scrbyte |= 0x01; | 299 | if (scan.buf[0][cnt] & 0x02) scrbyte |= 0x01; |
353 | if (scan.buf[1][cnt] & 0x02) scrbyte |= 0x02; | 300 | if (scan.buf[1][cnt] & 0x02) scrbyte |= 0x02; |
@@ -358,7 +305,6 @@ void vid_update(int scanline) | |||
358 | if (scan.buf[6][cnt] & 0x02) scrbyte |= 0x40; | 305 | if (scan.buf[6][cnt] & 0x02) scrbyte |= 0x40; |
359 | if (scan.buf[7][cnt] & 0x02) scrbyte |= 0x80; | 306 | if (scan.buf[7][cnt] & 0x02) scrbyte |= 0x80; |
360 | *(frameb++) = scrbyte; | 307 | *(frameb++) = scrbyte; |
361 | #endif | ||
362 | balance -= 160; | 308 | balance -= 160; |
363 | } | 309 | } |
364 | cnt ++; | 310 | cnt ++; |