aboutsummaryrefslogtreecommitdiff
path: root/core/lock.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-10-08 13:19:21 +1100
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-10-08 13:19:21 +1100
commit10fb2e543b666ec92f57068daf2c2d9b151c6ba2 (patch)
tree808c5ff7b6f174f69914abfc97bffb9013e84506 /core/lock.c
parent37d2ac7a132fb73cd83cd9c978e0e3e30325a6e0 (diff)
downloadskiboot-10fb2e543b666ec92f57068daf2c2d9b151c6ba2.zip
skiboot-10fb2e543b666ec92f57068daf2c2d9b151c6ba2.tar.gz
skiboot-10fb2e543b666ec92f57068daf2c2d9b151c6ba2.tar.bz2
ast/io: Fix a number of issues with SuperIO access
The code to access AST registers via the iLPC->AHB bridge was very fragile and relied on the SIO to be kept unlocked with the right device selected. This got broken when adding the new UART configuration among other things. Rework this to create a pair of get/put() helpers to use to access a given SIO device, which take care of doing the appropriate device selection when needed and also take/release the SIO spinlock. This fixes Flash/NVRAM setup which got broken along the way and also makes the fixup for the VUART interrupts actually work. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'core/lock.c')
0 files changed, 0 insertions, 0 deletions