1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-01 12:38:27 +02:00

delete some commend and change ubrdiv_var inner serial_init funtion

This commit is contained in:
xiangfu 2008-08-16 09:51:37 -04:00
parent b8407950d8
commit 7c0e35e1a2
4 changed files with 6 additions and 20 deletions

View File

@ -104,7 +104,7 @@
#define rGPJUP (*(volatile unsigned *)0x560000d8) //Port J data #define rGPJUP (*(volatile unsigned *)0x560000d8) //Port J data
void port_init(void); void port_init(void);
void serial_init (const int ubrdiv_val,const int uart); void serial_init (const int uart);
void serial_putc (const int uart,const char c); void serial_putc (const int uart,const char c);
int printk(const char *fmt, ...); int printk(const char *fmt, ...);
int puts(const char *string); int puts(const char *string);

View File

@ -23,8 +23,9 @@
#include "blink_led.h" #include "blink_led.h"
#include "kboot.h" #include "kboot.h"
void serial_init (const int ubrdiv_val,const int uart) void serial_init (const int uart)
{ {
int ubrdiv_val = 0x11;
switch(uart) switch(uart)
{ {
case UART0: case UART0:

View File

@ -89,8 +89,6 @@ start_code:
# define UPLLCON 0x4c000008 # define UPLLCON 0x4c000008
# define MPLLCON_val ((142 << 12) + (7 << 4) + 1) # define MPLLCON_val ((142 << 12) + (7 << 4) + 1)
# define UPLLCON_val (( 88 << 12) + (8 << 4) + 2) # define UPLLCON_val (( 88 << 12) + (8 << 4) + 2)
/* # define MPLLCON_val ((0x7d << 12) + (0x2 << 4) + 0x1)
# define UPLLCON_val ((0x38 << 12) + (0x2 << 4) + 0x2) */
ldr r0, =UPLLCON ldr r0, =UPLLCON
ldr r1, =UPLLCON_val ldr r1, =UPLLCON_val
@ -126,19 +124,6 @@ start_code:
ldr r1, =0x2afaaa ldr r1, =0x2afaaa
str r1, [r0] str r1, [r0]
/* init uart0 */
/* ldr r0, =0x50000000
mov r1, #0x03
str r1, [r0]
ldr r1, =0x245
str r1, [r0, #0x04]
mov r1, #0x00
str r1, [r0, #0x08]
mov r1, #0x00
str r1, [r0, #0x0c]
mov r1, #0x7
str r1, [r0, #0x28] */
bl cpu_init_crit bl cpu_init_crit
/* reset nand controller, or it is dead to us */ /* reset nand controller, or it is dead to us */

View File

@ -155,7 +155,7 @@ void start_kboot(void)
TEXT_BASE); TEXT_BASE);
port_init(); port_init();
serial_init(0x11, UART2); serial_init(UART2);
puts("Openmoko KBOOT "stringify2(BUILD_HOST)" " puts("Openmoko KBOOT "stringify2(BUILD_HOST)" "
stringify2(BUILD_VERSION)" " stringify2(BUILD_VERSION)" "