[PATCH] ARM: at91: remove AT32AP7000 (AVR32) remnants

Alexander Shiyan eagle.alexander923 at gmail.com
Thu Jun 19 06:37:30 PDT 2025


barebox does not support the AVR32-based AT32AP7000 platform,
so lets delete unused cpu_is_at32ap7000() macro and its comment.

Signed-off-by: Alexander Shiyan <eagle.alexander923 at gmail.com>
---
 drivers/video/atmel_lcdfb_core.c | 3 +--
 include/mach/at91/cpu.h          | 5 -----
 2 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/drivers/video/atmel_lcdfb_core.c b/drivers/video/atmel_lcdfb_core.c
index 002ddb8d16..d7f33bdb4f 100644
--- a/drivers/video/atmel_lcdfb_core.c
+++ b/drivers/video/atmel_lcdfb_core.c
@@ -409,8 +409,7 @@ static int lcdfb_pdata_init(struct device *dev,
 				   !cpu_is_at91sam9g45es();
 	sinfo->have_intensity_bit = pdata->have_intensity_bit;
 	sinfo->have_hozval = cpu_is_at91sam9261() ||
-			     cpu_is_at91sam9g10() ||
-			     cpu_is_at32ap7000();
+			     cpu_is_at91sam9g10();
 
 	info = &sinfo->info;
 	info->modes.modes = pdata->mode_list;
diff --git a/include/mach/at91/cpu.h b/include/mach/at91/cpu.h
index ca85e8be6e..cd72e187d5 100644
--- a/include/mach/at91/cpu.h
+++ b/include/mach/at91/cpu.h
@@ -301,11 +301,6 @@ static inline int at91_soc_is_detected(void)
 #define cpu_is_sama5d44()	(0)
 #endif
 
-/*
- * Since this is ARM, we will never run on any AVR32 CPU. But these
- * definitions may reduce clutter in common drivers.
- */
-#define cpu_is_at32ap7000()	(0)
 #endif /* __ASSEMBLY__ */
 
 #endif /* __MACH_CPU_H__ */
-- 
2.38.2




More information about the barebox mailing list