From 3f2546b2ef55b661fd8dd69682b38992225e86f6 Mon Sep 17 00:00:00 2001 From: fishsoupisgood Date: Mon, 29 Apr 2019 01:17:54 +0100 Subject: Initial import of qemu-2.4.1 --- roms/u-boot/arch/arm/cpu/armv7/kona-common/Makefile | 9 +++++++++ .../arch/arm/cpu/armv7/kona-common/clk-stubs.c | 21 +++++++++++++++++++++ .../arch/arm/cpu/armv7/kona-common/hwinit-common.c | 16 ++++++++++++++++ roms/u-boot/arch/arm/cpu/armv7/kona-common/s_init.c | 12 ++++++++++++ 4 files changed, 58 insertions(+) create mode 100644 roms/u-boot/arch/arm/cpu/armv7/kona-common/Makefile create mode 100644 roms/u-boot/arch/arm/cpu/armv7/kona-common/clk-stubs.c create mode 100644 roms/u-boot/arch/arm/cpu/armv7/kona-common/hwinit-common.c create mode 100644 roms/u-boot/arch/arm/cpu/armv7/kona-common/s_init.c (limited to 'roms/u-boot/arch/arm/cpu/armv7/kona-common') diff --git a/roms/u-boot/arch/arm/cpu/armv7/kona-common/Makefile b/roms/u-boot/arch/arm/cpu/armv7/kona-common/Makefile new file mode 100644 index 00000000..da225cb4 --- /dev/null +++ b/roms/u-boot/arch/arm/cpu/armv7/kona-common/Makefile @@ -0,0 +1,9 @@ +# +# Copyright 2013 Broadcom Corporation. +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-y += s_init.o +obj-y += hwinit-common.o +obj-y += clk-stubs.o diff --git a/roms/u-boot/arch/arm/cpu/armv7/kona-common/clk-stubs.c b/roms/u-boot/arch/arm/cpu/armv7/kona-common/clk-stubs.c new file mode 100644 index 00000000..338e0e49 --- /dev/null +++ b/roms/u-boot/arch/arm/cpu/armv7/kona-common/clk-stubs.c @@ -0,0 +1,21 @@ +/* + * Copyright 2013 Broadcom Corporation. + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#include + +/* + * These weak functions are available to kona architectures that don't + * require clock enables from the driver code. + */ +int __weak clk_sdio_enable(void *base, u32 rate, u32 *actual_ratep) +{ + return 0; +} + +int __weak clk_bsc_enable(void *base, u32 rate, u32 *actual_ratep) +{ + return 0; +} diff --git a/roms/u-boot/arch/arm/cpu/armv7/kona-common/hwinit-common.c b/roms/u-boot/arch/arm/cpu/armv7/kona-common/hwinit-common.c new file mode 100644 index 00000000..2b3a8405 --- /dev/null +++ b/roms/u-boot/arch/arm/cpu/armv7/kona-common/hwinit-common.c @@ -0,0 +1,16 @@ +/* + * Copyright 2013 Broadcom Corporation. + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#include +#include + +#ifndef CONFIG_SYS_DCACHE_OFF +void enable_caches(void) +{ + /* Enable D-cache. I-cache is already enabled in start.S */ + dcache_enable(); +} +#endif diff --git a/roms/u-boot/arch/arm/cpu/armv7/kona-common/s_init.c b/roms/u-boot/arch/arm/cpu/armv7/kona-common/s_init.c new file mode 100644 index 00000000..6066a73c --- /dev/null +++ b/roms/u-boot/arch/arm/cpu/armv7/kona-common/s_init.c @@ -0,0 +1,12 @@ +/* + * Copyright 2014 Broadcom Corporation. + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +/* + * Early system init. Currently empty. + */ +void s_init(void) +{ +} -- cgit v1.2.3