Ejemplo n.º 1
0
static int __init footbridge_watchdog_init(void)
{
	if (machine_is_netwinder())
		return -ENODEV;

	misc_register(&watchdog_miscdev);
	printk("Footbridge Watchdog Timer: 0.01, timer margin: %d sec\n", 
	       soft_margin);
	if (machine_is_cats())
		printk("Warning: Watchdog reset may not work on this machine.\n");
	return 0;
}
Ejemplo n.º 2
0
void __init footbridge_init_irq(void)
{
    __fb_init_irq();

    if (!footbridge_cfn_mode())
        return;

    if (machine_is_ebsa285())
        isa_init_irq(IRQ_PCI);

    if (machine_is_cats())
        isa_init_irq(IRQ_IN2);

    if (machine_is_netwinder())
        isa_init_irq(IRQ_IN3);
}
Ejemplo n.º 3
0
static int __init cats_hw_init(void)
{
	if (machine_is_cats()) {
		/* Set Aladdin to CONFIGURE mode */
		outb(0x51, CFG_PORT);
		outb(0x23, CFG_PORT);

		/* Select logical device 3 */
		outb(0x07, INDEX_PORT);
		outb(0x03, DATA_PORT);

		/* Set parallel port to DMA channel 3, ECP+EPP1.9, 
		   enable EPP timeout */
		outb(0x74, INDEX_PORT);
		outb(0x03, DATA_PORT);
	
		outb(0xf0, INDEX_PORT);
		outb(0x0f, DATA_PORT);

		outb(0xf1, INDEX_PORT);
		outb(0x07, DATA_PORT);

		/* Select logical device 4 */
		outb(0x07, INDEX_PORT);
		outb(0x04, DATA_PORT);

		/* UART1 high speed mode */
		outb(0xf0, INDEX_PORT);
		outb(0x02, DATA_PORT);

		/* Select logical device 5 */
		outb(0x07, INDEX_PORT);
		outb(0x05, DATA_PORT);

		/* UART2 high speed mode */
		outb(0xf0, INDEX_PORT);
		outb(0x02, DATA_PORT);

		/* Set Aladdin to RUN mode */
		outb(0xbb, CFG_PORT);
	}

	return 0;
}
Ejemplo n.º 4
0
static int __init cats_hw_init(void)
{
	if (machine_is_cats()) {
		
		outb(0x51, CFG_PORT);
		outb(0x23, CFG_PORT);

		
		outb(0x07, INDEX_PORT);
		outb(0x03, DATA_PORT);

		outb(0x74, INDEX_PORT);
		outb(0x03, DATA_PORT);
	
		outb(0xf0, INDEX_PORT);
		outb(0x0f, DATA_PORT);

		outb(0xf1, INDEX_PORT);
		outb(0x07, DATA_PORT);

		
		outb(0x07, INDEX_PORT);
		outb(0x04, DATA_PORT);

		
		outb(0xf0, INDEX_PORT);
		outb(0x02, DATA_PORT);

		
		outb(0x07, INDEX_PORT);
		outb(0x05, DATA_PORT);

		
		outb(0xf0, INDEX_PORT);
		outb(0x02, DATA_PORT);

		
		outb(0xbb, CFG_PORT);
	}

	return 0;
}
Ejemplo n.º 5
0
void __init footbridge_init_irq(void)
{
	__fb_init_irq();

	if (!footbridge_cfn_mode())
		return;

	if (machine_is_ebsa285())
		/* The following is dependent on which slot
		 * you plug the Southbridge card into.  We
		 * currently assume that you plug it into
		 * the right-hand most slot.
		 */
		isa_init_irq(IRQ_PCI);

	if (machine_is_cats())
		isa_init_irq(IRQ_IN2);

	if (machine_is_netwinder())
		isa_init_irq(IRQ_IN3);
}
Ejemplo n.º 6
0
static int __init cats_pci_init(void)
{
	if (machine_is_cats())
		pci_common_init(&cats_pci);
	return 0;
}