Skip to content

Commit

Permalink
powerpc/boot: Add mfdcrx
Browse files Browse the repository at this point in the history
Needed for currituck support.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Signed-off-by: Josh Boyer <jwboyer@gmail.com>
  • Loading branch information
Tony Breeds authored and Josh Boyer committed Dec 9, 2011
1 parent e32a032 commit 075bcf5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/powerpc/boot/dcr.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 075bcf5

Please sign in to comment.