From patchwork Thu Mar 15 03:34:02 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chander Kashyap X-Patchwork-Id: 146837 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 390A6B6F98 for ; Thu, 15 Mar 2012 14:34:26 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0D2DF28169; Thu, 15 Mar 2012 04:34:24 +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 uzM2xu6MT2+T; Thu, 15 Mar 2012 04:34:22 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B7B0D28132; Thu, 15 Mar 2012 04:34:21 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5A74528132 for ; Thu, 15 Mar 2012 04:34:19 +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 1kj4JF2T6xUF for ; Thu, 15 Mar 2012 04:34:18 +0100 (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 26FA52811A for ; Thu, 15 Mar 2012 04:34:16 +0100 (CET) Received: by dakn40 with SMTP id n40so3261001dak.23 for ; Wed, 14 Mar 2012 20:34:14 -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=cVbyViDflOR6OjqD6Idb3qt1LV9N+qIuxZnSK5d6G8M=; b=dla6PIr09+jFUZ9uIQakkgJ0PTqqnNJOsRebe4QwhMcIT6xPfzLIaGLfMhHT3CflXM heXmLdtskMMuH4oU1Hd7drSMuj5oEMkDzpSQzvkT2QUAbcFDJNrbOCY0GNtP2Ms4xSfr 06cxIbyT9BWIoq8dgK4BhxNp8OSz2bSWK1PeE86VhjFxvhUW96UPOTRTfxQJo40tP7Bs E9SxfXFP3VGdQWvH2ifTfuJVDIGO3Mg6MO3T2ioodtc53eFm7zvVujki8kqVDCtJF+so plDSs0JIOhE91taZTKO22IEUFntdN3usmx557SC/KCLmXSg/xIJeXPZMzYfF9ykXcT+7 g91Q== Received: by 10.68.226.170 with SMTP id rt10mr1289557pbc.117.1331782454798; Wed, 14 Mar 2012 20:34:14 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id f7sm871214pbr.3.2012.03.14.20.34.12 (version=SSLv3 cipher=OTHER); Wed, 14 Mar 2012 20:34:14 -0700 (PDT) From: Chander Kashyap To: u-boot@lists.denx.de Date: Thu, 15 Mar 2012 09:04:02 +0530 Message-Id: <1331782442-3159-1-git-send-email-chander.kashyap@linaro.org> X-Mailer: git-send-email 1.7.5.4 X-Gm-Message-State: ALoCoQlrxM2S3pe29d5KHYgqJb8f0yzEitZs7x+3C+QwdyFaV/k9MdB2kqlczKWT1jE2b0f1coPy Cc: linaro-dev@lists.linaro.org, bjlee@samsung.com, patches@linaro.org, mk7.kang@samsung.com, samsung@lists.linaro.org Subject: [U-Boot] [PATCH v2] EXYNOS: Rename exynos5_tzpc structure to exynos_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 Exynos based SoC'c. Renaming exynos5_tzpc in arch/arm/include/asm/arch-exynos/tzpc.h to exynos_tzpc will allow generic usase of tzpc. Also modify board/samsung/smdk5250/tzpc_init.c to use exynos_tzpc. Signed-off-by: Chander Kashyap --- Changes in V2: - Renaming is changed from s5p_ctzpc to exynos_tzpc as per Kyungmin's Comments. 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..c5eb4b1 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 exynos_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..f39bd55 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 exynos_tzpc *tzpc; unsigned int addr; for (addr = TZPC0_BASE; addr <= TZPC9_BASE; addr += TZPC_BASE_OFFSET) {