mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-08-09 06:14:34 +02:00
A few old machines have not been converted away from the old-style gpiolib interfaces. Make these select the new CONFIG_GPIOLIB_LEGACY symbol so the code still works where it is needed but can be left out otherwise. This is the list of all gpio_request() calls in mips: arch/mips/alchemy/devboards/db1000.c: gpio_request(19, "sd0_cd"); arch/mips/alchemy/devboards/db1000.c: gpio_request(20, "sd1_cd"); arch/mips/alchemy/devboards/db1200.c: gpio_request(215, "otg-vbus"); arch/mips/bcm47xx/workarounds.c: err = gpio_request_one(usb_power, GPIOF_OUT_INIT_HIGH, "usb_power"); arch/mips/bcm63xx/boards/board_bcm963xx.c: gpio_request_one(board.ephy_reset_gpio, arch/mips/txx9/rbtx4927/setup.c: gpio_request(15, "sio-dtr"); Most of these should be easy enough to change to modern gpio descriptors or remove if they are no longer in use. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> Reviewed-by: Linus Walleij <linusw@kernel.org> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
37 lines
878 B
Plaintext
37 lines
878 B
Plaintext
# SPDX-License-Identifier: GPL-2.0
|
|
choice
|
|
prompt "Machine type"
|
|
depends on MIPS_ALCHEMY
|
|
default MIPS_DB1XXX
|
|
|
|
config MIPS_MTX1
|
|
bool "4G Systems MTX-1 board"
|
|
select HAVE_PCI
|
|
select SYS_SUPPORTS_LITTLE_ENDIAN
|
|
select SYS_HAS_EARLY_PRINTK
|
|
|
|
config MIPS_DB1XXX
|
|
bool "Alchemy DB1XXX / PB1XXX boards"
|
|
select HAVE_PCI
|
|
select HAVE_PATA_PLATFORM
|
|
select SYS_SUPPORTS_LITTLE_ENDIAN
|
|
select SYS_HAS_EARLY_PRINTK
|
|
help
|
|
Select this option if you have one of the following Alchemy
|
|
development boards: DB1000 DB1500 DB1100 DB1550 DB1200 DB1300
|
|
PB1500 PB1100 PB1550 PB1200
|
|
Board type is autodetected during boot.
|
|
|
|
config MIPS_XXS1500
|
|
bool "MyCable XXS1500 board"
|
|
select SYS_SUPPORTS_LITTLE_ENDIAN
|
|
select SYS_HAS_EARLY_PRINTK
|
|
|
|
config MIPS_GPR
|
|
bool "Trapeze ITS GPR board"
|
|
select HAVE_PCI
|
|
select SYS_SUPPORTS_LITTLE_ENDIAN
|
|
select SYS_HAS_EARLY_PRINTK
|
|
|
|
endchoice
|