Commit Graph

45 Commits

Author SHA1 Message Date
Achala Ram
d2aad2c201 am64x/am243x: SDFM: Remove sdfm handle null initialization
- Remove sdfm handle null initialization in driver file

Fixes: PINDSW-6607

Signed-off-by: Achala Ram <a-ram@ti.com>
2023-08-31 16:49:19 +05:30
Dhaval Khandla
8e38d03072 Pull request #14: am243x/am64x: hdsl: Remove separate firmware project for 300 MHz free run
Merge in PINDSW/motor_control_sdk from PINDSW-6579_fix_build to next

* commit '48ba4c94f66f782e3639f7c7f1a77e59eceb4063':
  am243x/am64x: hdsl: Remove separate firmware project for 300 MHz free run
2023-08-29 09:03:02 -05:00
Dhaval Khandla
48ba4c94f6 am243x/am64x: hdsl: Remove separate firmware project for 300 MHz free run
Fixes: PINDSW-6579

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-08-29 19:11:11 +05:30
Dhaval Khandla
69fa42c727 Pull request #11: am64x/am243x: hdsl: Add register list and exceptions list
Merge in PINDSW/motor_control_sdk from PINDSW_6535_add_hdsl_register_documentation to next

* commit '667808d9fb2de06049c28b2e5216add1deb57e43':
  am64x/am243x: hdsl: Add register list and exceptions list
2023-08-29 06:28:39 -05:00
Achala Ram
ed38acdd56 Pull request #13: am64x/am243x: EnDat: remove rx waiting bug
Merge in PINDSW/motor_control_sdk from a0502729_PINDSW-6569_EnDat_release_bug to next

* commit '84de86d58c05d9416377d7cf6c93774b2de0bc44':
  am64x/am243x: EnDat: Resolve rx waiting bug
2023-08-29 06:18:50 -05:00
Rajul Bhambay
3c0923c22c Pull request #6: am64x/am243x: HDSL: Multi-channel Sync Mode
Merge in PINDSW/motor_control_sdk from a0497643_MCUSDK-5489_hdsl_multichannel_sync_mode to next

* commit '7f45f14721d40e7fefc48453b2f41f7db061be4a':
  am64x/am243x: HDSL: Multi-channel Sync Mode
2023-08-29 06:14:43 -05:00
Achala Ram
84de86d58c am64x/am243x: EnDat: Resolve rx waiting bug
-Resolve rx waiting for channel0 and channel2

Fixes: PINDSW-6569

Signed-off-by: Achala Ram <a-ram@ti.com>
2023-08-29 15:37:07 +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
b6c6293522 Pull request #12: HDSL : Remove maximum deviation related processing
Merge in PINDSW/motor_control_sdk from PINDSW-6546_hdsl_remove_maxdev to next

* commit '7bc9f4f7bf2c8ed7852c7e1d057e17b9ff0a72e6':
  am64x/am243x: hdsl: Update VERSION register definition
  am64x/am243x: hdsl: Remove maximum deviation related processing
2023-08-28 05:19:52 -05:00
Dhaval Khandla
667808d9fb am64x/am243x: hdsl: Add register list and exceptions list
Fixes: PINDSW-6535

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-08-27 16:22:41 +05:30
Dhaval Khandla
7bc9f4f7bf am64x/am243x: hdsl: Update VERSION register definition
- Remove coding field
- Higher 4 bits represent major version
- Update version to 0.5

Fixes: PINDSW-6536

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-08-27 15:58:23 +05:30
Dhaval Khandla
c1f342479a am64x/am243x: hdsl: Remove maximum deviation related processing
- Remove MAXDEV_H, MAXDEV_L, MAXDEV_H_THRES, MAXDEV_L_THRES from memory map
  in driver
- Fix the typo in register names for threshold registers

Fixes: PINDSW-6543

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-08-27 15:58:23 +05:30
Achala Ram
044f71b27d Pull request #10: am64x/am243: Enable Multi channel continuous mode
Merge in PINDSW/motor_control_sdk from a0502729_PINDSW-5681_EnDat_enable_multi_channel_continuous_mode to next

* commit '34b62601844e718b3c9484fa6290eac437330e44':
  am64x/am243: EnDat: Enable periodic trigger mode for multi-channel
2023-08-25 22:52:07 -05:00
Achala Ram
be7bb9799f Pull request #7: am64x/am243: SDFM: Add trigger based normal current sampling.
Merge in PINDSW/motor_control_sdk from a0502729_PINDSW-5523_SDFM_trip_generation to next

* commit 'c41804bd2ed5ccd22e68347321fae171798468ba':
  am64x/am243: SDFM: Add trigger based normal current sampling
2023-08-25 22:47:58 -05:00
Achala Ram
34b6260184 am64x/am243: EnDat: Enable periodic trigger mode for multi-channel
- Also fix propagation delay related configuration

Fixes: PINDSW-5681,PINDSW-6533

Signed-off-by: Achala Ram <a-ram@ti.com>
2023-08-25 22:16:39 +05:30
Achala Ram
c41804bd2e am64x/am243: SDFM: Add trigger based normal current sampling
- Add support for trigger based sampling by using IEP compare
  events
- Add support for double update per PWM cycle
- Fixed the IEP compare event hit value calculation
- Tested with SDFM clock input from EPWM

Fixes: PINDSW-5522, PINDSW-6544, PINDSW-6546

Signed-off-by: Achala Ram <a-ram@ti.com>
2023-08-25 22:10:06 +05:30
Naresh A
a2640f8fde Pull request #8: PINDSW-6434 add documentation
Merge in PINDSW/motor_control_sdk from PINDSW-6434_add-documentation to next

* commit '354e9896981ed53b38339f62dee803668f95fac8':
  am64x/am243x/am263x : add documentation
  am64x/am243x/am263x : add documentation
2023-08-25 03:48:18 -05:00
Dhaval Khandla
5a8f9f83ea Pull request #9: Bug-fixes for HDSL
Merge in PINDSW/motor_control_sdk from PINDSW-5486_hdsl_bug_fixes to next

* commit '47b87f5cf7dd98e755c9ae554a89339f6559bac3':
  am64x/am243x: hdsl: Remove SUC instruction usage
  am64x/am243x: hdsl: Fix ONLINE_STATUS_1 register corruption
  am64x/am243x: hdsl: Fix QMLW bits in ONLINE STATUS registers
  am64x/am243x: hdsl: Make FREL/FRES bit set sticky in EVENT/EVENT_S
  am64x/am243x: hdsl: Fix reset behaviour after triggering manual reset
  am64x/am243x: hdsl: Add versioning in firmware
  am64x/am243x: hdsl: Fix the SUM/SSUM/FIX1 bit configuration in ONLINE STATUS registers
  am64x/am243x: hdsl: Fix the fast position and velocity calculation
  am64x/am243x: hdsl: Fix the two most significant bytes of fast position
  am64x/am243x: hdsl: Update the register memory map
  am64x/am243x: hdsl: Remove the scanf waiting for Enter during initialization
2023-08-25 03:23:10 -05:00
Dhaval Khandla
47b87f5cf7 am64x/am243x: hdsl: Remove SUC instruction usage
- SUC instruction does not work as expected

Fixes: PINDSW-6531

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-08-22 17:00:53 +05:30
Dhaval Khandla
0fe32fbc31 am64x/am243x: hdsl: Fix ONLINE_STATUS_1 register corruption
- TEMP_REG1 was being used by QM_ADD and ONLINE STATUS update in
  v-frame processing
- Update version to 0.4

Fixes: PINDSW-6487

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-08-22 14:40:01 +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
dd0d2e356b am64x/am243x: hdsl: Make FREL/FRES bit set sticky in EVENT/EVENT_S
- Firmware should not clear these bits in EVENT/EVENT_S registers
- Update the version to 0.3

Fixes: PINDSW-6526

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
36a591f12b am64x/am243x: hdsl: Add versioning in firmware
- Update the version to 0.2
- Use the VERSION and VERSION2 register
- Remove the hardcoding from driver

Fixes: PINDSW-6518

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-08-22 14:40:01 +05:30
Dhaval Khandla
7605041284 am64x/am243x: hdsl: Fix the SUM/SSUM/FIX1 bit configuration in ONLINE STATUS registers
- MASK_SUM should not be used for masking SUMMARY while updating these
  SUM and SSUM bits in ONLINE STATUS registers
- Fix the mask for SCE and VPOS updates

Fixes: PINDSW-6487, PINDSW-6488

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-08-22 14:40:01 +05:30
Dhaval Khandla
8d4349c792 am64x/am243x: hdsl: Fix the fast position and velocity calculation
- Fix sign extension in estimator for relative position and acceleration
  addition
- Fix sign estimation for relative position calculation
- Remove an unnecessary RET instruction
- Fix register corruption for ALIGN_PH
- Fix register usage for DTE error signaling

Fixes: PINDSW-5689

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
Dhaval Khandla
9ac546cfd9 am64x/am243x: hdsl: Remove the scanf waiting for Enter during initialization
Fixes: PINDSW-6517

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-08-22 14:40:00 +05:30
Dhaval Khandla
745b57dcee Pull request #5: am64x/am243x/am263x: Update the gitignore file
Merge in PINDSW/motor_control_sdk from PINDSW-6511_update_gitignore to next

* commit '900e6266d40f656b7a80a28c94851ca64b3e011a':
  am64x/am243x/am263x: Update the gitignore file
2023-08-21 01:17:36 -05:00
Dhaval Khandla
900e6266d4 am64x/am243x/am263x: Update the gitignore file
- Add .repo and mcupsdk_setup folders in .gitignore

Fixes: PINDSW-6511

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-08-18 15:58:26 +05:30
Naresh A
354e989698 am64x/am243x/am263x : add documentation
add documentation

Fixes: PINDSW-6434

Signed-off-by: Naresh A <nareshk@ti.com>
2023-07-28 12:02:00 +05:30
Naresh A
596d48c7d7 am64x/am243x/am263x : add documentation
add documentation

Fixes: PINDSW-6434

Signed-off-by: Naresh A <nareshk@ti.com>
2023-07-27 16:59:28 +05:30
Naresh A
66708329b5 Pull request #2: am64x/am243x/am263x : update the device name of AM64x as per the new one
Merge in PINDSW/motor_control_sdk from PINDSW-6431_Update-the-device-name-of-AM64x to next

* commit '33e19c02dec9c1a6c6d47e276ff98b2a116a5b21':
  am64x/am243x/am263x : update the device name of AM64x as per the new one
2023-07-27 02:51:22 -05:00
Naresh A
33e19c02de am64x/am243x/am263x : update the device name of AM64x as per the new one
Update the device name of AM64x as per the new one

Fixes: PINDSW-6431

Signed-off-by: Naresh A <nareshk@ti.com>
2023-07-27 13:20:26 +05:30
Naresh A
9934fd84c3 Pull request #1: am64x/am243x/am263x : update tool versions
Merge in PINDSW/motor_control_sdk from PINDSW-5825_update_tool_versions to next

* commit 'a247671e9fe244ba4d43e89b6b4a83a6b37ceab0':
  am64x/am243x/am263x : update tool versions
2023-07-27 01:39:59 -05:00
Naresh A
a247671e9f am64x/am243x/am263x : update tool versions
Update tool versions

Fixes: PINDSW-5825

Signed-off-by: Naresh A <nareshk@ti.com>
2023-07-27 12:06:31 +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
Naresh A
2cefea833a am64x/am243x/am263x : update README with correct details
update README with correct details

Fixes: PINDSW-5635

Signed-off-by: Naresh A <nareshk@ti.com>
2023-07-11 11:38:08 +05:30
Naresh A
5599e4387e am64x/am243x/am263x : remove MCU_PLUS_SDK_PATH variable from repository
remove MCU_PLUS_SDK_PATH variable from repository

Fixes: PINDSW-5635

Signed-off-by: Naresh A <nareshk@ti.com>
2023-07-11 11:23:31 +05:30
Naresh A
56dfa91f1b am64x/am243x/am263x : add manifest file for Motor Control SDK
add manifest file for Motor Control SDK

Fixes: PINDSW-5635

Signed-off-by: Naresh A <nareshk@ti.com>
2023-07-10 12:04:29 +05:30
Naresh A
4b91088387 am64x/am243x/am263x : update MCU + SDK Path
Update MCU + SDK Path

Fixes: PINDSW-5635

Signed-off-by: Naresh A <nareshk@ti.com>
2023-07-07 13:07:31 +05:30
Naresh A
ce5453ab49 am64x/am243x/am263x : move mcu plus sdk inside motor control sdk
Move mcu plus sdk inside motor control sdk

Fixes: PINDSW-5635

Signed-off-by: Naresh A <nareshk@ti.com>
2023-07-06 15:51:25 +05:30
Naresh A
f1a2cd3d5c am64x/am243x/am263x : add missing license_hs.txt file
Add missing license_hs.txt file

Fixes: PINDSW-5635

Signed-off-by: Naresh A <nareshk@ti.com>
2023-07-06 12:53:24 +05:30
Naresh A
5f968b0bf2 am64x/am243x/am263x : initial commit for motor control sdk
Initial commit for motor control sdk

Fixes: PINDSW-5635

Signed-off-by: Naresh A <nareshk@ti.com>
2023-07-04 18:02:46 +05:30