diff options
author | Scott Branden <sbranden@broadcom.com> | 2014-08-11 13:58:22 -0700 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-08-30 07:46:40 -0400 |
commit | c4b4500910b2dac1dd2e02fb498c059688fb606a (patch) | |
tree | 6bf8e922455f18eb3f8dbdaaf205aa9b04c38db5 /arch/arm/cpu/armv7/iproc-common/hwinit-common.c | |
parent | b0e31c7b66314ccc64ce51fb1b3032946a5f74e3 (diff) | |
download | blackbird-obmc-uboot-c4b4500910b2dac1dd2e02fb498c059688fb606a.tar.gz blackbird-obmc-uboot-c4b4500910b2dac1dd2e02fb498c059688fb606a.zip |
arm: iproc: Initial commit of iproc architecture code
The iproc architecture code is present in several Broadcom
chip architectures, including Cygnus and NSP.
Signed-off-by: Scott Branden <sbranden@broadcom.com>
Signed-off-by: Steve Rae <srae@broadcom.com>
Diffstat (limited to 'arch/arm/cpu/armv7/iproc-common/hwinit-common.c')
-rw-r--r-- | arch/arm/cpu/armv7/iproc-common/hwinit-common.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/iproc-common/hwinit-common.c b/arch/arm/cpu/armv7/iproc-common/hwinit-common.c new file mode 100644 index 0000000000..7131524215 --- /dev/null +++ b/arch/arm/cpu/armv7/iproc-common/hwinit-common.c @@ -0,0 +1,15 @@ +/* + * Copyright 2014 Broadcom Corporation. + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#include <common.h> + +#ifndef CONFIG_SYS_DCACHE_OFF +void enable_caches(void) +{ + /* Enable D-cache. I-cache is already enabled in start.S */ + dcache_enable(); +} +#endif |