parent
14a3ac5c63
commit
0be0708676
@ -1 +1,4 @@
|
||||
obj-y += cellvision.o
|
||||
obj-y += cellvision.o
|
||||
|
||||
obj-$(CONFIG_ADM5120_MACH_CAS_771) += cas-771.o
|
||||
obj-$(CONFIG_ADM5120_MACH_NFS_101) += nfs-101.o
|
||||
|
@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Cellvision/SparkLAN CAS-771/771W support
|
||||
*
|
||||
* Copyright (C) 2007-2008 Gabor Juhos <juhosg@openwrt.org>
|
||||
*
|
||||
* 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"
|
||||
|
||||
static struct adm5120_pci_irq cas771_pci_irqs[] __initdata = {
|
||||
PCIIRQ(2, 0, 1, ADM5120_IRQ_PCI0),
|
||||
PCIIRQ(3, 0, 1, ADM5120_IRQ_PCI1),
|
||||
PCIIRQ(3, 2, 3, ADM5120_IRQ_PCI2)
|
||||
};
|
||||
|
||||
static struct gpio_led cas771_gpio_leds[] __initdata = {
|
||||
GPIO_LED_STD(ADM5120_GPIO_PIN0, "cam_flash", NULL),
|
||||
/* GPIO PIN3 is the reset */
|
||||
GPIO_LED_STD(ADM5120_GPIO_PIN6, "access", NULL),
|
||||
GPIO_LED_STD(ADM5120_GPIO_P0L1, "status", NULL),
|
||||
GPIO_LED_STD(ADM5120_GPIO_P0L2, "diag", NULL),
|
||||
};
|
||||
|
||||
static void __init cas771_setup(void)
|
||||
{
|
||||
cas7xx_setup();
|
||||
adm5120_add_device_gpio_leds(ARRAY_SIZE(cas771_gpio_leds),
|
||||
cas771_gpio_leds);
|
||||
adm5120_pci_set_irq_map(ARRAY_SIZE(cas771_pci_irqs), cas771_pci_irqs);
|
||||
}
|
||||
|
||||
ADM5120_BOARD(MACH_ADM5120_CAS771, "Cellvision CAS-771/771W", cas771_setup);
|
@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Cellvision/SparkLAN boards
|
||||
*
|
||||
* Copyright (C) 2007-2008 Gabor Juhos <juhosg@openwrt.org>
|
||||
*
|
||||
* 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 <linux/kernel.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/gpio.h>
|
||||
|
||||
#include <asm/bootinfo.h>
|
||||
|
||||
#include <asm/mach-adm5120/adm5120_info.h>
|
||||
#include <asm/mach-adm5120/adm5120_board.h>
|
||||
#include <asm/mach-adm5120/adm5120_platform.h>
|
||||
#include <asm/mach-adm5120/adm5120_irq.h>
|
||||
|
||||
extern void cas6xx_flash_setup(void) __init;
|
||||
extern void cas7xx_flash_setup(void) __init;
|
||||
extern void cas6xx_setup(void) __init;
|
||||
extern void cas7xx_setup(void) __init;
|
@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Cellvision/SparkLAN NFS-101U/WU support
|
||||
*
|
||||
* Copyright (C) 2007-2008 Gabor Juhos <juhosg@openwrt.org>
|
||||
*
|
||||
* 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"
|
||||
|
||||
static u8 nfs101_vlans[6] __initdata = { /* TODO: not tested */
|
||||
0x41, 0x42, 0x44, 0x48, 0x50, 0x00
|
||||
};
|
||||
|
||||
static void __init nfs101_setup(void)
|
||||
{
|
||||
cas6xx_flash_setup();
|
||||
adm5120_add_device_switch(5, nfs101_vlans);
|
||||
}
|
||||
|
||||
ADM5120_BOARD(MACH_ADM5120_NFS101U, "Cellvision NFS-101U/101WU", nfs101_setup);
|
Loading…
Reference in New Issue