summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-11-29 20:45:23 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2011-11-29 20:45:23 +0100
commite0f4fb2c982d66210dfd5ffaf92912bf1c6c6586 (patch)
tree6095eff90c4f335e47dc2454be6edc671dfe5e1b /arch
parent97e0b488a94c6f8c9bac5100b0f8542264d555be (diff)
parent6fa8c93a5ecefe4effa0e0425441a8ff6b2ce6ab (diff)
downloadbarebox-e0f4fb2c982d66210dfd5ffaf92912bf1c6c6586.tar.gz
barebox-e0f4fb2c982d66210dfd5ffaf92912bf1c6c6586.tar.xz
Merge branch 'master' into next
Conflicts: drivers/ata/disk_drive.c Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/boards/freescale-mx53-loco/board.c2
-rw-r--r--arch/arm/boards/mini2440/config.h9
-rw-r--r--arch/arm/boards/mini2440/mini2440.c3
-rw-r--r--arch/arm/configs/pcm043_defconfig1
-rw-r--r--arch/arm/mach-imx/nand.c2
-rw-r--r--arch/nios2/include/asm/unaligned.h15
-rw-r--r--arch/x86/boot/pmjump.S3
-rw-r--r--arch/x86/include/asm/types.h2
-rw-r--r--arch/x86/include/asm/unaligned.h14
-rw-r--r--arch/x86/lib/traveler.S11
10 files changed, 49 insertions, 13 deletions
diff --git a/arch/arm/boards/freescale-mx53-loco/board.c b/arch/arm/boards/freescale-mx53-loco/board.c
index c00b3bb942..6a5ef37adf 100644
--- a/arch/arm/boards/freescale-mx53-loco/board.c
+++ b/arch/arm/boards/freescale-mx53-loco/board.c
@@ -103,8 +103,6 @@ static int loco_devices_init(void)
armlinux_set_bootparams((void *)0x70000100);
armlinux_set_architecture(MACH_TYPE_MX53_LOCO);
- loco_fec_reset();
-
return 0;
}
diff --git a/arch/arm/boards/mini2440/config.h b/arch/arm/boards/mini2440/config.h
index 1f2fb4c4f5..8d36193c1d 100644
--- a/arch/arm/boards/mini2440/config.h
+++ b/arch/arm/boards/mini2440/config.h
@@ -61,13 +61,14 @@
* Twrph1 = 1 (-> 20ns)
* Cycle time = 80ns
*/
-#define A9M2440_TACLS 1
-#define A9M2440_TWRPH0 3
-#define A9M2440_TWRPH1 1
+#define MINI2440_TACLS 1
+#define MINI2440_TWRPH0 3
+#define MINI2440_TWRPH1 1
/* needed in the generic NAND boot code only */
#ifdef CONFIG_S3C24XX_NAND_BOOT
-# define BOARD_DEFAULT_NAND_TIMING CALC_NFCONF_TIMING(A9M2440_TACLS, A9M2440_TWRPH0, A9M2440_TWRPH1)
+# define BOARD_DEFAULT_NAND_TIMING \
+ CALC_NFCONF_TIMING(MINI2440_TACLS, MINI2440_TWRPH0, MINI2440_TWRPH1)
#endif
/*
diff --git a/arch/arm/boards/mini2440/mini2440.c b/arch/arm/boards/mini2440/mini2440.c
index 56e2668540..b4cc0f89e8 100644
--- a/arch/arm/boards/mini2440/mini2440.c
+++ b/arch/arm/boards/mini2440/mini2440.c
@@ -45,7 +45,8 @@
#include <mach/fb.h>
static struct s3c24x0_nand_platform_data nand_info = {
- .nand_timing = CALC_NFCONF_TIMING(A9M2440_TACLS, A9M2440_TWRPH0, A9M2440_TWRPH1),
+ .nand_timing = CALC_NFCONF_TIMING(MINI2440_TACLS, MINI2440_TWRPH0,
+ MINI2440_TWRPH1),
.flash_bbt = 1, /* same as the kernel */
};
diff --git a/arch/arm/configs/pcm043_defconfig b/arch/arm/configs/pcm043_defconfig
index 3bf21c8660..3c728ed3fc 100644
--- a/arch/arm/configs/pcm043_defconfig
+++ b/arch/arm/configs/pcm043_defconfig
@@ -1,5 +1,6 @@
CONFIG_ARCH_IMX=y
CONFIG_CACHE_L2X0=y
+CONFIG_ARCH_IMX_EXTERNAL_BOOT=y
CONFIG_ARCH_IMX35=y
CONFIG_MACH_PCM043=y
CONFIG_IMX_CLKO=y
diff --git a/arch/arm/mach-imx/nand.c b/arch/arm/mach-imx/nand.c
index fcbb85ef68..27b72a0d80 100644
--- a/arch/arm/mach-imx/nand.c
+++ b/arch/arm/mach-imx/nand.c
@@ -95,7 +95,7 @@ void imx_nand_set_layout(int writesize, int datawidth)
FMCR = fmcr;
}
-#elif defined CONFIG_ARCH_IMX51
+#elif defined CONFIG_ARCH_IMX51 || defined CONFIG_ARCH_IMX53
void imx_nand_set_layout(int writesize, int datawidth)
{
diff --git a/arch/nios2/include/asm/unaligned.h b/arch/nios2/include/asm/unaligned.h
new file mode 100644
index 0000000000..7615e8a85d
--- /dev/null
+++ b/arch/nios2/include/asm/unaligned.h
@@ -0,0 +1,15 @@
+#ifndef _ASM_NIOS_UNALIGNED_H
+#define _ASM_NIOS_UNALIGNED_H
+
+#include <linux/unaligned/le_byteshift.h>
+#include <linux/unaligned/be_byteshift.h>
+#include <linux/unaligned/generic.h>
+
+/*
+ * Select endianness
+ */
+
+#define get_unaligned __get_unaligned_le
+#define put_unaligned __put_unaligned_le
+
+#endif /* _ASM_NIOS_UNALIGNED_H */
diff --git a/arch/x86/boot/pmjump.S b/arch/x86/boot/pmjump.S
index d2fb8f0ebc..09bfc6ea86 100644
--- a/arch/x86/boot/pmjump.S
+++ b/arch/x86/boot/pmjump.S
@@ -44,6 +44,7 @@ protected_mode_jump:
/* Transition to 32-bit flat mode */
data32 ljmp $__BOOT_CS, $in_pm32
+ .size protected_mode_jump, .-protected_mode_jump
/* ------------------------------------------------------------------------ */
@@ -83,5 +84,5 @@ in_pm32:
jmp uboot_entry
- .size protected_mode_jump, .-protected_mode_jump
+ .size in_pm32, .-in_pm32
diff --git a/arch/x86/include/asm/types.h b/arch/x86/include/asm/types.h
index 17c5fd7b9c..d5208699a9 100644
--- a/arch/x86/include/asm/types.h
+++ b/arch/x86/include/asm/types.h
@@ -39,6 +39,8 @@ typedef unsigned short u16;
typedef unsigned int u32;
+typedef unsigned long long u64;
+
#endif /* __ASSEMBLY__ */
#endif /* __ASM_X86_TYPES_H */
diff --git a/arch/x86/include/asm/unaligned.h b/arch/x86/include/asm/unaligned.h
new file mode 100644
index 0000000000..a7bd416b47
--- /dev/null
+++ b/arch/x86/include/asm/unaligned.h
@@ -0,0 +1,14 @@
+#ifndef _ASM_X86_UNALIGNED_H
+#define _ASM_X86_UNALIGNED_H
+
+/*
+ * The x86 can do unaligned accesses itself.
+ */
+
+#include <linux/unaligned/access_ok.h>
+#include <linux/unaligned/generic.h>
+
+#define get_unaligned __get_unaligned_le
+#define put_unaligned __put_unaligned_le
+
+#endif /* _ASM_X86_UNALIGNED_H */
diff --git a/arch/x86/lib/traveler.S b/arch/x86/lib/traveler.S
index 06141955fd..4f7a9e399a 100644
--- a/arch/x86/lib/traveler.S
+++ b/arch/x86/lib/traveler.S
@@ -72,6 +72,7 @@ real_to_prot:
/* jump to relocation, flush prefetch queue, and reload %cs */
DATA32 ljmp $__BOOT_CS, $return_to_flatmode
+ .size real_to_prot, .-real_to_prot
/* ----------------------------------------------------------------------- */
.section .boot.text.return_to_flatmode, "ax"
@@ -102,8 +103,7 @@ return_to_flatmode:
/* flag we returned happy here */
xorl %eax, %eax
ret
-
- .size real_to_prot, .-real_to_prot
+ .size return_to_flatmode, .-return_to_flatmode
/* ------------------------------------------------------------------------ */
@@ -140,13 +140,16 @@ prot_to_real:
/* at last, also limit the code segment to 16 bit */
ljmp $__REAL_CS, $return_to_realmode
+ .size prot_to_real, .-prot_to_real
/* ----------------------------------------------------------------------- */
.section .boot.text.return_to_realmode, "ax"
-return_to_realmode:
+ .globl return_to_realmode
+ .type return_to_realmode, @function
.code16
+return_to_realmode:
/* disable protected mode */
movl %cr0, %eax
andl $(~0x00000001), %eax
@@ -176,5 +179,5 @@ enter_realmode:
/* return on realmode stack! */
DATA32 ret
- .size prot_to_real, .-prot_to_real
+ .size return_to_realmode, .-return_to_realmode