Skip to content

Commit

Permalink
feat: gen sysctl
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Jun 8, 2024
1 parent 017c388 commit d15704e
Show file tree
Hide file tree
Showing 13 changed files with 172 additions and 498 deletions.
19 changes: 0 additions & 19 deletions data/family/COMMON.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
- name: MCHTMR
address: 0xE6000000
registers:
kind: mchtmr
version: common
block: MCHTMR
sysctl:
# GROUPx[0], or GROUPx[1] ...
group: 0
group_bit_offset: 2
# SYSCTL_RESOURCE_CLK_TOP_MCT0
# sysctl_resource_clk_top_mchtmr0
# index, addr offset = 0x104
resource_clock_top: 65
# SYSCTL_RESOURCE_MCT0
resource: 258
# SYSCTL_CLOCK_CLK_TOP_MCT0
clock_node: 0

- name: PLIC
address: 0xE4000000
registers:
Expand Down
39 changes: 26 additions & 13 deletions data/family/HPM5300.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,25 @@
version: v53
block: PCFG

- name: MCHTMR
address: 0xE6000000
registers:
kind: mchtmr
version: common
block: MCHTMR
sysctl:
# GROUPx[0], or GROUPx[1] ...
group_link: 0
group_bit_offset: 2
# SYSCTL_RESOURCE_CLK_TOP_MCT0
# sysctl_resource_clk_top_mchtmr0
# index, addr offset = 0x104
resource_clock_top: 65
# SYSCTL_RESOURCE_MCT0
resource: 258
# SYSCTL_CLOCK_CLK_TOP_MCT0
clock_node: 0

# input output and alternate function

- name: IOC
Expand Down Expand Up @@ -182,19 +201,6 @@
kind: uart
version: v53
block: UART
sysctl:
# GROUPx[0], or GROUPx[1] ...
group: 0
group_bit_offset: 2
# SYSCTL_RESOURCE_CLK_TOP_MCT0
# sysctl_resource_clk_top_mchtmr0
# index, addr offset = 0x104
resource_clock_top: 65
# SYSCTL_RESOURCE_MCT0
resource: 258
# SYSCTL_CLOCK_CLK_TOP_MCT0
clock_node: 0

- name: UART1
address: 0xF0044000
registers:
Expand Down Expand Up @@ -271,6 +277,13 @@
version: v53
block: I2C

- name: PTPC
address: 0xF02FC000
registers:
kind: ptpc
version: common
block: PTPC

# Analog peripherals

- name: ADC0
Expand Down
106 changes: 0 additions & 106 deletions data/resource/HPM5361.c

This file was deleted.

135 changes: 0 additions & 135 deletions data/resource/HPM6280.c

This file was deleted.

Loading

0 comments on commit d15704e

Please sign in to comment.