From b47232e86922d3f18167ac42b47ef3b89e9c2c1a Mon Sep 17 00:00:00 2001 From: Ulf Samuelsson Date: Thu, 29 Jan 2009 09:32:45 +0000 Subject: Add AVR32 support for linux-2.6.28.2 --- ....28.2-203-avr32-fix-arch-header-byteorder.patch | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 target/device/Atmel/arch-avr32/kernel-patches-2.6.28.2/linux-2.6.28.2-203-avr32-fix-arch-header-byteorder.patch (limited to 'target/device/Atmel/arch-avr32/kernel-patches-2.6.28.2/linux-2.6.28.2-203-avr32-fix-arch-header-byteorder.patch') diff --git a/target/device/Atmel/arch-avr32/kernel-patches-2.6.28.2/linux-2.6.28.2-203-avr32-fix-arch-header-byteorder.patch b/target/device/Atmel/arch-avr32/kernel-patches-2.6.28.2/linux-2.6.28.2-203-avr32-fix-arch-header-byteorder.patch new file mode 100644 index 000000000..ac990f9cd --- /dev/null +++ b/target/device/Atmel/arch-avr32/kernel-patches-2.6.28.2/linux-2.6.28.2-203-avr32-fix-arch-header-byteorder.patch @@ -0,0 +1,35 @@ +Index: linux-2.6.27.6/arch/avr32/include/asm/byteorder.h +=================================================================== +--- linux-2.6.27.6.orig/arch/avr32/include/asm/byteorder.h 2008-11-28 16:47:15.000000000 +0100 ++++ linux-2.6.27.6/arch/avr32/include/asm/byteorder.h 2008-11-28 16:47:31.000000000 +0100 +@@ -7,8 +7,9 @@ + #include + #include + +-#define __BIG_ENDIAN ++#define __BIG_ENDIAN 4321 + #define __SWAB_64_THRU_32__ ++#define __BYTEORDER_HAS_U64__ + + #ifdef __CHECKER__ + extern unsigned long __builtin_bswap_32(unsigned long x); +@@ -33,5 +34,5 @@ + #define __arch_swab32 __arch_swab32 + #endif + +-#include ++#include + #endif /* __ASM_AVR32_BYTEORDER_H */ +Index: linux-2.6.27.6/arch/avr32/mach-at32ap/include/mach/io.h +=================================================================== +--- linux-2.6.27.6.orig/arch/avr32/mach-at32ap/include/mach/io.h 2008-11-28 16:47:58.000000000 +0100 ++++ linux-2.6.27.6/arch/avr32/mach-at32ap/include/mach/io.h 2008-11-28 16:48:15.000000000 +0100 +@@ -1,7 +1,7 @@ + #ifndef __ASM_AVR32_ARCH_AT32AP_IO_H + #define __ASM_AVR32_ARCH_AT32AP_IO_H + +-#include ++#include + + #if defined(CONFIG_AP700X_32_BIT_SMC) + # define __swizzle_addr_b(addr) (addr ^ 3UL) -- cgit v1.2.3