[PATCH 2/2] EDAC/altera: Use an enum to identify the platform variant
From: Rounak Das
Date: Wed Jul 29 2026 - 16:54:06 EST
In preparation for Agilex5 support the driver needs to distinguish
more than Stratix10 versus everything else. Replace the defines with
an enum. SOCFPGA_A10 is zero so the Arria10 match entry, which has no
match data, maps to it naturally.
Signed-off-by: Rounak Das <rounakdas2025@xxxxxxxxx>
---
drivers/edac/altera_edac.h | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/edac/altera_edac.h b/drivers/edac/altera_edac.h
index 30e35da7eb6a..79b51f051183 100644
--- a/drivers/edac/altera_edac.h
+++ b/drivers/edac/altera_edac.h
@@ -372,8 +372,11 @@ enum altr_agilex5_irq_idx {
#define ECC_READ_EOVR 0x2
#define ECC_READ_EDOVR 0x3
-#define SOCFPGA_S10 0x1
-#define SOCFPGA_AGILEX5 0x2
+enum altr_socfpga_platform {
+ SOCFPGA_A10,
+ SOCFPGA_S10,
+ SOCFPGA_AGILEX5,
+};
struct altr_edac_device_dev;
--
2.50.1 (Apple Git-155)