1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2025-04-21 12:27:27 +03:00

clean-serial-c-into-drivers.patch

Move serial.c into drivers/serial-s3c24xx.c and qi-serial.h into include/serial-s3c24xx.h
making things a bit cleaner for being s3c24xx-specific.  This needed a lot of meddling
additionally, ending up with a new puts() callback that belongs in the board structure
and removal of the debug uart member, since the puts() action was the only user.

Also change serial init API name and function to only fix to 115kbps and adapt to
PCLK.

Signed-off-by: Andy Green <andy@openmoko.com>
This commit is contained in:
Andy Green
2008-11-28 10:16:36 +00:00
committed by Andy Green
parent 666089cd0a
commit 9eba09a86f
10 changed files with 99 additions and 88 deletions

View File

@@ -22,7 +22,6 @@
#define __QI_H__
#include <stdarg.h>
#include <qi-serial.h>
#include <qi-ctype.h>
#define u32 unsigned int
@@ -62,7 +61,6 @@ struct board_variant {
struct board_api {
const char * name;
int debug_serial_port;
int linux_machine_id;
unsigned long linux_mem_start;
unsigned long linux_mem_size;
@@ -70,6 +68,7 @@ struct board_api {
const struct board_variant const * (*get_board_variant)(void);
int (*is_this_board)(void);
void (*port_init)(void);
void (*putc)(char);
struct kernel_source kernel_source[8];
};