bsp/raspberrypi: Updated the console API.

Replaces the legacy termios API with new termios API (#3034)
Replaces the custom PL011 serial driver with RTEMS arm-pl011.
Update #3034
This commit is contained in:
G S Niteesh
2020-01-05 01:20:46 +05:30
committed by Christian Mauderer
parent eca25efe27
commit 362cf319d4
10 changed files with 196 additions and 402 deletions

View File

@@ -24,6 +24,8 @@
#include <bsp/raspberrypi.h>
#include <bsp/vc.h>
#include <libfdt.h>
static const struct {
uint32_t code;
const char* label;
@@ -86,6 +88,19 @@ static const char* rpi_mem[] =
#define NUMOF(_s) (sizeof(_s) / sizeof(_s[0]))
void *raspberrypi_get_reg_of_node(const void *fdt, int node)
{
int len;
const uint32_t *val;
val = fdt_getprop(fdt, node, "reg", &len);
if (val == NULL || len < 4) {
return NULL;
}
return (BUS_TO_PHY((void *) fdt32_to_cpu(val[0])));
}
void bsp_start(void)
{
bcm2835_get_board_spec_entries spec = { 0 };