From patchwork Tue Sep 27 09:29:05 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: 675453 X-Patchwork-Delegate: trini@ti.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 3sjwYL4538z9s65 for ; Tue, 27 Sep 2016 19:30:30 +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=BMvfndM4; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 54BB4A76F5; Tue, 27 Sep 2016 11:30:08 +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 7qb1hSl7pUju; Tue, 27 Sep 2016 11:30:08 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3AC60B386D; Tue, 27 Sep 2016 11:29:57 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E7E94B3848 for ; Tue, 27 Sep 2016 11:29:45 +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 8HNINblbhVN4 for ; Tue, 27 Sep 2016 11:29:45 +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-pa0-f68.google.com (mail-pa0-f68.google.com [209.85.220.68]) by theia.denx.de (Postfix) with ESMTPS id 18DC2B3812 for ; Tue, 27 Sep 2016 11:29:39 +0200 (CEST) Received: by mail-pa0-f68.google.com with SMTP id my20so479802pab.3 for ; Tue, 27 Sep 2016 02:29:39 -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=WM1VBpxWJ6S5C7SjN3bdpyPFoTAYC05a0up0YVdD3Sc=; b=BMvfndM4xMF+9eGP13a5iYRKzHbQT3KlMTVwwVi05pe0jmrjFx/AtE1M6BfILNrxPn eADO8fSnT+WG1IiHXFxbrtvsGxrVovgJGt0NQXDSyLlUuBdCFZuOZCFHZQ0z06hFda6t 6o+oXildV8xUIKJG83LJqxkQnCaLXERIbl4VjIhGbmmWBJodKu0oKQQMgF2ged6D1MMT ThBBpfKuMcsOSEgv+8rbChh/EiQUNvu8DozSLpfBiMgWwSa0XG7n1D2r4nxFIdcJ66AI iUiJDsRlBhRClFfUcW4rffbyeubB19Q9UvhHnCpC1yenqXKWXW6ihLw30U5d6bbbsoDP sfcA== 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=WM1VBpxWJ6S5C7SjN3bdpyPFoTAYC05a0up0YVdD3Sc=; b=WObGfhMNkV9Z0vxvPXFnKvtHQRYbmYo6qplSDnPTrN2vwtpwdA6AnGakTXY0MrFrAj 3/nh6mr7q2pispxowhCECdnX1oampN4gj0ry4D1ZYCLvSCaJdV36pXU6lLLpehX0uvnv eHfjPG4cDK47g2pfgXw07zN7F14CPWrw/Tlqo/KIDcQUKaBWL8wYTRZk3EQK3WXvYD8A j7kAjd5pnhVDw4iDfSUwK/UrArExnslWA9P+0Vi4HLAjcvjv7IhEeDfpKQIF8N/1Dctf aUCQF2Ef8U0Iwjw9xjhTmcpr1KoGiNxx5l5L8GhxillDJS0HXhfGKIb2V8I5uVCdZ77V 9+Hg== X-Gm-Message-State: AA6/9RmjwbNm04tclAjwEbwOGdB+z/H97iBYBaWv3yoOeZoepAKAmbc3nZnLVkCj2f+0dg== X-Received: by 10.66.135.140 with SMTP id ps12mr4539622pab.14.1474968578385; Tue, 27 Sep 2016 02:29:38 -0700 (PDT) Received: from localhost.localdomain (gate-zmy3.freescale.com. [192.88.167.1]) by smtp.gmail.com with ESMTPSA id i62sm3181030pfg.89.2016.09.27.02.29.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Sep 2016 02:29:37 -0700 (PDT) From: macro.wave.z@gmail.com X-Google-Original-From: hongbo.zhang@nxp.com To: u-boot@lists.denx.de, trini@konsulko.com Date: Tue, 27 Sep 2016 17:29:05 +0800 Message-Id: <1474968546-8285-6-git-send-email-hongbo.zhang@nxp.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1474968546-8285-1-git-send-email-hongbo.zhang@nxp.com> References: <1474968546-8285-1-git-send-email-hongbo.zhang@nxp.com> Subject: [U-Boot] [PATCH 5/6] ARMv8: Enable SMC instruction 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 PSCI implementation needs the SMC instruction to be enabled. Following the legacy codes pattern, no bit macro definition and bit operation are used, only the immediate data used in line is changed. Signed-off-by: Hongbo Zhang --- arch/arm/include/asm/macro.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/macro.h b/arch/arm/include/asm/macro.h index 9bb0efa..35ea002 100644 --- a/arch/arm/include/asm/macro.h +++ b/arch/arm/include/asm/macro.h @@ -137,7 +137,7 @@ lr .req x30 .macro armv8_switch_to_el2_m, xreg1 /* 64bit EL2 | HCE | SMD | RES1 (Bits[5:4]) | Non-secure EL0/EL1 */ - mov \xreg1, #0x5b1 + mov \xreg1, #0x531 msr scr_el3, \xreg1 msr cptr_el3, xzr /* Disable coprocessor traps to EL3 */ mov \xreg1, #0x33ff