Skip to content

Commit

Permalink
enhance: gpiom enum
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Jun 27, 2024
1 parent 1900367 commit 7b80c1b
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
11 changes: 11 additions & 0 deletions data/registers/gpiom_v63.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ fieldset/PIN:
description: "select which gpio controls chip pin, 0: soc gpio0; 1: cpu0 fastgpio."
bit_offset: 0
bit_size: 1
enum: PIN_SELECT
- name: HIDE
description: "pin value visibility to gpios, bit0: 1, invisible to soc gpio0; 0: visible to soc gpio0 bit1: 1, invisible to cpu0 fast gpio; 0: visible to cpu0 fast gpio."
bit_offset: 8
Expand All @@ -33,3 +34,13 @@ fieldset/PIN:
description: "lock fields in this register, lock can only be cleared by soc reset 0: fields can be changed 1: fields locked to current value, not changeable."
bit_offset: 31
bit_size: 1
enum/PIN_SELECT:
description: select which gpio controls chip pin
bit_size: 1
variants:
- name: GPIO0
description: soc gpio0
value: 0
- name: CPU0_FGPIO
description: cpu0 fastgpio
value: 1
17 changes: 17 additions & 0 deletions data/registers/gpiom_v67.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ fieldset/PIN:
description: "select which gpio controls chip pin, 0: soc gpio0; 1: soc gpio1; 2: cpu0 fastgpio 3: cpu1 fast gpio."
bit_offset: 0
bit_size: 2
enum: PIN_SELECT
- name: HIDE
description: "pin value visibility to gpios, bit0: 1, invisible to soc gpio0; 0: visible to soc gpio0 bit1: 1, invisible to soc gpio1; 0: visible to soc gpio1 bit2: 1, invisible to cpu0 fast gpio; 0: visible to cpu0 fast gpio bit3: 1, invisible to cpu1 fast gpio; 0: visible to cpu1 fast gpio."
bit_offset: 8
Expand All @@ -33,3 +34,19 @@ fieldset/PIN:
description: "lock fields in this register, lock can only be cleared by soc reset 0: fields can be changed 1: fields locked to current value, not changeable."
bit_offset: 31
bit_size: 1
enum/PIN_SELECT:
description: select which gpio controls chip pin
bit_size: 2
variants:
- name: GPIO0
description: soc gpio0
value: 0
- name: GPIO1
description: soc gpio1
value: 1
- name: CPU0_FGPIO
description: cpu0 fastgpio
value: 2
- name: CPU1_FGPIO
description: cpu1 fast gpio
value: 3
11 changes: 11 additions & 0 deletions data/registers/gpiom_v68.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ fieldset/PIN:
description: "select which gpio controls chip pin, 0: soc gpio0; 2: cpu0 fastgpio."
bit_offset: 0
bit_size: 2
enum: PIN_SELECT
- name: HIDE
description: "pin value visibility to gpios, bit0: 1, invisible to soc gpio0; 0: visible to soc gpio0 bit1: 1, invisible to cpu0 fast gpio; 0: visible to cpu0 fast gpio."
bit_offset: 8
Expand All @@ -33,3 +34,13 @@ fieldset/PIN:
description: "lock fields in this register, lock can only be cleared by soc reset 0: fields can be changed 1: fields locked to current value, not changeable."
bit_offset: 31
bit_size: 1
enum/PIN_SELECT:
description: select which gpio controls chip pin
bit_size: 2
variants:
- name: GPIO0
description: soc gpio0
value: 0
- name: CPU0_FGPIO
description: cpu0 fastgpio
value: 2

0 comments on commit 7b80c1b

Please sign in to comment.