aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf527/boards
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-12-21 10:04:03 -0500
committerMike Frysinger <vapier@gentoo.org>2010-03-09 00:30:47 -0500
commit3b781de6dd96d64c133a7ed774f385d35129575b (patch)
tree5df2deaa22f09ea5c7c3c465cc70d4a4ecaadeed /arch/blackfin/mach-bf527/boards
parent1dafdc513a20410e328b22b6d25d4ac78557516a (diff)
Blackfin: drop unused SL811 platform resources from bf527/pnav boards
These platforms don't hook up to this USB controller, so no point in declaring resources for it. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/mach-bf527/boards')
-rw-r--r--arch/blackfin/mach-bf527/boards/cm_bf527.c49
-rw-r--r--arch/blackfin/mach-bf527/boards/ezkit.c49
2 files changed, 0 insertions, 98 deletions
diff --git a/arch/blackfin/mach-bf527/boards/cm_bf527.c b/arch/blackfin/mach-bf527/boards/cm_bf527.c
index eaa0131f9605..d6efdfa7d4e0 100644
--- a/arch/blackfin/mach-bf527/boards/cm_bf527.c
+++ b/arch/blackfin/mach-bf527/boards/cm_bf527.c
@@ -18,7 +18,6 @@
18#include <linux/i2c.h> 18#include <linux/i2c.h>
19#include <linux/irq.h> 19#include <linux/irq.h>
20#include <linux/interrupt.h> 20#include <linux/interrupt.h>
21#include <linux/usb/sl811.h>
22#include <linux/usb/musb.h> 21#include <linux/usb/musb.h>
23#include <asm/dma.h> 22#include <asm/dma.h>
24#include <asm/bfin5xx_spi.h> 23#include <asm/bfin5xx_spi.h>
@@ -270,50 +269,6 @@ static struct platform_device dm9000_device = {
270}; 269};
271#endif 270#endif
272 271
273#if defined(CONFIG_USB_SL811_HCD) || defined(CONFIG_USB_SL811_HCD_MODULE)
274static struct resource sl811_hcd_resources[] = {
275 {
276 .start = 0x20340000,
277 .end = 0x20340000,
278 .flags = IORESOURCE_MEM,
279 }, {
280 .start = 0x20340004,
281 .end = 0x20340004,
282 .flags = IORESOURCE_MEM,
283 }, {
284 .start = CONFIG_USB_SL811_BFIN_IRQ,
285 .end = CONFIG_USB_SL811_BFIN_IRQ,
286 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL,
287 },
288};
289
290#if defined(CONFIG_USB_SL811_BFIN_USE_VBUS)
291void sl811_port_power(struct device *dev, int is_on)
292{
293 gpio_request(CONFIG_USB_SL811_BFIN_GPIO_VBUS, "usb:SL811_VBUS");
294 gpio_direction_output(CONFIG_USB_SL811_BFIN_GPIO_VBUS, is_on);
295}
296#endif
297
298static struct sl811_platform_data sl811_priv = {
299 .potpg = 10,
300 .power = 250, /* == 500mA */
301#if defined(CONFIG_USB_SL811_BFIN_USE_VBUS)
302 .port_power = &sl811_port_power,
303#endif
304};
305
306static struct platform_device sl811_hcd_device = {
307 .name = "sl811-hcd",
308 .id = 0,
309 .dev = {
310 .platform_data = &sl811_priv,
311 },
312 .num_resources = ARRAY_SIZE(sl811_hcd_resources),
313 .resource = sl811_hcd_resources,
314};
315#endif
316
317#if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 272#if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
318static struct platform_device bfin_mii_bus = { 273static struct platform_device bfin_mii_bus = {
319 .name = "bfin_mii_bus", 274 .name = "bfin_mii_bus",
@@ -929,10 +884,6 @@ static struct platform_device *cmbf527_devices[] __initdata = {
929 &rtc_device, 884 &rtc_device,
930#endif 885#endif
931 886
932#if defined(CONFIG_USB_SL811_HCD) || defined(CONFIG_USB_SL811_HCD_MODULE)
933 &sl811_hcd_device,
934#endif
935
936#if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE) 887#if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE)
937 &bfin_isp1760_device, 888 &bfin_isp1760_device,
938#endif 889#endif
diff --git a/arch/blackfin/mach-bf527/boards/ezkit.c b/arch/blackfin/mach-bf527/boards/ezkit.c
index 0cc3581e6461..a7beed517c2e 100644
--- a/arch/blackfin/mach-bf527/boards/ezkit.c
+++ b/arch/blackfin/mach-bf527/boards/ezkit.c
@@ -16,7 +16,6 @@
16#include <linux/i2c.h> 16#include <linux/i2c.h>
17#include <linux/irq.h> 17#include <linux/irq.h>
18#include <linux/interrupt.h> 18#include <linux/interrupt.h>
19#include <linux/usb/sl811.h>
20#include <linux/usb/musb.h> 19#include <linux/usb/musb.h>
21#include <linux/leds.h> 20#include <linux/leds.h>
22#include <linux/input.h> 21#include <linux/input.h>
@@ -359,50 +358,6 @@ static struct platform_device dm9000_device = {
359}; 358};
360#endif 359#endif
361 360
362#if defined(CONFIG_USB_SL811_HCD) || defined(CONFIG_USB_SL811_HCD_MODULE)
363static struct resource sl811_hcd_resources[] = {
364 {
365 .start = 0x20340000,
366 .end = 0x20340000,
367 .flags = IORESOURCE_MEM,
368 }, {
369 .start = 0x20340004,
370 .end = 0x20340004,
371 .flags = IORESOURCE_MEM,
372 }, {
373 .start = CONFIG_USB_SL811_BFIN_IRQ,
374 .end = CONFIG_USB_SL811_BFIN_IRQ,
375 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL,
376 },
377};
378
379#if defined(CONFIG_USB_SL811_BFIN_USE_VBUS)
380void sl811_port_power(struct device *dev, int is_on)
381{
382 gpio_request(CONFIG_USB_SL811_BFIN_GPIO_VBUS, "usb:SL811_VBUS");
383 gpio_direction_output(CONFIG_USB_SL811_BFIN_GPIO_VBUS, is_on);
384}
385#endif
386
387static struct sl811_platform_data sl811_priv = {
388 .potpg = 10,
389 .power = 250, /* == 500mA */
390#if defined(CONFIG_USB_SL811_BFIN_USE_VBUS)
391 .port_power = &sl811_port_power,
392#endif
393};
394
395static struct platform_device sl811_hcd_device = {
396 .name = "sl811-hcd",
397 .id = 0,
398 .dev = {
399 .platform_data = &sl811_priv,
400 },
401 .num_resources = ARRAY_SIZE(sl811_hcd_resources),
402 .resource = sl811_hcd_resources,
403};
404#endif
405
406#if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 361#if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
407static struct platform_device bfin_mii_bus = { 362static struct platform_device bfin_mii_bus = {
408 .name = "bfin_mii_bus", 363 .name = "bfin_mii_bus",
@@ -1113,10 +1068,6 @@ static struct platform_device *stamp_devices[] __initdata = {
1113 &rtc_device, 1068 &rtc_device,
1114#endif 1069#endif
1115 1070
1116#if defined(CONFIG_USB_SL811_HCD) || defined(CONFIG_USB_SL811_HCD_MODULE)
1117 &sl811_hcd_device,
1118#endif
1119
1120#if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE) 1071#if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE)
1121 &bfin_isp1760_device, 1072 &bfin_isp1760_device,
1122#endif 1073#endif