Commit 592693a1 authored by Joel Stanley's avatar Joel Stanley

soc: aspeed: Improve kconfig

Reword the kconfig text to be consistent and reflect that most drivers
are available for all supported ASPEED chips (2400, 2500 and 2600).

Rearrange the symbols the SoC drivers depend on so the menu doesn't
appear unless you are building for ASPEED for compile testing.

The SYSCON_MFD and REGMAP options are usually selected by drivers that
need them, so do this.
Reviewed-by: default avatarCédric Le Goater <clg@kaod.org>
Reviewed-by: default avatarAndrew Jeffery <andrew@aj.id.au>
Link: https://lore.kernel.org/r/20200916125731.784527-1-joel@jms.id.auSigned-off-by: default avatarJoel Stanley <joel@jms.id.au>
parent 9123e3a7
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# #
obj-$(CONFIG_ARCH_ACTIONS) += actions/ obj-$(CONFIG_ARCH_ACTIONS) += actions/
obj-$(CONFIG_SOC_ASPEED) += aspeed/ obj-y += aspeed/
obj-$(CONFIG_ARCH_AT91) += atmel/ obj-$(CONFIG_ARCH_AT91) += atmel/
obj-y += bcm/ obj-y += bcm/
obj-$(CONFIG_ARCH_DOVE) += dove/ obj-$(CONFIG_ARCH_DOVE) += dove/
......
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only
menu "Aspeed SoC drivers"
config SOC_ASPEED if ARCH_ASPEED || COMPILE_TEST
def_bool y
depends on ARCH_ASPEED || COMPILE_TEST menu "ASPEED SoC drivers"
config ASPEED_LPC_CTRL config ASPEED_LPC_CTRL
depends on SOC_ASPEED && REGMAP && MFD_SYSCON tristate "ASPEED LPC firmware cycle control"
tristate "Aspeed ast2400/2500 HOST LPC to BMC bridge control" select REGMAP
select MFD_SYSCON
help help
Control Aspeed ast2400/2500 HOST LPC to BMC mappings through Control LPC firmware cycle mappings through ioctl()s. The driver
ioctl()s, the driver also provides a read/write interface to a BMC ram also provides a read/write interface to a BMC ram region where the
region where the host LPC read/write region can be buffered. host LPC read/write region can be buffered.
config ASPEED_LPC_SNOOP config ASPEED_LPC_SNOOP
tristate "Aspeed ast2500 HOST LPC snoop support" tristate "ASPEED LPC snoop support"
depends on SOC_ASPEED && REGMAP && MFD_SYSCON select REGMAP
select MFD_SYSCON
help help
Provides a driver to control the LPC snoop interface which Provides a driver to control the LPC snoop interface which
allows the BMC to listen on and save the data written by allows the BMC to listen on and save the data written by
the host to an arbitrary LPC I/O port. the host to an arbitrary LPC I/O port.
config ASPEED_P2A_CTRL config ASPEED_P2A_CTRL
depends on SOC_ASPEED && REGMAP && MFD_SYSCON tristate "ASPEED P2A (VGA MMIO to BMC) bridge control"
tristate "Aspeed ast2400/2500 HOST P2A VGA MMIO to BMC bridge control" select REGMAP
select MFD_SYSCON
help help
Control Aspeed ast2400/2500 HOST P2A VGA MMIO to BMC mappings through Control ASPEED P2A VGA MMIO to BMC mappings through ioctl()s. The
ioctl()s, the driver also provides an interface for userspace mappings to driver also provides an interface for userspace mappings to a
a pre-defined region. pre-defined region.
endmenu endmenu
endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment