[rtems commit] bsps/powerpc: Support e6500 indentification
Sebastian Huber
sebh at rtems.org
Fri Jan 9 13:09:38 UTC 2015
Module: rtems
Branch: master
Commit: f6660bfba462b58daddbb05bc42b2d9dfc187dd7
Changeset: http://git.rtems.org/rtems/commit/?id=f6660bfba462b58daddbb05bc42b2d9dfc187dd7
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Dec 19 12:11:06 2014 +0100
bsps/powerpc: Support e6500 indentification
---
c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c | 11 +++++++++++
c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h | 1 +
2 files changed, 12 insertions(+)
diff --git a/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c b/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c
index a2bb180..76f0707 100644
--- a/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c
+++ b/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c
@@ -56,6 +56,7 @@ const char *get_ppc_cpu_type_name(ppc_cpu_id_t cpu)
case PPC_e200z6: return "e200z6";
case PPC_e200z7: return "e200z7";
case PPC_e500v2: return "e500v2";
+ case PPC_e6500: return "e6500";
default:
printk("Unknown CPU value of 0x%x. Please add it to "
"<libcpu/powerpc/shared/include/cpuIdent.c>\n", cpu );
@@ -131,6 +132,7 @@ ppc_cpu_id_t get_ppc_cpu_type(void)
case PPC_e300c2:
case PPC_e300c3:
case PPC_e500v2:
+ case PPC_e6500:
break;
default:
printk("Unknown PVR value of 0x%x. Please add it to "
@@ -177,6 +179,14 @@ ppc_cpu_id_t get_ppc_cpu_type(void)
}
switch ( current_ppc_cpu ) {
+ case PPC_e6500:
+ current_ppc_features.has_altivec = 1;
+ break;
+ default:
+ break;
+ }
+
+ switch ( current_ppc_cpu ) {
case PPC_405:
case PPC_405GP:
case PPC_405EX:
@@ -191,6 +201,7 @@ ppc_cpu_id_t get_ppc_cpu_type(void)
case PPC_e200z6:
case PPC_e200z7:
case PPC_e500v2:
+ case PPC_e6500:
current_ppc_features.is_bookE = PPC_BOOKE_E500;
default:
break;
diff --git a/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h b/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h
index 0231de7..1af5ac0 100644
--- a/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h
+++ b/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h
@@ -51,6 +51,7 @@ typedef enum
PPC_8245 = 0x8081,
PPC_8540 = 0x8020,
PPC_e500v2 = 0x8021,
+ PPC_e6500 = 0x8040,
PPC_603le = 0x8082, /* 603le core, in MGT5100 and MPC5200 */
PPC_e300c1 = 0x8083, /* e300c1 core, in MPC83xx*/
PPC_e300c2 = 0x8084, /* e300c2 core */
More information about the vc
mailing list