From patchwork Wed Mar 14 13:14:42 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chander Kashyap X-Patchwork-Id: 146613 X-Patchwork-Delegate: promsoft@gmail.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 BA47AB6EEA for ; Thu, 15 Mar 2012 00:20:16 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C6B4E28085; Wed, 14 Mar 2012 14:20:12 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 xD89UmhsLFnb; Wed, 14 Mar 2012 14:20:12 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4E96A2807C; Wed, 14 Mar 2012 14:20:10 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BF2282807C for ; Wed, 14 Mar 2012 14:20:05 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 ON0ZrjunchmF for ; Wed, 14 Mar 2012 14:20:04 +0100 (CET) X-Greylist: delayed 304 seconds by postgrey-1.27 at theia; Wed, 14 Mar 2012 14:20:02 CET 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-pz0-f50.google.com (mail-pz0-f50.google.com [209.85.210.50]) by theia.denx.de (Postfix) with ESMTPS id 531D92807B for ; Wed, 14 Mar 2012 14:20:02 +0100 (CET) Received: by dakn40 with SMTP id n40so2350696dak.23 for ; Wed, 14 Mar 2012 06:20:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=gnJ+T7AjFIyN/sFv5m4PHNo5a5NAPXy5uTYxdLCnin0=; b=nWEyfu3C0MuO7drUZEYU98aNmGbaSjVUUUY0t5LrUHUWb3xLLA+omqyT0gT+pG48Ms nIzXcREB/kibiCrY3aF2vfl3Xj4FtIZCrzQF1A0JySS4nibXgXpo3g8zTvaZCj172O5E 0cGgtHd3nLc5kSbVVMExMH88Rrko2xvTuHT3OE+4Pebotp3K6k9A346baCYNoZDR2NN9 B+v7jEGZz3VZLHXeqkTyjaYjA92ElovZYhkfRmqFxTl3KTMgd8mjQEzET7Ptiq7WA5Jp ++4OOEcW6dQeeNCV8ir10bJiSuVUlzoJ4bl0ucxlNLaIW9FlM++P/lWdhtdsAa9npPsp Tvlw== Received: by 10.68.223.193 with SMTP id qw1mr3178689pbc.61.1331730894612; Wed, 14 Mar 2012 06:14:54 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id q7sm1242710pbf.44.2012.03.14.06.14.51 (version=SSLv3 cipher=OTHER); Wed, 14 Mar 2012 06:14:54 -0700 (PDT) From: Chander Kashyap To: u-boot@lists.denx.de Date: Wed, 14 Mar 2012 18:44:42 +0530 Message-Id: <1331730882-20744-1-git-send-email-chander.kashyap@linaro.org> X-Mailer: git-send-email 1.7.5.4 X-Gm-Message-State: ALoCoQmGx0X9Poy+FR3OfDHo7MFETCekLbO2KAPVWr4hYIXbdqaNTH1hVyOxXekmbOMWp5SIqfHx Cc: linaro-dev@lists.linaro.org, bjlee@samsung.com, patches@linaro.org, mk7.kang@samsung.com, samsung@lists.linaro.org Subject: [U-Boot] [PATCH] EXYNOS: Rename exynos5_tzpc structure to s5p_tzpc X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de TZPC IP is common across S5P and Exynos based SoC'c. Renaming exynos5_tzpc in arch/arm/include/asm/arch-exynos/tzpc.h to s5p_tzpc will allow generic usase of tzpc. Also modify board/samsung/smdk5250/tzpc_init.c to use s5p_tzpc. Signed-off-by: Chander Kashyap --- arch/arm/include/asm/arch-exynos/tzpc.h | 2 +- board/samsung/smdk5250/tzpc_init.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/include/asm/arch-exynos/tzpc.h b/arch/arm/include/asm/arch-exynos/tzpc.h index 2c9a07b..63736ae 100644 --- a/arch/arm/include/asm/arch-exynos/tzpc.h +++ b/arch/arm/include/asm/arch-exynos/tzpc.h @@ -22,7 +22,7 @@ #define __TZPC_H_ #ifndef __ASSEMBLY__ -struct exynos5_tzpc { +struct s5p_tzpc { unsigned int r0size; char res1[0x7FC]; unsigned int decprot0stat; diff --git a/board/samsung/smdk5250/tzpc_init.c b/board/samsung/smdk5250/tzpc_init.c index c2ccef3..03e46bb 100644 --- a/board/samsung/smdk5250/tzpc_init.c +++ b/board/samsung/smdk5250/tzpc_init.c @@ -28,7 +28,7 @@ /* Setting TZPC[TrustZone Protection Controller] */ void tzpc_init(void) { - struct exynos5_tzpc *tzpc; + struct s5p_tzpc *tzpc; unsigned int addr; for (addr = TZPC0_BASE; addr <= TZPC9_BASE; addr += TZPC_BASE_OFFSET) {