Exemplo n.º 1
0
void __init nino_setup(void)
{
	extern void nino_irq_setup(void);
	//clear GIMR first!

	irq_setup = nino_irq_setup;
	
#ifdef CONFIG_RTL_EB8186	
	set_io_port_base(KSEG1ADDR(0x1d010000));
	outl(0,GIMR0);	
	//mips_io_port_base=RTL8181_REG_BASE;
#endif	

#if defined(CONFIG_RTL865X) || defined(CONFIG_RTL8196B)
	extern void (*mips_timer_ack)(void);
	set_io_port_base(KSEG1ADDR(0x18000000));

	REG32(GIMR)=0;	
	REG32(IRR)=0;
#ifdef CONFIG_RTL8196C
	REG32(IRR1)=(4<<24);
#else
	REG32(IRR1)=0;
#endif
	mips_timer_ack=timer_ack;	
#endif

	_machine_restart = nino_machine_restart;
	_machine_halt = nino_machine_halt;
	_machine_power_off = nino_machine_power_off;

	board_time_init = nino_time_init;
	board_timer_setup = nino_timer_setup;

#ifdef CONFIG_FB
	conswitchp = &dummy_con;
#endif

#if defined(CONFIG_RTL8196B)
    rtl_console_init();
#endif

	nino_board_init();

#ifdef EARLY_PRINTK_ENABLE
	//sc_yang early printk 
	early_printk_setup("0");
#endif

#ifdef CONFIG_BLK_DEV_IDE
        ide_ops = &std_ide_ops;
#endif

}
Exemplo n.º 2
0
void __init nino_setup(void)
{
	extern void nino_irq_setup(void);
	//clear GIMR first!

	irq_setup = nino_irq_setup;
	set_io_port_base(KSEG1ADDR(0x1d010000));
	//mips_io_port_base=RTL8181_REG_BASE;

	_machine_restart = nino_machine_restart;
	_machine_halt = nino_machine_halt;
	_machine_power_off = nino_machine_power_off;

	board_time_init = nino_time_init;
	board_timer_setup = nino_timer_setup;
	mips_timer_ack=timer_ack;

#ifdef CONFIG_FB
	conswitchp = &dummy_con;
#endif

	__wbflush = wbflush_mips;
	nino_board_init();
}