Rockchip rk27xx port initial commit. This is still work in progress.
[kugel-rb.git] / bootloader / rk27xx.c
blob37778db6dc9c592a4bd180c8b226022f4fb47f98
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"
18 extern int show_logo( void );
19 void main(void)
22 _backlight_init();
24 system_init();
25 kernel_init();
26 enable_irq();
28 lcd_init_device();
29 _backlight_on();
30 font_init();
31 lcd_setfont(FONT_SYSFIXED);
33 show_logo();
34 sleep(HZ*2);
36 while(1)
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);