adm5120: add 3.18 support
[openwrt.git] / target / linux / adm5120 / files-3.18 / arch / mips / adm5120 / compex / np27g.c
1 /*
2  *  Compex NP27G board support
3  *
4  *  Copyright (C) 2007-2008 Gabor Juhos <juhosg@openwrt.org>
5  *
6  *  This program is free software; you can redistribute it and/or modify it
7  *  under the terms of the GNU General Public License version 2 as published
8  *  by the Free Software Foundation.
9  *
10  */
11
12 #include "compex.h"
13
14 static u8 np27g_vlans[6] __initdata = {
15         /* FIXME: untested */
16         0x41, 0x42, 0x44, 0x48, 0x50, 0x00
17 };
18
19 static void __init np27g_setup(void)
20 {
21         compex_generic_setup();
22         adm5120_add_device_switch(5, np27g_vlans);
23         adm5120_add_device_usb();
24
25         /* TODO: add PCI IRQ map */
26 }
27
28 MIPS_MACHINE(MACH_ADM5120_NP27G, "NP27G", "Compex NetPassage 27G", np27g_setup);