X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=arch%2Fpowerpc%2Finclude%2Fasm%2Fppc.h;h=e11f39801e552aa000075f4bebe9f991eb2273e6;hb=7fd697fd54eabd3cfe28414d9c05f65c8cfd9585;hp=27d3b83e070baaa2711d1bd760f8e74fa326481f;hpb=1e7cefef585c972ed40e016ba8739f5c5091254b;p=platform%2Fkernel%2Fu-boot.git diff --git a/arch/powerpc/include/asm/ppc.h b/arch/powerpc/include/asm/ppc.h index 27d3b83..e11f398 100644 --- a/arch/powerpc/include/asm/ppc.h +++ b/arch/powerpc/include/asm/ppc.h @@ -38,8 +38,15 @@ #include #endif +#include + #if defined(CONFIG_8xx) -uint get_immr(uint); +static inline uint get_immr(uint mask) +{ + uint immr = mfspr(SPRN_IMMR); + + return mask ? (immr & mask) : immr; +} #endif uint get_pvr(void); uint get_svr(void);