mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: barebox@lists.infradead.org
Subject: [PATCH] drivers/usb: regorganisation
Date: Thu, 29 Jul 2010 11:54:20 +0200	[thread overview]
Message-ID: <1280397260-4467-1-git-send-email-plagnioj@jcrosoft.com> (raw)

move to linux usb driver organisation

as following

drivers/usb/core
drivers/usb/gadget
drivers/usb/host
drivers/usb/otg

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
 drivers/usb/Kconfig                               |   10 ++--------
 drivers/usb/Makefile                              |    7 +++----
 drivers/usb/core/Makefile                         |    2 ++
 drivers/usb/{ => core}/usb.c                      |    0
 drivers/usb/host/Kconfig                          |    2 ++
 drivers/usb/host/Makefile                         |    1 +
 drivers/usb/{usb_ehci_core.h => host/ehci-core.h} |    0
 drivers/usb/{usb_ehci_core.c => host/ehci-hcd.c}  |    2 +-
 drivers/usb/{usb_ehci.h => host/ehci.h}           |    0
 drivers/usb/otg/Kconfig                           |    6 ++++++
 drivers/usb/otg/Makefile                          |    2 ++
 drivers/usb/{ => otg}/isp1504.c                   |    0
 drivers/usb/{ => otg}/ulpi.c                      |    0
 13 files changed, 19 insertions(+), 13 deletions(-)
 create mode 100644 drivers/usb/core/Makefile
 rename drivers/usb/{ => core}/usb.c (100%)
 create mode 100644 drivers/usb/host/Kconfig
 create mode 100644 drivers/usb/host/Makefile
 rename drivers/usb/{usb_ehci_core.h => host/ehci-core.h} (100%)
 rename drivers/usb/{usb_ehci_core.c => host/ehci-hcd.c} (99%)
 rename drivers/usb/{usb_ehci.h => host/ehci.h} (100%)
 create mode 100644 drivers/usb/otg/Kconfig
 create mode 100644 drivers/usb/otg/Makefile
 rename drivers/usb/{ => otg}/isp1504.c (100%)
 rename drivers/usb/{ => otg}/ulpi.c (100%)

diff --git a/drivers/usb/Kconfig b/drivers/usb/Kconfig
index 839efeb..c7b2c52 100644
--- a/drivers/usb/Kconfig
+++ b/drivers/usb/Kconfig
@@ -3,15 +3,9 @@ menuconfig USB
 
 if USB
 
-config USB_EHCI
-	bool "EHCI driver"
+source drivers/usb/host/Kconfig
 
-config USB_ULPI
-	bool
-
-config USB_ISP1504
-	select USB_ULPI
-	bool "ISP1504 Tranceiver support"
+source drivers/usb/otg/Kconfig
 
 endif
 
diff --git a/drivers/usb/Makefile b/drivers/usb/Makefile
index 57d0bed..e6f683b 100644
--- a/drivers/usb/Makefile
+++ b/drivers/usb/Makefile
@@ -1,6 +1,5 @@
-obj-$(CONFIG_USB)		+= usb.o
-obj-$(CONFIG_USB_EHCI)		+= usb_ehci_core.o
-obj-$(CONFIG_USB_ULPI)		+= ulpi.o
-obj-$(CONFIG_USB_ISP1504)	+= isp1504.o
+obj-$(CONFIG_USB)		+= core/
 obj-$(CONFIG_USB_GADGET)	+= gadget/
+obj-y += host/
+obj-y += otg/
 
diff --git a/drivers/usb/core/Makefile b/drivers/usb/core/Makefile
new file mode 100644
index 0000000..d49c68d
--- /dev/null
+++ b/drivers/usb/core/Makefile
@@ -0,0 +1,2 @@
+
+obj-y += usb.o
diff --git a/drivers/usb/usb.c b/drivers/usb/core/usb.c
similarity index 100%
rename from drivers/usb/usb.c
rename to drivers/usb/core/usb.c
diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig
new file mode 100644
index 0000000..e1549e8
--- /dev/null
+++ b/drivers/usb/host/Kconfig
@@ -0,0 +1,2 @@
+config USB_EHCI
+	bool "EHCI driver"
diff --git a/drivers/usb/host/Makefile b/drivers/usb/host/Makefile
new file mode 100644
index 0000000..6c48e3a
--- /dev/null
+++ b/drivers/usb/host/Makefile
@@ -0,0 +1 @@
+obj-$(CONFIG_USB_EHCI)		+= ehci-hcd.o
diff --git a/drivers/usb/usb_ehci_core.h b/drivers/usb/host/ehci-core.h
similarity index 100%
rename from drivers/usb/usb_ehci_core.h
rename to drivers/usb/host/ehci-core.h
diff --git a/drivers/usb/usb_ehci_core.c b/drivers/usb/host/ehci-hcd.c
similarity index 99%
rename from drivers/usb/usb_ehci_core.c
rename to drivers/usb/host/ehci-hcd.c
index af066de..8995fa3 100644
--- a/drivers/usb/usb_ehci_core.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -34,7 +34,7 @@
 #include <usb/ehci.h>
 #include <asm/mmu.h>
 
-#include "usb_ehci.h"
+#include "ehci.h"
 
 struct ehci_priv {
 	int rootdev;
diff --git a/drivers/usb/usb_ehci.h b/drivers/usb/host/ehci.h
similarity index 100%
rename from drivers/usb/usb_ehci.h
rename to drivers/usb/host/ehci.h
diff --git a/drivers/usb/otg/Kconfig b/drivers/usb/otg/Kconfig
new file mode 100644
index 0000000..0191c87
--- /dev/null
+++ b/drivers/usb/otg/Kconfig
@@ -0,0 +1,6 @@
+config USB_ULPI
+	bool
+
+config USB_ISP1504
+	select USB_ULPI
+	bool "ISP1504 Tranceiver support"
diff --git a/drivers/usb/otg/Makefile b/drivers/usb/otg/Makefile
new file mode 100644
index 0000000..785f922
--- /dev/null
+++ b/drivers/usb/otg/Makefile
@@ -0,0 +1,2 @@
+obj-$(CONFIG_USB_ULPI)		+= ulpi.o
+obj-$(CONFIG_USB_ISP1504)	+= isp1504.o
diff --git a/drivers/usb/isp1504.c b/drivers/usb/otg/isp1504.c
similarity index 100%
rename from drivers/usb/isp1504.c
rename to drivers/usb/otg/isp1504.c
diff --git a/drivers/usb/ulpi.c b/drivers/usb/otg/ulpi.c
similarity index 100%
rename from drivers/usb/ulpi.c
rename to drivers/usb/otg/ulpi.c
-- 
1.7.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

                 reply	other threads:[~2010-07-29 10:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1280397260-4467-1-git-send-email-plagnioj@jcrosoft.com \
    --to=plagnioj@jcrosoft.com \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox