diff options
Diffstat (limited to 'arch/powerpc/boot/dcr.h')
-rw-r--r-- | arch/powerpc/boot/dcr.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/boot/dcr.h b/arch/powerpc/boot/dcr.h index 645a7c964e5f..cc73f7a95e26 100644 --- a/arch/powerpc/boot/dcr.h +++ b/arch/powerpc/boot/dcr.h | |||
@@ -9,6 +9,12 @@ | |||
9 | }) | 9 | }) |
10 | #define mtdcr(rn, val) \ | 10 | #define mtdcr(rn, val) \ |
11 | asm volatile("mtdcr %0,%1" : : "i"(rn), "r"(val)) | 11 | asm volatile("mtdcr %0,%1" : : "i"(rn), "r"(val)) |
12 | #define mfdcrx(rn) \ | ||
13 | ({ \ | ||
14 | unsigned long rval; \ | ||
15 | asm volatile("mfdcrx %0,%1" : "=r"(rval) : "r"(rn)); \ | ||
16 | rval; \ | ||
17 | }) | ||
12 | 18 | ||
13 | /* 440GP/440GX SDRAM controller DCRs */ | 19 | /* 440GP/440GX SDRAM controller DCRs */ |
14 | #define DCRN_SDRAM0_CFGADDR 0x010 | 20 | #define DCRN_SDRAM0_CFGADDR 0x010 |