diff options
author | Aaron Durbin <adurbin@chromium.org> | 2016-05-18 11:08:39 -0500 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2016-05-19 17:11:33 +0200 |
commit | bea930d7e483e777b3b7ed88632b030a31d1dc4b (patch) | |
tree | 48cf13ccc2d21e371d94d25e01df152d18607535 /src/soc/intel/apollolake/include | |
parent | 0f7885722e4ad1ba76f944f796b535ba66fbf2b3 (diff) |
soc/intel/apollolake: clear up ACPI timer emulation magic constant
The timer emulation works by deriving a frequency based off the
Common Timer Copy with a frequency of 19.2MHz.
The desired frequency = (19.2MHz * multiplier) >> 32;
With that knowledge update the code to let the compiler perform
the necessary math based on target frequency.
Change-Id: I716c7980f0456a7c6072bbaaddd6b7fcd8cd5b37
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/14889
Tested-by: build bot (Jenkins)
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Andrey Petrov <andrey.petrov@intel.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/soc/intel/apollolake/include')
-rw-r--r-- | src/soc/intel/apollolake/include/soc/cpu.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/soc/intel/apollolake/include/soc/cpu.h b/src/soc/intel/apollolake/include/soc/cpu.h index b731d4f539..78fc0b0df6 100644 --- a/src/soc/intel/apollolake/include/soc/cpu.h +++ b/src/soc/intel/apollolake/include/soc/cpu.h @@ -37,4 +37,7 @@ void apollolake_init_cpus(struct device *dev); #define BASE_CLOCK_MHZ 100 +/* Common Timer Copy (CTC) frequency - 19.2MHz. */ +#define CTC_FREQ 19200000 + #endif /* _SOC_APOLLOLAKE_CPU_H_ */ |