feat: SOC driver implementation and host unit tests #95
Labels
No labels
Category
App
Category
Documentation
Category
Firmware
Category
Hardware
Category
Qms
PR_Size
L
PR_Size
M
PR_Size
S
PR_Size
XL
PR_Size
XS
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Priority
Very Low Priority
Size
Epic
Size
Feature
Size
Task
Status
Blocked
Status
Draft
Status
Needs-review
Team
Board
Team
Dev
Team
Management
Type
Bug
Type
Capa
Type
Improvement
Type
New-feature
Type
Regulatory
Type
Usability
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
opendutchsolutions.public/hal_awr6843#95
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Adds
hal/mss/soc/hal_soc.c/.h— SoC-level clock/reset bring-up (TOPRCM/RCM) and DSS power-domain control:hal_soc_bss_clock_init()(ungates BSS, polls APLL calibration),hal_soc_secure_firewall_open()(conditionally opens JTAG/logger firewalls on secure parts only),hal_soc_init()(convenience wrapper combining both),hal_soc_dss_reset_release(),hal_soc_dss_unhalt()/hal_soc_dss_halt()(the common bootloader-provided-power-on release/re-halt path), andhal_soc_dss_power_off()/hal_soc_dss_power_on()(the full power-domain-off/on protocol, both correctly bounded-timeout rather than hanging forever on a DSS image that doesn't cooperate).Deliberately out of scope (documented in
hal_soc.h's top-of-file comment): CP15 MPU region configuration — that's ARM-core-coprocessor state, not a TOPRCM/RCM/DSS_REG register, and warrants its own driver.Use Case / Rationale
As a firmware developer, I need a
hal_soc_*API for SoC-level clock bring-up and DSS power-domain sequencing, following the same driver pattern established by GPIO, ESM, UART, I2C, SPI, ADCBUF, CBUFF, HWA, DMM, and EPWM.As a QMS reviewer, I need a host-native Catch2 test suite (
testing/mss/unit/hal_functionality/test_soc.c) covering the bounded-timeout poll paths (both success and timeout), the secure-vs-general-purpose-part branching, and the power-off/power-on sequencing, runnable in CI without target hardware.Acceptance Criteria
hal/mss/soc/hal_soc.c/.himplemented against this project's current TOPRCM/DSSREG register headerstesting/mss/unit/hal_functionality/test_soc.cpasses underctestFunctional Impact
None — self-contained addition alongside the already-landed GPIO/ESM/UART/I2C/SPI/ADCBUF/CBUFF/HWA/DMM/EPWM drivers.
Regulatory Impact
None
QMS Impact
None
Risk Impact
No — existing risk coverage sufficient.
Related Issues / PRs
Relates to #4, relates to #75, relates to #77, relates to #79, relates to #81, relates to #83, relates to #85, relates to #87, relates to #89, relates to #91, relates to #93