arch:riscv:modify Kconfig.socs
authorxingyu.wu <xingyu.wu@starfivetech.com>
Thu, 21 Apr 2022 06:21:18 +0000 (14:21 +0800)
committerxingyu.wu <xingyu.wu@starfivetech.com>
Thu, 21 Apr 2022 06:21:28 +0000 (14:21 +0800)
Kconfig.socs: remove the definitions like 'STARFIVE_BOARD_FPGA'.
drivers:watchdog: change the definition.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
arch/riscv/Kconfig.socs
drivers/watchdog/starfive-wdt.c

index cb87acd..31428dc 100755 (executable)
@@ -95,29 +95,6 @@ config USB_CDNS3_HOST_FLUSH_DMA
 
 endmenu
 
-choice
-       prompt "StarFive JH SOCs board type"
-       depends on SOC_STARFIVE
-       default STARFIVE_BOARD_FPGA
-       help
-               choice StarFive JH7110 SOC board type
-
-       config STARFIVE_BOARD_FPGA
-               bool "FPGA"
-               help
-                       This enables support for StarFive SoC FPGA board type Hardware.
-
-       config STARFIVE_BOARD_EVB
-               bool "EVB"
-               help
-                       This enables support for StarFive SoC EVB board type Hardware.
-
-       config STARFIVE_BOARD_VISIONFIVE
-               bool "Visionfive"
-               help
-                       This enables support for StarFive SoC Visionfive board type Hardware.
-endchoice
-
 config SOC_VIRT
        bool "QEMU Virt Machine"
        select CLINT_TIMER if RISCV_M_MODE
index d05a668..6965409 100755 (executable)
@@ -200,7 +200,7 @@ MODULE_DEVICE_TABLE(platform, si5wdt_ids);
 
 static int si5wdt_get_clock_rate(struct stf_si5_wdt *wdt)
 {
-#ifdef CONFIG_STARFIVE_BOARD_FPGA
+#ifdef HWBOARD_FPGA
        int ret;
        u32 freq;