mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-25 17:07:31 +02:00
delete some commend and change ubrdiv_var inner serial_init funtion
This commit is contained in:
parent
b8407950d8
commit
7c0e35e1a2
@ -104,7 +104,7 @@
|
||||
#define rGPJUP (*(volatile unsigned *)0x560000d8) //Port J data
|
||||
|
||||
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);
|
||||
int printk(const char *fmt, ...);
|
||||
int puts(const char *string);
|
||||
|
@ -23,8 +23,9 @@
|
||||
#include "blink_led.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)
|
||||
{
|
||||
case UART0:
|
||||
|
@ -89,8 +89,6 @@ start_code:
|
||||
# define UPLLCON 0x4c000008
|
||||
# define MPLLCON_val ((142 << 12) + (7 << 4) + 1)
|
||||
# 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 r1, =UPLLCON_val
|
||||
@ -126,19 +124,6 @@ start_code:
|
||||
ldr r1, =0x2afaaa
|
||||
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
|
||||
|
||||
/* reset nand controller, or it is dead to us */
|
||||
|
@ -155,7 +155,7 @@ void start_kboot(void)
|
||||
TEXT_BASE);
|
||||
|
||||
port_init();
|
||||
serial_init(0x11, UART2);
|
||||
serial_init(UART2);
|
||||
|
||||
puts("Openmoko KBOOT "stringify2(BUILD_HOST)" "
|
||||
stringify2(BUILD_VERSION)" "
|
||||
|
Loading…
Reference in New Issue
Block a user