rk3188-board.c 596 字节
Newer Older
1
// SPDX-License-Identifier: GPL-2.0+
2 3 4 5 6 7 8 9
/*
 * (C) Copyright 2015 Google, Inc
 */

#include <common.h>
#include <clk.h>
#include <dm.h>
#include <ram.h>
10
#include <asm/gpio.h>
11
#include <asm/io.h>
12 13
#include <asm/arch-rockchip/periph.h>
#include <asm/arch-rockchip/boot_mode.h>
14

15 16 17 18 19
__weak int rk_board_late_init(void)
{
	return 0;
}

20 21
int board_late_init(void)
{
22
	setup_boot_mode();
23

24
	return rk_board_late_init();
25 26
}

27 28 29 30 31
int board_init(void)
{
	return 0;
}

32
#if !CONFIG_IS_ENABLED(SYS_DCACHE_OFF)
33 34 35 36 37 38
void enable_caches(void)
{
	/* Enable D-cache. I-cache is already enabled in start.S */
	dcache_enable();
}
#endif