]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/log
processor-sdk/pdk.git
3 years agoPDK-5115: Board: Updated gpio mapping for am64x expansion header test
M V Pratap Reddy [Fri, 27 Nov 2020 04:02:23 +0000 (09:32 +0530)]
PDK-5115: Board: Updated gpio mapping for am64x expansion header test

3 years agoPDK-6940: Board: Updated gpio mapping for am64x evm boot switch test
M V Pratap Reddy [Fri, 27 Nov 2020 03:57:11 +0000 (09:27 +0530)]
PDK-6940: Board: Updated gpio mapping for am64x evm boot switch test

3 years agoPDK-6953: Board: Updated automation header boot values for am64x evm
M V Pratap Reddy [Fri, 27 Nov 2020 03:54:01 +0000 (09:24 +0530)]
PDK-6953: Board: Updated automation header boot values for am64x evm

3 years agoPDK-6951: Board: Updated current monitor calibration values for am64x evm
M V Pratap Reddy [Fri, 27 Nov 2020 03:52:02 +0000 (09:22 +0530)]
PDK-6951: Board: Updated current monitor calibration values for am64x evm

3 years agoPDK-5151: Board: Updated the oled display test for am64x evm
M V Pratap Reddy [Fri, 27 Nov 2020 03:47:02 +0000 (09:17 +0530)]
PDK-5151: Board: Updated the oled display test for am64x evm

 - OLED display test validated on EVM HW
 - Updated the file names to be platform independent

3 years agoPDK-6952: Board: Updated led diagnostic test for am64x evm
M V Pratap Reddy [Fri, 27 Nov 2020 03:18:50 +0000 (08:48 +0530)]
PDK-6952: Board: Updated led diagnostic test for am64x evm

 - User LED and industrial LED diag tests are validated on EVM HW

3 years agomcspi: am64x: add RAT offset for M4F
Vishal Mahaveer [Thu, 26 Nov 2020 15:49:51 +0000 (09:49 -0600)]
mcspi: am64x: add RAT offset for M4F

Add RAT offset to baseaddress of MCSPI registers.

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
3 years agoSPI : Add check for return value of MCSPI_dmaConfig in MCSPI_open_v1
Don Dominic [Thu, 26 Nov 2020 13:50:41 +0000 (19:20 +0530)]
SPI : Add check for return value of MCSPI_dmaConfig in  MCSPI_open_v1

- Check for return value of MCSPI_dmaConfig was missing
- Any error in UDMA config was missed

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agouart: test: use main uart0 for am64x tests REL.CORESDK.07.01.03.01
Vishal Mahaveer [Thu, 26 Nov 2020 01:21:37 +0000 (19:21 -0600)]
uart: test: use main uart0 for am64x tests

Uart test does not have support for MCU UART0, this is a problem
when running on M4 core as MCU UART0 gets assigned as the default instance.

For now use the main uart0 for all cores of am64x tests.

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
3 years agoPDK-6948: Board: Updated am64x evm pinmux
M V Pratap Reddy [Wed, 25 Nov 2020 23:16:24 +0000 (04:46 +0530)]
PDK-6948: Board: Updated am64x evm pinmux

 - Enabled Rx active for FSI-Rx lines
 - Corrected Board_pinmuxSetReg for proper register offset access

3 years agoSciclient: AM64x: support M4F in launch.js
Sheng Zhao [Mon, 23 Nov 2020 22:07:29 +0000 (16:07 -0600)]
Sciclient: AM64x: support M4F in launch.js

Initialize M4F in the launch.js script.

Signed-off-by: Sheng Zhao <shengzhao@ti.com>
3 years agoSPI : AM64x Bringup : Fix Issues with MCSPI multi-channel test on mpu1_0
Don Dominic [Wed, 25 Nov 2020 15:34:42 +0000 (21:04 +0530)]
SPI : AM64x Bringup : Fix Issues with MCSPI multi-channel test on mpu1_0

- On mpu1_0,  Multi-channel tests was faling during opening the second channel
- In mcspi inti only the default channel (ch0) object was reset
- Updated 'MCSPI_init_v1' to reset all 4 mcspi channels
- Non-DMA multichannel test are working fine on AM64x mpu1_0 with this fix

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agoAM64x OSPI Bringup
Aditya Wadhwa [Tue, 24 Nov 2020 15:25:13 +0000 (20:55 +0530)]
AM64x OSPI Bringup

Removed SIM_BUILD.
Semantic corrections.
WAs added for PDK-8724 and PDK-8607.
Order of tests changed to 166MHz then 133MHz.

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
3 years agoosal: return correct test result from hwi test
Vishal Mahaveer [Wed, 25 Nov 2020 03:41:47 +0000 (21:41 -0600)]
osal: return correct test result from hwi test

OSAL_hwi_test unconditionally returns true, fix it by returning
actual result.

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
3 years ago[PDK-8761] AM64x UART UT : Workaround for issues with DMA mode tests on R5F
Don Dominic [Tue, 24 Nov 2020 16:50:52 +0000 (22:20 +0530)]
[PDK-8761]  AM64x UART UT : Workaround for issues with DMA mode tests on R5F

- Reordered the testcases such that the following tests runs before UART timeout test(UT4/5)
  - UART simultaneous read write test (BIOS only test)
  - UART TX/RX FIFO trigger level test
- Else the above testcases (UT10/12) was hanging
- Also intermittent hang was seen in the following testcases
  - UART DMA RX error test, enter a break (UT6)
  - UART DMA read write cancel test, enter less than 16 chars (UT8)

- This commit is a workaround for the above issues.
- PDK-8761 to track, root-cause and fix this issue

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agoboard: am64x_evm: add pinmux support for M4F
Vishal Mahaveer [Tue, 24 Nov 2020 16:32:50 +0000 (10:32 -0600)]
board: am64x_evm: add pinmux support for M4F

Add RAT configuration offset for doing pinmux from M4F.

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
3 years agoPDK-8760: IPC: Examples: AM64X: Use default RAT config for M4F
Angela Stegmaier [Tue, 24 Nov 2020 16:34:36 +0000 (10:34 -0600)]
PDK-8760: IPC: Examples: AM64X: Use default RAT config for M4F

The default RAT config for M4F (located in csl/arch/m4/startup/startup.c)
already contains the mapping for the mailbox registers, as well
as other needed mappings. Update the IPC M4F test apps to
use the default RAT config instead of a custom RAT config.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
3 years agoenable appimage gen for pcie tests
Prasad Konnur [Fri, 20 Nov 2020 07:46:31 +0000 (13:16 +0530)]
enable appimage gen for pcie tests

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
3 years agoAM64x: UDMA UT: Build Fix
Don Dominic [Tue, 24 Nov 2020 05:17:51 +0000 (10:47 +0530)]
AM64x: UDMA UT: Build Fix

- Add utilsCopyVecsToAtcm SECTION to linker file
- This fixes the linking error with udma_unit_testapp om AM64x nmcu1_0/mcu1_1/mcu2_0/mcu2_1

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agoSBL: Handle different size R5 ATCM/BTCM on different SoCs
Mahesh Radhkrishnan [Mon, 26 Oct 2020 20:01:03 +0000 (16:01 -0400)]
SBL: Handle different size R5 ATCM/BTCM on different SoCs

Updates SBL to check for reported ATCM/BTCM memory sizes
for the R5 for each device, instead of using hard-coded
sizes with compile tokens.

Initialization of ATCM/BTCM memories can then take place
with the proper size, for each situation.

Tested-by: Jonathan Bergsagel <jbergsagel@ti.com>
3 years agofixed am64x linker cmd file for sysbios
Prasad Konnur [Mon, 23 Nov 2020 16:55:08 +0000 (22:25 +0530)]
fixed am64x linker cmd file for sysbios

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
3 years agoPDK-6948: Board: Fix for OSPI PHY tuning failure on AM64x EVM
M V Pratap Reddy [Mon, 23 Nov 2020 08:16:56 +0000 (13:46 +0530)]
PDK-6948: Board: Fix for OSPI PHY tuning failure on AM64x EVM

3 years agoAM64x: Sciclient: Update non-Secure host for A53
Don Dominic [Sun, 22 Nov 2020 06:20:34 +0000 (11:50 +0530)]
AM64x: Sciclient: Update non-Secure host for A53

- BoardCfg is using TISCI_HOST_ID_A53_2 (12U)
- Hence, to allign using SCICLIENT_CONTEXT_A53_NONSEC_1

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agosciclient: update AM64x launch.js
Sheng Zhao [Sat, 21 Nov 2020 21:39:55 +0000 (15:39 -0600)]
sciclient: update AM64x launch.js

Mask the boot mode check with 0x78. No-boot mode needs bit[6-3]=1. Bit7 is
don't care.

Signed-off-by: Sheng Zhao <shengzhao@ti.com>
3 years agoRevert "Board: Disabled sciclient init in am64x evm board library"
Vishal Mahaveer [Sat, 21 Nov 2020 19:59:37 +0000 (13:59 -0600)]
Revert "Board: Disabled sciclient init in am64x evm board library"

This reverts commit 1db8ad0569960c7370bbe8c96af6f52f40201152.

launch.js is functional now for AM64x.

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
3 years agoEnabling launch.js and DDR init
Goswami [Sat, 21 Nov 2020 19:07:38 +0000 (13:07 -0600)]
Enabling launch.js and DDR init

Enabling AM64x luanch.js and DDR init

Should be used with GEL updates

Signed-off-by: Goswami <piyali_g@ti.com>
3 years agoPDK-6948: Board: Added mmc1 loopback clock config for am64x evm pinmux
M V Pratap Reddy [Sat, 21 Nov 2020 13:53:00 +0000 (07:53 -0600)]
PDK-6948: Board: Added mmc1 loopback clock config for am64x evm pinmux

 - Communication with SD card is failing without enabling the pinmux for
   MMC1_CLKLB pin

3 years agoAM64x launch.js updates
Goswami [Sat, 21 Nov 2020 11:31:52 +0000 (05:31 -0600)]
AM64x launch.js updates

Updates to run SYSFW on AM64 silicon

Signed-off-by: Goswami <piyali_g@ti.com>
3 years agoSBL: AM64x: UART clock updates for silicon
Jonathan Bergsagel [Fri, 20 Nov 2020 19:51:36 +0000 (13:51 -0600)]
SBL: AM64x: UART clock updates for silicon

Update UART input clock values for actual silicon.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
3 years ago[PDK-8728] UDMA: Update UDMA Resource Allocation for c7x-host-emu
Don Dominic [Fri, 20 Nov 2020 14:31:14 +0000 (20:01 +0530)]
[PDK-8728] UDMA: Update UDMA Resource Allocation for c7x-host-emu

- For c7x-host-emu:
- Reserve 16 DRU channels &
- 32 Free Rings(in allignment with current BoardCfg for C7x) - Since there is Indirect TR usecase with dmautils

- DMSC/SCICLIENT is NA for host emu
- Hence querying from the BoardCfg is not supported.
- Therefore updating the sciclient_dummy.c file to return these ranges for c7x-host-emu

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agoPDK-6948: Board: Added mmr unlock after pinmux config in am64x evm board
M V Pratap Reddy [Fri, 20 Nov 2020 03:49:17 +0000 (21:49 -0600)]
PDK-6948: Board: Added mmr unlock after pinmux config in am64x evm board
lib

3 years agoPDK-6948: Board: Updated am64x evm board uart init
M V Pratap Reddy [Fri, 20 Nov 2020 02:45:26 +0000 (20:45 -0600)]
PDK-6948: Board: Updated am64x evm board uart init

 - Updaed board UART init to control the UART instance
   through board init params.

3 years agoPDK-6948: Board: Added mmr unlock for am64x evm pinmux
M V Pratap Reddy [Fri, 20 Nov 2020 02:44:00 +0000 (20:44 -0600)]
PDK-6948: Board: Added mmr unlock for am64x evm pinmux

3 years agoSciclient: AM64x silicon updates
Piyali Goswami [Fri, 20 Nov 2020 03:10:11 +0000 (08:40 +0530)]
Sciclient: AM64x silicon updates

AM64x Silicon bringup updates

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
3 years agoBoard: Disabled sciclient init in am64x evm board library
M V Pratap Reddy [Thu, 19 Nov 2020 19:00:59 +0000 (00:30 +0530)]
Board: Disabled sciclient init in am64x evm board library

 - sciclient init is disabled in am64x board init function to make the
   board init execution independent of sciclient.
   This will be enabled after sciclient is validated and stable
   with SoC.

3 years agoBoard: Remoaved SIM_BUILD configurations in am64x board
M V Pratap Reddy [Thu, 19 Nov 2020 14:57:43 +0000 (20:27 +0530)]
Board: Remoaved SIM_BUILD configurations in am64x board

 - Conifgurations enabled using SIM_BUILD macro are used for QT/Zebu
   testing. Need to disable these configs for testing on EVM.

3 years agoPDK-8458: sciclient: update AM64x RAT macro name
Sheng Zhao [Wed, 18 Nov 2020 20:51:42 +0000 (14:51 -0600)]
PDK-8458: sciclient: update AM64x RAT macro name

Since the secure proxy config is used by all cores in AM64x, the RAT
macro name should not be limited to M4F. The RAT offset should be
applied only for M4F applications.

Just renaming macros. No functional change.

Signed-off-by: Sheng Zhao <shengzhao@ti.com>
3 years agoRevert "BOARD: Enabling Board_moduleClock() only for mpu & mcu cores (not m4f)"
Vishal Mahaveer [Wed, 18 Nov 2020 05:06:22 +0000 (23:06 -0600)]
Revert "BOARD: Enabling Board_moduleClock() only for mpu & mcu cores (not m4f)"

This reverts commit 5d48db09b6a9c6b2280c3da95fab924228a2906f.

Board_moduleClockEnable was previously disabled for M4F since it was crashing.
The crash is fixed after RAT configuration was enabled for sec proxy register
regions.

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
3 years agoPDK-8458: sciclient: update secure proxy config for AM64x
Sheng Zhao [Tue, 17 Nov 2020 22:19:42 +0000 (16:19 -0600)]
PDK-8458: sciclient: update secure proxy config for AM64x

The M4F core on AM64x needs RAT to access the secure proxy registers.
The offset of 0x60000000 is used to convert from MAIN domain memory
map to M4FSS memory map.

Signed-off-by: Sheng Zhao <shengzhao@ti.com>
3 years agoam64x: align BIOS and XDC version with other devices
Vishal Mahaveer [Tue, 17 Nov 2020 04:46:56 +0000 (22:46 -0600)]
am64x: align BIOS and XDC version with other devices

Changing to below versions

  BIOS_VERSION=6_83_00_18
  XDC_VERSION=3_61_03_29_core

Important fix related to A53 interrupts is included in 6_83 version.
More info in SYSBIOS-1409.

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
3 years agoStatic Analysis fixes for Sciclient
Piyali Goswami [Mon, 16 Nov 2020 04:11:06 +0000 (09:41 +0530)]
Static Analysis fixes for Sciclient

Static Analysis fixes for Sciclient

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
3 years agoBoard: Removed compile error based on core check in am64x evm board cfg REL.CORESDK.07.01.00.40
M V Pratap Reddy [Mon, 16 Nov 2020 05:55:21 +0000 (11:25 +0530)]
Board: Removed compile error based on core check in am64x evm board cfg

3 years agoPDK-8305: Updated am64x evm board uart config to map to proper SoC instance REL.CORESDK.07.01.00.39
M V Pratap Reddy [Fri, 13 Nov 2020 12:18:24 +0000 (17:48 +0530)]
PDK-8305: Updated am64x evm board uart config to map to proper SoC instance

 - Removed the additional configurations done for UART and I2C for
   SoC domain switch which are not needed on AM64x

3 years agoSciclient: Fixes for the firmware boot applications
Piyali Goswami [Thu, 12 Nov 2020 11:11:03 +0000 (16:41 +0530)]
Sciclient: Fixes for the firmware boot applications

Fixes to add support firmware boot for J721e

Fixes: PDK-8579
Signed-off-by: Piyali Goswami <piyali_g@ti.com>
3 years agoSciclient_firmware_boot: Update for the test case for the firmware boot
Piyali Goswami [Thu, 12 Nov 2020 10:41:50 +0000 (16:11 +0530)]
Sciclient_firmware_boot: Update for the test case for the firmware boot

Update for the Firmware boot test app to run on AM65x and J7200

Fixes: PDK-8602
Signed-off-by: Piyali Goswami <piyali_g@ti.com>
3 years agoPDK-8578: Fix for sciclient_fw_test example
Piyali Goswami [Thu, 12 Nov 2020 05:12:47 +0000 (10:42 +0530)]
PDK-8578: Fix for sciclient_fw_test example

Fix for the example to run on J721e, J7200 and AM65xx

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
3 years agoPDK-8155: IPC examples: Call Sciclient_init before Sciserver_tirtosInit REL.CORESDK.07.01.00.36 REL.CORESDK.07.01.00.37 REL.CORESDK.07.01.00.38
Angela Stegmaier [Wed, 11 Nov 2020 21:30:34 +0000 (15:30 -0600)]
PDK-8155: IPC examples: Call Sciclient_init before Sciserver_tirtosInit

Sciclient_init should be called before Sciserver_tirtosInit in
the init sequence.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
3 years agomcspi example fix for release mode
Prasad Konnur [Wed, 11 Nov 2020 06:42:29 +0000 (12:12 +0530)]
mcspi example fix for release mode

 - after adding sync between the master and slave delay required in
master app for the release binary to make sure the slave is ready before
master initiates the transfer.

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
3 years ago[BugFix] PDK-7945: OSPI Flash Application failing on J721E REL.CORESDK.07.01.00.35
Prasad Konnur [Mon, 9 Nov 2020 07:31:53 +0000 (13:01 +0530)]
[BugFix] PDK-7945: OSPI Flash Application failing on J721E

fixed ospi rtos example for j721e

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
3 years agobuild fixed for baremetal build
Prasad Konnur [Tue, 10 Nov 2020 05:49:58 +0000 (11:19 +0530)]
build fixed for baremetal build

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
3 years agoSciclient: documentation and header update
Piyali Goswami [Mon, 9 Nov 2020 13:42:10 +0000 (19:12 +0530)]
Sciclient: documentation and header update

Update for the documentation and header

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
3 years agosdr_test: Update j721e linker file to not load to ATCM
Angela Stegmaier [Mon, 9 Nov 2020 22:30:49 +0000 (16:30 -0600)]
sdr_test: Update j721e linker file to not load to ATCM

This fixes issue observed when performing sbl mmcsd booting
of the sdr_test appimage.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
3 years agofixed mcspi example for j721e and j7200
Prasad Konnur [Wed, 28 Oct 2020 17:15:36 +0000 (22:45 +0530)]
fixed mcspi example for j721e and j7200

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
3 years agoPDK-8495: QoS settings disabled for SBL boot
Sivaraj R [Sat, 7 Nov 2020 10:14:21 +0000 (15:44 +0530)]
PDK-8495: QoS settings disabled for SBL boot

- Enabled the QoS settings for Non-HS
- For HS issue, we can track this seperately
- Also used CSLR register write macro instead of
writel which was not using the volatile keyward for
reg access - but not sure if this caused any issues
- The R5F QOS is still disabled as this is causing the
DRU testcases to hang

Signed-off-by: Sivaraj R <sivaraj@ti.com>
3 years agoPDK-8569: Board: Updated Uniflash host tool to avoid platform dependency for sysfw...
M V Pratap Reddy [Mon, 9 Nov 2020 06:11:53 +0000 (11:41 +0530)]
PDK-8569: Board: Updated Uniflash host tool to avoid platform dependency for sysfw load

 - Uniflash host tool depends on the platform name in the Uniflash flash programmer
   binary file name to decide whether system firmware autoload is needed.
   This is causing the Uniflash host tool update for every new platform with system firmware dependency.
   Updated the host tool to load system firmware if the file exists in flash programmer folder
   instead of depending on the platform name.

3 years agoBoard: Added ospi phy tuning data binary file
M V Pratap Reddy [Mon, 9 Nov 2020 05:56:56 +0000 (11:26 +0530)]
Board: Added ospi phy tuning data binary file

3 years agoPDK-8567: Board: Fix for board flash open performance issue on j7200
M V Pratap Reddy [Mon, 9 Nov 2020 05:54:20 +0000 (11:24 +0530)]
PDK-8567: Board: Fix for board flash open performance issue on j7200

 - Board flash open function is taking more CPU cycles which is caused
   by flash register write to configure hybrid sector configuration.
   Updated the code to check for the default setting and write only
   if hybrid sector config needs a change.

3 years agoSysfw Public doc updates
Piyali Goswami [Mon, 9 Nov 2020 05:20:54 +0000 (10:50 +0530)]
Sysfw Public doc updates

Public docs update based on review feedback

Fixes: SYSFW-4215
Signed-off-by: Piyali Goswami <piyali_g@ti.com>
3 years agoPDK-8305: Board: Updated am64x diag tests to map with proper driver instances REL.CORESDK.07.01.02.03 REL.CORESDK.07.01.02.04
M V Pratap Reddy [Fri, 6 Nov 2020 15:27:17 +0000 (20:57 +0530)]
PDK-8305: Board: Updated am64x diag tests to map with proper driver instances

3 years agoPDK-5118: Board: Enabled I2C init functions in am64x board library
M V Pratap Reddy [Fri, 6 Nov 2020 15:07:50 +0000 (20:37 +0530)]
PDK-5118: Board: Enabled I2C init functions in am64x board library

3 years agoAdded wwdt multicore back to build with lastcore change
Nicholas Chan [Thu, 5 Nov 2020 20:20:30 +0000 (14:20 -0600)]
Added wwdt multicore back to build with lastcore change

3 years agoPDK-8511: sciserver: set GTC to 200MHz
Sheng Zhao [Fri, 6 Nov 2020 20:36:14 +0000 (14:36 -0600)]
PDK-8511: sciserver: set GTC to 200MHz

This is a temporary hack. The SPL expects the GTC to be configured at
200MHz. Since the default GTC frequency is 250MHz, it needs to be
reconfigured to 200MHz to align with SPL.

Signed-off-by: Sheng Zhao <shengzhao@ti.com>
3 years ago[PDK-8391] UDMA UT : Fix issues with unit_testapp on J7200 mcu2_1 and mcu2_0
Don Dominic [Fri, 6 Nov 2020 11:21:02 +0000 (16:51 +0530)]
[PDK-8391] UDMA UT : Fix issues with unit_testapp on J7200 mcu2_1 and mcu2_0

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

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agoPDK-8502: Board: Fix for Uniflash flash programmer failure in UART load mode
M V Pratap Reddy [Fri, 6 Nov 2020 09:07:51 +0000 (14:37 +0530)]
PDK-8502: Board: Fix for Uniflash flash programmer failure in UART load mode

 - Uniflash flash programmer is hanging in board init with latest sciclient
   driver due to dependency on system firmware.
   Updated the flash programmer init sequence to call board init after
   loading system firmware.
   DMA mode is not functional which is disabled in this update.

3 years ago[PDK-8515] UDMA UT : Enable MCU NAVSS HC Block Copy Testcases on J7200 mcu1_0
Don Dominic [Fri, 6 Nov 2020 06:56:11 +0000 (12:26 +0530)]
[PDK-8515] UDMA UT : Enable MCU NAVSS HC Block Copy Testcases on J7200 mcu1_0

- This change somehow got missed from 9b50f64b1208c54c7de3105f7027815bf77d120a

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agofixed mmcsd tests
Prasad Konnur [Fri, 6 Nov 2020 06:23:33 +0000 (11:53 +0530)]
fixed mmcsd tests

 - removed the mcu1_1 build for the mmcsd
 - fixed the mmcsd tests for mcu2_1 and mcu3_1 cores

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
3 years ago[PDK-8515] UDMA UT : Enable HC Block Copy Testcases REL.CORESDK.07.01.00.34
Don Dominic [Thu, 5 Nov 2020 17:39:21 +0000 (23:09 +0530)]
[PDK-8515] UDMA UT : Enable HC Block Copy Testcases

- As per BoardCfg, there no HC Block Copy Channel assigned for any core.
- In this case, use the resource assigned for HC RX/TX channels
- to test various HC Block Copy testcases.
- This is with the assumption that, the range of this resources are same
- for both RX and TX High Capacity channels

- Also remove macors for START of resource, since its no longer used to override rm prms.

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years ago[PDK-8492] RM : Regenerate boardCfg and Sciclient_ccs_init
Don Dominic [Thu, 5 Nov 2020 18:38:02 +0000 (00:08 +0530)]
[PDK-8492] RM : Regenerate boardCfg and Sciclient_ccs_init

- Was not on tip of rm_pal_hal while generated the binaries last time in commit 47856c4a40c531039165d8da2c292a725d579ba1
- Hence regenerating after rebasing to tip of rm_pm_hal

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agoSciclient debug build enabling
Piyali Goswami [Thu, 5 Nov 2020 16:54:51 +0000 (22:24 +0530)]
Sciclient debug build enabling

Sciclient debug linker file changes to enable build

Fixes: PDK-8440
Signed-off-by: Piyali Goswami <piyali_g@ti.com>
3 years 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>
3 years 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>
3 years 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>
3 years 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

3 years 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.

3 years 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>
3 years 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>
3 years 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

3 years 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>
3 years 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

3 years 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>
3 years 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.

3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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.

3 years 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

3 years 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>
3 years 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>