forked from Imagelibrary/rtems
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:
committed by
Christian Mauderer
parent
eca25efe27
commit
362cf319d4
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user