From patchwork Tue Feb 10 06:17:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nobuhiro Iwamatsu X-Patchwork-Id: 438213 X-Patchwork-Delegate: iwamatsu@nigauri.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 67D0A14012A for ; Tue, 10 Feb 2015 17:18:16 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1C9594B576; Tue, 10 Feb 2015 07:18:14 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XFIZgpLB0b2D; Tue, 10 Feb 2015 07:18:13 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 18CD14A05D; Tue, 10 Feb 2015 07:18:13 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B05CC4A05D for ; Tue, 10 Feb 2015 07:18:08 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yUPrJFoCf519 for ; Tue, 10 Feb 2015 07:18:08 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49]) by theia.denx.de (Postfix) with ESMTPS id 3E2CC4A04A for ; Tue, 10 Feb 2015 07:18:06 +0100 (CET) Received: by mail-pa0-f49.google.com with SMTP id fb1so24080287pad.8 for ; Mon, 09 Feb 2015 22:18:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=xlZLdIiSXzHkhgMAliJ1JrgsqRVL7uJW5fQJwycRA/Q=; b=gXxxRgYb4ZEVVhxLvVtCzKs4eAUkk/+PAGn8RjwzKqiy24CS9981ZPotuvvQxlG1/b H+Mp889Q6y0q/eAhglKpOH35n+gNaKzWmEjPORb3NDAQx9131O37sozbq3oAwTaFV+pQ 6ZXq2kzr3YIJltOjcEsLdzzfWRhGNgFn+nKGFaoaXexaDDP6TdIp+/8tmaDG2Hhw4FUK tWfSBJsibDGQv0pDduACwVXXCRQhcAFdJM9HA/sd5yGF2KZBz2SOHQQ97lbzg829689p +SkDmm5eH6p+rgTRIomKvfo6JcieUPsMvoRcS9JYvRstQ4CMJkLVkS44gO02LUJlaMAN KW4A== X-Gm-Message-State: ALoCoQkOFQgmXgWlU1xQEvufm5FUyYV2v3o9SyD6j8ush+D20kaJMmlmUZcdKgb8M+cM2KkJHUM8 X-Received: by 10.70.129.200 with SMTP id ny8mr2124550pdb.17.1423549084986; Mon, 09 Feb 2015 22:18:04 -0800 (PST) Received: from xps-iwamatsu.renesas.com (49.14.32.202.bf.2iij.net. [202.32.14.49]) by mx.google.com with ESMTPSA id v2sm3707585pdo.69.2015.02.09.22.18.02 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 09 Feb 2015 22:18:03 -0800 (PST) From: Nobuhiro Iwamatsu To: u-boot@lists.denx.de, Nobuhiro Iwamatsu Date: Tue, 10 Feb 2015 15:17:54 +0900 Message-Id: <1423549074-25172-1-git-send-email-nobuhiro.iwamatsu.yj@renesas.com> X-Mailer: git-send-email 2.1.3 Cc: Nobuhiro Iwamatsu Subject: [U-Boot] [PATCH v2] arm: rmobile: r8a7794: Enable SMP mode of Auxiliary Control Register X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" r8a7794 uses ARM SoC of CA7 base. If we want to use dcache on CA7, we need to enable SMP bit of Auxiliary Control Register. Signed-off-by: Nobuhiro Iwamatsu --- v2: Add CONFIG_DCACHE_OFF. arch/arm/cpu/armv7/rmobile/lowlevel_init_ca15.S | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7/rmobile/lowlevel_init_ca15.S b/arch/arm/cpu/armv7/rmobile/lowlevel_init_ca15.S index d47546a..a5dbbea 100644 --- a/arch/arm/cpu/armv7/rmobile/lowlevel_init_ca15.S +++ b/arch/arm/cpu/armv7/rmobile/lowlevel_init_ca15.S @@ -40,7 +40,7 @@ do_lowlevel_init: and r1, r1, #0x7F00 lsrs r1, r1, #8 cmp r1, #0x4C /* 0x4C is ID of r8a7794 */ - beq _exit_init_l2_a15 + beq _enable_actlr_smp /* surpress wfe if ca15 */ tst r4, #4 @@ -64,6 +64,16 @@ do_lowlevel_init: orrne r0, r0, #0x20 /* L2CTLR[5] */ #endif mcrne p15, 1, r0, c9, c0, 2 + + b _exit_init_l2_a15 + +_enable_actlr_smp: /* R8A7794 only (CA7) */ +#ifndef CONFIG_DCACHE_OFF + mrc p15, 0, r0, c1, c0, 1 + orr r0, r0, #0x40 + mcr p15, 0, r0, c1, c0, 1 +#endif + _exit_init_l2_a15: ldr r3, =(CONFIG_SYS_INIT_SP_ADDR) sub sp, r3, #4