1186681Sed/*
2186681Sed * Copyright 2014, General Dynamics C4 Systems
3186681Sed *
4186681Sed * This software may be distributed and modified according to the terms of
5186681Sed * the GNU General Public License version 2. Note that NO WARRANTY is provided.
6186681Sed * See "LICENSE_GPLv2.txt" for details.
7186681Sed *
8186681Sed * @TAG(GD_GPL)
9186681Sed */
10186681Sed
11186681Sed#include <config.h>
12186681Sed#include <types.h>
13186681Sed#include <machine/io.h>
14186681Sed#include <kernel/vspace.h>
15186681Sed#include <arch/machine.h>
16186681Sed#include <arch/kernel/vspace.h>
17186681Sed#include <plat/machine.h>
18186681Sed#include <linker.h>
19186681Sed#include <plat/machine/devices.h>
20186681Sed#include <plat/machine/hardware.h>
21186681Sed#include <arch/machine/generic_timer.h>
22186681Sed#include <plat/machine/mct.h>
23186681Sed
24186681Sedtimer_t *mct = (timer_t *) EXYNOS_MCT_PPTR;
25186681Sed
26186681SedBOOT_CODE void initTimer(void)
27186681Sed{
28186681Sed    mct_clear_write_status();
29186681Sed
30186681Sed    /* use the arm generic timer, backed by the mct */
31186681Sed    /* enable the timer */
32287776Sed    mct->global.tcon = GTCON_EN;
33186681Sed    while (mct->global.wstat != GWSTAT_TCON);
34186681Sed    mct->global.wstat = GWSTAT_TCON;
35186681Sed
36186681Sed    initGenericTimer();
37186681Sed}
38186681Sed
39287776Sedvoid plat_cleanL2Range(paddr_t start, paddr_t end) {}
40206141Sedvoid plat_invalidateL2Range(paddr_t start, paddr_t end) {}
41186681Sedvoid plat_cleanInvalidateL2Range(paddr_t start, paddr_t end) {}
42186681Sed
43186681Sed