x86/efi: Enforce CONFIG_RELOCATABLE for EFI boot stub
[linux/fpc-iii.git] / arch / mips / loongson / common / setup.c
blob8223f8acfd59b374a02e3b1cd36858f1b47c84b3
1 /*
2 * Copyright (C) 2007 Lemote Inc. & Insititute of Computing Technology
3 * Author: Fuxin Zhang, zhangfx@lemote.com
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version.
9 */
10 #include <linux/module.h>
12 #include <asm/wbflush.h>
14 #include <loongson.h>
16 #ifdef CONFIG_VT
17 #include <linux/console.h>
18 #include <linux/screen_info.h>
19 #endif
21 void (*__wbflush)(void);
22 EXPORT_SYMBOL(__wbflush);
24 static void wbflush_loongson(void)
26 asm(".set\tpush\n\t"
27 ".set\tnoreorder\n\t"
28 ".set mips3\n\t"
29 "sync\n\t"
30 "nop\n\t"
31 ".set\tpop\n\t"
32 ".set mips0\n\t");
35 void __init plat_mem_setup(void)
37 __wbflush = wbflush_loongson;
39 #ifdef CONFIG_VT
40 #if defined(CONFIG_VGA_CONSOLE)
41 conswitchp = &vga_con;
43 screen_info = (struct screen_info) {
44 .orig_x = 0,
45 .orig_y = 25,
46 .orig_video_cols = 80,
47 .orig_video_lines = 25,
48 .orig_video_isVGA = VIDEO_TYPE_VGAC,
49 .orig_video_points = 16,
51 #elif defined(CONFIG_DUMMY_CONSOLE)
52 conswitchp = &dummy_con;
53 #endif
54 #endif