From 2ac78eee493d6183a5f0b58fb2155c44088ac267 Mon Sep 17 00:00:00 2001 From: Yury Lyamin <“lyamin@arrival.com”> Date: Sun, 9 Jun 2024 20:19:32 +0400 Subject: [PATCH] add config for D1H uart pinout --- bsp/allwinner/d1s_d1h/Kconfig | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/bsp/allwinner/d1s_d1h/Kconfig b/bsp/allwinner/d1s_d1h/Kconfig index e5306596de1..d11a63db045 100644 --- a/bsp/allwinner/d1s_d1h/Kconfig +++ b/bsp/allwinner/d1s_d1h/Kconfig @@ -18,14 +18,30 @@ config PKGS_DIR source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" -config BOARD_allwinnerd1s - bool - select ARCH_RISCV64 - select RT_USING_COMPONENTS_INIT - select RT_USING_USER_MAIN - select RT_USING_CACHE - select ARCH_MM_MMU - default y +choice + prompt "Select Allwinner D1 type" + default BOARD_allwinnerd1 + + config BOARD_allwinnerd1 + bool "Allwinner D1" + select ARCH_RISCV64 + select RT_USING_COMPONENTS_INIT + select RT_USING_USER_MAIN + select RT_USING_CACHE + select ARCH_MM_MMU + + config BOARD_allwinnerd1s + bool "Allwinner D1s" + select ARCH_RISCV64 + select RT_USING_COMPONENTS_INIT + select RT_USING_USER_MAIN + select RT_USING_CACHE + select ARCH_MM_MMU +endchoice + + + + config ENABLE_FPU bool "Enable FPU"