keystone-rtos/emac-lld.git
17 months agoNOTICE OF RELOCATION master
Jacob Stiffler [Thu, 31 Oct 2019 17:54:26 +0000 (13:54 -0400)]
NOTICE OF RELOCATION

Active maintenance and development of the contents of this repository
has been relocated to git.ti.com/processor-sdk/pdk.git under the path
packages/ti/drv/emac.

The use of this repository has been deprecated and will no longer
receive updates.

Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
18 months agoPRSDK-6460: Fixing doxygen issues DEV.EMAC_LLD.01.00.03.18A
Mahesh Radhakrishnan [Thu, 3 Oct 2019 20:50:32 +0000 (16:50 -0400)]
PRSDK-6460: Fixing doxygen issues

18 months agoam65xx/j7: Resolve static analysis warnings
Tinku Mannan [Thu, 3 Oct 2019 17:47:03 +0000 (13:47 -0400)]
am65xx/j7: Resolve static analysis warnings

Signed-off-by: Tinku Mannan <tmannan@ti.com>
18 months agoam57x: Fix in RX packet processing when alloc_pkt callback fails DEV.EMAC_LLD.01.00.03.17B DEV.EMAC_LLD.01.00.03.18 DEV.PROCESSOR-SDK.06.01.00.07
Tinku Mannan [Thu, 26 Sep 2019 17:21:19 +0000 (13:21 -0400)]
am57x: Fix in RX packet processing when alloc_pkt callback fails

Signed-off-by: Tinku Mannan <tmannan@ti.com>
18 months agoam65xx/j7: Resolve Misra-c static analysis issues
Tinku Mannan [Tue, 24 Sep 2019 13:30:42 +0000 (09:30 -0400)]
am65xx/j7: Resolve Misra-c static analysis issues

Signed-off-by: Tinku Mannan <tmannan@ti.com>
18 months agoam65xx/j7: emac driver updates
Tinku Mannan [Mon, 23 Sep 2019 19:09:19 +0000 (15:09 -0400)]
am65xx/j7: emac driver updates

 remove 4 byte CRC length from packet length of incoming packets

 bufferLen field of host packet descriptor should not be modified during
 receive packet processing.

Signed-off-by: Tinku Mannan <tmannan@ti.com>
18 months agoDocs and version update for release 6.1
Tinku Mannan [Mon, 23 Sep 2019 13:53:57 +0000 (09:53 -0400)]
Docs and version update for release 6.1

Signed-off-by: Tinku Mannan <tmannan@ti.com>
18 months agoam65xx: Update switch test application
Tinku Mannan [Fri, 20 Sep 2019 17:28:07 +0000 (13:28 -0400)]
am65xx: Update switch test application

 test emac_send after emac_close followed by emac_open
 cleanup

Signed-off-by: Tinku Mannan <tmannan@ti.com>
18 months agoam65xx: Unit test update to verify delete all ageable IOCTL
Tinku Mannan [Wed, 18 Sep 2019 19:41:50 +0000 (15:41 -0400)]
am65xx: Unit test update to verify delete all ageable IOCTL

Signed-off-by: Tinku Mannan <tmannan@ti.com>
18 months agoam65xx/j7: Adding port state checks for cpsw and icssg stats API
Tinku Mannan [Wed, 18 Sep 2019 19:40:57 +0000 (15:40 -0400)]
am65xx/j7: Adding port state checks for cpsw and icssg stats API

Signed-off-by: Tinku Mannan <tmannan@ti.com>
18 months agoUpdates from industrial development branch
Tinku Mannan [Wed, 18 Sep 2019 15:53:44 +0000 (11:53 -0400)]
Updates from industrial development branch

 syncing driver updates from commit id 09a409927a4bb0368309b5251bd

18 months agodual_mac f/w: check psi ready for the next 16 byte chunk
Vitaly Andrianov [Tue, 10 Sep 2019 13:53:41 +0000 (09:53 -0400)]
dual_mac f/w: check psi ready for the next 16 byte chunk

When we push 32 bytes data to PSI we checked PSI ready for the first 16
bytes only. The next 16 bytes were pushed w/o this check and may be lost

Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
18 months agodual_mac fw: fix possible ingress buffer management issues
Vitaly Andrianov [Mon, 9 Sep 2019 12:12:25 +0000 (08:12 -0400)]
dual_mac fw: fix possible ingress buffer management issues

P_W32 macro didn't c check "buffer full" after wrapping the wr_cur pointer.
That might cause data corruption. This commit fixed this issue.

Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
18 months agoj7: update emac component file to include all R5 cores.
Tinku Mannan [Fri, 13 Sep 2019 19:25:01 +0000 (15:25 -0400)]
j7: update emac component file to include all R5 cores.

Signed-off-by: Tinku Mannan <tmannan@ti.com>
18 months agomdio: API change to match MDIO/V5 CSL API changes
Badri S [Fri, 6 Sep 2019 08:16:57 +0000 (13:46 +0530)]
mdio: API change to match MDIO/V5 CSL API changes

MDIO/V5 CSL updated to make it backward compatible with
MDIO/V4. The emac using the CSL APIs from MDIO are
updated in this patch

Signed-off-by: Badri S <badri@ti.com>
18 months agoam65xx: Update icssg switch firmware
Tinku Mannan [Fri, 13 Sep 2019 17:28:22 +0000 (13:28 -0400)]
am65xx: Update icssg switch firmware

 update firmware headers
 update firmware memory map files
 adding version.txt with version info

Signed-off-by: Tinku Mannan <tmannan@ti.com>
18 months agoam65xx: Test app cleanup
Tinku Mannan [Thu, 12 Sep 2019 18:46:05 +0000 (14:46 -0400)]
am65xx: Test app cleanup

Signed-off-by: Tinku Mannan <tmannan@ti.com>
18 months agoam65xx: Integrate with trace utility
Tinku Mannan [Thu, 12 Sep 2019 18:45:26 +0000 (14:45 -0400)]
am65xx: Integrate with trace utility

Signed-off-by: Tinku Mannan <tmannan@ti.com>
19 months agoam65xx/j7: test app updates to integrate with unity test framework
Tinku Mannan [Tue, 10 Sep 2019 19:16:31 +0000 (15:16 -0400)]
am65xx/j7: test app updates to integrate with unity test framework

Signed-off-by: Tinku Mannan <tmannan@ti.com>
19 months agoj7: makefile updates to integrate with unity test framework
Tinku Mannan [Tue, 10 Sep 2019 19:16:01 +0000 (15:16 -0400)]
j7: makefile updates to integrate with unity test framework

Signed-off-by: Tinku Mannan <tmannan@ti.com>
19 months agoam65xx: makefile updates to integrate with unity test framework
Tinku Mannan [Tue, 10 Sep 2019 19:15:46 +0000 (15:15 -0400)]
am65xx: makefile updates to integrate with unity test framework

Signed-off-by: Tinku Mannan <tmannan@ti.com>
19 months agoj7: test application updates
Tinku Mannan [Tue, 10 Sep 2019 15:04:32 +0000 (11:04 -0400)]
j7: test application updates

  makefile updates to use common build infrastructure cfg files
  update mpu config to include sciclient section

Signed-off-by: Tinku Mannan <tmannan@ti.com>
19 months agoam65xx: driver updates
Tinku Mannan [Tue, 10 Sep 2019 14:37:48 +0000 (10:37 -0400)]
am65xx: driver updates

 API updates to check for invalid port numbers
 init trace cb function to null at time of init

Signed-off-by: Tinku Mannan <tmannan@ti.com>
19 months agoam65xx: makefile update to include asm file
Tinku Mannan [Fri, 6 Sep 2019 20:22:57 +0000 (16:22 -0400)]
am65xx: makefile update to include asm file

Signed-off-by: Tinku Mannan <tmannan@ti.com>
19 months agoam65xx: EMAC unit test update
Tinku Mannan [Fri, 6 Sep 2019 20:22:15 +0000 (16:22 -0400)]
am65xx: EMAC unit test update

 Adding asm file with dlfo workaround
 packaging updates

Signed-off-by: Tinku Mannan <tmannan@ti.com>
19 months agodual_mac f/w: remove mkdir bin command for windows build
Vitaly Andrianov [Tue, 27 Aug 2019 13:14:00 +0000 (09:14 -0400)]
dual_mac f/w: remove mkdir bin command for windows build

looks like we don't need to create ../bin directory. It will be created
as a parent directory for each next level directory.

Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
19 months agoam65xx: Unit test update to verify icssg stats api with switch port numbers
Tinku Mannan [Wed, 4 Sep 2019 21:31:53 +0000 (17:31 -0400)]
am65xx: Unit test update to verify icssg stats api with switch port numbers

Signed-off-by: Tinku Mannan <tmannan@ti.com>
19 months agoam65xx: Update EMAC_get_stats_icssg_v5 API
Tinku Mannan [Wed, 4 Sep 2019 21:05:11 +0000 (17:05 -0400)]
am65xx: Update EMAC_get_stats_icssg_v5 API

 to support switch port and interposer port numbers

Signed-off-by: Tinku Mannan <tmannan@ti.com>
19 months agoam65xx: Fix programming of classifiers
Tinku Mannan [Wed, 4 Sep 2019 18:57:15 +0000 (14:57 -0400)]
am65xx: Fix programming of classifiers

 To support many to 1 TCI to flow/queue mapping.

Signed-off-by: Tinku Mannan <tmannan@ti.com>
19 months agoam65xx: Fix in ICSSG RMGII configuration
Tinku Mannan [Tue, 20 Aug 2019 20:54:49 +0000 (16:54 -0400)]
am65xx: Fix in ICSSG RMGII configuration

 for case where both switch ports negotiate different link speeds.

Signed-off-by: Tinku Mannan <tmannan@ti.com>
19 months agoPRSDK-5673: Updated EMAC_Loopback_testProject to print generic pass/fail criteria
Dasnavis Sabiya [Mon, 19 Aug 2019 05:26:51 +0000 (10:56 +0530)]
PRSDK-5673: Updated EMAC_Loopback_testProject to print generic pass/fail criteria

19 months agoj721e: icssg use case updates
Tinku Mannan [Tue, 20 Aug 2019 18:23:59 +0000 (14:23 -0400)]
j721e: icssg use case updates

 Build existing icssg dual mac firmware for j721e to resolve
 build failure for test application.
 driver and unit test updates.
 makefile udpates to include i2c library

Signed-off-by: Tinku Mannan <tmannan@ti.com>
19 months agoam65xx: Adding new ICSSG switch test application
Tinku Mannan [Wed, 14 Aug 2019 21:38:30 +0000 (17:38 -0400)]
am65xx: Adding new ICSSG switch test application

 for verification of link status for 1G and 100 MBPS links
 for verification of emac poll API duration

Signed-off-by: Tinku Mannan <tmannan@ti.com>
19 months agoam65xx: remove un-used test application files
Tinku Mannan [Tue, 13 Aug 2019 19:34:13 +0000 (15:34 -0400)]
am65xx: remove un-used test application files

Signed-off-by: Tinku Mannan <tmannan@ti.com>
19 months agoam65xx: Test application updates
Tinku Mannan [Tue, 13 Aug 2019 19:33:46 +0000 (15:33 -0400)]
am65xx: Test application updates

 Adding icssg switch benchmarking application
 Updates for IOCTL verification at the driver level

Signed-off-by: Tinku Mannan <tmannan@ti.com>
19 months agoam65xx: extensive cleanup to poll link state machine
Tinku Mannan [Fri, 9 Aug 2019 20:06:47 +0000 (16:06 -0400)]
am65xx: extensive cleanup to poll link state machine

 using MDIO ALIVE and LINK status registers to determine link state
 only polling PHY register to determine link speed and duplexity to
 shorten emac poll loop duration during link status change events

Signed-off-by: Tinku Mannan <tmannan@ti.com>
20 months agoSync up j721e soc file with latest emac lld
Tinku Mannan [Mon, 12 Aug 2019 12:33:13 +0000 (08:33 -0400)]
Sync up j721e soc file with latest emac lld

20 months agoam65xx: Adding support for 100 mbps for icssg
Tinku Mannan [Mon, 5 Aug 2019 19:05:05 +0000 (15:05 -0400)]
am65xx: Adding support for 100 mbps for icssg

 update to emac_poll_v5 API to support 100 mbps link detection and config

Signed-off-by: Tinku Mannan <tmannan@ti.com>
20 months agodual_mac fw: remove prebuilt fw headers DEV.EMAC_LLD.01.00.03.17A
Vitaly Andrianov [Wed, 7 Aug 2019 17:25:51 +0000 (13:25 -0400)]
dual_mac fw: remove prebuilt fw headers

We keep f/w sources on the same repo. So it doesn't make any sense to keep
prebuilt version.

Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
20 months agoInitial version update for 6.1 DEV.EMAC_LLD.01.00.03.17
Tinku Mannan [Tue, 6 Aug 2019 13:19:22 +0000 (09:19 -0400)]
Initial version update for 6.1

Signed-off-by: Tinku Mannan <tmannan@ti.com>
20 months agoimplementing RMIISpeedSelect function
Sahin Okur [Tue, 2 Jul 2019 15:33:04 +0000 (10:33 -0500)]
implementing RMIISpeedSelect function

20 months agoMSMC attributes updates
Tinku Mannan [Fri, 3 May 2019 17:42:48 +0000 (13:42 -0400)]
MSMC attributes updates

 adding attributes for DDR
 making MSMC section outer and inner write-through, no write-allocate

Signed-off-by: Tinku Mannan <tmannan@ti.com>
20 months agoAdding ICSSG dual mac firmware binary headers
Tinku Mannan [Tue, 30 Apr 2019 18:04:14 +0000 (14:04 -0400)]
Adding ICSSG dual mac firmware binary headers

20 months agoj721e: config file and linker command file updates
Tinku Mannan [Tue, 30 Apr 2019 18:03:16 +0000 (14:03 -0400)]
j721e: config file and linker command file updates

 Added new memory section required for allocation of ICSSG
 port queue

Signed-off-by: Tinku Mannan <tmannan@ti.com>
update

20 months agoj721e: Update to build icssg test app for j7
Tinku Mannan [Fri, 26 Apr 2019 18:13:26 +0000 (14:13 -0400)]
j721e: Update to build icssg test app for j7

update

20 months agoPDK-4085: Add j721e_evm build support
Sivaraj R [Tue, 16 Apr 2019 12:48:25 +0000 (18:18 +0530)]
PDK-4085: Add j721e_evm build support

Signed-off-by: Sivaraj R <sivaraj@ti.com>
20 months agoDisable APP image generation for J7
Sivaraj R [Tue, 26 Mar 2019 15:35:06 +0000 (21:05 +0530)]
Disable APP image generation for J7

- Getting "File does not contain a valid CIL image"
error

Signed-off-by: Sivaraj R <sivaraj@ti.com>
20 months agoFixed package build
Sivaraj R [Tue, 26 Mar 2019 15:12:43 +0000 (20:42 +0530)]
Fixed package build

Signed-off-by: Sivaraj R <sivaraj@ti.com>
20 months agoFixed MPU build
Sivaraj R [Tue, 26 Mar 2019 12:43:44 +0000 (18:13 +0530)]
Fixed MPU build

Signed-off-by: Sivaraj R <sivaraj@ti.com>
20 months agoFixed J7 linker issue
Sivaraj R [Tue, 26 Mar 2019 12:37:41 +0000 (18:07 +0530)]
Fixed J7 linker issue

Signed-off-by: Sivaraj R <sivaraj@ti.com>
20 months agoJ7 unified CSL migration
Badri S [Tue, 19 Mar 2019 16:58:58 +0000 (22:28 +0530)]
J7 unified CSL migration

Signed-off-by: Badri S <badri@ti.com>
20 months agoam65xx: Use SOC configuration base addresses instead of local copy in drv
Tinku Mannan [Fri, 2 Aug 2019 13:06:36 +0000 (09:06 -0400)]
am65xx: Use SOC configuration base addresses instead of local copy in drv

Signed-off-by: Tinku Mannan <tmannan@ti.com>
20 months agoam65xx: unit test updates for icss_switch
Tinku Mannan [Wed, 31 Jul 2019 19:18:52 +0000 (15:18 -0400)]
am65xx: unit test updates for icss_switch

 updates to verify local injection using vlan packets
 updates to verify port priority functionality in icss_switch fw
 updates to verify flood control IOCTL
 cleanup

Signed-off-by: Tinku Mannan <tmannan@ti.com>
20 months agoam65xx: Driver update to sync with latest icss_switch fw
Tinku Mannan [Wed, 31 Jul 2019 19:15:41 +0000 (15:15 -0400)]
am65xx: Driver update to sync with latest icss_switch fw

 only enable TS 1 task due to HW errata
 zero fill of packets less than min packet size done by fw
 return ring number in PktChannel field of rx desc when calling
 rx packet callback

Signed-off-by: Tinku Mannan <tmannan@ti.com>
20 months agoam65xx: Update icss_switch firmware headers and memory map files
Tinku Mannan [Wed, 31 Jul 2019 19:02:03 +0000 (15:02 -0400)]
am65xx: Update icss_switch firmware headers and memory map files

Signed-off-by: Tinku Mannan <tmannan@ti.com>
20 months agoPRSDK-3669: Fix for C++ compilation issue
Dasnavis Sabiya [Mon, 27 May 2019 10:34:07 +0000 (16:04 +0530)]
PRSDK-3669: Fix for C++ compilation issue

20 months agoam65xx: Test application updates to for switch use case
Tinku Mannan [Tue, 23 Jul 2019 15:11:47 +0000 (11:11 -0400)]
am65xx: Test application updates to for switch use case

 Introduced new EMAC MCB for switch use case which for sharing of
 pkt descriptor resources across both switch ports

 Updates to test packet clone use case

Signed-off-by: Tinku Mannan <tmannan@ti.com>
20 months agodual_mac F/W: fix shutdown command
Vitaly Andrianov [Mon, 15 Jul 2019 17:02:07 +0000 (13:02 -0400)]
dual_mac F/W: fix shutdown command

The PSI_ABORT macro by mistake used psi gasket IDs. But the gasket
actually doesn't work. This commit replaced the gasket IDs with the core
own PSI-L IDs. That should work, because PSI_ABORT issued from PRU should
about any possible ongoing ingress data DMAs.

Because at the time of processing the shutdown command there is no ongoing
DMA on RTU tx_psi-l interface we don't need to issue PSI_ABORT from RTU.

Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
20 months agoam65xx: Unit test update for trace utility integration
Tinku Mannan [Fri, 12 Jul 2019 19:50:48 +0000 (15:50 -0400)]
am65xx: Unit test update for trace utility integration

 register trace callback with emac driver
 update configuration files re-direct system output to UART
 unit test fixes.

Signed-off-by: Tinku Mannan <tmannan@ti.com>
20 months agoam65xx: Adding debug trace support in emac driver
Tinku Mannan [Wed, 10 Jul 2019 20:29:17 +0000 (16:29 -0400)]
am65xx: Adding debug trace support in emac driver

Signed-off-by: Tinku Mannan <tmannan@ti.com>
21 months agoam65xx: Unit test update to verify packet less than 60 bytes is zero padded
Tinku Mannan [Wed, 3 Jul 2019 13:08:23 +0000 (09:08 -0400)]
am65xx: Unit test update to verify packet less than 60 bytes is zero padded

 packet send via emac_send which is less than 60 bytes will be zero padded
 upto 60 bytes and packet length will be set to 60 bytes by the driver at
 time of emac_send.

Signed-off-by: Tinku Mannan <tmannan@ti.com>
21 months agoicss_dualmac: makeversions: limit version string to 32 bytes DEV.EMAC_LLD.01.00.03.16C
Jacob Stiffler [Tue, 2 Jul 2019 19:45:53 +0000 (15:45 -0400)]
icss_dualmac: makeversions: limit version string to 32 bytes

* It has been observed that 33 bytes breaks functionality.

Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
21 months agoNeed to memory map NBO CFG registers for A53 DEV.EMAC_LLD.01.00.03.16B
Tinku Mannan [Fri, 28 Jun 2019 19:16:16 +0000 (15:16 -0400)]
Need to memory map NBO CFG registers for A53

21 months agoam65xx: Update to sync with pruss driver DEV.EMAC_LLD.01.00.03.16A
Tinku Mannan [Thu, 27 Jun 2019 18:57:55 +0000 (14:57 -0400)]
am65xx: Update to sync with pruss driver

 PRUICSS_create needs to be called with PRUICCSS_INSTANCE_THREE
 for 3rd instance.

Signed-off-by: Tinku Mannan <tmannan@ti.com>
21 months agoAdditional Design doc update DEV.EMAC_LLD.01.00.03.16 DEV.PROCESSOR-SDK.06.00.00.05
Tinku Mannan [Wed, 26 Jun 2019 14:24:31 +0000 (10:24 -0400)]
Additional Design doc update

21 months agoDesign doc update
Tinku Mannan [Wed, 26 Jun 2019 13:46:26 +0000 (09:46 -0400)]
Design doc update

21 months agoRelease notes and version update for 6.0
Tinku Mannan [Mon, 24 Jun 2019 13:19:54 +0000 (09:19 -0400)]
Release notes and version update for 6.0

21 months agoam57xx: Fix in tx enqueue logic
Tinku Mannan [Fri, 21 Jun 2019 20:43:19 +0000 (16:43 -0400)]
am57xx: Fix in tx enqueue logic

 to allow enqueing of  multiple descriptors to DMA for transmission in
 1 shot
 minor cleanup

Signed-off-by: Tinku Mannan <tmannan@ti.com>
21 months agoam65xx: Zero pad transmit packet that is less than 60 bytes
Tinku Mannan [Fri, 21 Jun 2019 15:13:29 +0000 (11:13 -0400)]
am65xx: Zero pad transmit packet that is less than 60 bytes

Signed-off-by: Tinku Mannan <tmannan@ti.com>
21 months agodual mac F/W: fix out of order SCHED_CHECK_DMA bug
Vitaly Andrianov [Thu, 20 Jun 2019 13:56:17 +0000 (09:56 -0400)]
dual mac F/W: fix out of order SCHED_CHECK_DMA bug

Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
21 months agodual_mac F/W: remove unused code for buffers used by switch
Vitaly Andrianov [Thu, 20 Jun 2019 12:26:06 +0000 (08:26 -0400)]
dual_mac F/W: remove unused code for buffers used by switch

Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
21 months agodual_mac F/W: update buffer pool tail with disabled TM
Vitaly Andrianov [Thu, 20 Jun 2019 12:23:22 +0000 (08:23 -0400)]
dual_mac F/W: update buffer pool tail with disabled TM

Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
21 months agoAM57xx: emac: Fix for sending packet out of directed port
Tinku Mannan [Thu, 20 Jun 2019 18:51:54 +0000 (14:51 -0400)]
AM57xx: emac: Fix for sending packet out of directed port

 Need to update the TO_PORT_EN and TO_PORT fields of TX buffer descriptor
 when directing packet of of specified port.

Signed-off-by: Tinku Mannan <tmannan@ti.com>
21 months agoK2G: Fix cache primitive call for packet RX for DSP use case
Tinku Mannan [Wed, 19 Jun 2019 15:03:02 +0000 (11:03 -0400)]
K2G: Fix cache primitive call for packet RX for DSP use case

 Need to invalidate the descriptor prior to invalidating the buffer
 Need to perform cache primitives on descriptor and buffer
 when replenishing RX free queue

Signed-off-by: Tinku Mannan <tmannan@ti.com>
21 months agoPRSDK-5812 Addressing Review comments
Sinthu Raja M [Mon, 17 Jun 2019 14:14:15 +0000 (19:44 +0530)]
PRSDK-5812 Addressing Review comments

 Move local to global conversion func to SOC specific file from driver.
 Add a function pointer for local to global cache function to the
 hwAttrs sturcture.
 Update driver functions to use the hwAttrs function pointer for
 converting any local to global cache address.

21 months agoFix local to global address conversion
Ding [Fri, 10 May 2019 17:20:15 +0000 (13:20 -0400)]
Fix local to global address conversion

21 months agoFixing a compilation issue identified DEV.PRU-ICSS-PROFINET-SWITCH_02.01.00.08.RC2
Pratheesh Gangadhar TK [Mon, 17 Jun 2019 11:36:20 +0000 (06:36 -0500)]
Fixing a compilation issue identified

21 months agoAccounting for non-zero MSMC_START_OFFSET
Pratheesh Gangadhar TK [Mon, 17 Jun 2019 03:38:49 +0000 (22:38 -0500)]
Accounting for non-zero MSMC_START_OFFSET

21 months agoEMAC was using incorrect port q size macro.
Vineet Roy [Fri, 14 Jun 2019 15:05:26 +0000 (17:05 +0200)]
EMAC was using incorrect port q size macro.

MSMC_END_OFFSET includes all MSMC memory and not just Tx Q usage

21 months agoam65xx: Fix link status being returned for 2nd port of ICSSG instance
Tinku Mannan [Fri, 14 Jun 2019 14:13:31 +0000 (10:13 -0400)]
am65xx: Fix link status being returned for 2nd port of ICSSG instance

 When polling for link status of 2nd port of ICSSG instance, phy address
 of 1st port was being used.
 cleanup of mdio implementation in driver

Signed-off-by: Tinku Mannan <tmannan@ti.com>
21 months agoremove unused code from TX_ERR handler
Vitaly Andrianov [Thu, 13 Jun 2019 13:13:05 +0000 (09:13 -0400)]
remove unused code from TX_ERR handler

Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
22 months agoam65xx: Unit test update for testing directed packet on specific port
Tinku Mannan [Wed, 12 Jun 2019 20:27:54 +0000 (16:27 -0400)]
am65xx: Unit test update for testing directed packet on specific port

Signed-off-by: Tinku Mannan <tmannan@ti.com>
22 months agoam65xx; IOCTL command buffers need to cache size aligned for R5 use case
Tinku Mannan [Wed, 12 Jun 2019 18:12:04 +0000 (14:12 -0400)]
am65xx; IOCTL command buffers need to cache size aligned for R5 use case

Signed-off-by: Tinku Mannan <tmannan@ti.com>
22 months agoam65xx: Unit test updates to for TX port queue check verification
Tinku Mannan [Tue, 11 Jun 2019 21:33:07 +0000 (17:33 -0400)]
am65xx: Unit test updates to for TX port queue check verification

 increased size of port queue array allocated from MSMC per latest
 ICSSG switch FW requirements.
 Moved port queue allocation to MSMC_SRAM from MSMC_SRAM_H

Signed-off-by: Tinku Mannan <tmannan@ti.com>
22 months agoam65xx: Adding TX port queue size field to EMAC_FW_APP_CONFIG
Tinku Mannan [Tue, 11 Jun 2019 21:31:07 +0000 (17:31 -0400)]
am65xx: Adding TX port queue size field to EMAC_FW_APP_CONFIG

 passed in at time of emac_open to perform TX port queue size check to
 ensure there is enough memory provided by the app to configure ICSSG
 SWITCH host/port and host egress queues.

 Adding macro to define port queue size per instance

22 months agoPRSDk-4453 Update config file to be generic for SMP and non SMP mode
Sinthu Raja M [Mon, 27 May 2019 06:11:54 +0000 (11:41 +0530)]
PRSDk-4453 Update config file to be generic for SMP and non SMP mode

 Update makefile to invoke top level SMp config for SMP test cases.
 Update AM572x EVM cfg file to be generic for both SMp and non SMP test
 case

22 months agoPRSDK-4453 Addressing review comments
Sinthu Raja M [Tue, 21 May 2019 09:29:36 +0000 (14:59 +0530)]
PRSDK-4453 Addressing review comments

 Removed redundant config file for Audio loopback SMP example.
 Update existing config file to enable support for SMP and non SMP
 mode.

22 months agoPRSDK-4453 Update libProfile inline with makefile BUILD_PROFILE macro
Sinthu Raja M [Mon, 20 May 2019 05:15:48 +0000 (10:45 +0530)]
PRSDK-4453 Update libProfile inline with makefile BUILD_PROFILE macro

 Remove hardcoded library profile for the driver components
 Update config file to get library profile from the makefile macros

22 months agoPRSDK-4453 Add SMP enabled support for A53 core
Sinthu Raja M [Fri, 17 May 2019 08:59:53 +0000 (14:29 +0530)]
PRSDK-4453 Add SMP enabled support for A53 core

 Update makefile and component makefile to add entry for SMP enabled
 examples

22 months agoPRSDK-4453 Add SMP enabled BIOS project for AM572x EVM
Sinthu Raja M [Thu, 16 May 2019 06:13:03 +0000 (11:43 +0530)]
PRSDK-4453 Add SMP enabled BIOS project for AM572x EVM

 Add project text file and RTSC config file for SMP enabled Test project

22 months agoPRSDK-4453 Update config file to remove board dependancy
Sinthu Raja M [Tue, 14 May 2019 10:13:09 +0000 (15:43 +0530)]
PRSDK-4453 Update config file to remove board dependancy

 Update config file to remove board and SCI components to remove board
 name dependency.

22 months agoPRSDK-4453 Update RTSC config file to load PDK components
Sinthu Raja M [Mon, 13 May 2019 06:27:44 +0000 (11:57 +0530)]
PRSDK-4453 Update RTSC config file to load PDK components

 Update UART example/test RTSC config file ti load PDK driver components
 and OSAL package during compilation.

22 months agoam65xx: firmware: makefile: fix clean command for windows build
Vitaly Andrianov [Tue, 11 Jun 2019 12:11:20 +0000 (08:11 -0400)]
am65xx: firmware: makefile: fix clean command for windows build

Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
22 months agoam65xx: Need to free back descriptors from MGMT2 free channel.
Tinku Mannan [Wed, 5 Jun 2019 14:48:01 +0000 (10:48 -0400)]
am65xx: Need to free back descriptors from MGMT2 free channel.

 Update includes to not free packet descriptor back to application for
 tx completion processing when TX completion is a result of sending MGMT
 request to firmware.

Signed-off-by: Tinku Mannan <tmannan@ti.com>
22 months agoam65xx: Enabling testing of TX TS for ICSSG SWITCH use case
Tinku Mannan [Thu, 6 Jun 2019 14:46:37 +0000 (10:46 -0400)]
am65xx: Enabling testing of TX TS for ICSSG SWITCH use case

Signed-off-by: Tinku Mannan <tmannan@ti.com>
22 months agoam65xx: Updating to use latest ICSSG SWITCH firmware headers
Tinku Mannan [Thu, 6 Jun 2019 14:44:38 +0000 (10:44 -0400)]
am65xx: Updating to use latest ICSSG SWITCH firmware headers

Signed-off-by: Tinku Mannan <tmannan@ti.com>
22 months agoam65xx: test app updates to verify IOCTL commands.
Tinku Mannan [Wed, 5 Jun 2019 21:12:52 +0000 (17:12 -0400)]
am65xx: test app updates to verify IOCTL commands.

 added test to add upto max vlan entries to vlan table.
 added counters to sync alloc and free pkt callbacks.
 minor cleanup.

Signed-off-by: Tinku Mannan <tmannan@ti.com>
22 months agoam65xx: Fix return value of IOCTL command reqeust when IOCTL command fails.
Tinku Mannan [Wed, 5 Jun 2019 21:11:17 +0000 (17:11 -0400)]
am65xx: Fix return value of IOCTL command reqeust when IOCTL command fails.

Signed-off-by: Tinku Mannan <tmannan@ti.com>
22 months agodm firmware: set TX timestamp valid bit
Vitaly Andrianov [Wed, 5 Jun 2019 14:35:25 +0000 (10:35 -0400)]
dm firmware:  set TX timestamp valid bit

Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
22 months agoimplement TX_ERR handler
Vitaly Andrianov [Wed, 5 Jun 2019 14:01:22 +0000 (10:01 -0400)]
implement TX_ERR handler

Signed-off-by: Vitaly Andrianov <vitalya@ti.com>