Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932551AbbFBSkU (ORCPT ); Tue, 2 Jun 2015 14:40:20 -0400 Received: from mail-by2on0054.outbound.protection.outlook.com ([207.46.100.54]:57626 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754238AbbFBSj6 (ORCPT ); Tue, 2 Jun 2015 14:39:58 -0400 Authentication-Results: spf=fail (sender IP is 66.35.236.236) smtp.mailfrom=opensource.altera.com; kernel.org; dkim=none (message not signed) header.d=none; Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=atull@opensource.altera.com; From: Alan Tull To: Dinh Nguyen , Rob Herring CC: Pavel Machek , Arnd Bergmann , "Steffen Trumtrar" , Pawel Moll , "Mark Rutland" , Ian Campbell , Kumar Gala , , , Russell King , , Alan Tull , Delicious Quinoq Subject: [PATCHv6 0/2] socfpga: support suspend to ram* Date: Tue, 2 Jun 2015 13:35:37 -0500 Message-ID: <1433270139-7042-1-git-send-email-atull@opensource.altera.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: BN1PR08CA0022.namprd08.prod.outlook.com (10.242.217.150) To CY1PR03MB1517.namprd03.prod.outlook.com (25.163.17.23) X-Microsoft-Exchange-Diagnostics-untrusted: 1;CY1PR03MB1517;2:pnrDN1Y9IWrQa2IzNlATCArpyjhqgzKKyeWkxqXffCAkmXPcFXrqOctOdj1jhdyI;2:LgEhZEiJIs43jx5Lm/TMlLL3xWc1gji4qVe5aER8272SytXr+dicrZWe6F/+dI0Cj5zuS2Cy9OJ2lagbDRdUzkHtag5rLsd8U7wdNlJbjAioDzisPK91UKWl7Ki9j+hsnDIYB9mwi56EuQwRUZjnUQ==;6:noGGGSjfbQYruOBTBxrzEgcvmVMTEv2VbG+sxgUWjp2VWLsIOduI9sZwl8v1RJW3SuR5RyzhIAWB5KtLwEBJ/AlQMUDtrnosXEgJmrzsIgdxg7kq5r5U1SqVfMyzu/kth69UkdKDEw6pE6t8LyAmKg==;3:ZFxfbWqPcn4zehtcg1mDCg8IjAxW6cgBUQrx9kGGBBuqRzX74dDkg9jYO26jNlcrA1Up8PcDo1VSIkVDbSbkWljcF9mQsJ3GyOuge2plVrKxc9Gna0xcQrM+tJ/JxBIQMW45i0kOPxlgfvl77Pv0D1g+ybFlNJHj1rI+5YK4aOEen/zaIM6giRWMQJxWiA0PktDxS4S2halI3anzenyTy7RRf7chgAoNkTPR6/p3KRoEVlL1NlqSgUpqnfw6kwgp8AfU+kle1qIzcWXLgN/JU/QqNAU/kq5cZmP/tOSMiaiSIWE36Ks+KoW8Id+SEwkd X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB1517;UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB126; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:;UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(520003)(3002001);SRVR:CY1PR03MB1517;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB1517;BCL:0;PCL:0;RULEID:(601004)(5005006)(520003)(3002001);SRVR:BY2PR03MB126;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB126; X-Forefront-PRVS: 05954A7C45 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM;SFS:(10009020)(6009001)(189002)(199003)(229853001)(66066001)(42186005)(46102003)(106356001)(53416004)(33646002)(105586002)(5001830100001)(50986999)(189998001)(19580395003)(81156007)(69596002)(50226001)(5001770100001)(92566002)(5001860100001)(77156002)(77096005)(101416001)(62966003)(86362001)(97736004)(48376002)(5001960100002)(68736005)(64706001)(40100003)(50466002)(87976001)(122386002)(4001540100001)(47776003);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR03MB1517;H:linuxheads99.altera.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:0;LANG:en; X-Microsoft-Exchange-Diagnostics-untrusted: =?us-ascii?Q?1;CY1PR03MB1517;9:ZDNsTsm7Zi4hdcnXiP1b32bq2iktspTuCbgiW88/RL?= =?us-ascii?Q?XVAPWGXQN6NH0t+K3kYMGALOM5NM7efBu1oAHLq0izdUYOP5UIaIdegCv6t9?= =?us-ascii?Q?dKkHvNjsDP2Xm9P+yn8THMGoqQMec6tGRmTRm70q8IrXMaP73ACXT7GyCavZ?= =?us-ascii?Q?P0kqBegAPutBhF1qg9+ApWlsknCfzHdSbtkxVvS31clf1mtjc7u1PZqFCgDD?= =?us-ascii?Q?OrurXwS4HMB69sjeo9eXwU4xN1AsPgNtHI7DsoX+HcoCoxwZbKLr1FYIAFBM?= =?us-ascii?Q?Bnd5oc9lVVI5Sw2fMctToLDznyPH/zTU0IANy6IGCMyCyxduZ5gYVxxAjhln?= =?us-ascii?Q?r4knaCEhshlYnj+mL7vmyX7Hu3sjymPfXJoXvbx3Al+EoPVhBBYPsnjhhwxk?= =?us-ascii?Q?wPxCQ/eKXK2IHW6DzkM36D6s8069T5/1jnG8R7z5sJsGYLK51/6H2RZtAMnZ?= =?us-ascii?Q?4Mg/3E6ttxdSockqSFcyhoRql8TkN2D8t3X50b/ZkPMF4xzs3gMxamO32OoR?= =?us-ascii?Q?Zy5xnqyHnLxurSOCrqyyAcWZp/WgtAMzdJnYvxoSoCjgJTEnJI6PcqRqwvct?= =?us-ascii?Q?TzJer4CGHNCnoIqOPMybTkhAbQnwPpeG6bt1Y+OezMVlyvCHkoME1c7IVsLg?= =?us-ascii?Q?NKnR1BjOofTvbPBVWKmHr4azQcTcATcJUdaS+ckMIHk32xaCV5Y5v6REEz6M?= =?us-ascii?Q?LTE1g7OZwSZpXysu6T7R5xDRB10jSfdl/e/tJN2rePrn0xMUscZu70ayZfVr?= =?us-ascii?Q?Vz4yfnBZ6Ju1vvyExPXp3FzpbYO5XcYs51pu9q7ewg0L4FrZtYTjLUysF0Bh?= =?us-ascii?Q?cYKOTbipdxRy2IJ5qyb4g27BBKwaM/VXuximTSzFAANqcItfhsVqcP58pGJk?= =?us-ascii?Q?t3zBcCWHK7ZeuhjXv7GL/VEe2QpMBsR5uWk58mPqgqUxE64018tsN28nojaA?= =?us-ascii?Q?Ejtp/hKJCD6EllMPs5jXvAhyGILC0tklZgPoLTq/XYJ5W5MOfxLDKJk79XHU?= =?us-ascii?Q?E=3D?= X-Microsoft-Exchange-Diagnostics-untrusted: 1;CY1PR03MB1517;3:3AuTD4QJ68Wrb1FFoT180M2faw2sjllnEQ2sV97du4ZLyKOk7fppxrXwFTN2BI+RbvPH2Dp5pZY74Q2HbbZRUNkq6WGG8rptyENWnK/9i5teD7O0aI02Hsk+iiJ98vVOxoktkflgDdGCXuvUj/kGTA==;10:aUe8BXzn3zfD0mjvmO+h7MPruyyb3X4eyMtEJfjT//9tGP0zNousOLeNptyhSdye4/d7G51udbGfptRGfZbzFWIqmteF3LSalaXsbnF5qU8=;6:11R7FxuwDbxBxuql7uXUJR9/GPqmOs7K7MrQts3NbJjVFClrzu53WjYNtq2Xv317D4ont/2p0+aIIz2d8yXKBqvyL8wpndIExV+DrVyszxnhdXgAGMKymT6jirMA5hsgkRVUcsA9kcrLXsDXS3TpdQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB1517 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BN1BFFO11FD050.protection.gbl X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD050;1:P9iSNjJlKDxXKbt7pTjxozSKp5yKglFbL+0xurbnaI7QqDkmz0gPv4l76k/bN3wmHRcdVz1lMcBA9F7E2GJ4jAQTpYJMDV3vHhKgZag4z8bhZuY1OmAjIia/qG60JzTpJNQx740NnlbYazF3JPfThXD5Ro5N8wfIRa+9AuHo9tDzXWj2IrNd8BG3/ZEmwQ0wSWq10biwWEfn+Kps+gUiTLiwRU/JQp/tVyzFJMqGb0mVzC6Ed+lmEu6ZL5xr+8jvDpQw31maYhqYdno1LtxD1wJfyMpzzSLUBFplcsMiToC0AFAyRnK6fsNeyMNCSKiM X-Forefront-Antispam-Report: CIP:66.35.236.236;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(339900001)(189002)(199003)(85426001)(189998001)(16796002)(77096005)(5001770100001)(50986999)(6070500001)(97736004)(68736005)(47776003)(92566002)(66066001)(46102003)(6806004)(81156007)(86362001)(48376002)(53416004)(4001540100001)(87936001)(19580395003)(33646002)(5001860100001)(5001960100002)(50466002)(106466001)(229853001)(5001830100001)(64706001)(105606002)(50226001)(62966003)(122386002)(77156002)(40100003)(7099028);DIR:OUT;SFP:1101;SCL:1;SRVR:BY2PR03MB126;H:sj-itexedge04.altera.priv.altera.com;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;MX:3;A:0;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BY2PR03MB126;2:lSD15CBbrXtiLv8zDFoWSEOQ38XoXxRS6WshInp0ezJmPwlL4OwqmBuTyhNByUzc;2:X/3U9ig4k7/2yI8yGSLZL6Gs92id0x/Mn1VuzuIiHn6bmWKTcdq1VsDi3m3OsNtvOCYMURC7q/Sgk0iqZ7rGsDEh1lVIOjP4s3cLum5V5WVdAfjJyMlAr23dQqTXORXWHr1Po3hjfW1COQ1EigJIhVsU8nNrVH3vTJmeJevQ4uvOJoh1Fc2O7lOHNuV/azG9PPX+rhE/+VdKIdpDeXYkp5Tf2p3W84ZRT0W/NbBZAKQ=;6:p2Tqr92f46wb7+YJX1hRIUQkVYYwDuEkZwwpP/drvo5vvf3uoK8Ml+YXc1tus06J+Nmt4fLhOrZV47CplYL5huqCv8mvmZw8ngOabPoIn20jrsDvsRGWIjWes7B7zvH0cYKaIlLRaMb2e0ZcUTxkMg==;3:hcYnW4pWxl0lgcwkih2Th9n2zU0kcNZmtZ3KBxiZLArdi28/spcYlrL58SRNCCS0CeG7Qv9k+A7M/wz+3Iqlulezf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r0r0QO1edWh7uyyyKQ3BKjh?= =?us-ascii?Q?gxbZSRrr8/jLlbSStemuUNDfs1ooDt4RbpqoMULT4eTkJXeVZ6lsAtnNr3Y6?= =?us-ascii?Q?SJE8RKNKtuAcfIH5dwCWEQ7sw0oGdn76+kdj1kgJd+LILgwMHXVSGO3M0dpQ?= =?us-ascii?Q?BljPVvIGNZIbUMWFBiHHcTiTy0LQ17cxZ9vqd5y13wnorvsZ6q8zE8pvJ6RO?= =?us-ascii?Q?pdP5oOReHpJnvBubGTs+EZwBFUauxTLmLpSDBf96q+V03Pu9HHq329FXNMua?= =?us-ascii?Q?3q78Kc3nKo+xKZJi+HuxgVWvDDel5a+H//heHFPC54gkj3B5bAwAgvK65xij?= =?us-ascii?Q?tZv3h54BwmXPGzBdVhMlH/aZqjHlfWAcQU6wv74rkKqypeMZen1WhAsXA4Dn?= =?us-ascii?Q?DGzwM5Fxwef5ZgJ/4fRBn5EgKLCLc8a7Srng6vHEiD8cAF5iqH6CXkuGlzA9?= =?us-ascii?Q?iHWY=3D?= X-Microsoft-Exchange-Diagnostics: 1;BY2PR03MB126;3:tDiHRWlvlvwaF0GB1ZN7t0GgKpa6C4zhStGj+rnpvw/vwup3X5Ff74FWw6qvL4zVQz29jNt/SB7W1gL7IANk5dsvOJ58f/mw14hB2sJ2V7oDO0LEH8IvedXRzs3B3KuEIPjOMB4OMzzlEpJzt6FlvA==;10:fj0FkM4vgEayGaCnfdkw4wX78743ecoWpMUwFM3LsBP1MtSOV43K2o8dQtbUzuyB5RlJnmBmQb2ujH6zzXjH7MkZvNNyASYL+I9vGsN4dak=;6:vnpFbclmf5X14YV3+C/fyaojfnnRsc4zn0WaVwNqhAZlsJIug2vQAJqqdGFFE5Rj/iR/HiKOdo8wj1p7n4sMF2+exHopTKH+wFH/AblU8KDJ6W5VnRyvtJYyj6+QSFHeSdS16mYQjgr0pWkuLEdacg== X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2015 18:39:54.3164 (UTC) X-MS-Exchange-CrossTenant-Id: fbd72e03-d4a5-4110-adce-614d51f2077a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fbd72e03-d4a5-4110-adce-614d51f2077a;Ip=[66.35.236.236];Helo=[sj-itexedge04.altera.priv.altera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR03MB126 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1481 Lines: 34 Support suspend to ram on socfpga. * allocate space in ocram using sram driver. * Add a function in ocram to place DDR in self-refresh and suspend. * Prevent suspend if EDAC is enabled. * Add a device tree binding document for the Altera SOCFPGA SDRAM controller that is used to put DDR in self-refresh mode. Alan Tull (2): ARM: socfpga: support suspend to ram ARM: socfpga: dts: add sdram controller dt binding doc .../arm/altera/socfpga-sdram-controller.txt | 12 ++ arch/arm/mach-socfpga/Kconfig | 10 +- arch/arm/mach-socfpga/Makefile | 1 + arch/arm/mach-socfpga/core.h | 6 +- arch/arm/mach-socfpga/pm.c | 149 ++++++++++++++++++++ arch/arm/mach-socfpga/self-refresh.S | 136 ++++++++++++++++++ arch/arm/mach-socfpga/socfpga.c | 6 +- drivers/edac/altera_edac.c | 20 +++ 8 files changed, 337 insertions(+), 3 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/altera/socfpga-sdram-controller.txt create mode 100644 arch/arm/mach-socfpga/pm.c create mode 100644 arch/arm/mach-socfpga/self-refresh.S -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/