Commit Graph

17 Commits

Author SHA1 Message Date
Dhaval Khandla
086fda69e2 am64x/am243x: hdsl: Add support for third channel
- Add example and firmware projects for third channel
- Update diagnostic application changes to support 3rd channel
- Add overlay based firmware build for third channel
- Update sysconfig module for third channel
- Add driver APIs for configuring copy table and channel mask
- Add IPC among cores when overlay based loading is needed for
  third channel
- Add logic to reset all channels when one channel is reset

Fixes: PINDSW-7051

Signed-off-by: Rajul Bhambay <r-bhambay@ti.com>
Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-12-30 14:32:25 +05:30
Dhaval Khandla
40b71b3474 am64x/am243x: hdsl: Convert macros into functions for size optimisation
- Reduced PRU instructions

Fixes: PINDSW-7051

Signed-off-by: Rajul Bhambay <r-bhambay@ti.com>
2023-12-27 13:19:59 +05:30
Dhaval Khandla
0324024e00 am243x/am64x: hdsl: Fix reset issue with certain encoders
- Revert commit af129481c2 for free run mode
- Add a separate build macro for SYNC mode

Fixes: PINDSW-7126

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-12-18 18:56:31 +05:30
Dhaval Khandla
047c1db56a am243x/am64x: hdsl: Add a section to place main in beginning of IMEM
- Add a new section for main.asm file
- Fix the build for 225 MHz sync mode firmware

Fixes: PINDSW-7127

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-12-18 18:56:31 +05:30
Rajul Bhambay
4aa9cfe08d am64x/am243x: hdsl: Fix for multiple sync frequency
- Add frequency support from 8 to 50 KHz
- Add ES value support from 1 to 10

Fixes: PINDSW-7049

Signed-off-by: Rajul Bhambay <r-bhambay@ti.com>
2023-12-07 14:59:38 +05:30
Dhaval Khandla
9fa938d6ae am64x/am243x: hdsl: Fix the clearing behavior of ONLINE STATUS 1 SCE bit
- Fix register corruption during SUM/SSUM update in ONLINE STATUS

Fixes: PINDSW-7048

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-11-09 10:05:53 +05:30
Dhaval Khandla
35788f6e64 am64x/am243x: hdsl: Fix the reset value of PRST bit in status/event
- Set the bit during initialization for status and event registers
- Unset the bit in status registers after link_check state

Fixes: PINDSW-6628

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-11-09 10:05:52 +05:30
Dhaval Khandla
f03a3f1d23 Pull request #26: Update documentation for 9.0 release
Merge in PINDSW/motor_control_sdk from PINDSW-6907_update_docs to next

* commit '1cf4e56faff74ba2d4f999e8f4eff93e4c5bca4b':
  am64x/am243x/am263x: docs: Update block diagram
  am64x/am243x: examples/source: Fix the license text
2023-09-14 07:28:02 -05:00
Rajul Bhambay
af129481c2 am64x/am243x: HDSL: Multi-channel Free-run Mode bugs
- Multiple setups fix
 - Multiple encoders fix

Fixes: PINDSW-6909

Signed-off-by: Rajul Bhambay <r-bhambay@ti.com>
2023-09-14 10:53:13 +05:30
Dhaval Khandla
2d2c5b1b91 am64x/am243x: examples/source: Fix the license text
Fixes: PINDSW-6908

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-09-13 18:46:41 +05:30
Rajul Bhambay
2247d9b77b am64x/am243x: HDSL: Multi-channel Sync Mode bugs
- Multiple setups fix
 - Multiple encoders fix

Fixes: PINDSW-6893

Signed-off-by: Rajul Bhambay <r-bhambay@ti.com>
2023-09-13 13:49:29 +05:30
Rajul Bhambay
7f45f14721 am64x/am243x: HDSL: Multi-channel Sync Mode
- 2 channels in Sync mode
 - fix for long msg issue

Fixes: PINDSW-5489, PINDSW-5538

Signed-off-by: Rajul Bhambay <r-bhambay@ti.com>
2023-08-29 15:01:42 +05:30
Dhaval Khandla
4f8af91522 am64x/am243x: hdsl: Fix QMLW bits in ONLINE STATUS registers
- Mask was not applied to QM register before checking the low value
- Enable QMLW/POS checks for all H-frames

Fixes: PINDSW-6530

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-08-22 14:40:01 +05:30
Dhaval Khandla
6b8d4c32cc am64x/am243x: hdsl: Fix reset behaviour after triggering manual reset
- Remove HALT instructions
- Clear all registers after reset

Fixes: PINDSW-6492

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-08-22 14:40:01 +05:30
Dhaval Khandla
9ac1395d6e am64x/am243x: hdsl: Fix the two most significant bytes of fast position
- Register corruption was causing loss of multi-turn data in fast position

Fixes: PINDSW-5651

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-08-22 14:40:00 +05:30
Dhaval Khandla
9ce9770c05 am64x/am243x: hdsl: Update the register memory map
- Fix the address of ONLINE STATUS bytes by adding a reserved byte
- Create separate entries for low and high bytes of ONLINE STATUS registers
- Add SAFE_CTRL and POSTX registers
- Use high and low addresses in firmware for ONLINE STATUS registers

Fixes: PINDSW-6489

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-08-22 14:40:00 +05:30
Naresh A
206f344bd1 am64x/am243x/am263x : remove motor_control folder from the repository
remove motor_control folder from the repository

Fixes: PINDSW-5635

Signed-off-by: Naresh A <nareshk@ti.com>
2023-07-13 15:23:20 +05:30