From patchwork Wed Jan 23 10:07:56 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 14241 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 3409E23EAD for ; Wed, 23 Jan 2013 10:00:21 +0000 (UTC) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by fiordland.canonical.com (Postfix) with ESMTP id CF29CA189C0 for ; Wed, 23 Jan 2013 10:00:20 +0000 (UTC) Received: by mail-vc0-f176.google.com with SMTP id fy27so3030584vcb.35 for ; Wed, 23 Jan 2013 02:00:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-auditid:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-brightmail-tracker:x-brightmail-tracker :dlp-filter:x-mtr:x-cfilter-loop:x-gm-message-state; bh=Z53rLKu48ZX9gX5U/WGJe9y0p5ypG1zCqT9y6dBG7go=; b=ZB1wVaWNzbcW3EQBPRJiTINFVFbgzBt/FebwBYaGqd/ar5WxK57yTG1sIRTq/GYRl0 VPA1K6ImoRnHPMFKLEijQ7OmFJaL8Tbb/V2CNUWRu4M+mKZTwVsJPLgV9C/blVSCfjkQ +B72ivWU5DTpMl5JmX41+onQMqcfKtgZP9ZwNWU5gD9z29WpdqPvIfH9GlSSq4RHlU1p IRlnMFp65o1cXLPTVttjSGkWeN+kAv0aOtG478f+ooIHUIzVJQKZsnHWTZZ7QdFmhMq/ tCxWfZBPm6F/EXme3aiXLTZyH3OVoVi8yGnG5VDUYe2H0ve9RVnBYIplSfK4dEGWh3T5 hr5Q== X-Received: by 10.221.0.79 with SMTP id nl15mr635047vcb.41.1358935220306; Wed, 23 Jan 2013 02:00:20 -0800 (PST) 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.58.145.101 with SMTP id st5csp1452veb; Wed, 23 Jan 2013 02:00:19 -0800 (PST) X-Received: by 10.68.230.135 with SMTP id sy7mr1973852pbc.76.1358935218870; Wed, 23 Jan 2013 02:00:18 -0800 (PST) Received: from mailout4.samsung.com (mailout4.samsung.com. [203.254.224.34]) by mx.google.com with ESMTP id ko4si19959300pbc.16.2013.01.23.02.00.18; Wed, 23 Jan 2013 02:00:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.34 as permitted sender) client-ip=203.254.224.34; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.34 as permitted sender) smtp.mail=rajeshwari.s@samsung.com Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MH2001ACOUVNW01@mailout4.samsung.com>; Wed, 23 Jan 2013 19:00:17 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.122]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id F2.8F.03918.1B4BFF05; Wed, 23 Jan 2013 19:00:17 +0900 (KST) X-AuditID: cbfee61a-b7f7d6d000000f4e-6d-50ffb4b13674 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id A1.8F.03918.0B4BFF05; Wed, 23 Jan 2013 19:00:17 +0900 (KST) Received: from rajeshwari-linux.sisodomain.com ([107.108.215.115]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MH2002PJP45GK50@mmp1.samsung.com>; Wed, 23 Jan 2013 19:00:16 +0900 (KST) From: Rajeshwari Shinde To: u-boot@lists.denx.de Cc: patches@linaro.org, sjg@chromium.org, mk7.kang@samsung.com, chander.kashyap@linaro.org Subject: [PATCH 1/2 V2] EXYNOS5: Add function to setup set ps hold Date: Wed, 23 Jan 2013 15:37:56 +0530 Message-id: <1358935677-10876-2-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.4.4 In-reply-to: <1358935677-10876-1-git-send-email-rajeshwari.s@samsung.com> References: <1358935677-10876-1-git-send-email-rajeshwari.s@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrKLMWRmVeSWpSXmKPExsWyRsSkSnfjlv8BBqdmCVs8XH+TxWLK4S8s Dkwed67tYQtgjOKySUnNySxLLdK3S+DKaN/MX7CDt+L98ZusDYyrubsYOTgkBEwkWi4kdTFy ApliEhfurWfrYuTiEBJYyijR9OM7I0TCROLIn2nMEIlFjBKXX7YwgSSEBCYySUw4WwxiswkY SWw9OQ2sQURAQuJX/1Uwm1kgRuL1/h9sILawgJPEgzVLWUBsFgFVifd9R8BqeAU8JM5M/M8M sUxB4tjUr6wgNqeAp8S6KQ9ZQA4VAqpZNdkK5AYJgdtsEme/b2SDmCMg8W3yIRaIZ2QlNh2A GiMpcXDFDZYJjMILGBlWMYqmFiQXFCel5xrqFSfmFpfmpesl5+duYgQG4ul/z6R2MK5ssDjE KMDBqMTDm/DsX4AQa2JZcWXuIUYJDmYlEV6Vtf8DhHhTEiurUovy44tKc1KLDzEmAy2fyCwl mpwPjJK8knhDYxNzU2NTSyMjM1NT0oSVxHkZTz0JEBJITyxJzU5NLUgtgtnCxMEp1cCokHh3 0bNTB8PajQ91s0jGZU2Li/z05kn5w7Wsn86/+aQVyy5RPtmALWLH7D3SR9emrv/6KWyLUFnM pm3XS/mWz25fkGHIk/Nr3+v4kitebbMnp2yZ3+G+6PYls79P45s0nD/Hsj2WYIw9q2J/lG2G TeuBytKlbsIXfaacNt/Hoimy1zTfLbFViaU4I9FQi7moOBEA6ysnAogCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrKIsWRmVeSWpSXmKPExsVy+t9jAd2NW/4HGOy9zGLxcP1NFosph7+w ODB53Lm2hy2AMaqB0SYjNTEltUghNS85PyUzL91WyTs43jne1MzAUNfQ0sJcSSEvMTfVVsnF J0DXLTMHaLaSQlliTilQKCCxuFhJ3w7ThNAQN10LmMYIXd+QILgeIwM0kLCGMaN9M3/BDt6K 98dvsjYwrubuYuTkkBAwkTjyZxozhC0mceHeerYuRi4OIYFFjBKXX7YwgSSEBCYySUw4Wwxi swkYSWw9OY0RxBYRkJD41X8VzGYWiJF4vf8HG4gtLOAk8WDNUhYQm0VAVeJ93xGwGl4BD4kz E/9DLVOQODb1KyuIzSngKbFuykOgeg6gXR4SqyZbTWDkXcDIsIpRNLUguaA4KT3XUK84Mbe4 NC9dLzk/dxMjONCfSe1gXNlgcYhRgINRiYc34dm/ACHWxLLiytxDjBIczEoivCpr/wcI8aYk VlalFuXHF5XmpBYfYkwGOmois5Rocj4wCvNK4g2NTcxNjU0tTSxMzCxJE1YS52U89SRASCA9 sSQ1OzW1ILUIZgsTB6dUA+Ps6YwzXKy+G7t9PiJ2w3A5+8Wp2o+m7b56NnLjyrWtWp76UhdS 7reJN24LUhNo0b73xvCt69bWXK2Dhv1Bht6+jEW8U7rae8OCXzq/nmGU0iK/xX1rIY9zZlvq 5/umma3lgcLr3X/8FhTLXcWSP2+a1q9fyf8SK9sEVty8XKhhIOfdtn1mrRJLcUaioRZzUXEi AIad+EW4AgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-Gm-Message-State: ALoCoQmG6Qp5WvQ70S/GgnAhUeHhyoFrKGfcI9EI7Vu9CJ+ekwHCXs+aR2Up0OPBl7l+bHgzOlLX This patch adds a function to set ps_hold data driving value high. This enables the machine to stay powered on after the initial power-on condition goes away(e.g. power button). Acked-by: Simon Glass Signed-off-by: Rajeshwari Shinde --- Changes in V2: - Corrected the multi line comment style arch/arm/cpu/armv7/exynos/power.c | 10 ++++++++++ arch/arm/include/asm/arch-exynos/power.h | 9 +++++++++ 2 files changed, 19 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/armv7/exynos/power.c b/arch/arm/cpu/armv7/exynos/power.c index d4bce6d..8572cfd 100644 --- a/arch/arm/cpu/armv7/exynos/power.c +++ b/arch/arm/cpu/armv7/exynos/power.c @@ -95,3 +95,13 @@ void set_dp_phy_ctrl(unsigned int enable) if (cpu_is_exynos5()) exynos5_dp_phy_control(enable); } + +void power_ps_hold_setup(void) +{ + struct exynos5_power *power = + (struct exynos5_power *)samsung_get_base_power(); + + /* Set PS-Hold high */ + setbits_le32(&power->ps_hold_control, + EXYNOS_PS_HOLD_CONTROL_DATA_HIGH); +} diff --git a/arch/arm/include/asm/arch-exynos/power.h b/arch/arm/include/asm/arch-exynos/power.h index d2fdb59..8384cbb 100644 --- a/arch/arm/include/asm/arch-exynos/power.h +++ b/arch/arm/include/asm/arch-exynos/power.h @@ -864,4 +864,13 @@ void set_dp_phy_ctrl(unsigned int enable); #define EXYNOS_DP_PHY_ENABLE (1 << 0) +#define EXYNOS_PS_HOLD_CONTROL_DATA_HIGH (1 << 8) + +/* + * Set ps_hold data driving value high + * This enables the machine to stay powered on + * after the initial power-on condition goes away + * (e.g. power button). + */ +void power_ps_hold_setup(void); #endif