hal: ti: Add AM261x and AM13E HAL support#87
Open
rosterloh wants to merge 12 commits into
Open
Conversation
Add name hal_ti in module.yml. Without this name, the build system was unable to correctly resolve relative paths to the module's source files, resulting in CMake errors during the library target creation process. Signed-off-by: Shreyas Shankar <s-shankar@ti.com>
- Add eDMA driver - Add supporting hardware and soc files - Update CMakeLists.txt Signed-off-by: Shreyas Shankar <s-shankar@ti.com>
This patch removes DPL dependencies from eDMA driver. Primarily, this patch removes interrupt registration and management. HwIP objects have also been removed from eDMA Object structs. Signed-off-by: Shreyas Shankar <s-shankar@ti.com>
The DPL library requirement has been discarded and hence the entry for source files in the CMakelists.txt has been removed. Signed-off-by: Mihira Madhava Bollapragada <madhava@ti.com>
Moving the unused functions and variables to #ifdef DPL Preprocessor flag. Signed-off-by: Mihira Madhava Bollapragada <madhava@ti.com>
Moved zephyr_library() call inside if(CONFIG_SOC_SERIES_AM261X) to prevent warnings when building for non-AM261x devices. Signed-off-by: Sameer Srivastava <s-srivastava4@ti.com>
- added source/device/am13e230x/include/hw - added source/driverlib/am13e230x - taken from SDK tag REL.AM13E2X.01.00.00.03 Signed-off-by: Sameer Srivastava <s-srivastava4@ti.com>
- using SDK_PATH and DEVICE for all inclusions - aliased MemManage_IRQn to MemoryManagement_IRQn - aliased MSP DL types to those of AM13's for compatibility Signed-off-by: Sameer Srivastava <s-srivastava4@ti.com>
Updated `.TI.ramfunc` to match Zephyr's `.ramfunc`. This ensures that SDK driverlib functions marked as RAMFUNC are placed in the `.ramfunc` section of the Zephyr build. Signed-off-by: Sameer Srivastava <s-srivastava4@ti.com>
OpenOCD support for AM13E230X includes a host-side flash driver and device-side flash algorithm that allows quick loading of applications into flash. This patch can be applied on top of https://github.com/openocd-org/openocd Signed-off-by: Sameer Srivastava <s-srivastava4@ti.com>
Author
|
Prerequisite for zephyrproject-rtos/zephyr#107469 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds HAL support for two new TI microcontroller families:
AM261x (Arm Cortex-R5F, dual-core):
edma/v0/) — channel management, PaRAM set configuration,transfer completion and error callbacks
mailbox, eDMA trigger XBAR, FSS/FOTA, and more)
Zephyr's driver model
AM13E (Arm Cortex-R5F, based on AM13x):
dl_sysctl.h,dl_fri.h, common utilitiesmspm0 (pre-existing):
hal: ti: Add name in module.yml(name field was missing)All code is under TI BSD-3-Clause license, consistent with existing hal_ti content.
Context
This HAL PR is a prerequisite for upstream Zephyr board support for the AM261x
LaunchPad (
am261x_lp) submitted in zephyrproject-rtos/zephyr#XXXXX. Thefollowing Zephyr drivers depend on this HAL:
drivers/dma/dma_ti_edma— uses<edma.h>and<hw_include/am261x/>soc/ti/am26x/am261x/— uses CSL clock/XBAR headerssoc/ti/am13/am13e/— uses DriverLib sysctl/FRI headersTest plan
west build -b am261x_lp/am2612/r5f0_0builds with updated hal_titests/dma/chan_blen_transferonam261x_lpwest build -b am13e230x_lpbuilds with updated hal_ticc @madhavalakshmanan @madhava-ti @s-shankar
🤖 Generated with Claude Code