summaryrefslogtreecommitdiff
path: root/plat
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2016-05-03 01:33:06 +0100
committerAndre Przywara <andre.przywara@arm.com>2016-06-02 01:29:48 +0100
commit61e148c8a8370d87bed680fb015f94dc1c9833dd (patch)
treea30154a0f3d0accd72a1c4bf095dff730cd768c9 /plat
parent7edb4d1b8ae46c8f3837a77ea364024138a98e32 (diff)
PSCI: remove Allwinner debug messages
Spamming the (shared) console from firmware with debug messages on (PSCI) service calls is really a bad idea, so just remove those to keep the firmware silent. Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Diffstat (limited to 'plat')
-rw-r--r--plat/sun50iw1p1/sunxi_cpu_ops.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/plat/sun50iw1p1/sunxi_cpu_ops.c b/plat/sun50iw1p1/sunxi_cpu_ops.c
index 04978b1..6874232 100644
--- a/plat/sun50iw1p1/sunxi_cpu_ops.c
+++ b/plat/sun50iw1p1/sunxi_cpu_ops.c
@@ -91,10 +91,8 @@
int sun50i_power_switch_set(unsigned int cluster, unsigned int cpu, bool enable)
{
if (enable) {
- if (0x00 == readl(sun50i_prcm_base + SUNXI_CPU_PWR_CLAMP(cluster, cpu))) {
- NOTICE("%s: power switch enable already\n", __func__);
+ if (0x00 == readl(sun50i_prcm_base + SUNXI_CPU_PWR_CLAMP(cluster, cpu)))
return 0;
- }
/* de-active cpu power clamp */
writel(0xFE, sun50i_prcm_base + SUNXI_CPU_PWR_CLAMP(cluster, cpu));
@@ -114,10 +112,8 @@
while (0x00 != readl(sun50i_prcm_base + SUNXI_CPU_PWR_CLAMP(cluster, cpu)));
} else {
- if (0xFF == readl(sun50i_prcm_base + SUNXI_CPU_PWR_CLAMP(cluster, cpu))) {
- NOTICE("%s: power switch disable already\n", __func__);
+ if (0xFF == readl(sun50i_prcm_base + SUNXI_CPU_PWR_CLAMP(cluster, cpu)))
return 0;
- }
writel(0xFF, sun50i_prcm_base + SUNXI_CPU_PWR_CLAMP(cluster, cpu));
udelay(30);
@@ -173,7 +169,6 @@
writel(value, sun50i_cpucfg_base + SUNXI_DBG_REG0);
udelay(10);
bakery_lock_get(&plat_console_lock);
- INFO("sun50i power-up cluster-%d cpu-%d ok\n", cluster, cpu);
bakery_lock_release(&plat_console_lock);
}
@@ -202,7 +197,6 @@ void sun50i_cpu_power_down(unsigned int cluster, unsigned int cpu)
/* step10: Remove power from th e PDCPU power domain */
sun50i_power_switch_set(cluster, cpu, 0);
bakery_lock_get(&plat_console_lock);
- INFO("sun50i power-down cluster-%d cpu-%d ok.\n", cluster, cpu);
bakery_lock_release(&plat_console_lock);
}