USB: OHCI-HCD: Support for LPC32xx
Subsystems (4)
v6 cover USB: OHCI-HCD: Support for LPC32xx
This patch adds support for the LPC32xx to the ohci-pnx4008 driver.
As discussed with Greg-KH on the USB mailing list, the ohci-pnx4008 driver is first renamed to reflect its multi-platform support. The second patch also renames the respective pnx4008_* symbols accordingly. The third and final patch adds the actual lpc32xx support.
Applies to v3.3-rc6
Since v5, i2c_read16() has been removed in favour of i2c_smbus_read_word_data()
Thanks to Wolfram Sang for reviewing!
---
Roland Stigge (3):
USB: OHCI-HCD: Rename ohci-pnx4008 to ohci-nxp
USB: ohci-nxp: Rename symbols from pnx4008 to nxp
USB: ohci-nxp: Support for LPC32xx
Documentation/i2c/instantiating-devices | 6 drivers/usb/host/ohci-hcd.c | 6 drivers/usb/host/ohci-nxp.c | 652 ++++++++++++++++++++++++++++---- drivers/usb/host/ohci-pnx4008.c | 453 ---------------------- 4 files changed, 596 insertions(+), 521 deletions(-)
PATCH v6 1/3 USB: OHCI-HCD: Rename ohci-pnx4008 to ohci-nxp
Since this driver is compatible with several NXP devices, the driver is renamed accordingly. Please combine with the following patch which also changes the respective symbol names.
--- drivers/usb/host/ohci-hcd.c | 2 drivers/usb/host/ohci-nxp.c | 453 ++++++++++++++++++++++++++++++++++++++++ drivers/usb/host/ohci-pnx4008.c | 453 ---------------------------------------- 3 files changed, 454 insertions(+), 454 deletions(-)
drivers/usb/host/ohci-hcd.c +1 -1
@@ -1051,7 +1051,7 @@ MODULE_LICENSE ("GPL");#endif #ifdef CONFIG_ARCH_PNX4008 -#include "ohci-pnx4008.c" +#include "ohci-nxp.c" #define PLATFORM_DRIVER usb_hcd_pnx4008_driver#endif
drivers/usb/host/ohci-nxp.c new file +453 -0
453 lines not on this page · raw message
drivers/usb/host/ohci-pnx4008.c deleted +0 -453
453 lines not on this page · raw message
Re: [PATCH v6 1/3] USB: OHCI-HCD: Rename ohci-pnx4008 to ohci-nxp
Quoted 5 lines · Roland Stigge
Since this driver is compatible with several NXP devices, the driver is renamed accordingly. Please combine with the following patch which also changes the respective symbol names.
Signed-off-by Roland Stigge <[email protected]>
Please use -C or -M when generating these kinds of patches. It makes it possible to see what if anything has changed in the renamed file (and makes the diff smaller.)
Thanks.
PATCH v6 2/3 USB: ohci-nxp: Rename symbols from pnx4008 to nxp
In reply to Roland StiggeSince this driver is compatible with several NXP devices, the driver was renamed accordingly. This patch also changes the respective symbol names.
--- Documentation/i2c/instantiating-devices | 6 +-- drivers/usb/host/ohci-hcd.c | 2 - drivers/usb/host/ohci-nxp.c | 55 ++++++++++++++++---------------- 3 files changed, 33 insertions(+), 30 deletions(-)
Documentation/i2c/instantiating-devices +3 -3
@@ -87,11 +87,11 @@ it may have different addresses from one changing its design without notice). In this case, you can call i2c_new_probed_device() instead of i2c_new_device(). -Example (from the pnx4008 OHCI driver): +Example (from the nxp OHCI driver): static const unsigned short normal_i2c[] = { 0x2c, 0x2d, I2C_CLIENT_END }; -static int __devinit usb_hcd_pnx4008_probe(struct platform_device *pdev) +static int __devinit usb_hcd_nxp_probe(struct platform_device *pdev) { (...) struct i2c_adapter *i2c_adap;
@@ -100,7 +100,7 @@ static int __devinit usb_hcd_pnx4008_pro (...) i2c_adap = i2c_get_adapter(2); memset(&i2c_info, 0, sizeof(struct i2c_board_info)); - strlcpy(i2c_info.type, "isp1301_pnx", I2C_NAME_SIZE); + strlcpy(i2c_info.type, "isp1301_nxp", I2C_NAME_SIZE); isp1301_i2c_client = i2c_new_probed_device(i2c_adap, &i2c_info, normal_i2c, NULL); i2c_put_adapter(i2c_adap);
drivers/usb/host/ohci-hcd.c +1 -1
@@ -1052,7 +1052,7 @@ MODULE_LICENSE ("GPL");#ifdef CONFIG_ARCH_PNX4008 #include "ohci-nxp.c" -#define PLATFORM_DRIVER usb_hcd_pnx4008_driver +#define PLATFORM_DRIVER usb_hcd_nxp_driver#endif #ifdef CONFIG_ARCH_DAVINCI_DA8XX
drivers/usb/host/ohci-nxp.c +29 -26
174 lines not on this page · raw message
PATCH v6 3/3 USB: ohci-nxp: Support for LPC32xx
In reply to Roland StiggeThis patch adds support for the LPC32xx to ohci-nxp
--- drivers/usb/host/ohci-hcd.c | 2 drivers/usb/host/ohci-nxp.c | 132 ++++++++++++++++++++++++++++++++------------ 2 files changed, 99 insertions(+), 35 deletions(-)
drivers/usb/host/ohci-hcd.c +1 -1
@@ -1050,7 +1050,7 @@ MODULE_LICENSE ("GPL");#define PLATFORM_DRIVER ohci_hcd_at91_driver#endif -#ifdef CONFIG_ARCH_PNX4008 +#if defined(CONFIG_ARCH_PNX4008 ) || defined(CONFIG_ARCH_LPC32XX )#include "ohci-nxp.c" #define PLATFORM_DRIVER usb_hcd_nxp_driver#endif
drivers/usb/host/ohci-nxp.c +98 -34
190 lines not on this page · raw message