diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2008-11-18 04:48:22 -0500 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-11-18 04:48:22 -0500 |
commit | 3f37569044cb3d9ba4722710b84d018f573d4b0e (patch) | |
tree | 55bfdcc6bd8fafc235006e2e788a79eb40da2ea2 /arch/blackfin/mach-bf548 | |
parent | 5ff294fa00fd01ce905dbe0808dbdb10b80bb372 (diff) |
Blackfin arch: Enable ISP1760 USB Host Driver in platform device initialization code.
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/mach-bf548')
-rw-r--r-- | arch/blackfin/mach-bf548/boards/ezkit.c | 47 |
1 files changed, 22 insertions, 25 deletions
diff --git a/arch/blackfin/mach-bf548/boards/ezkit.c b/arch/blackfin/mach-bf548/boards/ezkit.c index 5288187a3ace..c0fd469d04c7 100644 --- a/arch/blackfin/mach-bf548/boards/ezkit.c +++ b/arch/blackfin/mach-bf548/boards/ezkit.c | |||
@@ -59,9 +59,9 @@ const char bfin_board_name[] = "ADSP-BF548-EZKIT"; | |||
59 | */ | 59 | */ |
60 | 60 | ||
61 | #if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE) | 61 | #if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE) |
62 | static struct resource bfin_isp1761_resources[] = { | 62 | #include <linux/usb/isp1760.h> |
63 | static struct resource bfin_isp1760_resources[] = { | ||
63 | [0] = { | 64 | [0] = { |
64 | .name = "isp1761-regs", | ||
65 | .start = 0x2C0C0000, | 65 | .start = 0x2C0C0000, |
66 | .end = 0x2C0C0000 + 0xfffff, | 66 | .end = 0x2C0C0000 + 0xfffff, |
67 | .flags = IORESOURCE_MEM, | 67 | .flags = IORESOURCE_MEM, |
@@ -73,32 +73,25 @@ static struct resource bfin_isp1761_resources[] = { | |||
73 | }, | 73 | }, |
74 | }; | 74 | }; |
75 | 75 | ||
76 | static struct platform_device bfin_isp1761_device = { | 76 | static struct isp1760_platform_data isp1760_priv = { |
77 | .name = "isp1761", | 77 | .is_isp1761 = 0, |
78 | .id = 0, | 78 | .port1_disable = 0, |
79 | .num_resources = ARRAY_SIZE(bfin_isp1761_resources), | 79 | .bus_width_16 = 1, |
80 | .resource = bfin_isp1761_resources, | 80 | .port1_otg = 0, |
81 | .analog_oc = 0, | ||
82 | .dack_polarity_high = 0, | ||
83 | .dreq_polarity_high = 0, | ||
81 | }; | 84 | }; |
82 | 85 | ||
83 | static struct platform_device *bfin_isp1761_devices[] = { | 86 | static struct platform_device bfin_isp1760_device = { |
84 | &bfin_isp1761_device, | 87 | .name = "isp1760-hcd", |
88 | .id = 0, | ||
89 | .dev = { | ||
90 | .platform_data = &isp1760_priv, | ||
91 | }, | ||
92 | .num_resources = ARRAY_SIZE(bfin_isp1760_resources), | ||
93 | .resource = bfin_isp1760_resources, | ||
85 | }; | 94 | }; |
86 | |||
87 | int __init bfin_isp1761_init(void) | ||
88 | { | ||
89 | unsigned int num_devices = ARRAY_SIZE(bfin_isp1761_devices); | ||
90 | |||
91 | printk(KERN_INFO "%s(): registering device resources\n", __func__); | ||
92 | set_irq_type(bfin_isp1761_resources[1].start, IRQF_TRIGGER_FALLING); | ||
93 | |||
94 | return platform_add_devices(bfin_isp1761_devices, num_devices); | ||
95 | } | ||
96 | |||
97 | void __exit bfin_isp1761_exit(void) | ||
98 | { | ||
99 | platform_device_unregister(&bfin_isp1761_device); | ||
100 | } | ||
101 | arch_initcall(bfin_isp1761_init); | ||
102 | #endif | 95 | #endif |
103 | 96 | ||
104 | #if defined(CONFIG_FB_BF54X_LQ043) || defined(CONFIG_FB_BF54X_LQ043_MODULE) | 97 | #if defined(CONFIG_FB_BF54X_LQ043) || defined(CONFIG_FB_BF54X_LQ043_MODULE) |
@@ -827,6 +820,10 @@ static struct platform_device *ezkit_devices[] __initdata = { | |||
827 | &musb_device, | 820 | &musb_device, |
828 | #endif | 821 | #endif |
829 | 822 | ||
823 | #if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE) | ||
824 | &bfin_isp1760_device, | ||
825 | #endif | ||
826 | |||
830 | #if defined(CONFIG_PATA_BF54X) || defined(CONFIG_PATA_BF54X_MODULE) | 827 | #if defined(CONFIG_PATA_BF54X) || defined(CONFIG_PATA_BF54X_MODULE) |
831 | &bfin_atapi_device, | 828 | &bfin_atapi_device, |
832 | #endif | 829 | #endif |