Skip to content

Commit

Permalink
soc: silabs: siwg917: Configure common flash
Browse files Browse the repository at this point in the history
This enables proper calibration during init, which allows UART baud rate
to be correctly configured using the real oscillator frequency.

Signed-off-by: Aksel Skauge Mellbye <[email protected]>
  • Loading branch information
asmellby committed Aug 8, 2024
1 parent d933a52 commit 33432c8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_PINCTRL=y
CONFIG_SIWX917_FLASH_MODE_COMMON=y
2 changes: 1 addition & 1 deletion dts/arm/silabs/siwg917.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
reg = <0x24041800 0x1000>;
interrupts = <12 0>;
reg-shift = <2>;
clock-frequency = <15000000>;
clock-frequency = <32000000>;
current-speed = <115200>;
status = "disabled";
};
Expand Down
12 changes: 12 additions & 0 deletions soc/silabs/silabs_siwx917/siwg917/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,16 @@ config FLASH_BASE_ADDRESS
config NUM_IRQS
default 99

choice SIWX917_FLASH_MODE
bool "Flash Mode"
default SIWX917_FLASH_MODE_COMMON

config SIWX917_FLASH_MODE_COMMON
bool "Common Flash"

config SIWX917_FLASH_MODE_DUAL
bool "Dual Flash"

endchoice

endif
2 changes: 1 addition & 1 deletion west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ manifest:
projects:
- name: hal_silabs
remote: silabs
revision: 3a0ef228854acd0f85d56cfe64b4fecee09557ba
revision: d3191b380c5a0975230881bcf21045e92189c263
path: modules/hal/silabs
- name: zephyr
remote: zephyrproject-rtos
Expand Down

0 comments on commit 33432c8

Please sign in to comment.