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: 7303 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id B5C5F23DEE for ; Thu, 15 Mar 2012 03:34:16 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 75111A18070 for ; Thu, 15 Mar 2012 03:34:16 +0000 (UTC) Received: by iage36 with SMTP id e36so4454555iag.11 for ; Wed, 14 Mar 2012 20:34:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=cVbyViDflOR6OjqD6Idb3qt1LV9N+qIuxZnSK5d6G8M=; b=HYeLkG8UxIti3Sa4YOzjc+rpYUnkdi6ca0LQiudQlrQth4vDpAg7VQ8Is98HcgdK0q C8S8mtaiRDsuESfwFywSfyeEVstxPz9bhDlgnkXSJxZ1HcZ42pxpU+y3R0UhRE7vRl8t nvBvOOc5K9mSVBtcS9igaGQQAXiOnaLUHcAoHybm3CXEO2FCjnqfxy5uZ32tH+qEQt2f 7yg7oxJd/lFtZTC9NA2nSUVPQQfkGaKgs/KMpY4NDOlFQr08a1Kl69KwlZfBMnHglTTh HEawUOIfQWB0fgoonHhSCJknhKIqZkaI8EKj1kQYd9aMTN0MyeoMKlwqjIuyKgclXSNq D/7g== Received: by 10.50.222.233 with SMTP id qp9mr7576109igc.58.1331782455926; Wed, 14 Mar 2012 20:34:15 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.53.18 with SMTP id k18csp25851ibg; Wed, 14 Mar 2012 20:34:15 -0700 (PDT) Received: by 10.68.197.228 with SMTP id ix4mr1309959pbc.101.1331782455146; Wed, 14 Mar 2012 20:34:15 -0700 (PDT) Received: from mail-pz0-f45.google.com (mail-pz0-f45.google.com [209.85.210.45]) by mx.google.com with ESMTPS id b5si1170464pbj.233.2012.03.14.20.34.14 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 14 Mar 2012 20:34:15 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.45 is neither permitted nor denied by best guess record for domain of chander.kashyap@linaro.org) client-ip=209.85.210.45; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.45 is neither permitted nor denied by best guess record for domain of chander.kashyap@linaro.org) smtp.mail=chander.kashyap@linaro.org Received: by dadp14 with SMTP id p14so11005959dad.18 for ; Wed, 14 Mar 2012 20:34:14 -0700 (PDT) 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 Cc: mk7.kang@samsung.com, bjlee@samsung.com, patches@linaro.org, samsung@lists.linaro.org, linaro-dev@lists.linaro.org, Chander Kashyap Subject: [PATCH v2] EXYNOS: Rename exynos5_tzpc structure to exynos_tzpc 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: ALoCoQmgRPlmYogrfSE5jhk6MfABwskiaYL948vCKRXyWJIvkj+uz6ZJjeejriQzW5BRv5VKfM3j 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) {