powerpc/boot: Add mfdcrx
Needed for currituck support. Signed-off-by: Tony Breeds <tony@bakeyournoodle.com> Signed-off-by: Josh Boyer <jwboyer@gmail.com>
This commit is contained in:
parent
e32a03290c
commit
075bcf5879
1 changed files with 6 additions and 0 deletions
|
@ -9,6 +9,12 @@
|
||||||
})
|
})
|
||||||
#define mtdcr(rn, val) \
|
#define mtdcr(rn, val) \
|
||||||
asm volatile("mtdcr %0,%1" : : "i"(rn), "r"(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 */
|
/* 440GP/440GX SDRAM controller DCRs */
|
||||||
#define DCRN_SDRAM0_CFGADDR 0x010
|
#define DCRN_SDRAM0_CFGADDR 0x010
|
||||||
|
|
Loading…
Reference in a new issue