Ignore:
Timestamp:
Jan 4, 2020, 7:50:46 PM (3 months ago)
Author:
G S Niteesh <gsnb.gn@…>
Branches:
master
Children:
5e7b3c65
Parents:
eca25ef
git-author:
G S Niteesh <gsnb.gn@…> (01/04/20 19:50:46)
git-committer:
Christian Mauderer <christian.mauderer@…> (01/07/20 17:21:16)
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/arm/raspberrypi/start/bspstart.c

    reca25ef r362cf319  
    2424#include <bsp/raspberrypi.h>
    2525#include <bsp/vc.h>
     26
     27#include <libfdt.h>
    2628
    2729static const struct {
     
    8789#define NUMOF(_s) (sizeof(_s) / sizeof(_s[0]))
    8890
     91void *raspberrypi_get_reg_of_node(const void *fdt, int node)
     92{
     93  int len;
     94  const uint32_t *val;
     95
     96  val = fdt_getprop(fdt, node, "reg", &len);
     97  if (val == NULL || len < 4) {
     98    return NULL;
     99  }
     100
     101  return (BUS_TO_PHY((void *) fdt32_to_cpu(val[0])));
     102}
     103
    89104void bsp_start(void)
    90105{
Note: See TracChangeset for help on using the changeset viewer.