processor-sdk/pdk.git
7 months agoPDK-7036: SBL: AM65xx: Remove support for TCM pre-loading release/CORESDK_07.00.04 REL.CORESDK.07.00.04.14
Jonathan Bergsagel [Tue, 15 Sep 2020 04:54:02 +0000 (23:54 -0500)]
PDK-7036: SBL: AM65xx: Remove support for TCM pre-loading

Avoids loss of TCM data when power-cycling MCU R5 cores
(for reset into the next app) by removing support for TCM
pre-loading, for AM65xx SoC.

This will require loaded MCU applications to avoid using
"load" sections for ATCM/BTCM memory, and instead enable &
load their own data into the TCM memories once they have
started to run.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
7 months agoPDK-7036: SBL: Update POKE MEM addresses for SBL test
Jonathan Bergsagel [Wed, 2 Sep 2020 22:32:29 +0000 (17:32 -0500)]
PDK-7036: SBL: Update POKE MEM addresses for SBL test

Changes the SBL test POKE MEM addresses in order to not
overlap with possible SBL bootloader memory usage, going
forward.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
7 months agoShorter SBL Boot Test
Brandon Wetzel [Mon, 31 Aug 2020 21:30:10 +0000 (17:30 -0400)]
Shorter SBL Boot Test

Add a shorter SBL boot test that does not rely on delays in the start. The delays previously hid the fact that MCU1_1 was running its application twice

7 months agoFix the SBL R5F-0 cluster reset sequence
Brandon Wetzel [Mon, 31 Aug 2020 21:26:03 +0000 (17:26 -0400)]
Fix the SBL R5F-0 cluster reset sequence

SBL has been illegally resetting the R5F-0 cluster.

Core 1 must never be in a higher functional state than core 0, and it is a bad idea to power-down (and power back on) the cores once TCMs have been loaded (as the data will not necessarily be valid when the RAM comes back on-line).

7 months agoUpdate the max RM count in sciclient scripts
Brandon Wetzel [Thu, 1 Oct 2020 14:16:02 +0000 (10:16 -0400)]
Update the max RM count in sciclient scripts

7 months agoAdd support for Windows makefiles
Brandon Wetzel [Thu, 1 Oct 2020 14:10:55 +0000 (10:10 -0400)]
Add support for Windows makefiles

7 months agoMove bypass workaround to C code to allow for SIM_BUILD REL.CORESDK.07.00.04.12 REL.CORESDK.07.00.04.13
Brandon Wetzel [Tue, 29 Sep 2020 22:34:37 +0000 (18:34 -0400)]
Move bypass workaround to C code to allow for SIM_BUILD

7 months agoDo a full OSPI driver bypass to work with the current OSPI ip packaged with current...
Brandon Wetzel [Tue, 29 Sep 2020 02:46:14 +0000 (22:46 -0400)]
Do a full OSPI driver bypass to work with the current OSPI ip packaged with current Zebu release

7 months agopruss: Update version to 1.0.0.16 in package.xdc REL.CORESDK.07.00.04.11 REL.CORESDK.07.00.04.11.01
Dhaval Khandla [Fri, 25 Sep 2020 19:48:29 +0000 (14:48 -0500)]
pruss: Update version to 1.0.0.16 in package.xdc

7 months agopruss: Increment the version number to 01.00.00.16 REL.CORESDK.07.00.04.09 REL.CORESDK.07.00.04.10
Dhaval Khandla [Thu, 24 Sep 2020 14:29:58 +0000 (09:29 -0500)]
pruss: Increment the version number to 01.00.00.16

7 months agoPDK-7402: Fix typos in PRU ICSS enum names REL.CORESDK.07.00.04.08
Dhaval Khandla [Tue, 15 Sep 2020 12:19:14 +0000 (17:49 +0530)]
PDK-7402: Fix typos in PRU ICSS enum names

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
7 months agoFix for windows REL.CORESDK.07.00.04.07
Brandon Wetzel [Fri, 18 Sep 2020 16:57:55 +0000 (12:57 -0400)]
Fix for windows

7 months agoRevert "Revert "Workaround for issues [PDK-7960], [PDK-7981]"" REL.CORESDK.07.00.04.06
Anand Mahadevan SS [Wed, 16 Sep 2020 13:30:19 +0000 (06:30 -0700)]
Revert "Revert "Workaround for issues [PDK-7960], [PDK-7981]""

This reverts commit 88327c747598e7a531c1fe4b79e5ce31532f50d6.

7 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

7 months agoAdd Linux support to AM64x RM Configuration
Brandon Wetzel [Wed, 5 Aug 2020 20:48:50 +0000 (16:48 -0400)]
Add Linux support to AM64x 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

7 months agoRevert "Workaround for issues [PDK-7960], [PDK-7981]"
Anand Mahadevan SS [Tue, 15 Sep 2020 17:06:01 +0000 (10:06 -0700)]
Revert "Workaround for issues [PDK-7960], [PDK-7981]"

This reverts commit a403498dc87a45dc6fedc08d734897409627db7c.

7 months agoWorkaround for issues [PDK-7960], [PDK-7981]
Anand Mahadevan SS [Tue, 15 Sep 2020 16:34:47 +0000 (09:34 -0700)]
Workaround for issues [PDK-7960], [PDK-7981]

- With the updated SYSFW, the ccs_init app was crashing when run from
  the launch_zebu.js script
- The crash happens when the dmtimer0_enable is called. As a workaround
  this will be disabled for AM64x
- This dmtimer0 is used in the app only for profiling, still need to
  review what could be an alternative in the case of AM64x

Signed-off-by: Anand Mahadevan SS <a0230421@ti.com>
7 months agoSciclient: am64x: Updating vlab & ccs_init with the new sysfw
Mahesh Radhkrishnan [Tue, 15 Sep 2020 14:59:54 +0000 (10:59 -0400)]
Sciclient: am64x: Updating vlab & ccs_init with the new sysfw

7 months agoUDMA rmcfg - AM64x : Updates in SAUL resources and VINTR
Don Dominic [Wed, 9 Sep 2020 05:55:54 +0000 (11:25 +0530)]
UDMA rmcfg - AM64x : Updates in SAUL resources and VINTR

- Update in allignment with the updates in Sciclient_defaultBoardCfg_rm.c
  in PR: https://bitbucket.itg.ti.com/projects/PROCESSOR-SDK/repos/pdk/pull-requests/1023/overview

Signed-off-by: Don Dominic <a0486429@ti.com>
7 months agoSciclient: Updates for SYSFW RC3 (AM64x) REL.CORESDK.07.00.04.02 REL.CORESDK.07.00.04.03 REL.CORESDK.07.00.04.04 REL.CORESDK.07.00.04.05
Mahesh Radhkrishnan [Wed, 9 Sep 2020 21:22:13 +0000 (17:22 -0400)]
Sciclient: Updates for SYSFW RC3 (AM64x)

7 months agoMigrating to SYSFW version am64x-2020.07-rc3-drop
Jonathan Bergsagel [Fri, 4 Sep 2020 18:40:46 +0000 (13:40 -0500)]
Migrating to SYSFW version am64x-2020.07-rc3-drop

7 months agoPDK7485:add missing files
Jennifer Huang [Wed, 9 Sep 2020 21:18:27 +0000 (17:18 -0400)]
PDK7485:add missing files

7 months agoPDK7485: syn with master
Jennifer Huang [Thu, 10 Sep 2020 12:56:19 +0000 (08:56 -0400)]
PDK7485: syn with master

7 months agoPDK7485:hwa driver update using CSL defines
Jennifer Huang [Wed, 9 Sep 2020 17:23:22 +0000 (13:23 -0400)]
PDK7485:hwa driver update using CSL defines

7 months ago[PDK-7899] UDMA: OSPI Example - Debug Build Linking Issue Fix
Don Dominic [Thu, 10 Sep 2020 07:40:46 +0000 (13:10 +0530)]
[PDK-7899] UDMA: OSPI Example - Debug Build Linking Issue Fix

Signed-off-by: Don Dominic <a0486429@ti.com>
7 months agoUpdate ndk/ns tools version REL.CORESDK.07.00.04.01
Prasad Jondhale [Mon, 27 Jul 2020 19:50:20 +0000 (01:20 +0530)]
Update ndk/ns tools version

- Updates in NDK and NS tools for SDK7.1

Signed-off-by: Prasad Jondhale <prasad.jondhale@ti.com>
7 months agogpio: PDK-5522: remove m4f bios build for GPIO_LedBlink_TestApp
Hao Zhang [Wed, 9 Sep 2020 13:00:44 +0000 (09:00 -0400)]
gpio: PDK-5522: remove m4f bios build for GPIO_LedBlink_TestApp

Signed-off-by: Hao Zhang <hzhang@ti.com>
7 months agoEnable Reset Isolation
Brandon Wetzel [Tue, 28 Jul 2020 18:45:48 +0000 (14:45 -0400)]
Enable Reset Isolation

In SBL, do not touch the M4 if the MMR Magic Register has been set

7 months agoSBL Pinmux : do not configure pinmux on reset
Brandon Wetzel [Wed, 15 Jul 2020 20:00:19 +0000 (16:00 -0400)]
SBL Pinmux : do not configure pinmux on reset

SBL checks the MMR reset register to determine if a reset was previously issued. If so, do not configure pinmux, as the settings from prior boot are stil valid.

7 months agoi2c: PROC_SOC-185: remove bios build for AM64x m4f
Hao Zhang [Tue, 8 Sep 2020 14:06:30 +0000 (10:06 -0400)]
i2c: PROC_SOC-185: remove bios build for AM64x m4f

Signed-off-by: Hao Zhang <hzhang@ti.com>
7 months agoPDK-7507: OSAL: remove SoC-independent libraries - patch 2
Sivaraj R [Sun, 6 Sep 2020 02:36:50 +0000 (08:06 +0530)]
PDK-7507: OSAL: remove SoC-independent libraries - patch 2

Throw error incase SOC type is not set

Signed-off-by: Sivaraj R <sivaraj@ti.com>
7 months ago[PDK-7899] UDMA: OSPI Example - Cleanup
Don Dominic [Mon, 7 Sep 2020 18:02:19 +0000 (23:32 +0530)]
[PDK-7899] UDMA: OSPI Example - Cleanup

- Removed BOARD_INIT_PLL, not required
- Added print after configuring RCLK

Signed-off-by: Don Dominic <a0486429@ti.com>
7 months ago[PDK-7899] UDMA: OSPI Example - uart boot mode appimage test issue fix
Don Dominic [Tue, 8 Sep 2020 10:51:17 +0000 (16:21 +0530)]
[PDK-7899] UDMA: OSPI Example - uart boot mode appimage test issue fix

- Fixed OCMRAM memory overlap with SBL on J721E/J7200/AM65xx

Signed-off-by: Don Dominic <a0486429@ti.com>
7 months ago[PDK-7899] UDMA UT - J7200 : Temp disable MCU NAVSS Multiple Tasks TC on mpu1_0
Don Dominic [Tue, 8 Sep 2020 10:04:35 +0000 (15:34 +0530)]
[PDK-7899] UDMA UT - J7200 : Temp disable MCU NAVSS Multiple Tasks TC on mpu1_0

- temp disbale UDMA UT Multiple tasks testcases (3495 and 3497) on J7200 mpu1_0
- until Bug PDK-6611 is resolved

Signed-off-by: Don Dominic <a0486429@ti.com>
7 months agoPDK-7894 : Fixed the OSAL unit test failures on MCU 20
sujith [Mon, 7 Sep 2020 21:32:33 +0000 (03:02 +0530)]
PDK-7894 : Fixed the OSAL unit test failures on MCU 20

Root Cause
The sysbios uses timers 13 as default time when
timer-any is opted for timers.

In J7200 Timers 8 to 19 are controlled by
seperate LPSC bit (w.r.t) J721E

Fix : Updated board to power up timers 8 and others
as part of main domain peripherals

Signed-off-by: sujith <sujith.s@ti.com>
8 months agoWIP - UDMA : J7200 Unit Test Issues Fix
Don Dominic [Mon, 7 Sep 2020 09:42:10 +0000 (15:12 +0530)]
WIP - UDMA : J7200 Unit Test Issues Fix

Signed-off-by: Don Dominic <a0486429@ti.com>
8 months ago[PDK-7671]Sciclient: Fixes for hostemulation build
Don Dominic [Mon, 7 Sep 2020 04:45:57 +0000 (10:15 +0530)]
[PDK-7671]Sciclient: Fixes for hostemulation build

Signed-off-by: Don Dominic <a0486429@ti.com>
8 months agoicss_dualemac: Include cmp_cap event in resource table
Lokesh Vutla [Fri, 28 Aug 2020 04:43:37 +0000 (10:13 +0530)]
icss_dualemac: Include cmp_cap event in resource table

Include cap and compare event(7) in PRU0 resource table. system_event 7 is
being mapped to channel 7.
Increase the firmware version build number to determine this change.

Fixes: LCPD-18771
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
8 months agoPDK-7828: IPC: QNX: Fix locking around recv_buffer
Angela Stegmaier [Fri, 4 Sep 2020 16:22:48 +0000 (11:22 -0500)]
PDK-7828: IPC: QNX: Fix locking around recv_buffer

For QNX case, the interrupt handling is done in thread context, and
so the thread lock needs to be taken to protect the recv_buffer, which
is accessed from both user API as well as IPC isr handler.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
8 months agoPDK-7757: PSDKQA-198: QNX: Fix the IPC error
Praveen Rao [Tue, 1 Sep 2020 18:20:52 +0000 (13:20 -0500)]
PDK-7757: PSDKQA-198: QNX: Fix the IPC error

New warning is enabled in QNX build that throws an
error when strncpy is used with length less than the
size of the length of the source string. Although in
this case, the next line was already taking care to
make sure the string is NULL-terminated.
Fix the compilation error by using length that is
the same size as the source name entry since the source
and destination name entries are the same size.

Signed-off-by: Praveen Rao <prao@ti.com>
Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
8 months ago[PDK-6682][DSS APP]Display sample application is printing wrong number of frames...
Vivek Dhande [Fri, 4 Sep 2020 12:39:03 +0000 (18:09 +0530)]
[PDK-6682][DSS APP]Display sample application is printing wrong number of frames sent/displayed despite of correct FPS calculations

- Reduced test time from 120 seconds to 30 seconds
- Issue:
    - Sample application was printing wrong number of frames displayed
- Root-cause
    - App has an additional layer on top of normal UART/CIO print statements
    - Argument parsing done in this function was incorrect
- Resolution:
    - Add 'vsnprintf()' along with 'va_start()' and 'va_end()' for argument parsing

Signed-off-by: Vivek Dhande <a0132295@ti.com>
8 months ago[PDK-7671] Use IR Interrupt Idx instead of Core Interrupt Idx in UDMA RM
Don Dominic [Tue, 25 Aug 2020 15:50:05 +0000 (21:20 +0530)]
[PDK-7671] Use IR Interrupt Idx instead of Core Interrupt Idx in UDMA RM

- Before configuring the interrupt, translate IR Interrupt to Core Interrupt Idx using Sciclient_rmIrqTranslateIrOutput
- In case of devices like AM64x, where there are no Interrupt Routers, irIntrNum refers to coreIntrNum number itself.
- Added new param 'startC66xCoreIntr' in 'Udma_RmInitPrms' since For C66x Sciclient translates NAVSS IR Idx to corresponding C66 IR Idx, Not the Core Interrupt Idx.
- Added new param 'devIdIr'- Interrupt Router TISCI Dev ID in UDMA driver object, to pass to Sciclient_rmIrqTranslateIrOutput API
- Added new param 'irIntrNum' in 'Udma_EventObj'

Signed-off-by: Don Dominic <a0486429@ti.com>
8 months agoPDK-7719 : Addressed review comments on J7200 noos OSAL Timer
sujith [Thu, 3 Sep 2020 20:50:56 +0000 (02:20 +0530)]
PDK-7719 : Addressed review comments on J7200 noos OSAL Timer

Signed-off-by: sujith <sujith.s@ti.com>
8 months agoi2c: PROC_SOC-185: fix I2C eeprom test package build issue for AM64x
Hao Zhang [Fri, 4 Sep 2020 01:48:42 +0000 (21:48 -0400)]
i2c: PROC_SOC-185: fix I2C eeprom test package build issue for AM64x

Signed-off-by: Hao Zhang <hzhang@ti.com>
8 months ago[ADASVISION-4202] Adding common SBL API for setting QoS
Lucas Weaver [Tue, 1 Sep 2020 18:52:25 +0000 (13:52 -0500)]
[ADASVISION-4202] Adding common SBL API for setting QoS

8 months agoi2c: PROC_SOC-185: fix I2C eeprom test package build issue for AM64x
Hao Zhang [Thu, 3 Sep 2020 12:31:22 +0000 (08:31 -0400)]
i2c: PROC_SOC-185: fix I2C eeprom test package build issue for AM64x

Signed-off-by: Hao Zhang <hzhang@ti.com>
8 months ago[dmautils] Add hostemu support for 16bit to 8bit conversion
Anshu Jain [Mon, 24 Aug 2020 15:05:23 +0000 (20:35 +0530)]
[dmautils] Add hostemu support for 16bit to 8bit conversion

Signed-off-by: Anshu Jain <anshu.jain@ti.com>
8 months agoti/osal/soc: add missing definition OSAL_ARCH_TIMER_INST_FOR_TS for tpr12
Eric Ruei [Wed, 2 Sep 2020 15:58:05 +0000 (11:58 -0400)]
ti/osal/soc: add missing definition OSAL_ARCH_TIMER_INST_FOR_TS for tpr12

- add OSAL_ARCH_TIMER_INST_FOR_TS for tpr12
- fix an editing typo at osal.h

Signed-off-by: Eric Ruei <e-ruei1@ti.com>
8 months agoti/osal: remove nested comments
Eric Ruei [Wed, 2 Sep 2020 15:11:49 +0000 (11:11 -0400)]
ti/osal: remove nested comments

Signed-off-by: Eric Ruei <e-ruei1@ti.com>
8 months agoti/osal: doxygen enhancements
Eric Ruei [Fri, 28 Aug 2020 20:38:22 +0000 (16:38 -0400)]
ti/osal: doxygen enhancements

- add missing comments
- put related macro definitions into groups

Signed-off-by: Eric Ruei <e-ruei1@ti.com>
8 months agoPDK-7758: IPC: Use custom MMU config to C7x
Angela Stegmaier [Thu, 27 Aug 2020 21:42:09 +0000 (16:42 -0500)]
PDK-7758: IPC: Use custom MMU config to C7x

IPC tests need the Linux/C7x vring memory to be set as non-cached, and
this is not done in the default MMU configuration provided in PDK APIs.

Instead, use a custom function to configure the MMU settings for C7x.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
8 months agoi2c: PROC_SOC-185: fix I2C eeprom test package build issue for AM64x
Hao Zhang [Wed, 2 Sep 2020 00:56:21 +0000 (20:56 -0400)]
i2c: PROC_SOC-185: fix I2C eeprom test package build issue for AM64x

Signed-off-by: Hao Zhang <hzhang@ti.com>
8 months agoPDK-7028: pdksetupenv.bat does not work on Windows
Sivaraj R [Tue, 1 Sep 2020 13:01:17 +0000 (18:31 +0530)]
PDK-7028: pdksetupenv.bat does not work on Windows

Resolution:
We now have SOC specific package for AM65xx and j7200
So we can now use j721e for Jacinto

Signed-off-by: Sivaraj R <sivaraj@ti.com>
8 months agoMigrating to SYSFW version v2020.07-RC3 REL.CORESDK.07.01.00.10
Sivaraj R [Tue, 1 Sep 2020 06:54:51 +0000 (12:24 +0530)]
Migrating to SYSFW version v2020.07-RC3

Signed-off-by: Sivaraj R <sivaraj@ti.com>
8 months agogpio: PDK-5522: fix pdk build error for AM64x REL.CORESDK.07.01.00.09
Hao Zhang [Sun, 30 Aug 2020 21:01:52 +0000 (17:01 -0400)]
gpio: PDK-5522: fix pdk build error for AM64x

Signed-off-by: Hao Zhang <hzhang@ti.com>
8 months agoi2c: PROC_SOC-185: add I2C EEPROM example support for AM64x
Hao Zhang [Fri, 14 Aug 2020 15:28:50 +0000 (11:28 -0400)]
i2c: PROC_SOC-185: add I2C EEPROM example support for AM64x

Signed-off-by: Hao Zhang <hzhang@ti.com>
8 months agoPDK-7023: IPC: Update mailbox assignment
Angela Stegmaier [Mon, 31 Aug 2020 21:30:26 +0000 (16:30 -0500)]
PDK-7023: IPC: Update mailbox assignment

There were some incorrect user IDs in the am65xx assignment for TX
interrupt. This isn't actually used by IPC LLD so no issue was observed,
but it is fixed here for correctness.

Also, the am64x mailbox assignment is updated based on latest
alignment for usage between Linux and RTOS/baremetal.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
8 months agoPDK-7060 : VCL OSAL updates REL.CORESDK.07.01.00.07 REL.CORESDK.07.01.00.08
sujith [Fri, 28 Aug 2020 09:13:00 +0000 (14:43 +0530)]
PDK-7060 : VCL OSAL updates

OSAL UT works for mcu 10, mcu20 and mpu 10
mcusw can_app works for mcu21

Signed-off-by: sujith <sujith.s@ti.com>
8 months agoPDK-7060 : used instance 6 & 7 timer for MCU 20 and MCU 21
sujith [Wed, 26 Aug 2020 18:47:55 +0000 (00:17 +0530)]
PDK-7060 : used instance 6 & 7 timer for MCU 20 and MCU 21

Signed-off-by: sujith <sujith.s@ti.com>
8 months agoPDK-7648 : MMCSD
sujith [Tue, 25 Aug 2020 07:52:18 +0000 (13:22 +0530)]
PDK-7648 : MMCSD

Signed-off-by: sujith <sujith.s@ti.com>
8 months agoPDK-7685: Build fixes for AM65xx alone package
Sivaraj R [Sat, 29 Aug 2020 16:21:22 +0000 (21:51 +0530)]
PDK-7685: Build fixes for AM65xx alone package

Signed-off-by: Sivaraj R <sivaraj@ti.com>
8 months agoOSAL: remove SoC-independent libraries for all active SoCs
Eric Ruei [Fri, 7 Aug 2020 19:07:25 +0000 (15:07 -0400)]
OSAL: remove SoC-independent libraries for all active SoCs

Signed-off-by: Eric Ruei <e-ruei1@ti.com>
8 months agoPDK-7717: Board: Fix for j7200 evm spi nor flash test faiure running from sbl
M V Pratap Reddy [Sun, 30 Aug 2020 09:57:44 +0000 (15:27 +0530)]
PDK-7717: Board: Fix for j7200 evm spi nor flash test faiure running from sbl

 - Enabled clock for MCSPI instance connected to nor flash in the board lib.

8 months agoPDK-4999: Board: Updated calibration values for j7200 evm current monitor test
M V Pratap Reddy [Sun, 30 Aug 2020 09:56:38 +0000 (15:26 +0530)]
PDK-4999: Board: Updated calibration values for j7200 evm current monitor test

8 months agoPDK-4972: Board: Updated PMIC diagnostic test for j7200 evm
M V Pratap Reddy [Sun, 30 Aug 2020 09:54:56 +0000 (15:24 +0530)]
PDK-4972: Board: Updated PMIC diagnostic test for j7200 evm

 - Updated the voltage rails and values being tested to be under
   safe limits.

8 months agoPDK-5093: Board: Updated j7200 evm boot switch diagnostic test as per HW design change
M V Pratap Reddy [Sun, 30 Aug 2020 09:51:34 +0000 (15:21 +0530)]
PDK-5093: Board: Updated j7200 evm boot switch diagnostic test as per HW design change

 - One of the boot switch pins is used as oscillator input after boot which cannot
   be used as gpio input by the test. Excluded the pin from the test.

8 months agogpio: PDK-5522: fix led blink example build error for AM64x
Hao Zhang [Fri, 28 Aug 2020 19:45:29 +0000 (15:45 -0400)]
gpio: PDK-5522: fix led blink example build error for AM64x

Signed-off-by: Hao Zhang <hzhang@ti.com>
8 months ago[PDK-7690] Sciclient : Support translation of IA VINT output
Don Dominic [Fri, 28 Aug 2020 07:20:34 +0000 (12:50 +0530)]
[PDK-7690] Sciclient : Support translation of IA VINT output

- reuse internal API 'Sciclient_rmTranslateIrOutput' by adding support for translating an interrupt aggregator output to the peripheral input it's connected to.
- Renamed 'Sciclient_rmTranslateIrOutput' to 'Sciclient_rmTranslateIntOutput'
- Add new external API 'Sciclient_rmIrqTranslateIaOutput'
 - Translates an interrupt aggregator output to the peripheral input it's connected to.  The primary use of the function is to retrieve the processor input IRQ(or IR input) an interrupt aggregator output is connected to.

Signed-off-by: Don Dominic <a0486429@ti.com>
8 months ago[PDK-7689] Sciclient : Added New API Sciclient_rmIrqTranslateIrqInput
Don Dominic [Fri, 28 Aug 2020 05:27:44 +0000 (00:27 -0500)]
[PDK-7689] Sciclient : Added New API Sciclient_rmIrqTranslateIrqInput

- Translates a peripheral input to the connected interrupt router or aggregator output.
- The primary use of the function is to retrieve the interrupt router or aggregator output connected to a processor input IRQ.

Signed-off-by: Don Dominic <a0486429@ti.com>
8 months agoesm: clear group1 error status using the current CSL-FL API function
Hongmei Gou [Wed, 26 Aug 2020 20:27:02 +0000 (16:27 -0400)]
esm: clear group1 error status using the current CSL-FL API function

Signed-off-by: Hongmei Gou <h-gou@ti.com>
8 months agoPDK-7685: Build fixes for J7200 alone package
Sivaraj R [Fri, 28 Aug 2020 06:08:56 +0000 (11:38 +0530)]
PDK-7685: Build fixes for J7200 alone package

Signed-off-by: Sivaraj R <sivaraj@ti.com>
8 months agoPDK-7687: IPC: Fix negative test timeout test
Angela Stegmaier [Thu, 27 Aug 2020 21:07:15 +0000 (16:07 -0500)]
PDK-7687: IPC: Fix negative test timeout test

The timeout test was incorrectly returning fail when it should have
been returning pass. Fix it to return the proper status.

Also, init the timer interrupts for the negative test for
C66x and C7x because it is needed for testing the timeout functionality,
and also the test uses Task_sleep.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
8 months agogpio: PDK-5522: add gpio lib/example support for AM64x
Hao Zhang [Fri, 28 Aug 2020 01:35:13 +0000 (21:35 -0400)]
gpio: PDK-5522: add gpio lib/example support for AM64x

Signed-off-by: Hao Zhang <hzhang@ti.com>
8 months agoPDK-5528: SBL: J7200: Fallback for xSPI PHY tuning failure
Jonathan Bergsagel [Thu, 27 Aug 2020 05:50:12 +0000 (00:50 -0500)]
PDK-5528: SBL: J7200: Fallback for xSPI PHY tuning failure

Allows to continue reading the App image from xSPI flash
in xSPI+SFDP boot mode when the PHY tuning has failed.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
8 months agoPDK-7685: Build fixes for AM65xx alone package
Sivaraj R [Thu, 27 Aug 2020 12:42:20 +0000 (18:12 +0530)]
PDK-7685: Build fixes for AM65xx alone package

Signed-off-by: Sivaraj R <sivaraj@ti.com>
8 months agoPDK-7616: SBL: Build fixes for HLOS boot variant
Jonathan Bergsagel [Thu, 27 Aug 2020 06:28:39 +0000 (01:28 -0500)]
PDK-7616: SBL: Build fixes for HLOS boot variant

Fixes HLOS builds for non-J7 SoC variants.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
8 months agoFix SBL warning - repo redundant make target
Sivaraj R [Wed, 26 Aug 2020 12:10:12 +0000 (17:40 +0530)]
Fix SBL warning - repo redundant make target

Signed-off-by: Sivaraj R <sivaraj@ti.com>
8 months agoPDK-5086: Board: Disabled OSPI PHY mode for J7200 Uniflash programmer
M V Pratap Reddy [Wed, 26 Aug 2020 10:55:14 +0000 (16:25 +0530)]
PDK-5086: Board: Disabled OSPI PHY mode for J7200 Uniflash programmer

 - DAC mode with PHY enabled cannot be used for write operations on J7200
   EVM

8 months agoPDK-7682: spi: Fix for OSPI flash test failure at 166MHz on j7200 evm
M V Pratap Reddy [Wed, 26 Aug 2020 10:45:51 +0000 (16:15 +0530)]
PDK-7682: spi: Fix for OSPI flash test failure at 166MHz on j7200 evm

 - Disabled the OSPI DAC mode tests since write operations are not
   allowed in DAC mode for flash used on j7200 platform.

8 months agoPDK-7616: SBL: Add build targets for HLOS boot variants
Jonathan Bergsagel [Tue, 25 Aug 2020 16:31:02 +0000 (11:31 -0500)]
PDK-7616: SBL: Add build targets for HLOS boot variants

Added SBL HLOS boot variants for mmcsd, ospi, & hyperflash,
since separate compile flags needed to be used for SBL builds
that support HLOS boot.
Supported, currently for j721e & j7200. But, the infrastructure
is there for all K3 SoCs now, and others can easily be added.

Also, fixed the CUST build flags for j7200 sbl_cust_img build.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
8 months agoesm: clear error status with esm CSL-FL functions
Hongmei Gou [Tue, 25 Aug 2020 22:03:43 +0000 (18:03 -0400)]
esm: clear error status with esm CSL-FL functions

Signed-off-by: Hongmei Gou <hgou@ti.com>
8 months agowatchdog: configure the stall model using CSL-FL
Hongmei Gou [Wed, 19 Aug 2020 04:47:58 +0000 (00:47 -0400)]
watchdog: configure the stall model using CSL-FL

Signed-off-by: Hongmei Gou <hgou@ti.com>
8 months agoFix doxygen warnings for J7200 only build
Sivaraj R [Tue, 25 Aug 2020 17:21:07 +0000 (22:51 +0530)]
Fix doxygen warnings for J7200 only build

Signed-off-by: Sivaraj R <sivaraj@ti.com>
8 months agoPDK-5079: Board: Fix for J7200 board library build failure on mpu core REL.CORESDK.07.01.00.04 REL.CORESDK.07.01.00.05 REL.CORESDK.07.01.00.06
M V Pratap Reddy [Tue, 25 Aug 2020 09:20:36 +0000 (14:50 +0530)]
PDK-5079: Board: Fix for J7200 board library build failure on mpu core

8 months agoCombined boot flow image gen enhancements to support automation
Sivaraj R [Sat, 22 Aug 2020 06:15:05 +0000 (11:45 +0530)]
Combined boot flow image gen enhancements to support automation

Signed-off-by: Sivaraj R <sivaraj@ti.com>
Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
8 months agobuild: Enable Enet LLD into build system
Misael Lopez Cruz [Mon, 13 Jul 2020 09:03:04 +0000 (04:03 -0500)]
build: Enable Enet LLD into build system

Enable building of Enet LLD.

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
8 months agoPDK-7627: Fixed in SBL to allow loading multi-stage FW on HS device
Brijesh Jadav [Sat, 15 Aug 2020 13:27:17 +0000 (18:57 +0530)]
PDK-7627: Fixed in SBL to allow loading multi-stage FW on HS device

Signed-off-by: Brijesh Jadav <brijesh.jadav@ti.com>
8 months agoPDK-5079: Board: Integrated ospi phy tuning algorithm with j7200 evm
M V Pratap Reddy [Mon, 17 Aug 2020 20:22:28 +0000 (01:52 +0530)]
PDK-5079: Board: Integrated ospi phy tuning algorithm with j7200 evm

8 months agoospi: PDK-5079: fix INDAC read problem
Hao Zhang [Fri, 14 Aug 2020 14:57:52 +0000 (10:57 -0400)]
ospi: PDK-5079: fix INDAC read problem

Signed-off-by: Hao Zhang <hzhang@ti.com>
8 months agoospi: PDK-5079: add new PHY tuning algorithm support
Hao Zhang [Tue, 4 Aug 2020 22:39:09 +0000 (18:39 -0400)]
ospi: PDK-5079: add new PHY tuning algorithm support

Signed-off-by: Hao Zhang <hzhang@ti.com>
8 months agoPDK-5037: Board: Updated j7200 evm ddr configurations for 2666MTs REL.PRU-ICSS-PROFINET-SWITCH_02.02.06.01
M V Pratap Reddy [Fri, 21 Aug 2020 09:06:48 +0000 (14:36 +0530)]
PDK-5037: Board: Updated j7200 evm ddr configurations for 2666MTs

8 months agoPSDKQA-134: IPC: QNX: Add ability to unblock RPMessage_getRemoteEndPt call
Angela Stegmaier [Sun, 29 Mar 2020 18:03:12 +0000 (13:03 -0500)]
PSDKQA-134: IPC: QNX: Add ability to unblock RPMessage_getRemoteEndPt call

In case an application is QNX has called RPMessage_getRemoteEndPt
and then terminates without ever finding the endpoint, the application
thread can get stuck. This patch provides a new API that allows
a token to be passed with each getRemote call that can be used
to later for the QNX IPC resmgr to identify which application
threads needs to be unblocked. Then it can call the new
RPMessage_unblockGetRemoteEndPt API.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
8 months agoPSDKQA-134: IPC LLD: Add error traces and use Qisempty
Kedar Chitnis [Wed, 18 Mar 2020 12:25:31 +0000 (17:55 +0530)]
PSDKQA-134: IPC LLD: Add error traces and use Qisempty

Added more prints and changed the logic to use Qisempty API instead
of using internal structure fields.

Signed-off-by: Keadr Chitnis <kedarc@ti.com>
Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
8 months agoPSDKQA-134: ipc-lld: qnx: add memory barriers
Angela Stegmaier [Tue, 17 Mar 2020 18:17:47 +0000 (13:17 -0500)]
PSDKQA-134: ipc-lld: qnx: add memory barriers

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
Signed-off-by: Kedar Chitnis <kedarc@ti.com>
8 months agoPSDKQA-134: IPC: Updated logic to take and release locks in IPC LLD for QNX
Kedar Chitnis [Mon, 16 Mar 2020 11:37:45 +0000 (17:07 +0530)]
PSDKQA-134: IPC: Updated logic to take and release locks in IPC LLD for QNX

 - In QNX ISR runs as a thread vs a real ISR as in SysBIOS
 - This means we need to take a thread lock within the IST handling code
as well as within the user API.
   - Current code is taking lock in user level API, but there is no lock
taken in the ISR function which runs in thread context
 - Updated logic to take mutex lock in most places including ISR
function and removed usage of interrupt lock/unlock for QNX.
 - For SysBIOS, protection is between SWI and threads, so the additional
HIsrGate locking in the SWI and changing from global interrupt disable
to HIsrGate is sufficient protection as well

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
Signed-off-by: Kedar Chitnis <kedarc@ti.com>
8 months agoPSDKQA-134: Add IPC LLD support for QNX OS
Angela Stegmaier [Wed, 12 Aug 2020 18:08:26 +0000 (13:08 -0500)]
PSDKQA-134: Add IPC LLD support for QNX OS

Add QNX support to IPC LLD for j721e.

[Ported from original patch commit-id c531b5a4c32]

Signed-off-by: Sivaraj R <sivaraj@ti.com>
Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
8 months agoPDK-7625: IPC: Fix issue with delayed announce message
Angela Stegmaier [Wed, 19 Aug 2020 22:36:15 +0000 (17:36 -0500)]
PDK-7625: IPC: Fix issue with delayed announce message

The IPC LLD should not clear the messages from the mailbox
when starting up, as another core may have come up before
and already sent a message to the mailbox. Instead, move
the enabling of the interrupt to later once the rpmsg is
initialized and is able to handle the pending message via
the callback. In this way, if an announce message is
already sent to the core, it will be processed as soon
as the core is ready to accept messages and not delayed
until the next message is received.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
8 months agoPDK-7626: IPC: Update ipc_perf_test pass string
Angela Stegmaier [Fri, 21 Aug 2020 22:06:46 +0000 (17:06 -0500)]
PDK-7626: IPC: Update ipc_perf_test pass string

Add additional "All tests have passed" to the end of the test.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
8 months agoPDK-7648 : Fixed I2C eeprom test fails on some cores of J7200
sujith [Fri, 21 Aug 2020 22:04:43 +0000 (03:34 +0530)]
PDK-7648 : Fixed I2C eeprom test fails on some cores of J7200

The support for all instances of I2C was not included
when ported. Added support for all instances from all
cores.

Updated the interrupt number for J7200 in app

Tested on J7200 mcu 10, mcu 11, mcu 20, mcu 21 and mpu 10

Signed-off-by: sujith <sujith.s@ti.com>
8 months agoOSPI : Enabled app generation for J7200
sujith [Thu, 20 Aug 2020 19:08:57 +0000 (00:38 +0530)]
OSPI : Enabled app generation for J7200

Signed-off-by: sujith <sujith.s@ti.com>