Message ID | 1322725164-4391-7-git-send-email-tony@bakeyournoodle.com (mailing list archive) |
---|---|
State | Accepted, archived |
Commit | 075bcf5879225d0c2a119c23d8046b890e051e81 |
Delegated to: | Josh Boyer |
Headers | show |
diff --git a/arch/powerpc/boot/dcr.h b/arch/powerpc/boot/dcr.h index 645a7c9..cc73f7a 100644 --- a/arch/powerpc/boot/dcr.h +++ b/arch/powerpc/boot/dcr.h @@ -9,6 +9,12 @@ }) #define mtdcr(rn, val) \ asm volatile("mtdcr %0,%1" : : "i"(rn), "r"(val)) +#define mfdcrx(rn) \ + ({ \ + unsigned long rval; \ + asm volatile("mfdcrx %0,%1" : "=r"(rval) : "r"(rn)); \ + rval; \ + }) /* 440GP/440GX SDRAM controller DCRs */ #define DCRN_SDRAM0_CFGADDR 0x010
Needed for currituck support. Signed-off-by: Tony Breeds <tony@bakeyournoodle.com> --- arch/powerpc/boot/dcr.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) I chose to use a #define to keep with the style of m[tf]dcr in the same file.