2017-12-25 20:54:35 +01:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2009-11-10 00:14:58 +00:00
|
|
|
#
|
|
|
|
# Copyright 2009 Simtec Electronics
|
|
|
|
|
2019-09-02 17:47:55 +02:00
|
|
|
source "arch/arm/mach-s3c/Kconfig.s3c64xx"
|
|
|
|
|
2009-11-10 00:14:58 +00:00
|
|
|
config PLAT_SAMSUNG
|
2022-09-29 15:33:15 +02:00
|
|
|
def_bool ARCH_S3C64XX
|
ARM: config: sort select statements alphanumerically
As suggested by Andrew Morton:
This is a pet peeve of mine. Any time there's a long list of items
(header file inclusions, kconfig entries, array initalisers, etc) and
someone wants to add a new item, they *always* go and stick it at the
end of the list.
Guys, don't do this. Either put the new item into a randomly-chosen
position or, probably better, alphanumerically sort the list.
lets sort all our select statements alphanumerically. This commit was
created by the following perl:
while (<>) {
while (/\\\s*$/) {
$_ .= <>;
}
undef %selects if /^\s*config\s+/;
if (/^\s+select\s+(\w+).*/) {
if (defined($selects{$1})) {
if ($selects{$1} eq $_) {
print STDERR "Warning: removing duplicated $1 entry\n";
} else {
print STDERR "Error: $1 differently selected\n".
"\tOld: $selects{$1}\n".
"\tNew: $_\n";
exit 1;
}
}
$selects{$1} = $_;
next;
}
if (%selects and (/^\s*$/ or /^\s+help/ or /^\s+---help---/ or
/^endif/ or /^endchoice/)) {
foreach $k (sort (keys %selects)) {
print "$selects{$k}";
}
undef %selects;
}
print;
}
if (%selects) {
foreach $k (sort (keys %selects)) {
print "$selects{$k}";
}
}
It found two duplicates:
Warning: removing duplicated S5P_SETUP_MIPIPHY entry
Warning: removing duplicated HARDIRQS_SW_RESEND entry
and they are identical duplicates, hence the shrinkage in the diffstat
of two lines.
We have four testers reporting success of this change (Tony, Stephen,
Linus and Sekhar.)
Acked-by: Jason Cooper <jason@lakedaemon.net>
Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2012-10-06 17:12:25 +01:00
|
|
|
select GENERIC_IRQ_CHIP
|
2014-04-07 15:39:19 -07:00
|
|
|
select NO_IOPORT_MAP
|
2020-08-06 20:20:33 +02:00
|
|
|
select SOC_SAMSUNG
|
2009-11-10 00:14:58 +00:00
|
|
|
help
|
|
|
|
Base platform code for all Samsung SoC based systems
|
|
|
|
|
2013-07-24 14:06:13 +09:00
|
|
|
config SAMSUNG_PM
|
2022-09-29 15:33:15 +02:00
|
|
|
def_bool ARCH_S3C64XX
|
|
|
|
depends on PM
|
2013-07-24 14:06:13 +09:00
|
|
|
help
|
|
|
|
Base platform power management code for samsung code
|
|
|
|
|
2009-11-10 00:14:58 +00:00
|
|
|
if PLAT_SAMSUNG
|
2014-06-10 09:06:09 -05:00
|
|
|
menu "Samsung Common options"
|
2009-11-10 00:14:58 +00:00
|
|
|
|
2010-01-29 09:02:17 +00:00
|
|
|
# boot configurations
|
|
|
|
|
|
|
|
comment "Boot options"
|
|
|
|
|
|
|
|
config S3C_LOWLEVEL_UART_PORT
|
|
|
|
int "S3C UART to use for low-level messages"
|
2014-06-10 09:06:09 -05:00
|
|
|
depends on ARCH_S3C64XX
|
2010-01-29 09:02:17 +00:00
|
|
|
default 0
|
|
|
|
help
|
|
|
|
Choice of which UART port to use for the low-level messages,
|
|
|
|
such as the `Uncompressing...` at start time. The value of
|
|
|
|
this configuration should be between zero and two. The port
|
|
|
|
must have been initialised by the boot-loader before use.
|
|
|
|
|
2013-06-15 09:01:49 +09:00
|
|
|
config SAMSUNG_ATAGS
|
|
|
|
def_bool n
|
|
|
|
depends on ATAGS
|
|
|
|
help
|
2022-06-09 10:21:52 +02:00
|
|
|
This option enables ATAGS based boot support code for
|
|
|
|
Samsung platforms, including static platform devices, legacy
|
|
|
|
clock, timer and interrupt initialization, etc.
|
2013-06-15 09:01:49 +09:00
|
|
|
|
2022-06-09 10:21:52 +02:00
|
|
|
Platforms that support only DT based boot need not to select
|
|
|
|
this option.
|
2013-06-15 09:01:49 +09:00
|
|
|
|
|
|
|
if SAMSUNG_ATAGS
|
|
|
|
|
2010-01-29 09:02:17 +00:00
|
|
|
config S3C_GPIO_SPACE
|
|
|
|
int "Space between gpio banks"
|
|
|
|
default 0
|
|
|
|
help
|
|
|
|
Add a number of spare GPIO entries between each bank for debugging
|
|
|
|
purposes. This allows any problems where an counter overflows from
|
|
|
|
one bank to another to be caught, at the expense of using a little
|
|
|
|
more memory.
|
|
|
|
|
|
|
|
config S3C_GPIO_TRACK
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Internal configuration option to enable the s3c specific gpio
|
|
|
|
chip tracking if the platform requires it.
|
|
|
|
|
2010-01-06 02:45:09 +09:00
|
|
|
# device definitions to compile in
|
|
|
|
|
|
|
|
config S3C_DEV_HSMMC
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Compile in platform device definitions for HSMMC code
|
|
|
|
|
|
|
|
config S3C_DEV_HSMMC1
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Compile in platform device definitions for HSMMC channel 1
|
|
|
|
|
|
|
|
config S3C_DEV_HSMMC2
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Compile in platform device definitions for HSMMC channel 2
|
|
|
|
|
2010-06-10 15:22:16 +09:00
|
|
|
config S3C_DEV_HSMMC3
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Compile in platform device definitions for HSMMC channel 3
|
|
|
|
|
2010-01-06 02:45:09 +09:00
|
|
|
config S3C_DEV_I2C1
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Compile in platform device definitions for I2C channel 1
|
|
|
|
|
|
|
|
config S3C_DEV_FB
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Compile in platform device definition for framebuffer
|
|
|
|
|
|
|
|
config S3C_DEV_USB_HOST
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Compile in platform device definition for USB host.
|
|
|
|
|
|
|
|
config S3C_DEV_USB_HSOTG
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Compile in platform device definition for USB high-speed OtG
|
|
|
|
|
2011-12-23 10:14:31 +09:00
|
|
|
config S3C64XX_DEV_SPI0
|
2010-01-28 17:14:49 +09:00
|
|
|
bool
|
|
|
|
help
|
|
|
|
Compile in platform device definitions for S3C64XX's type
|
2011-12-23 10:14:31 +09:00
|
|
|
SPI controller 0
|
|
|
|
|
2010-08-06 19:26:10 +09:00
|
|
|
config SAMSUNG_DEV_KEYPAD
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Compile in platform device definitions for keypad
|
|
|
|
|
2011-02-28 22:24:51 +05:30
|
|
|
config SAMSUNG_DEV_PWM
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Compile in platform device definition for PWM Timer
|
|
|
|
|
2015-02-27 21:54:18 +01:00
|
|
|
config GPIO_SAMSUNG
|
|
|
|
def_bool y
|
|
|
|
|
2013-06-19 01:24:12 +09:00
|
|
|
config SAMSUNG_PM_GPIO
|
|
|
|
bool
|
|
|
|
default y if GPIO_SAMSUNG && PM
|
|
|
|
help
|
|
|
|
Include legacy GPIO power management code for platforms not using
|
|
|
|
pinctrl-samsung driver.
|
2014-06-13 12:04:39 +02:00
|
|
|
endif
|
|
|
|
|
2010-05-20 14:05:33 +09:00
|
|
|
config SAMSUNG_WAKEMASK
|
|
|
|
bool
|
|
|
|
depends on PM
|
|
|
|
help
|
|
|
|
Compile support for wakeup-mask controls found on the S3C6400
|
|
|
|
and above. This code allows a set of interrupt to wakeup-mask
|
|
|
|
mappings. See <plat/wakeup-mask.h>
|
|
|
|
|
2014-06-10 09:06:09 -05:00
|
|
|
endmenu
|
2009-11-10 00:14:58 +00:00
|
|
|
endif
|