forked from Minki/linux
db43b18468
Using 'select' in Kconfig is hard, a platform cannot just
enable a driver without also making sure that its subsystem
is there. Also, there is no actual code dependency between
the platform and the gpio leds driver.
Without this patch, building without LEDS_CLASS esults in:
drivers/built-in.o: In function `create_gpio_led.part.2':
governor_userspace.c:(.devinit.text+0x5a58): undefined reference to `led_classdev_register'
drivers/built-in.o: In function `gpio_led_remove':
governor_userspace.c:(.devexit.text+0x6b8): undefined reference to `led_classdev_unregister'
This reverts 8733f53c6
"ARM: ux500: Kconfig: Compile in leds-gpio
support for Snowball" that introduced the regression and did not
provide a helpful explanation.
In order to leave the GPIO LED code still present in normal
builds, this also enables the symbol in u8500_defconfig, in addition
to the other LED drivers that are already selected there.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Lee Jones <lee.jones@linaro.org>
70 lines
1.4 KiB
Plaintext
70 lines
1.4 KiB
Plaintext
if ARCH_U8500
|
|
|
|
config UX500_SOC_COMMON
|
|
bool
|
|
default y
|
|
select ARM_GIC
|
|
select HAS_MTU
|
|
select PL310_ERRATA_753970
|
|
select ARM_ERRATA_754322
|
|
select ARM_ERRATA_764369
|
|
select CACHE_L2X0
|
|
select PINCTRL
|
|
select PINCTRL_NOMADIK
|
|
|
|
config UX500_SOC_DB8500
|
|
bool
|
|
select MFD_DB8500_PRCMU
|
|
select REGULATOR
|
|
select REGULATOR_DB8500_PRCMU
|
|
select CPU_FREQ_TABLE if CPU_FREQ
|
|
select PINCTRL_DB8500
|
|
|
|
menu "Ux500 target platform (boards)"
|
|
|
|
config MACH_MOP500
|
|
bool "U8500 Development platform, MOP500 versions"
|
|
select UX500_SOC_DB8500
|
|
select I2C
|
|
select I2C_NOMADIK
|
|
select SOC_BUS
|
|
help
|
|
Include support for the MOP500 development platform.
|
|
|
|
config MACH_HREFV60
|
|
bool "U8500 Development platform, HREFv60 version"
|
|
select MACH_MOP500
|
|
help
|
|
Include support for the HREFv60 new development platform.
|
|
Includes HREFv70, v71 etc.
|
|
|
|
config MACH_SNOWBALL
|
|
bool "U8500 Snowball platform"
|
|
select MACH_MOP500
|
|
help
|
|
Include support for the snowball development platform.
|
|
|
|
config UX500_AUTO_PLATFORM
|
|
def_bool y
|
|
select MACH_MOP500
|
|
help
|
|
At least one platform needs to be selected in order to build
|
|
a working kernel. If everything else is disabled, this
|
|
automatically enables MACH_MOP500.
|
|
|
|
config MACH_UX500_DT
|
|
bool "Generic U8500 support using device tree"
|
|
depends on MACH_MOP500
|
|
select USE_OF
|
|
|
|
endmenu
|
|
|
|
config UX500_DEBUG_UART
|
|
int "Ux500 UART to use for low-level debug"
|
|
default 2
|
|
help
|
|
Choose the UART on which kernel low-level debug messages should be
|
|
output.
|
|
|
|
endif
|