mirror of
https://github.com/drasko/codezero.git
synced 2026-02-28 17:53:13 +01:00
Some cleanup in uart fixes.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user