summaryrefslogtreecommitdiff
path: root/include
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
parentbf5b1f0c0d28ce062e1d368680632dfb099de692 (diff)
downloadu-boot-imx-2fc7eb0cfc608c9369001d57a0411af5e6a58f7c.zip
u-boot-imx-2fc7eb0cfc608c9369001d57a0411af5e6a58f7c.tar.gz
u-boot-imx-2fc7eb0cfc608c9369001d57a0411af5e6a58f7c.tar.bz2
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')
-rw-r--r--include/e500.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/e500.h b/include/e500.h
index 9d3c841..4c5eeb7 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;