Some cleanup in uart fixes.

This commit is contained in:
Amit Mahajan
2009-11-02 21:52:33 +05:30
parent 55eb6260c3
commit a41a8e0d93
3 changed files with 18 additions and 23 deletions

View File

@@ -1,15 +1,9 @@
#include <arch/pl011_uart.h>
/* TODO: May need to remove this */
struct pl011_uart uart;
void platform_init(void);
void platform_init(void)
{
uart.base = PL011_USR_BASE;
pl011_initialise(&uart);
}
struct pl011_uart uart = {
.base = PL011_USR_BASE,
};
/*
* Initialises the uart class data structures, and the device.
@@ -51,3 +45,9 @@ int pl011_initialise(struct pl011_uart * uart)
return 0;
}
void platform_init(void)
{
uart.base = PL011_USR_BASE;
pl011_initialise(&uart);
}