Changeset 8854a2b5 in rtems


Ignore:
Timestamp:
Feb 10, 2020, 9:35:11 AM (5 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
c561bf4c
Parents:
b2ddf4f
git-author:
Sebastian Huber <sebastian.huber@…> (02/10/20 09:35:11)
git-committer:
Christian Mauderer <christian.mauderer@…> (02/11/20 08:17:02)
Message:

bsp/imx: Avoid hard-coded GIC base address

Update #3869.

Location:
bsps/arm/imx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bsps/arm/imx/include/bsp.h

    rb2ddf4f r8854a2b5  
    4848#endif /* __cplusplus */
    4949
    50 #define BSP_ARM_GIC_DIST_BASE 0x31001000
     50extern uintptr_t imx_gic_dist_base;
    5151
    52 #define BSP_ARM_GIC_CPUIF_BASE 0x31002000
     52#define BSP_ARM_GIC_DIST_BASE imx_gic_dist_base
     53
     54#define BSP_ARM_GIC_CPUIF_BASE (BSP_ARM_GIC_DIST_BASE + 0x1000)
    5355
    5456#define BSP_ARM_A9MPCORE_GT_BASE 0
  • bsps/arm/imx/start/bspstart.c

    rb2ddf4f r8854a2b5  
    8383}
    8484
     85uintptr_t imx_gic_dist_base;
     86
     87static void imx_find_gic(const void *fdt)
     88{
     89  int node;
     90
     91  node = fdt_path_offset(fdt, "/interrupt-controller");
     92  imx_gic_dist_base = (uintptr_t) imx_get_reg_of_node(fdt, node);
     93}
     94
    8595void bsp_start(void)
    8696{
     97  imx_find_gic(bsp_fdt_get());
    8798  bsp_interrupt_initialize();
    8899  rtems_cache_coherent_add_area(
Note: See TracChangeset for help on using the changeset viewer.