summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv7/kona-common/clk-stubs.c
diff options
context:
space:
mode:
authorDarwin Rambo <drambo@broadcom.com>2014-02-11 11:06:33 -0800
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2014-02-22 19:30:18 +0100
commitb3134fce890754ceb33fe79d7b0d8f78ee83129f (patch)
tree560a4e0b41be662231458c2faf93df7f3048c126 /arch/arm/cpu/armv7/kona-common/clk-stubs.c
parent1998a1a6c32d5e3ed729e0e08867d6f8fa97df50 (diff)
arch: kona: Initial commit of kona-common architecture code
The Kona architecture is present on a number of Broadcom mobile SoCs including the bcm281xx family of chips. Signed-off-by: Darwin Rambo <drambo@broadcom.com> Reviewed-by: Steve Rae <srae@broadcom.com> Reviewed-by: Tim Kryger <tkryger@linaro.org>
Diffstat (limited to 'arch/arm/cpu/armv7/kona-common/clk-stubs.c')
-rw-r--r--arch/arm/cpu/armv7/kona-common/clk-stubs.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/kona-common/clk-stubs.c b/arch/arm/cpu/armv7/kona-common/clk-stubs.c
new file mode 100644
index 0000000000..338e0e4962
--- /dev/null
+++ b/arch/arm/cpu/armv7/kona-common/clk-stubs.c
@@ -0,0 +1,21 @@
+/*
+ * Copyright 2013 Broadcom Corporation.
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#include <common.h>
+
+/*
+ * 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;
+}