From patchwork Thu Jul 21 10:09:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: macro.wave.z@gmail.com X-Patchwork-Id: 651134 X-Patchwork-Delegate: yorksun@freescale.com 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 3rw8gM0WFRz9sXx for ; Thu, 21 Jul 2016 20:10:55 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=ptb4yCvI; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D67A1A75A1; Thu, 21 Jul 2016 12:10:37 +0200 (CEST) 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 QWvE7TLZA5Ct; Thu, 21 Jul 2016 12:10:37 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5BF69A75F9; Thu, 21 Jul 2016 12:10:35 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 19943A75CA for ; Thu, 21 Jul 2016 12:10:30 +0200 (CEST) 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 JI08bLrU6nL6 for ; Thu, 21 Jul 2016 12:10:30 +0200 (CEST) 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-pf0-f195.google.com (mail-pf0-f195.google.com [209.85.192.195]) by theia.denx.de (Postfix) with ESMTPS id EF34CA75D1 for ; Thu, 21 Jul 2016 12:10:26 +0200 (CEST) Received: by mail-pf0-f195.google.com with SMTP id y134so5218303pfg.3 for ; Thu, 21 Jul 2016 03:10:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=BhWGGzQQrxpakhZOPVdSbRnP7+jmmFivGJ1Av4OnECc=; b=ptb4yCvI3quZhE+6ZMsIG+Sfg91m9uAIejJexA3PEq5eAhe/HJNB3uzhK6FtQZmjE4 zLKo2cLOoIXGViJJau3xA0r1mcrAB7pRZWTnex/Ah0PNmEZ9yB7Q5bwgIzOV2dMOGNtu TR1V5YxMJ29NrHcpGDfh2oopHM67AEV/kdSctZ+9QX+wJiy5qw1CDIrCRCT5onqh2Ym/ r65lL7TZT6PWdBq4Jk4EARDiyG5luyEDfSQMXN5AcSfC/96idNzpoclSqvNXPx1Ade3x qIy51+dOZVqLAxDbwy4kfyt2C7MfRR5zOk8GlIOKTgnpFRxKeo3bDsd95sg/MywkBgy7 tVGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=BhWGGzQQrxpakhZOPVdSbRnP7+jmmFivGJ1Av4OnECc=; b=KFH2ty4Uq+SuUJKGQW5TL1gmRufJkORVi1JIv3zeNQWtGWiYfzeL3bKXV6fjSO98rz K71H2GxLvOlhWN8N95hwA9hj6N1KX7qjbz4Jv7ytSb+ShuZYBXKn90rkSDaVaxncrYxl DExkm5/Fqf+vJzSKm35bstUW8SbCCMCSGdi+qgNLO2H53MwN6RumcDV5sTBH68tKbFiU uTHdnp6QNJ9tp2OyAajvTPQVrny7rEGxlifekqsuTlv/ZTc9GKZRZpCX2Xojw5xnPXB3 CAF6l7+x5SPi16w1euT+diAqatAmjRmMsZsFxCTv9v5VBXftnqO/2FgjemzmFBndCRlg QPIA== X-Gm-Message-State: ALyK8tLjwKKD+o5sbMsF58/McEsNXG/dM/4/tPYKpGx+bYo+pvR+x/CBf6gR9pqnpdwj3g== X-Received: by 10.98.4.193 with SMTP id 184mr71725243pfe.98.1469095825570; Thu, 21 Jul 2016 03:10:25 -0700 (PDT) Received: from ubuntu1504.ap.freescale.net (gate-zmy3.freescale.com. [192.88.167.1]) by smtp.gmail.com with ESMTPSA id p75sm10924081pfa.71.2016.07.21.03.10.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Jul 2016 03:10:25 -0700 (PDT) From: macro.wave.z@gmail.com X-Google-Original-From: hongbo.zhang@nxp.com To: u-boot@lists.denx.de, albert.u.boot@aribaud.net, marc.zyngier@arm.com, jan.kiszka@siemens.com, trini@konsulko.com, wens@csie.org, frank.li@freescale.com, peng.fan@freescale.com Date: Thu, 21 Jul 2016 18:09:39 +0800 Message-Id: <1469095779-8020-5-git-send-email-hongbo.zhang@nxp.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1469095779-8020-1-git-send-email-hongbo.zhang@nxp.com> References: <1469095779-8020-1-git-send-email-hongbo.zhang@nxp.com> Cc: lorenzo.pieralisi@arm.com, chenhui.zhao@nxp.com, jason.jin@nxp.com, alison.wang@nxp.com, sudeep.holla@arm.com, oss@buserror.net, twarren@nvidia.com, ijc@hellion.org.uk Subject: [U-Boot] [PATCH v6 4/4] ARMv7: PSCI: ls102xa: move secure text section into OCRAM 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" From: Hongbo Zhang LS1021 offers two secure OCRAM blocks for trustzone. This patch moves all the secure text sections into the OCRAM. Signed-off-by: Wang Dongsheng Signed-off-by: Hongbo Zhang --- arch/arm/include/asm/arch-ls102xa/config.h | 2 +- include/configs/ls1021aqds.h | 2 ++ include/configs/ls1021atwr.h | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/arch-ls102xa/config.h b/arch/arm/include/asm/arch-ls102xa/config.h index 7a0e4bf..4729044 100644 --- a/arch/arm/include/asm/arch-ls102xa/config.h +++ b/arch/arm/include/asm/arch-ls102xa/config.h @@ -10,7 +10,7 @@ #define CONFIG_SYS_CACHELINE_SIZE 64 #define OCRAM_BASE_ADDR 0x10000000 -#define OCRAM_SIZE 0x00020000 +#define OCRAM_SIZE 0x00010000 #define OCRAM_BASE_S_ADDR 0x10010000 #define OCRAM_S_SIZE 0x00010000 diff --git a/include/configs/ls1021aqds.h b/include/configs/ls1021aqds.h index ba3331f..47180f9 100644 --- a/include/configs/ls1021aqds.h +++ b/include/configs/ls1021aqds.h @@ -13,6 +13,8 @@ #define CONFIG_ARMV7_PSCI_1_0 #define CONFIG_ARMV7_PSCI_NR_CPUS CONFIG_MAX_CPUS +#define CONFIG_ARMV7_SECURE_BASE OCRAM_BASE_S_ADDR + #define CONFIG_SYS_FSL_CLK #define CONFIG_DISPLAY_CPUINFO diff --git a/include/configs/ls1021atwr.h b/include/configs/ls1021atwr.h index 96ad683..16b5d9c 100644 --- a/include/configs/ls1021atwr.h +++ b/include/configs/ls1021atwr.h @@ -13,6 +13,8 @@ #define CONFIG_ARMV7_PSCI_1_0 #define CONFIG_ARMV7_PSCI_NR_CPUS CONFIG_MAX_CPUS +#define CONFIG_ARMV7_SECURE_BASE OCRAM_BASE_S_ADDR + #define CONFIG_SYS_FSL_CLK #define CONFIG_DISPLAY_CPUINFO