Path: blob/master/arch/mips/loongson/common/setup.c
10818 views
/*1* Copyright (C) 2007 Lemote Inc. & Insititute of Computing Technology2* Author: Fuxin Zhang, [email protected]3*4* This program is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License as published by the6* Free Software Foundation; either version 2 of the License, or (at your7* option) any later version.8*/9#include <linux/module.h>1011#include <asm/wbflush.h>1213#include <loongson.h>1415#ifdef CONFIG_VT16#include <linux/console.h>17#include <linux/screen_info.h>18#endif1920void (*__wbflush)(void);21EXPORT_SYMBOL(__wbflush);2223static void wbflush_loongson(void)24{25asm(".set\tpush\n\t"26".set\tnoreorder\n\t"27".set mips3\n\t"28"sync\n\t"29"nop\n\t"30".set\tpop\n\t"31".set mips0\n\t");32}3334void __init plat_mem_setup(void)35{36__wbflush = wbflush_loongson;3738#ifdef CONFIG_VT39#if defined(CONFIG_VGA_CONSOLE)40conswitchp = &vga_con;4142screen_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,49};50#elif defined(CONFIG_DUMMY_CONSOLE)51conswitchp = &dummy_con;52#endif53#endif54}555657