2008-08-09 07:08:40 +00:00
|
|
|
/*
|
|
|
|
* Cellvision/SparkLAN NFS-101U/WU support
|
|
|
|
*
|
2009-01-13 10:15:39 +00:00
|
|
|
* Copyright (C) 2007-2009 Gabor Juhos <juhosg@openwrt.org>
|
2008-08-09 07:08:40 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License version 2 as published
|
|
|
|
* by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "cellvision.h"
|
|
|
|
|
2009-01-13 10:15:39 +00:00
|
|
|
static struct adm5120_pci_irq nfs101_pci_irqs[] __initdata = {
|
2009-02-02 17:24:07 +00:00
|
|
|
/* miniPCI slot */
|
2009-01-13 10:15:39 +00:00
|
|
|
PCIIRQ(2, 0, 1, ADM5120_IRQ_PCI0),
|
2009-02-02 17:24:07 +00:00
|
|
|
|
|
|
|
/* ALi USB controller */
|
2009-01-13 10:15:39 +00:00
|
|
|
PCIIRQ(3, 0, 2, ADM5120_IRQ_PCI2),
|
2009-02-02 17:24:07 +00:00
|
|
|
PCIIRQ(3, 3, 1, ADM5120_IRQ_PCI1),
|
|
|
|
|
|
|
|
/* NEC USB controller */
|
|
|
|
PCIIRQ(3, 0, 1, ADM5120_IRQ_PCI1),
|
|
|
|
PCIIRQ(3, 1, 2, ADM5120_IRQ_PCI2),
|
|
|
|
PCIIRQ(3, 2, 3, ADM5120_IRQ_PCI2),
|
2009-01-13 10:15:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static u8 nfs101_vlans[6] __initdata = {
|
|
|
|
/* FIXME: not tested */
|
|
|
|
0x5f, 0x00, 0x00, 0x00, 0x00, 0x00
|
2008-08-09 07:08:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static void __init nfs101_setup(void)
|
|
|
|
{
|
|
|
|
cas6xx_flash_setup();
|
2008-08-20 17:20:58 +00:00
|
|
|
cellvision_mac_setup();
|
2008-09-23 07:24:15 +00:00
|
|
|
|
|
|
|
adm5120_add_device_uart(0);
|
|
|
|
adm5120_add_device_uart(1);
|
2009-01-13 10:15:39 +00:00
|
|
|
adm5120_add_device_switch(1, nfs101_vlans);
|
|
|
|
|
|
|
|
adm5120_pci_set_irq_map(ARRAY_SIZE(nfs101_pci_irqs),
|
|
|
|
nfs101_pci_irqs);
|
2008-08-09 07:08:40 +00:00
|
|
|
}
|
|
|
|
|
2010-06-05 18:26:40 +00:00
|
|
|
MIPS_MACHINE(MACH_ADM5120_NFS101U, "NFS-101U", "Cellvision NFS-101U/101WU",
|
|
|
|
nfs101_setup);
|