From patchwork Tue Nov 29 22:33:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 700745 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 3tSyyb4sB4z9t1P for ; Wed, 30 Nov 2016 09:34:15 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A4AB9B38CF; Tue, 29 Nov 2016 23:34:05 +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 vULWaaMZA2wK; Tue, 29 Nov 2016 23:34:05 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3566AB38D3; Tue, 29 Nov 2016 23:33:45 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 42E72A764F for ; Tue, 29 Nov 2016 23:33:31 +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 S-N-CT7aljcm for ; Tue, 29 Nov 2016 23:33:31 +0100 (CET) Received: from fllnx210.ext.ti.com (fllnx210.ext.ti.com [198.47.19.17]) by theia.denx.de (Postfix) with ESMTPS id 73C74B3852 for ; Tue, 29 Nov 2016 23:33:30 +0100 (CET) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id uATMXSLh012409; Tue, 29 Nov 2016 16:33:28 -0600 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id uATMXSmR014397; Tue, 29 Nov 2016 16:33:28 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.294.0; Tue, 29 Nov 2016 16:33:27 -0600 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id uATMXRGu022938; Tue, 29 Nov 2016 16:33:27 -0600 Received: from localhost (uda0226330.am.dhcp.ti.com [128.247.83.169]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id uATMXR311513; Tue, 29 Nov 2016 16:33:27 -0600 (CST) From: "Andrew F. Davis" To: Tom Rini , Simon Glass , Masahiro Yamada , Daniel Allred , Harinarayan Bhatta Date: Tue, 29 Nov 2016 16:33:25 -0600 Message-ID: <20161129223326.3115-7-afd@ti.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161129223326.3115-1-afd@ti.com> References: <20161129223326.3115-1-afd@ti.com> MIME-Version: 1.0 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH v3 6/7] board: ti: dra7xx: add FIT image TEE processing 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: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Populate the corresponding TEE image processing call to be performed during FIT loadable processing. Signed-off-by: Andrew F. Davis Reviewed-by: Simon Glass Reviewed-by: Tom Rini --- board/ti/dra7xx/evm.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c index 3c16846..3bb895c 100644 --- a/board/ti/dra7xx/evm.c +++ b/board/ti/dra7xx/evm.c @@ -848,4 +848,11 @@ void board_fit_image_post_process(void **p_image, size_t *p_size) { secure_boot_verify_image(p_image, p_size); } + +void board_tee_image_process(ulong tee_image, size_t tee_size) +{ + secure_tee_install((u32)tee_image); +} + +U_BOOT_FIT_LOADABLE_HANDLER(IH_TYPE_TEE, board_tee_image_process); #endif