keystone-rtos/usb.git
17 months agoNOTICE OF RELOCATION master
Jacob Stiffler [Thu, 31 Oct 2019 17:58:26 +0000 (13:58 -0400)]
NOTICE OF RELOCATION

Active maintenance and development of the contents of this repository
has been relocated to git.ti.com/processor-sdk/pdk.git under the path
packages/ti/drv/usb.

The use of this repository has been deprecated and will no longer
receive updates.

Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
17 months agoMerge pull request #129 in PROCESSOR-SDK/usb from PRSDK-7296_close_fatfs_after_unplug...
Mahesh Radhakrishnan [Wed, 30 Oct 2019 16:36:16 +0000 (11:36 -0500)]
Merge pull request #129 in PROCESSOR-SDK/usb from PRSDK-7296_close_fatfs_after_unplug to master

* commit '352b6ee8a8816bf755742a47d68d62f3b0f8fcb7':
  Close FATFS when device disconnect detected

17 months agoClose FATFS when device disconnect detected
Thanh H Tran [Wed, 30 Oct 2019 16:30:23 +0000 (12:30 -0400)]
Close FATFS when device disconnect detected

After the application detects that the USB device is unplugged
it needs to close the FATFS so that when it is openned again with
new device it would have correct data

18 months agoMerge pull request #128 in PROCESSOR-SDK/usb from fix_doxygens to master
Mahesh Radhakrishnan [Mon, 7 Oct 2019 22:00:22 +0000 (17:00 -0500)]
Merge pull request #128 in PROCESSOR-SDK/usb from fix_doxygens to master

* commit '28248d276a5528637b86c104dac14df4828f8fc8':
  Fix all Doxygen warning seen in all the .h files

18 months agoFix all Doxygen warning seen in all the .h files
Thanh H Tran [Mon, 7 Oct 2019 19:11:26 +0000 (15:11 -0400)]
Fix all Doxygen warning seen in all the .h files

18 months agoMerge pull request #127 in PROCESSOR-SDK/usb from enabling_j7_usb_build to master
Mahesh Radhakrishnan [Sun, 6 Oct 2019 16:53:36 +0000 (11:53 -0500)]
Merge pull request #127 in PROCESSOR-SDK/usb from enabling_j7_usb_build to master

* commit '4f088e187737159f1d502af8426fc57242258a55':
  Fix automotive Jenkin build after updating Cdn drv

18 months agoFix automotive Jenkin build after updating Cdn drv
Thanh H Tran [Thu, 3 Oct 2019 09:06:39 +0000 (05:06 -0400)]
Fix automotive Jenkin build after updating Cdn drv

18 months agoMerge pull request #126 in PROCESSOR-SDK/usb from update_to_cdn_2.0.4_driver to master
Mahesh Radhakrishnan [Tue, 1 Oct 2019 16:28:05 +0000 (11:28 -0500)]
Merge pull request #126 in PROCESSOR-SDK/usb from update_to_cdn_2.0.4_driver to master

* commit 'fe0306f1df8c1994fe7746ecdf2ef3a44bf9a2f9':
  Update docs.
  Update changes to match TI PDK
  Update to Cadence 2.0.4 driver

18 months agoUpdate docs.
Thanh H Tran [Tue, 1 Oct 2019 08:57:03 +0000 (04:57 -0400)]
Update docs.

18 months agoUpdate changes to match TI PDK
Thanh H Tran [Mon, 30 Sep 2019 22:59:33 +0000 (18:59 -0400)]
Update changes to match TI PDK

Move some xhci buffers to non-cache area
Fix semaphore crash

18 months agoUpdate to Cadence 2.0.4 driver
Thanh H Tran [Mon, 30 Sep 2019 22:57:28 +0000 (18:57 -0400)]
Update to Cadence 2.0.4 driver

Update to latest Cadence bare-metal USB driver (2.0.4)

18 months agoMerge pull request #125 in PROCESSOR-SDK/usb from enabling_j7_usb_build to master
Mahesh Radhakrishnan [Fri, 27 Sep 2019 21:19:53 +0000 (16:19 -0500)]
Merge pull request #125 in PROCESSOR-SDK/usb from enabling_j7_usb_build to master

* commit 'a69eee82ce89ea8325e203abc5798787e6110542':
  Removing UART include from driver

18 months agoRemoving UART include from driver
Thanh H Tran [Fri, 27 Sep 2019 21:18:43 +0000 (17:18 -0400)]
Removing UART include from driver

18 months agoMerge pull request #124 in PROCESSOR-SDK/usb from enabling_j7_usb_build to master
Mahesh Radhakrishnan [Fri, 27 Sep 2019 19:48:07 +0000 (14:48 -0500)]
Merge pull request #124 in PROCESSOR-SDK/usb from enabling_j7_usb_build to master

* commit '9ea86fc068ef1605968fb00c59e1415f06558b50':
  Add more example src files to automotive packaging
  Add example source files into packages
  Packaging j721e example's linkers and BIOS cfg files
  Fix error i& warning when build with CPLUSPLUS=yes
  Fix type mismatch
  Fix for PRSDK-7092

18 months agoAdd more example src files to automotive packaging
Thanh H Tran [Fri, 27 Sep 2019 18:26:05 +0000 (14:26 -0400)]
Add more example src files to automotive packaging

18 months agoAdd example source files into packages
Thanh H Tran [Fri, 27 Sep 2019 17:51:50 +0000 (13:51 -0400)]
Add example source files into packages

18 months agoPackaging j721e example's linkers and BIOS cfg files
Thanh H Tran [Fri, 27 Sep 2019 00:30:06 +0000 (20:30 -0400)]
Packaging j721e example's linkers and BIOS cfg files

18 months agoFix error i& warning when build with CPLUSPLUS=yes
Thanh H Tran [Thu, 26 Sep 2019 22:27:56 +0000 (18:27 -0400)]
Fix error i& warning when build with CPLUSPLUS=yes

18 months agoFix type mismatch
Thanh H Tran [Thu, 26 Sep 2019 18:25:09 +0000 (14:25 -0400)]
Fix type mismatch

18 months agoFix for PRSDK-7092
Thanh H Tran [Tue, 24 Sep 2019 09:35:55 +0000 (05:35 -0400)]
Fix for PRSDK-7092

18 months agoMerge pull request #122 in PROCESSOR-SDK/usb from review_disableJ7_a0132173 to master
Sivaraj R [Mon, 23 Sep 2019 05:29:22 +0000 (00:29 -0500)]
Merge pull request #122 in PROCESSOR-SDK/usb from review_disableJ7_a0132173 to master

* commit '7d738fc060b672f967f1473f066a43e7f59ceeb0':
  Disabling J7 due to Build issue

18 months agoDisabling J7 due to Build issue
Ankur [Sat, 21 Sep 2019 17:06:42 +0000 (22:36 +0530)]
Disabling J7 due to Build issue

Signed-off-by: Ankur <a0132173@ti.com>
18 months agoMerge pull request #121 in PROCESSOR-SDK/usb from j721_to_master to master
Mahesh Radhakrishnan [Sat, 21 Sep 2019 01:25:06 +0000 (20:25 -0500)]
Merge pull request #121 in PROCESSOR-SDK/usb from j721_to_master to master

* commit '1adf4face5c619d14ccf4b5f7384d971105a4903': (38 commits)
  Fix Omap13x MSC USB caused by DMA_MULTIBUFFER_ALLOCATION
  Fix Omap13x MSC USB caused by DMA_MULTIBUFFER_ALLOCATION
  Fix USB audio issue on AM335x
  remove J7 sim
  Sync with latest CSL
  Move noncache MSMC setting to USB
  Update release notes and disable debug_printf
  Synch the MSC changes to MUSB host
  Add custom linker files for J7
  Uinifying AM65xx and J721e builds
  Restore previous version of xhci to non-j7
  Merge Master branch to j721_usb
  USB dev bulk application is now working
  MCU J7 USB dev MSC is now working
  USB3.0 host MSC working
  Clear g_sUSBHCD to fix some enumeration issues
  Move error codes to error.h
  Fix perf measurement
  Fix USB host for release build profile
  Fix connection/disconnection problem
  ...

18 months agoMerge branch 'j721_to_master' of ssh://bitbucket.itg.ti.com/processor-sdk/usb into...
Thanh H Tran [Sat, 21 Sep 2019 01:16:07 +0000 (21:16 -0400)]
Merge branch 'j721_to_master' of ssh://bitbucket.itg.ti.com/processor-sdk/usb into j721_to_master

18 months agoFix Omap13x MSC USB caused by DMA_MULTIBUFFER_ALLOCATION
Thanh H Tran [Sat, 21 Sep 2019 01:09:16 +0000 (21:09 -0400)]
Fix Omap13x MSC USB caused by DMA_MULTIBUFFER_ALLOCATION

New USB stack uses fixed EpReq. The multiallocation options replaced
the RxBuffer in the EpReq while the MSC stack still expects the
received data coming from the buffer it passes to the driver.

18 months agoFix Omap13x MSC USB caused by DMA_MULTIBUFFER_ALLOCATION
Thanh Tran [Sat, 21 Sep 2019 01:09:16 +0000 (21:09 -0400)]
Fix Omap13x MSC USB caused by DMA_MULTIBUFFER_ALLOCATION

New USB stack uses fixed EpReq. The multiallocation options replaced
the RxBuffer in the EpReq while the MSC stack still expects the
received data coming from the buffer it passes to the driver.

18 months agoFix USB audio issue on AM335x
Thanh Tran [Fri, 20 Sep 2019 19:31:31 +0000 (15:31 -0400)]
Fix USB audio issue on AM335x

Fix USB audio issue on AM335x
Restore inEpReq and outEpReq in usbMusbDcdDevice_t so that interrupt routing in Omap13x does not break

18 months agoremove J7 sim
Thanh Tran [Tue, 17 Sep 2019 19:23:09 +0000 (15:23 -0400)]
remove J7 sim

18 months agoSync with latest CSL
Thanh Tran [Tue, 17 Sep 2019 09:26:22 +0000 (05:26 -0400)]
Sync with latest CSL

18 months agoMove noncache MSMC setting to USB
Thanh Tran [Tue, 17 Sep 2019 00:44:57 +0000 (20:44 -0400)]
Move noncache MSMC setting to USB

Move non-cache section setting from OSAL to USB so that
other non-cache section settings are in one place inside USB.

Update the GPIO interrupt number with latest CSL

18 months agoMerge branch 'master' into j721_to_master
Thanh Tran [Tue, 17 Sep 2019 00:37:59 +0000 (20:37 -0400)]
Merge branch 'master' into j721_to_master

18 months agoUpdate release notes and disable debug_printf
Thanh Tran [Mon, 16 Sep 2019 18:54:33 +0000 (14:54 -0400)]
Update release notes and disable debug_printf

Debug printf is disabled by default like it has been before
Add notes and guide how to enable it

Update release notes

19 months agoSynch the MSC changes to MUSB host
Thanh Tran [Fri, 13 Sep 2019 00:15:04 +0000 (20:15 -0400)]
Synch the MSC changes to MUSB host

19 months agoAdd custom linker files for J7
Thanh Tran [Tue, 10 Sep 2019 00:31:35 +0000 (20:31 -0400)]
Add custom linker files for J7

19 months agoUinifying AM65xx and J721e builds
Thanh Tran [Tue, 10 Sep 2019 00:00:54 +0000 (20:00 -0400)]
Uinifying AM65xx and J721e builds

Making J7 and AM6 work now with same USB LLD.
Make copy of  BIOS CFG file and R5 MPU in example/bios/j721e so that R5
build can have modified MPU settings without impacting anyone else.

19 months agoRestore previous version of xhci to non-j7
Thanh Tran [Mon, 9 Sep 2019 18:22:49 +0000 (14:22 -0400)]
Restore previous version of xhci to non-j7

Restore to previous version of xhci driver for non-j7 SOCs
Fix missing ACK for get configuration on USB device mode on dev-dman (for DWC / CDN)

19 months agoMerge pull request #120 in PROCESSOR-SDK/usb from PRSDK-6167_enable_compliance_mode... DEV.USB_LLD.01.00.00.19
Thanh Tran (Germantown) [Wed, 4 Sep 2019 19:37:53 +0000 (14:37 -0500)]
Merge pull request #120 in PROCESSOR-SDK/usb from PRSDK-6167_enable_compliance_mode to master

* commit '63d5bb75e4017f0c7304228d7bf77dedd19ec725':
  Fix make release error
  Enable compliance state early during USB host init

19 months agoMerge Master branch to j721_usb
Thanh Tran [Tue, 3 Sep 2019 19:49:44 +0000 (15:49 -0400)]
Merge Master branch to j721_usb

19 months agoFix make release error
Thanh Tran [Tue, 3 Sep 2019 18:41:18 +0000 (14:41 -0400)]
Fix make release error

19 months agoUSB dev bulk application is now working
Thanh Tran [Fri, 30 Aug 2019 21:45:43 +0000 (17:45 -0400)]
USB dev bulk application is now working

+ Fix R5 unaligned access abort by telling complier that R5 does
not support unaligned access

+ Only build bare-metal application with AM65. J7 only support
BIOS application now

+ Fix cache problem on R5 USB device mode.

+ USB dev bulk is working for both MPU and MCU.

19 months agoMCU J7 USB dev MSC is now working
Thanh Tran [Thu, 22 Aug 2019 09:11:45 +0000 (05:11 -0400)]
MCU J7 USB dev MSC is now working

19 months agoUSB3.0 host MSC working
Thanh Tran [Mon, 19 Aug 2019 18:07:18 +0000 (14:07 -0400)]
USB3.0 host MSC working

USB3.0 is now working with CSL SERDES that has SIGDET_OVREN_PREG
and SIGDET_OVRVAL_PREG set to 0 (j7_csl_usb3 branch)

20 months agoClear g_sUSBHCD to fix some enumeration issues
Thanh Tran [Mon, 5 Aug 2019 08:58:14 +0000 (04:58 -0400)]
Clear g_sUSBHCD to fix some enumeration issues

Clear g_sUSBHCD to fix some re-enumeration issue when the host driver
is not initialized properly when g_sUSBHCD is placed in DDR.

Also enable GPIO handler code

20 months agoMove error codes to error.h
Thanh Tran [Sat, 20 Jul 2019 01:08:30 +0000 (21:08 -0400)]
Move error codes to error.h

Move USB host error code to to error.h

Translate Cadence xhci_enum first request timeout to a no device
plugged in indication so that USB host application can restart
the enumeration when nothing is plugged in

20 months agoFix perf measurement
Thanh Tran [Sat, 20 Jul 2019 00:59:07 +0000 (20:59 -0400)]
Fix perf measurement

J7 runs at 2GHz so tick counts overflow uint32 in just 2 seconds
Use uint64 for tick counts and time stamp to fix problem

20 months agoFix USB host for release build profile
Thanh Tran [Thu, 18 Jul 2019 22:32:47 +0000 (18:32 -0400)]
Fix USB host for release build profile

Now release build profile can work as well as the debug build profile

20 months agoFix connection/disconnection problem
Thanh Tran [Thu, 18 Jul 2019 18:42:05 +0000 (14:42 -0400)]
Fix connection/disconnection problem

Before this change the USB host would halt with USBSTS=0x15 after
connecting / disconnecting for about 5 times.

Cadence provides this change to fix this issue.

20 months agoUpdate to Cadence xHCI driver to get USB host working
Thanh Tran [Thu, 18 Jul 2019 00:05:46 +0000 (20:05 -0400)]
Update to Cadence xHCI driver to get USB host working

20 months agoUSB host working with Cadence xHCI driver
Thanh Tran [Wed, 17 Jul 2019 23:57:42 +0000 (19:57 -0400)]
USB host working with Cadence xHCI driver

21 months agoEnable compliance state early during USB host init
Thanh Tran [Wed, 10 Jul 2019 00:40:58 +0000 (20:40 -0400)]
Enable compliance state early during USB host init

Currently USB host doesn't get to compliance mode if USB probe is connected
to USB port before the controller is starting up.

Move the code that enable compliance mode to right after the controller is
set to host mode and after we poll for the PR bit to go low

21 months agoAdd Cadence XHCI driver
Thanh Tran [Tue, 2 Jul 2019 20:48:07 +0000 (16:48 -0400)]
Add Cadence XHCI driver

21 months agoMerge pull request #118 in PROCESSOR-SDK/usb from PRSDK-5873_PRSDK-5867_move_DMSC_res... DEV.USB_LLD.01.00.00.18A REL.PDK.J7.00.09.00.04 REL.PDK.J7.00.09.00.05 REL.PDK.J7.00.09.00.06 REL.PDK.J7.00.09.00.07 REL.PDK.J7.00.09.00.08 REL.PDK.J7.00.09.00.09 REL.PDK.J7.00.09.00.10 REL.PDK.J7.00.09.00.11 REL.PDK.J7.00.09.00.12 REL.PDK.J7.00.09.00.13 REL.PDK.J7.00.09.00.14 REL.PDK.J7.00.09.00.15 REL.PDK.J7.00.09.00.16 REL.PDK.J7.00.09.01.01 REL.PDK.J7.00.09.01.02
Mahesh Radhakrishnan [Tue, 2 Jul 2019 12:24:54 +0000 (07:24 -0500)]
Merge pull request #118 in PROCESSOR-SDK/usb from PRSDK-5873_PRSDK-5867_move_DMSC_reserve to master

* commit '8c3bdae6bdb94f3a2b742492bdbfc5bcfb23a0d1':
  Change the USB LLD examples linker files

21 months agoMerge branch 'master' of ssh://bitbucket.itg.ti.com/processor-sdk/usb into PRSDK...
Thanh Tran [Mon, 1 Jul 2019 23:29:18 +0000 (19:29 -0400)]
Merge branch 'master' of ssh://bitbucket.itg.ti.com/processor-sdk/usb into PRSDK-5873_PRSDK-5867_move_DMSC_reserve

21 months agoChange the USB LLD examples linker files
Thanh Tran [Mon, 1 Jul 2019 23:23:56 +0000 (19:23 -0400)]
Change the USB LLD examples linker files

Change all USB CCS examples on AM65xx to use local linker files
instead of from the ti/build infrastructure. These local linker files
move the DMSC reserved localtion to end of MSMC to match with
actual DMSC firewalls.

21 months agoMerge pull request #117 in PROCESSOR-SDK/usb from docs_update to master DEV.PROCESSOR-SDK.06.00.00.05 DEV.USB_LLD.01.00.00.18 REL.PDK.J7.00.09.00.02 REL.PDK.J7.00.09.00.03
Mahesh Radhakrishnan [Tue, 25 Jun 2019 22:23:43 +0000 (17:23 -0500)]
Merge pull request #117 in PROCESSOR-SDK/usb from docs_update to master

* commit '7545dca27fc4701b569665b87c20a773c68a6598':
  Docs update

21 months agoMerge pull request #116 in PROCESSOR-SDK/usb from PRSDK-5873_PRSDK-5867_move_DMSC_res...
Mahesh Radhakrishnan [Tue, 25 Jun 2019 22:23:22 +0000 (17:23 -0500)]
Merge pull request #116 in PROCESSOR-SDK/usb from PRSDK-5873_PRSDK-5867_move_DMSC_reserve to master

* commit '458bc4ba27ae61bbf5debb5a297bdeaa26ce23ce':
  Move linker files with no-cache sections to USB example
  Update USB examples with new linker files

21 months agoDocs update
Thanh Tran [Tue, 25 Jun 2019 20:16:41 +0000 (16:16 -0400)]
Docs update

21 months agoMove linker files with no-cache sections to USB example
Thanh Tran [Tue, 25 Jun 2019 08:23:35 +0000 (04:23 -0400)]
Move linker files with no-cache sections to USB example

CSL does not init an non-cache section in MSMC.
So moving build infrastructure linker files with non-cache sections to internal USB examples
The ti/build linker files no longer have these non-cache sections

21 months agoMerge pull request #115 in PROCESSOR-SDK/usb from PRSDK-5653_usb_config_declaration_m...
Thanh Tran (Germantown) [Mon, 24 Jun 2019 21:32:45 +0000 (16:32 -0500)]
Merge pull request #115 in PROCESSOR-SDK/usb from PRSDK-5653_usb_config_declaration_mismatch to master

* commit '0a4f1d2492209a7da6add67c4f8323c6a39f7fdd':
  Change USB_Config from const to non-const
  Moving away from const USB_Config

21 months agoUpdate USB examples with new linker files
Thanh Tran [Mon, 24 Jun 2019 21:24:18 +0000 (17:24 -0400)]
Update USB examples with new linker files

DMSC changes its firewalled memory. Update the examples to use these
new linker files in ti/build infrastructure.

Update the non-cache section addresses based on the new linker file

21 months agoRe-add a copy of hw_types.h
Thanh Tran [Fri, 21 Jun 2019 06:54:52 +0000 (02:54 -0400)]
Re-add a copy of hw_types.h

21 months agoUse internal hw_types.h
Thanh Tran [Fri, 21 Jun 2019 06:53:42 +0000 (02:53 -0400)]
Use internal hw_types.h

First attempt to bring up J7 USB host

21 months agoRevert back to internal hw_types.h
Thanh Tran [Fri, 21 Jun 2019 06:52:33 +0000 (02:52 -0400)]
Revert back to internal hw_types.h

Update makefile for bulk app
Revert back to USB included hw_types.h

21 months agoChange USB_Config from const to non-const
Thanh Tran [Thu, 20 Jun 2019 19:13:57 +0000 (15:13 -0400)]
Change USB_Config from const to non-const

21 months agoMerge branch 'master' into PRSDK-5653_usb_config_declaration_mismatch
Thanh Tran [Mon, 17 Jun 2019 19:53:16 +0000 (15:53 -0400)]
Merge branch 'master' into PRSDK-5653_usb_config_declaration_mismatch

22 months agoMerge pull request #114 in PROCESSOR-SDK/usb from PRSDK-4453 to master
Mahesh Radhakrishnan [Fri, 14 Jun 2019 12:22:37 +0000 (07:22 -0500)]
Merge pull request #114 in PROCESSOR-SDK/usb from PRSDK-4453 to master

* commit 'a1cff62fcf7b5798f2a7661d17e1ad15c17b59df':
  PRSDK-4453 Rename SMP example name in align with other LLD examples

22 months agoPRSDK-4453 Rename SMP example name in align with other LLD examples
Sinthu Raja M [Fri, 14 Jun 2019 10:19:20 +0000 (15:49 +0530)]
PRSDK-4453 Rename SMP example name in align with other LLD examples

22 months agoFirst working USB DEV MSC on J7
Thanh Tran [Thu, 13 Jun 2019 07:35:03 +0000 (03:35 -0400)]
First working USB DEV MSC on J7

Various changes for bring up and make USB MSC working
Update Cadence cusbd with new driver from Cadence
USB host is not yet working

22 months agoMerge pull request #113 in PROCESSOR-SDK/usb from PRSDK-4453 to master
Mahesh Radhakrishnan [Tue, 11 Jun 2019 19:43:16 +0000 (14:43 -0500)]
Merge pull request #113 in PROCESSOR-SDK/usb from PRSDK-4453 to master

* commit 'c5fdcce7422d2e013e2727caa7d142f56031cab4':
  PRSDK-4453 Add SMP enable examples for A15 and A53
  PRSDK-4453 Update makefile for SMP mode

22 months agoPRSDK-4453 Add SMP enable examples for A15 and A53
Sinthu Raja M [Fri, 17 May 2019 10:19:04 +0000 (15:49 +0530)]
PRSDK-4453 Add SMP enable examples for A15 and A53

 Add USB example with SMP enabled for AM65xx and AM572x EVM
 Update component makefile to add entry for SMP enabled test.
 Add RTSC project text file and config file for AM572x EVM to create SMP
 enabled project.

22 months agoAdd Serdes init and Serdes config for USB
Thanh Tran [Mon, 20 May 2019 18:48:21 +0000 (14:48 -0400)]
Add Serdes init and Serdes config for USB

23 months agoImplement Ep0Req and EpReq functions
Thanh Tran [Sat, 11 May 2019 00:58:12 +0000 (20:58 -0400)]
Implement Ep0Req and EpReq functions

23 months agoAdd TI refId to track call back functions
Thanh Tran [Sat, 11 May 2019 00:56:14 +0000 (20:56 -0400)]
Add TI refId to track call back functions

Add refId into CUSBD_Req_s so that we can track which transaction
a Cadence call back function is related to.

23 months agoMerge branch 'PRSDK-5370_usb_cdc' into j721e_usb
Thanh Tran [Thu, 9 May 2019 20:27:29 +0000 (16:27 -0400)]
Merge branch 'PRSDK-5370_usb_cdc' into j721e_usb

23 months agoAdd more j7 files
Thanh Tran [Thu, 9 May 2019 18:40:04 +0000 (14:40 -0400)]
Add more j7 files

23 months agoPRSDK-4453 Update makefile for SMP mode
Sinthu Raja M [Thu, 9 May 2019 10:37:13 +0000 (16:07 +0530)]
PRSDK-4453 Update makefile for SMP mode

 Update example makefile to include config file which add PDK driver
 components libraries and osal packages for SMP mode

23 months agoInitial commit for J7 USB.
Thanh Tran [Thu, 9 May 2019 09:03:50 +0000 (05:03 -0400)]
Initial commit for J7 USB.

First J7 USB commit
Code compiled
Not all functions, APIs are implemented

23 months agoMerge pull request #112 in PROCESSOR-SDK/usb from PRSDK-3669 to master REL.PDK.J7.00.09.00.01
Mahesh Radhakrishnan [Fri, 26 Apr 2019 20:44:51 +0000 (15:44 -0500)]
Merge pull request #112 in PROCESSOR-SDK/usb from PRSDK-3669 to master

* commit 'b37c305b628d44bc9b6b90ec70fdc6817593ff9b':
  PRSDK-3669: Updated copyright year info
  PRSDK-3669: Fix for C++ compilation issue

23 months agoPRSDK-3669: Updated copyright year info
Dasnavis Sabiya [Wed, 17 Apr 2019 04:17:01 +0000 (09:47 +0530)]
PRSDK-3669: Updated copyright year info

2 years agoAdd Cadence bare-metal driver
Thanh Tran [Fri, 12 Apr 2019 23:17:03 +0000 (19:17 -0400)]
Add Cadence bare-metal driver

2 years agoPRSDK-3669: Fix for C++ compilation issue
Dasnavis Sabiya [Thu, 11 Apr 2019 03:28:14 +0000 (08:58 +0530)]
PRSDK-3669: Fix for C++ compilation issue

Including the header file usbdbulkint.h before the dependent header file usblib.h
results in compilation error.
This causes "undefined" error while validating the C++ build
environment.
This patch provides the fix to this by including the dependent header
file

2 years agoMoving away from const USB_Config
Thanh Tran [Tue, 9 Apr 2019 18:52:55 +0000 (14:52 -0400)]
Moving away from const USB_Config

USB_Config can be set dynamically during run time so need to change
it to non-const.

Also fix linking error due to mismatch declarations of
consts variables

2 years agoMerge pull request #111 in PROCESSOR-SDK/usb from 5.3.docs to master DEV.PROCESSOR-SDK.05.03.00.05 DEV.USB_LLD.01.00.00.17
Mahesh Radhakrishnan [Tue, 19 Mar 2019 01:32:37 +0000 (20:32 -0500)]
Merge pull request #111 in PROCESSOR-SDK/usb from 5.3.docs to master

* commit 'dea6f6f1ef0b769c68a10fc47f789f0b5aa19f2b':
  Update docs for 5.3

2 years agoUpdate docs for 5.3
Thanh Tran [Tue, 19 Mar 2019 00:32:39 +0000 (20:32 -0400)]
Update docs for 5.3

2 years agoSome clean up and attempt to make CDC DWC work
Thanh Tran [Mon, 18 Mar 2019 21:57:41 +0000 (17:57 -0400)]
Some clean up and attempt to make CDC DWC work

2 years agoMerge pull request #110 in PROCESSOR-SDK/usb from PRSDK-5533_failed_enum_by_bulk_in...
Mahesh Radhakrishnan [Mon, 11 Mar 2019 23:40:49 +0000 (18:40 -0500)]
Merge pull request #110 in PROCESSOR-SDK/usb from PRSDK-5533_failed_enum_by_bulk_in to master

* commit '177f749d28305872c80a39c578bfb9f7d252f9d2':
  Replace if(1) with previously used code
  Remove consolePrintf
  Add reset fix for MSC baremetal AM335x
  Clean up the code that resets the USBSS
  Fix typo in code comments
  Add ability to restart the USB stack
  Properly tear down TX DMA during disconnect

2 years agoMerge pull request #107 in PROCESSOR-SDK/usb from PRSDK-3855_remove_printf_in_debug_b...
Mahesh Radhakrishnan [Mon, 11 Mar 2019 23:40:30 +0000 (18:40 -0500)]
Merge pull request #107 in PROCESSOR-SDK/usb from PRSDK-3855_remove_printf_in_debug_build to master

* commit 'fd63b706c67f0fbca195d91042a3ae042ea488f2':
  Remove debug_printf in debug build

2 years agoMerge pull request #109 in PROCESSOR-SDK/usb from PRSDK-5489_wrong_bulk_state_when_pr...
Mahesh Radhakrishnan [Mon, 11 Mar 2019 23:39:20 +0000 (18:39 -0500)]
Merge pull request #109 in PROCESSOR-SDK/usb from PRSDK-5489_wrong_bulk_state_when_preempted to master

* commit '0444c3f2a719667f1e02f101938471f452441899':
  Fix mismatch Bulk state when USB task is preempted

2 years agoReplace if(1) with previously used code
Thanh Tran [Mon, 11 Mar 2019 23:15:04 +0000 (19:15 -0400)]
Replace if(1) with previously used code

2 years agoMerge pull request #108 in PROCESSOR-SDK/usb from PRSDK-5003_adding_dev_bulk_for_am57...
Mahesh Radhakrishnan [Mon, 11 Mar 2019 22:51:07 +0000 (17:51 -0500)]
Merge pull request #108 in PROCESSOR-SDK/usb from PRSDK-5003_adding_dev_bulk_for_am57x_evm to master

* commit 'c5d6d8b8bdb63e620631a0085775532bba5c80fc':
  Add Dev Bulk example for AM572x EVM

2 years agoRemove consolePrintf
Thanh Tran [Mon, 11 Mar 2019 21:22:08 +0000 (17:22 -0400)]
Remove consolePrintf

These consolePrintfs were supposed to be removed during code
cleanup earlier, but I missed them.

2 years agoAdd reset fix for MSC baremetal AM335x
Thanh Tran [Mon, 11 Mar 2019 21:13:08 +0000 (17:13 -0400)]
Add reset fix for MSC baremetal AM335x

Add USB reset for AM335x DEV MSC bare-metal example

2 years agoClean up the code that resets the USBSS
Thanh Tran [Mon, 11 Mar 2019 19:05:18 +0000 (15:05 -0400)]
Clean up the code that resets the USBSS

Fix comments, clean up, and add the reset code into
bare metal AM335x as well.

2 years agoFix typo in code comments
Thanh Tran [Sat, 9 Mar 2019 02:37:02 +0000 (21:37 -0500)]
Fix typo in code comments

2 years agoFix mismatch Bulk state when USB task is preempted
Thanh Tran [Sat, 9 Mar 2019 01:57:36 +0000 (20:57 -0500)]
Fix mismatch Bulk state when USB task is preempted

When USB is running in a low priority task, a higher priority
task can pre-empt it. This pre-emption messes up the internal USB
bulk state and renders the USB stack not working.

Fix is to set the Bulk state before calling the lower level API that
sets up the USB core transaction.

2 years agoAdd Dev Bulk example for AM572x EVM
Thanh Tran [Sat, 9 Mar 2019 01:45:43 +0000 (20:45 -0500)]
Add Dev Bulk example for AM572x EVM

2 years agoRemove debug_printf in debug build
Thanh Tran [Fri, 8 Mar 2019 19:30:40 +0000 (14:30 -0500)]
Remove debug_printf in debug build

debug_printf() is a wrapper to UART_printf by default
UART is running in interrupt mode by default. This will cause
random exception that's hard to debug.  Remove this printf because
of this reason.

debug_printf() can be mapped to a function that prints to memory buffer
if necessary.

2 years agoAdd ability to restart the USB stack
Thanh Tran [Fri, 8 Mar 2019 02:29:09 +0000 (21:29 -0500)]
Add ability to restart the USB stack

Soft-reset USBSS and restart USB stack upon USB disconnection
This is to fix USB device enumeration problem after USB disconnect
while USB USB bulk in is happening.

2 years agoProperly tear down TX DMA during disconnect
Thanh Tran [Thu, 7 Mar 2019 01:38:38 +0000 (20:38 -0500)]
Properly tear down TX DMA during disconnect

If disconnecting USB cable while the device is
doing Bulk IN transaction can cause problem. Basically the next
Bulk IN transaction after connecting USB cable again will send out
bogus data (seen in the SCSI INQUIRY command)

Add proper DMA tear down to prevent problem.

This commit fix part of tear down. It helps but not completely solve
all problems yet.

2 years agoUSB CDC support
Thanh Tran [Thu, 28 Feb 2019 01:30:15 +0000 (20:30 -0500)]
USB CDC support

Add USB CDC class support and USB CDC example
Demo simply echoes what it receives from the terminal
connected to CDC virtual com port.