thermal: fix Mediatek thermal controller build
[linux/fpc-iii.git] / arch / mips / loongson64 / common / setup.c
blob2dc5122f0e09a454f3ade53a87eaf32f806b12ec
1 /*
2 * Copyright (C) 2007 Lemote Inc. & Institute 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>
13 #include <asm/bootinfo.h>
15 #include <loongson.h>
17 #ifdef CONFIG_VT
18 #include <linux/console.h>
19 #include <linux/screen_info.h>
20 #endif
22 static void wbflush_loongson(void)
24 asm(".set\tpush\n\t"
25 ".set\tnoreorder\n\t"
26 ".set mips3\n\t"
27 "sync\n\t"
28 "nop\n\t"
29 ".set\tpop\n\t"
30 ".set mips0\n\t");
33 void (*__wbflush)(void) = wbflush_loongson;
34 EXPORT_SYMBOL(__wbflush);
36 void __init plat_mem_setup(void)
38 #ifdef CONFIG_VT
39 #if defined(CONFIG_VGA_CONSOLE)
40 conswitchp = &vga_con;
42 screen_info = (struct screen_info) {
43 .orig_x = 0,
44 .orig_y = 25,
45 .orig_video_cols = 80,
46 .orig_video_lines = 25,
47 .orig_video_isVGA = VIDEO_TYPE_VGAC,
48 .orig_video_points = 16,
50 #elif defined(CONFIG_DUMMY_CONSOLE)
51 conswitchp = &dummy_con;
52 #endif
53 #endif