]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/mcasp-lld.git/log
keystone-rtos/mcasp-lld.git
4 years agokw_fixes DEV.MCASP_LLD.1.01.00.15B REL.PDK.J7.01.00.00.06 REL.PDK.J7.01.00.00.07 REL.PDK.J7.01.00.00.08 REL.PDK.J7.01.00.00.09
Mahesh Radhakrishnan [Mon, 7 Oct 2019 21:24:19 +0000 (17:24 -0400)]
kw_fixes

4 years agoKlocwork fixes for v0 driver
Mahesh Radhakrishnan [Mon, 7 Oct 2019 19:29:36 +0000 (15:29 -0400)]
Klocwork fixes for v0 driver

4 years agoPRSDK-6460: Fixing doxygen issues DEV.MCASP_LLD.1.01.00.15A REL.PDK.J7.01.00.00.05
Mahesh Radhakrishnan [Thu, 3 Oct 2019 19:55:09 +0000 (15:55 -0400)]
PRSDK-6460: Fixing doxygen issues

4 years agoKlocwork fixes on J7
Mahesh Radhakrishnan [Thu, 3 Oct 2019 03:04:50 +0000 (23:04 -0400)]
Klocwork fixes on J7

4 years agoKlocwork Fixes for J7/AM65x DEV.MCASP_LLD.1.01.00.15 DEV.PROCESSOR-SDK.06.01.00.07 REL.PDK.J7.01.00.00.04
Mahesh Radhakrishnan [Thu, 26 Sep 2019 14:18:37 +0000 (10:18 -0400)]
Klocwork Fixes for J7/AM65x

4 years ago6.1 doc/ver update
Mahesh Radhakrishnan [Sun, 29 Sep 2019 19:22:08 +0000 (15:22 -0400)]
6.1 doc/ver update

4 years agoPDK-2666: c++ build fix REL.PDK.J7.01.00.00.01 REL.PDK.J7.01.00.00.02 REL.PDK.J7.01.00.00.03
Prasad Konnur [Tue, 24 Sep 2019 08:53:36 +0000 (14:23 +0530)]
PDK-2666: c++ build fix

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
4 years agoPRSDK-7097: Assigning .text to DDR_0 to fit the examples in memory
Mahesh Radhakrishnan [Tue, 24 Sep 2019 15:52:43 +0000 (11:52 -0400)]
PRSDK-7097: Assigning .text to DDR_0 to fit the examples in memory

4 years agoPRSDK-6302: Updates for KW fixes done on OSAL
Mahesh Radhakrishnan [Fri, 13 Sep 2019 15:39:26 +0000 (11:39 -0400)]
PRSDK-6302: Updates for KW fixes done on OSAL

4 years agoPDK-2879: Added digital audio example for J7 EVM infotaiment board 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 REL.PDK.J7.00.09.01.03 REL.PDK.J7.00.09.01.04 REL.PDK.J7.00.09.01.05
Pratap Reddy [Tue, 9 Jul 2019 15:42:33 +0000 (21:12 +0530)]
PDK-2879: Added digital audio example for J7 EVM infotaiment board

 - Observing noise in the audio output which needs some tuning for the clocks

4 years agoPDK-2851: Added analog audio loopback test for J7 EVM infotainment board 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
Pratap Reddy [Sat, 6 Jul 2019 01:41:08 +0000 (07:11 +0530)]
PDK-2851: Added analog audio loopback test for J7 EVM infotainment board

4 years agoPDK-4278: Fix for Board control API failure for IO Expander config
Pratap Reddy [Fri, 5 Jul 2019 01:35:25 +0000 (07:05 +0530)]
PDK-4278: Fix for Board control API failure for IO Expander config

4 years agoMcASP loopback task statically created DEV.MCASP_LLD.1.01.00.14 DEV.PROCESSOR-SDK.06.00.00.05 REL.PDK.J7.00.09.00.02 REL.PDK.J7.00.09.00.03 REL.PDK.J7.00.09.00.04 REL.PDK.J7.00.09.00.05
Stephen Molfetta [Mon, 24 Jun 2019 14:46:06 +0000 (09:46 -0500)]
McASP loopback task statically created

This is done to match other devices in test app for cleanliness.

4 years agoCleaning up Board_control hack
Stephen Molfetta [Mon, 24 Jun 2019 14:08:14 +0000 (09:08 -0500)]
Cleaning up Board_control hack

Adding comments to remove when Board library issue has been resolved

4 years agoReverting buffer size change
Stephen Molfetta [Mon, 24 Jun 2019 13:55:52 +0000 (08:55 -0500)]
Reverting buffer size change

4 years agoForcing ring size alignment
Stephen Molfetta [Wed, 19 Jun 2019 18:42:09 +0000 (13:42 -0500)]
Forcing ring size alignment

Rings must be aligned and also carved on the UDMA cache line size
multiple.  Otherwise, linker may place sections in the holes and result in
memory corruption.

4 years agoConverting C66x IntrRouter config to use SYSFW
Stephen Molfetta [Wed, 19 Jun 2019 18:41:17 +0000 (13:41 -0500)]
Converting C66x IntrRouter config to use SYSFW

4 years agoUsing default OSAL MMU function
Stephen Molfetta [Wed, 19 Jun 2019 16:44:43 +0000 (11:44 -0500)]
Using default OSAL MMU function

Validated driver on A72

4 years agoSelecting NAVSS instance based on CPU
Stephen Molfetta [Wed, 19 Jun 2019 16:43:44 +0000 (11:43 -0500)]
Selecting NAVSS instance based on CPU

No Main NAVSS resources are allocated to MCU R5F by default. Instead of
overriding with parameters, we use MCU NAVSS for MCU R5F

4 years agoConverting clock mux config to use SYSFW API
Stephen Molfetta [Wed, 19 Jun 2019 16:43:20 +0000 (11:43 -0500)]
Converting clock mux config to use SYSFW API

4 years agoChanging to Sciclient Clocking calls - WIP.
Danny Jochelson [Wed, 19 Jun 2019 15:29:42 +0000 (10:29 -0500)]
Changing to Sciclient Clocking calls - WIP.

Work in progress for using Sciclient Clocking calls instead of
direct register writes.

4 years agoRemoved RX/TX channel workaround for C66 build.
Danny Jochelson [Tue, 18 Jun 2019 19:33:37 +0000 (14:33 -0500)]
Removed RX/TX channel workaround for C66 build.

For MCU ARM R5 core, a workaround is needed for the RX/TX channel
assignments.  Made this workaround only for the MCU ARM R5 build
of the Audio loopback examples.

4 years agoAudio Loopback functional on MCU Cortex R5F.
Danny Jochelson [Fri, 24 May 2019 23:30:52 +0000 (18:30 -0500)]
Audio Loopback functional on MCU Cortex R5F.

Audio inputs through PCM3168A ADC to MCU Cortex R5F, and
then is routed to PCM3168A DAC's.
Line input -> J38 jack on motherboard.
Output -> Top jack on J41.

Attempted to use Board library for Board_control() setting
the Audio Codec Reset Pin (via I2C3), but was not able to
successfully get this to work.
Instead, the application opens and closes the I2C3 handle,
and needed to set i2cCfg.baseAddr to CSL_I2C3_CFG_BASE to
get this functional.

4 years agoCleaned example makefiles.
Danny Jochelson [Thu, 23 May 2019 01:39:29 +0000 (20:39 -0500)]
Cleaned example makefiles.

Also, experimenting with UDMA configurations.

4 years agoRemoving setting unneeded IO Exp signal
Stephen Molfetta [Mon, 20 May 2019 13:48:55 +0000 (08:48 -0500)]
Removing setting unneeded IO Exp signal

Adding a few comments for clarity

4 years agoUpdating IO exp init code
Stephen Molfetta [Fri, 17 May 2019 19:53:55 +0000 (14:53 -0500)]
Updating IO exp init code

4 years agoTMP: C66x CTRL MMR config through VA/RAT
Stephen Molfetta [Fri, 17 May 2019 16:53:39 +0000 (11:53 -0500)]
TMP: C66x CTRL MMR config through VA/RAT

This should be reverted once functions are triggered in SYSFW

4 years agoAdding I2C IO Expander configuration
Stephen Molfetta [Fri, 17 May 2019 16:52:37 +0000 (11:52 -0500)]
Adding I2C IO Expander configuration

Needed for EVM JTAG mux selection to pass through necessary McASP and
AUDIO_REFCLK2 signals

4 years agoUpdating clock selection for EVM
Stephen Molfetta [Fri, 17 May 2019 14:19:33 +0000 (09:19 -0500)]
Updating clock selection for EVM

4 years agoUpdating McASP configuration for EVM
Stephen Molfetta [Fri, 17 May 2019 14:17:20 +0000 (09:17 -0500)]
Updating McASP configuration for EVM

4 years agoModifying McASP instance for EVM
Stephen Molfetta [Thu, 16 May 2019 23:32:49 +0000 (18:32 -0500)]
Modifying McASP instance for EVM

4 years ago6.0 doc/ver update
Mahesh Radhakrishnan [Mon, 24 Jun 2019 18:27:47 +0000 (14:27 -0400)]
6.0 doc/ver update

4 years agoPRSDK-4730: enable testing of mcaspControlChan by default in McASP LLD unit test
Jianzhong Xu [Wed, 10 Apr 2019 18:07:11 +0000 (14:07 -0400)]
PRSDK-4730: enable testing of mcaspControlChan by default in McASP LLD unit test
so that no manual testing is needed for PRSDK-3342.

4 years agoPRSDK-4453 Addressing review comments
Sinthu Raja M [Tue, 21 May 2019 07:15:20 +0000 (12:45 +0530)]
PRSDK-4453 Addressing review comments

 Removed redundant config file for Device loopback SMP example.
 Update existing config file to enable support for SMP and non SMP
 mode.

4 years agoPRSDK-4453 Add SMP enabled support for A53 and A15 core
Sinthu Raja M [Mon, 20 May 2019 06:16:30 +0000 (11:46 +0530)]
PRSDK-4453 Add SMP enabled support for A53 and A15 core

 Update makefile and component makefile to add entry for SMP enabled
 examples
 Add project text file and config file to add SMP enabled support for
 AM572x A15 core

4 years agoFixed I2C dependency for J7 board include
Sivaraj R [Mon, 20 May 2019 08:49:33 +0000 (14:19 +0530)]
Fixed I2C dependency for J7 board include

Signed-off-by: Sivaraj R <sivaraj@ti.com>
5 years agoPDK-4085: Add j721e_evm build support REL.PDK.J7.00.09.00.01
Sivaraj R [Tue, 16 Apr 2019 13:37:21 +0000 (19:07 +0530)]
PDK-4085: Add j721e_evm build support

Signed-off-by: Sivaraj R <sivaraj@ti.com>
5 years agoFixing McASP initialization error DEV.MCASP_LLD.1.01.00.13 DEV.PROCESSOR-SDK.05.03.00.05 REL.PDK.J7.00.08.00.04 REL.PDK.J7.00.08.00.05 REL.PDK.J7.00.08.00.06 REL.PDK.J7.00.08.00.07 REL.PDK.J7.00.08.00.08 REL.PDK.J7.00.08.00.09 REL.PDK.J7.00.08.00.10 REL.PDK.J7.00.08.00.11 REL.PDK.J7.00.08.00.12
Stephen Molfetta [Tue, 19 Mar 2019 16:46:25 +0000 (11:46 -0500)]
Fixing McASP initialization error

5 years agoFixing Audio loopback build error from AIC header
Stephen Molfetta [Tue, 19 Mar 2019 15:42:50 +0000 (10:42 -0500)]
Fixing Audio loopback build error from AIC header

5 years agoRelease notes & documentation update
Mahesh Radhakrishnan [Tue, 19 Mar 2019 16:08:03 +0000 (12:08 -0400)]
Release notes & documentation update

5 years agoAdding support for C66x 1/2 REL.PDK.J7.00.08.00.02 REL.PDK.J7.00.08.00.03
Stephen Molfetta [Thu, 7 Mar 2019 14:41:53 +0000 (08:41 -0600)]
Adding support for C66x 1/2

5 years agoMerge pull request #110 in PROCESSOR-SDK/mcasp-lld from kedarc_updates to master REL.PDK.J7.00.08.00.01
Sivaraj R [Wed, 6 Mar 2019 06:14:30 +0000 (00:14 -0600)]
Merge pull request #110 in PROCESSOR-SDK/mcasp-lld from kedarc_updates to master

* commit 'baae757cad011ec720d97e83b4953446d93d0273':
  Added .gitignore to ignore generated files

5 years agoAdded .gitignore to ignore generated files
Kedar Chitnis [Wed, 6 Mar 2019 05:49:48 +0000 (11:19 +0530)]
Added .gitignore to ignore generated files

5 years agoMerge pull request #108 in PROCESSOR-SDK/mcasp-lld from PDK-2396_Adding-A72 to master
Sivaraj R [Tue, 5 Mar 2019 02:03:37 +0000 (20:03 -0600)]
Merge pull request #108 in PROCESSOR-SDK/mcasp-lld from PDK-2396_Adding-A72 to master

* commit '09acff9cce11e580c86d8f5ed0961fcd88293221':
  Supporting A72 build

5 years agoSupporting A72 build
Stephen Molfetta [Mon, 4 Mar 2019 15:59:42 +0000 (09:59 -0600)]
Supporting A72 build

5 years agoMerge branch 'master' of ssh://bitbucket.itg.ti.com/processor-sdk/mcasp-lld into...
Stephen Molfetta [Mon, 4 Mar 2019 15:58:17 +0000 (09:58 -0600)]
Merge branch 'master' of ssh://bitbucket.itg.ti.com/processor-sdk/mcasp-lld into PDK-2396

5 years agoMerge pull request #107 in PROCESSOR-SDK/mcasp-lld from PDK-2396_R5f-only_HOTFIX...
Mahesh Radhakrishnan [Fri, 1 Mar 2019 19:35:16 +0000 (13:35 -0600)]
Merge pull request #107 in PROCESSOR-SDK/mcasp-lld from PDK-2396_R5f-only_HOTFIX to master

* commit '7b33ab44c4f15675aec1646ee9484c2a81860796':
  Fixing uninitialized variable build error with GCC

5 years agoFixing uninitialized variable build error with GCC
Stephen Molfetta [Fri, 1 Mar 2019 19:21:19 +0000 (13:21 -0600)]
Fixing uninitialized variable build error with GCC

5 years agoMerge pull request #106 in PROCESSOR-SDK/mcasp-lld from PDK-2396_R5F-only to master
Sivaraj R [Fri, 1 Mar 2019 02:15:48 +0000 (20:15 -0600)]
Merge pull request #106 in PROCESSOR-SDK/mcasp-lld from PDK-2396_R5F-only to master

* commit 'fc1535b2d2a09d8ae934fe32377158815c4ab269':
  Fixing packaging issues for Jenkins build
  Only building for relevant cores right now
  Renaming J7 to J721E
  Enabling Audio Loopback example
  Fixing hard-coded UART print
  Adding QT platform for J7
  WIP - testing latest VLAB toolbox
  Updating McASP config to match J7ES spec
  Adding sciclient integration
  Adding configuration override for McASP example
  Removing pinmux code copied from Maxwell
  Updating J7 SOC details
  Enabling A72 buildsfor J7
  Adding C66x support on J7
  Reverting Board/UART code for J7 build
  Updating DMA event definitions
  J7 example building and running into main task
  Building J7 device loopback for mcu1_0
  Adding J7 build support based on AM65xx

5 years agoFixing packaging issues for Jenkins build
Stephen Molfetta [Thu, 28 Feb 2019 18:04:48 +0000 (12:04 -0600)]
Fixing packaging issues for Jenkins build

5 years agoOnly building for relevant cores right now
Stephen Molfetta [Thu, 28 Feb 2019 16:29:06 +0000 (10:29 -0600)]
Only building for relevant cores right now

5 years agoRenaming J7 to J721E
Stephen Molfetta [Mon, 18 Feb 2019 20:48:40 +0000 (14:48 -0600)]
Renaming J7 to J721E

5 years agoEnabling Audio Loopback example
Stephen Molfetta [Fri, 1 Feb 2019 20:24:20 +0000 (14:24 -0600)]
Enabling Audio Loopback example

5 years agoFixing hard-coded UART print
Stephen Molfetta [Fri, 1 Feb 2019 17:52:27 +0000 (11:52 -0600)]
Fixing hard-coded UART print

Need to use MCASP_log so that if the log is configured for CIO and UART
is removed from the application that we don't get a crash for
uninitialized UART stdio

5 years agoAdding QT platform for J7
Stephen Molfetta [Fri, 1 Feb 2019 17:48:21 +0000 (11:48 -0600)]
Adding QT platform for J7

5 years agoWIP - testing latest VLAB toolbox
Stephen Molfetta [Fri, 9 Nov 2018 21:03:36 +0000 (15:03 -0600)]
WIP - testing latest VLAB toolbox

5 years agoUpdating McASP config to match J7ES spec
Stephen Molfetta [Fri, 9 Nov 2018 16:43:33 +0000 (10:43 -0600)]
Updating McASP config to match J7ES spec

Previous clock source was reused from Maxwell configuration.  On J7ES,
this clock source does not exist, but somehow the simulator ignores
this, so it was not detected.

Now, we use a real clock source with a typical frequency to allow for
easy 48 kHz configuration

5 years agoAdding sciclient integration
Stephen Molfetta [Thu, 20 Sep 2018 16:25:31 +0000 (11:25 -0500)]
Adding sciclient integration

5 years agoAdding configuration override for McASP example
Stephen Molfetta [Thu, 6 Sep 2018 19:54:00 +0000 (14:54 -0500)]
Adding configuration override for McASP example

5 years agoRemoving pinmux code copied from Maxwell
Stephen Molfetta [Thu, 6 Sep 2018 14:54:06 +0000 (09:54 -0500)]
Removing pinmux code copied from Maxwell

Will update later when defined for J7

5 years agoUpdating J7 SOC details
Stephen Molfetta [Thu, 6 Sep 2018 14:46:55 +0000 (09:46 -0500)]
Updating J7 SOC details

- Including proper number of McASP instances and number of serializers
- Removing CPU-dependent muxing info until the path is tested and the muxing
  info is more well-established

5 years agoEnabling A72 buildsfor J7
Stephen Molfetta [Thu, 30 Aug 2018 14:48:10 +0000 (09:48 -0500)]
Enabling A72 buildsfor J7

Needed to add MMU config for all aarch64 builds.  Nothing else needed

5 years agoAdding C66x support on J7
Stephen Molfetta [Tue, 14 Aug 2018 19:56:49 +0000 (14:56 -0500)]
Adding C66x support on J7

5 years agoReverting Board/UART code for J7 build
Stephen Molfetta [Mon, 16 Jul 2018 16:46:17 +0000 (11:46 -0500)]
Reverting Board/UART code for J7 build

Based on latest updated to enable these modules for J7 configurations

5 years agoUpdating DMA event definitions
Stephen Molfetta [Mon, 16 Jul 2018 16:00:31 +0000 (11:00 -0500)]
Updating DMA event definitions

Based on CSL definitions for McASP PDMA channels.

Resolves application crash and allows the main thread to run with
overrun errors

5 years agoJ7 example building and running into main task
Stephen Molfetta [Fri, 15 Jun 2018 19:20:27 +0000 (14:20 -0500)]
J7 example building and running into main task

5 years agoBuilding J7 device loopback for mcu1_0
Stephen Molfetta [Tue, 12 Jun 2018 20:15:05 +0000 (15:15 -0500)]
Building J7 device loopback for mcu1_0

5 years agoAdding J7 build support based on AM65xx
Stephen Molfetta [Thu, 26 Apr 2018 21:20:06 +0000 (16:20 -0500)]
Adding J7 build support based on AM65xx

5 years agoMerge pull request #105 in PROCESSOR-SDK/mcasp-lld from review-PRSDK-5273 to master
Mahesh Radhakrishnan [Fri, 1 Feb 2019 16:55:22 +0000 (10:55 -0600)]
Merge pull request #105 in PROCESSOR-SDK/mcasp-lld from review-PRSDK-5273 to master

* commit '895c83243c73b59fb9e9b75dce8f4dd32b30aab7':
  PRSDK-5273: RTSC depdencies added

5 years agoMerge pull request #101 in PROCESSOR-SDK/mcasp-lld from PRSDK-4108 to master
Mahesh Radhakrishnan [Wed, 30 Jan 2019 18:04:23 +0000 (12:04 -0600)]
Merge pull request #101 in PROCESSOR-SDK/mcasp-lld from PRSDK-4108 to master

* commit 'aeb328855cc8774e93f672e06d21110053444090':
  PRSDK-4108 Fix linking issue for AM57xx platform
  PRSDK-4108 Add API to adjust/change volum in Codec

5 years agoPRSDK-4108 Fix linking issue for AM57xx platform
Sinthu Raja M [Fri, 25 Jan 2019 05:42:43 +0000 (11:12 +0530)]
PRSDK-4108 Fix linking issue for AM57xx platform

 Issue: update volume function added for aic3106 codec which is called
 from aic31.c which is common for aic3104 and aic3106 codec.

 Fix: Updated aic3104.c codec file with the update volume function.

5 years agoPRSDK-4108 Add API to adjust/change volum in Codec
Sinthu Raja M [Tue, 6 Nov 2018 07:20:18 +0000 (12:50 +0530)]
PRSDK-4108 Add API to adjust/change volum in Codec

 Add APIs to adjust or change volume in codec

5 years agoPRSDK-5273: RTSC depdencies added
Aravind Batni [Tue, 22 Jan 2019 16:13:24 +0000 (11:13 -0500)]
PRSDK-5273: RTSC depdencies added

Signed-off-by: Aravind Batni <aravindbr@ti.com>
5 years agoMerge pull request #104 in PROCESSOR-SDK/mcasp-lld from 5.2_doc_update to master DEV.MCASP_LLD.1.01.00.12 DEV.PROCESSOR-SDK.05.02.00.07
Hao Zhang [Wed, 12 Dec 2018 20:06:52 +0000 (14:06 -0600)]
Merge pull request #104 in PROCESSOR-SDK/mcasp-lld from 5.2_doc_update to master

* commit '3fc9345d6a93eb2b8a67731d4cbb40ca1f451285':
  5.2_doc_relnotes_update

5 years ago5.2_doc_relnotes_update
Mahesh Radhakrishnan [Wed, 12 Dec 2018 17:27:35 +0000 (12:27 -0500)]
5.2_doc_relnotes_update

5 years agoMerge pull request #99 in PROCESSOR-SDK/mcasp-lld from PRSDK-4982 to master
Mahesh Radhakrishnan [Wed, 5 Dec 2018 00:36:18 +0000 (18:36 -0600)]
Merge pull request #99 in PROCESSOR-SDK/mcasp-lld from PRSDK-4982 to master

* commit '4442415421bae0d522dca570bb5f9f6b725581c8':
  Fixing bad typecasting at interrupt unregister

5 years agoMerge pull request #102 in PROCESSOR-SDK/mcasp-lld from PRSDK-4704 to master
Hao Zhang [Tue, 4 Dec 2018 22:40:31 +0000 (16:40 -0600)]
Merge pull request #102 in PROCESSOR-SDK/mcasp-lld from PRSDK-4704 to master

* commit '4ed51b09539121e2f00c13ee33868c8b3be75525':
  PRSDK-4704: MPU R5 examples. Increase size of region 1 to 32K

5 years agoMerge pull request #103 in PROCESSOR-SDK/mcasp-lld from PRSDK-297 to master
Mahesh Radhakrishnan [Sat, 1 Dec 2018 00:39:16 +0000 (18:39 -0600)]
Merge pull request #103 in PROCESSOR-SDK/mcasp-lld from PRSDK-297 to master

* commit '98f14c69c5ecb98a0d9df41311a340f0644cea84':
  PRSDK-297 Fix example waning for AM57x

5 years agoPRSDK-297 Fix example waning for AM57x
Sinthu Raja M [Fri, 30 Nov 2018 12:58:36 +0000 (18:28 +0530)]
PRSDK-297 Fix example waning for AM57x

 Update exmaple config file to remove code which allocates heap memory
 to L2SRAM which is not applicaple for AM57xx

 Update example code to take care of typecasting issue of signed and
 unsigned variable differences.

5 years agoPRSDK-4704: MPU R5 examples. Increase size of region 1 to 32K
Mahesh Radhakrishnan [Mon, 19 Nov 2018 22:43:44 +0000 (17:43 -0500)]
PRSDK-4704: MPU R5 examples. Increase size of region 1 to 32K

5 years agoMerge pull request #100 in PROCESSOR-SDK/mcasp-lld from PRSDK-4879_followup to master
Mahesh Radhakrishnan [Mon, 5 Nov 2018 23:07:25 +0000 (17:07 -0600)]
Merge pull request #100 in PROCESSOR-SDK/mcasp-lld from PRSDK-4879_followup to master

* commit '014146b00cc88c4a6ff8a18ea245f04beb78331c':
  Fixing A53 build error after test refactor rebase

5 years agoFixing A53 build error after test refactor rebase
Stephen Molfetta [Mon, 5 Nov 2018 22:12:53 +0000 (16:12 -0600)]
Fixing A53 build error after test refactor rebase

5 years agoFixing bad typecasting at interrupt unregister
Stephen Molfetta [Fri, 2 Nov 2018 20:10:42 +0000 (15:10 -0500)]
Fixing bad typecasting at interrupt unregister

5 years agoMerge pull request #98 in PROCESSOR-SDK/mcasp-lld from PRSDK-4879 to master
Mahesh Radhakrishnan [Tue, 30 Oct 2018 19:22:51 +0000 (14:22 -0500)]
Merge pull request #98 in PROCESSOR-SDK/mcasp-lld from PRSDK-4879 to master

* commit '07cb2068ab337aace4d50fcac29567e0a32106b1':
  Moving cache wb operation for Tx channel
  Device loopback test redesign

5 years agoMoving cache wb operation for Tx channel
Stephen Molfetta [Tue, 23 Oct 2018 16:55:10 +0000 (11:55 -0500)]
Moving cache wb operation for Tx channel

Cache operation needs to be performed after the new buffer has been
created in cached memory and before submitting back to the channel.

5 years agoDevice loopback test redesign
Stephen Molfetta [Tue, 16 Oct 2018 13:58:32 +0000 (08:58 -0500)]
Device loopback test redesign

Based on recommendation by design team, the device loopback should be
restructured to prevent Rx and Tx channels blocking each other's
transfers, which should otherwise be independent.  The current test
increases potential for Tx underrun, and is especially magnified when
using PDMA, which introduces an extra layer of buffering.

The changes are valid for EDMA as well.

Exta restucturing was required to allow device and audio loopback to work
with the same audioSample_io.c code.  Ideally, the device loopback should
be removed from this and kept only in the regression test for simplicity.

5 years agoMerge pull request #97 in PROCESSOR-SDK/mcasp-lld from PRSDK-4217 to master
Mahesh Radhakrishnan [Mon, 29 Oct 2018 18:21:33 +0000 (13:21 -0500)]
Merge pull request #97 in PROCESSOR-SDK/mcasp-lld from PRSDK-4217 to master

* commit 'bc5391ac3be35314b9acc6e321e662268d95822b':
  Partially revert "Updating EDMA handle to pass in like UDMA"
  Fixes to regression test after driver merge
  Generalizing maximum active buffer count
  Removing temp DMA object definition
  Further cleanup
  Enabling UDMA enable/disable sequences
  Altering FIFO enable/disable sequences
  Merging redundant UDMA functions
  Refactoring Pwrm handler into main driver
  Generalizing DMA callback (non-loopjob)
  Updating EDMA handle to pass in like UDMA
  Beginning merge of Mcasp_HwInfo and Mcasp_HwObj
  Abstracting EDMA PaRAM set index through API
  Finished merging all driver code.
  Updating localAbortIO function
  Implementing deleteChan
  Generalizing mcaspCreateChan
  Updating mcaspBindDev function
  Refactoring driver source files

5 years agoPartially revert "Updating EDMA handle to pass in like UDMA"
Stephen Molfetta [Wed, 17 Oct 2018 16:34:24 +0000 (11:34 -0500)]
Partially revert "Updating EDMA handle to pass in like UDMA"

We enable the driver to accept both legacy and new ways to pass EDMA
handle.

This partially reverts commit 4eede7b28a82b99e7979ec2eaa641ea699ff9eb5.

Conflicts:
src/dma/V0/mcasp_dma.c

5 years agoFixes to regression test after driver merge
Stephen Molfetta [Tue, 9 Oct 2018 19:16:22 +0000 (14:16 -0500)]
Fixes to regression test after driver merge

5 years agoGeneralizing maximum active buffer count
Stephen Molfetta [Tue, 9 Oct 2018 16:25:46 +0000 (11:25 -0500)]
Generalizing maximum active buffer count

EDMA and UDMA may handle resources differently, so we need to have a
DMA-dependent setting for this check in the driver code

5 years agoRemoving temp DMA object definition
Stephen Molfetta [Tue, 9 Oct 2018 16:25:12 +0000 (11:25 -0500)]
Removing temp DMA object definition

5 years agoFurther cleanup
Stephen Molfetta [Wed, 3 Oct 2018 21:22:30 +0000 (16:22 -0500)]
Further cleanup

- Removing dead code and irrelevant comments in UDMA code
- Updating submit packet to DMA function to be more generic

5 years agoEnabling UDMA enable/disable sequences
Stephen Molfetta [Wed, 3 Oct 2018 13:51:54 +0000 (08:51 -0500)]
Enabling UDMA enable/disable sequences

Commenting out enable/disable routines.  Enable still requires a "hack" to
enable before rings are pushed to the free queue and requires further
investigation.  Disable works as expected but doesn't include any teardown or
PDMA flush yet.

5 years agoAltering FIFO enable/disable sequences
Stephen Molfetta [Tue, 2 Oct 2018 20:57:11 +0000 (15:57 -0500)]
Altering FIFO enable/disable sequences

Previously FIFO was enabled only at channel creation, and then upon
submission of the first packet, where FIFO is promptly disabled and
then re-enabled to clear FIFO contents.  This has the ill effect when
using UDMA and some data is pre-loaded to the FIFO before the McASP
state machine is active, and data in the first packet gets lost.
Depending on timing, this could occur mid-PDMA write and cause the
data synchronization detection to fail.  Also, we don't need to discard
any of the first packet.

Now we only enable FIFO every time we restart the state machine and disable the
FIFO every time we stop the state machine.  This has the effect of clearing the
FIFO in any stop/start condition as desired without the ill effect of dropping
some of the first packet when using UDMA.

5 years agoMerging redundant UDMA functions
Stephen Molfetta [Thu, 27 Sep 2018 21:57:41 +0000 (16:57 -0500)]
Merging redundant UDMA functions

Generalizing common code with a few dereferenced parameters to
distinguish between receive and transmit channels

5 years agoRefactoring Pwrm handler into main driver
Stephen Molfetta [Thu, 27 Sep 2018 21:57:12 +0000 (16:57 -0500)]
Refactoring Pwrm handler into main driver

Removing duplicate versions in DMA code

5 years agoGeneralizing DMA callback (non-loopjob)
Stephen Molfetta [Thu, 27 Sep 2018 21:10:00 +0000 (16:10 -0500)]
Generalizing DMA callback (non-loopjob)

EDMA/UDMA ISR call a general DMA callback which satisfies feeding both engines

5 years agoUpdating EDMA handle to pass in like UDMA
Stephen Molfetta [Thu, 27 Sep 2018 16:25:35 +0000 (11:25 -0500)]
Updating EDMA handle to pass in like UDMA

Both DMA handles should be passed in through the hardware parameters to be
consistent.  We migrate the EDMA handle out of the channel parametes.

!!! NOTE: This represents a break from the application over previous
    releases and needs to be documented and handled with care.

5 years agoBeginning merge of Mcasp_HwInfo and Mcasp_HwObj
Stephen Molfetta [Thu, 27 Sep 2018 16:21:54 +0000 (11:21 -0500)]
Beginning merge of Mcasp_HwInfo and Mcasp_HwObj

These are used between the driver API and driver internal object.  However,
their definitions are almost identical.  Eventually, the internal object
should just point to the HwInfo, but for now we can memcpy the two so that
we don't need so much code to initialize.

5 years agoAbstracting EDMA PaRAM set index through API
Stephen Molfetta [Wed, 26 Sep 2018 20:59:11 +0000 (15:59 -0500)]
Abstracting EDMA PaRAM set index through API