misc: aspeed-lpc-ctrl: Enable FWH and A2H bridge cycles
authorJoel Stanley <joel@jms.id.au>
Mon, 19 Feb 2018 07:24:22 +0000 (17:54 +1030)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Mar 2018 17:20:51 +0000 (18:20 +0100)
commitf4d029098428da68b47eaba8094b5c0887a9edc8
tree9678ad190c2581b051061a5a35b711f2ef633dac
parent99aad9e3a9d28c1b998cb157c85e17db957e8ae5
misc: aspeed-lpc-ctrl: Enable FWH and A2H bridge cycles

To date this driver has relied on prevous state from out of tree hacks
and vendor u-boot trees in order to have the host be able to access
data over the LPC bus.

Now we explicitly enable the AHB to LPC bridge and FWH cycles from when
the user first configures the address to map. We chose to do this then
as before that time there is no way for the kernel to know where it is
safe to point the LPC window.

Tested-by: Lei YU <mine260309@gmail.com>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Cyril Bur <cyrilbur@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/aspeed-lpc-ctrl.c