summaryrefslogtreecommitdiff
path: root/src/cpu/allwinner/a10/bootblock.c
blob: d470755453207cdaa35aee76a6a2c4eba512c403 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * Allwinner A10 bootblock initialization
 *
 * Copyright (C) 2013 Google Inc.
 * Copyright (C) 2013  Alexandru Gagniuc <mr.nuke.me@gmail.com>
 * Subject to the GNU GPL v2, or (at your option) any later version.
 */

#include <types.h>
#include <arch/cache.h>
#include <bootblock_common.h>

void bootblock_cpu_init(void)
{
	uint32_t sctlr;

	/* enable dcache */
	sctlr = read_sctlr();
	sctlr |= SCTLR_C;
	write_sctlr(sctlr);
}