Skip to content

Ast10x0 otp driver - #428

Open
JesseMelon wants to merge 4 commits into
OpenPRoT:mainfrom
JesseMelon:ast10x0-otp-driver
Open

Ast10x0 otp driver#428
JesseMelon wants to merge 4 commits into
OpenPRoT:mainfrom
JesseMelon:ast10x0-otp-driver

Conversation

@JesseMelon

@JesseMelon JesseMelon commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Tests

Host test

bazelisk test //target/ast10x0/peripherals:otp_test

34 host tests on a fake buffer for logical correctness succeed.

Hardware in the Loop test

AST1060_EVB_PI_HOST=<your_pi_host> bazelisk test --config=k_ast1060_evb //target/ast10x0/tests/peripherals/otp/otp_read:otp_read_test

succeeds on ast1060 to test readonly API (no blowing fuses).

Port the OtpController inherent hardware logic from aspeed-rust into the
ast10x0_peripherals crate as the otp module. Uses a local Logger trait and
DummyDelay; external trait impls are dropped. Data-region scratch is a local
buffer (no static mut) and otp_lock_mem verifies the lock latched, returning
LockFailed otherwise.
@JesseMelon
JesseMelon marked this pull request as ready for review August 19, 2026 15:07
@leongross leongross linked an issue Aug 19, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dep: OTP Service

2 participants