diff options
author | Michal Simek <monstr@monstr.eu> | 2010-08-13 06:47:42 -0400 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2010-10-21 01:51:57 -0400 |
commit | 8e2ad016b20f98790d5995aae1d157d1613ab9e6 (patch) | |
tree | e1eb651eff6d7f45c0a3e8316a26112611ad5f4d /arch/microblaze/include/asm/pvr.h | |
parent | 44180a573ec936cd989a7c0478f5fd1cf8e1ebc3 (diff) |
microblaze: Add PVR for endians plus detection
Upcomming microblaze version will support little-endian.
Signed-off-by: Michal Simek <monstr@monstr.eu>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'arch/microblaze/include/asm/pvr.h')
-rw-r--r-- | arch/microblaze/include/asm/pvr.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/microblaze/include/asm/pvr.h b/arch/microblaze/include/asm/pvr.h index 316105531d55..37db96a15b45 100644 --- a/arch/microblaze/include/asm/pvr.h +++ b/arch/microblaze/include/asm/pvr.h | |||
@@ -32,6 +32,7 @@ struct pvr_s { | |||
32 | #define PVR0_USE_DCACHE_MASK 0x01000000 | 32 | #define PVR0_USE_DCACHE_MASK 0x01000000 |
33 | #define PVR0_USE_MMU 0x00800000 | 33 | #define PVR0_USE_MMU 0x00800000 |
34 | #define PVR0_USE_BTC 0x00400000 | 34 | #define PVR0_USE_BTC 0x00400000 |
35 | #define PVR0_ENDI 0x00200000 | ||
35 | #define PVR0_VERSION_MASK 0x0000FF00 | 36 | #define PVR0_VERSION_MASK 0x0000FF00 |
36 | #define PVR0_USER1_MASK 0x000000FF | 37 | #define PVR0_USER1_MASK 0x000000FF |
37 | 38 | ||
@@ -209,6 +210,8 @@ struct pvr_s { | |||
209 | #define PVR_MMU_TLB_ACCESS(pvr) (pvr.pvr[11] & PVR11_MMU_TLB_ACCESS) | 210 | #define PVR_MMU_TLB_ACCESS(pvr) (pvr.pvr[11] & PVR11_MMU_TLB_ACCESS) |
210 | #define PVR_MMU_ZONES(pvr) (pvr.pvr[11] & PVR11_MMU_ZONES) | 211 | #define PVR_MMU_ZONES(pvr) (pvr.pvr[11] & PVR11_MMU_ZONES) |
211 | 212 | ||
213 | /* endian */ | ||
214 | #define PVR_ENDIAN(pvr) (pvr.pvr[0] & PVR0_ENDI) | ||
212 | 215 | ||
213 | int cpu_has_pvr(void); | 216 | int cpu_has_pvr(void); |
214 | void get_pvr(struct pvr_s *pvr); | 217 | void get_pvr(struct pvr_s *pvr); |