aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/include/plat/board.h
diff options
context:
space:
mode:
authorPaul Walmsley <paul@pwsan.com>2012-04-13 06:34:27 -0600
committerPaul Walmsley <paul@pwsan.com>2012-04-13 06:34:27 -0600
commitd3645d39ad0ed9f09535065676ea0ba114f93cdf (patch)
tree53c7c5e09f27f8780cbfbc5d1d941691ea30a21b /arch/arm/plat-omap/include/plat/board.h
parentARM: OMAP1: OCPI: move to mach-omap1/ (diff)
downloadlinux-dev-d3645d39ad0ed9f09535065676ea0ba114f93cdf.tar.xz
linux-dev-d3645d39ad0ed9f09535065676ea0ba114f93cdf.zip
ARM: OMAP1: OHCI: use platform_data fn ptr to enable OCPI bus
The OMAP1 OHCI driver needs to enable the OCPI IP block before it can work. Previously, the driver was simply calling a symbol defined in the OMAP platform code, but this is incorrect: drivers should be fully decoupled from platform and architecture code. So instead, modify the driver to call through a platform_data function pointer instead. We skip any DT aspect, since OMAP1 is not scheduled to be converted to DT in the near future. This resolves the following sparse warning: It also gets rid of a cpu_is_omap16xx() call in a driver. In the long term, it probably makes sense to move the OCPI bus code to somewhere under drivers/. This should avoid the whole platform_data/DT issue with this function. Signed-off-by: Paul Walmsley <paul@pwsan.com> Cc: Felipe Balbi <balbi@ti.com> Cc: Anand Gadiyar <gadiyar@ti.com> Acked-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'arch/arm/plat-omap/include/plat/board.h')
-rw-r--r--arch/arm/plat-omap/include/plat/board.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/include/plat/board.h b/arch/arm/plat-omap/include/plat/board.h
index d5eb4c87db9d..4814c5b65306 100644
--- a/arch/arm/plat-omap/include/plat/board.h
+++ b/arch/arm/plat-omap/include/plat/board.h
@@ -91,6 +91,8 @@ struct omap_usb_config {
u32 (*usb0_init)(unsigned nwires, unsigned is_device);
u32 (*usb1_init)(unsigned nwires);
u32 (*usb2_init)(unsigned nwires, unsigned alt_pingroup);
+
+ int (*ocpi_enable)(void);
};
struct omap_lcd_config {