Ignore:
Timestamp:
09/28/17 08:03:44 (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
9db9024
Parents:
7e195e66
git-author:
Sebastian Huber <sebastian.huber@…> (09/28/17 08:03:44)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/02/17 11:40:56)
Message:

bsp/imx: Add imx_get_reg_of_node()

Update #3090.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/imx/startup/bspstart.c

    r7e195e66 rce28d601  
    2323
    2424#define MAGIC_IRQ_OFFSET 32
     25
     26void *imx_get_reg_of_node(const void *fdt, int node)
     27{
     28  int len;
     29  const uint32_t *val;
     30
     31  val = fdt_getprop(fdt, node, "reg", &len);
     32  if (val == NULL || len < 4) {
     33    return NULL;
     34  }
     35
     36  return (void *) fdt32_to_cpu(val[0]);
     37}
    2538
    2639rtems_vector_number imx_get_irq_of_node(
Note: See TracChangeset for help on using the changeset viewer.