[U-Boot] [PATCH v3 00/10] driver model bring-up of musb on AM335x GP and BBB
Mugunthan V N
mugunthanvnm at ti.com
Thu Nov 17 10:08:05 CET 2016
This patch series enables musb driver to adopt driver model. This
has been tested on the following evms (logs [1]) by loading
kernel and dtbs from usb mass storage (host) and usb rndis mode (device).
* AM335x GP evm
* AM335x BBB
Also pushed a branch for testing [2]
This patch series depends on the following patch series
* usb ether gadget DM conversion [4]
Changes from v2:
* Removed from non-useful error logs.
* Since defconfig is merged into single defconfig for all
TI AM335x platforms, rebased those patches as well.
Changes from initial version:
* Separated out the usb gadget driver patches from earlier musb
series [3] for testing and submitting of dwc3 dm musb patches.
* passed an dummy dev pointer for non-DM case as well for
reducing the number of #ifdefs in musb backend driver.
[1] - http://pastebin.ubuntu.com/23489333/
[2] - git://git.ti.com/~mugunthanvnm/ti-u-boot/mugunth-ti-u-boot.git dm-musb-v3
[3] - http://lists.denx.de/pipermail/u-boot/2016-February/246827.html
[4] - http://lists.denx.de/pipermail/u-boot/2016-November/273037.html
Note:
~~~~~
The following checkpatch warning can be ignore as splitting the
line will break grep during debug session.
WARNING: line over 80 characters
#224: FILE: drivers/usb/musb-new/ti-musb.c:232:
+ error("musb - not able to bind usb host node\n");
total: 0 errors, 1 warnings, 0 checks, 207 lines checked
NOTE: Ignored message types: COMPLEX_MACRO CONSIDER_KSTRTO MINMAX MULTISTATEMENT_MACRO_USE_DO_WHILE NETWORKING_BLOCK_COMMENT_STYLE PREFER_ETHER_ADDR_COPY USLEEP_RANGE
../dm-musb/patches/musb/v3.00/0006-drivers-usb-musb-add-ti-musb-host-driver-with-driver.patch has style problems, please review.
If any of these errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.
WARNING: line over 80 characters
#164: FILE: drivers/usb/musb-new/ti-musb.c:332:
+ error("musb - not able to bind usb device node\n");
total: 0 errors, 1 warnings, 0 checks, 139 lines checked
NOTE: Ignored message types: COMPLEX_MACRO CONSIDER_KSTRTO MINMAX MULTISTATEMENT_MACRO_USE_DO_WHILE NETWORKING_BLOCK_COMMENT_STYLE PREFER_ETHER_ADDR_COPY USLEEP_RANGE
../dm-musb/patches/musb/v3.00/0007-drivers-usb-musb-add-ti-musb-peripheral-driver-with-.patch has style problems, please review.
If any of these errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.
total: 0 errors, 0 warnings, 0 checks, 14 lines checked
Mugunthan V N (10):
configs: am335x: usb: do not define CONFIG_DM_USB for spl
am33xx: board: do not register usb devices when CONFIG_DM_USB is
defined
drivers: usb: musb: add ti musb misc driver for wrapper
am33xx: board: probe misc drivers to register musb devices
drivers: usb: musb: adopt musb backend driver to driver model
drivers: usb: musb: add ti musb host driver with driver model support
drivers: usb: musb: add ti musb peripheral driver with driver model
support
am33xx: board: init usb ether gadget for rndis support
am335x_evm: enable usb ether gadget as it supports DM_ETH
defconfig: am335x_evm: enable usb driver model
arch/arm/cpu/armv7/am33xx/board.c | 24 ++-
arch/arm/cpu/armv7/omap3/am35x_musb.c | 6 +-
arch/arm/include/asm/arch-omap3/musb.h | 6 +-
arch/arm/include/asm/omap_musb.h | 7 +-
configs/am335x_evm_defconfig | 3 +
drivers/usb/musb-new/Kconfig | 9 +
drivers/usb/musb-new/Makefile | 1 +
drivers/usb/musb-new/am35x.c | 14 +-
drivers/usb/musb-new/musb_dsps.c | 8 +-
drivers/usb/musb-new/musb_uboot.c | 2 +
drivers/usb/musb-new/ti-musb.c | 364 +++++++++++++++++++++++++++++++++
include/configs/am335x_evm.h | 4 +-
12 files changed, 422 insertions(+), 26 deletions(-)
create mode 100644 drivers/usb/musb-new/ti-musb.c
--
2.11.0.rc1
More information about the U-Boot
mailing list