Skip to content

feat(all): add multiple instances and peripherals#14

Merged
luojia65 merged 1 commit into
rustsbi:mainfrom
NanaHigh:feat/all
Feb 11, 2026
Merged

feat(all): add multiple instances and peripherals#14
luojia65 merged 1 commit into
rustsbi:mainfrom
NanaHigh:feat/all

Conversation

@NanaHigh

Copy link
Copy Markdown
Member
  • Added: AXICFG, CE, CLIC, CLINT, CMU, DMA, QSPI, RTC, SDMC, SID, SPI_ENC, SYSCFG, WRI, XSPI.
  • Fix QSPI enumeration management.

@NanaHigh NanaHigh requested a review from luojia65 February 11, 2026 06:18

@luojia65 luojia65 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM with minor modifications :)

Comment thread artinchip-hal/src/clic/register.rs Outdated
Comment on lines +5 to +8
/// Core Local Interrupt Controller register block.
#[repr(C, align(4))]
pub struct RegisterBlock {
/// CLIC configuration register (`CLICCFG`).

@luojia65 luojia65 Feb 11, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we reuse this project: https://github.com/rustsbi/clic for CLIC module? We can reuse its RegisterBlock (clic::peripheral::Clic) for this purpose. Those peripheral functions can be added to the clic crate.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Edit: use xuantie-riscv if we regard as Xuantie specific, see rustsbi/xuantie#7

@@ -0,0 +1,3 @@
//! CLINT register blocks and registers.

pub use xuantie_riscv::peripheral::clint::THeadClint as RegisterBlock;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice catch.

- Added: `AXICFG`, `CE`, `CLIC`, `CLINT`, `CMU`, `DMA`,
  `QSPI`, `RTC`, `SDMC`, `SID`, `SPI_ENC`, `SYSCFG`,
  `WRI`, `XSPI`.
- Fix QSPI enumeration management.

Signed-off-by: Chongbing Yu <nanahigh@openatom.club>
@NanaHigh

Copy link
Copy Markdown
Member Author

The implementation of CLIC-related PAC has now been moved to the XuanTie crate.

@luojia65 luojia65 merged commit 86b1e66 into rustsbi:main Feb 11, 2026
15 checks passed
@NanaHigh NanaHigh deleted the feat/all branch February 16, 2026 14:31
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.

2 participants