From: Haavard Skinnemoen Date: Thu, 31 Jul 2008 13:56:36 +0000 (+0200) Subject: avr32: Clean up HMATRIX code X-Git-Tag: v3.12-rc1~18758^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b47eb4092f81ae9fe406fa2c6719eaa9cd7a593c;p=kernel%2Fkernel-generic.git 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 --- diff --git a/arch/avr32/mach-at32ap/Makefile b/arch/avr32/mach-at32ap/Makefile index d5018e2..514c9a9 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 92bfb4d..e01dbe4 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