From patchwork Wed Aug 23 13:25:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Tudor X-Patchwork-Id: 1824696 X-Patchwork-Delegate: van.freenix@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=selector2 header.b=eYGhvS6u; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RW6Rn675zz1yNm for ; Wed, 23 Aug 2023 23:26:13 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9AA01864C4; Wed, 23 Aug 2023 15:26:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="eYGhvS6u"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BEE9F864B3; Wed, 23 Aug 2023 15:26:06 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO,SPF_HELO_PASS, T_SPF_PERMERROR autolearn=no autolearn_force=no version=3.4.2 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on0607.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0c::607]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 37E06864BA for ; Wed, 23 Aug 2023 15:26:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=laurentiu.tudor@nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lueVEdj09GHALfgTKeL4qVRYi2mShpDqaHE21kU5X4LyzaEHurz6P3eJuOftk9X5WFk5A0vSK9qZB+lie8xzQXM6Ve3ZWvXLjR+Vtsjzi5VQKFeJlV3jUbL6PJLq+y3+SD5aNFznAn5FnZguXRTBE6kSOqfTIjLqWZrKZ2FcGA16ymPs4L24mvINWqw6s7AIXYZ38IUtCyP5ng99o+btW6WrZ6HjhjDV4//jUYgZShbn0Jm24D36+NXSHXhpfOGRxj1bWeocy4tHNDqQ4Bm0qHazF+D6w0j6WHmaL6CNqkbCr+KdBf07NYfjnHD3lCoCo50/F490c77QAY03UIY+WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=KdoNT5r82NDxEeO8/EU5Faybd05ECELsNCYSKLCy2TI=; b=c580INHg/H6fxOZVMSRe9zXW4amf3T4Zwry+5rNgjNySODfr78/VTQ6lXfyEAJDhiPnssey8+1swa1NxpApLLVabuAbxIRKyca7TJ4W3u623R+7ajexsoNjjw9BJreRdOArEmU8P57Irt/VujBvlK1tfB2bnsXcafk/WpGOcfuJIv/2+ThWR4jSPVkppdSzT2Rc03+NMpfhIQLerYEjeUktN+Cpt8+Tdss3G51Mb+yYC7Z4W9XFULJiqweZEL/RjTSwri16zjJQDCYx9sV8IYcSngoLfHum6gGQVchTPRvf/oJIDGFsrodQcncubJ+9HdpQQFuWtxORZMz+6fs5Leg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KdoNT5r82NDxEeO8/EU5Faybd05ECELsNCYSKLCy2TI=; b=eYGhvS6ufFpIfPdzqoVM0zcAiiipbwK3fURDKbZKOxMFcuzEkPHixqoCNap5CxlT00uGACWq4owlV6iPQEIiIIofRBURCIDw9xkfb5zIB+e53++UmE3uMPP8PkDsTbwXDiujwilI3Vms5HlQlk5WSTnC8nHBeA48zp6GTXLYzVo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS1PR04MB9382.eurprd04.prod.outlook.com (2603:10a6:20b:4da::15) by DB9PR04MB8252.eurprd04.prod.outlook.com (2603:10a6:10:24d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.26; Wed, 23 Aug 2023 13:26:01 +0000 Received: from AS1PR04MB9382.eurprd04.prod.outlook.com ([fe80::efa8:cb35:bebd:3d10]) by AS1PR04MB9382.eurprd04.prod.outlook.com ([fe80::efa8:cb35:bebd:3d10%7]) with mapi id 15.20.6699.026; Wed, 23 Aug 2023 13:26:01 +0000 From: laurentiu.tudor@nxp.com To: rajesh.bhagat@nxp.com, pramod.kumar_1@nxp.com, andy.tang@nxp.com, mingkai.hu@nxp.com, Ashish.Kumar@nxp.com, priyanka.jain@nxp.com, wasim.khan@nxp.com, matt@traverse.com.au, udit.agarwal@nxp.com, joe.hershberger@ni.com, peng.fan@nxp.com, sjg@chromium.org, u-boot@lists.denx.de Cc: michael@walle.cc, camelia.groza@nxp.com, ioana.ciornei@nxp.com, vladimir.oltean@nxp.com, Laurentiu Tudor Subject: [PATCH v3 3/3] fsl-layerscape: drop obsolete PPA secure firmware support Date: Wed, 23 Aug 2023 16:25:46 +0300 Message-Id: <20230823132546.6048-4-laurentiu.tudor@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230823132546.6048-1-laurentiu.tudor@nxp.com> References: <20230823132546.6048-1-laurentiu.tudor@nxp.com> X-ClientProxiedBy: AS4P251CA0009.EURP251.PROD.OUTLOOK.COM (2603:10a6:20b:5d2::20) To AS1PR04MB9382.eurprd04.prod.outlook.com (2603:10a6:20b:4da::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS1PR04MB9382:EE_|DB9PR04MB8252:EE_ X-MS-Office365-Filtering-Correlation-Id: 3787e1a0-0066-44bc-0c06-08dba3dc7ea1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vCGo9tFf8pHhyYSw2eusP7ryZ+P/zpR1tlmhGBM4LXeRKkUNa/H1S8Hjl055MKrrQ6t1Fedjed6cLGmHl0VcI7mk2tCblhuxJ/o9d9ELO0KNzNzKOr9NTnpr5ZndEZcop0ZhvoqIbaqWFH2P1E7qbTBX2lUt30EFxaevyzGhDk0GeYms5ZCrzRgbFDRqx32xX6xkPc8e929jBsoBahr72ly0CNXvwtBS8/GTNqX/Fl8Q97wadEdvAaq/FaGQKaeC6yamGmI8LkKG9GqsAoZHmLPAfgdiwTLDJVOeRbbN3IV+W4zvC4K2oKE2cTApj//wQCf4o4Bd1xEm8CwFJdP8DVAGOdNK96IGDuil47NXImM4pqaCCC7kcvgVMt42GiVI+LED55/J8st+bxXciNFnH5qfoLdkOlB+vrc13zASaAMC8Pjuba37tuVmVug47s7ajDKCQ/IW5ie+2UVdMTy7Dc+eehmhxsqLCoJzZYVTdHfCOEwemarF8GPOiialQrKDmnkpdFfOqbEwMo93kixfEwbN94J7lYaYOp/SaYMjznxK+iKuIlAVbTEAPL6jgrSvA/qPuBtAZmEyLfm6XE45ZPdCFC1i7zD0w06v41QVWnRiy0dNmKVx9E4gFRs6YOgXeBXKVc1vtBkKu52KqleGjJuuRgeJyRQZCSFrSW8/b5c= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS1PR04MB9382.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376002)(396003)(136003)(366004)(346002)(39860400002)(1800799009)(186009)(451199024)(83380400001)(30864003)(2906002)(921005)(38100700002)(38350700002)(86362001)(36756003)(6512007)(9686003)(41300700001)(66556008)(66476007)(66946007)(6506007)(6486002)(316002)(52116002)(2616005)(4326008)(8936002)(8676002)(478600001)(6666004)(26005)(1076003)(5660300002)(21314003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: laFPjum72h0gd8m+wtvLM9rj/PRHJd8sN4zvCYmtDR3V3kco/x0QmrwG15CR7rRpNDpXs486i1r5cbNRq9la7j5A9CyaqkcSKFgaLSeacf1l/D6fTaVr4BTrAKMXSBQFrpXg5G6E9byvwPxgizAoL5OgU/DJCCnyZFdaXU3zRZKUGqbDJ95ekfhYE83JnYJY3BCSIq11KDEaGmgMHMQh/DWQ9ZaJQKrGJWW8VJ1gBST9EcKeFnHKGzIGsenQSOyADF6QAdV92LuKEYaxIHqaxwNALaZqBhxfvW8Wd5/u+CLJlYSQZqTiiMK+1zzER7wvBLCaugOqP7HIW62dOTkCMhXaPGqtsodGIzSMiqwqI77i+BkpDKi7s5VNwVYvLJtQ3oTvBHBD4nomAOIb2wPA5vOHdvqjiwooI8Ofd2hC/iKNVYF4OuVzojot1KQ2D4Pf3NfZDfxm0ZuXQTiJUPMYNy2i0au59VbITILZlYh2bw1UqTsoIxOiqTOsRpWKwIKjCyq4pyiJwNV0xFPqovIdn/th5bzbFo8q2yZ0RVqUzpdC7m7TWOc/9qjaSb3hYK5zHNCORa5pvzhUajwQceUjC5RLw84rpZ0LZEC8HACX+d1iT5T1fLvRI9PVrfy853MNHyabI1GJt6ICeAcdhrZ7wnAJcBJ7M1n1jr8f7KiykbH5NpQfmyRKJEZyuzpD/NEhTEZPKwLCG3l4p2aiT11NZbSm9FtfksXwu0+tFLFbOlkeEteZchRcR1/L3L6USEhjbTJa9/nXo1+L9W0Oi3Ru/s28E/1833iB37UzFhWjb52qnkBxILox7vyWMTtB9zPl3aVda4RI6C5oDIQl/RFwqqLjjNkEAa5s0pDSRRJirA9nx1RwTcKC5dYnI9YxEGKDgfgjhFDQnkWO/Kx+qYSVYCgqRK9easfB/N3K6ntJX0I63qhrO5f5f5gV+0aX5KcXc/sg3sP79I4xJVLnZH5f4TJyHvbLHKwjYPGaVrD0xE5GdfWWAFVFDA6NpZm7zIYZYgcMrywEYZOJxCqAGSpbXjdjo13M6E5Xn/jku+zgM1AM3Y7nzgdMvxWDLgCVjlhxj8+AwyBAb8bWDJZfHR2rcaa4uu6x656URyQ/OZ8niCzhV1o2L4zxJtWxoFB3CxbHAJJqRKnzFGOgxCifxCTfUMW+MM0eBvRNNSj0u+pFYbQtMaO+3Vdzf+yD17msS+Z7zpiXsR3STBHlTAb2y3QZhs668XC/rlevjCgTVNqVlrlzEHE5VChdcxNGPooHzyDWub+zy3taVsbaoETb5d0WyllGyZfUdA9lNw8dxG/GT5Q6VB6qYTZh/O83mgvC20Oi4dtYGwQz4hTmgPvzsHoDqq+jw66Fz0GqDyxPMBlfAX4bAfSLc/4HKubY3R4EQGbPR+TX62u51w3z20FotVGzqFtL4AZ4XakHzA+0xPUjRHVXqT/eA7EDqe4qBtxiikqHIjPdZksXDFdMLtUx+7t2l9fuXshivjIDit79psVJ3wJaRF69MF/LEPC2gD0UFL39Vi5Jc/XNiZYPrFPTzgLddpvnoj1CtCkpTOVjxDZUq9e7nFxPygZwogU1orbXOYKj X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3787e1a0-0066-44bc-0c06-08dba3dc7ea1 X-MS-Exchange-CrossTenant-AuthSource: AS1PR04MB9382.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Aug 2023 13:26:01.7127 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 3YDEpcEyNHDneHxtyXPBVDtdKwJOJCIsGo3DU2EZlxwmxdKDyFBiTQ/oqJdSCyBrco0WAATEBNXyQTD+Z8qo2g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8252 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean From: Laurentiu Tudor PPA was a secure firmware developed in-house which is no longer supported and replaced by TF-A quite some years ago. Drop support for it. Signed-off-by: Laurentiu Tudor --- arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 60 ---- arch/arm/cpu/armv8/fsl-layerscape/Makefile | 1 - arch/arm/cpu/armv8/fsl-layerscape/ppa.c | 284 ------------------ arch/arm/cpu/armv8/fsl-layerscape/spl.c | 34 --- .../arm/include/asm/arch-fsl-layerscape/ppa.h | 12 - arch/arm/include/asm/fsl_secure_boot.h | 9 - board/freescale/ls1012afrdm/Kconfig | 11 - board/freescale/ls1012afrdm/ls1012afrdm.c | 6 - board/freescale/ls1012aqds/Kconfig | 8 - board/freescale/ls1012aqds/ls1012aqds.c | 6 - board/freescale/ls1012ardb/Kconfig | 12 - board/freescale/ls1012ardb/ls1012ardb.c | 6 - board/freescale/ls1028a/Kconfig | 12 - board/freescale/ls1028a/ls1028a.c | 7 - board/freescale/ls1043aqds/Kconfig | 16 - board/freescale/ls1043aqds/ls1043aqds.c | 5 - board/freescale/ls1043ardb/Kconfig | 14 - board/freescale/ls1043ardb/ls1043ardb.c | 5 - board/freescale/ls1046aqds/Kconfig | 16 - board/freescale/ls1046aqds/ls1046aqds.c | 5 - board/freescale/ls1046ardb/Kconfig | 14 - board/freescale/ls1046ardb/ls1046ardb.c | 5 - board/freescale/ls1088a/Kconfig | 28 -- board/freescale/ls1088a/ls1088a.c | 5 - board/freescale/ls2080aqds/Kconfig | 16 - board/freescale/ls2080aqds/ls2080aqds.c | 5 - board/freescale/ls2080ardb/Kconfig | 16 - board/freescale/ls2080ardb/ls2080ardb.c | 5 - board/traverse/ten64/ten64.c | 1 - env/Kconfig | 2 +- include/configs/ls1046a_common.h | 3 +- 31 files changed, 2 insertions(+), 627 deletions(-) delete mode 100644 arch/arm/cpu/armv8/fsl-layerscape/ppa.c delete mode 100644 arch/arm/include/asm/arch-fsl-layerscape/ppa.h diff --git a/arch/arm/cpu/armv8/fsl-layerscape/Kconfig b/arch/arm/cpu/armv8/fsl-layerscape/Kconfig index a8b493e2f875..c45e4e63b4bb 100644 --- a/arch/arm/cpu/armv8/fsl-layerscape/Kconfig +++ b/arch/arm/cpu/armv8/fsl-layerscape/Kconfig @@ -390,66 +390,6 @@ config HAS_FEATURE_ENHANCED_MSI bool default y if ARCH_LS1043A -menu "Layerscape PPA" -config FSL_LS_PPA - bool "FSL Layerscape PPA firmware support" - depends on !ARMV8_PSCI - select ARMV8_SEC_FIRMWARE_SUPPORT - select SEC_FIRMWARE_ARMV8_PSCI - select ARMV8_SEC_FIRMWARE_ERET_ADDR_REVERT if FSL_LSCH2 - help - The FSL Primary Protected Application (PPA) is a software component - which is loaded during boot stage, and then remains resident in RAM - and runs in the TrustZone after boot. - Say y to enable it. - -config SPL_FSL_LS_PPA - bool "FSL Layerscape PPA firmware support for SPL build" - depends on !ARMV8_PSCI - select SPL_ARMV8_SEC_FIRMWARE_SUPPORT - select SEC_FIRMWARE_ARMV8_PSCI - select ARMV8_SEC_FIRMWARE_ERET_ADDR_REVERT if FSL_LSCH2 - help - The FSL Primary Protected Application (PPA) is a software component - which is loaded during boot stage, and then remains resident in RAM - and runs in the TrustZone after boot. This is to load PPA during SPL - stage instead of the RAM version of U-Boot. Once PPA is initialized, - the rest of U-Boot (including RAM version) runs at EL2. -choice - prompt "FSL Layerscape PPA firmware loading-media select" - depends on FSL_LS_PPA - default SYS_LS_PPA_FW_IN_MMC if SD_BOOT - default SYS_LS_PPA_FW_IN_NAND if NAND_BOOT - default SYS_LS_PPA_FW_IN_XIP - -config SYS_LS_PPA_FW_IN_XIP - bool "XIP" - help - Say Y here if the PPA firmware locate at XIP flash, such - as NOR or QSPI flash. - -config SYS_LS_PPA_FW_IN_MMC - bool "eMMC or SD Card" - help - Say Y here if the PPA firmware locate at eMMC/SD card. - -config SYS_LS_PPA_FW_IN_NAND - bool "NAND" - help - Say Y here if the PPA firmware locate at NAND flash. - -endchoice - -config LS_PPA_ESBC_HDR_SIZE - hex "Length of PPA ESBC header" - depends on FSL_LS_PPA && CHAIN_OF_TRUST && !SYS_LS_PPA_FW_IN_XIP - default 0x2000 - help - Length (in bytes) of PPA ESBC header to be copied from MMC/SD or - NAND to memory to validate PPA image. - -endmenu - config SYS_FSL_ERRATUM_A008997 bool "Workaround for USB PHY erratum A008997" diff --git a/arch/arm/cpu/armv8/fsl-layerscape/Makefile b/arch/arm/cpu/armv8/fsl-layerscape/Makefile index 598c36ee660a..eefdf12369c3 100644 --- a/arch/arm/cpu/armv8/fsl-layerscape/Makefile +++ b/arch/arm/cpu/armv8/fsl-layerscape/Makefile @@ -10,7 +10,6 @@ obj-$(CONFIG_MP) += mp.o spintable.o obj-$(CONFIG_OF_LIBFDT) += fdt.o endif obj-$(CONFIG_SPL) += spl.o -obj-$(CONFIG_$(SPL_)FSL_LS_PPA) += ppa.o ifneq ($(CONFIG_FSL_LSCH3),) obj-y += fsl_lsch3_speed.o diff --git a/arch/arm/cpu/armv8/fsl-layerscape/ppa.c b/arch/arm/cpu/armv8/fsl-layerscape/ppa.c deleted file mode 100644 index 117b7a053c51..000000000000 --- a/arch/arm/cpu/armv8/fsl-layerscape/ppa.c +++ /dev/null @@ -1,284 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* - * Copyright 2016 NXP Semiconductor, Inc. - */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#ifdef CONFIG_FSL_LSCH3 -#include -#elif defined(CONFIG_FSL_LSCH2) -#include -#endif -#if CONFIG_IS_ENABLED(ARMV8_SEC_FIRMWARE_SUPPORT) -#include -#endif -#ifdef CONFIG_CHAIN_OF_TRUST -#include -#endif - -#ifdef CONFIG_SYS_LS_PPA_FW_IN_NAND -#include -#elif defined(CONFIG_SYS_LS_PPA_FW_IN_MMC) -#include -#endif - -DECLARE_GLOBAL_DATA_PTR; - -int ppa_init(void) -{ - unsigned int el = current_el(); - void *ppa_fit_addr; - u32 *boot_loc_ptr_l, *boot_loc_ptr_h; - u32 *loadable_l, *loadable_h; - int ret; - -#ifdef CONFIG_CHAIN_OF_TRUST - uintptr_t ppa_esbc_hdr = 0; - uintptr_t ppa_img_addr = 0; -#if defined(CONFIG_SYS_LS_PPA_FW_IN_MMC) || \ - defined(CONFIG_SYS_LS_PPA_FW_IN_NAND) - void *ppa_hdr_ddr; -#endif -#endif - - /* Skip if running at lower exception level */ - if (el < 3) { - debug("Skipping PPA init, running at EL%d\n", el); - return 0; - } - -#ifdef CONFIG_SYS_LS_PPA_FW_IN_XIP - ppa_fit_addr = (void *)CONFIG_SYS_LS_PPA_FW_ADDR; - debug("%s: PPA image load from XIP\n", __func__); -#ifdef CONFIG_CHAIN_OF_TRUST - ppa_esbc_hdr = CONFIG_SYS_LS_PPA_ESBC_ADDR; -#endif -#else /* !CONFIG_SYS_LS_PPA_FW_IN_XIP */ - size_t fw_length, fdt_header_len = sizeof(struct fdt_header); - - /* Copy PPA image from MMC/SD/NAND to allocated memory */ -#ifdef CONFIG_SYS_LS_PPA_FW_IN_MMC - struct mmc *mmc; - int dev = CONFIG_SYS_MMC_ENV_DEV; - struct fdt_header *fitp; - u32 cnt; - u32 blk; - - debug("%s: PPA image load from eMMC/SD\n", __func__); - - ret = mmc_initialize(gd->bd); - if (ret) { - printf("%s: mmc_initialize() failed\n", __func__); - return ret; - } - mmc = find_mmc_device(dev); - if (!mmc) { - printf("PPA: MMC cannot find device for PPA firmware\n"); - return -ENODEV; - } - - ret = mmc_init(mmc); - if (ret) { - printf("%s: mmc_init() failed\n", __func__); - return ret; - } - - fitp = malloc(roundup(fdt_header_len, 512)); - if (!fitp) { - printf("PPA: malloc failed for FIT header(size 0x%zx)\n", - roundup(fdt_header_len, 512)); - return -ENOMEM; - } - - blk = CONFIG_SYS_LS_PPA_FW_ADDR / 512; - cnt = DIV_ROUND_UP(fdt_header_len, 512); - debug("%s: MMC read PPA FIT header: dev # %u, block # %u, count %u\n", - __func__, dev, blk, cnt); - ret = blk_dread(mmc_get_blk_desc(mmc), blk, cnt, fitp); - if (ret != cnt) { - free(fitp); - printf("MMC/SD read of PPA FIT header at offset 0x%x failed\n", - CONFIG_SYS_LS_PPA_FW_ADDR); - return -EIO; - } - - ret = fdt_check_header(fitp); - if (ret) { - free(fitp); - printf("%s: fdt_check_header() failed\n", __func__); - return ret; - } - -#ifdef CONFIG_CHAIN_OF_TRUST - ppa_hdr_ddr = malloc(CONFIG_LS_PPA_ESBC_HDR_SIZE); - if (!ppa_hdr_ddr) { - printf("PPA: malloc failed for PPA header\n"); - return -ENOMEM; - } - - blk = CONFIG_SYS_LS_PPA_ESBC_ADDR >> 9; - cnt = DIV_ROUND_UP(CONFIG_LS_PPA_ESBC_HDR_SIZE, 512); - ret = blk_dread(mmc_get_blk_desc(mmc), blk, cnt, ppa_hdr_ddr); - if (ret != cnt) { - free(ppa_hdr_ddr); - printf("MMC/SD read of PPA header failed\n"); - return -EIO; - } - debug("Read PPA header to 0x%p\n", ppa_hdr_ddr); - - ppa_esbc_hdr = (uintptr_t)ppa_hdr_ddr; -#endif - - fw_length = fdt_totalsize(fitp); - free(fitp); - - fw_length = roundup(fw_length, 512); - ppa_fit_addr = malloc(fw_length); - if (!ppa_fit_addr) { - printf("PPA: malloc failed for PPA image(size 0x%zx)\n", - fw_length); - return -ENOMEM; - } - - blk = CONFIG_SYS_LS_PPA_FW_ADDR / 512; - cnt = DIV_ROUND_UP(fw_length, 512); - debug("%s: MMC read PPA FIT image: dev # %u, block # %u, count %u\n", - __func__, dev, blk, cnt); - ret = blk_dread(mmc_get_blk_desc(mmc), blk, cnt, ppa_fit_addr); - if (ret != cnt) { - free(ppa_fit_addr); - printf("MMC/SD read of PPA FIT header at offset 0x%x failed\n", - CONFIG_SYS_LS_PPA_FW_ADDR); - return -EIO; - } - -#elif defined(CONFIG_SYS_LS_PPA_FW_IN_NAND) - struct fdt_header fit; - - debug("%s: PPA image load from NAND\n", __func__); - - nand_init(); - ret = nand_read(get_nand_dev_by_index(0), - (loff_t)CONFIG_SYS_LS_PPA_FW_ADDR, - &fdt_header_len, (u_char *)&fit); - if (ret == -EUCLEAN) { - printf("NAND read of PPA FIT header at offset 0x%x failed\n", - CONFIG_SYS_LS_PPA_FW_ADDR); - return -EIO; - } - - ret = fdt_check_header(&fit); - if (ret) { - printf("%s: fdt_check_header() failed\n", __func__); - return ret; - } - -#ifdef CONFIG_CHAIN_OF_TRUST - ppa_hdr_ddr = malloc(CONFIG_LS_PPA_ESBC_HDR_SIZE); - if (!ppa_hdr_ddr) { - printf("PPA: malloc failed for PPA header\n"); - return -ENOMEM; - } - - fw_length = CONFIG_LS_PPA_ESBC_HDR_SIZE; - - ret = nand_read(get_nand_dev_by_index(0), - (loff_t)CONFIG_SYS_LS_PPA_ESBC_ADDR, - &fw_length, (u_char *)ppa_hdr_ddr); - if (ret == -EUCLEAN) { - free(ppa_hdr_ddr); - printf("NAND read of PPA firmware at offset 0x%x failed\n", - CONFIG_SYS_LS_PPA_FW_ADDR); - return -EIO; - } - debug("Read PPA header to 0x%p\n", ppa_hdr_ddr); - - ppa_esbc_hdr = (uintptr_t)ppa_hdr_ddr; -#endif - - fw_length = fdt_totalsize(&fit); - - ppa_fit_addr = malloc(fw_length); - if (!ppa_fit_addr) { - printf("PPA: malloc failed for PPA image(size 0x%zx)\n", - fw_length); - return -ENOMEM; - } - - ret = nand_read(get_nand_dev_by_index(0), - (loff_t)CONFIG_SYS_LS_PPA_FW_ADDR, - &fw_length, (u_char *)ppa_fit_addr); - if (ret == -EUCLEAN) { - free(ppa_fit_addr); - printf("NAND read of PPA firmware at offset 0x%x failed\n", - CONFIG_SYS_LS_PPA_FW_ADDR); - return -EIO; - } -#else -#error "No CONFIG_SYS_LS_PPA_FW_IN_xxx defined" -#endif - -#endif - -#ifdef CONFIG_CHAIN_OF_TRUST - ppa_img_addr = (uintptr_t)ppa_fit_addr; - if (fsl_check_boot_mode_secure() != 0) { - /* - * In case of failure in validation, fsl_secboot_validate - * would not return back in case of Production environment - * with ITS=1. In Development environment (ITS=0 and - * SB_EN=1), the function may return back in case of - * non-fatal failures. - */ - ret = fsl_secboot_validate(ppa_esbc_hdr, - PPA_KEY_HASH, - &ppa_img_addr); - if (ret != 0) - printf("SEC firmware(s) validation failed\n"); - else - printf("SEC firmware(s) validation Successful\n"); - } -#if defined(CONFIG_SYS_LS_PPA_FW_IN_MMC) || \ - defined(CONFIG_SYS_LS_PPA_FW_IN_NAND) - free(ppa_hdr_ddr); -#endif -#endif - -#ifdef CONFIG_FSL_LSCH3 - struct ccsr_gur __iomem *gur = (void *)(CFG_SYS_FSL_GUTS_ADDR); - boot_loc_ptr_l = &gur->bootlocptrl; - boot_loc_ptr_h = &gur->bootlocptrh; - - /* Assign addresses to loadable ptrs */ - loadable_l = &gur->scratchrw[4]; - loadable_h = &gur->scratchrw[5]; -#elif defined(CONFIG_FSL_LSCH2) - struct ccsr_scfg __iomem *scfg = (void *)(CFG_SYS_FSL_SCFG_ADDR); - boot_loc_ptr_l = &scfg->scratchrw[1]; - boot_loc_ptr_h = &scfg->scratchrw[0]; - - /* Assign addresses to loadable ptrs */ - loadable_l = &scfg->scratchrw[2]; - loadable_h = &scfg->scratchrw[3]; -#endif - - debug("fsl-ppa: boot_loc_ptr_l = 0x%p, boot_loc_ptr_h =0x%p\n", - boot_loc_ptr_l, boot_loc_ptr_h); - ret = sec_firmware_init(ppa_fit_addr, boot_loc_ptr_l, boot_loc_ptr_h, - loadable_l, loadable_h); - -#if defined(CONFIG_SYS_LS_PPA_FW_IN_MMC) || \ - defined(CONFIG_SYS_LS_PPA_FW_IN_NAND) - free(ppa_fit_addr); -#endif - - return ret; -} diff --git a/arch/arm/cpu/armv8/fsl-layerscape/spl.c b/arch/arm/cpu/armv8/fsl-layerscape/spl.c index 61fced451eb5..94aa5eeeea44 100644 --- a/arch/arm/cpu/armv8/fsl-layerscape/spl.c +++ b/arch/arm/cpu/armv8/fsl-layerscape/spl.c @@ -21,7 +21,6 @@ #include #include #include -#include #include DECLARE_GLOBAL_DATA_PTR; @@ -62,9 +61,6 @@ void spl_board_init(void) #ifdef CONFIG_LAYERSCAPE_NS_ACCESS enable_layerscape_ns_access(); #endif -#ifdef CONFIG_SPL_FSL_LS_PPA - ppa_init(); -#endif } void tzpc_init(void) @@ -115,36 +111,6 @@ void board_init_f(ulong dummy) init_func_vid(); #endif dram_init(); -#ifdef CONFIG_SPL_FSL_LS_PPA -#ifndef CFG_SYS_MEM_RESERVE_SECURE -#error Need secure RAM for PPA -#endif - /* - * Secure memory location is determined in dram_init_banksize(). - * gd->ram_size is deducted by the size of secure ram. - */ - dram_init_banksize(); - - /* - * After dram_init_bank_size(), we know U-Boot only uses the first - * memory bank regardless how big the memory is. - */ - gd->ram_top = gd->bd->bi_dram[0].start + gd->bd->bi_dram[0].size; - - /* - * If PPA is loaded, U-Boot will resume running at EL2. - * Cache and MMU will be enabled. Need a place for TLB. - * U-Boot will be relocated to the end of available memory - * in first bank. At this point, we cannot know how much - * memory U-Boot uses. Put TLB table lower by SPL_TLB_SETBACK - * to avoid overlapping. As soon as the RAM version U-Boot sets - * up new MMU, this space is no longer needed. - */ - gd->ram_top -= SPL_TLB_SETBACK; - gd->arch.tlb_size = PGTABLE_SIZE; - gd->arch.tlb_addr = (gd->ram_top - gd->arch.tlb_size) & ~(0x10000 - 1); - gd->arch.tlb_allocated = gd->arch.tlb_addr; -#endif /* CONFIG_SPL_FSL_LS_PPA */ #if defined(CONFIG_QSPI_AHB_INIT) && defined(CONFIG_QSPI_BOOT) qspi_ahb_init(); #endif diff --git a/arch/arm/include/asm/arch-fsl-layerscape/ppa.h b/arch/arm/include/asm/arch-fsl-layerscape/ppa.h deleted file mode 100644 index f0c4a84f7ca4..000000000000 --- a/arch/arm/include/asm/arch-fsl-layerscape/ppa.h +++ /dev/null @@ -1,12 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* - * Copyright 2016 NXP Semiconductor, Inc. - */ - -#ifndef __FSL_PPA_H_ -#define __FSL_PPA_H_ - -#ifdef CONFIG_FSL_LS_PPA -int ppa_init(void); -#endif -#endif diff --git a/arch/arm/include/asm/fsl_secure_boot.h b/arch/arm/include/asm/fsl_secure_boot.h index 6a9d198cb811..15627c96e906 100644 --- a/arch/arm/include/asm/fsl_secure_boot.h +++ b/arch/arm/include/asm/fsl_secure_boot.h @@ -9,15 +9,6 @@ #ifdef CONFIG_CHAIN_OF_TRUST #ifndef CONFIG_SPL_BUILD -#ifdef CONFIG_FSL_LS_PPA -/* Define the key hash here if SRK used for signing PPA image is - * different from SRK hash put in SFP used for U-Boot. - * Example - * #define PPA_KEY_HASH \ - * "41066b564c6ffcef40ccbc1e0a5d0d519604000c785d97bbefd25e4d288d1c8b" - */ -#define PPA_KEY_HASH NULL -#endif /* ifdef CONFIG_FSL_LS_PPA */ #endif /* #ifndef CONFIG_SPL_BUILD */ #endif /* #ifdef CONFIG_CHAIN_OF_TRUST */ diff --git a/board/freescale/ls1012afrdm/Kconfig b/board/freescale/ls1012afrdm/Kconfig index 75de782afc9c..a7e59e626565 100644 --- a/board/freescale/ls1012afrdm/Kconfig +++ b/board/freescale/ls1012afrdm/Kconfig @@ -20,9 +20,6 @@ config SYS_LS_PFE_FW_LENGTH hex "length of PFE firmware" default 0x40000 -config SYS_LS_PPA_FW_ADDR - hex "PPA Firmware Addr" - default 0x40400000 endif if FSL_PFE @@ -73,14 +70,6 @@ config SYS_LS_PFE_FW_LENGTH hex "length of PFE firmware" default 0x40000 -config SYS_LS_PPA_FW_ADDR - hex "PPA Firmware Addr" - default 0x40060000 - -config SYS_LS_PPA_ESBC_ADDR - hex "PPA Firmware HDR Addr" - default 0x401f4000 - config SYS_LS_PFE_ESBC_ADDR hex "PFE Firmware HDR Addr" default 0x401f8000 diff --git a/board/freescale/ls1012afrdm/ls1012afrdm.c b/board/freescale/ls1012afrdm/ls1012afrdm.c index f2b8750a3f38..271072bf7a1c 100644 --- a/board/freescale/ls1012afrdm/ls1012afrdm.c +++ b/board/freescale/ls1012afrdm/ls1012afrdm.c @@ -12,9 +12,6 @@ #include #include #include -#ifdef CONFIG_FSL_LS_PPA -#include -#endif #include #include #include @@ -171,9 +168,6 @@ int board_init(void) if (current_el() == 3) out_le32(&cci->ctrl_ord, CCI400_CTRLORD_EN_BARRIER); -#ifdef CONFIG_FSL_LS_PPA - ppa_init(); -#endif return 0; } diff --git a/board/freescale/ls1012aqds/Kconfig b/board/freescale/ls1012aqds/Kconfig index 991ba6044db8..d333069898fb 100644 --- a/board/freescale/ls1012aqds/Kconfig +++ b/board/freescale/ls1012aqds/Kconfig @@ -12,15 +12,7 @@ config SYS_SOC config SYS_CONFIG_NAME default "ls1012aqds" -config SYS_LS_PPA_FW_ADDR - hex "PPA Firmware Addr" - default 0x40400000 - if CHAIN_OF_TRUST -config SYS_LS_PPA_ESBC_ADDR - hex "PPA Firmware HDR Addr" - default 0x40680000 - config SYS_LS_PFE_ESBC_ADDR hex "PFE Firmware HDR Addr" default 0x40700000 diff --git a/board/freescale/ls1012aqds/ls1012aqds.c b/board/freescale/ls1012aqds/ls1012aqds.c index 194b5d27295b..a5ea8d634edc 100644 --- a/board/freescale/ls1012aqds/ls1012aqds.c +++ b/board/freescale/ls1012aqds/ls1012aqds.c @@ -13,9 +13,6 @@ #include #include #include -#ifdef CONFIG_FSL_LS_PPA -#include -#endif #include #include #include @@ -150,9 +147,6 @@ int board_init(void) erratum_a010315(); #endif -#ifdef CONFIG_FSL_LS_PPA - ppa_init(); -#endif return 0; } diff --git a/board/freescale/ls1012ardb/Kconfig b/board/freescale/ls1012ardb/Kconfig index aa15f5a027e8..b55660d485fa 100644 --- a/board/freescale/ls1012ardb/Kconfig +++ b/board/freescale/ls1012ardb/Kconfig @@ -12,15 +12,7 @@ config SYS_SOC config SYS_CONFIG_NAME default "ls1012ardb" -config SYS_LS_PPA_FW_ADDR - hex "PPA Firmware Addr" - default 0x40400000 - if CHAIN_OF_TRUST -config SYS_LS_PPA_ESBC_ADDR - hex "PPA Firmware HDR Addr" - default 0x40680000 - config SYS_LS_PFE_ESBC_ADDR hex "PFE Firmware HDR Addr" default 0x40640000 @@ -79,10 +71,6 @@ config SYS_SOC config SYS_CONFIG_NAME default "ls1012a2g5rdb" -config SYS_LS_PPA_FW_ADDR - hex "PPA Firmware Addr" - default 0x40400000 - if FSL_PFE config BOARD_SPECIFIC_OPTIONS # dummy diff --git a/board/freescale/ls1012ardb/ls1012ardb.c b/board/freescale/ls1012ardb/ls1012ardb.c index 62c935e4d3ec..18f92089caef 100644 --- a/board/freescale/ls1012ardb/ls1012ardb.c +++ b/board/freescale/ls1012ardb/ls1012ardb.c @@ -15,9 +15,6 @@ #include #include #include -#ifdef CONFIG_FSL_LS_PPA -#include -#endif #include #include #include @@ -173,9 +170,6 @@ int board_init(void) erratum_a010315(); #endif -#ifdef CONFIG_FSL_LS_PPA - ppa_init(); -#endif return 0; } diff --git a/board/freescale/ls1028a/Kconfig b/board/freescale/ls1028a/Kconfig index 7d73d20c8f0e..fb6ee17ce897 100644 --- a/board/freescale/ls1028a/Kconfig +++ b/board/freescale/ls1028a/Kconfig @@ -20,18 +20,6 @@ config TEXT_BASE default 0x82000000 if TFABOOT default 0x20100000 -if FSL_LS_PPA -config SYS_LS_PPA_FW_ADDR - hex "PPA Firmware Addr" - default 0x20400000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1028A - default 0x400000 if SYS_LS_PPA_FW_IN_MMC && ARCH_LS1028A -if CHAIN_OF_TRUST -config SYS_LS_PPA_ESBC_ADDR - hex "PPA header Addr" - default 0x20600000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1028A -endif -endif - endif if TARGET_LS1028ARDB diff --git a/board/freescale/ls1028a/ls1028a.c b/board/freescale/ls1028a/ls1028a.c index faecb6099240..7f181ab3dfb7 100644 --- a/board/freescale/ls1028a/ls1028a.c +++ b/board/freescale/ls1028a/ls1028a.c @@ -20,9 +20,6 @@ #include #include #include -#ifdef CONFIG_FSL_LS_PPA -#include -#endif #include #include @@ -74,10 +71,6 @@ u32 get_lpuart_clk(void) int board_init(void) { -#ifdef CONFIG_FSL_LS_PPA - ppa_init(); -#endif - #ifndef CONFIG_SYS_EARLY_PCI_INIT pci_init(); #endif diff --git a/board/freescale/ls1043aqds/Kconfig b/board/freescale/ls1043aqds/Kconfig index 4be445e8c8f8..7e27f8f5b139 100644 --- a/board/freescale/ls1043aqds/Kconfig +++ b/board/freescale/ls1043aqds/Kconfig @@ -12,20 +12,4 @@ config SYS_SOC config SYS_CONFIG_NAME default "ls1043aqds" -if FSL_LS_PPA -config SYS_LS_PPA_FW_ADDR - hex "PPA Firmware Addr" - default 0x40400000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT - default 0x60400000 if SYS_LS_PPA_FW_IN_XIP - default 0x400000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND - -if CHAIN_OF_TRUST -config SYS_LS_PPA_ESBC_ADDR - hex "PPA Firmware HDR Addr" - default 0x40680000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT - default 0x60680000 if SYS_LS_PPA_FW_IN_XIP - default 0x680000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND -endif -endif - endif diff --git a/board/freescale/ls1043aqds/ls1043aqds.c b/board/freescale/ls1043aqds/ls1043aqds.c index 841d8b59bb4c..b87da41e4083 100644 --- a/board/freescale/ls1043aqds/ls1043aqds.c +++ b/board/freescale/ls1043aqds/ls1043aqds.c @@ -15,7 +15,6 @@ #include #include #include -#include #include #include #include @@ -533,10 +532,6 @@ int board_init(void) config_serdes_mux(); #endif -#ifdef CONFIG_FSL_LS_PPA - ppa_init(); -#endif - return 0; } diff --git a/board/freescale/ls1043ardb/Kconfig b/board/freescale/ls1043ardb/Kconfig index 56502f9f9c63..51818ec58016 100644 --- a/board/freescale/ls1043ardb/Kconfig +++ b/board/freescale/ls1043ardb/Kconfig @@ -13,18 +13,4 @@ config SYS_SOC config SYS_CONFIG_NAME default "ls1043ardb" -if FSL_LS_PPA -config SYS_LS_PPA_FW_ADDR - hex "PPA Firmware Addr" - default 0x60400000 if SYS_LS_PPA_FW_IN_XIP - default 0x400000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND - -if CHAIN_OF_TRUST -config SYS_LS_PPA_ESBC_ADDR - hex "PPA Firmware HDR Addr" - default 0x60680000 if SYS_LS_PPA_FW_IN_XIP - default 0x680000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND -endif -endif - endif diff --git a/board/freescale/ls1043ardb/ls1043ardb.c b/board/freescale/ls1043ardb/ls1043ardb.c index 741a4d64ea9e..18869d8c1df5 100644 --- a/board/freescale/ls1043ardb/ls1043ardb.c +++ b/board/freescale/ls1043ardb/ls1043ardb.c @@ -25,7 +25,6 @@ #ifdef CONFIG_U_QE #include #endif -#include DECLARE_GLOBAL_DATA_PTR; @@ -211,10 +210,6 @@ int board_init(void) out_le32(SMMU_NSCR0, val); #endif -#ifdef CONFIG_FSL_LS_PPA - ppa_init(); -#endif - #if !defined(CONFIG_SYS_EARLY_PCI_INIT) && defined(CONFIG_DM_ETH) pci_init(); #endif diff --git a/board/freescale/ls1046aqds/Kconfig b/board/freescale/ls1046aqds/Kconfig index adf325f4efd0..723f4ba90a07 100644 --- a/board/freescale/ls1046aqds/Kconfig +++ b/board/freescale/ls1046aqds/Kconfig @@ -12,20 +12,4 @@ config SYS_SOC config SYS_CONFIG_NAME default "ls1046aqds" -if FSL_LS_PPA -config SYS_LS_PPA_FW_ADDR - hex "PPA Firmware Addr" - default 0x40400000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT - default 0x60400000 if SYS_LS_PPA_FW_IN_XIP - default 0x400000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND - -if CHAIN_OF_TRUST -config SYS_LS_PPA_ESBC_ADDR - hex "PPA Firmware HDR Addr" - default 0x40680000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT - default 0x60680000 if SYS_LS_PPA_FW_IN_XIP - default 0x680000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND -endif -endif - endif diff --git a/board/freescale/ls1046aqds/ls1046aqds.c b/board/freescale/ls1046aqds/ls1046aqds.c index 3d0881643cd9..2faac54a0e23 100644 --- a/board/freescale/ls1046aqds/ls1046aqds.c +++ b/board/freescale/ls1046aqds/ls1046aqds.c @@ -14,7 +14,6 @@ #include #include #include -#include #include #include #include @@ -402,10 +401,6 @@ int board_init(void) if (adjust_vdd(0)) printf("Warning: Adjusting core voltage failed.\n"); -#ifdef CONFIG_FSL_LS_PPA - ppa_init(); -#endif - #ifdef CONFIG_NXP_ESBC /* * In case of Secure Boot, the IBR configures the SMMU diff --git a/board/freescale/ls1046ardb/Kconfig b/board/freescale/ls1046ardb/Kconfig index 1fb391c991c6..a62255c78dbb 100644 --- a/board/freescale/ls1046ardb/Kconfig +++ b/board/freescale/ls1046ardb/Kconfig @@ -13,18 +13,4 @@ config SYS_SOC config SYS_CONFIG_NAME default "ls1046ardb" -if FSL_LS_PPA -config SYS_LS_PPA_FW_ADDR - hex "PPA Firmware Addr" - default 0x40400000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT - default 0x400000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND - -if CHAIN_OF_TRUST -config SYS_LS_PPA_ESBC_ADDR - hex "PPA Firmware HDR Addr" - default 0x40680000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT - default 0x680000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND -endif -endif - endif diff --git a/board/freescale/ls1046ardb/ls1046ardb.c b/board/freescale/ls1046ardb/ls1046ardb.c index 1d12d9189b78..26e69db55f74 100644 --- a/board/freescale/ls1046ardb/ls1046ardb.c +++ b/board/freescale/ls1046ardb/ls1046ardb.c @@ -14,7 +14,6 @@ #include #include #include -#include #include #include #include @@ -96,10 +95,6 @@ int board_init(void) out_le32(SMMU_NSCR0, val); #endif -#ifdef CONFIG_FSL_LS_PPA - ppa_init(); -#endif - #if !defined(CONFIG_SYS_EARLY_PCI_INIT) && defined(CONFIG_DM_ETH) pci_init(); #endif diff --git a/board/freescale/ls1088a/Kconfig b/board/freescale/ls1088a/Kconfig index f1a45236061b..1ada661743ed 100644 --- a/board/freescale/ls1088a/Kconfig +++ b/board/freescale/ls1088a/Kconfig @@ -12,20 +12,6 @@ config SYS_SOC config SYS_CONFIG_NAME default "ls1088aqds" -if FSL_LS_PPA -config SYS_LS_PPA_FW_ADDR - hex "PPA Firmware Addr" - default 0x20400000 if SYS_LS_PPA_FW_IN_XIP - default 0x400000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND - -if CHAIN_OF_TRUST -config SYS_LS_PPA_ESBC_ADDR - hex "PPA Firmware HDR Addr" - default 0x20680000 if SYS_LS_PPA_FW_IN_XIP - default 0x680000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND -endif -endif - endif if TARGET_LS1088ARDB @@ -42,18 +28,4 @@ config SYS_SOC config SYS_CONFIG_NAME default "ls1088ardb" -if FSL_LS_PPA -config SYS_LS_PPA_FW_ADDR - hex "PPA Firmware Addr" - default 0x20400000 if SYS_LS_PPA_FW_IN_XIP - default 0x400000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND - -if CHAIN_OF_TRUST -config SYS_LS_PPA_ESBC_ADDR - hex "PPA Firmware HDR Addr" - default 0x20680000 if SYS_LS_PPA_FW_IN_XIP - default 0x680000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND -endif -endif - endif diff --git a/board/freescale/ls1088a/ls1088a.c b/board/freescale/ls1088a/ls1088a.c index 7a1047a77f73..65593f10a3f5 100644 --- a/board/freescale/ls1088a/ls1088a.c +++ b/board/freescale/ls1088a/ls1088a.c @@ -22,7 +22,6 @@ #include #include #include -#include #include #include #include @@ -820,10 +819,6 @@ int board_init(void) out_le32(irq_ccsr + IRQCR_OFFSET / 4, AQR105_IRQ_MASK); #endif -#ifdef CONFIG_FSL_LS_PPA - ppa_init(); -#endif - #if !defined(CONFIG_SYS_EARLY_PCI_INIT) pci_init(); #endif diff --git a/board/freescale/ls2080aqds/Kconfig b/board/freescale/ls2080aqds/Kconfig index 1036f33c61fa..2f997e9de1ac 100644 --- a/board/freescale/ls2080aqds/Kconfig +++ b/board/freescale/ls2080aqds/Kconfig @@ -13,20 +13,4 @@ config SYS_SOC config SYS_CONFIG_NAME default "ls2080aqds" -if FSL_LS_PPA -config SYS_LS_PPA_FW_ADDR - hex "PPA Firmware Addr" - default 0x20400000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT - default 0x580400000 if SYS_LS_PPA_FW_IN_XIP - default 0x400000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND - -if CHAIN_OF_TRUST -config SYS_LS_PPA_ESBC_ADDR - hex "PPA Firmware HDR Addr" - default 0x20680000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT - default 0x580680000 if SYS_LS_PPA_FW_IN_XIP - default 0x680000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND -endif -endif - endif diff --git a/board/freescale/ls2080aqds/ls2080aqds.c b/board/freescale/ls2080aqds/ls2080aqds.c index ab5ff6f62ce0..ba25e9b0b8fc 100644 --- a/board/freescale/ls2080aqds/ls2080aqds.c +++ b/board/freescale/ls2080aqds/ls2080aqds.c @@ -23,7 +23,6 @@ #include #include #include -#include #include #include "../common/i2c_mux.h" @@ -223,10 +222,6 @@ int board_init(void) #endif #endif -#ifdef CONFIG_FSL_LS_PPA - ppa_init(); -#endif - #if !defined(CONFIG_SYS_EARLY_PCI_INIT) pci_init(); #endif diff --git a/board/freescale/ls2080ardb/Kconfig b/board/freescale/ls2080ardb/Kconfig index c8b0b94596b5..671eead5f7f0 100644 --- a/board/freescale/ls2080ardb/Kconfig +++ b/board/freescale/ls2080ardb/Kconfig @@ -12,20 +12,4 @@ config SYS_SOC config SYS_CONFIG_NAME default "ls2080ardb" -if FSL_LS_PPA -config SYS_LS_PPA_FW_ADDR - hex "PPA Firmware Addr" - default 0x20400000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT - default 0x580400000 if SYS_LS_PPA_FW_IN_XIP - default 0x400000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND - -if CHAIN_OF_TRUST -config SYS_LS_PPA_ESBC_ADDR - hex "PPA Firmware HDR Addr" - default 0x20680000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT - default 0x580680000 if SYS_LS_PPA_FW_IN_XIP - default 0x680000 if SYS_LS_PPA_FW_IN_MMC || SYS_LS_PPA_FW_IN_NAND -endif -endif - endif diff --git a/board/freescale/ls2080ardb/ls2080ardb.c b/board/freescale/ls2080ardb/ls2080ardb.c index a7fc2b207660..8d340f17a256 100644 --- a/board/freescale/ls2080ardb/ls2080ardb.c +++ b/board/freescale/ls2080ardb/ls2080ardb.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #include "../common/i2c_mux.h" @@ -288,10 +287,6 @@ int board_init(void) QIXIS_WRITE(rst_ctl, QIXIS_RST_CTL_RESET_EN); #endif -#ifdef CONFIG_FSL_LS_PPA - ppa_init(); -#endif - #ifdef CONFIG_FSL_MC_ENET /* invert AQR405 IRQ pins polarity */ out_le32(irq_ccsr + IRQCR_OFFSET / 4, AQR405_IRQ_MASK); diff --git a/board/traverse/ten64/ten64.c b/board/traverse/ten64/ten64.c index df9f0afe1a4f..6ff5312d6d79 100644 --- a/board/traverse/ten64/ten64.c +++ b/board/traverse/ten64/ten64.c @@ -26,7 +26,6 @@ #include #include #include -#include #include #include #include diff --git a/env/Kconfig b/env/Kconfig index 13e32104b4c1..b8bbe246c541 100644 --- a/env/Kconfig +++ b/env/Kconfig @@ -645,7 +645,7 @@ config SYS_RELOC_GD_ENV_ADDR config SYS_MMC_ENV_DEV int "mmc device number" - depends on ENV_IS_IN_MMC || ENV_IS_IN_FAT || SYS_LS_PPA_FW_IN_MMC || \ + depends on ENV_IS_IN_MMC || ENV_IS_IN_FAT || \ CMD_MVEBU_BUBT || FMAN_ENET || QE || PHY_CORTINA default 0 help diff --git a/include/configs/ls1046a_common.h b/include/configs/ls1046a_common.h index 38fb1d45bcb3..867b098a0732 100644 --- a/include/configs/ls1046a_common.h +++ b/include/configs/ls1046a_common.h @@ -21,8 +21,7 @@ (defined(CONFIG_NAND_BOOT) || defined(CONFIG_QSPI_BOOT)) #define SPL_NO_MMC #endif -#if defined(CONFIG_SPL_BUILD) && \ - !defined(CONFIG_SPL_FSL_LS_PPA) +#if defined(CONFIG_SPL_BUILD) #define SPL_NO_IFC #endif