All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] usb: ehci: exynos: Enable non-dt path
@ 2013-01-11  9:24 Vivek Gautam
  2013-01-11  9:32 ` Marek Vasut
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Vivek Gautam @ 2013-01-11  9:24 UTC (permalink / raw)
  To: u-boot

Enabling the non-dt path for the driver so that
we don't get any build errors for non-dt configuration.

Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
---

Earlier we had moved to fdt support for ehci-exynos driver, but
missed out the non-dt path. Although this driver serves for exysno5
onward only but better to keep the non-dt path also available.

 drivers/usb/host/ehci-exynos.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/host/ehci-exynos.c b/drivers/usb/host/ehci-exynos.c
index 3ca4c5c..6f0c6c3 100644
--- a/drivers/usb/host/ehci-exynos.c
+++ b/drivers/usb/host/ehci-exynos.c
@@ -153,7 +153,12 @@ int ehci_hcd_init(int index, struct ehci_hccr **hccr, struct ehci_hcor **hcor)
 		return -ENOMEM;
 	}
 
+#ifdef CONFIG_OF_CONTROL
 	exynos_usb_parse_dt(gd->fdt_blob, exynos);
+#else
+	exynos->usb = (struct exynos_usb_phy *)samsung_get_base_usb_phy();
+	exynos->hcd = samsung_get_base_usb_ehci();
+#endif
 
 	setup_usb_phy(exynos->usb);
 
@@ -185,7 +190,12 @@ int ehci_hcd_stop(int index)
 		return -ENOMEM;
 	}
 
+#ifdef CONFIG_OF_CONTROL
 	exynos_usb_parse_dt(gd->fdt_blob, exynos);
+#else
+	exynos->usb = (struct exynos_usb_phy *)samsung_get_base_usb_phy();
+	exynos->hcd = samsung_get_base_usb_ehci();
+#endif
 
 	reset_usb_phy(exynos->usb);
 
-- 
1.7.6.5

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-02-12  9:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-11  9:24 [U-Boot] [PATCH] usb: ehci: exynos: Enable non-dt path Vivek Gautam
2013-01-11  9:32 ` Marek Vasut
2013-01-11  9:55   ` Vivek Gautam
2013-01-11 14:34 ` Simon Glass
2013-02-12  8:24 ` Minkyu Kang
2013-02-12  9:26   ` Vivek Gautam

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.