summaryrefslogtreecommitdiff
path: root/include/e500.h
diff options
context:
space:
mode:
authorHaiying Wang <Haiying.Wang@freescale.com>2009-01-15 11:58:35 -0500
committerAndrew Fleming-AFLEMING <afleming@freescale.com>2009-01-23 17:03:14 -0600
commit2fc7eb0cfc608c9369001d57a0411af5e6a58f7c (patch)
tree2021c2d473dcefae9113894a8f8c3b6b1a9381f8 /include/e500.h
parentbf5b1f0c0d28ce062e1d368680632dfb099de692 (diff)
downloadu-boot-2fc7eb0cfc608c9369001d57a0411af5e6a58f7c.tar.gz
Add secondary CPUs processor frequency for e500 core
This patch updates e500 freqProcessor to array based on CONFIG_NUM_CPUS, and prints each CPU's frequency separately. It also fixes up each CPU's frequency in "clock-frequency" of fdt blob. Signed-off-by: James Yang <James.Yang@freescale.com> Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
Diffstat (limited to 'include/e500.h')
-rw-r--r--include/e500.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/e500.h b/include/e500.h
index 9d3c8417c0..4c5eeb74e1 100644
--- a/include/e500.h
+++ b/include/e500.h
@@ -8,9 +8,13 @@
#ifndef __ASSEMBLY__
+#ifndef CONFIG_NUM_CPUS
+#define CONFIG_NUM_CPUS 1
+#endif
+
typedef struct
{
- unsigned long freqProcessor;
+ unsigned long freqProcessor[CONFIG_NUM_CPUS];
unsigned long freqSystemBus;
unsigned long freqDDRBus;
unsigned long freqLocalBus;