bsps/powerpc: Support e6500 indentification

This commit is contained in:
Sebastian Huber
2014-12-19 12:11:06 +01:00
parent 06251bb415
commit f6660bfba4
2 changed files with 12 additions and 0 deletions

View File

@@ -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 "
@@ -176,6 +178,14 @@ ppc_cpu_id_t get_ppc_cpu_type(void)
break;
}
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:
@@ -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;

View File

@@ -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 */