diff options
author | Wolfgang Denk <wd@denx.de> | 2007-08-14 18:43:14 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2007-08-14 18:43:14 +0200 |
commit | 541d41b2f23182047c0d655ad8d795f33dd37df2 (patch) | |
tree | b6c9395bacc120d62415f45a0598a41ea0b5d018 /include/ppc440.h | |
parent | f01dbb5424a81453c81190dd30e945891466f621 (diff) | |
parent | 3b3bff4cbf2cb14f9a3e7d03f26ebab900efe4ae (diff) | |
download | u-boot-imx-541d41b2f23182047c0d655ad8d795f33dd37df2.zip u-boot-imx-541d41b2f23182047c0d655ad8d795f33dd37df2.tar.gz u-boot-imx-541d41b2f23182047c0d655ad8d795f33dd37df2.tar.bz2 |
Merge with /home/wd/git/u-boot/custodian/u-boot-ppc4xx
Diffstat (limited to 'include/ppc440.h')
-rw-r--r-- | include/ppc440.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/ppc440.h b/include/ppc440.h index 93c10f1..38809f3 100644 --- a/include/ppc440.h +++ b/include/ppc440.h @@ -3354,6 +3354,19 @@ typedef struct { unsigned long pciClkSync; /* PCI clock is synchronous */ } PPC440_SYS_INFO; +static inline u32 get_mcsr(void) +{ + u32 val; + + asm volatile("mfspr %0, 0x23c" : "=r" (val) :); + return val; +} + +static inline void set_mcsr(u32 val) +{ + asm volatile("mtspr 0x23c, %0" : "=r" (val) :); +} + #endif /* _ASMLANGUAGE */ #define RESET_VECTOR 0xfffffffc |