From patchwork Wed Jul 3 13:50:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Opaniuk X-Patchwork-Id: 1126897 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="UgBUfd3k"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45f2Yv1Pcwz9s3Z for ; Wed, 3 Jul 2019 23:50:43 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 1E3B5C21DB6; Wed, 3 Jul 2019 13:50:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id A8878C21C29; Wed, 3 Jul 2019 13:50:37 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 22984C21C29; Wed, 3 Jul 2019 13:50:36 +0000 (UTC) Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by lists.denx.de (Postfix) with ESMTPS id C309CC21BE5 for ; Wed, 3 Jul 2019 13:50:35 +0000 (UTC) Received: by mail-wm1-f50.google.com with SMTP id s3so2307142wms.2 for ; Wed, 03 Jul 2019 06:50:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=ABYgL9MiI7wNw+lLW9k9jqiI5pk5A0Ix/N85lm5wkBY=; b=UgBUfd3k3hG8juqFlbsBDZdmEXlwq0zrmO79iCh34IVH5evxFEjRNKbQUKfeGTBHCw eaVkN0tUYche8ajmfJCzeK5tx2yxatHcTZ7trlT48bnCPWGjUuUYJA2O+LqvIuiovEvG I31nTmlGwIMelPoT3clbziHnxO44JohvMYfcoAmNS2khPD1cifN+4Qn7Q7UwNHWvOcH6 0pCotEPD3hPEBLz697WVM/Nv2wGoZwhEEPSVopQOcVlvXLpbQdCNFKKmUCTL4TJXkf0A V0lylCOYTwRQ+MI3Zz7c6zjpzUIoFrRayhhvcpNdhfSQ7W/JiqjqVCKVrLxv2tiwCHyD n4yA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ABYgL9MiI7wNw+lLW9k9jqiI5pk5A0Ix/N85lm5wkBY=; b=SfxoJ5E41+7MKuBfAcPYhtUHbwAlqtuwYu+dWjM2+CknB5wAaKbfl/r4kLlsKKzigD vf3uV+oBmBgf7dbS3D0uR1p/wqrMlqbjaPV9sJ0qmb5MV9N+AHoVQ114upJE9+kRGl8M fKPvxq3hYqHrCbuad7JqqpVPE+XXP0aNljHj11rzo6Ace8Wus21xUclU25id/FKFU6rd 6L7D19NA/hJzdVQS7TgxfE12qUk24s3tXb+f/pokgox4Mi3s0tcC1U6XAJQC7rmbrWzL f3wTGdBqekwbq+q65im9mrG7vIJwP4Ar2ir8iHJCoAklw2wP/8HCllsPFAefj862vrD+ 0RDw== X-Gm-Message-State: APjAAAWk5CNYrEpkDfJ3+Y4lr0t+hmPFf/iFgdEFl6texETNiDsA5R3B oNA1nDLSNMbe7DXbvbGXGIvOWEXR X-Google-Smtp-Source: APXvYqynHnBaCEOhEZd1GW6nhk9wUpVDm6rhWnirBC3X54ivx5HGQhBMeYOXQuEgTiyHFEn58Y04mw== X-Received: by 2002:a1c:b707:: with SMTP id h7mr8062776wmf.45.1562161835138; Wed, 03 Jul 2019 06:50:35 -0700 (PDT) Received: from localhost ([194.105.145.90]) by smtp.gmail.com with ESMTPSA id y6sm2547495wrp.12.2019.07.03.06.50.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 Jul 2019 06:50:34 -0700 (PDT) From: Igor Opaniuk To: u-boot@lists.denx.de Date: Wed, 3 Jul 2019 16:50:28 +0300 Message-Id: <20190703135028.19271-1-igor.opaniuk@gmail.com> X-Mailer: git-send-email 2.17.1 Cc: Igor Opaniuk , Stefan Agner Subject: [U-Boot] [PATCH v1] colibri_imx7: boot kernel in secure mode X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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: Igor Opaniuk NXP downstream kernel uses legacy method to enable other cores, which requires kernel to run in a security mode (althought upstream kernel uses PSCI for this). As we're using NXP kernel in our BSPs, lets enable this by default. Signed-off-by: Igor Opaniuk Reviewed-by: Philippe Schenker Tested-by: Philippe Schenker --- include/configs/colibri_imx7.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/configs/colibri_imx7.h b/include/configs/colibri_imx7.h index 40173b18fa..5408577661 100644 --- a/include/configs/colibri_imx7.h +++ b/include/configs/colibri_imx7.h @@ -164,7 +164,8 @@ "${board}/flash_blk.img && source ${loadaddr}\0" \ "setup=setenv setupargs " \ "console=tty1 console=${console}" \ - ",${baudrate}n8 ${memargs} consoleblank=0\0" \ + ",${baudrate}n8 ${memargs} consoleblank=0; " \ + "setenv bootm_boot_mode sec\0" \ "setupdate=run setsdupdate || run setusbupdate || run setethupdate\0" \ "setusbupdate=usb start && setenv interface usb && " \ "fatload ${interface} 0:1 ${loadaddr} " \