sandbox: convert to common time functions
[karo-tx-uboot.git] / board / sandbox / sandbox / sandbox.c
1 /*
2  * Copyright (c) 2011 The Chromium OS Authors.
3  * SPDX-License-Identifier:     GPL-2.0+
4  */
5
6 #include <common.h>
7
8 #include <os.h>
9
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
21 unsigned long timer_read_counter(void)
22 {
23         return os_get_nsec() / 1000;
24 }
25
26 int timer_init(void)
27 {
28         return 0;
29 }
30
31 int dram_init(void)
32 {
33         gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
34         return 0;
35 }