From b47eb4092f81ae9fe406fa2c6719eaa9cd7a593c Mon Sep 17 00:00:00 2001 From: Haavard Skinnemoen Date: Thu, 31 Jul 2008 15:56:36 +0200 Subject: [PATCH] avr32: Clean up HMATRIX code Introduce a few helper functions for HMATRIX configuration and clean up the register definitions. Also add definitions for the HMATRIX master and slave IDs on the AT32AP700x chips. Also make the definitions in hmatrix.h available to board code by moving it to Signed-off-by: Haavard Skinnemoen --- arch/avr32/mach-at32ap/Makefile | 1 + arch/avr32/mach-at32ap/at32ap700x.c | 26 +-- arch/avr32/mach-at32ap/hmatrix.c | 88 +++++++++ arch/avr32/mach-at32ap/hmatrix.h | 182 ------------------ .../mach-at32ap/include/mach/at32ap700x.h | 29 +++ arch/avr32/mach-at32ap/include/mach/hmatrix.h | 55 ++++++ 6 files changed, 180 insertions(+), 201 deletions(-) create mode 100644 arch/avr32/mach-at32ap/hmatrix.c delete mode 100644 arch/avr32/mach-at32ap/hmatrix.h create mode 100644 arch/avr32/mach-at32ap/include/mach/hmatrix.h diff --git a/arch/avr32/mach-at32ap/Makefile b/arch/avr32/mach-at32ap/Makefile index d5018e2eed2..514c9a9b009 100644 --- a/arch/avr32/mach-at32ap/Makefile +++ b/arch/avr32/mach-at32ap/Makefile @@ -1,4 +1,5 @@ obj-y += pdc.o clock.o intc.o extint.o pio.o hsmc.o +obj-y += hmatrix.o obj-$(CONFIG_CPU_AT32AP700X) += at32ap700x.o pm-at32ap700x.o obj-$(CONFIG_CPU_FREQ_AT32AP) += cpufreq.o obj-$(CONFIG_PM) += pm.o diff --git a/arch/avr32/mach-at32ap/at32ap700x.c b/arch/avr32/mach-at32ap/at32ap700x.c index 92bfb4d8ae4..e01dbe4ebb4 100644 --- a/arch/avr32/mach-at32ap/at32ap700x.c +++ b/arch/avr32/mach-at32ap/at32ap700x.c @@ -22,13 +22,13 @@ #include #include +#include #include #include #include