Rename CONFIG_PWM to CONFIG_PWM_S5P and move to Kconfig
We rename the S5P specific "CONFIG_PWM" to CONFIG_PWM_S5P and move it to Kconfig. Given the usage of CONFIG_PWM_NX, we have that select this new symbol. Cc: Jaehoon Chung <jh80.chung@samsung.com> Cc: Minkyu Kang <mk7.kang@samsung.com> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
This commit is contained in:
parent
d398b29aa0
commit
de0a732915
8 changed files with 9 additions and 11 deletions
|
@ -3,14 +3,13 @@
|
||||||
# Copyright (C) 2009 Samsung Electronics
|
# Copyright (C) 2009 Samsung Electronics
|
||||||
# Minkyu Kang <mk7.kang@samsung.com>
|
# Minkyu Kang <mk7.kang@samsung.com>
|
||||||
|
|
||||||
|
obj-$(CONFIG_PWM_S5P) += pwm.o
|
||||||
ifdef CONFIG_ARCH_NEXELL
|
ifdef CONFIG_ARCH_NEXELL
|
||||||
obj-$(CONFIG_PWM_NX) += pwm.o
|
|
||||||
obj-$(CONFIG_S5P4418_ONEWIRE) += pwm.o
|
obj-$(CONFIG_S5P4418_ONEWIRE) += pwm.o
|
||||||
else
|
else
|
||||||
obj-y += cpu_info.o
|
obj-y += cpu_info.o
|
||||||
ifndef CONFIG_SPL_BUILD
|
ifndef CONFIG_SPL_BUILD
|
||||||
obj-y += timer.o
|
obj-y += timer.o
|
||||||
obj-y += sromc.o
|
obj-y += sromc.o
|
||||||
obj-$(CONFIG_PWM) += pwm.o
|
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -11,6 +11,7 @@ config S5P4418_ONEWIRE
|
||||||
|
|
||||||
config PWM_NX
|
config PWM_NX
|
||||||
bool "PWM"
|
bool "PWM"
|
||||||
|
select PWM_S5P
|
||||||
help
|
help
|
||||||
This enables LCD-Backlight control via PWM.
|
This enables LCD-Backlight control via PWM.
|
||||||
endchoice
|
endchoice
|
||||||
|
|
|
@ -52,6 +52,7 @@ CONFIG_MMC_SDHCI_S5P=y
|
||||||
CONFIG_MTD=y
|
CONFIG_MTD=y
|
||||||
CONFIG_DM_PMIC=y
|
CONFIG_DM_PMIC=y
|
||||||
CONFIG_DM_PMIC_MAX8998=y
|
CONFIG_DM_PMIC_MAX8998=y
|
||||||
|
CONFIG_PWM_S5P=y
|
||||||
CONFIG_USB=y
|
CONFIG_USB=y
|
||||||
CONFIG_USB_GADGET=y
|
CONFIG_USB_GADGET=y
|
||||||
CONFIG_USB_GADGET_MANUFACTURER="Samsung"
|
CONFIG_USB_GADGET_MANUFACTURER="Samsung"
|
||||||
|
|
|
@ -38,3 +38,4 @@ CONFIG_ENV_IS_IN_ONENAND=y
|
||||||
CONFIG_MTD=y
|
CONFIG_MTD=y
|
||||||
CONFIG_SMC911X=y
|
CONFIG_SMC911X=y
|
||||||
CONFIG_SMC911X_BASE=0x98800300
|
CONFIG_SMC911X_BASE=0x98800300
|
||||||
|
CONFIG_PWM_S5P=y
|
||||||
|
|
|
@ -84,6 +84,11 @@ config PWM_SANDBOX
|
||||||
useful. The PWM can be enabled but is not connected to any outputs
|
useful. The PWM can be enabled but is not connected to any outputs
|
||||||
so this is not very useful.
|
so this is not very useful.
|
||||||
|
|
||||||
|
config PWM_S5P
|
||||||
|
bool "Enable non-DM support for S5P PWM"
|
||||||
|
depends on (S5P || ARCH_NEXELL)
|
||||||
|
default y
|
||||||
|
|
||||||
config PWM_SIFIVE
|
config PWM_SIFIVE
|
||||||
bool "Enable support for SiFive PWM"
|
bool "Enable support for SiFive PWM"
|
||||||
depends on DM_PWM
|
depends on DM_PWM
|
||||||
|
|
|
@ -18,9 +18,6 @@
|
||||||
|
|
||||||
/* select serial console configuration */
|
/* select serial console configuration */
|
||||||
|
|
||||||
/* PWM */
|
|
||||||
#define CONFIG_PWM
|
|
||||||
|
|
||||||
/* Miscellaneous configurable options */
|
/* Miscellaneous configurable options */
|
||||||
|
|
||||||
#endif /* __CONFIG_H */
|
#endif /* __CONFIG_H */
|
||||||
|
|
|
@ -21,9 +21,6 @@
|
||||||
/* MMC */
|
/* MMC */
|
||||||
#define SDHCI_MAX_HOSTS 4
|
#define SDHCI_MAX_HOSTS 4
|
||||||
|
|
||||||
/* PWM */
|
|
||||||
#define CONFIG_PWM 1
|
|
||||||
|
|
||||||
/* USB Composite download gadget - g_dnl */
|
/* USB Composite download gadget - g_dnl */
|
||||||
#define DFU_DEFAULT_POLL_TIMEOUT 300
|
#define DFU_DEFAULT_POLL_TIMEOUT 300
|
||||||
|
|
||||||
|
|
|
@ -24,9 +24,6 @@
|
||||||
* select serial console configuration
|
* select serial console configuration
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* PWM */
|
|
||||||
#define CONFIG_PWM 1
|
|
||||||
|
|
||||||
#define COMMON_BOOT "console=ttySAC0,115200n8" \
|
#define COMMON_BOOT "console=ttySAC0,115200n8" \
|
||||||
" mem=128M " \
|
" mem=128M " \
|
||||||
" " CONFIG_MTDPARTS_DEFAULT
|
" " CONFIG_MTDPARTS_DEFAULT
|
||||||
|
|
Loading…
Reference in a new issue