X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Fadm5120%2Ffiles-3.18%2Farch%2Fmips%2Fadm5120%2Fcompex%2Fnp27g.c;fp=target%2Flinux%2Fadm5120%2Ffiles-3.18%2Farch%2Fmips%2Fadm5120%2Fcompex%2Fnp27g.c;h=82da46d1c70ce1ae119aac40f8bc88d9f33741f9;hb=7140ca235c2badffbea119ca587fb70d36574eb5;hp=0000000000000000000000000000000000000000;hpb=4269bcdf04027fa9a724b107a457f7c508c3a3d0;p=15.05%2Fopenwrt.git diff --git a/target/linux/adm5120/files-3.18/arch/mips/adm5120/compex/np27g.c b/target/linux/adm5120/files-3.18/arch/mips/adm5120/compex/np27g.c new file mode 100644 index 0000000000..82da46d1c7 --- /dev/null +++ b/target/linux/adm5120/files-3.18/arch/mips/adm5120/compex/np27g.c @@ -0,0 +1,28 @@ +/* + * Compex NP27G board support + * + * Copyright (C) 2007-2008 Gabor Juhos + * + * 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 "compex.h" + +static u8 np27g_vlans[6] __initdata = { + /* FIXME: untested */ + 0x41, 0x42, 0x44, 0x48, 0x50, 0x00 +}; + +static void __init np27g_setup(void) +{ + compex_generic_setup(); + adm5120_add_device_switch(5, np27g_vlans); + adm5120_add_device_usb(); + + /* TODO: add PCI IRQ map */ +} + +MIPS_MACHINE(MACH_ADM5120_NP27G, "NP27G", "Compex NetPassage 27G", np27g_setup);