Skip to content

Ast10x0 otp driver - #428

Merged
rusty1968 merged 4 commits into
OpenPRoT:mainfrom
JesseMelon:ast10x0-otp-driver
Aug 28, 2026
Merged

Ast10x0 otp driver#428
rusty1968 merged 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
@rusty1968
rusty1968 requested a review from lxuxx August 24, 2026 21:46

@lxuxx lxuxx left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me.

@rusty1968
rusty1968 merged commit 914f316 into OpenPRoT:main Aug 28, 2026
5 checks passed
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

3 participants