Esempio n. 1
0
static void __init isa_timer_init(void)
{
	isa_rtc_init();

	
	
	outb(0x34, 0x43);
	outb((mSEC_10_from_14/6) & 0xFF, 0x40);
	outb((mSEC_10_from_14/6) >> 8, 0x40);

	setup_irq(IRQ_ISA_TIMER, &isa_timer_irq);
}
Esempio n. 2
0
static void __init isa_timer_init(void)
{
	isa_rtc_init();

	/* enable PIT timer */
	/* set for periodic (4) and LSB/MSB write (0x30) */
	outb(0x34, 0x43);
	outb((mSEC_10_from_14/6) & 0xFF, 0x40);
	outb((mSEC_10_from_14/6) >> 8, 0x40);

	setup_irq(IRQ_ISA_TIMER, &isa_timer_irq);
}
Esempio n. 3
0
/*
 * Set up timer interrupt.
 */
static void __init footbridge_timer_init(void)
{
    timer1_latch = (mem_fclk_21285 + 8 * HZ) / (16 * HZ);

    *CSR_TIMER1_CLR  = 0;
    *CSR_TIMER1_LOAD = timer1_latch;
    *CSR_TIMER1_CNTL = TIMER_CNTL_ENABLE | TIMER_CNTL_AUTORELOAD | TIMER_CNTL_DIV16;

    setup_irq(IRQ_TIMER1, &footbridge_timer_irq);

    isa_rtc_init();
}
Esempio n. 4
0
static int __init footbridge_isa_init(void)
{
	int err = 0;

	if (!footbridge_cfn_mode())
		return 0;

	/* Personal server doesn't have RTC */
	if (!machine_is_personal_server()) {
		isa_rtc_init();
		err = platform_device_register(&rtc_device);
		if (err)
			printk(KERN_ERR "Unable to register RTC device: %d\n", err);
	}
	err = platform_device_register(&serial_device);
	if (err)
		printk(KERN_ERR "Unable to register serial device: %d\n", err);
	return 0;
}