From fe59f607abd36aa8332657cbcb96d34cb978b32e Mon Sep 17 00:00:00 2001 From: kevin Date: Sat, 11 Sep 2021 18:13:50 +0800 Subject: [PATCH] modify hdf menuconfig Signed-off-by: kevin Change-Id: Ic1dfb519b1e152c832c298276a194070796beefa --- Kconfig | 17 ++++++++++------- platform/Kconfig | 12 ++++++------ 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/Kconfig b/Kconfig index 037b190..ae004ac 100644 --- a/Kconfig +++ b/Kconfig @@ -1,17 +1,18 @@ -config DRIVERS_HDF - bool "Enable HDF manager" - default y +menuconfig DRIVERS_HDF + bool "HDF driver framework support" + default n help Answer Y to enable Linux support HDF. +if DRIVERS_HDF config HDF_SUPPORT_LEVEL - int "Set HDF support platform" - default 1 + int "Set HDF support level" + default 2 range 0 5 depends on DRIVERS_HDF help - Answer 1 on OHOS L1, 2 on OHOS L2, etc + Answer 1 on small OHOS, 2 on standard OHOS source "drivers/hdf/khdf/platform/Kconfig" source "drivers/hdf/khdf/test/Kconfig" @@ -25,4 +26,6 @@ source "drivers/hdf/khdf/model/usb/host/Kconfig" source "drivers/hdf/khdf/model/usb/device/Kconfig" source "drivers/hdf/khdf/model/audio/Kconfig" source "drivers/hdf/khdf/model/misc/vibrator/Kconfig" -source "drivers/hdf/khdf/model/misc/dsoftbus/Kconfig" \ No newline at end of file +source "drivers/hdf/khdf/model/misc/dsoftbus/Kconfig" + +endif diff --git a/platform/Kconfig b/platform/Kconfig index 658fbf5..929ebe7 100644 --- a/platform/Kconfig +++ b/platform/Kconfig @@ -33,12 +33,6 @@ config DRIVERS_HDF_PLATFORM_WATCHDOG help Answer Y to enable HDF platform watchdog driver. -config PWM_HI35XX - bool "hi35xx pwm driver" - depends on PWM - help - Answer Y to enable hi35xx pwm driver - config DRIVERS_HDF_PLATFORM_PWM bool "Enable HDF platform pwm driver" depends on DRIVERS_HDF_PLATFORM @@ -85,3 +79,9 @@ config DRIVERS_HDF_PLATFORM_RTC depends on DRIVERS_HDF_PLATFORM help Answer Y to enable HDF platform rtc driver. + +config PWM_HI35XX + bool "hi35xx pwm driver" + depends on PWM + help + Answer Y to enable hi35xx pwm driver \ No newline at end of file -- Gitee