[lantiq] move files/ -> files-3.3/
[openwrt/svn-archive/archive.git] / target / linux / lantiq / files-3.3 / arch / mips / lantiq / xway / dev-ifxhcd.c
1 /*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
6 *
7 * Copyright (C) 2012 John Crispin <blogic@openwrt.org>
8 */
9
10 #include <linux/init.h>
11 #include <linux/module.h>
12 #include <linux/types.h>
13 #include <linux/string.h>
14 #include <linux/mtd/physmap.h>
15 #include <linux/kernel.h>
16 #include <linux/reboot.h>
17 #include <linux/platform_device.h>
18 #include <linux/leds.h>
19 #include <linux/etherdevice.h>
20 #include <linux/reboot.h>
21 #include <linux/time.h>
22 #include <linux/io.h>
23 #include <linux/gpio.h>
24 #include <linux/leds.h>
25
26 #include <asm/bootinfo.h>
27 #include <asm/irq.h>
28
29 #include <lantiq_soc.h>
30 #include <lantiq_irq.h>
31 #include <lantiq_platform.h>
32
33 static u64 dmamask = (u32)0x1fffffff;
34
35 static struct platform_device platform_dev = {
36 .name = "ifxusb_hcd",
37 .dev.dma_mask = &dmamask,
38 };
39
40 int __init
41 xway_register_hcd(int *pins)
42 {
43 platform_dev.dev.platform_data = pins;
44 return platform_device_register(&platform_dev);
45 }