2005-04-16 18:20:36 -04:00
|
|
|
/*
|
|
|
|
* Setup pointers to hardware-dependent routines.
|
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
|
|
* for more details.
|
|
|
|
*
|
2006-01-18 12:37:07 -05:00
|
|
|
* Copyright (C) 1996, 97, 98, 2000, 03, 04, 06 Ralf Baechle (ralf@linux-mips.org)
|
2006-12-28 12:22:32 -05:00
|
|
|
* Copyright (C) 2006 Thomas Bogendoerfer (tsbogend@alpha.franken.de)
|
2005-04-16 18:20:36 -04:00
|
|
|
*/
|
|
|
|
#include <linux/eisa.h>
|
|
|
|
#include <linux/init.h>
|
|
|
|
#include <linux/console.h>
|
|
|
|
#include <linux/fb.h>
|
2006-07-10 07:44:13 -04:00
|
|
|
#include <linux/screen_info.h>
|
2005-04-16 18:20:36 -04:00
|
|
|
|
2006-06-13 07:59:01 -04:00
|
|
|
#ifdef CONFIG_ARC
|
2005-04-16 18:20:36 -04:00
|
|
|
#include <asm/arc/types.h>
|
|
|
|
#include <asm/sgialib.h>
|
2006-06-13 07:59:01 -04:00
|
|
|
#endif
|
|
|
|
|
2005-04-16 18:20:36 -04:00
|
|
|
#include <asm/io.h>
|
|
|
|
#include <asm/reboot.h>
|
|
|
|
#include <asm/sni.h>
|
2006-12-28 12:22:32 -05:00
|
|
|
|
|
|
|
unsigned int sni_brd_type;
|
2005-04-16 18:20:36 -04:00
|
|
|
|
|
|
|
extern void sni_machine_restart(char *command);
|
|
|
|
extern void sni_machine_halt(void);
|
|
|
|
extern void sni_machine_power_off(void);
|
|
|
|
|
|
|
|
static void __init sni_display_setup(void)
|
|
|
|
{
|
2006-06-13 07:59:01 -04:00
|
|
|
#if defined(CONFIG_VT) && defined(CONFIG_VGA_CONSOLE) && defined(CONFIG_ARC)
|
2005-04-16 18:20:36 -04:00
|
|
|
struct screen_info *si = &screen_info;
|
|
|
|
DISPLAY_STATUS *di;
|
|
|
|
|
|
|
|
di = ArcGetDisplayStatus(1);
|
|
|
|
|
|
|
|
if (di) {
|
|
|
|
si->orig_x = di->CursorXPosition;
|
|
|
|
si->orig_y = di->CursorYPosition;
|
|
|
|
si->orig_video_cols = di->CursorMaxXPosition;
|
|
|
|
si->orig_video_lines = di->CursorMaxYPosition;
|
|
|
|
si->orig_video_isVGA = VIDEO_TYPE_VGAC;
|
|
|
|
si->orig_video_points = 16;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2006-06-17 20:32:22 -04:00
|
|
|
void __init plat_mem_setup(void)
|
2005-04-16 18:20:36 -04:00
|
|
|
{
|
|
|
|
set_io_port_base(SNI_PORT_BASE);
|
2006-12-28 12:22:32 -05:00
|
|
|
// ioport_resource.end = sni_io_resource.end;
|
2005-04-16 18:20:36 -04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Setup (E)ISA I/O memory access stuff
|
|
|
|
*/
|
|
|
|
isa_slot_offset = 0xb0000000;
|
|
|
|
#ifdef CONFIG_EISA
|
|
|
|
EISA_bus = 1;
|
|
|
|
#endif
|
|
|
|
|
2006-12-28 12:22:32 -05:00
|
|
|
switch (sni_brd_type) {
|
|
|
|
case SNI_BRD_10:
|
|
|
|
case SNI_BRD_10NEW:
|
|
|
|
case SNI_BRD_TOWER_OASIC:
|
|
|
|
case SNI_BRD_MINITOWER:
|
|
|
|
sni_a20r_init();
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SNI_BRD_PCI_TOWER:
|
|
|
|
case SNI_BRD_PCI_TOWER_CPLUS:
|
|
|
|
sni_pcit_init();
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SNI_BRD_RM200:
|
|
|
|
sni_rm200_init();
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SNI_BRD_PCI_MTOWER:
|
|
|
|
case SNI_BRD_PCI_DESKTOP:
|
|
|
|
case SNI_BRD_PCI_MTOWER_CPLUS:
|
|
|
|
sni_pcimt_init();
|
|
|
|
break;
|
|
|
|
}
|
2005-04-16 18:20:36 -04:00
|
|
|
|
|
|
|
_machine_restart = sni_machine_restart;
|
|
|
|
_machine_halt = sni_machine_halt;
|
2006-01-18 12:37:07 -05:00
|
|
|
pm_power_off = sni_machine_power_off;
|
2005-04-16 18:20:36 -04:00
|
|
|
|
|
|
|
sni_display_setup();
|
|
|
|
}
|