summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/s5l8700.h2
-rw-r--r--firmware/target/arm/s5l8700/system-target.h14
2 files changed, 8 insertions, 8 deletions
diff --git a/firmware/export/s5l8700.h b/firmware/export/s5l8700.h
index 98021099d8..47b34808b6 100644
--- a/firmware/export/s5l8700.h
+++ b/firmware/export/s5l8700.h
@@ -25,7 +25,7 @@
25#define REG16_PTR_T volatile uint16_t * 25#define REG16_PTR_T volatile uint16_t *
26#define REG32_PTR_T volatile uint32_t * 26#define REG32_PTR_T volatile uint32_t *
27 27
28#define TIMER_FREQ 47923200L 28#define TIMER_FREQ (1843200 * 4 * 26 / 1 / 4) /* 47923200 Hz */
29 29
30#define CACHEALIGN_BITS (4) /* 2^4 = 16 bytes */ 30#define CACHEALIGN_BITS (4) /* 2^4 = 16 bytes */
31 31
diff --git a/firmware/target/arm/s5l8700/system-target.h b/firmware/target/arm/s5l8700/system-target.h
index adc0eb6bfe..170794a999 100644
--- a/firmware/target/arm/s5l8700/system-target.h
+++ b/firmware/target/arm/s5l8700/system-target.h
@@ -25,18 +25,18 @@
25#include "mmu-arm.h" 25#include "mmu-arm.h"
26 26
27#define CPUFREQ_SLEEP 32768 27#define CPUFREQ_SLEEP 32768
28#define CPUFREQ_DEFAULT 47923200 28#define CPUFREQ_MAX (1843200 * 4 * 26 / 1) /* 191692800 Hz */
29#define CPUFREQ_NORMAL 47923200 29#define CPUFREQ_DEFAULT (CPUFREQ_MAX/4) /* 47923200 Hz */
30#define CPUFREQ_MAX 191692800 30#define CPUFREQ_NORMAL (CPUFREQ_MAX/4)
31 31
32#define STORAGE_WANTS_ALIGN 32#define STORAGE_WANTS_ALIGN
33 33
34#define inl(a) (*(volatile unsigned long *) (a)) 34#define inl(a) (*(volatile unsigned long *) (a))
35#define outl(a,b) (*(volatile unsigned long *) (b) = (a)) 35#define outl(a,b) (*(volatile unsigned long *) (b) = (a))
36#define inb(a) (*(volatile unsigned char *) (a)) 36#define inb(a) (*(volatile unsigned char *) (a))
37#define outb(a,b) (*(volatile unsigned char *) (b) = (a)) 37#define outb(a,b) (*(volatile unsigned char *) (b) = (a))
38#define inw(a) (*(volatile unsigned short *) (a)) 38#define inw(a) (*(volatile unsigned short*) (a))
39#define outw(a,b) (*(volatile unsigned short *) (b) = (a)) 39#define outw(a,b) (*(volatile unsigned short*) (b) = (a))
40 40
41static inline void udelay(unsigned usecs) 41static inline void udelay(unsigned usecs)
42{ 42{