diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2021-08-14 16:28:30 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2021-08-14 16:29:39 -0400 |
commit | 04fe77a4654d43bf4fe07831d25c8ab92f054b65 (patch) | |
tree | 85e5868961b42acf72d496af63c2bf8947a46ac3 /bootloader/tpj1022.c | |
parent | 786d06742a379df667b0fd14df0b2dbc045f312c (diff) | |
download | rockbox-04fe77a4654d43bf4fe07831d25c8ab92f054b65.tar.gz rockbox-04fe77a4654d43bf4fe07831d25c8ab92f054b65.zip |
Remove the (very) incomplete port for the Tatung TPJ-1102
It was barely even a stub, and hasn't seen any development since 2009
Change-Id: I0aa15d9a7b90ae8c771924d9f401380d4cc0fab9
Diffstat (limited to 'bootloader/tpj1022.c')
-rw-r--r-- | bootloader/tpj1022.c | 103 |
1 files changed, 0 insertions, 103 deletions
diff --git a/bootloader/tpj1022.c b/bootloader/tpj1022.c deleted file mode 100644 index 3590c7882d..0000000000 --- a/bootloader/tpj1022.c +++ /dev/null | |||
@@ -1,103 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2006 by Dave Chapman | ||
11 | * | ||
12 | * Based on Rockbox iriver bootloader by Linus Nielsen Feltzing | ||
13 | * | ||
14 | * This program is free software; you can redistribute it and/or | ||
15 | * modify it under the terms of the GNU General Public License | ||
16 | * as published by the Free Software Foundation; either version 2 | ||
17 | * of the License, or (at your option) any later version. | ||
18 | * | ||
19 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
20 | * KIND, either express or implied. | ||
21 | * | ||
22 | ****************************************************************************/ | ||
23 | #include "config.h" | ||
24 | |||
25 | #include <stdlib.h> | ||
26 | #include <stdio.h> | ||
27 | #include <string.h> | ||
28 | #include "cpu.h" | ||
29 | #include "system.h" | ||
30 | #include "lcd.h" | ||
31 | #include "kernel.h" | ||
32 | #include "thread.h" | ||
33 | #include "storage.h" | ||
34 | #include "file_internal.h" | ||
35 | #include "disk.h" | ||
36 | #include "font.h" | ||
37 | #include "panic.h" | ||
38 | #include "power.h" | ||
39 | #include "file.h" | ||
40 | #include "common.h" | ||
41 | |||
42 | void* main(void) | ||
43 | { | ||
44 | int i; | ||
45 | int rc; | ||
46 | int fd; | ||
47 | char buffer[80]; | ||
48 | unsigned char* framebuffer = (unsigned char*)0x11e00000; | ||
49 | |||
50 | #if 0 | ||
51 | lcd_init(); | ||
52 | font_init(); | ||
53 | |||
54 | printf("Hello World!"); | ||
55 | #endif | ||
56 | |||
57 | i=storage_init(); | ||
58 | |||
59 | filesystem_init(); | ||
60 | rc = disk_mount_all(); | ||
61 | |||
62 | #if 0 | ||
63 | /* Dump the flash */ | ||
64 | fd=open("/flash.bin",O_CREAT|O_RDWR, 0666); | ||
65 | write(fd,(char*)0,1024*1024); | ||
66 | close(fd); | ||
67 | #endif | ||
68 | |||
69 | #if 1 | ||
70 | /* Dump what may be the framebuffer */ | ||
71 | fd=open("/framebuffer.bin",O_CREAT|O_RDWR|O_TRUNC, 0666); | ||
72 | write(fd,framebuffer,220*176*4); | ||
73 | close(fd); | ||
74 | #endif | ||
75 | |||
76 | |||
77 | fd=open("/gpio.txt",O_CREAT|O_RDWR|O_TRUNC, 0666); | ||
78 | unsigned int gpio_a = GPIOA_INPUT_VAL; | ||
79 | unsigned int gpio_b = GPIOB_INPUT_VAL; | ||
80 | unsigned int gpio_c = GPIOC_INPUT_VAL; | ||
81 | unsigned int gpio_d = GPIOD_INPUT_VAL; | ||
82 | unsigned int gpio_e = GPIOE_INPUT_VAL; | ||
83 | unsigned int gpio_f = GPIOF_INPUT_VAL; | ||
84 | unsigned int gpio_g = GPIOG_INPUT_VAL; | ||
85 | unsigned int gpio_h = GPIOH_INPUT_VAL; | ||
86 | unsigned int gpio_i = GPIOI_INPUT_VAL; | ||
87 | unsigned int gpio_j = GPIOJ_INPUT_VAL; | ||
88 | unsigned int gpio_k = GPIOK_INPUT_VAL; | ||
89 | unsigned int gpio_l = GPIOL_INPUT_VAL; | ||
90 | |||
91 | snprintf(buffer, sizeof(buffer), "%02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x\n",gpio_a,gpio_b,gpio_c,gpio_d,gpio_e,gpio_f,gpio_g,gpio_h,gpio_i,gpio_j,gpio_k,gpio_l); | ||
92 | write(fd,buffer,strlen(buffer)+1); | ||
93 | close(fd); | ||
94 | |||
95 | /* Wait for FFWD button to be pressed */ | ||
96 | while((GPIOA_INPUT_VAL & 0x04) != 0); | ||
97 | |||
98 | |||
99 | /* Now reboot */ | ||
100 | DEV_RS |= 0x4; | ||
101 | |||
102 | return 0; | ||
103 | } | ||