summaryrefslogtreecommitdiff
path: root/include/asm-ppc
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2003-01-05 15:12:58 +1100
committerPaul Mackerras <paulus@samba.org>2003-01-05 15:12:58 +1100
commit8934d67358594adfa5f4358ad1563a5eaf843f3f (patch)
treecd2c2d3a08a7890878ec22149845b4a64746ab6e /include/asm-ppc
parente8c2590042ecda10fbc8f63030a0f3f940064375 (diff)
PPC32: Extend CPU and idle handling for new 7xx/7xxx PPC cpus.
Diffstat (limited to 'include/asm-ppc')
-rw-r--r--include/asm-ppc/cputable.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/asm-ppc/cputable.h b/include/asm-ppc/cputable.h
index 2b9af2e719aa..0818267600b1 100644
--- a/include/asm-ppc/cputable.h
+++ b/include/asm-ppc/cputable.h
@@ -29,6 +29,10 @@
/* This structure can grow, it's real size is used by head.S code
* via the mkdefs mecanism.
*/
+struct cpu_spec;
+
+typedef void (*cpu_setup_t)(unsigned long offset, int cpu_nr, struct cpu_spec* spec);
+
struct cpu_spec {
/* CPU is matched via (PVR & pvr_mask) == pvr_value */
unsigned int pvr_mask;
@@ -45,7 +49,7 @@ struct cpu_spec {
/* this is called to initialize various CPU bits like L1 cache,
* BHT, SPD, etc... from head.S before branching to identify_machine
*/
- void (*cpu_setup)(int cpu_nr);
+ cpu_setup_t cpu_setup;
};
extern struct cpu_spec cpu_specs[];
@@ -66,6 +70,9 @@ extern struct cpu_spec *cur_cpu_spec[];
#define CPU_FTR_HPTE_TABLE 0x00000200
#define CPU_FTR_CAN_NAP 0x00000400
#define CPU_FTR_L3CR 0x00000800
+#define CPU_FTR_L3_DISABLE_NAP 0x00001000
+#define CPU_FTR_NAP_DISABLE_L2_PR 0x00002000
+#define CPU_FTR_DUAL_PLL_750FX 0x00004000
#define CPU_FTR_NO_DPM 0x00008000
#ifdef __ASSEMBLY__