From cc668fbca46ec4fb6fea094df1431d5c262b3f34 Mon Sep 17 00:00:00 2001 From: Jason Zhu Date: Thu, 12 Mar 2020 15:14:43 +0800 Subject: [PATCH] driver: Makefile: support PWM in spl Signed-off-by: Jason Zhu Change-Id: I3ca97f634acae8c2d9de0b5e003776bccb14cd1b --- common/spl/Kconfig | 7 +++++++ drivers/Makefile | 1 + 2 files changed, 8 insertions(+) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index 38513cae7f..ff7c9ae97f 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -575,6 +575,13 @@ config SPL_POWER_SUPPORT in drivers/power, drivers/power/pmic and drivers/power/regulator as part of an SPL build. +config SPL_PWM_SUPPORT + bool "Support PWM driver" + depends on SPL + help + Enable support for pwm in SPL. This allows use pwm to control + somethings, for example control voltage. + config SPL_RAM_SUPPORT bool "Support booting from RAM" default y if MICROBLAZE || ARCH_SOCFPGA || TEGRA || ARCH_ZYNQ diff --git a/drivers/Makefile b/drivers/Makefile index d7d128872a..ca2ed476bb 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -32,6 +32,7 @@ obj-$(CONFIG_ALTERA_SDRAM) += ddr/altera/ obj-$(CONFIG_SPL_POWER_SUPPORT) += power/ power/pmic/ obj-$(CONFIG_SPL_POWER_SUPPORT) += power/regulator/ obj-$(CONFIG_SPL_POWER_SUPPORT) += power/fuel_gauge/ +obj-$(CONFIG_SPL_PWM_SUPPORT) += pwm/ obj-$(CONFIG_SPL_MTD_SUPPORT) += mtd/ obj-$(CONFIG_SPL_ONENAND_SUPPORT) += mtd/onenand/ obj-$(CONFIG_SPL_UBI) += mtd/ubispl/