processor-sdk/pdk.git
18 months agoTop level makefile enhancements
Sivaraj R [Tue, 5 May 2020 09:05:57 +0000 (14:35 +0530)]
Top level makefile enhancements

- Added J721e. Yocto uses j7 but normal build uses j721e
- We can remove j7 once PRSDK yocto build is descoped
- Added default path for PDK when export variable is not set
- This allows to work with makefile without an need to run env.sh file

Signed-off-by: Sivaraj R <sivaraj@ti.com>
18 months agoBuild Issue Resolutions : Minor updates
sujith [Sun, 10 May 2020 07:09:23 +0000 (12:39 +0530)]
Build Issue Resolutions : Minor updates

Signed-off-by: sujith <sujith.s@ti.com>
19 months agoPDK-5038: Board: Added build support for TPR12 QT
M V Pratap Reddy [Sat, 9 May 2020 17:08:22 +0000 (22:38 +0530)]
PDK-5038: Board: Added build support for TPR12 QT

19 months agoFix AM64x build - Revert GCC properly
Sivaraj R [Fri, 8 May 2020 16:40:04 +0000 (22:10 +0530)]
Fix AM64x build - Revert GCC properly

Signed-off-by: Sivaraj R <sivaraj@ti.com>
19 months agoPRSDK-8426: OSAL: SemaphoreP_postfromISR() API does not work for baremetal
Aravind Batni [Thu, 7 May 2020 15:36:18 +0000 (11:36 -0400)]
PRSDK-8426: OSAL: SemaphoreP_postfromISR() API does not work for baremetal

Signed-off-by: Aravind Batni <aravindbr@ti.com>
19 months agoPRSDK-8481: OSAL: Timer API wrongly uses HWIP clear and disable interrupts, instead...
Aravind Batni [Thu, 7 May 2020 15:43:53 +0000 (11:43 -0400)]
PRSDK-8481: OSAL: Timer API wrongly uses HWIP clear and disable interrupts, instead of OSAL clear and disable APIs

Signed-off-by: Aravind Batni <aravindbr@ti.com>
19 months agoAM64x & TP12 : ARM CGT : Reverting to back to 18.12.5.LTS
sujith [Fri, 8 May 2020 15:52:01 +0000 (21:22 +0530)]
AM64x & TP12 : ARM CGT : Reverting to back to 18.12.5.LTS

Signed-off-by: sujith <sujith.s@ti.com>
19 months agoOSAL: add double-free check
Eric Ruei [Tue, 5 May 2020 22:34:12 +0000 (18:34 -0400)]
OSAL: add double-free check

- Add double-free check for the OSAL module with local control blocks
  - hwi
  - semaphore
  - timer

Signed-off-by: Eric Ruei <e-ruei1@ti.com>
19 months agopdk: fix package build issues
Hao Zhang [Fri, 8 May 2020 14:13:42 +0000 (10:13 -0400)]
pdk: fix package build issues

Signed-off-by: Hao Zhang <hzhang@ti.com>
19 months agoTools Update : Minor correction on the NDK version
sujith [Fri, 8 May 2020 13:45:24 +0000 (19:15 +0530)]
Tools Update : Minor correction on the NDK version

Signed-off-by: sujith <sujith.s@ti.com>
19 months agoPDK-5543 : Addressed review comments.
sujith [Fri, 8 May 2020 09:37:31 +0000 (15:07 +0530)]
PDK-5543 : Addressed review comments.

Signed-off-by: sujith <sujith.s@ti.com>
19 months agoPDK-5543 : Updated NDK & NS versions
sujith [Sun, 3 May 2020 23:19:11 +0000 (04:49 +0530)]
PDK-5543 : Updated NDK & NS versions

Signed-off-by: sujith <sujith.s@ti.com>
19 months agoPDK-5543 : TOOLS : Resolving new gcc/c7x associated issues
sujith [Thu, 16 Apr 2020 15:04:24 +0000 (20:34 +0530)]
PDK-5543 : TOOLS : Resolving new gcc/c7x associated issues

Signed-off-by: sujith <sujith.s@ti.com>
19 months agoPDK-5543 : TOOLS : Updating following tools for Jacinto
sujith [Mon, 13 Apr 2020 09:55:14 +0000 (15:25 +0530)]
PDK-5543 : TOOLS : Updating following tools for Jacinto

BIOS_VERSION=6_82_00_16
XDC_VERSION=3_61_00_16_core
GCC_ARCH64_VERSION=9.2-2019.12
CGT_C7X_VERSION=1.3.0.STS
CGT_ARM_VERSION=20.2.0.LTS

Signed-off-by: sujith <sujith.s@ti.com>
19 months agoPDK-5543 : Addressed review comments.
sujith [Fri, 8 May 2020 09:37:31 +0000 (15:07 +0530)]
PDK-5543 : Addressed review comments.

Signed-off-by: sujith <sujith.s@ti.com>
19 months ago[TOOLS] Fixes to make C7x host-emu work with updated CGT
Kedar Chitnis [Fri, 8 May 2020 06:21:31 +0000 (11:51 +0530)]
[TOOLS] Fixes to make C7x host-emu work with updated CGT

19 months agoPDK-5543 : Updated NDK & NS versions
sujith [Sun, 3 May 2020 23:19:11 +0000 (04:49 +0530)]
PDK-5543 : Updated NDK & NS versions

Signed-off-by: sujith <sujith.s@ti.com>
19 months agoPDK-5543 : TOOLS : Resolving new gcc/c7x associated issues
sujith [Thu, 16 Apr 2020 15:04:24 +0000 (20:34 +0530)]
PDK-5543 : TOOLS : Resolving new gcc/c7x associated issues

Signed-off-by: sujith <sujith.s@ti.com>
19 months agoPDK-5543 : TOOLS : Updating following tools for Jacinto
sujith [Mon, 13 Apr 2020 09:55:14 +0000 (15:25 +0530)]
PDK-5543 : TOOLS : Updating following tools for Jacinto

BIOS_VERSION=6_82_00_16
XDC_VERSION=3_61_00_16_core
GCC_ARCH64_VERSION=9.2-2019.12
CGT_C7X_VERSION=1.3.0.STS
CGT_ARM_VERSION=20.2.0.LTS

Signed-off-by: sujith <sujith.s@ti.com>
19 months agoAM64x binary Update with Proc Control
Piyali Goswami [Thu, 7 May 2020 17:46:10 +0000 (23:16 +0530)]
AM64x binary Update with Proc Control

Binary with Proc Control

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
19 months ago[PDK-5125][UDMA] Ring : Fix Review comments
Don Dominic [Thu, 7 May 2020 10:30:45 +0000 (16:00 +0530)]
[PDK-5125][UDMA] Ring : Fix Review comments

Signed-off-by: Don Dominic <a0486429@ti.com>
19 months ago[PDK-5125][UDMA] Ring : Use function pointers for local ring API's
Don Dominic [Wed, 6 May 2020 17:05:22 +0000 (22:35 +0530)]
[PDK-5125][UDMA] Ring : Use function pointers for local ring API's

- Use function pointers to call Normal/LCDMA ring API's ,
  instead of using if conditions with raType(affects performance due to additional if check)
- Function Pointers intialized in soc source file.

Signed-off-by: Don Dominic <a0486429@ti.com>
19 months agoPDK-4940: SBL: Program SoC thermal limits for J721E
Jonathan Bergsagel [Wed, 8 Apr 2020 16:48:03 +0000 (11:48 -0500)]
PDK-4940: SBL: Program SoC thermal limits for J721E

Enable temp sensors on the SoC and program the thermal
shutdown temp to 125 deg C to put the device into reset
when this high temp is reached.
A safe temp is also programmed, such that the SoC will
be released from reset again when the safe temp is
reached.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
19 months ago[UDMA] makefile updates for build issues fix
Don Dominic [Thu, 7 May 2020 08:28:07 +0000 (13:58 +0530)]
[UDMA] makefile updates for build issues fix

Signed-off-by: Don Dominic <a0486429@ti.com>
19 months ago[UDMA] Build Fix for udma
Don Dominic [Thu, 7 May 2020 07:09:52 +0000 (12:39 +0530)]
[UDMA] Build Fix for udma

- Temporarily disabling build for a53 and m4f in AM64x due to sysbios issue
- RingMode intialized by defining soc specific macro for invalid ring mopde

Signed-off-by: Don Dominic <a0486429@ti.com>
19 months agoFix AM64x Build issues
Sivaraj R [Thu, 7 May 2020 05:25:56 +0000 (10:55 +0530)]
Fix AM64x Build issues

Signed-off-by: Sivaraj R <sivaraj@ti.com>
19 months ago2020.04 migration sysfw.bin fixes for non overlapping HS and GP bins
Piyali Goswami [Thu, 7 May 2020 04:43:14 +0000 (10:13 +0530)]
2020.04 migration sysfw.bin fixes for non overlapping HS and GP bins

Fixed the firmwareHeaderGen script to not overwrite GP binaries with HS binaries

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
19 months ago[UDMA][PDK-3669][PDK-5665][PDK-5663] Ring: Add APIs for using exposed ring mode
Don Dominic [Wed, 6 May 2020 10:42:53 +0000 (16:12 +0530)]
[UDMA][PDK-3669][PDK-5665][PDK-5663] Ring: Add APIs for using exposed ring mode

- Added UDMA ring APIs to read ring in exposed ring mode without setting doorbell.
- Updated SetDoorbell API to also set the doorbell after prime read
- Added APIs to get ring mode, occupancy, element count, read index and write index.
- Unit test updates for New API's

Signed-off-by: Don Dominic <a0486429@ti.com>
19 months agodiag: MAC_ADDR_LEN macro define name change in cpsw lld
Badri S [Thu, 30 Jan 2020 15:20:55 +0000 (20:50 +0530)]
diag: MAC_ADDR_LEN macro define name change in cpsw lld

Changes to cpsw_board_diag app due to change in cpsw lld
macro name change

Signed-off-by: Badri S <badri@ti.com>
19 months agoospi: PDK-5427: fix OSPI clock configuration issue.
Hao Zhang [Tue, 5 May 2020 18:00:49 +0000 (14:00 -0400)]
ospi: PDK-5427: fix OSPI clock configuration issue.

Signed-off-by: Hao Zhang <hzhang@ti.com>
19 months ago[UDMA][AM64x] Fix Package Build Issues
Don Dominic [Tue, 5 May 2020 09:56:30 +0000 (15:26 +0530)]
[UDMA][AM64x] Fix Package Build Issues

- Port udma_examples for AM64x
- csl_dru file include protected with macro
- Alongwith minor bug fix in API Guide
- cppi.h not required

Signed-off-by: Don Dominic <a0486429@ti.com>
19 months agoAdded PMIC build support
Sivaraj R [Thu, 23 Apr 2020 07:04:10 +0000 (12:34 +0530)]
Added PMIC build support

Signed-off-by: Sivaraj R <sivaraj@ti.com>
19 months agoPRSDK-7753: Pick up SYSFW 2020.04 binary for J7HS
Brandon Wetzel [Wed, 6 May 2020 15:21:03 +0000 (11:21 -0400)]
PRSDK-7753: Pick up SYSFW 2020.04 binary for J7HS

J7HS support was originally build upon SYSFW 2020.01, but was merged on top of
2020.04 without sysfw-hs-enc.bin getting updated. This commit fixes that.

19 months agoPRSDK-7753: J7 Boot time Security support on RTOS
Brandon Wetzel [Thu, 19 Mar 2020 15:02:46 +0000 (11:02 -0400)]
PRSDK-7753: J7 Boot time Security support on RTOS

Support J721e-hs boot in RTOS

19 months agoSciclient: Firewall: Example updates to use default linker
Piyali Goswami [Thu, 30 Apr 2020 07:14:20 +0000 (12:44 +0530)]
Sciclient: Firewall: Example updates to use default linker

Updated the example to use the standard linker files and now can be loaded by SBL

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
19 months agoFirewall Example update for J721e
Piyali Goswami [Sun, 26 Apr 2020 17:20:46 +0000 (22:50 +0530)]
Firewall Example update for J721e

J721e support for the Firewall example

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
19 months agoFirewall Example enhance for DDR based firewalls
Piyali Goswami [Sun, 26 Apr 2020 13:21:02 +0000 (18:51 +0530)]
Firewall Example enhance for DDR based firewalls

Enhanced the Example for DDR based firewall.

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
19 months agoExample update for Firewalls for MSMC RAM
Piyali Goswami [Sun, 26 Apr 2020 11:57:31 +0000 (17:27 +0530)]
Example update for Firewalls for MSMC RAM

The example will showcase the ability to set firewalls for MSMC RAM.

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
19 months agoFirewall example
Piyali Goswami [Sat, 25 Apr 2020 08:41:30 +0000 (14:11 +0530)]
Firewall example

Example for Firewall for differen memories from R5F

Fixes: PDK-4928

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
19 months agoBuild fix for Boot Perf Application
Piyali Goswami [Wed, 6 May 2020 04:41:23 +0000 (10:11 +0530)]
Build fix for Boot Perf Application

Build fix for Boot Perf Application

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
19 months agoAm64x: Proc Control Ids
Piyali Goswami [Wed, 6 May 2020 03:52:44 +0000 (09:22 +0530)]
Am64x: Proc Control Ids

Proc control IDs for AM64x

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
19 months agosciclient: Cleanup IRQ trees
Justin Sobota [Tue, 5 May 2020 15:09:49 +0000 (11:09 -0400)]
sciclient: Cleanup IRQ trees

Some cleanups were needed in the IRQ trees for
all SoCs in order to align their structure.  Also,
the AM65x tree was not the latest version and did
not include the main2mcu IR in_bit offset.

Signed-off-by: Justin Sobota <jsobota@ti.com>
19 months agoBuild Fix for applications.
Piyali Goswami [Tue, 5 May 2020 04:20:18 +0000 (09:50 +0530)]
Build Fix for applications.

Build fix for UT

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
19 months agosciclient: makefile Removed packaging build fix
Piyali Goswami [Mon, 4 May 2020 13:23:37 +0000 (18:53 +0530)]
sciclient: makefile Removed packaging build fix

Build Fix to not have to package am65xx_sr2 R5F binaries

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
19 months agosbl: sbl_sci_client.c Avoid reading inner certificate for GP devices
Piyali Goswami [Fri, 1 May 2020 18:12:27 +0000 (23:42 +0530)]
sbl: sbl_sci_client.c Avoid reading inner certificate for GP devices

Inner certificate is not populated for GP devices. This is a work around for PDK-5733.

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
19 months agoAM64x: Firmware Gen Updates for AM64x
Piyali Goswami [Mon, 4 May 2020 04:13:03 +0000 (09:43 +0530)]
AM64x: Firmware Gen Updates for AM64x

Firmware Updates for AM64x VLAB and ZeBu

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
19 months agoAM64x: Friendly drop for AM64x
Piyali Goswami [Sun, 3 May 2020 08:56:18 +0000 (14:26 +0530)]
AM64x: Friendly drop for AM64x

Legacy boot flow images for AM64x VLAB and ZeBu with Proc Control enabled.

ARMv8 and R5F validated on ZeBu and found to pass
ARMv8 passed on VLAB, R5F failed on VLAB

Fixes: PDK-5719, SYSFW-3714

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
19 months agosciclient: Track leftover ROM mapped interrupt resources
Justin Sobota [Mon, 4 May 2020 03:02:59 +0000 (23:02 -0400)]
sciclient: Track leftover ROM mapped interrupt resources

Track the IR and IA resource left as configured by
ROM so that the routing algorithm can know to program
these IA and IR resources when they're detected as in
use.  SYSFW will delete the ROM mapping prior to
configuring the resource as requested by the host.

Signed-off-by: Justin Sobota <jsobota@ti.com>
19 months agoAM64x: Friendly drop for AM64x
Piyali Goswami [Sun, 3 May 2020 08:56:18 +0000 (14:26 +0530)]
AM64x: Friendly drop for AM64x

Fixes: PDK-5719

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
19 months agoRemoving am65x_sr2 R5F binary and duplicate MISRA C
Piyali Goswami [Sat, 2 May 2020 13:05:51 +0000 (18:35 +0530)]
Removing am65x_sr2 R5F binary and duplicate MISRA C

Removing the am65x_sr2 folder and duplicate MISRA C

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
19 months agoMigrating to SYSFW version v2020.04
Piyali Goswami [Sat, 2 May 2020 10:24:37 +0000 (15:54 +0530)]
Migrating to SYSFW version v2020.04

Migrating to 2020.04 system firmware

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
19 months agoSecurity Board config update for 2020.04
Piyali Goswami [Sat, 2 May 2020 10:14:34 +0000 (15:44 +0530)]
Security Board config update for 2020.04

Board config update for 2020.04

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
19 months agosciclient: tools: sysfw_migrate.sh Added support for HS
Piyali Goswami [Sat, 2 May 2020 10:09:41 +0000 (15:39 +0530)]
sciclient: tools: sysfw_migrate.sh Added support for HS

Added support for HS board config and binary generation

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
19 months agoUpdates to migrate to 2020.04 release
Piyali Goswami [Fri, 1 May 2020 04:18:06 +0000 (09:48 +0530)]
Updates to migrate to 2020.04 release

Updates to the sciclient header and sysfw_migrate.sh to migrate to 2020.04

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
19 months agosciclient: Verify intermediate IR outputs are in an assigned range
Justin Sobota [Sat, 2 May 2020 02:08:56 +0000 (22:08 -0400)]
sciclient: Verify intermediate IR outputs are in an assigned range

When performing an interrupt route search make
sure the intermediate IR nodes being validated
are using an output within a valid RM
board configuration assignment range.

Signed-off-by: Justin Sobota <jsobota@ti.com>
19 months agosciclient: J721e: split main nav IR output assignments to C66
Justin Sobota [Sat, 2 May 2020 01:02:35 +0000 (21:02 -0400)]
sciclient: J721e: split main nav IR output assignments to C66

SYSFW uses a set of four main nav IR to C66x
connections in the middle of the block of 32
outputs from the main nav IR.  Update the
J721e RM boardcfg assignments to assign the
two leftover ranges to the c66x hosts.

Signed-off-by: Justin Sobota <jsobota@ti.com>
19 months agosciclient: AM65x RM boardcfg fixes for IPC
Justin Sobota [Fri, 1 May 2020 19:36:24 +0000 (15:36 -0400)]
sciclient: AM65x RM boardcfg fixes for IPC

Split main Nav IR and main2mcu lvl IR to
proper processor hosts.

Signed-off-by: Justin Sobota <jsobota@ti.com>
19 months agosciclient: Fix for IPC on C7x
Justin Sobota [Thu, 30 Apr 2020 18:47:58 +0000 (14:47 -0400)]
sciclient: Fix for IPC on C7x

Added a Main Nav IR output resource range for
the C7x processor to allow IPC to setup interrupts
to the C7x.

19 months agosciclient: Arrange j721e RM boardcfg entries in ascending order
Justin Sobota [Thu, 30 Apr 2020 15:09:09 +0000 (11:09 -0400)]
sciclient: Arrange j721e RM boardcfg entries in ascending order

The j721e boardcfg entries must be in a specific
order according to the SYSFW user guide.

Signed-off-by: Justin Sobota <jsobota@ti.com>
19 months agosciclient: Add am64x interrupt routing support
Justin Sobota [Thu, 30 Apr 2020 01:15:52 +0000 (21:15 -0400)]
sciclient: Add am64x interrupt routing support

Add the am64x interrupt subsystem and tree data
required to perform interrupt routing.

Signed-off-by: Justin Sobota <jsobota@ti.com>
19 months agosciclient: Add j7200 interrupt routing support
Justin Sobota [Wed, 29 Apr 2020 18:27:09 +0000 (14:27 -0400)]
sciclient: Add j7200 interrupt routing support

Add the j7200 interrupt subsystem and tree data
required to perform interrupt routing.

Signed-off-by: Justin Sobota <jsobota@ti.com>
19 months agosciclient: Add interrupt route destination translation
Justin Sobota [Wed, 29 Apr 2020 03:16:17 +0000 (23:16 -0400)]
sciclient: Add interrupt route destination translation

Translate the interrupt route destination to a
destination processor input IRQ if the destination
is an IR output.

Signed-off-by: Justin Sobota <jsobota@ti.com>
19 months agoAM65xx Fixes for MCU1_1
Piyali Goswami [Sat, 25 Apr 2020 16:29:31 +0000 (21:59 +0530)]
AM65xx Fixes for MCU1_1

Fixes to run the UDMA example on R5F 1_1

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
19 months agoBuild Fixes
Piyali Goswami [Sat, 25 Apr 2020 11:36:30 +0000 (17:06 +0530)]
Build Fixes

Build fixes for J7200 and SBL

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
19 months agoIPC Build Failure Fixes
Piyali Goswami [Sat, 25 Apr 2020 13:05:50 +0000 (18:35 +0530)]
IPC Build Failure Fixes

Fixing IPC Build failures

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
19 months agoInterrupt router RAT programming for C66x
Piyali Goswami [Sat, 25 Apr 2020 06:49:39 +0000 (12:19 +0530)]
Interrupt router RAT programming for C66x

Added logic to program the RAT for C66x for IR address space

The Address space is accessed now with 0x2000_0000 + Address of IR

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
19 months agoBoard Config updates for C66x Nav resource types
Piyali Goswami [Thu, 23 Apr 2020 18:41:41 +0000 (00:11 +0530)]
Board Config updates for C66x Nav resource types

Updates to the IR output of the C66x cores

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
19 months agoBoard config changes for IRQ
Piyali Goswami [Thu, 23 Apr 2020 09:45:18 +0000 (15:15 +0530)]
Board config changes for IRQ

Board config changes for IRQ modifications on 2020.02 release

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
19 months agosciclient: Add interrupt routing
Justin Sobota [Wed, 8 Apr 2020 03:18:06 +0000 (23:18 -0400)]
sciclient: Add interrupt routing

The interrupt routing logic is added to
Sciclient for RTOS backwards compatibility
with the SYSFW RM TISCI_RM_IRQ_SET and
TISCI_RM_IRQ_RELEASE message APIs.

Signed-off-by: Justin Sobota <jsobota@ti.com>
19 months agosciclient: Increase scope of Sciclient_getCurrentContext
Justin Sobota [Tue, 14 Apr 2020 17:53:41 +0000 (13:53 -0400)]
sciclient: Increase scope of Sciclient_getCurrentContext

Increase the scope of Sciclient_getCurrentContext so
it's visible privately within all sciclient source
files.  This function is needed by the RM interrupt
logic to determine the proper destination host.

Signed-off-by: Justin Sobota <jsobota@ti.com>
19 months agosciclient: .gitignore: Ignore development artifacts
Justin Sobota [Tue, 14 Apr 2020 17:50:14 +0000 (13:50 -0400)]
sciclient: .gitignore: Ignore development artifacts

Ignore some common artifact files generated
using standard software development tools.

Signed-off-by: Justin Sobota <jsobota@ti.com>
19 months agoUpdates for the AM65x PG2.0 and PG1.0 now having the same resource types
Piyali Goswami [Tue, 21 Apr 2020 14:39:12 +0000 (20:09 +0530)]
Updates for the AM65x PG2.0 and PG1.0 now having the same resource types

Updates for AM65xx PG2.0 and PG1.0 having the same resource types

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
19 months agoMigrating to SYSFW version v2020.02
Piyali Goswami [Tue, 21 Apr 2020 03:10:11 +0000 (08:40 +0530)]
Migrating to SYSFW version v2020.02

19 months agoIPC: Updates to work with new Sciclient Changes for IR
Angela Stegmaier [Tue, 5 May 2020 05:14:38 +0000 (00:14 -0500)]
IPC: Updates to work with new Sciclient Changes for IR

The Scicient is now returning the IR output resource
when getting the resource from the Sciclient_rmGetResourceRange
API. The IPC LLD then needs to translate the selected
IR output to the destination input before calling
Sciclient_rmIrqSet. This can be done using the new
Sciclient_rmIrqTranslateIrOutput API.

This patch adds use of the new Sciclient_rmIrqTranslateIrOutput
API to translate the IR output resource that is returned
from the Sciclent_rmGetResourceRange API.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
19 months agouart: PDK_5423: add DMA support for am64x
Hao Zhang [Thu, 30 Apr 2020 18:32:04 +0000 (14:32 -0400)]
uart: PDK_5423: add DMA support for am64x

Signed-off-by: Hao Zhang <hzhang@ti.com>
19 months agoPDK-5759: Change status for memory attributes in MPU config for j721e and j7200
Karan Saxena [Tue, 5 May 2020 17:30:30 +0000 (23:00 +0530)]
PDK-5759: Change status for memory attributes in MPU config for j721e and j7200

Following changes/additions in the top level table:
- DDR attributes
- Access levels
- Cache policy for MSMC, DDR

Signed-off-by: Karan Saxena <karan@ti.com>
19 months agoPRSDK-7237: added VTM Si Workaround define to build support for j721e
Aravind Batni [Tue, 5 May 2020 16:26:54 +0000 (12:26 -0400)]
PRSDK-7237: added VTM Si Workaround define to build support for j721e

Signed-off-by: Aravind Batni <aravindbr@ti.com>
19 months agoc6x linker: prevent potential linker error
Eric Ruei [Tue, 5 May 2020 14:08:12 +0000 (10:08 -0400)]
c6x linker: prevent potential linker error

We use the default data memory model of far aggregates which means all
non-aggregate data [like single globals] will be near. Sometimes linker
may allocate .neardata too far from .bss and gives errors.

Signed-off-by: Eric Ruei <e-ruei1@ti.com>
19 months ago[AM64x-Zebu][DMSC] Use zebu sysfw bin in DMSC Launch Script for AM64x-Zebu REL.CORESDK.06.02.02.07
Don Dominic [Tue, 5 May 2020 09:18:03 +0000 (14:48 +0530)]
[AM64x-Zebu][DMSC] Use zebu sysfw bin in DMSC Launch Script for AM64x-Zebu

Signed-off-by: Don Dominic <a0486429@ti.com>
19 months ago[PDK-4974] MIBSPI: API guide documentation updates
Badri S [Tue, 5 May 2020 08:39:24 +0000 (14:09 +0530)]
[PDK-4974] MIBSPI: API guide documentation updates

Updates to header file for API guide documentation

Signed-off-by: Badri S <badri@ti.com>
19 months ago[PDK-5748] Bug fix for loopback mode data mismatch REL.CORESDK.06.02.02.05 REL.CORESDK.06.02.02.06
Badri S [Mon, 4 May 2020 19:49:34 +0000 (01:19 +0530)]
[PDK-5748] Bug fix for loopback mode data mismatch

Added support for memory initialization on MIBSPI
init to ensure stale MIBSPI ram state does not
affect next run

Signed-off-by: Badri S <badri@ti.com>
19 months agoPRSDK-8483: osal update to match the csl fix for m4f on am64x
Aravind Batni [Mon, 4 May 2020 23:52:35 +0000 (19:52 -0400)]
PRSDK-8483: osal update to match the csl fix for m4f on am64x

Signed-off-by: Aravind Batni <aravindbr@ti.com>
19 months agoi2c: ADASVISION-2476: add timeout support in polling mode
Hao Zhang [Fri, 1 May 2020 19:05:11 +0000 (15:05 -0400)]
i2c: ADASVISION-2476: add timeout support in polling mode

Signed-off-by: Hao Zhang <hzhang@ti.com>
19 months ago[PDK-4957] UDMA : Enabled support for Unmapped Periph TX and RX Channels of PKTDMA
Don Dominic [Mon, 4 May 2020 14:46:18 +0000 (20:16 +0530)]
[PDK-4957] UDMA : Enabled support for Unmapped Periph TX and RX Channels of PKTDMA

-Default RM Alloc only assigned for mcu1_0

Signed-off-by: Don Dominic <a0486429@ti.com>
19 months agofixed klocwork critical issues
Prasad Konnur [Mon, 4 May 2020 09:07:02 +0000 (14:37 +0530)]
fixed klocwork critical issues

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
19 months ago[PDK-5615] UDMA : Bug Fix for udma_eventConfig issue
Don Dominic [Mon, 4 May 2020 07:26:33 +0000 (12:56 +0530)]
[PDK-5615] UDMA : Bug Fix for udma_eventConfig issue

-src_id passed to Sciclient_rmIrqSet for DMA_COMPLETION_EVENT was wrong,
since the variable drvHandle->srcIdRingIrq was not properly set in soc specific src files of AM65xx/J721e/J7200

* Along with minor update in Teardown Event bypass check condition

Signed-off-by: Don Dominic <a0486429@ti.com>
19 months agoMIBSPI LLD: Bug fixes for c66xdsp and RCSS EDMA inst REL.CORESDK.06.02.02.04
Badri S [Mon, 4 May 2020 04:57:16 +0000 (10:27 +0530)]
MIBSPI LLD: Bug fixes for c66xdsp and RCSS EDMA inst

Bug fixes for c66xdsp core and RCSS EDMA instance usage

Signed-off-by: Badri S <badri@ti.com>
19 months agoemac drv : remove unused section
sujith [Sun, 3 May 2020 17:23:46 +0000 (22:53 +0530)]
emac drv : remove unused section

Signed-off-by: sujith <sujith.s@ti.com>
19 months agoSPI LLD: DMA mode bug fixes REL.CORESDK.06.02.02.03
Badri S [Sat, 2 May 2020 09:18:16 +0000 (14:48 +0530)]
SPI LLD: DMA mode bug fixes

Fixes in EDMA driver and SPI driver
for DMA mode to work in TPR12

Signed-off-by: Badri S <badri@ti.com>
19 months agoRemove SBL and FW binary in allclean
Sivaraj R [Sat, 2 May 2020 05:25:06 +0000 (10:55 +0530)]
Remove SBL and FW binary in allclean

Signed-off-by: Sivaraj R <sivaraj@ti.com>
19 months agoExample info print
Sivaraj R [Tue, 7 Apr 2020 11:14:10 +0000 (16:44 +0530)]
Example info print

Signed-off-by: Sivaraj R <sivaraj@ti.com>
19 months agoospi: am64x: add DMA support
Hao Zhang [Fri, 1 May 2020 17:05:57 +0000 (13:05 -0400)]
ospi: am64x: add DMA support

Signed-off-by: Hao Zhang <a0868496@ti.com>
19 months ago[UDMA] Initalize Board moduleClock in memcpy_baremetal_testapp for profiling support
Don Dominic [Thu, 30 Apr 2020 14:51:51 +0000 (20:21 +0530)]
[UDMA] Initalize Board moduleClock in memcpy_baremetal_testapp for profiling support

Signed-off-by: Don Dominic <a0486429@ti.com>
19 months agoPDK-4946 : emac c++ build issue fixes
sujith [Thu, 30 Apr 2020 14:05:07 +0000 (19:35 +0530)]
PDK-4946 : emac c++ build issue fixes

Signed-off-by: sujith <sujith.s@ti.com>
19 months ago[UDMA][PDK-4954][PDK-4955][PDK-5615][PDK-5363][PDK-5618] AM64x Port - BCDMA Support...
Don Dominic [Thu, 30 Apr 2020 11:13:53 +0000 (16:43 +0530)]
[UDMA][PDK-4954][PDK-4955][PDK-5615][PDK-5363][PDK-5618] AM64x Port - BCDMA Support added

BCDMA verified : udma_memcpy_test on mcu1_0 working fine on VLAB and Zebu

Note: BCDMA is only enabled for mcu1_0 since resource partition in AM64x UDMA is still pending and needs alignment based on usecase.

Major Highlights:
1) Added SOC Specific Files and Top Level Changes
2) Added new macros for:
   a) UDMA & LCDMA presence
   b) UDMAP/LCDMA_BCDMA/LCDMA_PKTDMA instance Types
   c) PROXY presence
   d) CLEC presence
   e) TX_Channels FDEPTH bi-direction
3) Added support for LCDMA Ring Accelerator
4) Added Support for BCDMA/PKTDMA
5) Workaround for channel Offsets, to handle different DMSC & CSL channel index ranges
6) Updates of BCDMA Block Copy
7) Handling Completion Queue and Bypassing TEARDOWN event
9) Handling DMA Completion event
10) Updates for enabling udma_memcpy_test_app for AM64x and Added benchmark profiling support
11) Support Dual Ring Mode in AM64x

Squashed Commits:

Added Blk Copy Channel Offset and max Count
-Added Block Copy Offset of 32 since BlkCpy channel starts from 32
Updated udma_soc.c for AM64x(V3)
-Bcdma/Pktdma instead of Udmap
-lcdma_RA instead of RA
-clecRtMap disabled by default , since no separate MCU domain
-removed proxy related codes, since no proxy related defines found in cslr_dmss_defines.h & cslr_soc_baseaddress.h
Updated udma_rmcfg.c for AM64x(V3)
-UdmaRmDefCfg defined only for BCDMA instance of  Core - MPU1_0
-Removed maxProxy param from Udma_RmInstCheckPrms , since no proxy related defines found in cslr_dmss_defines.h
-Hence also removed the check for proxy
-Also removed the params numCores & startCoreId , which was used in Udma_rmCheckInstOverlap for Events and Vintr
-Since in AM64x the Events and Vintr are common for all cores(bcdma/pktdma instance independent)
Updated udma_soc.h for AM64x(V3)
Top level changes
-Inital commit for adding support for am64x SOC and am64x_evm

Handling CSL_NAVSS_UDMAP_TX_*_CHANS_FDEPTH in udma_ch.c
-Added the CSL macros to soc.h file and defined the macro as UDMA_TX_*_CHANS_FDEPTH
-CHANS_FDEPTH value was found same for BCDMA & PKTDMA; so using the same macro.
-Also updated devIdRing for BCDMA & PKTDMA
Added Ifdef's for Proxy and Clec related codes
Handling CSL_RINGACC_MEM_OPS_TYPE_WR & CSL_RINGACC_MEM_OPS_TYPE_RD in udma_osal.c
Added Instance Type and LCDMA_PRESENT Macro
- Also updated Udma_DrvObj by adding LCDMA DMSS specific instance parameters
-Added new macros for: LCMDA RA / Normal RA presence
-Split ring.c source files into common and lcdma/normal RA specific
-Other related changes
Handling Proxy and ringFlushRaw
Updates in ring src file(s) for Normal & Lcdma RA types
-Modified the src file ring.c to ring_common.c
-Added new src file ring_normal.c for Normal RA specific APIs
-Added new src file ring_lcdma.c for LCDMA RA specific APIs
-Added the function declarations to udam_priv.h
-Updated make file to build ring_normal.c / ring_lcdma.c depending on SOC
Handling LCDMA RingAcc and added ifdef's for Ring Monitor
-Forward and Reverse Doorbell found for LCDMA RA: Reverse Doorbell not used;
-waiting count not found in CSL_LcdmaRingaccRingCfg
-max ring_num assert condition for LCDMA RA updated to 100 (Normal RA count waas 1024)
-new param for LCDMA RA CredChkSecure in CSL_LcdmaRingaccRingCfg initialized to 0U.

(BCDMA Channel Type) (Udma Driver Channel No.) (DMSC-Channel Index Range) (DMSC-Ring Index Range) (CSL-BCDMA Channel Index Range) (CSL-Ring Index Range)
 1.Blk Copy Channels    -txChNum: 0-27             (32+)0-27 <offset 32>    0-27 <no offset>         0-27 <no offset>             0-27 <no offset>
 2.Split TR Tx Channels -txChNum: 0-19                   0-19 <no offset>         28-47 <offset 28>        28-47 <offset 28>            28-47 <offset 28>
 3.Split TR Rx Channels -rxChNum: 0-19          0-19 <no offset>         48-67 <offset 48>        48-67 <offset 48>            48-67 <offset 48>
Channel Offsets:
1. BlkCopyChOffset = 32 <hardcoded>
2. txChOffset    = 28 <numBlkCopyCh>
3. rxChOffset    = 48 <txChOffset + numSplitTrTxCh>
-Added blkCopychOffset
 -0 for all UDMAP instances (SOC's)
 -Added to index (txChNum) param to pass to Sciclient_rmUdmapTxChCfg API, such that it programs the BlkCopy channels in bchan region
-ringNum = chNum (for BlkCpoy)
         = chNum + txChOffset (for SplitTR Tx)
         = chNum + rxChOffset (for SplitTR Rx)
-For CSL_bcdma* API's passed param - channel_num = txChNum (for BlkCopy)
                                                 = txChNum + txChOffset (for SplitTR Tx)
 = rxChNum + rxChOffset (for SplitTR Rx)

Updates of BCDMA Block Copy
-chPair and unPair not needed in case of BCDMA Block Copy
-rxChNum and PeerThreadId assigned to Invalid
-rxCh Pause/Resume not required in case of BCDMA Block Copy
-Splitted/separated the assignment of overlay pointers in AllocResources for BlkCopy Ch and TX Ch , in case of BCDMA.
-BCDMA Block Copy - Bypass RxCh Config
Bypassing TEARDOWN event Register and Unregister
Added following new variables under drvHandle
 1) srcIdRingIrq - Ring completion event IRQ Source ID : devIdIa for AM64x; devIdRing for others
 2) blkCopyRingIrqOffset - Block Copy channel ring completion event IRQ offset
 3) txRingIrqOffset - TX channel ring completion event IRQ offset.
 4) rxRingIrqOffset - RX channel ring completion event IRQ offset.
 For AM64x 2,3 & 4 will be corresponding TISCI Offset minus its ringNum offset ; for other devices this will be same(= TISCI RA IRQ Offset)
Added TISCI IRQ Events Offset macros

udma_memcpy_test_app updates
-using BCDMA Instance ID for memcpy , in case of SOC_AM64x
-disabled UART_printf
- Also Added Open Close Test Loop in udma_memcpy_testapp

Dual Ring mode support for AM64x
-Added check for Ring Mode

Benchmark profiling of udma_memcpy Disabled by default

Signed-off-by: Don Dominic <a0486429@ti.com>
19 months ago[AM64x-Zebu][DMSC] DMSC Launch Script for AM64x-Zebu
Don Dominic [Thu, 30 Apr 2020 12:37:03 +0000 (18:07 +0530)]
[AM64x-Zebu][DMSC] DMSC Launch Script for AM64x-Zebu

This script will load DMSC successfully(but finally will end in timeout error)
Note: Do 'CPU Reset' for MCU1_0 before loading the program

Signed-off-by: Don Dominic <a0486429@ti.com>
19 months agoPDK-4946 : Packageing ICSS firmware
sujith [Thu, 30 Apr 2020 09:08:19 +0000 (14:38 +0530)]
PDK-4946 : Packageing ICSS firmware

Signed-off-by: sujith <sujith.s@ti.com>
19 months agoMIBSPI LLD: Migrate to mibspi lld from spi lld for tpr12 REL.CORESDK.06.02.02.02
Badri S [Wed, 29 Apr 2020 04:23:37 +0000 (09:53 +0530)]
MIBSPI LLD: Migrate to mibspi lld from spi lld for tpr12

Based on review comments create a separate drv/mibspi
instead of implementing as a SPI variant v3 for
mibspi peripheral driver for TPR12
Signed-off-by: Badri S <badri@ti.com>
19 months ago[PDK-4927] SPI LLD for TPR12
Badri S [Tue, 21 Apr 2020 03:57:50 +0000 (09:27 +0530)]
[PDK-4927] SPI LLD for TPR12

SPI LLD for MIBSPI peripheral of TPR12
Following requirements are implemented
PDK-4857,PDK-4884,PDK-4895,PDK-4906,PDK-4909,
PDK-4911,PDK-4919,PDK-4927

Signed-off-by: Badri S <badri@ti.com>
19 months ago[Bugfix] PDK-5681: edma driver instance id are not proper REL.CORESDK.06.02.02.01
Prasad Konnur [Wed, 29 Apr 2020 07:58:08 +0000 (13:28 +0530)]
[Bugfix] PDK-5681: edma driver instance id are not proper

 - removed edma instance ordering from soc defines.
 - added api to get hardware attributes structure for each instance
 - updated driver to use hardware attributes from soc file for each instance

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>