diff options
author | Alistair Popple <alistair@popple.id.au> | 2014-03-06 03:52:27 (GMT) |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-04-30 22:26:26 (GMT) |
commit | 2a2c74b2efcb1a0ca3fdcb5fbb96ad8de6a29177 (patch) | |
tree | 46f41ff197ece8795b6c11ca5eeb2782163b4427 /arch/powerpc/boot/dcr.h | |
parent | 6b11930f726c1d8a7c054f7a293621bce4c684c5 (diff) | |
download | linux-2a2c74b2efcb1a0ca3fdcb5fbb96ad8de6a29177.tar.xz |
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 cc73f7a..bf8f4ed 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 |