]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/log
processor-sdk/pdk.git
3 years agoSciclient: Warning Fix
Piyali Goswami [Mon, 7 Dec 2020 11:29:30 +0000 (16:59 +0530)]
Sciclient: Warning Fix

Warning build time fix for Sciclient_rm_irq.c

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
3 years agodiag/tpr12: cpsw diag update to work with eth master branch
Badri S [Mon, 7 Dec 2020 07:38:28 +0000 (13:08 +0530)]
diag/tpr12: cpsw diag update to work with eth master branch

cpsw diag update to work with enet master branch

Signed-off-by: Badri S <badri@ti.com>
3 years agotpr12/sbl: support for sbl image signing in windows
Badri S [Thu, 3 Dec 2020 13:57:13 +0000 (19:27 +0530)]
tpr12/sbl: support for sbl image signing in windows

sbl image signing in windows environment

Signed-off-by: Badri S <badri@ti.com>
3 years agotpr12/canfd: address review comments
Badri S [Thu, 3 Dec 2020 13:29:44 +0000 (18:59 +0530)]
tpr12/canfd: address review comments

address review comments

Signed-off-by: Badri S <badri@ti.com>
3 years agoPDK-6948: Board: Updated mmr config for am64x evm
M V Pratap Reddy [Fri, 4 Dec 2020 12:52:36 +0000 (18:22 +0530)]
PDK-6948: Board: Updated mmr config for am64x evm

 - MMR config is failing during the pinmux configuration in release
   mode. Order of execution for setting kick0 and kick1 is done in reverse
   which is causing unlock/lock failure.
   Added volatile specifier for kick address variables to avoid the
   optimization.

3 years agoPDK-8827: IPC: examples: Fix Build Issue with Idle Task for J721e
Angela Stegmaier [Sat, 5 Dec 2020 17:12:54 +0000 (11:12 -0600)]
PDK-8827: IPC: examples: Fix Build Issue with Idle Task for J721e

Fix build issue introduced with recent change to swap order
of Idle task functions in commit 4e192c640bfb098806deda6ab9e9558504b6a76c

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
3 years agoPDK-8537: Update to the Sciclient_rm logic to handle AM64x MPU1_0 IA to GIC handling...
Piyali Goswami [Sun, 6 Dec 2020 06:41:51 +0000 (12:11 +0530)]
PDK-8537: Update to the Sciclient_rm logic to handle AM64x MPU1_0 IA to GIC handling without IRs

AM64x is the first device with IA to GIC mapping without an IR in between. This patch handles this case

Fixes: PDK-8537
Signed-off-by: Piyali Goswami <piyali_g@ti.com>
3 years agoSBL: AM64x: Add library targets for mmcsd and ospi hlos
Vishal Mahaveer [Sat, 5 Dec 2020 05:44:57 +0000 (23:44 -0600)]
SBL: AM64x: Add library targets for mmcsd and ospi hlos

Libraries needed for mmcsd and ospi hlos were missed when adding
the examples. Fix the jenkins build issue by adding them.

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
3 years ago[PDK-7909][PDK-6279] UDMA UT: Added new testcase for PKTDMA Channel API tets
Don Dominic [Fri, 4 Dec 2020 22:39:33 +0000 (04:09 +0530)]
[PDK-7909][PDK-6279] UDMA UT: Added new testcase for PKTDMA Channel API tets

- Tests various channel API's for various compinantions of TX/RX/Mapped/Unmapped PKTDMA Channels
- Udma_chOpen
- Udma_chConfigTx / Udma_chConfigRx
- Udma_chEnable
- Udma_chDisable
- Udma_chClose

- For BCDMA/UDMAP this gets tested with block copy tests.

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agoPDK-8843: Mailbox LLD: AM64X: Use writeTimeout for Mailbox_write calls
Angela Stegmaier [Fri, 4 Dec 2020 17:59:33 +0000 (11:59 -0600)]
PDK-8843: Mailbox LLD: AM64X: Use writeTimeout for Mailbox_write calls

The Mailbox_write API for AM64X was incorrectly using the readTimeout
instead of the writeTimeout when sending mailbox messages. Fix
the implementation to use the correct timeout value.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
3 years agoPDK-8843: IPC: AM64X: Use timeout from Virtio Config when sending messages
Angela Stegmaier [Fri, 4 Dec 2020 17:46:20 +0000 (11:46 -0600)]
PDK-8843: IPC: AM64X: Use timeout from Virtio Config when sending messages

For AM64X IPC, the timeout passed at Virtio initialization was not being
propagated to the Mailbox LLD, so the Mailbox_read/write calls
would not timeout as expected.

This patch fixes the issue by propagating the user-configured
value to the Mailbox LLD.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
3 years ago [PDK-7909][PDK-6282] UDMA UT: Added new testcase for PKTDMA Mapped Channel Parameter...
Don Dominic [Fri, 4 Dec 2020 14:25:19 +0000 (19:55 +0530)]
 [PDK-7909][PDK-6282] UDMA UT: Added new testcase for PKTDMA Mapped Channel Parameters check

- PKTDMA Channel Open with no ring memory test
- PKTDMA Mapped Channel Open with invalid mapped channel group negative test

TODO:
- Add new TC for PKTDMA Channel open test for all combinations (TX/RX/Mapped/Unmapped)

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agoPDK-6948: Board: Added gpmc pinmux support for am64x evm
M V Pratap Reddy [Fri, 4 Dec 2020 10:35:57 +0000 (16:05 +0530)]
PDK-6948: Board: Added gpmc pinmux support for am64x evm

3 years agoPDK-6958: Board: Updated tpr12 evm uart test to address review comments
M V Pratap Reddy [Fri, 4 Dec 2020 07:17:34 +0000 (12:47 +0530)]
PDK-6958: Board: Updated tpr12 evm uart test to address review comments

3 years agoPDK-5002: Board: Enabled IWR1443 FE support for tpr12 evm csirx test
M V Pratap Reddy [Fri, 4 Dec 2020 04:32:44 +0000 (10:02 +0530)]
PDK-5002: Board: Enabled IWR1443 FE support for tpr12 evm csirx test

 - CSI-Rx diagnostic test supports both AWR2243 and IWR1443 FE modules
   with AWR2243 enabled by default.
 - Done code clean-up to align with diag coding guidelines
 - Added binaries for IWR1443 FE

3 years agoPDK-6958:Board: Enabled MSS UARTB test for tpr12 evm
M V Pratap Reddy [Fri, 4 Dec 2020 04:28:02 +0000 (09:58 +0530)]
PDK-6958:Board: Enabled MSS UARTB test for tpr12 evm

3 years agoPDK-6956: Board: Enabled quad mode for tpr12 evm qspi flash test
M V Pratap Reddy [Fri, 4 Dec 2020 04:13:01 +0000 (09:43 +0530)]
PDK-6956: Board: Enabled quad mode for tpr12 evm qspi flash test

3 years ago[PDK-7909] UDMA UT: Added test for PKTDMA Mapped Rings
Don Dominic [Fri, 4 Dec 2020 11:05:56 +0000 (16:35 +0530)]
[PDK-7909] UDMA UT: Added test for PKTDMA Mapped Rings

- Updated the TC "PDK-3726 - Ring attach and detach testcase"
  - Tests various PKTDMA mapped ring groups too

- Along with minor updates in:
  - Mapped Flow Attach Test case:
    - Added more prints
    - Renamed/Updated API to get mappedChNum

  - udma_rm.c for Mapped Ring allocate
    - Added check for numFreRings for the mapped channel
    - added assert

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agoAM64x_evm: add pull up for mmc1 lines
Vishal Mahaveer [Fri, 4 Dec 2020 05:49:47 +0000 (23:49 -0600)]
AM64x_evm: add pull up for mmc1 lines

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
3 years agommcsd: test: cleanup simulation related flags for am64x_evm
Vishal Mahaveer [Wed, 2 Dec 2020 04:16:34 +0000 (22:16 -0600)]
mmcsd: test: cleanup simulation related flags for am64x_evm

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
3 years ago[PDK-7909][PDK-8837] UDMA UT: Added new testcase for LCDMA Ring Prime Test
Don Dominic [Thu, 3 Dec 2020 12:28:02 +0000 (17:58 +0530)]
[PDK-7909][PDK-8837] UDMA UT: Added new testcase for LCDMA Ring Prime Test

- For LCDMA with Dual ring,
- Ring Prime Read checks for Reverse occupancy.
- In this case, actual transfer should happen to populate
- reverse occupancy count and successfully do a ring prime read.
- This testcase, implements block copy using ring prime API's
- This tests only Ring Prime API's.
- Data check and TR Responce checks are NOT carried out.

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agoPDK-8403: Board: Workaround for CSI-Rx DSP baremetal interrupt issue on TPR12 EVM
M V Pratap Reddy [Thu, 3 Dec 2020 11:06:18 +0000 (16:36 +0530)]
PDK-8403: Board: Workaround for CSI-Rx DSP baremetal interrupt issue on TPR12 EVM

 - Interrupt is not functional in CSI-Rx diagnostic test while running
   on DSP in batemetal mode. Need to make changes in osal configuration
   functions to fix the issue.
   Added interrupt enable in the CSI-Rx diag as a temporary workaround.

3 years agotpr12/canfd: build packaging fixes REL.CORESDK.07.01.04.01
Badri S [Wed, 2 Dec 2020 07:37:52 +0000 (13:07 +0530)]
tpr12/canfd: build packaging fixes

build and packaging fixes for tpr12

Signed-off-by: Badri S <badri@ti.com>
3 years agotpr12: add reference to cslInit for baremetal in lnkflags
Badri S [Wed, 2 Dec 2020 06:08:52 +0000 (11:38 +0530)]
tpr12: add reference to cslInit for baremetal in lnkflags

for baremetal apps in tpr12 add unresolved reference to
cslInit so that compiler links in the csl_init lib .

Signed-off-by: Badri S <badri@ti.com>
3 years agoboard/tpr12: remove board/src/tpr12_qt as they are not used
Badri S [Wed, 2 Dec 2020 05:29:18 +0000 (10:59 +0530)]
board/tpr12: remove board/src/tpr12_qt as they are not used

tpr12_qt files for board lib are not used and removed

Signed-off-by: Badri S <badri@ti.com>
3 years agoCANFD driver for TPR12
Badri S [Mon, 30 Nov 2020 06:39:03 +0000 (12:09 +0530)]
CANFD driver for TPR12

Added CANFD driver for TPR12

Signed-off-by: Badri S <badri@ti.com>
3 years agoPDK-8417: Board: Enabled UART load support for trp12 evm flash programmer
M V Pratap Reddy [Mon, 30 Nov 2020 04:48:37 +0000 (10:18 +0530)]
PDK-8417: Board: Enabled UART load support for trp12 evm flash programmer

3 years agotpr12/qt: changes to enable tpr12 on QT again
Badri S [Mon, 23 Nov 2020 11:47:32 +0000 (17:17 +0530)]
tpr12/qt: changes to enable tpr12 on QT again

QT support is required for AR29xx bringup so
restored TPR12 QT platform support

Signed-off-by: Badri S <badri@ti.com>
3 years agotpr12/boardflash: SBL/Uniflash writer update for GD25B64CW2G
Badri S [Fri, 20 Nov 2020 14:54:33 +0000 (20:24 +0530)]
tpr12/boardflash: SBL/Uniflash writer update for GD25B64CW2G

Board flash library update to work with GD25B64CW2G which
is populated in the next batch of TPR12 EVM builds

Signed-off-by: Badri S <badri@ti.com>
3 years agoAM64x Bringup: MMCSD : Fix linker issue with Baremetal EMMC Regression Testapp
Don Dominic [Wed, 2 Dec 2020 06:59:28 +0000 (12:29 +0530)]
AM64x Bringup: MMCSD : Fix linker issue with Baremetal EMMC Regression Testapp

- Update LNKFLAGS_LOCAL for mpu1_0
  - This fix the issue "Unable to find 'main'" when loading on mpu1_0
- Remove SIMULATOR flag

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agoPDK-5000: Board: Enabled CAN diagnostic test for tpr12 evm
M V Pratap Reddy [Wed, 2 Dec 2020 06:18:03 +0000 (11:48 +0530)]
PDK-5000: Board: Enabled CAN diagnostic test for tpr12 evm

3 years agoPDK-5005: Board: Enabled Ethernet diagnostic test for trp12 evm
M V Pratap Reddy [Wed, 2 Dec 2020 06:16:09 +0000 (11:46 +0530)]
PDK-5005: Board: Enabled Ethernet diagnostic test for trp12 evm

 - enet lld based diagnostic test is not suppored on other platforms.
   cpsw diag build is enabled for only tpr12 evm.

3 years agoSBL: AM64x: Adding makefile support for mmcsd and ospi hlos
Dillon Frank [Wed, 2 Dec 2020 01:36:35 +0000 (19:36 -0600)]
SBL: AM64x: Adding makefile support for mmcsd and ospi hlos

Added the makefile options for both mmcsd and ospi, in order
to build their hlos images for AM64x

Signed-off-by: Dillon Frank <uda0233816local@UDA0233816>
3 years agoPDK-8827: IPC: test: Make traceBuffer flush before sysIdleLoop
Angela Stegmaier [Tue, 1 Dec 2020 16:40:28 +0000 (10:40 -0600)]
PDK-8827: IPC: test: Make traceBuffer flush before sysIdleLoop

Place the traceBuffer flush Idle function before the sysIdleLoop
Idle function in order to reduce potential delay for trace
buffer flush.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
3 years agoPDK-8826: IPC: AM64X: Flush trace buffer in ipc_echo_test
Angela Stegmaier [Tue, 1 Dec 2020 14:56:06 +0000 (08:56 -0600)]
PDK-8826: IPC: AM64X: Flush trace buffer in ipc_echo_test

Add the idle function in the sysbios ipc_echo_test images
to flush the remoteproc trace buffer in idle.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
3 years agoAM64x Bringup: GPIO LED Updates
Don Dominic [Tue, 1 Dec 2020 10:40:12 +0000 (16:10 +0530)]
AM64x Bringup: GPIO LED Updates

- Updated Port Num of MCU_GPIO_TEST_LED_2
- Updated LED macros for AM64x in gpio drv - GPIO_board,h
- Toggle USER_LED1
  - In AM64x GP EVM, USER_LED0 (TEST_LED1) is connected to IO EXPANDER.
  - So, toggling USER_LED1 (TEST_LED2) - connected to MCU_GPIO0_5(EVM-LD26)

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agoPDK-8815: IPC: AM64X: ipc_perf_test memory map update
Angela Stegmaier [Mon, 30 Nov 2020 22:38:20 +0000 (16:38 -0600)]
PDK-8815: IPC: AM64X: ipc_perf_test memory map update

The ipc_perf_test memory map for mpu1_0 and mcu1_0
need to be updated to work with SBL boot. The memory
map needed to be updated to not conflict with SBL
usage.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
3 years agoSBL: AM64x: Updates for OSPI boot
Jonathan Bergsagel [Tue, 24 Nov 2020 02:14:18 +0000 (20:14 -0600)]
SBL: AM64x: Updates for OSPI boot

OSPI parameter updates in the SBL to support OSPI boot at 133MHz.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
3 years agoAM64x Bringup: UDMA UT: Update Linker Files
Don Dominic [Mon, 30 Nov 2020 10:32:27 +0000 (16:02 +0530)]
AM64x Bringup: UDMA UT: Update Linker Files

- Update linker files of UDMA UT for all cores AM64x
- Remove Presilicon macro UDMA_TEST_SOC_PRESILICON

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agopdk/osal: fixed the AM64x OSAL timer issue REL.CORESDK.07.01.03.04 REL.CORESDK.07.01.03.05
Ming Wei [Mon, 30 Nov 2020 04:11:06 +0000 (22:11 -0600)]
pdk/osal: fixed the AM64x OSAL timer issue

In pdk\packages\ti\osal\src\nonos\timer\v1\TimerP_nonos.c line 572,
the “|| defined(SOC_AM64X)” is missing, so for AM64x the
triggerSensitivity is always set to OSAL_ARM_GIC_TRIG_TYPE_EDGE.
This incorrect setting then causes the OsalArch_HwiPCreateDirect()
(line 409 in pdk\packages\ti\osal\arch\core\r5\Arch_util.c) to set the
“intrSrcType = CSL_VIM_INTR_TYPE_PULSE”.

Signed-off-by: Ming Wei <mwei@ti.com>
3 years agoPDK-6947: Board: mcan diagnostic test update validated on am64x evm REL.CORESDK.07.01.03.03
M V Pratap Reddy [Sat, 28 Nov 2020 10:34:41 +0000 (16:04 +0530)]
PDK-6947: Board: mcan diagnostic test update validated on am64x evm

3 years agoPDK-6943: Board: Updated ospi diagnostic test for am64x evm
M V Pratap Reddy [Sat, 28 Nov 2020 10:33:33 +0000 (16:03 +0530)]
PDK-6943: Board: Updated ospi diagnostic test for am64x evm

 - Test is not working in dma mode. Disabled DMA mode for now.

3 years agoPDK-8777: Board: Upated board flash package config to add ospi tuning data
M V Pratap Reddy [Sat, 28 Nov 2020 10:31:37 +0000 (16:01 +0530)]
PDK-8777: Board: Upated board flash package config to add ospi tuning data

3 years agoBoard: Fix for QSPI flash hang issue in flash open
M V Pratap Reddy [Fri, 27 Nov 2020 16:03:31 +0000 (21:33 +0530)]
Board: Fix for QSPI flash hang issue in flash open

3 years agoPDK-6948: Board: Integrated DDR configurations with am64x evm board lib
M V Pratap Reddy [Fri, 27 Nov 2020 15:36:21 +0000 (21:06 +0530)]
PDK-6948: Board: Integrated DDR configurations with am64x evm board lib

 - DDR is working fine at 1600MTs

3 years agoPDK-6948: Board: Removed unused Ethernet PHY macros from am64x board lib REL.CORESDK.07.01.03.02
M V Pratap Reddy [Fri, 27 Nov 2020 13:03:25 +0000 (18:33 +0530)]
PDK-6948: Board: Removed unused Ethernet PHY macros from am64x board lib

3 years agoPDK-6948: Board: Updated am64x icss core clock to 250MHz
M V Pratap Reddy [Fri, 27 Nov 2020 13:02:29 +0000 (18:32 +0530)]
PDK-6948: Board: Updated am64x icss core clock to 250MHz

3 years agoPDK-6948: Board: Enabled icss mdio init for am64x evm
M V Pratap Reddy [Fri, 27 Nov 2020 09:48:49 +0000 (15:18 +0530)]
PDK-6948: Board: Enabled icss mdio init for am64x evm

 - Moved Board_STATUS variable definition from board.h to board_cfg.h.
   This will allow including board header files in board_cfg.h to avoid
   including the header files in every application.
   Change applies to all the platforms and should not break any
   functionality.

3 years agoPDK-6948: Board: Added ICSS MII pinmux support for am64x evm
M V Pratap Reddy [Fri, 27 Nov 2020 09:44:59 +0000 (15:14 +0530)]
PDK-6948: Board: Added ICSS MII pinmux support for am64x evm

3 years agoPDK-6948: Board: Updated am64x evm pinmux project file to be compatible to
M V Pratap Reddy [Fri, 27 Nov 2020 09:42:04 +0000 (15:12 +0530)]
PDK-6948: Board: Updated am64x evm pinmux project file to be compatible to
latest tool version

3 years agoPDK-6948: Board: Enabled PLL configurations in am64x board library
M V Pratap Reddy [Fri, 27 Nov 2020 09:36:25 +0000 (15:06 +0530)]
PDK-6948: Board: Enabled PLL configurations in am64x board library

 - Enabling only limited PLL configurations as most of the PLL clocks
   are fixed and should be configured by default.

3 years agoPDK-6815 : Addressing review comments
sujith [Thu, 26 Nov 2020 11:32:19 +0000 (17:02 +0530)]
PDK-6815 : Addressing review comments

Retained the untils vector copy function name to ensure it's
common for all platforms

Signed-off-by: sujith <sujith.s@ti.com>
3 years agoBuild Break : Fixed
sujith [Wed, 25 Nov 2020 06:29:07 +0000 (11:59 +0530)]
Build Break : Fixed

Signed-off-by: sujith <sujith.s@ti.com>
3 years agoPDK-6815: AM65xx: Updated UDMA Adc example
sujith [Tue, 24 Nov 2020 18:59:01 +0000 (00:29 +0530)]
PDK-6815: AM65xx: Updated UDMA Adc example

To load .txt and .data into MSMC and copy the same to
ATCM at runtime and use ATCM for runtime

Tested UDMA on MCU 10, MPU 10 in SBL and CCS mode

Signed-off-by: sujith <sujith.s@ti.com>
3 years agoPDK-6815 : Updated all apps to enable TCM and copy the vecs
sujith [Tue, 24 Nov 2020 13:38:44 +0000 (19:08 +0530)]
PDK-6815 : Updated all apps to enable TCM and copy the vecs

Applicable for AM65xx only

Signed-off-by: sujith <sujith.s@ti.com>
3 years agoPDK-6815: AM65xx: Enable TCMs, Init them and copy vecs to ATCM
sujith [Tue, 24 Nov 2020 11:54:24 +0000 (17:24 +0530)]
PDK-6815: AM65xx: Enable TCMs, Init them and copy vecs to ATCM

Limiting the TCMs init to 100 bytes, will add time to boot
Expect customer to increase/decrease based on need

Tested with udma crc & adc example on AM65xx PG 1.1

Signed-off-by: sujith <sujith.s@ti.com>
3 years agoMMC/SD : AM65xx Fixes
sujith [Sat, 21 Nov 2020 05:03:00 +0000 (10:33 +0530)]
MMC/SD : AM65xx Fixes

1. Enabled to used dummy interrupt
2. Corrected MPU config
3. Tested MMC/SD eMMC on MCU 10 & MPU 10

Signed-off-by: sujith <sujith.s@ti.com>
3 years agoPDK-8393 : am65xx : Updated other apps to enable execution from ccs
sujith [Fri, 20 Nov 2020 12:12:17 +0000 (17:42 +0530)]
PDK-8393 : am65xx : Updated other apps to enable execution from ccs

Signed-off-by: sujith <sujith.s@ti.com>
3 years agoPDK-8393 : am65xx CCS boot issue when not using ATCM : Resolved
sujith [Thu, 19 Nov 2020 18:56:45 +0000 (00:26 +0530)]
PDK-8393 : am65xx CCS boot issue when not using ATCM : Resolved

Root cause : The SBL with 07.01, do not enable ATCM/BTCM
which mandated entry point to be placed in mcu
mc ram.

However, when starting via CCS, the GEL's files
enables ATCM. When ATCM is enabled and with sysbios
6.83 and later, the entry point should be in ATCM

Fix : Included utils to copy the reset vector to ATCM, if
ATCM is enabled

Test : Tested with OSAL test app with sysbios, via ccs and
uart boot mode

Signed-off-by: sujith <sujith.s@ti.com>
3 years ago[PDK-8661] UDMA Examples : Disable AM65xx mcu1_1 examples
Don Dominic [Tue, 17 Nov 2020 08:01:21 +0000 (13:31 +0530)]
[PDK-8661] UDMA Examples : Disable AM65xx mcu1_1 examples

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years ago[PDK-8661] UDMA : Update UDMA rmcfg for AM65xx
Don Dominic [Mon, 16 Nov 2020 15:14:12 +0000 (20:44 +0530)]
[PDK-8661] UDMA : Update UDMA rmcfg for AM65xx

- udma_rmcfg.c for AM65xx was outdated
- Update the default rm params to match with the latest from SysConfig tool

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agoPDK-6955:Board: Updated ospi flash programmer for am64x evm
M V Pratap Reddy [Fri, 27 Nov 2020 04:07:44 +0000 (09:37 +0530)]
PDK-6955:Board: Updated ospi flash programmer for am64x evm

 - OSPI flash programmer validated with CCS/JTAG.
 - Currently set to JTAG support by default. Need to enable dynamic
   switching between UART and JTAG based on boot settings
 - UART Baudrate is reduced to 115200 due to issues at higher baud rate.

3 years agoPDK-6951: Board: Enabled current monitor diag test build for am64x evm
M V Pratap Reddy [Fri, 27 Nov 2020 04:02:56 +0000 (09:32 +0530)]
PDK-6951: Board: Enabled current monitor diag test build for am64x evm

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>