From patchwork Tue Jan 15 10:25:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 14041 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 4985D23F88 for ; Tue, 15 Jan 2013 10:18:28 +0000 (UTC) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by fiordland.canonical.com (Postfix) with ESMTP id E341EA18525 for ; Tue, 15 Jan 2013 10:18:27 +0000 (UTC) Received: by mail-vc0-f169.google.com with SMTP id gb23so4582893vcb.28 for ; Tue, 15 Jan 2013 02:18:27 -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:dlp-filter:x-mtr:x-brightmail-tracker :x-brightmail-tracker:x-cfilter-loop:x-gm-message-state; bh=2vjcHT2muSVE68avcpGLoOpx3Dvv3JdG10YnH1aG6jc=; b=drh2BWK6MREFWo6C9XU9t3sxUe7i6TIFTDcg+kak8Ta/Me3ZzCmnpcwnSNB+0URZZz 46pGWEO0XcV7E5SxH/HFYpMb5o7Zye4p1EIow5Z0KBpWIH8T3b6GaEgJk4J6VacuSO1B ZQc+LLpqB7XwSni2g7Jbwe0bWFa6aiCx6MKZJh+ORFoNUNyjyzhq+aLOmz+COGuHkIRx 4XrskK6LuKyOhXUTJCRtYsbafH27aFEuGBdKfSKknEYnO+HVJXQ+oPi3/77FGcH9oRqv vqcyI1AZjyxEXn50Dutcw1gqUPxBbLzQrawBfDVya1vNpZYA6FUM6M+81Rf3vMxYUG5W 99CA== X-Received: by 10.220.238.139 with SMTP id ks11mr102670698vcb.49.1358245107407; Tue, 15 Jan 2013 02:18:27 -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 st5csp104115veb; Tue, 15 Jan 2013 02:18:26 -0800 (PST) X-Received: by 10.68.238.8 with SMTP id vg8mr264649796pbc.26.1358245104404; Tue, 15 Jan 2013 02:18:24 -0800 (PST) Received: from mailout1.samsung.com (mailout1.samsung.com. [203.254.224.24]) by mx.google.com with ESMTP id pu7si17117667pbc.157.2013.01.15.02.18.23; Tue, 15 Jan 2013 02:18:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.24 as permitted sender) client-ip=203.254.224.24; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.24 as permitted sender) smtp.mail=rajeshwari.s@samsung.com Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MGN005MGWMADUR0@mailout1.samsung.com>; Tue, 15 Jan 2013 19:18:23 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.126]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 40.61.12699.EEC25F05; Tue, 15 Jan 2013 19:18:23 +0900 (KST) X-AuditID: cbfee61b-b7f616d00000319b-e3-50f52cee1699 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id EF.51.12699.EEC25F05; Tue, 15 Jan 2013 19:18:22 +0900 (KST) Received: from rajeshwari-linux.sisodomain.com ([107.108.215.115]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MGN000VMWMF3V70@mmp2.samsung.com>; Tue, 15 Jan 2013 19:18:22 +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] EXYNOS5: Add function to setup set ps hold Date: Tue, 15 Jan 2013 15:55:45 +0530 Message-id: <1358245546-10035-2-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.4.4 In-reply-to: <1358245546-10035-1-git-send-email-rajeshwari.s@samsung.com> References: <1358245546-10035-1-git-send-email-rajeshwari.s@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrALMWRmVeSWpSXmKPExsWyRsSkTve9ztcAg+5FjBYP199ksZhy+AuL A5PHnWt72AIYo7hsUlJzMstSi/TtErgy7t+9wlRwhqdi3e0zbA2MV7m6GDk5JARMJN49u8gK YYtJXLi3ng3EFhJYyihx52ciTM2J92eg4tMZJRYft+hi5AKyJzJJnFn1ggUkwSZgJLH15DRG EFtEQELiV/9VMJtZIEbi9f4fYM3CAvYSk768ZwaxWQRUJTb+aASL8wp4SCy7fZ4NYpmCxLGp X8EO4hTwlJi34TE7xGIPiYc9d9ggegUkvk0+BLSXA6heVmLTAWaQeyQErrNJ3Ht8nB1ijqTE wRU3WCYwCi9gZFjFKJpakFxQnJSea6RXnJhbXJqXrpecn7uJERiMp/89k97BuKrB4hCjAAej Eg/vTd0vAUKsiWXFlbmHGCU4mJVEeH3eAYV4UxIrq1KL8uOLSnNSiw8x+gBdMpFZSjQ5Hxgp eSXxhsYm5qbGppZGRmampjiElcR5GU89CRASSE8sSc1OTS1ILYIZx8TBKdXA2DfFaMu8yBzB Hwpnp51hD1S7GHD6oLD6RnbFAP8fUk66/+MmCuw5ov4nPcivSoj79ENrlvfvGlsW3tjt9+74 hkz+NQwbFJbfC1gy6bKJhoKwtNRVdfH5b2/u+bF7j7hdmsKLacL/Utpilh1WXtmz5+u6UwHf zhx7+8xIaNX/7h8y8bkB1hd2hyixFGckGmoxFxUnAgBadrCPcwIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAIsWRmVeSWpSXmKPExsVy+t9jQd13Ol8DDI5vMLJ4uP4mi8WUw19Y HJg87lzbwxbAGNXAaJORmpiSWqSQmpecn5KZl26r5B0c7xxvamZgqGtoaWGupJCXmJtqq+Ti E6DrlpkDNFtJoSwxpxQoFJBYXKykb4dpQmiIm64FTGOErm9IEFyPkQEaSFjDmHH/7hWmgjM8 Fetun2FrYLzK1cXIySEhYCJx4v0ZNghbTOLCvfVgtpDAdEaJxcctuhi5gOyJTBJnVr1gAUmw CRhJbD05jRHEFhGQkPjVfxXMZhaIkXi9/wdYs7CAvcSkL++ZQWwWAVWJjT8aweK8Ah4Sy26f h1qmIHFs6ldWEJtTwFNi3obH7BCLPSQe9txhm8DIu4CRYRWjaGpBckFxUnqukV5xYm5xaV66 XnJ+7iZGcLA/k97BuKrB4hCjAAejEg/vTd0vAUKsiWXFlbmHGCU4mJVEeH3eAYV4UxIrq1KL 8uOLSnNSiw8x+gBdNZFZSjQ5HxiJeSXxhsYm5qbGppYmFiZmljiElcR5GU89CRASSE8sSc1O TS1ILYIZx8TBKdXAOMnv25tk3jc/2Di8rBZ/iVL5fkbBb/GtHubIX5OZXcLnLd+XnCV1So3h 4JubHTUrLTn3id34eyA7N+x0ZNY0cSPN73aP8yWyajWzTj+cbqFfeV40538T//KbLczGB5Yv 2apdcnNjcJw6cxWvxSftAAmGOXI1H1iPnNQO0jybw6P+elds5PK7SizFGYmGWsxFxYkADTVG FqMCAAA= X-CFilter-Loop: Reflected X-Gm-Message-State: ALoCoQkHXyg8xR8IzUXUBKgm1tMGAkedgnhK0gnFBvSiOcnNzYULofmtLUv2xnjhuM+ldS58DkKW 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). Signed-off-by: Rajeshwari Shinde Acked-by: Simon Glass --- arch/arm/cpu/armv7/exynos/power.c | 10 ++++++++++ arch/arm/include/asm/arch-exynos/power.h | 8 ++++++++ 2 files changed, 18 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..85e2cd9 100644 --- a/arch/arm/include/asm/arch-exynos/power.h +++ b/arch/arm/include/asm/arch-exynos/power.h @@ -864,4 +864,12 @@ 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