From 1ad0b193d9b5a5b3adfea8a587f6d076c11d4926 Mon Sep 17 00:00:00 2001 From: YuLong Yao Date: Mon, 21 Feb 2022 06:22:17 +0800 Subject: [PATCH] modules: arm: gigadevice: set HAXTL_VALUE for gd32_e103 set HAXTL_VALUE to GD32_HXTAL_8MHZ for gd32_e103. Signed-off-by: YuLong Yao --- modules/hal_gigadevice/Kconfig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/hal_gigadevice/Kconfig b/modules/hal_gigadevice/Kconfig index a26c03b044..9e892d1aea 100644 --- a/modules/hal_gigadevice/Kconfig +++ b/modules/hal_gigadevice/Kconfig @@ -24,6 +24,7 @@ choice GD32_HXTAL_FREQUENCY prompt "High speed external oscillator clock frequency" default GD32_HXTAL_FIRMWARE_DEFINED if !SOC_SERIES_GD32VF103 default GD32_HXTAL_25MHZ if SOC_SERIES_GD32VF103 + default GD32_HXTAL_8MHZ if SOC_SERIES_GD32E10X help Define value of high speed crystal oscillator (HXTAL) in Hz This value sets the frequency of the oscillator. @@ -31,6 +32,7 @@ choice GD32_HXTAL_FREQUENCY config GD32_HXTAL_FIRMWARE_DEFINED bool "Firmware defined" depends on !SOC_SERIES_GD32VF103 + depends on !SOC_SERIES_GD32E10X help Use default frequency defined in firmware for HXTAL This is using for SoCs (e.g. gd32f4xx, gd32f3x0, etc ...) @@ -38,13 +40,13 @@ config GD32_HXTAL_FIRMWARE_DEFINED config GD32_HXTAL_8MHZ bool "8MHz" - depends on SOC_SERIES_GD32VF103 + depends on SOC_SERIES_GD32VF103 || SOC_SERIES_GD32E10X help Use 8MHz oscillator for HXTAL config GD32_HXTAL_25MHZ bool "25MHz" - depends on SOC_SERIES_GD32VF103 + depends on SOC_SERIES_GD32VF103 || SOC_SERIES_GD32E10X help Use 25MHz oscillator for HXTAL