summaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb
diff options
context:
space:
mode:
authorLee Jones2013-05-15 11:51:44 +0200
committerLinus Walleij2013-06-04 11:12:03 +0200
commita20b1b791e42d84dedd5854b60abb841ec1a7585 (patch)
tree11d87211322d84f3e5fb4d88eefd7ff986b4312d /drivers/usb/musb
parentusb: musb: ux500: move channel number knowledge into the driver (diff)
downloadkernel-qcow2-linux-a20b1b791e42d84dedd5854b60abb841ec1a7585.tar.gz
kernel-qcow2-linux-a20b1b791e42d84dedd5854b60abb841ec1a7585.tar.xz
kernel-qcow2-linux-a20b1b791e42d84dedd5854b60abb841ec1a7585.zip
usb: musb: ux500: move the MUSB HDRC configuration into the driver
The MUSB HDRC configuration never changes between each of the ux500 supported platforms, so there's little point passing it though platform data. If we set it in the driver instead, we can make good use of it when booting with either ATAGs or Device Tree. Cc: linux-usb@vger.kernel.org Acked-by: Felipe Balbi <balbi@ti.com> Acked-by: Fabio Baltieri <fabio.baltieri@linaro.org> Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r--drivers/usb/musb/ux500.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/usb/musb/ux500.c b/drivers/usb/musb/ux500.c
index 2c80004e0a83..371776f76ba2 100644
--- a/drivers/usb/musb/ux500.c
+++ b/drivers/usb/musb/ux500.c
@@ -30,6 +30,13 @@
#include "musb_core.h"
+static struct musb_hdrc_config ux500_musb_hdrc_config = {
+ .multipoint = true,
+ .dyn_fifo = true,
+ .num_eps = 16,
+ .ram_bits = 16,
+};
+
struct ux500_glue {
struct device *dev;
struct platform_device *musb;
@@ -229,6 +236,7 @@ static int ux500_probe(struct platform_device *pdev)
glue->clk = clk;
pdata->platform_ops = &ux500_ops;
+ pdata->config = &ux500_musb_hdrc_config;
platform_set_drvdata(pdev, glue);