summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-01-27 09:31:13 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-01-27 09:31:13 +0100
commit192d6fe9beb1b8e298806ddd2d81670e578efd7e (patch)
tree4c46ae60d19429ffdaf23267a1d1ca1f14afcf63 /drivers
parent268c531d62a3b7e6c13728feab007e866ed8be84 (diff)
parent79c2f03aeed7b232592495f6af5fd94fbd102d25 (diff)
downloadbarebox-192d6fe9beb1b8e298806ddd2d81670e578efd7e.tar.gz
barebox-192d6fe9beb1b8e298806ddd2d81670e578efd7e.tar.xz
Merge branch 'pu/debug' into next
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mci/atmel_mci.c4
-rw-r--r--drivers/usb/gadget/pxa27x_udc.c19
2 files changed, 13 insertions, 10 deletions
diff --git a/drivers/mci/atmel_mci.c b/drivers/mci/atmel_mci.c
index 15668fc78b..3c37747ff9 100644
--- a/drivers/mci/atmel_mci.c
+++ b/drivers/mci/atmel_mci.c
@@ -36,6 +36,7 @@ struct atmel_mci_host {
u32 datasize;
struct mci_cmd *cmd;
struct mci_data *data;
+ unsigned slot_b;
};
#define to_mci_host(mci) container_of(mci, struct atmel_mci_host, mci)
@@ -370,7 +371,7 @@ static void mci_set_ios(struct mci_host *mci, struct device_d *mci_dev,
break;
}
atmel_mci_writel(host, AT91_MCI_SDCR, atmel_mci_readl(host, AT91_MCI_SDCR)
- | host->hw_dev->id);
+ | host->slot_b);
if (clock) {
atmel_set_clk_rate(host, clock);
@@ -459,6 +460,7 @@ static int mci_probe(struct device_d *hw_dev)
host->mci.host_caps |= MMC_MODE_4BIT;
if (pd->bus_width == 8)
host->mci.host_caps |= MMC_MODE_8BIT;
+ host->slot_b = pd->slot_b;
host->base = dev_request_mem_region(hw_dev, 0);
host->hw_dev = hw_dev;
diff --git a/drivers/usb/gadget/pxa27x_udc.c b/drivers/usb/gadget/pxa27x_udc.c
index d0dbee9824..56525559f6 100644
--- a/drivers/usb/gadget/pxa27x_udc.c
+++ b/drivers/usb/gadget/pxa27x_udc.c
@@ -1473,6 +1473,14 @@ static struct pxa_udc memory = {
}
};
+static int pxa27x_udc_poller(struct poller_struct *poller)
+{
+ return usb_gadget_poll();
+}
+static struct poller_struct poller = {
+ .func = pxa27x_udc_poller
+};
+
static int __init pxa_udc_probe(struct device_d *dev)
{
struct pxa_udc *udc = &memory;
@@ -1496,6 +1504,8 @@ static int __init pxa_udc_probe(struct device_d *dev)
the_controller = udc;
udc_init_data(udc);
pxa_eps_setup(udc);
+ poller_register(&poller);
+
return 0;
}
@@ -1506,18 +1516,9 @@ static struct driver_d udc_driver = {
.probe = pxa_udc_probe,
};
-static int pxa27x_udc_poller(struct poller_struct *poller)
-{
- return usb_gadget_poll();
-}
-static struct poller_struct poller = {
- .func = pxa27x_udc_poller
-};
-
static int __init pxa27x_udc_init(void)
{
register_driver(&udc_driver);
- poller_register(&poller);
return 0;
}