]>
git.ipfire.org Git - people/ms/u-boot.git/blob - arch/arm/mach-rockchip/board.c
2 * (C) Copyright 2015 Google, Inc
4 * SPDX-License-Identifier: GPL-2.0+
13 DECLARE_GLOBAL_DATA_PTR
;
26 ret
= uclass_get_device(UCLASS_RAM
, 0, &dev
);
28 debug("DRAM init failed: %d\n", ret
);
31 ret
= ram_get_info(dev
, &ram
);
33 debug("Cannot get DRAM size: %d\n", ret
);
36 debug("SDRAM base=%lx, size=%x\n", ram
.base
, ram
.size
);
37 gd
->ram_size
= ram
.size
;
42 #ifndef CONFIG_SYS_DCACHE_OFF
43 void enable_caches(void)
45 /* Enable D-cache. I-cache is already enabled in start.S */
50 void lowlevel_init(void)
54 static int do_clock(cmd_tbl_t
*cmdtp
, int flag
, int argc
,
59 for (uclass_first_device(UCLASS_CLK
, &dev
);
61 uclass_next_device(&dev
)) {
64 rate
= clk_get_rate(dev
);
65 printf("%s: %lu\n", dev
->name
, rate
);
72 clock
, 2, 1, do_clock
,
73 "display information about clocks",