Skip to content

Commit

Permalink
feat: sdio v3
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed May 4, 2024
1 parent cdb00a3 commit f1d7b2e
Show file tree
Hide file tree
Showing 9 changed files with 541 additions and 0 deletions.
1 change: 1 addition & 0 deletions data/chips/CH32V303RCT6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ cores:
- "../peripherals/FV2x_V3x_I2C2.yaml"
- "../peripherals/FV2x_V3x_RNG.yaml"
- "../peripherals/FV2x_V3x_DAC.yaml"
- "../peripherals/FV2x_V3x_SDIO.yaml"

include_interrupts: "../interrupts/CH32V3.yaml"
include_dma_channels:
Expand Down
1 change: 1 addition & 0 deletions data/chips/CH32V303VCT6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ cores:
- "../peripherals/FV2x_V3x_I2C2.yaml"
- "../peripherals/FV2x_V3x_RNG.yaml"
- "../peripherals/FV2x_V3x_DAC.yaml"
- "../peripherals/FV2x_V3x_SDIO.yaml"

include_interrupts: "../interrupts/CH32V3.yaml"
include_dma_channels:
Expand Down
1 change: 1 addition & 0 deletions data/chips/CH32V305GBU6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ cores:
- "../peripherals/FV2x_V3x_RNG.yaml"
- "../peripherals/FV2x_V3x_USBHS.yaml"
- "../peripherals/FV2x_V3x_DAC.yaml"
- "../peripherals/FV2x_V3x_SDIO.yaml"

include_interrupts: "../interrupts/CH32V3.yaml"
include_dma_channels:
Expand Down
1 change: 1 addition & 0 deletions data/chips/CH32V305RBT6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ cores:
- "../peripherals/FV2x_V3x_RNG.yaml"
- "../peripherals/FV2x_V3x_USBHS.yaml"
- "../peripherals/FV2x_V3x_DAC.yaml"
- "../peripherals/FV2x_V3x_SDIO.yaml"

include_interrupts: "../interrupts/CH32V3.yaml"
include_dma_channels:
Expand Down
1 change: 1 addition & 0 deletions data/chips/CH32V307RCT6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ cores:
- "../peripherals/FV2x_V3x_RNG.yaml"
- "../peripherals/FV2x_V3x_USBHS.yaml"
- "../peripherals/FV2x_V3x_DAC.yaml"
- "../peripherals/FV2x_V3x_SDIO.yaml"

include_interrupts: "../interrupts/CH32V3.yaml"
include_dma_channels:
Expand Down
1 change: 1 addition & 0 deletions data/chips/CH32V307VCT6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ cores:
- "../peripherals/FV2x_V3x_RNG.yaml"
- "../peripherals/FV2x_V3x_USBHS.yaml"
- "../peripherals/FV2x_V3x_DAC.yaml"
- "../peripherals/FV2x_V3x_SDIO.yaml"

include_interrupts: "../interrupts/CH32V3.yaml"
include_dma_channels:
Expand Down
1 change: 1 addition & 0 deletions data/chips/CH32V307WCU6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ cores:
- "../peripherals/FV2x_V3x_RNG.yaml"
- "../peripherals/FV2x_V3x_USBHS.yaml"
- "../peripherals/FV2x_V3x_DAC.yaml"
- "../peripherals/FV2x_V3x_SDIO.yaml"

include_interrupts: "../interrupts/CH32V3.yaml"
include_dma_channels:
Expand Down
38 changes: 38 additions & 0 deletions data/peripherals/FV2x_V3x_SDIO.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
- name: SDIO
address: 0x40012400
registers:
kind: sdio
version: v3
block: SDIO
rcc:
bus_clock: HCLK1
kernel_clock: HCLK1
enable:
register: AHBPCENR
field: SDIOEN
interrupts:
- signal: GLOBAL
interrupt: SDIO
pins:
- pin: PC8
signal: D0
- pin: PC9
signal: D1
- pin: PC10
signal: D2
- pin: PC11
signal: D3
- pin: PB8
signal: D4
- pin: PB9
signal: D5
- pin: PC6
signal: D6
- pin: PC7
signal: D7
- pin: PC12
signal: CK
- pin: PD2
signal: CMD


Loading

0 comments on commit f1d7b2e

Please sign in to comment.