summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/pp5002.h9
-rw-r--r--firmware/target/arm/system-pp5002.c4
2 files changed, 11 insertions, 2 deletions
diff --git a/firmware/export/pp5002.h b/firmware/export/pp5002.h
index 9636313390..0610da8bf1 100644
--- a/firmware/export/pp5002.h
+++ b/firmware/export/pp5002.h
@@ -116,6 +116,15 @@
116#define SER1_MASK (1 << SER1_IRQ) 116#define SER1_MASK (1 << SER1_IRQ)
117#define DMA_OUT_MASK (1 << DMA_OUT_IRQ) 117#define DMA_OUT_MASK (1 << DMA_OUT_IRQ)
118 118
119#define TIMING1_CTL (*(volatile unsigned long*)(0xcf004000))
120#define TIMING2_CTL (*(volatile unsigned long*)(0xcf004008))
121
122#define CLOCK_ENABLE (*(volatile unsigned long*)(0xcf005008))
123#define CLOCK_SOURCE (*(volatile unsigned long*)(0xcf00500c))
124#define CLOCK_DIV (*(volatile unsigned long*)(0xcf005010))
125#define PLL_DIV (*(volatile unsigned long*)(0xcf005018))
126#define PLL_MULT (*(volatile unsigned long*)(0xcf00501c))
127
119#define MMAP0_LOGICAL (*(volatile unsigned long*)(0xf000f000)) 128#define MMAP0_LOGICAL (*(volatile unsigned long*)(0xf000f000))
120#define MMAP0_PHYSICAL (*(volatile unsigned long*)(0xf000f004)) 129#define MMAP0_PHYSICAL (*(volatile unsigned long*)(0xf000f004))
121#define MMAP1_LOGICAL (*(volatile unsigned long*)(0xf000f008)) 130#define MMAP1_LOGICAL (*(volatile unsigned long*)(0xf000f008))
diff --git a/firmware/target/arm/system-pp5002.c b/firmware/target/arm/system-pp5002.c
index 20f68cc119..e8410df619 100644
--- a/firmware/target/arm/system-pp5002.c
+++ b/firmware/target/arm/system-pp5002.c
@@ -100,8 +100,8 @@ void set_cpu_frequency(long frequency)
100 outl(0x55, 0xcf00500c); 100 outl(0x55, 0xcf00500c);
101 outl(0x6000, 0xcf005010); 101 outl(0x6000, 0xcf005010);
102 102
103 /* Clock frequency = (24/8)*postmult */ 103 /* Clock frequency = (24/4)*postmult */
104 outl(8, 0xcf005018); 104 outl(4, 0xcf005018);
105 outl(postmult, 0xcf00501c); 105 outl(postmult, 0xcf00501c);
106 106
107 outl(0xe000, 0xcf005010); 107 outl(0xe000, 0xcf005010);