diff options
author | Andrew Jeffery <andrew@aj.id.au> | 2017-02-20 18:23:00 +0300 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2017-02-20 20:00:48 +0300 |
commit | eb994594bc22220976f367c03ffa141580aa45e4 (patch) | |
tree | 293b499831e468cf9d4a0f25fd7aca540fbe91f8 /drivers/char/ipmi/Kconfig | |
parent | db3b7e134185b27e6073618c1ad7eca1e4473eb4 (diff) | |
download | linux-eb994594bc22220976f367c03ffa141580aa45e4.tar.xz |
ipmi: bt-bmc: Use a regmap for register access
The registers for the bt-bmc device live under the Aspeed LPC
controller. Devicetree bindings have recently been introduced for the
LPC controller where the "host" portion of the LPC register space is
described as a syscon device. Future devicetrees describing the bt-bmc
device should nest its node under the appropriate "simple-mfd", "syscon"
compatible node.
This change allows the bt-bmc driver to function with both syscon and
non-syscon- based devicetree descriptions by always using a regmap for
register access, either retrieved from the parent syscon device or
instantiated if none exists.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'drivers/char/ipmi/Kconfig')
-rw-r--r-- | drivers/char/ipmi/Kconfig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/char/ipmi/Kconfig b/drivers/char/ipmi/Kconfig index 7f816655cbbf..90f3edffb067 100644 --- a/drivers/char/ipmi/Kconfig +++ b/drivers/char/ipmi/Kconfig @@ -78,7 +78,8 @@ config IPMI_POWEROFF endif # IPMI_HANDLER config ASPEED_BT_IPMI_BMC - depends on ARCH_ASPEED + depends on ARCH_ASPEED || COMPILE_TEST + depends on REGMAP && REGMAP_MMIO && MFD_SYSCON tristate "BT IPMI bmc driver" help Provides a driver for the BT (Block Transfer) IPMI interface |