summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/arm/pxa255/include/pxa255.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-10 15:34:12 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-10 15:34:12 +0000
commit142a9df16ac2ac8cd5254dd651a411716ef3ff08 (patch)
treebf46c60a5b77197dd5c7cc64b377f55987016436 /c/src/lib/libcpu/arm/pxa255/include/pxa255.h
parent2009-07-10 Xi Yang <hiyangxi@gmail.com> (diff)
downloadrtems-142a9df16ac2ac8cd5254dd651a411716ef3ff08.tar.bz2
2009-07-10 Xi Yang <hiyangxi@gmail.com>
* Makefile.am, pxa255/ffuart/ffuart.c, pxa255/include/pxa255.h, pxa255/pmc/pmc.c: Add PMC support.
Diffstat (limited to 'c/src/lib/libcpu/arm/pxa255/include/pxa255.h')
-rwxr-xr-xc/src/lib/libcpu/arm/pxa255/include/pxa255.h24
1 files changed, 16 insertions, 8 deletions
diff --git a/c/src/lib/libcpu/arm/pxa255/include/pxa255.h b/c/src/lib/libcpu/arm/pxa255/include/pxa255.h
index 1d0018aca1..e3d2767ccf 100755
--- a/c/src/lib/libcpu/arm/pxa255/include/pxa255.h
+++ b/c/src/lib/libcpu/arm/pxa255/include/pxa255.h
@@ -81,21 +81,29 @@ typedef unsigned int word_t;
#define XSCALE_CLOCKS_CCCR (*(volatile word_t *)(XSCALE_CLOCKS + 0x00))
-
/*Use ffuart port as the console*/
#define FFUART_BASE 0x40100000
-
-/*Write to KSYEYE_MAGIC_ADDRESS makes SKYEYE to exits*/
+/*Write to SKYEYE_MAGIC_ADDRESS to make SKYEYE exit*/
#define SKYEYE_MAGIC_ADDRESS (*(volatile word_t *)(0xb0000000))
#define SKYEYE_MAGIC_NUMBER (0xf0f0f0f0)
/*PMC*/
-/*Clock counter overflow flag*/
-#define CCOF (0x01<<10)
-#define ENABLE_CC_INT (0x01<<6)
-#define ENABLE_PMC_CC (0x01)
-#define RESET_CC (0x01<<2)
+#define PMC_PMNC 0
+#define PMC_CCNT 1
+#define PMC_INTEN 2
+#define PMC_FLAG 3
+#define PMC_EVTSEL 4
+#define PMC_PMN0 5
+#define PMC_PMN1 6
+#define PMC_PMN2 7
+#define PMC_PMN3 8
+
+#define PMC_PMNC_E (0x01)
+#define PMC_PMNC_PCR (0x01 << 1)
+#define PMC_PMNC_CCR (0x01 << 2)
+#define PMC_PMNC_CCD (0x01 << 3)
+#define PMC_PMNC_PCD (0x01 << 4)
#endif