processor-sdk/pdk.git
10 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>
10 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>
10 months agoJ7200: Updates to the macro names
Piyali Goswami [Sun, 25 Oct 2020 15:36:02 +0000 (21:06 +0530)]
J7200: Updates to the macro names

Updates to the macro names for J7200 device

Fixes: PDK-6980

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
10 months agosciserver_testapp: Update to prebuilt applications
Piyali Goswami [Sun, 25 Oct 2020 12:58:47 +0000 (18:28 +0530)]
sciserver_testapp: Update to prebuilt applications

Updates to the prebuilt applications for sciserver.

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
11 months agoPDK-8280: Board/SBL: Fix board_diag_framework build issues
Jonathan Bergsagel [Sat, 24 Oct 2020 18:47:03 +0000 (13:47 -0500)]
PDK-8280: Board/SBL: Fix board_diag_framework build issues

Added proper dependencies for board_diag_framework builds
after updates to sbl_rprc.c were done.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
11 months agofirmwareHeaderGen.sh: Update to the firmware gen to generate the correct size of...
Piyali Goswami [Fri, 23 Oct 2020 18:23:54 +0000 (23:53 +0530)]
firmwareHeaderGen.sh: Update to the firmware gen to generate the correct size of enc images

Fixes to the firmwareHeaderGen.sh to have correct size of enc images

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
11 months agosciclient_ut_main.c: Update to the unit test to make the UT pass
Piyali Goswami [Fri, 23 Oct 2020 19:07:05 +0000 (00:37 +0530)]
sciclient_ut_main.c: Update to the unit test to make the UT pass

Updates to the Sciclient_ut_main.c for the unit test to pass

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
11 months agoPDK-8311: Revert "[PDK-8145] Board: J721E DDR: Check-in Latest DDR Configuration...
Jonathan Bergsagel [Fri, 23 Oct 2020 18:40:44 +0000 (13:40 -0500)]
PDK-8311: Revert "[PDK-8145] Board: J721E DDR: Check-in Latest DDR Configuration Revision: 0.5.0"

This reverts commit a99fc8cf56cdacea573cd97268175179095676e8.

This DDR config change was causing multiple DDR memory access failures
on the J721E EVM.  Reverting this to go back to the original working
DDR config.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
11 months agoPDK-6815 : Updated icss examples not use ocmc thats reserved
sujith [Fri, 23 Oct 2020 21:45:42 +0000 (03:15 +0530)]
PDK-6815 : Updated icss examples not use ocmc thats reserved

Signed-off-by: sujith <sujith.s@ti.com>
11 months agoPDK-6815 : Board Diagnositc : Updated to not use reserved space in OCMC
sujith [Fri, 23 Oct 2020 18:47:58 +0000 (00:17 +0530)]
PDK-6815 : Board Diagnositc : Updated to not use reserved space in OCMC

Signed-off-by: sujith <sujith.s@ti.com>
11 months agoPDK-8280: Remove extra SBL prints causing boot problems
Jonathan Bergsagel [Thu, 22 Oct 2020 21:50:54 +0000 (16:50 -0500)]
PDK-8280: Remove extra SBL prints causing boot problems

For LOG_LEVEL=3, too many prints were causing boot problems
when coordinating sciserver loading on MCU1_0.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
11 months agoPDK-8280: SBL: Add cache flushing to boot Linux images
Jonathan Bergsagel [Thu, 22 Oct 2020 05:55:57 +0000 (00:55 -0500)]
PDK-8280: SBL: Add cache flushing to boot Linux images

Added cache flushing to ensure larger images like ATF &
Linux are getting pushed all the way out to memory.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
11 months agoPDK-7640: SBL: J7200: Give back OSPI_0 clock for booting HLOS
Jonathan Bergsagel [Sat, 24 Oct 2020 00:02:58 +0000 (19:02 -0500)]
PDK-7640: SBL: J7200: Give back OSPI_0 clock for booting HLOS

Enables release of TISCI_DEV_MCU_FSS0_OSPI_0 clock/device
for J7200, similar to J721E.
Allows HLOS in MAIN domain to take control of the OSPI flash
interface.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
11 months agoPDK-6815 : Updated SDR test to not load anything into ATCM
sujith [Fri, 23 Oct 2020 18:01:04 +0000 (23:31 +0530)]
PDK-6815 : Updated SDR test to not load anything into ATCM

Signed-off-by: sujith <sujith.s@ti.com>
11 months agoPDK-6815: IPC: Update AM65xx Linker Files
Angela Stegmaier [Fri, 23 Oct 2020 13:37:10 +0000 (08:37 -0500)]
PDK-6815: IPC: Update AM65xx Linker Files

Updated the linker files for SBL booting to not use
ATCM.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
11 months agoPDK-6815 : Updated UDMA Ut linker
sujith [Fri, 23 Oct 2020 08:03:22 +0000 (13:33 +0530)]
PDK-6815 : Updated UDMA Ut linker

Tested udma_unit_testapp on mcu 10 with SBL from 21Oct2020

Signed-off-by: sujith <sujith.s@ti.com>
11 months agoPDK-6815 : AM65xx Linker command file update
sujith [Mon, 19 Oct 2020 19:16:30 +0000 (00:46 +0530)]
PDK-6815 : AM65xx Linker command file update

Signed-off-by: sujith <sujith.s@ti.com>
11 months agoSciclient_rtos_app: Updated the last prints so that automation can check pass or...
Piyali Goswami [Fri, 23 Oct 2020 04:32:01 +0000 (10:02 +0530)]
Sciclient_rtos_app: Updated the last prints so that automation can check pass or fail

Fixes: PDK-7944 Updates to the last printf. Automation will use this for checking pass or fail.

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
11 months agoBoard: Updated tpr12 evm Ethernet configurations
M V Pratap Reddy [Fri, 16 Oct 2020 19:06:59 +0000 (00:36 +0530)]
Board: Updated tpr12 evm Ethernet configurations

11 months agoenet lld porting - Updates for mac port macros
Prasad Jondhale [Thu, 22 Oct 2020 18:24:35 +0000 (23:54 +0530)]
enet lld porting - Updates for mac port macros

Signed-off-by: Prasad Jondhale <prasad.jondhale@ti.com>
11 months agoFix SBL build fix for J721E REL.CORESDK.07.01.00.25
Sivaraj R [Fri, 23 Oct 2020 04:03:31 +0000 (09:33 +0530)]
Fix SBL build fix for J721E

- Reduce abort handler stack sizes

Signed-off-by: Sivaraj R <sivaraj@ti.com>
11 months ago[PDK-8301] UDMA Examples :Update UDMA OSPI Example to use TR Reload Feature
Don Dominic [Thu, 22 Oct 2020 18:29:12 +0000 (23:59 +0530)]
[PDK-8301] UDMA Examples :Update UDMA OSPI Example to use TR Reload Feature

- Use TR Reolad feature with SW Trigger to repeat the transfer from the origin
- TR Reload Count set to 0x1FFU for perpetual lool
- Teardown channel after UDMA_TEST_XFER_REPEAT_CNT no.of transfers to exit from the loop

- Along with minor update to make UDMA_TEST_WRITE_CHUNK_SIZE logic generic

Signed-off-by: Don Dominic <a0486429@ti.com>
11 months agosciserver: forward non-rm/pm message to TIFS
Sheng Zhao [Thu, 22 Oct 2020 16:20:56 +0000 (11:20 -0500)]
sciserver: forward non-rm/pm message to TIFS

If the message type is not RM/PM, then it needs to be forwarded to TIFS.
The full message size is sent/received from TIFS because we do not parse
the message type to identify the actual message size.

This should resolve the issue where Processor Control messages are
dropped.

Fixes: PDK-8299 #integrate-and-build

Signed-off-by: Sheng Zhao <shengzhao@ti.com>
11 months agoPDK-8302: IPC: Test: Update Sciserver task priorities
Angela Stegmaier [Thu, 22 Oct 2020 21:37:00 +0000 (16:37 -0500)]
PDK-8302: IPC: Test: Update Sciserver task priorities

The Sciserver has a low priority and a high priority task
for handling messages. Linux uses the low priority queue
for its requests. After booting, the IPC ping/pong
messaging in this test can delay processing
of low priority queue messages if the IPC tasks are
running at a higher priority than the Sciserver's low
priority queue.

To fix the issue in the test, even the Sciserver low
priority task should be of higher priority than the
IPC ping/pong tasks.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
11 months ago[K3_OPEN_SI-214] Work around for DRU hang issue
Anshu Jain [Thu, 22 Oct 2020 14:31:22 +0000 (20:01 +0530)]
[K3_OPEN_SI-214] Work around for DRU hang issue

Signed-off-by: Anshu Jain <anshu.jain@ti.com>
11 months agoenable appimage generation for mcspi testcases
Prasad Konnur [Thu, 22 Oct 2020 14:54:14 +0000 (20:24 +0530)]
enable appimage generation for mcspi testcases

 - Enable appimage generation even if they are multi core testcases
 - TODO: Add another target to create the combined appimage using the
generated rprc file.

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
11 months ago[PDK-8298] J721E RM : Update MCU NAVSS Channel/Ring Resources Range
Don Dominic [Thu, 22 Oct 2020 13:08:50 +0000 (18:38 +0530)]
[PDK-8298] J721E RM : Update MCU NAVSS Channel/Ring Resources Range

- UDMA memcpy on mcu1_0 with TX/RX Ch 5 is not functional in SBL mode.
  - Transfer happens but TR Response doesn't get updated, CQ Ring OCC remains 0 and nothing is returned back to Completion Queue Ring Mem.
- This workaround/update is start the reservation of Block Copy Channels for mcu1_0 from 6 (instead of 5)
- For this, the no.of block copy channels for mpu1_0 is increased by 1
- As a result of this the start of Channels/rings for all other cores gets added by 1 and no. of resources with HOST_ID_ALL get reduced by 1

- Rebuilt sciclient_boardCfg, sciclient_boardCfg for HS, sciclient_ccs_init

Signed-off-by: Don Dominic <a0486429@ti.com>
11 months agoRevert "sciclient: Send RM boardcfg to TIFS prior to handling locally"
Justin Sobota [Thu, 22 Oct 2020 14:09:16 +0000 (10:09 -0400)]
Revert "sciclient: Send RM boardcfg to TIFS prior to handling locally"

This reverts commit 9016912d9385979d20d6a79cab9ec346cd324a49.

11 months agosysfw_migrate.sh: Added an option to skip reset
Piyali Goswami [Thu, 22 Oct 2020 10:28:07 +0000 (15:58 +0530)]
sysfw_migrate.sh: Added an option to skip reset

Added an option to skip reset and rebase of the PDK during sysfw_migrate.sh

Fixes: PDK-8108

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
11 months agoMake separate top level file for ECC AGGR SOC File
Sivaraj R [Thu, 22 Oct 2020 09:14:10 +0000 (14:44 +0530)]
Make separate top level file for ECC AGGR SOC File

Signed-off-by: Sivaraj R <sivaraj@ti.com>
11 months ago[SCISERVER] Updated with deinit functino prototype
Shyam Jagannathan [Thu, 22 Oct 2020 06:36:56 +0000 (12:06 +0530)]
[SCISERVER] Updated with deinit functino prototype

Signed-off-by: Shyam Jagannathan <a0393891@ti.com>
11 months agoAdd serdes diag to git ignore
Sivaraj R [Wed, 21 Oct 2020 04:24:21 +0000 (09:54 +0530)]
Add serdes diag to git ignore

Signed-off-by: Sivaraj R <sivaraj@ti.com>
11 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>
11 months agosciclient: Add abi check as part of the sciclient_init
Piyali Goswami [Wed, 21 Oct 2020 15:30:15 +0000 (21:00 +0530)]
sciclient: Add abi check as part of the sciclient_init

Added ABI check as part of Sciclient_init

Fixes: PRSDK-8404

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
11 months agoPDK-8280: J7200/J721E: Undo SBL interleaved boot for HLOS boot
Jonathan Bergsagel [Sat, 17 Oct 2020 05:19:50 +0000 (00:19 -0500)]
PDK-8280: J7200/J721E: Undo SBL interleaved boot for HLOS boot

Give more time for sciserver app to start on mcu1_0 by
reverting back to booting cores towards the end of the SBL,
only when enabling HLOS boot.
Ensures that HLOS will not be started much before the
sciserver app (on Cortex-A cores).

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
11 months agoJ721E: sciclient/sbl: BoardCfg_RM cleanup
Jonathan Bergsagel [Wed, 21 Oct 2020 17:38:32 +0000 (12:38 -0500)]
J721E: sciclient/sbl: BoardCfg_RM cleanup

Go back to single BoardCfg_RM for J721E, since the "default" and
"linux" versions are now the same.

Reduces confusion with BoardCfg_RM handling code in the SBL.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
11 months agosciserver: add TISCI_MSG_SYS_RESET to forward message
Sheng Zhao [Tue, 20 Oct 2020 21:36:18 +0000 (16:36 -0500)]
sciserver: add TISCI_MSG_SYS_RESET to forward message

Add TISCI_MSG_SYS_RESET to the sciserver's list of forward messages and
sciclient's list of pm messages

Signed-off-by: Sheng Zhao <shengzhao@ti.com>
11 months agosciclient: bin2c.exe: Fix for pre-build bin2c.exe for windows build
Piyali Goswami [Wed, 21 Oct 2020 14:53:40 +0000 (20:23 +0530)]
sciclient: bin2c.exe: Fix for pre-build bin2c.exe for windows build

Fix the pre-built bin2c.exe to work on windows.

Fixes: PRSDK-8736

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
11 months agoPDK-8189: Updated SBL CUST build to enable full MAIN domain
Jonathan Bergsagel [Wed, 21 Oct 2020 07:48:17 +0000 (02:48 -0500)]
PDK-8189: Updated SBL CUST build to enable full MAIN domain

No longer using 'sbl_cust_img' builds for J721E/J7200 for
just MCU domain only startup.  Need full MAIN domain startup as
well for some apps that use the CUST build (e.g., MCUSW Boot App)
and need MSMC and/or DDR memory to be available for appimage
loading.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
11 months agoam64x: update BIOS and XDC version
Vishal Mahaveer [Tue, 20 Oct 2020 02:52:45 +0000 (21:52 -0500)]
am64x: update BIOS and XDC version

Update BIOS and XDC version to for am64x.

+BIOS_VERSION=6_82_01_19
+XDC_VERSION=3_61_00_16_core

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
11 months agoenet lld porting - Updates for path and name fixes
Prasad Jondhale [Tue, 20 Oct 2020 08:59:11 +0000 (14:29 +0530)]
enet lld porting - Updates for path and name fixes

Signed-off-by: Prasad Jondhale <prasad.jondhale@ti.com>
11 months agoBoard: Fix am64x evm oled diagnostic build error
M V Pratap Reddy [Tue, 20 Oct 2020 12:05:59 +0000 (17:35 +0530)]
Board: Fix am64x evm oled diagnostic build error

11 months ago[PDK-8259] UDMA : Use Sciclient_rmRingCfg to reset ring in Udma_ringFlushRawLcdma
Don Dominic [Tue, 20 Oct 2020 09:13:43 +0000 (14:43 +0530)]
[PDK-8259] UDMA : Use Sciclient_rmRingCfg to reset ring in Udma_ringFlushRawLcdma

- Udma_ringFlushRawLcdma was using calling CSL API CSL_lcdma_ringaccResetRing which writes to Ring CFG's SIZE register to reset the ring.
- Since Ring CFG register is firewalled this was causing issues
- Therfore, use Sciclient_rmRingCfg to write to Ring CFG's BA_LO Register to reset a ring.

- This fixes issue in running UDMA examples on AM64x

Signed-off-by: Don Dominic <a0486429@ti.com>
11 months agoPDK-8110: Board: Fix for sbl hang on j7200 evm while opening ospi flash in REL.CORESDK.07.01.00.24
M V Pratap Reddy [Tue, 20 Oct 2020 07:01:06 +0000 (12:31 +0530)]
PDK-8110: Board: Fix for sbl hang on j7200 evm while opening ospi flash in
single spi mode

11 months agoPDK-8189: revert OSPI DMA usage, just for SBL CUST build
Jonathan Bergsagel [Tue, 20 Oct 2020 06:14:11 +0000 (01:14 -0500)]
PDK-8189: revert OSPI DMA usage, just for SBL CUST build

For J721E/J7200 SBL CUST build, keep the OSPI PHY disabled
and also the related DMA as well, using "SBL_USE_DMA=0".
NOTE: This is to allow all XIP testing to go through w/
minimal interference from PHY pipelining on the "CUST"
SBL builds.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
11 months agoOSAL: nonos: rti timer: replace direct register accesses with CSL-FL functions
Eric Ruei [Mon, 19 Oct 2020 21:25:03 +0000 (17:25 -0400)]
OSAL: nonos: rti timer: replace direct register accesses with CSL-FL functions

Signed-off-by: Eric Ruei <e-ruei1@ti.com>
11 months agoPDK-8215: SBL: Remove restriction to use Single SPI config
Jonathan Bergsagel [Mon, 19 Oct 2020 23:20:28 +0000 (18:20 -0500)]
PDK-8215: SBL: Remove restriction to use Single SPI config

Allows compiling with OSPI "single SPI" mode for both
J7200 & J721E.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
11 months agoSBL: Linux boot: Updated Device-tree blob files
Jonathan Bergsagel [Mon, 19 Oct 2020 22:43:55 +0000 (17:43 -0500)]
SBL: Linux boot: Updated Device-tree blob files

Updated DTB files for Linux boot, for J721E & J7200.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
11 months agoPDK-5107: Board: Enabled ADC diagnostic test for am64x evm REL.CORESDK.07.01.00.23
M V Pratap Reddy [Mon, 19 Oct 2020 12:11:35 +0000 (17:41 +0530)]
PDK-5107: Board: Enabled ADC diagnostic test for am64x evm

11 months agoPDK-5152: Board: Enabled push button diagnostic test support for am64x evm
M V Pratap Reddy [Mon, 19 Oct 2020 11:22:53 +0000 (16:52 +0530)]
PDK-5152: Board: Enabled push button diagnostic test support for am64x evm

11 months agoPDK-5151: Board: Enabled oled diagnostic test for am64x evm
M V Pratap Reddy [Mon, 19 Oct 2020 11:20:05 +0000 (16:50 +0530)]
PDK-5151: Board: Enabled oled diagnostic test for am64x evm

11 months agoPDK-5113: Board: Enabled boot switch diagnostic test for am64x evm
M V Pratap Reddy [Mon, 19 Oct 2020 10:46:19 +0000 (16:16 +0530)]
PDK-5113: Board: Enabled boot switch diagnostic test for am64x evm

11 months agomibspi: Fix for tpr12 mibspi test build failure
M V Pratap Reddy [Mon, 19 Oct 2020 06:41:36 +0000 (12:11 +0530)]
mibspi: Fix for tpr12 mibspi test build failure

11 months agoBoard: Fix for tpr12 board flash library c++ build errors
M V Pratap Reddy [Mon, 19 Oct 2020 05:39:54 +0000 (11:09 +0530)]
Board: Fix for tpr12 board flash library c++ build errors

11 months agoUDMA/Sciclient : Host Emulation Build Fix
Don Dominic [Mon, 19 Oct 2020 05:24:16 +0000 (10:54 +0530)]
UDMA/Sciclient : Host Emulation Build Fix

- Add dummy API for Sciclient_rmGetResourceRange in host emulation mode.
- In Host Emulation mode, it is sufficent that we give some range.
  So we are passing 0-4 as primary range and 5-9 as secondary range
  which will work for most of the cases.

Signed-off-by: Don Dominic <a0486429@ti.com>
11 months agoRevert "PDK-6815 Move the reset vector to OCMC"
Sivaraj R [Mon, 19 Oct 2020 03:54:10 +0000 (09:24 +0530)]
Revert "PDK-6815 Move the reset vector to OCMC"

This reverts commit e2391766ca962fb174b9a27d155755fa6f4fa81f.

11 months agoRevert "PDK-6815 : AM65xx Linker command file update"
Sivaraj R [Mon, 19 Oct 2020 03:54:06 +0000 (09:24 +0530)]
Revert "PDK-6815 : AM65xx Linker command file update"

This reverts commit 8348f3921f90e39d5ab0c9895dfe5d3d22c4f60c.

11 months agoPDK-8242: IPC: Tests: Add Second Test Endpoint for testing rpmsg_chrdev
Angela Stegmaier [Thu, 15 Oct 2020 13:00:33 +0000 (08:00 -0500)]
PDK-8242: IPC: Tests: Add Second Test Endpoint for testing rpmsg_chrdev

Add a second endpoint named "rpmsg_chrdev" for testing the userspace
rpmsg_char library. This endpoint is used by the Linux userspace
test application. The behavior is the same as the existing "ping.pong"
endpoint. It will echo back the message that is received to the
sender.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
11 months agomakerules/component.mk : Updates in PDK_COMMON_COMP declaration REL.CORESDK.07.01.00.22
Don Dominic [Fri, 16 Oct 2020 14:10:30 +0000 (19:40 +0530)]
makerules/component.mk : Updates in PDK_COMMON_COMP declaration

- Update the declration of PDK_COMMON_COMP based on platform

Signed-off-by: Don Dominic <a0486429@ti.com>
11 months ago[PDK-8033] Revert UDMA Ch FIFO depth workaround for Bug SYSFW-4176/SYSFW-4180
Don Dominic [Tue, 22 Sep 2020 06:07:15 +0000 (11:37 +0530)]
[PDK-8033] Revert UDMA Ch FIFO depth workaround for Bug SYSFW-4176/SYSFW-4180

- Revert the workaorund since SYSFW-4176/SYSFW-4180 is fixed on sysfw 2020.08

- This reverts commit 4516cd209cfb0d42531e80465559af3b2a0a9f56.
  "[PRSDK-7872] UDMA: Leave TX CH FIFO Depth Reg with default reset value"

11 months agopruss: Use a valid interrupt priority for hwi initialized from pruss
Dhaval Khandla [Fri, 16 Oct 2020 10:39:30 +0000 (16:09 +0530)]
pruss: Use a valid interrupt priority for hwi initialized from pruss

- Setting to 1 as R5F VIM support only 16 priority levels (0-15)
  and SYSBIOS-1422 workaroundHwi priority is 0

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
11 months agoDisable multicore image gen for Diag example
Sivaraj R [Fri, 16 Oct 2020 06:26:19 +0000 (11:56 +0530)]
Disable multicore image gen for Diag example

- Multicore is not really generating multicore
images. Not sure why this was required

Signed-off-by: Sivaraj R <sivaraj@ti.com>
11 months agoPDK-8215: SBL: Update OSPI/Hyperflash layout of images
Jonathan Bergsagel [Thu, 15 Oct 2020 23:15:07 +0000 (18:15 -0500)]
PDK-8215: SBL: Update OSPI/Hyperflash layout of images

Bootloader image sizes are larger now, with the added code
for sciclient and rm_pm_hal, due to required HSM rearch.

SBL image size was going beyond its original allotted space
in the flash, so we have to update the flash locations to
the following now:

Location   Image
--------   ------------------------
00_0000    SBL (tiboot3.bin)
08_0000    SYSFW (sysfw.bin)
10_0000    APP (*.appimage)
1C_0000    (optional) XIP boot test

This also allows us to align image locations with multiples
of 256KB sections in the flash for better flash arrangement.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
11 months agoPDK-6815 : AM65xx Linker command file update
sujith [Thu, 15 Oct 2020 18:43:11 +0000 (00:13 +0530)]
PDK-6815 : AM65xx Linker command file update

Aligned the memory segments with memory map
Minor clean up

Tested with sysbios udma memcopy example on mcu 10

Signed-off-by: sujith <sujith.s@ti.com>
11 months agoPDK-6815 Move the reset vector to OCMC
sujith [Wed, 14 Oct 2020 20:18:25 +0000 (01:48 +0530)]
PDK-6815 Move the reset vector to OCMC

By default the sysbios entry point was set to ATCM, since the SBL
disables the ATCM now, moved the sysbios entry point to OCMC

Tested with udma memcopy example on AM65xx evm

Signed-off-by: sujith <sujith.s@ti.com>
11 months agoicss_emac: Make icss_emac initialization for AM64x uniform with AM65xx
Dhaval Khandla [Thu, 15 Oct 2020 15:09:35 +0000 (20:39 +0530)]
icss_emac: Make icss_emac initialization for AM64x uniform with AM65xx

- For some of the register initizlizations, (icss_version >= 0x201) is
  being checked. For AM64x, the portion inside if condition is needed,
  but icss_version is equal to 0x103. So adding one more condition in if
  to handle this

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
11 months agoPDK-6936: Board: Fix for pmic spi access failure on tpr12 evm
M V Pratap Reddy [Fri, 16 Oct 2020 02:59:06 +0000 (08:29 +0530)]
PDK-6936: Board: Fix for pmic spi access failure on tpr12 evm

11 months agoPDK-5044: Board: Updated push button diagnostic test to align with gpio lld implement...
M V Pratap Reddy [Fri, 16 Oct 2020 02:50:44 +0000 (08:20 +0530)]
PDK-5044: Board: Updated push button diagnostic test to align with gpio lld implementation on tpr12

11 months agoPDK-6960: Board: Updated calibration values for tpr12 evm current monitor test
M V Pratap Reddy [Fri, 16 Oct 2020 02:41:14 +0000 (08:11 +0530)]
PDK-6960: Board: Updated calibration values for tpr12 evm current monitor test

11 months agoPDK-6962: Board: Updated LED diagnostic test to align with gpio lld implementation...
M V Pratap Reddy [Fri, 16 Oct 2020 02:39:46 +0000 (08:09 +0530)]
PDK-6962: Board: Updated LED diagnostic test to align with gpio lld implementation on tpr12

11 months agoPDK-5015: Board: Fix for tpr12 evm expansion header diagnostic test failure
M V Pratap Reddy [Tue, 13 Oct 2020 07:02:37 +0000 (12:32 +0530)]
PDK-5015: Board: Fix for tpr12 evm expansion header diagnostic test failure

 - Updated the SPI transactions for proper communication with slave devices.

11 months agoPDK-6956: Board: Fix for qspi flash last sector access failure on tpr12 evm
M V Pratap Reddy [Fri, 16 Oct 2020 02:28:16 +0000 (07:58 +0530)]
PDK-6956: Board: Fix for qspi flash last sector access failure on tpr12 evm

11 months agoPDK-6963: Board: Updated tpr12 evm board flash library
M V Pratap Reddy [Fri, 9 Oct 2020 11:40:30 +0000 (17:10 +0530)]
PDK-6963: Board: Updated tpr12 evm board flash library

 - This version of board flash library supports config mode operations
   on tpr12.

11 months agoPDK-5419: Board: Enabled dsitx diagnostic test for j721e evm
M V Pratap Reddy [Fri, 16 Oct 2020 03:12:45 +0000 (08:42 +0530)]
PDK-5419: Board: Enabled dsitx diagnostic test for j721e evm

11 months agoAM64X Build Fix
Angela Stegmaier [Thu, 15 Oct 2020 12:54:41 +0000 (07:54 -0500)]
AM64X Build Fix

PDK_COMMON_COMP for AM64X is needed for mcu2_0 and mcu2_1 as well.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
11 months ago[PDK-8109] Board: AM64x DDR: Check-in Latest Stable DDR Configuration Revision: 0... REL.CORESDK.07.01.00.21
Don Dominic [Wed, 30 Sep 2020 10:46:04 +0000 (16:16 +0530)]
[PDK-8109] Board: AM64x DDR: Check-in Latest Stable DDR Configuration Revision: 0.5.0 (10_06_20)

- Update configuration to output from EMIF tool output
- DDR4 Frequency = 800MHz (1600MTs)

Signed-off-by: Don Dominic <a0486429@ti.com>
11 months agosciclient: Remove ti-sci-firmware-j721e-hs-no-pm-rm.bin
Stephen Molfetta [Thu, 15 Oct 2020 04:55:54 +0000 (23:55 -0500)]
sciclient: Remove ti-sci-firmware-j721e-hs-no-pm-rm.bin

This was erroneously committed by the migrate script

Signed-off-by: Stephen Molfetta <sjmolfetta@ti.com>
11 months agoMigrating to SYSFW version v2020.08-RC3
Stephen Molfetta [Thu, 15 Oct 2020 04:53:33 +0000 (23:53 -0500)]
Migrating to SYSFW version v2020.08-RC3

11 months agosciclient: update scripts for j721e-no-pm-rm-hs
Stephen Molfetta [Thu, 15 Oct 2020 04:38:02 +0000 (23:38 -0500)]
sciclient: update scripts for j721e-no-pm-rm-hs

Signed-off-by: Stephen Molfetta <sjmolfetta@ti.com>
11 months agoPDK-8110: Board: Enabled single SPI mode support for j7200 ospi flash open
M V Pratap Reddy [Fri, 25 Sep 2020 05:07:44 +0000 (10:37 +0530)]
PDK-8110: Board: Enabled single SPI mode support for j7200 ospi flash open

   - Sbl leaves the OSPI flash in single SPI mode while switching to Linux
     boot. Single SPI mode transition is failing on j7200 which is resolved by
     this update.

11 months agoJ7200 Build Fix
Sivaraj R [Thu, 15 Oct 2020 04:13:01 +0000 (09:43 +0530)]
J7200 Build Fix

Signed-off-by: Sivaraj R <sivaraj@ti.com>
11 months agosbl_sci_client.c: Build Fix for AM64x
Piyali Goswami [Wed, 14 Oct 2020 18:06:56 +0000 (23:36 +0530)]
sbl_sci_client.c: Build Fix for AM64x

Build fix for AM64x for SBL

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
11 months agosciclient: the sciserver forwards on DM2DMSC_NOTIFY_RESP
Sheng Zhao [Fri, 9 Oct 2020 22:56:52 +0000 (17:56 -0500)]
sciclient: the sciserver forwards on DM2DMSC_NOTIFY_RESP

To prevent deadlock between DM and TIFS, the TIFS now pends on an
interrupt from DM2DMSC queue. The DM2DMSC_NOTIFY_RESP queue is hijackedi
for the transmission from DM to TIFS. The return path from TIFS to DM
remains the same DM2DMSC response queue.

Signed-off-by: Sheng Zhao <shengzhao@ti.com>
11 months agoUDMA Docs : Doxygen Build Fix
Don Dominic [Wed, 14 Oct 2020 14:35:16 +0000 (20:05 +0530)]
UDMA Docs :  Doxygen Build Fix

Signed-off-by: Don Dominic <a0486429@ti.com>
11 months ago[PDK-6463][PDK-6796][PDK-5071] RM : BoardCfg for J721E and J7200 with multiple entrie...
Don Dominic [Thu, 8 Oct 2020 16:11:51 +0000 (21:41 +0530)]
[PDK-6463][PDK-6796][PDK-5071] RM : BoardCfg for J721E and J7200 with multiple entries of same reource for Block Copy channels/rings

- Updated Sciclient_defaultBoardCfg for J721E and J7200 from latest of SysConfig Tool
  - Multiple entry of same resource for Block Copy and Tx_only/Rx_only channels and rings
    - First Entry is for Block Copy, and Second Entry is for Tx_onlt/Rx_only
    - To maintin this order, Dummy entry with count=0 when no resource neeeded for Block Copy
  - Along with minor updates in other resources related to latest sysfw

- Rebuilt sciclient_boardCfg, sciclient_boardCfg for HS, sciclient_ccs_init

Signed-off-by: Don Dominic <a0486429@ti.com>
11 months ago[PDK-5692] UDMA : Renamed /soc folders to SOC name instead of V0 V1 V2 V3
Don Dominic [Fri, 25 Sep 2020 11:59:37 +0000 (17:29 +0530)]
[PDK-5692] UDMA : Renamed /soc folders to SOC name instead of V0 V1 V2 V3

Signed-off-by: Don Dominic <a0486429@ti.com>
11 months ago[PDK-7934] UDMA Example: Added example code block for overriding default UDMA RM...
Don Dominic [Wed, 9 Sep 2020 14:36:49 +0000 (20:06 +0530)]
[PDK-7934] UDMA Example: Added example code block for overriding default UDMA RM Shared Resource params

- In udma_memcpy_testapp added example code block
  for overriding default UDMA RM Shared Resource params

Signed-off-by: Don Dominic <a0486429@ti.com>
11 months ago[PDK-6463][PDK-6796][PDK-5071] UDMA: Simplify UDMA RM Configuration
Don Dominic [Thu, 8 Oct 2020 18:56:23 +0000 (00:26 +0530)]
[PDK-6463][PDK-6796][PDK-5071] UDMA: Simplify UDMA RM Configuration

* Implemented for J721E and J7200
* AM65XX and AM64X will be included later after aligning the defaultBoardCfg (This SOC's will continue using old approach of udma_rmcfg)

- 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/IR_INTR across MCU/MAIN NAVSS Instances (OR)
  Splits MAIN NAVSS RX Free Flows assigned to #TISCI_HOST_ID_ALL across various cores
  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

Signed-off-by: Don Dominic <a0486429@ti.com>
11 months agoFix J721E SDR linker errors
Sivaraj R [Wed, 14 Oct 2020 10:07:28 +0000 (15:37 +0530)]
Fix J721E SDR linker errors

Signed-off-by: Sivaraj R <sivaraj@ti.com>
11 months agoFix SCICLIENT package issue for AM64x
Sivaraj R [Wed, 14 Oct 2020 02:13:08 +0000 (07:43 +0530)]
Fix SCICLIENT package issue for AM64x

Signed-off-by: Sivaraj R <sivaraj@ti.com>
11 months agoPDK-8180: IPC: AM64X: Use Mailbox_enableInterrupts to defer Interrupt Enablement
Angela Stegmaier [Thu, 8 Oct 2020 15:31:52 +0000 (10:31 -0500)]
PDK-8180: IPC: AM64X: Use Mailbox_enableInterrupts to defer Interrupt Enablement

Currently, interrupts are enabled as soon as the Mailbox_open call
happens, before IPC LLD can set up all the needed callbacks for
the control endpoint. This can result in delayed messages as the
interrupt is needed to notify the IPC LLD to check the shared memory
for new messages.

Mailbox LLD provides an open-time option to request that interrupts
be enabled during open. IPC LLD now sets this to false in order
to be able to enable the interrupts at a later time. The ipc layer
which handles the support for Mailbox LLD is also updated to add
the interrupt enable/disable support which is already being called
from the IPC virtio layer.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
11 months agoPDK-8180: Mailbox: Add new API for Enable/Disable Interrupts
Angela Stegmaier [Thu, 8 Oct 2020 15:28:01 +0000 (10:28 -0500)]
PDK-8180: Mailbox: Add new API for Enable/Disable Interrupts

In some use cases it is required for the application to be able
to delay enabling of the mailbox interrupts so that further
setup can be done before it starts handling the interrupts.

One such example is when IPC LLD uses Mailbox LLD, which needs
to perform some setup after opening the Mailbox handle.

To support this use case, the following APIs are added:

Mailbox_enableInterrupts
Mailbox_disableInterrupts

Also, the following new open-time param is added:

enableInterrupts

The value of enableInterrupts defaults to true so backward
compatibility is maintined.

Currently only AM64X is supporting this feature and new
APIs.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
11 months agoPDK-8180: IPC: Add Check and Warning for NULL func pointer in MB LLD Callback
Angela Stegmaier [Wed, 7 Oct 2020 13:31:45 +0000 (08:31 -0500)]
PDK-8180: IPC: Add Check and Warning for NULL func pointer in MB LLD Callback

Some devices have mailbox lld support and in that case the IPC LLD is
built on top of the mailbox lld. The callback that IPC LLD registers with
the mailbox lld will call a registered function pointer. The callback should
check if the function pointer is NULL before de-referencing, and in case
it is NULL, print a warning.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
11 months agoPDK-8195 : Rearch : Linker file updates
sujith [Tue, 13 Oct 2020 15:42:46 +0000 (21:12 +0530)]
PDK-8195 : Rearch : Linker file updates

Signed-off-by: sujith <sujith.s@ti.com>
11 months agoPDK-8189: SBL: Fix makefile issues in sbl_component.mk
Jonathan Bergsagel [Tue, 13 Oct 2020 19:06:30 +0000 (14:06 -0500)]
PDK-8189: SBL: Fix makefile issues in sbl_component.mk

Missing some proper filtering for SoC names in a few
places.  Fixing this restores expected functionality
and proper builds for all SoCs.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
11 months agosciclient : build breakfix for j721e
sujith [Tue, 13 Oct 2020 22:36:19 +0000 (04:06 +0530)]
sciclient : build breakfix for j721e

Signed-off-by: sujith <sujith.s@ti.com>
11 months agoFix AM64x GPMC package issue
Sivaraj R [Tue, 13 Oct 2020 16:01:44 +0000 (21:31 +0530)]
Fix AM64x GPMC package issue

Signed-off-by: Sivaraj R <sivaraj@ti.com>
11 months agoChanges to disable PTP forwarding at runtime for switch
Vineet Roy [Mon, 12 Oct 2020 12:01:14 +0000 (17:31 +0530)]
Changes to disable PTP forwarding at runtime for switch

1. This is required because Linux PTP does not handle cut-through well
2. Part of PINDSW-4281

11 months agoAdd Linux support to AM65xx RM Configuration
Brandon Wetzel [Tue, 15 Sep 2020 18:49:46 +0000 (14:49 -0400)]
Add Linux support to AM65xx RM Configuration

Update RM configuration based on changes needed for booting linux on A53. Effectively uses less HOST_ID_ALL and allocates resources to specific cores so A53 can have control over resources it needs for Linux

11 months agoAdding logic to share board configuration from SBL/SPL to SCISERVER APP
Piyali Goswami [Mon, 5 Oct 2020 15:10:21 +0000 (20:40 +0530)]
Adding logic to share board configuration from SBL/SPL to SCISERVER APP

Added logic to share the board configuration from SBL/SPL to SCISERVER APP

Fixes: PDK-8165

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