]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/sandbox/sandbox/sandbox.c
f471cb72125648d341d8003c8c1ca4a0cf78c53a
[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 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
31 ulong get_timer(ulong base)
32 {
33         return (os_get_nsec() / 1000000) - base;
34 }
35
36 int timer_init(void)
37 {
38         return 0;
39 }
40
41 int dram_init(void)
42 {
43         gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
44         return 0;
45 }