Skip to content

Commit

Permalink
platsupport, zynqmp: select bus off configuration
Browse files Browse the repository at this point in the history
The kernel can support using a newer petalinux version, which updates
the main bus to "axi" instead of "amba". The kernel presents a config
variable, which we check against to define the proper TTC paths.

Signed-off-by: Chris Guikema <[email protected]>
  • Loading branch information
chrisguikema committed Sep 13, 2023
1 parent dba244d commit 3c4a43f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libplatsupport/mach_include/zynq/platsupport/mach/timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,17 @@
#define IRQS_PER_TTC 3

#ifdef CONFIG_PLAT_ZYNQMP
#ifdef CONFIG_ZYNQMP_PETALINUX_AXI
#define TTC0_PATH "/axi/timer@ff110000"
#define TTC1_PATH "/axi/timer@ff120000"
#define TTC2_PATH "/axi/timer@ff130000"
#define TTC3_PATH "/axi/timer@ff140000"
#else
#define TTC0_PATH "/amba/timer@ff110000"
#define TTC1_PATH "/amba/timer@ff120000"
#define TTC2_PATH "/amba/timer@ff130000"
#define TTC3_PATH "/amba/timer@ff140000"
#endif /* CONFIG_ZYNQMP_PETALINUX_AXI */
#else
/* zynq7000 */
#define TTC0_PATH "/amba/timer@f8001000"
Expand Down

0 comments on commit 3c4a43f

Please sign in to comment.