]>
Commit | Line | Data |
---|---|---|
43bd194c SG |
1 | /* |
2 | * Copyright (c) 2011 The Chromium OS Authors. | |
1a459660 | 3 | * SPDX-License-Identifier: GPL-2.0+ |
43bd194c SG |
4 | */ |
5 | ||
6 | #include <common.h> | |
7 | ||
d99a6874 MW |
8 | #include <os.h> |
9 | ||
43bd194c SG |
10 | /* |
11 | * Pointer to initial global data area | |
12 | * | |
13 | * Here we initialize it. | |
14 | */ | |
15 | gd_t *gd; | |
16 | ||
17 | void flush_cache(unsigned long start, unsigned long size) | |
18 | { | |
19 | } | |
20 | ||
6994ccf8 MF |
21 | ulong get_tbclk(void) |
22 | { | |
23 | return CONFIG_SYS_HZ; | |
24 | } | |
25 | ||
26 | unsigned long long get_ticks(void) | |
27 | { | |
28 | return get_timer(0); | |
29 | } | |
30 | ||
43bd194c SG |
31 | ulong get_timer(ulong base) |
32 | { | |
d99a6874 | 33 | return (os_get_nsec() / 1000000) - base; |
43bd194c SG |
34 | } |
35 | ||
36 | int timer_init(void) | |
37 | { | |
38 | return 0; | |
39 | } | |
40 | ||
41 | int dram_init(void) | |
42 | { | |
a733b06b | 43 | gd->ram_size = CONFIG_SYS_SDRAM_SIZE; |
43bd194c SG |
44 | return 0; |
45 | } |