]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
x86: Provide weak PC/AT compatibility setup function
authorGraeme Russ <graeme.russ@gmail.com>
Fri, 23 Apr 2010 14:05:48 +0000 (00:05 +1000)
committerWolfgang Denk <wd@denx.de>
Wed, 5 May 2010 22:16:54 +0000 (00:16 +0200)
It is possibly to setup x86 boards to use non-PC/AT configurations. For
example, the sc520 is an x86 CPU with PC/AT and non-PC/AT peripherals.
This function allows the board to set itself up for maximum PC/AT
compatibility just before booting the Linux kernel (the Linux kernel
'just works' if everything is PC/AT compliant)

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
arch/i386/include/asm/u-boot-i386.h
arch/i386/lib/board.c

index 521fd352bb8f5595be912db58f426674b0007a48..ce097a3bfa6845f3a3916bc1f41cac71a66ae859 100644 (file)
@@ -43,6 +43,8 @@ int cpu_init_interrupts(void);
 int board_init(void);
 int dram_init(void);
 
+void setup_pcat_compatibility(void);
+
 void isa_unmap_rom(u32 addr);
 u32 isa_map_rom(u32 bus_addr, int size);
 
index 7115a2f39c3ff21a573a3b035eb99e9e1a75413c..3f849f6542d3e155d0b9711115de60d8e663158d 100644 (file)
@@ -441,3 +441,10 @@ unsigned long do_go_exec (ulong (*entry)(int, char *[]), int argc, char *argv[])
 
        return (entry) (argc, argv);
 }
+
+void setup_pcat_compatibility(void)
+       __attribute__((weak, alias("__setup_pcat_compatibility")));
+
+void __setup_pcat_compatibility(void)
+{
+}