mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-16 08:31:35 +08:00
nexus: Switch ZynqMP platforms to CGEM3
Similar to the UARTs, ZynqMP hardware platforms use the highest memory-mapped CGEM peripheral as the primary instance of that peripheral. This change allows operation on hardware as well as QEMU.
This commit is contained in:

committed by
Joel Sherrill

parent
b7a12cc8f9
commit
1d9f93cbaa
@@ -107,7 +107,14 @@ RTEMS_BSD_DRIVER_MMC;
|
|||||||
|
|
||||||
#include <bsp/irq.h>
|
#include <bsp/irq.h>
|
||||||
|
|
||||||
RTEMS_BSD_DRIVER_XILINX_ZYNQMP_CGEM0(ZYNQMP_IRQ_ETHERNET_0);
|
/* Qemu only applies user-mode networking to the first interface by default, so
|
||||||
|
* all 4 CGEM instances must be configured in the Qemu arguments using
|
||||||
|
* "-nic user,model=cadence_gem" for each nic.
|
||||||
|
*
|
||||||
|
* CGEM3 is used for LibBSD because all Zynq Ultrascale+ MPSoC dev boards treat
|
||||||
|
* the highest-mapped CGEM as the primary interface.
|
||||||
|
*/
|
||||||
|
RTEMS_BSD_DRIVER_XILINX_ZYNQMP_CGEM3(ZYNQMP_IRQ_ETHERNET_3);
|
||||||
RTEMS_BSD_DRIVER_E1000PHY;
|
RTEMS_BSD_DRIVER_E1000PHY;
|
||||||
|
|
||||||
#elif defined(LIBBSP_ARM_ATSAM_BSP_H)
|
#elif defined(LIBBSP_ARM_ATSAM_BSP_H)
|
||||||
|
Reference in New Issue
Block a user