summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-02-28 16:20:29 +1100
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-02-28 19:15:48 +1100
commit2f3f38e4d3d03dd4125cc9a1f49ab3cc91d8d670 (patch)
treeb628f78bb1382395b174411e9692687c60172593 /arch
parentaf87d2fe95444d107e0c0cf0ba7e20e6716a7bfd (diff)
downloadlinux-2f3f38e4d3d03dd4125cc9a1f49ab3cc91d8d670.tar.gz
linux-2f3f38e4d3d03dd4125cc9a1f49ab3cc91d8d670.tar.bz2
linux-2f3f38e4d3d03dd4125cc9a1f49ab3cc91d8d670.zip
powerpc/powernv: Fix opal_xscom_{read,write} prototype
The OPAL firmware functions opal_xscom_read and opal_xscom_write take a 64-bit argument for the XSCOM (PCB) address in order to support the indirect mode on P8. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> CC: <stable@vger.kernel.org> [v3.13]
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/include/asm/opal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/opal.h b/arch/powerpc/include/asm/opal.h
index 40157e2ca691..ed82142a3251 100644
--- a/arch/powerpc/include/asm/opal.h
+++ b/arch/powerpc/include/asm/opal.h
@@ -816,8 +816,8 @@ int64_t opal_pci_next_error(uint64_t phb_id, uint64_t *first_frozen_pe,
int64_t opal_pci_poll(uint64_t phb_id);
int64_t opal_return_cpu(void);
-int64_t opal_xscom_read(uint32_t gcid, uint32_t pcb_addr, __be64 *val);
-int64_t opal_xscom_write(uint32_t gcid, uint32_t pcb_addr, uint64_t val);
+int64_t opal_xscom_read(uint32_t gcid, uint64_t pcb_addr, __be64 *val);
+int64_t opal_xscom_write(uint32_t gcid, uint64_t pcb_addr, uint64_t val);
int64_t opal_lpc_write(uint32_t chip_id, enum OpalLPCAddressType addr_type,
uint32_t addr, uint32_t data, uint32_t sz);