Skip to content

Commit

Permalink
Patch SVDs with GPIO5 clock gate
Browse files Browse the repository at this point in the history
The 1020, 1050, and 1060 SVDs qualify these fields as reserved, so the
previous commits scrubbed the fields. Patch the SVDs to re-introduce the
field.
  • Loading branch information
mciantyre committed May 14, 2024
1 parent 7a20156 commit 0d39161
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 0 deletions.
11 changes: 11 additions & 0 deletions devices/common_patches/ccm_cg_gpio5.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Clock gate 15 in CCM[CCGR1] is missing from 1050 and 1060 MCUs.
# It isn't reserved according to the reference manual. This
# clock gate is for GPIO5.
CCM:
CCGR1:
_modify:
CG15:
description: gpio5 clock (gpio5_clk_enable)
bitOffset: 30
bitWidth: 2
access: read-write
1 change: 1 addition & 0 deletions devices/imxrt1021.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ _svd: "../svd/imxrt1021.svd"

_include:
- "common.yaml"
- "common_patches/ccm_cg_gpio5.yaml"
- "common_patches/pwm1/submodule_cluster.yaml"
- "common_patches/usb.yaml"
- "common_patches/dma0/tcd_cluster.yaml"
Expand Down
1 change: 1 addition & 0 deletions devices/imxrt1051.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ _svd: "../svd/imxrt1051.svd"

_include:
- "common.yaml"
- "common_patches/ccm_cg_gpio5.yaml"
- "common_patches/pwm1/submodule_cluster.yaml"
- "common_patches/usb1.yaml"
- "common_patches/dma0/tcd_cluster.yaml"
Expand Down
1 change: 1 addition & 0 deletions devices/imxrt1052.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ _svd: "../svd/imxrt1052.svd"

_include:
- "common.yaml"
- "common_patches/ccm_cg_gpio5.yaml"
- "common_patches/pwm1/submodule_cluster.yaml"
- "common_patches/usb1.yaml"
- "common_patches/dma0/tcd_cluster.yaml"
Expand Down
1 change: 1 addition & 0 deletions devices/imxrt1061.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ _svd: "../svd/imxrt1061.svd"

_include:
- "common.yaml"
- "common_patches/ccm_cg_gpio5.yaml"
- "common_patches/pwm1/submodule_cluster.yaml"
- "common_patches/usb1.yaml"
- "common_patches/dma0/tcd_cluster.yaml"
Expand Down
1 change: 1 addition & 0 deletions devices/imxrt1062.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ _svd: "../svd/imxrt1062.svd"

_include:
- "common.yaml"
- "common_patches/ccm_cg_gpio5.yaml"
- "common_patches/pwm1/submodule_cluster.yaml"
- "common_patches/usb1.yaml"
- "common_patches/dma0/tcd_cluster.yaml"
Expand Down
1 change: 1 addition & 0 deletions devices/imxrt1064.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ _svd: "../svd/imxrt1064.svd"

_include:
- "common.yaml"
- "common_patches/ccm_cg_gpio5.yaml"
- "common_patches/pwm1/submodule_cluster.yaml"
- "common_patches/usb1.yaml"
- "common_patches/dma0/tcd_cluster.yaml"
Expand Down
8 changes: 8 additions & 0 deletions src/blocks/imxrt1021/ccm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2720,6 +2720,14 @@ pub mod CCGR1 {
pub mod W {}
pub mod RW {}
}
#[doc = "gpio5 clock (gpio5_clk_enable)"]
pub mod CG15 {
pub const offset: u32 = 30;
pub const mask: u32 = 0x03 << offset;
pub mod R {}
pub mod W {}
pub mod RW {}
}
}
#[doc = "CCM Clock Gating Register 2"]
pub mod CCGR2 {
Expand Down
8 changes: 8 additions & 0 deletions src/blocks/imxrt1051/ccm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2927,6 +2927,14 @@ pub mod CCGR1 {
pub mod W {}
pub mod RW {}
}
#[doc = "gpio5 clock (gpio5_clk_enable)"]
pub mod CG15 {
pub const offset: u32 = 30;
pub const mask: u32 = 0x03 << offset;
pub mod R {}
pub mod W {}
pub mod RW {}
}
}
#[doc = "CCM Clock Gating Register 2"]
pub mod CCGR2 {
Expand Down
8 changes: 8 additions & 0 deletions src/blocks/imxrt1061/ccm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2968,6 +2968,14 @@ pub mod CCGR1 {
pub mod W {}
pub mod RW {}
}
#[doc = "gpio5 clock (gpio5_clk_enable)"]
pub mod CG15 {
pub const offset: u32 = 30;
pub const mask: u32 = 0x03 << offset;
pub mod R {}
pub mod W {}
pub mod RW {}
}
}
#[doc = "CCM Clock Gating Register 2"]
pub mod CCGR2 {
Expand Down

0 comments on commit 0d39161

Please sign in to comment.