diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2011-05-30 21:10:37 +0000 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2011-05-30 21:10:37 +0000 |
commit | 976a1699da373f01dabc9353b34aef261ebf740f (patch) | |
tree | 5f1649ceb51d603471e6b1cf5dcb5192626897d6 /bootloader/rk27xx.c | |
parent | 8a5a2b82fd2d35e3eb7afa8f0dc875e3874988bb (diff) | |
download | rockbox-976a1699da373f01dabc9353b34aef261ebf740f.tar.gz rockbox-976a1699da373f01dabc9353b34aef261ebf740f.zip |
Rockchip rk27xx port initial commit. This is still work in progress.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29935 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader/rk27xx.c')
-rw-r--r-- | bootloader/rk27xx.c | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/bootloader/rk27xx.c b/bootloader/rk27xx.c new file mode 100644 index 0000000000..37778db6dc --- /dev/null +++ b/bootloader/rk27xx.c | |||
@@ -0,0 +1,45 @@ | |||
1 | #include "config.h" | ||
2 | #include <stdlib.h> | ||
3 | #include <stdio.h> | ||
4 | #include <string.h> | ||
5 | #include "inttypes.h" | ||
6 | #include "string.h" | ||
7 | #include "cpu.h" | ||
8 | #include "system.h" | ||
9 | #include "lcd.h" | ||
10 | #include "kernel.h" | ||
11 | #include "thread.h" | ||
12 | #include "backlight.h" | ||
13 | #include "backlight-target.h" | ||
14 | #include "font.h" | ||
15 | #include "common.h" | ||
16 | #include "version.h" | ||
17 | |||
18 | extern int show_logo( void ); | ||
19 | void main(void) | ||
20 | { | ||
21 | |||
22 | _backlight_init(); | ||
23 | |||
24 | system_init(); | ||
25 | kernel_init(); | ||
26 | enable_irq(); | ||
27 | |||
28 | lcd_init_device(); | ||
29 | _backlight_on(); | ||
30 | font_init(); | ||
31 | lcd_setfont(FONT_SYSFIXED); | ||
32 | |||
33 | show_logo(); | ||
34 | sleep(HZ*2); | ||
35 | |||
36 | while(1) | ||
37 | { | ||
38 | reset_screen(); | ||
39 | printf("GPIOA: 0x%0x", GPIO_PADR); | ||
40 | printf("GPIOB: 0x%0x", GPIO_PBDR); | ||
41 | printf("GPIOC: 0x%0x", GPIO_PCDR); | ||
42 | printf("GPIOD: 0x%0x", GPIO_PDDR); | ||
43 | sleep(HZ/10); | ||
44 | } | ||
45 | } | ||