diff options
author | Alistair Popple <alistair@popple.id.au> | 2014-03-05 22:52:27 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-04-30 18:26:26 -0400 |
commit | 2a2c74b2efcb1a0ca3fdcb5fbb96ad8de6a29177 (patch) | |
tree | 46f41ff197ece8795b6c11ca5eeb2782163b4427 /arch/powerpc/boot/dcr.h | |
parent | 6b11930f726c1d8a7c054f7a293621bce4c684c5 (diff) |
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 @@ | |||
15 | asm volatile("mfdcrx %0,%1" : "=r"(rval) : "r"(rn)); \ | 15 | asm volatile("mfdcrx %0,%1" : "=r"(rval) : "r"(rn)); \ |
16 | rval; \ | 16 | rval; \ |
17 | }) | 17 | }) |
18 | #define mtdcrx(rn, val) \ | ||
19 | ({ \ | ||
20 | asm volatile("mtdcrx %0,%1" : : "r"(rn), "r" (val)); \ | ||
21 | }) | ||
18 | 22 | ||
19 | /* 440GP/440GX SDRAM controller DCRs */ | 23 | /* 440GP/440GX SDRAM controller DCRs */ |
20 | #define DCRN_SDRAM0_CFGADDR 0x010 | 24 | #define DCRN_SDRAM0_CFGADDR 0x010 |