diff options
author | Alistair Popple <alistair@popple.id.au> | 2014-03-06 14:52:27 +1100 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-05-01 08:26:26 +1000 |
commit | 2a2c74b2efcb1a0ca3fdcb5fbb96ad8de6a29177 (patch) | |
tree | 46f41ff197ece8795b6c11ca5eeb2782163b4427 /arch/powerpc/boot/dcr.h | |
parent | 6b11930f726c1d8a7c054f7a293621bce4c684c5 (diff) | |
download | lwn-2a2c74b2efcb1a0ca3fdcb5fbb96ad8de6a29177.tar.gz lwn-2a2c74b2efcb1a0ca3fdcb5fbb96ad8de6a29177.zip |
IBM Akebono: Add the Akebono platform
This patch adds support for the IBM Akebono board.
Signed-off-by: Alistair Popple <alistair@popple.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/boot/dcr.h')
-rw-r--r-- | arch/powerpc/boot/dcr.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/boot/dcr.h b/arch/powerpc/boot/dcr.h index cc73f7a95e26..bf8f4ede1928 100644 --- a/arch/powerpc/boot/dcr.h +++ b/arch/powerpc/boot/dcr.h @@ -15,6 +15,10 @@ asm volatile("mfdcrx %0,%1" : "=r"(rval) : "r"(rn)); \ rval; \ }) +#define mtdcrx(rn, val) \ + ({ \ + asm volatile("mtdcrx %0,%1" : : "r"(rn), "r" (val)); \ + }) /* 440GP/440GX SDRAM controller DCRs */ #define DCRN_SDRAM0_CFGADDR 0x010 |