diff options
author | Alex Elder <elder@linaro.org> | 2014-04-21 16:53:11 -0500 |
---|---|---|
committer | Matt Porter <mporter@linaro.org> | 2014-04-25 08:51:38 -0400 |
commit | eeda4cb92ee0fb63a5917738e107b0bc8168079e (patch) | |
tree | d672efde52524122bf0b3a6b278e8d0935ff42cb /arch/arm/mach-bcm/kona.c | |
parent | ed24f446ab82e3f39c4a45357186ca76368301e4 (diff) | |
download | op-kernel-dev-eeda4cb92ee0fb63a5917738e107b0bc8168079e.zip op-kernel-dev-eeda4cb92ee0fb63a5917738e107b0bc8168079e.tar.gz |
ARM: bcm: rename "kona.h" and "kona.c"
These source files contain only level-2 cache initialization code,
so rename them to make that fact more obvious.
Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Tim Kryger <tim.kryger@linaro.org>
Reviewed-by: Markus Mayer <markus.mayer@linaro.org>
Reviewed-by: Matt Porter <mporter@linaro.org>
Signed-off-by: Matt Porter <mporter@linaro.org>
Diffstat (limited to 'arch/arm/mach-bcm/kona.c')
-rw-r--r-- | arch/arm/mach-bcm/kona.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/arch/arm/mach-bcm/kona.c b/arch/arm/mach-bcm/kona.c deleted file mode 100644 index b319703..0000000 --- a/arch/arm/mach-bcm/kona.c +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2012-2014 Broadcom Corporation - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation version 2. - * - * This program is distributed "as is" WITHOUT ANY WARRANTY of any - * kind, whether express or implied; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - - -#include <linux/init.h> -#include <linux/printk.h> -#include <asm/hardware/cache-l2x0.h> - -#include "bcm_kona_smc.h" - -void __init kona_l2_cache_init(void) -{ - unsigned int result; - int ret; - - ret = bcm_kona_smc_init(); - if (ret) { - pr_info("Secure API not available (%d). Skipping L2 init.\n", - ret); - return; - } - - result = bcm_kona_smc(SSAPI_ENABLE_L2_CACHE, 0, 0, 0, 0); - if (result != SEC_ROM_RET_OK) { - pr_err("Secure Monitor call failed (%u)! Skipping L2 init.\n", - result); - return; - } - - /* - * The aux_val and aux_mask have no effect since L2 cache is already - * enabled. Pass 0s for aux_val and 1s for aux_mask for default value. - */ - ret = l2x0_of_init(0, ~0); - if (ret) - pr_err("Couldn't enable L2 cache: %d\n", ret); -} |