diff options
Diffstat (limited to 'src/cpu/samsung/exynos5420/clk.h')
-rw-r--r-- | src/cpu/samsung/exynos5420/clk.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/cpu/samsung/exynos5420/clk.h b/src/cpu/samsung/exynos5420/clk.h index 3f97319076..83d4ad6320 100644 --- a/src/cpu/samsung/exynos5420/clk.h +++ b/src/cpu/samsung/exynos5420/clk.h @@ -23,6 +23,8 @@ #include <stdint.h> +#include "cpu.h" + enum periph_id; /* This master list of PLLs is ordered arbitrarily. */ @@ -56,8 +58,6 @@ unsigned long clock_get_periph_rate(enum periph_id peripheral); #include "pinmux.h" -#define MCT_ADDRESS 0x101c0000 - #define MCT_HZ 24000000 /* @@ -597,7 +597,10 @@ struct exynos5420_clock { uint32_t cmu_kfc_version; /* 0x1003bff0 */ }; -struct exynos5_mct_regs { +static struct exynos5420_clock * const exynos_clock = + (void *)EXYNOS5_CLOCK_BASE; + +struct exynos5_mct { uint32_t mct_cfg; uint8_t reserved0[0xfc]; uint32_t g_cnt_l; @@ -655,6 +658,9 @@ struct exynos5_mct_regs { uint32_t l1_wstat; }; +static struct exynos5_mct * const exynos_mct = + (void *)EXYNOS5_MULTI_CORE_TIMER_BASE; + #define EXYNOS5_EPLLCON0_LOCKED_SHIFT 29 /* EPLL Locked bit position*/ #define EPLL_SRC_CLOCK 24000000 /*24 MHz Cristal Input */ #define TIMEOUT_EPLL_LOCK 1000 |