Changeset 8f870a3 in rtems-libbsd


Ignore:
Timestamp:
Jun 25, 2021, 6:43:28 PM (3 months ago)
Author:
Gedare Bloom <gedare@…>
Branches:
master
Children:
d36d545
Parents:
2c1f611
git-author:
Gedare Bloom <gedare@…> (06/25/21 18:43:28)
git-committer:
Gedare Bloom <gedare@…> (06/25/21 19:02:38)
Message:

aarch64/nexus: add GEM definitions for Versal

Location:
rtemsbsd/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/include/bsp/nexus-devices.h

    r2c1f611 r8f870a3  
    116116RTEMS_BSD_DRIVER_E1000PHY;
    117117
     118#elif defined(LIBBSP_AARCH64_XILINX_VERSAL_BSP_H)
     119
     120#include <bsp/irq.h>
     121
     122RTEMS_BSD_DRIVER_XILINX_VERSAL_GEM0(VERSAL_IRQ_ETHERNET_0);
     123RTEMS_BSD_DRIVER_E1000PHY;
     124
    118125#elif defined(LIBBSP_ARM_ATSAM_BSP_H)
    119126
  • rtemsbsd/include/machine/rtems-bsd-nexus-bus.h

    r2c1f611 r8f870a3  
    410410    RTEMS_BSD_DRIVER_XILINX_ZYNQ_CGEM(3, 0xff0e0000, _irq)
    411411#endif /* RTEMS_BSD_DRIVER_XILINX_ZYNQMP_CGEM3 */
     412/*
     413 * Versal has a similar GEM as the CGEM. This should work for now.
     414 */
     415#if !defined(RTEMS_BSD_DRIVER_XILINX_VERSAL_GEM0)
     416  #define RTEMS_BSD_DRIVER_XILINX_VERSAL_GEM0(_irq)                \
     417    RTEMS_BSD_DRIVER_XILINX_ZYNQ_CGEM(0, 0xff0c0000, _irq)
     418#endif /* RTEMS_BSD_DRIVER_XILINX_VERSAL_GEM0 */
     419#if !defined(RTEMS_BSD_DRIVER_XILINX_VERSAL_GEM1)
     420  #define RTEMS_BSD_DRIVER_XILINX_VERSAL_GEM1(_irq)       \
     421    RTEMS_BSD_DRIVER_XILINX_ZYNQ_CGEM(1, 0xff0d0000, _irq)
     422#endif /* RTEMS_BSD_DRIVER_XILINX_VERSAL_GEM1 */
    412423
    413424/*
Note: See TracChangeset for help on using the changeset viewer.