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.
10 #include <linux/module.h>
12 #include <asm/wbflush.h>
17 #include <linux/console.h>
18 #include <linux/screen_info.h>
21 void (*__wbflush
)(void);
22 EXPORT_SYMBOL(__wbflush
);
24 static void wbflush_loongson(void)
35 void __init
plat_mem_setup(void)
37 __wbflush
= wbflush_loongson
;
40 #if defined(CONFIG_VGA_CONSOLE)
41 conswitchp
= &vga_con
;
43 screen_info
= (struct screen_info
) {
44 0, 25, /* orig-x, orig-y */
46 0, /* orig-video-page */
47 0, /* orig-video-mode */
48 80, /* orig-video-cols */
49 0, 0, 0, /* ega_ax, ega_bx, ega_cx */
50 25, /* orig-video-lines */
51 VIDEO_TYPE_VGAC
, /* orig-video-isVGA */
52 16 /* orig-video-points */
54 #elif defined(CONFIG_DUMMY_CONSOLE)
55 conswitchp
= &dummy_con
;