forked from Imagelibrary/rtems
2011-08-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
* new-exceptions/bspsupport/ppc_exc_categories.c, shared/include/cpuIdent.c, shared/include/cpuIdent.h: Support e200z7.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2011-08-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||||
|
|
||||||
|
* new-exceptions/bspsupport/ppc_exc_categories.c,
|
||||||
|
shared/include/cpuIdent.c, shared/include/cpuIdent.h: Support e200z7.
|
||||||
|
|
||||||
2011-08-30 Peter Dufault <dufault@hda.com>
|
2011-08-30 Peter Dufault <dufault@hda.com>
|
||||||
|
|
||||||
* mpc55xx/misc/flash_support.c: New file.
|
* mpc55xx/misc/flash_support.c: New file.
|
||||||
|
|||||||
@@ -275,6 +275,7 @@ const ppc_exc_categories *ppc_exc_categories_for_cpu(ppc_cpu_id_t cpu)
|
|||||||
case PPC_e200z0:
|
case PPC_e200z0:
|
||||||
case PPC_e200z1:
|
case PPC_e200z1:
|
||||||
case PPC_e200z6:
|
case PPC_e200z6:
|
||||||
|
case PPC_e200z7:
|
||||||
return &e200_category_table;
|
return &e200_category_table;
|
||||||
case PPC_5XX:
|
case PPC_5XX:
|
||||||
return &mpc_5xx_category_table;
|
return &mpc_5xx_category_table;
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ char *get_ppc_cpu_type_name(ppc_cpu_id_t cpu)
|
|||||||
case PPC_e200z0: return "e200z0";
|
case PPC_e200z0: return "e200z0";
|
||||||
case PPC_e200z1: return "e200z1";
|
case PPC_e200z1: return "e200z1";
|
||||||
case PPC_e200z6: return "e200z6";
|
case PPC_e200z6: return "e200z6";
|
||||||
|
case PPC_e200z7: return "e200z7";
|
||||||
case PPC_e500v2: return "e500v2";
|
case PPC_e500v2: return "e500v2";
|
||||||
default:
|
default:
|
||||||
printk("Unknown CPU value of 0x%x. Please add it to "
|
printk("Unknown CPU value of 0x%x. Please add it to "
|
||||||
@@ -66,12 +67,14 @@ ppc_cpu_id_t get_ppc_cpu_type(void)
|
|||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* cpu types listed here have the lowermost nibble as a version identifier
|
* cpu types listed here have the lowermost nibble as a version identifier
|
||||||
* we will tweak them to the starndard version
|
* we will tweak them to the standard version
|
||||||
*/
|
*/
|
||||||
const uint32_t ppc_cpu_id_version_nibble[] = {
|
const uint32_t ppc_cpu_id_version_nibble[] = {
|
||||||
PPC_e200z6,
|
|
||||||
PPC_e200z0,
|
PPC_e200z0,
|
||||||
PPC_e200z1};
|
PPC_e200z1,
|
||||||
|
PPC_e200z6,
|
||||||
|
PPC_e200z7
|
||||||
|
};
|
||||||
|
|
||||||
unsigned int pvr;
|
unsigned int pvr;
|
||||||
int i;
|
int i;
|
||||||
@@ -120,6 +123,7 @@ ppc_cpu_id_t get_ppc_cpu_type(void)
|
|||||||
case PPC_e200z0:
|
case PPC_e200z0:
|
||||||
case PPC_e200z1:
|
case PPC_e200z1:
|
||||||
case PPC_e200z6:
|
case PPC_e200z6:
|
||||||
|
case PPC_e200z7:
|
||||||
case PPC_e300c1:
|
case PPC_e300c1:
|
||||||
case PPC_e300c2:
|
case PPC_e300c2:
|
||||||
case PPC_e300c3:
|
case PPC_e300c3:
|
||||||
@@ -179,6 +183,7 @@ ppc_cpu_id_t get_ppc_cpu_type(void)
|
|||||||
case PPC_e200z0:
|
case PPC_e200z0:
|
||||||
case PPC_e200z1:
|
case PPC_e200z1:
|
||||||
case PPC_e200z6:
|
case PPC_e200z6:
|
||||||
|
case PPC_e200z7:
|
||||||
case PPC_e500v2:
|
case PPC_e500v2:
|
||||||
current_ppc_features.is_bookE = PPC_BOOKE_E500;
|
current_ppc_features.is_bookE = PPC_BOOKE_E500;
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -56,10 +56,10 @@ typedef enum
|
|||||||
PPC_e300c1 = 0x8083, /* e300c1 core, in MPC83xx*/
|
PPC_e300c1 = 0x8083, /* e300c1 core, in MPC83xx*/
|
||||||
PPC_e300c2 = 0x8084, /* e300c2 core */
|
PPC_e300c2 = 0x8084, /* e300c2 core */
|
||||||
PPC_e300c3 = 0x8085, /* e300c3 core */
|
PPC_e300c3 = 0x8085, /* e300c3 core */
|
||||||
PPC_e200z0 = 0x8171,
|
PPC_e200z0 = 0x8170,
|
||||||
PPC_e200z1 = 0x8144,
|
PPC_e200z1 = 0x8140,
|
||||||
PPC_e200z6 = 0x8112,
|
PPC_e200z6 = 0x8110,
|
||||||
PPC_e200z6v5= 0x8115,
|
PPC_e200z7 = 0x8160,
|
||||||
PPC_PSIM = 0xfffe, /* GDB PowerPC simulator -- fake version */
|
PPC_PSIM = 0xfffe, /* GDB PowerPC simulator -- fake version */
|
||||||
PPC_UNKNOWN = 0xffff
|
PPC_UNKNOWN = 0xffff
|
||||||
} ppc_cpu_id_t;
|
} ppc_cpu_id_t;
|
||||||
|
|||||||
Reference in New Issue
Block a user