processor-sdk/pdk.git
7 months ago[Bug Fix]Fixed issue with I2C tests failing on Main Domain R5 Cores
Vivek Dhande [Thu, 5 Nov 2020 19:09:23 +0000 (00:39 +0530)]
[Bug Fix]Fixed issue with I2C tests failing on Main Domain R5 Cores

- Issue:
    - Tests fails on Main Domain MCU2_1 and MCU3_1 cores
- Root-cause:
    - Due to recent RM changes, interrupts reserved from Interrupt Routers for these core are changed
    - This was making TC time-out as no interrupts were triggered
- Resolution:
    - Assign interrupts as per new RM i.e. +128 for MCUx_1 cores from Main Domain

Signed-off-by: Vivek Dhande <a0132295@ti.com>
7 months agoUDMA UT: Enable Ring Monitor Testcases REL.CORESDK.07.01.00.33
Don Dominic [Thu, 5 Nov 2020 13:25:10 +0000 (18:55 +0530)]
UDMA UT: Enable Ring Monitor Testcases

Signed-off-by: Don Dominic <a0486429@ti.com>
7 months ago[PDK-8492] RM : Fix UDMA Ring Monitor Issues with mcu1_0
Don Dominic [Thu, 5 Nov 2020 13:04:59 +0000 (18:34 +0530)]
[PDK-8492] RM : Fix UDMA Ring Monitor Issues with mcu1_0

- Removed MCU NAVSS Ring monitor resource entry for mcu1_0 Non Secure context
- Updated for both  J721E and J7200

- The fixes the issues with Ring Monitor Config on mcu1_0
- SYSFW do not support multiple overlapping ranges in the RA monitor
  due to the limitation to support both the DM and DMSC to need to have access to the registers.
  So only one host can have exclusive access to the range of ring monitors.
- sysfw force the MCU1_0 to secure in the re-arch, so removing the non-secure and keep the secure.

Signed-off-by: Don Dominic <a0486429@ti.com>
7 months agoBoard: Diagnostic stress test update to resolve build issues
M V Pratap Reddy [Thu, 5 Nov 2020 12:32:49 +0000 (18:02 +0530)]
Board: Diagnostic stress test update to resolve build issues

7 months agoBoard: Disabled the macro PDK_RAW_BOOT for tpr12 evm diag release profile
M V Pratap Reddy [Thu, 5 Nov 2020 10:58:31 +0000 (16:28 +0530)]
Board: Disabled the macro PDK_RAW_BOOT for tpr12 evm diag release profile

 - PDK_RAW_BOOT is enabled for tpr12 during inital testing. Reverting it
   to default and release mode diag binaries should be tested with sbl boot flow.

7 months agoSciclient: CCS_Init application added cache options
Piyali Goswami [Thu, 5 Nov 2020 11:10:35 +0000 (16:40 +0530)]
Sciclient: CCS_Init application added cache options

Sciclient ccs init application updated with cache operations for writing the board config data
Fixes: PDK-8496

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
7 months agoedma: use CSL cache line size definitions and macros
Eric Ruei [Thu, 29 Oct 2020 17:48:56 +0000 (13:48 -0400)]
edma: use CSL cache line size definitions and macros

Replace local cache line size definitions and macros with the CSL ones

Signed-off-by: Eric Ruei <e-ruei1@ti.com>
7 months agoPDK-5002: Board: Updated the name for csirx diagnostic test
M V Pratap Reddy [Wed, 4 Nov 2020 03:02:42 +0000 (08:32 +0530)]
PDK-5002: Board: Updated the name for csirx diagnostic test

7 months ago[Bug Fix] PDK-8469: mcspi master test crashes in interrupt mode REL.CORESDK.07.01.00.32
Prasad Konnur [Wed, 4 Nov 2020 15:14:59 +0000 (20:44 +0530)]
[Bug Fix] PDK-8469: mcspi master test crashes in interrupt mode

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
7 months agoMigrating to SYSFW version v2020.08b
Piyali Goswami [Wed, 4 Nov 2020 15:48:25 +0000 (21:18 +0530)]
Migrating to SYSFW version v2020.08b

Migrating to v2020.08b

7 months agosciserver: add sync semaphore to user message tasks
Sheng Zhao [Wed, 4 Nov 2020 02:46:08 +0000 (20:46 -0600)]
sciserver: add sync semaphore to user message tasks

A semaphore is added inside the high and low priority user message task.
It prevents the low priority task processing stale message response from
high priority task during message forwarding.

Both the high and low priority tasks can forward message to TIFS. But
DM2DMSC response path is shared. The reading of the RX thread in
Sciclient_serviceSecureProxy() is not protected by the critical section.

The DM's high priority task could forward a message to TIFS before low
priority reads the response. Then the high priority task processes the
response in the DM2DMSC rxThread. The issue occurs when the low priority
thread would process the same stale response message from high priority
task.

The sync semaphore serializes incoming messages to DM and prevents the
above scenario from occurring.

Fixes: PDK-8312 #integrate-and-build

Signed-off-by: Sheng Zhao <shengzhao@ti.com>
7 months agoPDK-7718: Board: Fix for hyperflash stability issue at higher clock
M V Pratap Reddy [Mon, 2 Nov 2020 16:33:31 +0000 (22:03 +0530)]
PDK-7718: Board: Fix for hyperflash stability issue at higher clock

 - Hyperflash operations are not stable at higher frequency on j7200 evm.
   Hyperbus datasheet recommends to enable the controller after clocks are stable.
   But hyperbus controller will be active while PLLs are being configured which is
   causing wrong MDLL code some times resulting data write failure.
   Resetting the hyperbus controller in board flash open to resync with PLL
   clocks configured.

7 months agoRevert "PDK-8311: Revert "[PDK-8145] Board: J721E DDR: Check-in Latest DDR Configurat...
Don Dominic [Wed, 4 Nov 2020 15:33:07 +0000 (21:03 +0530)]
Revert "PDK-8311: Revert "[PDK-8145] Board: J721E DDR: Check-in Latest DDR Configuration Revision: 0.5.0""

This reverts commit c7b7ae53965394168e68cf0e1726ff3326d93074.

- 4266 configuration is the tested and recommended settings for production sample
- RTOS and Linux DDR configuration should be in sync, and both will be using the 4266 settings
- The failures in some boards could be due to earlier engineering sample issues.

Signed-off-by: Don Dominic <a0486429@ti.com>
7 months agoFix for print for automation
Piyali Goswami [Wed, 4 Nov 2020 04:22:39 +0000 (09:52 +0530)]
Fix for print for automation

Fix for print for automation test to pass.

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
7 months agoPDK-8480: Sciserver: Fix linker cmd file for testapp REL.CORESDK.07.01.01.05
Jonathan Bergsagel [Tue, 3 Nov 2020 20:20:00 +0000 (14:20 -0600)]
PDK-8480: Sciserver: Fix linker cmd file for testapp

Solves problem of Sciserver starting properly on MCU1_0
by putting all key boot code & vectors into BTCM memory.
This allows test cases on remote cores to be paired with
the included sciserver_testapp RPRC images and provide a
working sciserver on MCU1_0 when booting apps from OSPI.

NOTE: solves multiple test case issues on J7200 & J721E.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
7 months agofixed mmcsd test for am65xx mcu core
Prasad Konnur [Tue, 3 Nov 2020 12:27:15 +0000 (17:57 +0530)]
fixed mmcsd test for am65xx mcu core

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
7 months agoFixing OSPI issues on J7200
Aditya Wadhwa [Fri, 30 Oct 2020 19:57:20 +0000 (01:27 +0530)]
Fixing OSPI issues on J7200

Added necessary task params to fix BIOS start failure.
Disabled DAC DMA write and verify for J7200 since this is not supported.
Disabled interrupt mode in cases that are facing hangs.

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
7 months agoUpdates to TIFS binaries with fix from IA MAP in TIFS REL.CORESDK.07.01.00.31
Piyali Goswami [Tue, 3 Nov 2020 05:40:24 +0000 (11:10 +0530)]
Updates to TIFS binaries with fix from IA MAP in TIFS

Fix for IA MAP in TIFS during secure proxy setup

Fixes: SYSFW-4212

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
7 months agodiag: fix memory map to work with SBL
Badri S [Tue, 3 Nov 2020 08:58:08 +0000 (14:28 +0530)]
diag: fix memory map to work with SBL

fixed memory map of MIBSPI/HWA/Diag to
work with SBL as they were using custom
linker cmd file.Also SBL updated for
case where app image only loaded on DSP
and not R5

Signed-off-by: Badri S <badri@ti.com>
7 months agoPDK-8453: SBL: Boot performance app fix REL.CORESDK.07.01.02.02
Jonathan Bergsagel [Tue, 3 Nov 2020 00:25:03 +0000 (18:25 -0600)]
PDK-8453: SBL: Boot performance app fix

Fixes "sbl_boot_perf_test" for both J721E & J7200.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
7 months agoRevert "Fix SBL build fix for J721E"
Jonathan Bergsagel [Mon, 2 Nov 2020 21:54:20 +0000 (15:54 -0600)]
Revert "Fix SBL build fix for J721E"

This reverts commit 8334df9f4cc5fa826da3677e26572859e869602a.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
7 months agogpio/tpr12: Update GPIO example to work on TPR12 EVM REL.CORESDK.07.01.02.01
Badri S [Mon, 2 Nov 2020 08:11:45 +0000 (13:41 +0530)]
gpio/tpr12: Update GPIO example to work on TPR12 EVM

Updated the GPIO example to work on TPR12 EVM

Signed-off-by: Badri S <badri@ti.com>
7 months agodiag_csirx/tpr12: added frontend cfg binaries to packaging list REL.CORESDK.07.01.01.04
Badri S [Mon, 2 Nov 2020 07:17:40 +0000 (12:47 +0530)]
diag_csirx/tpr12: added frontend cfg binaries to packaging list

Added frontend cfg binaries to PKG_SRCS so that it packaged

Signed-off-by: Badri S <badri@ti.com>
7 months agosbl/tpr12: ROM certificate generation script ignore tmpfile not present
Badri S [Mon, 2 Nov 2020 05:51:55 +0000 (11:21 +0530)]
sbl/tpr12: ROM certificate generation script ignore tmpfile not present

Modified the ROM certificate signing script to ignore rm of temp file
if not present

Signed-off-by: Badri S <badri@ti.com>
7 months agoboard/tpr12: pinmux data for AWR2243 front end control from DSP
Badri S [Mon, 2 Nov 2020 03:05:25 +0000 (08:35 +0530)]
board/tpr12: pinmux data for AWR2243 front end control from DSP

Modified pnmux data so that default support is for AWR2243 front
end cfg from DSP instead of R5 which is the common usecase
This allows mmWaveSDK to run out of box with PDK without any
changes

Signed-off-by: Badri S <badri@ti.com>
7 months ago[PDK-8394] Bug fix for wrong delay value in edma ut
Badri S [Sun, 1 Nov 2020 17:30:11 +0000 (23:00 +0530)]
[PDK-8394] Bug fix for wrong delay value in edma ut

Osal_delay takes delay in ms in ti_rtos configuration
but in CPU cycles in baremetal configuration.The test
case was invoking Osal_delay with large values assuming
CPU cycles but results in huge delay in execution as it
is interpreted as ms delay.Setting delay value to min 1
which is sufficient. Osal_delay API has to be fixed so that
API behaviour is same for both baremetal and ti_rtos

Signed-off-by: Badri S <badri@ti.com>
7 months agodiag_csirx/tpr12: support for csirx diag on c66x and ti_rtos config
Badri S [Sun, 1 Nov 2020 17:15:45 +0000 (22:45 +0530)]
diag_csirx/tpr12: support for csirx diag on c66x and ti_rtos config

added frontend cfg for AWR2243 and added support for c66x build
and sysbios config. CSIRX on c66x works only in sysbios config
and not in baremetal config presently due to PDK-8403

Signed-off-by: Badri S <badri@ti.com>
7 months agoPDK-8437: Create Board init with limited module initializations for tpr12 REL.CORESDK.07.01.00.30
M V Pratap Reddy [Mon, 2 Nov 2020 03:32:35 +0000 (09:02 +0530)]
PDK-8437: Create Board init with limited module initializations for tpr12

 - This is for usage in the Radar applications which cannot integrate
   drivers like uart due to memory constraints.

7 months agoMigrating to SYSFW version v2020.08b
Piyali Goswami [Sat, 31 Oct 2020 19:35:46 +0000 (01:05 +0530)]
Migrating to SYSFW version v2020.08b

Migrating to SYSFW 2020.08b

7 months agoFixes for IRQ_RELEASE failing on the 2020.08a release
Piyali Goswami [Sat, 31 Oct 2020 18:56:40 +0000 (00:26 +0530)]
Fixes for IRQ_RELEASE failing on the 2020.08a release

Fixed IRQ_RELEASE to use the forwarding of messages for VINT clearning.

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
7 months agosbl: swap order of boardcfg
Stephen Molfetta [Thu, 29 Oct 2020 19:24:37 +0000 (14:24 -0500)]
sbl: swap order of boardcfg

Send security boardcfg prior to RM boardcfg. This is required for the
specified devgrp to ensure firewalls are in proper state for rm_pm_hal
to access the resources.

Signed-off-by: Stephen Molfetta <sjmolfetta@ti.com>
7 months agoMigrating to SYSFW version v2020.08a
Stephen Molfetta [Fri, 30 Oct 2020 02:24:34 +0000 (21:24 -0500)]
Migrating to SYSFW version v2020.08a

7 months agosciclient: Update RM boardcfg after TIFS processing
Stephen Molfetta [Thu, 29 Oct 2020 03:55:43 +0000 (22:55 -0500)]
sciclient: Update RM boardcfg after TIFS processing

In HS builds using unoptimized/development boot flows, RM boardcfg will
have a certificate prefix. TIFS will strip the certificate after
authentication and copy the boardcfg back in-place.

When returning for rm_pm_hal processing, adjustments to the RM boardcfg
request must be made:

- Invalidate the cache

- Adjust the length of the boardcfg request to compensate for the
  missing certificate

- If the certificate is not stripped (which would be the case if the
  signed RM boardcfg is sent a second time from an application), adjust
  the boardcfg pointer to pick up from the offset of the certificate

Signed-off-by: Stephen Molfetta <sjmolfetta@ti.com>
7 months agobuild: Update sciclient_direct_hs target
Stephen Molfetta [Thu, 29 Oct 2020 03:54:11 +0000 (22:54 -0500)]
build: Update sciclient_direct_hs target

Enable sciclient_direct_hs target build. Include this in hs sbl builds

Signed-off-by: Stephen Molfetta <sjmolfetta@ti.com>
7 months agosciclient: Fix for using board config type instead of index
Piyali Goswami [Fri, 30 Oct 2020 02:53:00 +0000 (08:23 +0530)]
sciclient: Fix for using board config type instead of index

Fix for board config type instead of index for the header left behind by SBL/SPL.

Fixes: PDK-8377

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
7 months agosciclient: sysfw migrate: update for correct j721e name
Stephen Molfetta [Fri, 30 Oct 2020 02:47:57 +0000 (21:47 -0500)]
sciclient: sysfw migrate: update for correct j721e name

Update j721e to remove no-pm-rm temporary binary name

Signed-off-by: Stephen Molfetta <sjmolfetta@ti.com>
7 months agoBoard: Updated tpr12 evm diagnostic test build configurations
M V Pratap Reddy [Sun, 1 Nov 2020 16:27:56 +0000 (21:57 +0530)]
Board: Updated tpr12 evm diagnostic test build configurations

 - Enabled app image creation
 - Enabled PDK_RAW_BOOT flag to allow running the release mode binaries
   from CCS/JTAG

7 months agoPDK-6959: Board: Updated board ID EEPROM diagnostic test for tpr12 evm
M V Pratap Reddy [Sun, 1 Nov 2020 16:26:25 +0000 (21:56 +0530)]
PDK-6959: Board: Updated board ID EEPROM diagnostic test for tpr12 evm

 - Board ID EEPROM changes verified on evm with valid board ID programmed

7 months ago[PDK-8402] OSAL UT: J721E: Fix OSAL_TestApp issue in OSAL_timer_test on mcu1_0 with SBL
Don Dominic [Fri, 30 Oct 2020 18:12:07 +0000 (23:42 +0530)]
[PDK-8402] OSAL UT: J721E: Fix OSAL_TestApp issue in OSAL_timer_test on mcu1_0 with SBL

- Use MCU_TIMER_2 when running on mcu1_0 with Sys BIOS
- TimerP_ANY in Sys BIOS will allocate MCU Timer 0 which was used by SBL and remains at Smart-idle wake-up-capable mod with Emulation mode set 1( The timer runs free, regardless of PINSUSPENDN value.)
  - Hene TimerP_Create with default timer 0 in UT was crashing
- MCU Timer 1 is used by sysbios on mcu1_0
- UT works fine with MCU Timer 2; Added in board_clock.c to enable the timer.

Signed-off-by: Don Dominic <a0486429@ti.com>
7 months agoPDK-5002: Board: Diabled board PLL config in csirx diag REL.CORESDK.07.01.01.03
M V Pratap Reddy [Sat, 31 Oct 2020 07:05:08 +0000 (12:35 +0530)]
PDK-5002: Board: Diabled board PLL config in csirx diag

7 months agoPDK-6963: Board: Updated tpr12 pinmux config file
M V Pratap Reddy [Sat, 31 Oct 2020 06:22:51 +0000 (11:52 +0530)]
PDK-6963: Board: Updated tpr12 pinmux config file

7 months agoPDK-6956: Updated logs for tpr12 evm qspi stress test REL.CORESDK.07.01.01.02
M V Pratap Reddy [Sat, 31 Oct 2020 05:48:20 +0000 (11:18 +0530)]
PDK-6956: Updated logs for tpr12 evm qspi stress test

7 months agoPDK-5015: Board: Updated gpio configuration for tpr12 expansion header test
M V Pratap Reddy [Sat, 31 Oct 2020 05:46:46 +0000 (11:16 +0530)]
PDK-5015: Board: Updated gpio configuration for tpr12 expansion header test

7 months agoPDK-6963: Board: Fix for tpr12 board pll crash issue
M V Pratap Reddy [Sat, 31 Oct 2020 05:42:25 +0000 (11:12 +0530)]
PDK-6963: Board: Fix for tpr12 board pll crash issue

7 months agotpr12: undo changes that affect other SOC and made changes TPR12 specific REL.CORESDK.07.01.01.01
Badri S [Fri, 30 Oct 2020 13:22:22 +0000 (18:52 +0530)]
tpr12: undo changes that affect other SOC and made changes TPR12 specific

Common code affecting multiple SoC was modified during TPR12 bringup
The changes are reverted to not affect other SoCs and changes required
for TPR12 are added under SoC specific defines

Signed-off-by: Badri S <badri@ti.com>
7 months agoqspi/tpr12: Undo changes to qspi_flash_test for file flash write
Badri S [Fri, 30 Oct 2020 12:06:02 +0000 (17:36 +0530)]
qspi/tpr12: Undo changes to qspi_flash_test for file flash write

Undo TPR12 specific changes to QSPI flash test to allow
file write to flash from CCS. This is moved to a separate app
now

Signed-off-by: Badri S <badri@ti.com>
7 months agoqspi/tpr12: add ccs based flash writer from file app
Badri S [Fri, 30 Oct 2020 11:53:21 +0000 (17:23 +0530)]
qspi/tpr12: add ccs based flash writer from file app

qspi example to write to qspi flash from file , read
back contents in DMA mode and verify.Used temporarily
till uniflash support is available on TPR12 for
flashing binaries to sflash

Signed-off-by: Badri S <badri@ti.com>
7 months agosbl/tpr12: added GP device degenerate key for SBL certificate to PDK
Badri S [Fri, 30 Oct 2020 09:01:29 +0000 (14:31 +0530)]
sbl/tpr12: added GP device degenerate key for SBL certificate to PDK

To enable SBL certificate generation without ROM mmWaveBootTest
repo which had the gpKey.pem added the GP device degenrate key to
PDK repo

Signed-off-by: Badri S <badri@ti.com>
7 months agouniflash/tpr12: Add support for ROM flow
Badri S [Fri, 30 Oct 2020 00:48:42 +0000 (06:18 +0530)]
uniflash/tpr12: Add support for ROM flow

Uniflash target binary support for load by
TPR12 ROM

Signed-off-by: Badri S <badri@ti.com>
7 months agoqspi/tpr12: bug fixes for DMA mode support
Badri S [Wed, 28 Oct 2020 23:02:54 +0000 (04:32 +0530)]
qspi/tpr12: bug fixes for DMA mode support

Bug fix for DMA mode support for QSPI and
resolve the SoC reset when SBL runs in
release mode

Signed-off-by: Badri S <badri@ti.com>
7 months agotpr12: mmwaveLink integration fixes
Kamath [Fri, 16 Oct 2020 09:13:13 +0000 (14:43 +0530)]
tpr12: mmwaveLink integration fixes

Signed-off-by: Kamath <r-kamath@ti.com>
7 months agosbl: tpr12 fixes for Soc reset in release mode
Badri S [Fri, 23 Oct 2020 07:56:58 +0000 (13:26 +0530)]
sbl: tpr12 fixes for Soc reset in release mode

Fixes for TPR12 SoC reset when SBL executed with
ROM flow in release mode for UART boot
Changes for modified giga device flash
part for TPR12 EVM compatible with ROM

Signed-off-by: Badri S <badri@ti.com>
7 months agotpr12: fixes when testing SBL QSPI mode on TPR12 EVM
Badri S [Fri, 16 Oct 2020 11:02:02 +0000 (16:32 +0530)]
tpr12: fixes when testing SBL QSPI mode on TPR12 EVM

misc fixes for issues found when enabling SBL QSPI mode
on TPR12 EVM

Signed-off-by: Badri S <badri@ti.com>
7 months agosbl/tpr12: added qspi test to write from file to flash
Badri S [Tue, 13 Oct 2020 07:04:48 +0000 (12:34 +0530)]
sbl/tpr12: added qspi test to write from file to flash

to test SBL QSPI in absense of uniflash tool temp added
qspi test option to read file via CCS and write to
serial flash

Signed-off-by: Badri S <badri@ti.com>
7 months agoadded sync using the hw spare register
Prasad Konnur [Wed, 7 Oct 2020 15:52:59 +0000 (21:22 +0530)]
added sync using the hw spare register

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
7 months agoBoard: Updated tpr12 evm board flash library
M V Pratap Reddy [Fri, 9 Oct 2020 11:40:30 +0000 (17:10 +0530)]
Board: Updated tpr12 evm board flash library

7 months agosbl/tpr12: Support timeout for UART SBL mode
Badri S [Sun, 11 Oct 2020 13:38:54 +0000 (19:08 +0530)]
sbl/tpr12: Support timeout for UART SBL mode

Support timeout for UART SBL mode for TPR12.
Also move the module clock init out of SBL lib
to SBL image and moved it board folder

Signed-off-by: Badri S <badri@ti.com>
7 months agomailbox/tpr12: fix for mailmox msg app to work with SBL
Badri S [Wed, 7 Oct 2020 11:55:03 +0000 (17:25 +0530)]
mailbox/tpr12: fix for mailmox msg app to work with SBL

Fix sequencing issue in mailbox app where remote core
mailbox clears mailbox interrupt and msg ram on open
resulting in msg lost. So modified application to
rewrite msg if write timeout

Signed-off-by: Badri S <badri@ti.com>
7 months agoosal/tpr12: fixes for OSAL examples to run with SBL
Badri S [Wed, 7 Oct 2020 07:58:49 +0000 (13:28 +0530)]
osal/tpr12: fixes for OSAL examples to run with SBL

Fix issues with Board init on multiple cores causing
RTI interrutps to stop on remote core.Also changed
log to SysMin to allow CCS connection after test
execution and confirm test pass without losing
log prints.Sysmin logs output to buffer which
can be viewed using ROV

Signed-off-by: Badri S <badri@ti.com>
7 months agoqspi/tpr12: qspi read/write example fixes for tpr12 evm
Badri S [Mon, 5 Oct 2020 10:58:30 +0000 (16:28 +0530)]
qspi/tpr12: qspi read/write example fixes for tpr12 evm

Fixes for validating QSPI example on TPR12 EVM

Signed-off-by: Badri S <badri@ti.com>
7 months agoSBL: J721E-HS: Workaround for HS boot
Jonathan Bergsagel [Fri, 30 Oct 2020 23:45:32 +0000 (18:45 -0500)]
SBL: J721E-HS: Workaround for HS boot

Workaround to remove the NavSS QoS setup that
was blocking TIFS loading for boot on HS devices.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
7 months agoPDK-7618: SBL: remove duplicate boot media clock releases
Jonathan Bergsagel [Fri, 30 Oct 2020 19:34:57 +0000 (14:34 -0500)]
PDK-7618: SBL: remove duplicate boot media clock releases

No longer need these Boot Media clock releases when
booting HLOS, since it is being done in Board lib now.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
7 months ago[PDK-8391] UDMA UT : Fix issues with unit_testapp on J7200 mcu2_1
Don Dominic [Fri, 30 Oct 2020 09:46:27 +0000 (15:16 +0530)]
[PDK-8391] UDMA UT : Fix issues with unit_testapp on J7200 mcu2_1

- Update Linker File
- Else Test was stuck in Sciclient_Service in Sciclient_init

Signed-off-by: Don Dominic <a0486429@ti.com>
7 months agoPDK-5002: Board: Added csirx diagnostic test for tpr12 evm
M V Pratap Reddy [Mon, 28 Sep 2020 13:02:48 +0000 (18:32 +0530)]
PDK-5002: Board: Added csirx diagnostic test for tpr12 evm

7 months agopdk: PDK-8118: add QSPI flash support for am64x
Hao Zhang [Thu, 29 Oct 2020 13:56:15 +0000 (09:56 -0400)]
pdk: PDK-8118: add QSPI flash support for am64x

Signed-off-by: Hao Zhang <hzhang@ti.com>
7 months agoPDK-6963: Updated tpr12 evm flash library for GigaDevice qspi flash
M V Pratap Reddy [Fri, 30 Oct 2020 07:42:40 +0000 (13:12 +0530)]
PDK-6963: Updated tpr12 evm flash library for GigaDevice qspi flash

7 months agoUse SCICLIENT Direct for unifalsh build
Sivaraj R [Fri, 30 Oct 2020 04:26:00 +0000 (09:56 +0530)]
Use SCICLIENT Direct for unifalsh build

Signed-off-by: Sivaraj R <sivaraj@ti.com>
7 months agoSBL: Build fix for combined.appimage file creation
Jonathan Bergsagel [Fri, 30 Oct 2020 01:10:52 +0000 (20:10 -0500)]
SBL: Build fix for combined.appimage file creation

Most builds won't specify GCC_ARCH64_BIN_PREFIX variable,
so added a default for it.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
7 months agoPDK-8155: IPC: Update test to board config sharing for mcu1_0 REL.CORESDK.07.01.00.29
Angela Stegmaier [Tue, 6 Oct 2020 03:58:50 +0000 (22:58 -0500)]
PDK-8155: IPC: Update test to board config sharing for mcu1_0

Update the IPC examples to use the new logic for board config.
Also update the linker files to specify OCMC used for sciclient
for board config.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
7 months agoFix board diag build REL.CORESDK.07.01.00.28
Sivaraj R [Thu, 29 Oct 2020 16:01:20 +0000 (21:31 +0530)]
Fix board diag build

Signed-off-by: Sivaraj R <sivaraj@ti.com>
7 months agoSBL: J7200/J721E: Move to TIFS firmware REL.CORESDK.07.01.00.27
Jonathan Bergsagel [Wed, 28 Oct 2020 23:25:57 +0000 (18:25 -0500)]
SBL: J7200/J721E: Move to TIFS firmware

Transition to loading tifs.bin and reporting TIFS version,
instead of SYSFW.
Keep sysfw.bin for all other K3 SoCs.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
7 months agosciserver apps
Piyali Goswami [Thu, 29 Oct 2020 13:22:17 +0000 (18:52 +0530)]
sciserver apps

Sciserver Apps build updates

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
7 months agosciclient: Send RM boardcfg to TIFS prior to handling locally
Justin Sobota [Wed, 21 Oct 2020 17:53:43 +0000 (13:53 -0400)]
sciclient: Send RM boardcfg to TIFS prior to handling locally

For HSM case, the RM board configuration must be sent
to TIFS on the M3 then to DM running locally on the
MCU R5F.  Update sciclient_direct.c to route the RM
board configuration properly.

Signed-off-by: Justin Sobota <jsobota@ti.com>
7 months agoMigrating to SYSFW version v2020.08
Piyali Goswami [Wed, 28 Oct 2020 06:39:42 +0000 (12:09 +0530)]
Migrating to SYSFW version v2020.08

Migration to SYSFW v2020.08

7 months agoupdated pass string as required by automation
Prasad Konnur [Thu, 29 Oct 2020 13:18:45 +0000 (18:48 +0530)]
updated pass string as required by automation

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
7 months agoMMCSD : MMCSD_EMMC_DMA_TestApp : Enabled appimage generation
sujith [Thu, 29 Oct 2020 11:41:26 +0000 (17:11 +0530)]
MMCSD : MMCSD_EMMC_DMA_TestApp : Enabled appimage generation

Tested in uart boot mode for mcu 10 and it works fine
on j7200 evm

Signed-off-by: sujith <sujith.s@ti.com>
7 months agoPDK-7618: Board: Created different init/deinit clock groups for j7 boards
M V Pratap Reddy [Fri, 16 Oct 2020 13:25:46 +0000 (18:55 +0530)]
PDK-7618: Board: Created different init/deinit clock groups for j7 boards

 - Board library for j721e and j7200 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.

7 months agoPDK-5118: Board: Updated am64x evm pinmux configurations
M V Pratap Reddy [Wed, 28 Oct 2020 16:01:59 +0000 (21:31 +0530)]
PDK-5118: Board: Updated am64x evm pinmux configurations

7 months agoPDK-6970: Board: Enabled uart stress test for am64x evm
M V Pratap Reddy [Wed, 28 Oct 2020 16:00:32 +0000 (21:30 +0530)]
PDK-6970: Board: Enabled uart stress test for am64x evm

7 months agoPDK-5119: Board: Enabled diagnostic test framework for am64x evm
M V Pratap Reddy [Wed, 28 Oct 2020 15:50:24 +0000 (21:20 +0530)]
PDK-5119: Board: Enabled diagnostic test framework for am64x evm

7 months agoPDK-5495: Board: Enabled Uniflash flash programmer for am64x evm
M V Pratap Reddy [Wed, 28 Oct 2020 14:59:56 +0000 (20:29 +0530)]
PDK-5495: Board: Enabled Uniflash flash programmer for am64x evm

 PDK-5155: Support for OSPI flash programmer
 PDK-5154: Support for eMMC flash programmer

7 months agoPDK-8367: Board: Added spi eeprom diagnostic test for am64x evm
M V Pratap Reddy [Wed, 28 Oct 2020 13:59:11 +0000 (19:29 +0530)]
PDK-8367: Board: Added spi eeprom diagnostic test for am64x evm

7 months agoPDK-5114: Board: Enabled LED diagnostic test for am64x evm
M V Pratap Reddy [Wed, 28 Oct 2020 13:37:55 +0000 (19:07 +0530)]
PDK-5114: Board: Enabled LED diagnostic test for am64x evm

7 months agoPDK-6971: Board: Enabled expansion header diagnostic test for am64x evm
M V Pratap Reddy [Wed, 28 Oct 2020 12:38:15 +0000 (18:08 +0530)]
PDK-6971: Board: Enabled expansion header diagnostic test for am64x evm

7 months agoPDK-5120: Board: Enabled mcan diagnostic test for am64x evm
M V Pratap Reddy [Fri, 23 Oct 2020 11:04:50 +0000 (16:34 +0530)]
PDK-5120: Board: Enabled mcan diagnostic test for am64x evm

7 months agotransport: timesync: v2: Update Enet LLD IOCTL params
Misael Lopez Cruz [Tue, 27 Oct 2020 10:50:04 +0000 (05:50 -0500)]
transport: timesync: v2: Update Enet LLD IOCTL params

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
7 months agoMCAL-4935: SBL: Add DDR enable to SBL CUST build
Jonathan Bergsagel [Wed, 28 Oct 2020 07:38:49 +0000 (02:38 -0500)]
MCAL-4935: SBL: Add DDR enable to SBL CUST build

J7200 / J721E -- adds DDR enable capability to the SBL CUST
build for these two devices.  Supports MCUSW Boot App loading
images in DDR for HLOS boot.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
7 months ago[PDK-8360] SBL_QOS: Workaround to fix issues with UDMA DRU examples
Don Dominic [Wed, 28 Oct 2020 09:34:43 +0000 (15:04 +0530)]
[PDK-8360] SBL_QOS: Workaround to fix issues with UDMA DRU examples

- This workaround is to unblock PDK-8359
- setup_main_r5f_qos() results in crashing the UDMA DRU examples on
  mcu2_0(with SBL uart boot mode) during CSL_REG64_WR(&pRegs->DRUQueues.CFG[queueId], regVal);

Signed-off-by: Don Dominic <a0486429@ti.com>
7 months agoPDK-8346: sdr-test: Update makefile to be able to create lockstep app image REL.CORESDK.07.01.00.26
Sam Nelson [Tue, 27 Oct 2020 20:15:27 +0000 (16:15 -0400)]
PDK-8346: sdr-test: Update makefile to be able to create lockstep app image

Note: This is currently only enabled for AM65XX.

Signed-off-by: Sam Nelson <sam.nelson@ti.com>
7 months agoPDK-6815: SDR update to remove usage of initialized TCM sections
Sam Nelson [Mon, 26 Oct 2020 22:44:27 +0000 (18:44 -0400)]
PDK-6815: SDR update to remove usage of initialized TCM sections

And also need to enable TCMs on boot up as the TCMs are needed to run
ECC
tests

Signed-off-by: Sam Nelson <sam.nelson@ti.com>
7 months ago[DSS App/Test][Bug Fix][PDK-6703][DSS Test]DSS Display RTOS Overlay4 and VP4 test...
Vivek Dhande [Tue, 27 Oct 2020 09:00:56 +0000 (14:30 +0530)]
[DSS App/Test][Bug Fix][PDK-6703][DSS Test]DSS Display RTOS Overlay4 and VP4 test is failing

- Issue:
    - Re-compile and run the code for 'dss_display_testapp', change following parameters set 'DISP_APP_TEST_OVERLAY_VP_4' to '1'
- Root-Cause:
    - Display was not support and reported FPS were 4x then expected
    - This was happening due to wrong configuration of dpi3_clk_2x for VP4
    - This should be 148.5 MHz for given fps and resolution, this was 600 MHz earlier
- Resolution:
    - Configure clock for VP4 to required rate which is 148.5 MHz

Signed-off-by: Vivek Dhande <a0132295@ti.com>
7 months agoPDK-6957: Board: Disabled app image generation for tpr12 Uniflash to avoid
M V Pratap Reddy [Tue, 27 Oct 2020 07:59:35 +0000 (13:29 +0530)]
PDK-6957: Board: Disabled app image generation for tpr12 Uniflash to avoid
build errors

7 months agoPDK-6957: Board: Removed the delays added for debug in tpr12 board flash library
M V Pratap Reddy [Tue, 27 Oct 2020 07:12:11 +0000 (12:42 +0530)]
PDK-6957: Board: Removed the delays added for debug in tpr12 board flash library

 - Fix for C++ build errors

7 months agoPDK-6938: Board: Updated buffer allocations for tpr12 uart diag stress test
M V Pratap Reddy [Tue, 27 Oct 2020 06:59:23 +0000 (12:29 +0530)]
PDK-6938: Board: Updated buffer allocations for tpr12 uart diag stress test

7 months agoPDK-6957: Board: Uniflash flash programmer validated on tpr12 evm
M V Pratap Reddy [Tue, 27 Oct 2020 06:50:02 +0000 (12:20 +0530)]
PDK-6957: Board: Uniflash flash programmer validated on tpr12 evm

 - Uniflash flash programmer is validated on tpr12 evm through jtag
   to flash the images. RoM boot flow need to be verified with updated
   flash device.

7 months agoPDK-6963: Board: Update tpr12 evm board flash library
M V Pratap Reddy [Mon, 26 Oct 2020 03:56:21 +0000 (09:26 +0530)]
PDK-6963: Board: Update tpr12 evm board flash library

 - Enabled support for both mmap and config mode transfers
 - Moved the trp12 source to nor_qspi_v1.c to avoid multiple compiler flags

7 months agoSBL: Version: version number update for PDK 7.1
Jonathan Bergsagel [Tue, 27 Oct 2020 07:26:22 +0000 (02:26 -0500)]
SBL: Version: version number update for PDK 7.1

Bumped up SBL version number to 01.00.10.00.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
7 months agoPDK-8280: Add ipc_echo_testb to SBL combined.appimage
Jonathan Bergsagel [Mon, 26 Oct 2020 15:46:14 +0000 (10:46 -0500)]
PDK-8280: Add ipc_echo_testb to SBL combined.appimage

With HSM rearch, we require the "ipc_echo_testb" to be running
on MCU1_0, when booting the HLOS (Linux).  It hosts the
sciserver on MCU1_0 as well as sets up for IPC communication
with Linux.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
7 months agoti/drv/uart: SCI bug fixes and UART test enhancements
Eric Ruei [Wed, 21 Oct 2020 21:20:36 +0000 (17:20 -0400)]
ti/drv/uart: SCI bug fixes and UART test enhancements

tpr12/soc: MSS domain: add DSS SCI instance
uartsci.c: fix the following two bugs
  - UartSci_write: need to wait for TxFree prior to the first ch write
  - UartSci_close: Wait for Tx empty to ensure all pending transmission
                   are completed
Uart test: TPR12: UART_RX_LOOPBAK_ONLY valid for SIM_BUILD only
           TPR12: Verify DSS UART instance at R5F
           Increase  UART_TEST_TIMEOUT to 10 seconds to be consistent
           with test description
           Replace sizeof(const string array) to strlen(const string array)
           to provide the accurate length for UART_write()
           Add cache alignments to all output buffers
           restrict the Tx profile test for QT only because the test requires
           CCS console output and the baudrate does not match th eone at the terminal
UART build: add tpr12_qt

Signed-off-by: Eric Ruei <e-ruei1@ti.com>
7 months agoj721e: Include Header changes for consistency to SYSFW headers
Piyali Goswami [Sun, 25 Oct 2020 17:50:33 +0000 (23:20 +0530)]
j721e: Include Header changes for consistency to SYSFW headers

Fixes to make the header macros the same as what SYSFW is generating

Fixes: PDK-6980

Signed-off-by: Piyali Goswami <piyali_g@ti.com>