]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/log
processor-sdk/pdk.git
3 years ago[WIP][PDK-8726] OSPI: Separate OPSI tests keeping memory cached/non-cached
Aditya Wadhwa [Wed, 13 Jan 2021 10:36:01 +0000 (16:06 +0530)]
[WIP][PDK-8726] OSPI: Separate OPSI tests keeping memory cached/non-cached

- Added support for baremetal apps

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
3 years ago[WIP][PDK-8726] Separate OSPI tests keeping memory cached/non-cached
Aditya Wadhwa [Wed, 6 Jan 2021 18:28:07 +0000 (23:58 +0530)]
[WIP][PDK-8726] Separate OSPI tests keeping memory cached/non-cached

- added new tests that export cache as enabled
- separate mpu.xs files for cache enabled/disabled
- RTOS implemented, baremetal pending

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
3 years agoHyperflash : Tested with board diag on j721e es 1.1 REL.CORESDK.07.03.00.20
sujith [Tue, 12 Jan 2021 10:17:35 +0000 (15:47 +0530)]
Hyperflash : Tested with board diag on j721e es 1.1

Works fine in 166 MHz (333 MHz device clock)

Require to clean up code

Signed-off-by: sujith <sujith.s@ti.com>
3 years agoPDK-6706 : SPI Master example is not functional
sujith [Thu, 11 Mar 2021 16:10:42 +0000 (21:40 +0530)]
PDK-6706 : SPI Master example is not functional

The Master example would perform, couple of transactions with
slave app and stall/timeout with an error.

The "loopback" tests would always fail

Root Cause : The driver do not support operating McSPI in
digital loopback mode. As the IP did not support the same.

Fix: Disabled the loopback mode of operation for j721e & j7200

Test : Tested on j721e evm

Signed-off-by: sujith <sujith.s@ti.com>
3 years ago[PDK-9435] Board: DDR: Enable DDR Thermal Testapp for J7200
Don Dominic [Thu, 11 Mar 2021 14:45:36 +0000 (20:15 +0530)]
[PDK-9435] Board: DDR: Enable DDR Thermal Testapp for J7200

- enabled board_ddr_thermal_test_app for j7200 mcu1_0/mcu1_1/mcu2_0/mcu2_1
- Updates in board lib 'board/src/j7200_evm/board_ddrtempmonitor.c'
  - to enable all r5 cores
  - no interrupt routers b/w DDR controller and Main Domain R5
- so skip Sciclient IRQ Routing
  - for MCU Domain R5 cores
- query the IR Range from BoardCfg
  - translate to Core Interrupt Idx and configure path

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agoFirmware gen.sh update for ES1.1 HS testing
Piyali Goswami [Thu, 11 Mar 2021 10:26:37 +0000 (15:56 +0530)]
Firmware gen.sh update for ES1.1 HS testing

Firmware Gen.sh update for ES1.1 HS testing

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
3 years agoFix for proper sending and parsing of RM board config in HS
Piyali Goswami [Thu, 11 Mar 2021 05:59:57 +0000 (11:29 +0530)]
Fix for proper sending and parsing of RM board config in HS

Ignoring of the certificate is handled correctly by adjusting the size at source when the certificate is not passed and at sink when the certificate is passed.

Fixes: PDK-9427
Signed-off-by: Piyali Goswami <piyali_g@ti.com>
3 years ago[DSS M2M APP]Added sample application for DSS M2M Driver
Vivek Dhande [Wed, 10 Mar 2021 13:26:23 +0000 (18:56 +0530)]
[DSS M2M APP]Added sample application for DSS M2M Driver

Signed-off-by: Vivek Dhande <a0132295@ti.com>
3 years agofreertos: Add FreeRTOS kernel folders to gitignore
Don Dominic [Mon, 8 Mar 2021 04:26:45 +0000 (09:56 +0530)]
freertos: Add FreeRTOS kernel folders to gitignore

- Add the following folders in ti/kernel/freertos to gitignore
  - FreeRTOS-Labs/
  - FreeRTOS-LTS/
- These are cloned from https://github.com/FreeRTOS/ as defined in psdk.xml

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agoPDK-9285: IPC: Fix KW issues
Angela Stegmaier [Fri, 29 Jan 2021 23:52:34 +0000 (17:52 -0600)]
PDK-9285: IPC: Fix KW issues

Fix KW issues for AM64X IPC and MB build.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
3 years ago[DSS M2M Driver]Addressed review comments
Vivek Dhande [Tue, 9 Mar 2021 18:48:01 +0000 (00:18 +0530)]
[DSS M2M Driver]Addressed review comments

Signed-off-by: Vivek Dhande <a0132295@ti.com>
3 years ago[DSS M2M Driver]Fixed Doxygen API Guide Warnings
Vivek Dhande [Tue, 9 Mar 2021 09:55:11 +0000 (15:25 +0530)]
[DSS M2M Driver]Fixed Doxygen API Guide Warnings

Signed-off-by: Vivek Dhande <a0132295@ti.com>
3 years ago[DSS M2M Driver]Driver implementation: Patch-2
Vivek Dhande [Fri, 5 Mar 2021 10:02:23 +0000 (15:32 +0530)]
[DSS M2M Driver]Driver implementation: Patch-2

- Added implementation for 'Fvid2_processRequest()' and 'Fvid2_getProcessedRequest()'
- Implemented 'IOCTL_DSS_DCTRL_SET_PATH' and 'IOCTL_DSS_DCTRL_CLEAR_PATH' IOCTLs
- Implemented DMA completion Events
- Implemented internal functions needed for above

Signed-off-by: Vivek Dhande <a0132295@ti.com>
3 years ago[DSS M2M Driver]Driver implementation: Patch-1
Vivek Dhande [Sat, 27 Feb 2021 07:40:51 +0000 (13:10 +0530)]
[DSS M2M Driver]Driver implementation: Patch-1

- Added 'dss_m2mPriv.h'
- This files contains following
    - internal structures required for maintaining driver and HW Module states
    - Added support for multiple open/create to support multiple channel support

Signed-off-by: Vivek Dhande <a0132295@ti.com>
3 years ago[DSS M2M DRV][PDK-5179]DSS FVID2 Writeback M2M Driver
Vivek Dhande [Fri, 19 Feb 2021 17:12:18 +0000 (22:42 +0530)]
[DSS M2M DRV][PDK-5179]DSS FVID2 Writeback M2M Driver

- [PDK-5184]DSS Writeback Pipeline Support
- Added interface for DSS M2M driver
- Added nodes & edges for WB pipeline

Signed-off-by: Vivek Dhande <a0132295@ti.com>
3 years ago[PDK-9432] Sciclient : Rebased and Regenerated Sciclient Binaries
Don Dominic [Wed, 10 Mar 2021 18:30:18 +0000 (00:00 +0530)]
[PDK-9432] Sciclient : Rebased and Regenerated Sciclient Binaries

- Regenerated sclient binaries after rebasing
- Validated memcpy with latest binaries on j721e/j7200 mcu1_0 and mcu2_0 with noboot and uart boot.

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years ago[PDK-9432] J7200 BoardCfg: Update to the latest auto-generated from SysConfig/k3...
Don Dominic [Wed, 10 Mar 2021 17:24:58 +0000 (22:54 +0530)]
[PDK-9432] J7200 BoardCfg: Update to the latest auto-generated from SysConfig/k3-resource-partitioning

- This includes the updates in the following:
   - Remove shared allocation for MCU R5
       https://bitbucket.itg.ti.com/projects/PSDKLA/repos/k3-resource-partitioning/pull-requests/10/overview

- Rebuilt sciclient_boardcfg; sciclient_boardcfg for HS; sciclient_ccs_init; sciserver_testapp and copied to tools/ccsLoadDmsc

3 years ago[PDK-9432] J721E BoardCfg: Update to the latest auto-generated from SysConfig/k3...
Don Dominic [Wed, 10 Mar 2021 16:03:33 +0000 (21:33 +0530)]
[PDK-9432] J721E BoardCfg: Update to the latest auto-generated from SysConfig/k3-resource-partitioning

- This includes the updates in the following:
   - Remove shared allocation for MCU R5
       https://bitbucket.itg.ti.com/projects/PSDKLA/repos/k3-resource-partitioning/pull-requests/10/overview
   - Increase virt id range for A72_2
       https://bitbucket.itg.ti.com/projects/PSDKLA/repos/k3-resource-partitioning/pull-requests/12/overview

- Rebuilt sciclient_boardcfg; sciclient_boardcfg for HS; sciclient_ccs_init; sciserver_testapp and copied to tools/ccsLoadDmsc

3 years ago[PDK-9432] Sciclient : Updates to support BoardCfg with mcu1_0 non-secure host id...
Don Dominic [Wed, 10 Mar 2021 14:49:36 +0000 (20:19 +0530)]
[PDK-9432] Sciclient : Updates to support BoardCfg with mcu1_0 non-secure host id entries

-  Do not force mcu1_0 to be in secure mode for all cases
-  Set to secure mode in case the message is to be forwarded
-  Also The MCU1_0 will always be secure when trying to send the message to the TIFS directly to avoid self blocking.

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agoudma_event.c: Do not pass a NULL resp payload for the Sciclient_rmUdmapGcfgCfg function
Piyali Goswami [Thu, 11 Mar 2021 03:04:13 +0000 (08:34 +0530)]
udma_event.c: Do not pass a NULL resp payload for the Sciclient_rmUdmapGcfgCfg function

Response payload should not be NULL. The API fails in that case

Fixes: PDK-9431
Signed-off-by: Piyali Goswami <piyali_g@ti.com>
3 years agocopied binary and built firmware header .h file
Anuraag Tummanapally [Wed, 10 Mar 2021 15:55:49 +0000 (15:55 +0000)]
copied binary and built firmware header .h file

3 years agoPDK-6534 : un-expected ISR if the timer were running, before creation
Sujith S [Wed, 10 Mar 2021 09:00:27 +0000 (14:30 +0530)]
PDK-6534 : un-expected ISR if the timer were running, before creation

If the timer was running before the timer was created, on creation
especially in user start mode, an ISR would be triggered before
the timer was started.

Root cause : The timer module is not reset before the ISR registration
so, if the timer count lapses after creation but before starting the
the timer, an FALSE isr would be triggered.

Fix: Reset the timer peripheral at create time. This ensures that
counter is disabled and interrupt notification is disabled

Testing: Tested both baremetal & ti rtos unit test of the timer, it
works as expected. OSAL_Baremetal_TestApp and OSAL_TestApp works as
expected

Signed-off-by: Sujith S <sujith.s@ti.com>
3 years agoMMC: Build break fix REL.CORESDK.07.01.06.03 REL.CORESDK.07.01.06.04 REL.CORESDK.07.03.00.18 REL.CORESDK.07.03.00.19
Sujith S [Sat, 6 Mar 2021 16:28:48 +0000 (21:58 +0530)]
MMC: Build break fix

Signed-off-by: Sujith S <sujith.s@ti.com>
3 years agofreertos: posix support only in git and not in rel pkg REL.CORESDK.07.03.00.17
Badri S [Sat, 6 Mar 2021 04:07:00 +0000 (09:37 +0530)]
freertos: posix support only in git and not in rel pkg

remove support for freertos posix in release package
support only in development git folder

Signed-off-by: Badri S <badri@ti.com>
3 years agoPDK-7484 : Disabled HS400 from the supported modes list
Sujith S [Fri, 5 Mar 2021 20:38:47 +0000 (02:08 +0530)]
PDK-7484 : Disabled HS400 from the supported modes list

As per j721e errata (i2024) HS 400 is not supported
on mmc-sd instance 0

Tested MMCSD Regressions on j721e ES 1.0 EVM

ΓΌ01000000011a00006a3765730000000000000000475020200200010002000100CCSBL Revision: 01.00.10.00 (Mar  6 2021 - 01:34:19)
Waiting for tifs.bin ...
CCTIFS  ver: 21.1.0--v2021.01 (Terrific Llam
Waiting for multicore app ...
CCCCalibration Start
Calibration: Ticks per ms is 999994
Calibration Completed
:
:
MMCSD Regression Test Menu
--------------------------
 Test ID:   Description    Powercycle Required?
    0          DS Mode 1-bit Test            No
    1          DS Mode Test                  No
    2          HS Mode Test                  No
    8          SDR12 Mode Test               Yes
    9          SDR25 Mode Test               Yes
   10          SDR50 Mode Test               Yes
   11          DDR50 Mode Test               Yes
   13         Default Unit Test (Max speed)           Yes
   -1          All non powercycle tests           No
   -2          Exit the regression test           No

Please enter a test ID from the above list: -2
 Test ID Entered = -2

Exiting the regression test

All tests have PASSED
3/3 tests passed

Signed-off-by: Sujith S <sujith.s@ti.com>
3 years agoBuild Fix: Fix build issues with Board DDR Temp Monitor
Don Dominic [Fri, 5 Mar 2021 15:29:56 +0000 (20:59 +0530)]
Build Fix: Fix build issues with Board DDR Temp Monitor

- Not applicable for mpu1_0
- Removed #ifdef for BUILD_MCU1_0 when added support for main R5 cores
https://bitbucket.itg.ti.com/projects/PROCESSOR-SDK/repos/pdk/commits/8e4f1ae9e303b3627fbe71b81bde75b6dd601a07#packages/ti/board/src/j721e_evm/board_ddrtempmonitor.c
- But should have protected with MCU ifdef
- Fixed by adding #ifdef for BUILD_MCU

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years ago[PDK-9317][PDK-9316] Board: DDR: Updates in Board DDR thermal monitoring REL.CORESDK.07.01.06.02
Don Dominic [Mon, 8 Feb 2021 16:00:09 +0000 (21:30 +0530)]
[PDK-9317][PDK-9316] Board: DDR: Updates in Board DDR thermal monitoring

- Query from BoardCfg to get the  allowed core interrupt IRQ idx
- Add support for other R5F cores

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years ago[PDK-9312] FreeeRTOS: Addressed review comments
Don Dominic [Fri, 5 Mar 2021 09:24:52 +0000 (14:54 +0530)]
[PDK-9312] FreeeRTOS: Addressed review comments

- Updated linker file to use OCMC/DDR instead of MSMC
- Many times apps/customer copy our linker and struggled due to use of MSMC for MCU R5 apps

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agoBuild Fix: sciclient_firmware_boot_TestApp linker updates to enable debug build
Don Dominic [Fri, 5 Mar 2021 05:42:50 +0000 (11:12 +0530)]
Build Fix: sciclient_firmware_boot_TestApp linker updates to enable debug build

- '.cinit' program will not fit into available memory in OCMRAM
- Moved bss to TCMB from OCMRAM

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agoFreeRTOS: UT Build Fix
Don Dominic [Fri, 5 Mar 2021 04:03:02 +0000 (09:33 +0530)]
FreeRTOS: UT Build Fix

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agofreertos: jenkins build fixes
Badri S [Thu, 4 Mar 2021 10:51:13 +0000 (16:21 +0530)]
freertos: jenkins build fixes

jenkins build fixes

Signed-off-by: Badri S <badri@ti.com>
3 years ago[PDK-9312] OSAL: FreeRTOS: Added osal_freertos support for J7ES/J7VCL/AM65xx
Don Dominic [Wed, 3 Mar 2021 19:46:19 +0000 (01:16 +0530)]
[PDK-9312] OSAL: FreeRTOS: Added osal_freertos support for J7ES/J7VCL/AM65xx

- osal_freertos library added for j721e/j7200/am65xx

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years ago[PDK-9312] FreeeRTOS: Added support for freertos on all R5F cores in J7ES/J7VCL/AM65xx
Don Dominic [Wed, 3 Mar 2021 14:49:18 +0000 (20:19 +0530)]
[PDK-9312] FreeeRTOS: Added support for freertos on all R5F cores in J7ES/J7VCL/AM65xx

- Enable all R5F cores in am65xx/j7200/j721e
  - Added config files for each core with unique DMTimer id
- Add support to copy freertos reset vectors to atcm
  - implemented inside 'xPortStartScheduler' before calling 'vPortRestoreTaskContext()'
- Update config file to add define to enable/disable copy of freertos reset vectors to atcm
  - By default Enabled for AM65xx since vectors are placed in OCMRAM in the linker file since core reset will clear the atcm
- Updated freertos kernel paths
- Minor cleanups

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agoadded osal lib for free rtos
Prasad Konnur [Tue, 23 Feb 2021 14:20:11 +0000 (19:50 +0530)]
added osal lib for free rtos

 - added osal lib
 - added semephore osal implementation
 - other components of osal use the nonos implementation
 - added taskp in freertos
 - added memoryP in freertos
 - added memoryP test in osal testapp
 - added delay implementation using TaskP_sleep

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
3 years agofreertos: fix r5f pmu counter overflow
Badri S [Wed, 3 Mar 2021 09:01:24 +0000 (14:31 +0530)]
freertos: fix r5f pmu counter overflow

ensure we periodically check for PMU cycle
counter overflow so that we dont miss incrementing
overflow counter.

Signed-off-by: Badri S <badri@ti.com>
3 years agofreertos: disable interrupt preemption for r5
Badri S [Tue, 2 Mar 2021 11:50:19 +0000 (17:20 +0530)]
freertos: disable interrupt preemption for r5

Disable interrupt preemption for r5 until correct
interrupt preemption support

Signed-off-by: Badri S <badri@ti.com>
3 years agofreertos:c66x fixes to ensure csl_vect is not linked in
Badri S [Sun, 28 Feb 2021 03:37:51 +0000 (09:07 +0530)]
freertos:c66x fixes to ensure csl_vect is not linked in

ensure csl_vect is not wrongly linked in resulting in
interrupts not being serviced by freertos vecs

Signed-off-by: Badri S <badri@ti.com>
3 years agofreertos: remove dpl folder and move to port folder
Badri S [Sat, 27 Feb 2021 14:31:09 +0000 (20:01 +0530)]
freertos: remove dpl folder and move to port folder

remove dpl folder and move files under port folder
also make test folder freertos specific

Signed-off-by: Badri S <badri@ti.com>
3 years agofreertos: support for j721e,j7200,am65xx SoCs
Badri S [Sat, 27 Feb 2021 07:37:16 +0000 (13:07 +0530)]
freertos: support for j721e,j7200,am65xx SoCs

Support added for am65xx,j721e,am65xx SoCs
freertos lib made core specific instead of isa
so that freeRTOS config can include core specific
header file

Signed-off-by: Badri S <badri@ti.com>
3 years agofreertos: support for r5f core
Badri S [Sat, 27 Feb 2021 02:50:09 +0000 (08:20 +0530)]
freertos: support for r5f core

freertos support for r5f core ported from mcu_plus_sdk

Signed-off-by: Badri S <badri@ti.com>
3 years agofreertos: support for c66x core for freertos
Badri S [Tue, 16 Feb 2021 07:31:34 +0000 (13:01 +0530)]
freertos: support for c66x core for freertos

freertos c66x port support

Signed-off-by: Badri S <badri@ti.com>
3 years agoPDK-7013: Removes VTM workaround for J7ES PG1.1
Erick Narvaez [Tue, 23 Feb 2021 03:04:31 +0000 (21:04 -0600)]
PDK-7013: Removes VTM workaround for J7ES PG1.1

Removes default workaround flag for J7ES VTM.

Signed-off-by: Erick Narvaez <e-narvaez@ti.com>
3 years agoadded adcbuf driver for AWR294x SOC
KALYAN VAGVALA [Thu, 11 Feb 2021 16:48:42 +0000 (22:18 +0530)]
added adcbuf driver for AWR294x SOC

3 years agoOSPI: PHY tuning benchmarking
Aditya Wadhwa [Tue, 2 Mar 2021 19:13:40 +0000 (00:43 +0530)]
OSPI: PHY tuning benchmarking

- added a macro which can be enabled to get the logs of how much time the PHY tuning elapsed
- switched to UART prints

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
3 years agotimeSync: v2: Explicitly set no traffic class
Misael Lopez Cruz [Wed, 3 Mar 2021 08:21:51 +0000 (02:21 -0600)]
timeSync: v2: Explicitly set no traffic class

The newly added txPktTc field of the Enet DMA packet structure is used
for ICSSG but it's not applicable for CPSW.  Hence, it's explicitly set
to indicate that no traffic class is to be used.

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
3 years agoPDK-9240:Board: Fix for DDR init hang issue on j721e evm during warm reset
M V Pratap Reddy [Thu, 4 Mar 2021 14:53:30 +0000 (20:23 +0530)]
PDK-9240:Board: Fix for DDR init hang issue on j721e evm during warm reset

 - DDR initialization is hanging during the warm reset which is caused
   by PLL bypass function. Need to unlock the PLL registers for access
   during the warm reset.

3 years agoPRSDK-8813: Board/USB: Updated AM65xx SerDes configurations
M V Pratap Reddy [Wed, 3 Mar 2021 05:15:30 +0000 (10:45 +0530)]
PRSDK-8813: Board/USB: Updated AM65xx SerDes configurations

 - CSL SerDes USB configurations are updated to fix enumeration failures.
   Updated the board library and USB driver to align with updated SerDes
   configurations.

3 years agoboard - Missing enum and fix include path
Prasad Jondhale [Sat, 27 Feb 2021 16:43:57 +0000 (22:13 +0530)]
board - Missing enum and fix include path

Signed-off-by: Prasad Jondhale <prasad.jondhale@ti.com>
3 years ago[PDK-9404] OSAL: Fix TIMERP_TIMER_FREQ_LO for J7200
Don Dominic [Tue, 2 Mar 2021 17:53:32 +0000 (23:23 +0530)]
[PDK-9404] OSAL: Fix TIMERP_TIMER_FREQ_LO  for J7200

- TIMERP_TIMER_FREQ_LO defined in osal_soc.h for J7200 is wrong.(25MHz)
- Input Crystal Frequency for j7200 is 19.2MHz and default Timer clk_sel 0(HFOSC0_CLKOUT) will be 19.2MHz

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years ago[PDK-9315] Updating BIOS and XDC REL.CORESDK.07.03.00.13 REL.CORESDK.07.03.00.14 REL.CORESDK.07.03.00.15 REL.CORESDK.07.03.00.16 REL.CORESDK.07.03.01.03 REL.CORESDK.07.03.01.04 REL.CORESDK.07.03.01.05 REL.CORESDK.07.03.01.06
Ankur [Tue, 23 Feb 2021 17:58:13 +0000 (23:28 +0530)]
[PDK-9315] Updating BIOS and XDC

Signed-off-by: Ankur <a0132173@ti.com>
3 years ago[BugFix] PDK-8886: pdk_examples build fails on Windows
Prasad Konnur [Fri, 19 Feb 2021 13:45:02 +0000 (19:15 +0530)]
[BugFix] PDK-8886: pdk_examples build fails on Windows

 - armstrip or strip6x on windows is not able to delete the strip file
 if it already present.
 - $(RM) is set to rm -f so will not generate error if the file is not
 present.

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
3 years agoadded build support for awr294x
Prasad Konnur [Thu, 18 Feb 2021 13:25:51 +0000 (18:55 +0530)]
added build support for awr294x

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
3 years agoPDK-9337: Fix for Clocking on J7VCL to use fracf pll calibration REL.CORESDK.07.03.00.10 REL.CORESDK.07.03.00.11 REL.CORESDK.07.03.00.12 REL.CORESDK.07.03.01.02
Piyali Goswami [Thu, 18 Feb 2021 13:14:11 +0000 (18:44 +0530)]
PDK-9337: Fix for Clocking on J7VCL to use fracf pll calibration

Fix for clocking on J7VCL to use fracf pll calibration

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
3 years agoosal: baremetal build fix for mcu1_1
Piyali Goswami [Thu, 18 Feb 2021 10:28:08 +0000 (15:58 +0530)]
osal: baremetal build fix for mcu1_1

OSAL baremetal build fix for mcu1_1

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
3 years agoBuild Fix REL.CORESDK.07.03.00.09 REL.CORESDK.07.03.01.01
Ankur [Thu, 18 Feb 2021 09:01:14 +0000 (14:31 +0530)]
Build Fix

Signed-off-by: Ankur <a0132173@ti.com>
3 years ago[PDK-9328] OSPI: Binary search instead of linear search for PHY tuning window REL.CORESDK.07.03.00.08
Aditya Wadhwa [Mon, 15 Feb 2021 19:28:34 +0000 (00:58 +0530)]
[PDK-9328] OSPI: Binary search instead of linear search for PHY tuning window

- Previous implementation was a linear search algorithm
- Occassional failures observed
- Replaced by a binary search algorithm

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
3 years agoSPI packaging error fix REL.CORESDK.07.03.00.06 REL.CORESDK.07.03.00.07
Ankur [Tue, 16 Feb 2021 19:54:21 +0000 (01:24 +0530)]
SPI packaging error fix

Signed-off-by: Ankur <a0132173@ti.com>
3 years agoCGT update for C7x REL.CORESDK.07.03.00.05
Ankur [Tue, 16 Feb 2021 15:19:19 +0000 (20:49 +0530)]
CGT update for C7x

Signed-off-by: Ankur <a0132173@ti.com>
3 years agoRevert "[PDK-9315] Updating the BIOS version to 06.83.02.07"
Ankur [Tue, 16 Feb 2021 15:16:51 +0000 (20:46 +0530)]
Revert "[PDK-9315] Updating the BIOS version to 06.83.02.07"

This reverts commit dca947d3294daa19d842386afa038ef797e35e1b.

3 years agoRevert "updating XDC and C7x CGT tool version"
Ankur [Tue, 16 Feb 2021 15:16:45 +0000 (20:46 +0530)]
Revert "updating XDC and C7x CGT tool version"

This reverts commit e738709d0f9e45ac20b3092009ed41a49c2b2aea.

3 years agosciclient: docs: design: Update to add Domain reset information REL.CORESDK.07.03.00.02 REL.CORESDK.07.03.00.03 REL.CORESDK.07.03.00.04
Piyali Goswami [Fri, 12 Feb 2021 04:01:46 +0000 (09:31 +0530)]
sciclient: docs: design: Update to add Domain reset information

Doc update to add domain groups reset API information

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
3 years agoSupport for Domain resets in Sciclient PM
Piyali Goswami [Thu, 11 Feb 2021 06:22:41 +0000 (11:52 +0530)]
Support for Domain resets in Sciclient PM

Support for Domain Resets in Sciclient PM

Fixes: PDK-9326
Signed-off-by: Piyali Goswami <piyali_g@ti.com>
3 years agoupdating XDC and C7x CGT tool version
ankur [Mon, 15 Feb 2021 09:20:19 +0000 (14:50 +0530)]
updating XDC and C7x CGT tool version

Signed-off-by: ankur <ankurbaranwal@ti.com>
3 years ago[PDK-9315] Updating the BIOS version to 06.83.02.07
Ankur [Sun, 14 Feb 2021 06:05:01 +0000 (11:35 +0530)]
[PDK-9315] Updating the BIOS version to 06.83.02.07

Signed-off-by: Ankur <a0132173@ti.com>
3 years agoMigrating to SYSFW version v2021.01
Piyali Goswami [Sun, 14 Feb 2021 15:11:31 +0000 (20:41 +0530)]
Migrating to SYSFW version v2021.01

v2021.01 migration

3 years agoETHFW-607: j7200_evm: Bypass SerDes config for Eth if already configured
Misael Lopez Cruz [Fri, 12 Feb 2021 03:14:33 +0000 (21:14 -0600)]
ETHFW-607: j7200_evm: Bypass SerDes config for Eth if already configured

Don't configure SerDes if it has already been configured, i.e. by
u-boot. This enables EthFw to transparently work in Linux boot and
CCS boot.

In Linux boot, u-boot will configure SerDes (i.e. for PCIe and Ethernet
sharing) and at a later point load EthFw, EthFw will not attempt to
reconfigure SerDes.

In CCS boot, EthFw will configure SerDes.

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
3 years agoPDK-9050: Board: Fix for board PLL clock configuration failure on j721e REL.CORESDK.07.03.00.01
M V Pratap Reddy [Thu, 4 Feb 2021 07:52:44 +0000 (13:22 +0530)]
PDK-9050: Board: Fix for board PLL clock configuration failure on j721e

 - Removed the redundant clock configurations for McASP & ADC
 - Removed the core PLL configurations as they are done by default
 - Updated the clock IDs for some of the modules to fix the errors

3 years agoMigrating to SYSFW version v2020.08d
Piyali Goswami [Tue, 2 Feb 2021 05:23:48 +0000 (10:53 +0530)]
Migrating to SYSFW version v2020.08d

Migrating to SYSFW v2020.08d

3 years agosysfw_migrate.sh: Update to have support for generation of ES1.1 images
Piyali Goswami [Tue, 2 Feb 2021 04:55:28 +0000 (10:25 +0530)]
sysfw_migrate.sh: Update to have support for generation of ES1.1 images

Support for generation of ES1.1 HS tifs images

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
3 years agoFirmware Header Gen updates for ES1.1
Piyali Goswami [Tue, 2 Feb 2021 04:54:36 +0000 (10:24 +0530)]
Firmware Header Gen updates for ES1.1

Support for ES1.1 hs binary generation

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
3 years agoPDK-9050 : Compute core clock config is removed
sujith [Mon, 1 Feb 2021 13:07:07 +0000 (18:37 +0530)]
PDK-9050 : Compute core clock config is removed

The A72, R5F, functional clock should not be reconfigured
disabled the same.

Skipped clock config for McASP and Adc
Will be addressed in subsequent commits

Signed-off-by: sujith <sujith.s@ti.com>
3 years agoAdd build support for awr294x
Prasad Konnur [Sun, 7 Feb 2021 10:40:50 +0000 (16:10 +0530)]
Add build support for awr294x

 - Added basic build support
 - build for csl added with tpr12 soc files
 - build enabled for board lib with tpr12 files. build not enabled for
board Examples / utils.
 - build for few drivers enabled like edma, uart which are used by
common examples

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
3 years agoUDMA: OSPI Example: Fix Porting for Cypress Flash(J7200/AM64x)
Don Dominic [Tue, 9 Feb 2021 09:41:48 +0000 (15:11 +0530)]
UDMA: OSPI Example: Fix Porting for Cypress Flash(J7200/AM64x)

- Added new test to write PHY tuning data to flash memory
    - Writes phy tuning data to last 128B of Flash memory
    - This region should be made non-cacheable
- Include new phy tuning algo source file from CSL OSPI Common
- Support for new phy tuning(phyConfig) for devices with Cypress flash(AM64x/J7200)
    - Enable phyPiplene mode for DAC DMA Read
- Proper switching from INDAC to DAC mode, after Write operation
    - For devices with Cypress Flash in which DAC write is not supported
      The test writes in INDAC mode and reads in DAC DMA mode
      Here the switch to DAC mode was not Proper.
    - Just calling CSL_ospiDacEnable was not enough
- Added flag to Disable CacheOps in Real-time loop
    - To enable performance measurement without including CacheInv
    - Disabled by default
- Clear the interrupt after breaking from the TR Reload Perpetual loop.
    - During channel forced tear-down to break from the TR Reload Perpetual loop,
      DMA will complete the already reloaded TR.
    - This results in setting the interrupt status register after this transfer completion.
    - Hence clear the interrupt after this.
    - Else it will result in odd behavior with successive UDMA transfers

Signed-off-by: Don Dominic <a0486429@ti.com>
Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
3 years ago[DSS APP][PDK-9214]DSS Display Examples is not working on eDP
Vivek Dhande [Wed, 3 Feb 2021 12:47:14 +0000 (18:17 +0530)]
[DSS APP][PDK-9214]DSS Display Examples is not working on eDP

- Issue:
    - Display does not recognize the incoming stream and fps seems to be too high ~200

- Root Cause:
    - DSS clock selection was wrong along with wrong frequency
    - Earlier default clock selection was working for DSS which got changed over time, making EDP TC to fail
    - DSS application shall do this configuration rather than relying on default configuration

- Resolution:
    - Select proper clock for DPI
    - Configure following clocks
        - TISCI_DEV_DSS0_DSS_INST0_DPI_0_IN_2X_CLK to 148.5 MHz
        - TISCI_DEV_DSS0_DSS_INST0_DPI_1_IN_2X_CLK to 148.5 MHz

Signed-off-by: Vivek Dhande <a0132295@ti.com>
3 years ago[PDK-9074]OSPI: Adding a summary of OSPI modes supported by each EVM
Aditya Wadhwa [Mon, 1 Feb 2021 13:04:32 +0000 (18:34 +0530)]
[PDK-9074]OSPI: Adding a summary of OSPI modes supported by each EVM

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
3 years agoOSPI: J721e: Fix for large appimage size
Aditya Wadhwa [Fri, 5 Feb 2021 11:41:33 +0000 (17:11 +0530)]
OSPI: J721e: Fix for large appimage size

- marked the txBuf and rxBuf as a benchmark buffer section

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
3 years agoRevert "Revert "[PDK-8607] Fix for interrupt hang on MCU cores in MAIN domain""
Aditya Wadhwa [Fri, 5 Feb 2021 14:30:29 +0000 (20:00 +0530)]
Revert "Revert "[PDK-8607] Fix for interrupt hang on MCU cores in MAIN domain""

This reverts commit 9ac60cdd6d46fd7162a07f1f3a3351884eb9439f.

The fix was reverted due to code freeze. Applying the fix now that the release tag has been created.

3 years agoMailbox: Example: Fix debug build failure in daily build
Angela Stegmaier [Fri, 5 Feb 2021 19:38:30 +0000 (13:38 -0600)]
Mailbox: Example: Fix debug build failure in daily build

Increase the section size in liner file.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
3 years agoFix for UDMA tests failing after fix for PDK-9013
Piyali Goswami [Sun, 31 Jan 2021 03:21:07 +0000 (08:51 +0530)]
Fix for UDMA tests failing after fix for PDK-9013

Fixes in Sciclient.c where the respHdr is not populated in the respPayload.
The Sciserver logic looks for the payload to have the flags set correctly and because the flags were never copied in the case when the message was forwarded to the TIFS, the response is falsely reported to the calling function.

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
3 years agoRevert "[PDK-8607] Fix for interrupt hang on MCU cores in MAIN domain" REL.CORESDK.07.02.01.11
Vishal Mahaveer [Wed, 27 Jan 2021 19:33:03 +0000 (13:33 -0600)]
Revert "[PDK-8607] Fix for interrupt hang on MCU cores in MAIN domain"

This reverts commit 9540772ac3c2b1ff082447675b23c4bfe75842e7.

Temporarily reverting it as this patch came in middle of AM64x RC.

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
3 years ago[PDK-8607] Fix for interrupt hang on MCU cores in MAIN domain
Aditya Wadhwa [Wed, 23 Dec 2020 16:40:12 +0000 (22:10 +0530)]
[PDK-8607] Fix for interrupt hang on MCU cores in MAIN domain

- added a soc init function to update interrupt number at run time
- added a config soc interrupt path function to set interrupt path
- fixes interrupt hang issue on j721e and j7200
- removed WA of using polling mode in UT

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
3 years agoBoard: Added GTC frequency ID config in am64x board library REL.CORESDK.07.02.01.09 REL.CORESDK.07.02.01.10
M V Pratap Reddy [Sat, 23 Jan 2021 07:00:01 +0000 (12:30 +0530)]
Board: Added GTC frequency ID config in am64x board library

3 years agoBoard: AM64x: Update GTC clk freq to 200 MHz REL.CORESDK.07.02.01.08
Jonathan Bergsagel [Sat, 23 Jan 2021 02:40:04 +0000 (20:40 -0600)]
Board: AM64x: Update GTC clk freq to 200 MHz

Changes GTC input functional clock from the default freq,
of 225 MHz, to the HLOS expected value of 200 MHz.
Solves an issue with SBL booting Linux on AM64x.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
3 years agoBoard: Removed unused code in am64x board library
M V Pratap Reddy [Fri, 22 Jan 2021 20:41:26 +0000 (02:11 +0530)]
Board: Removed unused code in am64x board library

 - Updated copyright banners

3 years agoSBL: AM64x: Change sbl_ospi_img_hlos to use Non-DMA option
Jonathan Bergsagel [Fri, 22 Jan 2021 21:46:55 +0000 (15:46 -0600)]
SBL: AM64x: Change sbl_ospi_img_hlos to use Non-DMA option

Builds the HLOS variant of SBL for OSPI boot mode to use
memcpy for OSPI transfers, instead of using BCDMA. This also
causes OSPI interface to be used without PHY pipelining.

Workaround for possible resource contention with Linux.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
3 years agoPDK-9257: SBL: AM64x: Fix M4F mem section loading for OSPI boot
Jonathan Bergsagel [Fri, 22 Jan 2021 08:12:48 +0000 (02:12 -0600)]
PDK-9257: SBL: AM64x: Fix M4F mem section loading for OSPI boot

Fixes a problem with using the BCDMA (in OSPI boot mode) to load
memory sections of the Cortex-M4F.
Works around this issue by checking for M4F memory section addresses
and using memcpy (from OSPI flash to M4 mem), instead of doing DMA.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
3 years agoPDK-9257: SBL: AM64x: Fix OSPI boot w/ DMA when using MCU1_0 TCMs
Jonathan Bergsagel [Fri, 22 Jan 2021 00:42:08 +0000 (18:42 -0600)]
PDK-9257: SBL: AM64x: Fix OSPI boot w/ DMA when using MCU1_0 TCMs

Need to use SoC-level addresses for R5F0_0 local TCM memories
as well on OSPI boot mode with DMA.
Changes SBL to use SoC-level address for all loading to local
TCM memories of MCU1_0.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
3 years agoPDK-8885: Board: Created different init/deinit clock groups for am64x evm board library
M V Pratap Reddy [Thu, 14 Jan 2021 12:22:40 +0000 (17:52 +0530)]
PDK-8885: Board: Created different init/deinit clock groups for am64x evm board library

 - Board library for am64x evm is updated to provide the flexibility of
   choosing clock modules which will be enabled/disabled during the boot process.
   Two different clock groups are created to choose between RTOS normal boot flow
   and RTOS+HLOS boot flow.
   Clock resources which are used during RTOS boot can be released using
   Board_releaseResource function before switching to HLOS

3 years agoBoard: Fix for am64x evm stress test build errors
M V Pratap Reddy [Fri, 22 Jan 2021 11:44:36 +0000 (17:14 +0530)]
Board: Fix for am64x evm stress test build errors

3 years agoAM64x: launch.js update for latest CSP REL.CORESDK.07.02.01.07
Sheng Zhao [Wed, 20 Jan 2021 20:45:37 +0000 (14:45 -0600)]
AM64x: launch.js update for latest CSP

Updates to launch.js based on latest CSP package made for public consumption.

When R5 is connected, the DDR will not be configured automatically.
After the sciclient_ccs_init runs, the launch.js explicitly calls
AM64_DDR_Initialization_ECC_Disabled() to configure the DDR.

CSP commit:
https://bitbucket.itg.ti.com/projects/CPHWA/repos/k3_ccs/commits/662bc078f8ccee26024a80bd648803872a31b5e6

Signed-off-by: Sheng Zhao <shengzhao@ti.com>
3 years agoAM64x Build Fix: Use CORELISTARM for UART baremetal app
Don Dominic [Wed, 20 Jan 2021 04:16:26 +0000 (09:46 +0530)]
AM64x Build Fix: Use CORELISTARM for UART baremetal app

- Use drvuart_am64x_CORELISTARM for UART_Baremetal_TestApp
- All other UART apps for am64x was already using drvuart_am64x_CORELISTARM

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agoBUILD: AM64x: Add missing mpu1_1 in the am64x core list
Jonathan Bergsagel [Tue, 19 Jan 2021 22:06:31 +0000 (16:06 -0600)]
BUILD: AM64x: Add missing mpu1_1 in the am64x core list

Update core lists in both BUILD and SBL to match the cores
that are used for building various test cases.

Fixes build issue for the sbl_multicore_amp boot test case
for am64x_evm by including the last "mpu1_1" core that was
previously missing.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
3 years ago[PDK-9033] UDMA Example : Fix UDMA ADC example on AM64x mpu1_0
Don Dominic [Tue, 19 Jan 2021 15:21:02 +0000 (20:51 +0530)]
[PDK-9033] UDMA Example : Fix UDMA ADC example on AM64x mpu1_0

- Clear destination buffer and cache writeback

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agoam64x: Enable appimage generation for mcspi tests
Vishal Mahaveer [Tue, 19 Jan 2021 04:54:51 +0000 (22:54 -0600)]
am64x: Enable appimage generation for mcspi tests

Enable appimage generation for test cases that apply to am64x.

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
3 years agoPDK-9175: SBL: AM64x: Fix MMCSD boot when using MCU1_0 TCMs
Jonathan Bergsagel [Mon, 18 Jan 2021 19:43:53 +0000 (13:43 -0600)]
PDK-9175: SBL: AM64x: Fix MMCSD boot when using MCU1_0 TCMs

Adds address translation to SoC level addresses of MCU1_0
local TCMs when using MMCSD ADMA to copy appimage sections
to MCU1_0 ATCM / BTCM.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
3 years ago[PDK-9033] UDMA Example : Fix UDMA ADC example on AM64x
Don Dominic [Mon, 18 Jan 2021 14:52:55 +0000 (20:22 +0530)]
[PDK-9033] UDMA Example : Fix UDMA ADC example on AM64x

- Moved PDMA Config and chEnable to App_create
- Moved chDiable to App_delete
- Added VirtToPhy/PhyToVirt conversion before submitting to/after receiving from DMA Controller
- Basic Porting for LCDMA
  - Added RA Type macro for Teardown Completion Queue, Teardown Event and Completion Ring Mem

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years ago[PDK-7995] UDMA: Simplify UDMA RM Configuration for AM64x
Don Dominic [Wed, 13 Jan 2021 13:49:36 +0000 (19:19 +0530)]
[PDK-7995] UDMA: Simplify UDMA RM Configuration for AM64x

- Simplify RM Configuration by querying from defaultBoardCfg
- Using #Sciclient_rmGetResourceRange to populate #Udma_RmInitPrms
- Removes all hard-codings in udma_rmcfg.c

- Splits shared resources like GlobalEvents/VINTR across BCDMA/PKTDMA Instances
  based on the prms in #Udma_RmSharedResPrms (UDMA RM Shared Resource parameters)

- User can override default UDMA RM Shared Resource parameters, using Udma_rmGetSharedResPrms API

- Moved UdmaRmInitPrms_init to 'udma_rmcfg_common.c' in 'soc' folder.
  This API will return error, if it fails to init #Udma_RmInitPrms

- New API to to retun TISCI Core Dev ID 'Udma_getCoreSciDevId'
  - To be reused in 'UdmaRmInitPrms_init'

- For devices like AM64x (LCDMA), One to one mapping exists from Virtual Interrupts to Core Interrupts
  So translate to corresponding range using 'Sciclient_rmIrqTranslateIaOutput'.
  Since there are no Interrupt Routers, startIrIntr/numIrIntr refers to core interrupt itslef.

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agoPDK-5153: Board: Updated stress tests for am64x evm to fix the failures
M V Pratap Reddy [Sat, 16 Jan 2021 10:38:10 +0000 (16:08 +0530)]
PDK-5153: Board: Updated stress tests for am64x evm to fix the failures

3 years agoPDK-8367: Board: Updated SPI EEPROM diag test for AM64x EVM
M V Pratap Reddy [Sat, 16 Jan 2021 10:36:52 +0000 (16:06 +0530)]
PDK-8367: Board: Updated SPI EEPROM diag test for AM64x EVM

3 years agoPDK-5115: Board: Corrected gpio pin mapping for am64x evm exp header test
M V Pratap Reddy [Sat, 16 Jan 2021 10:35:25 +0000 (16:05 +0530)]
PDK-5115: Board: Corrected gpio pin mapping for am64x evm exp header test