Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757862AbbEVSVp (ORCPT ); Fri, 22 May 2015 14:21:45 -0400 Received: from mail-bn1on0055.outbound.protection.outlook.com ([157.56.110.55]:20831 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757831AbbEVSVh (ORCPT ); Fri, 22 May 2015 14:21:37 -0400 X-Greylist: delayed 934 seconds by postgrey-1.27 at vger.kernel.org; Fri, 22 May 2015 14:21:37 EDT 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: [PATCH v4 0/2] socfpga: support suspend to ram Date: Fri, 22 May 2015 13:02:13 -0500 Message-ID: <1432317735-29413-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: DM2PR10CA0071.namprd10.prod.outlook.com (10.141.241.39) To BY1PR03MB1515.namprd03.prod.outlook.com (25.162.210.149) X-Microsoft-Exchange-Diagnostics-untrusted: 1;BY1PR03MB1515;2:S7fuscUP9zSH9q60DtX53KXhrNwkuYYrjB6eKdn3qJvHg/pPk5DChZO5JpWAl54v;2:kwVayJPHvLH83dzpsnbFnhz9P9jETJjTczOAGQYah6Cnh1k5B5jcuEKHGKTUd6NWV0Uhvcjp0kr+ISkX9RCMLGYoj4vhOVLI/CpZ4NqNayUNDSB4ATDQSMwbJiGfoEwKuqC/e53lku3IrV75sE2+vw==;6:h5LX8McJypLmneJtZ3bGaMpegf8bz+/N+eh+op3rvRRrkDHeD+dONcINkKQxBl6ae5pFke5QD9DGVcYj9hKxs9FmBrsR7x5o195OQJY62EGDuMpuRKexcAdC5RbWNWkXDAEkeD+tpPS8E01oBLVUMA==;3:t7WPTvQksPfgW1mbBKdl6u8+8OCGTVzxfmmE0PvPbFRbkpeljsPkgteZn7X9P1BBFdoM4aBwU8ZyBEMAtS8ggL5h5C2GwlY76pimc0Wy6W2G2S94eqSsnUbhT8D9i0Tm3/+imqKADO4zgIbwIdryRv2uzB02qEzLq/84FpwlIR4xs81Ox9LSGG20FIlaBUdi2AO8tPpwBU1x4JaUS0/+cLfyppxVcvUJ7YRQSegkhOy2nmnUVJXP1DMPf/LB7bGDiWLrr7J4C+O/rNTzYsAre7EttT76isyvTm+9b6nbfAHWBE42zOm5a+IQmpV9nc51 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR03MB1515;UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB1502; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:;UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(520002)(3002001);SRVR:BY1PR03MB1515;BCL:0;PCL:0;RULEID:;SRVR:BY1PR03MB1515;BCL:0;PCL:0;RULEID:(601004)(520002)(5005006)(3002001);SRVR:CY1PR03MB1502;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB1502; X-Forefront-PRVS: 058441C12A X-Forefront-Antispam-Report-Untrusted: SFV:NSPM;SFS:(10009020)(6009001)(199003)(189002)(106356001)(50466002)(42186005)(33646002)(105586002)(86362001)(87976001)(5001770100001)(97736004)(4001540100001)(81156007)(229853001)(53416004)(48376002)(40100003)(68736005)(77156002)(77096005)(62966003)(122386002)(5001830100001)(5001860100001)(19580395003)(5001920100001)(5001960100002)(69596002)(46102003)(47776003)(66066001)(50986999)(189998001)(64706001)(101416001)(50226001)(92566002);DIR:OUT;SFP:1101;SCL:1;SRVR:BY1PR03MB1515;H:linuxheads99.altera.com;FPR:;SPF:None;PTR:InfoNoRecords;A:0;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics-untrusted: =?us-ascii?Q?1;BY1PR03MB1515;9:YX/hc2ILMYo/j0O46gz+P5+pOb37eXvAC4eGs5raRg?= =?us-ascii?Q?vMj+NyUVXhcA3ujiR9N40S8u04crY6FlpdMy4Qew1vH/+Fh0VhyPvdjfzK+6?= =?us-ascii?Q?3POKbWnYfvDzX04Im869PjkRJ7vQKmasOsbpkY8fXK648An71s0K2YhNGALb?= =?us-ascii?Q?ZJCc2GkoDEeaNfgB+J21HvdjVqs3wonTwTBiYwbjD0m3po81QmhxI46tNAU5?= =?us-ascii?Q?Mxdhszbu5oBtxvqBnYGawB4haYhQlNEFyh11iV0RrHCb6MGk6vZSMLRGQu/7?= =?us-ascii?Q?l/N9g0YaPWIc0MTDcTbheTg0PJgAgQtWfvY/xUrw/ri6CJdvZV037X0FQ3h3?= =?us-ascii?Q?QI3zQsssYhCrRYO0wx2/fSHLu/gVafTnKKF7Cr5lvs/0s61GcZ9MvcOsEcA9?= =?us-ascii?Q?uF3W0oMfTbTPNbdKCkjQ5Zwd4cQyFZonrZyTv5yziAoIGnZbdithHLhCxpyU?= =?us-ascii?Q?rKNPNMTiFMd86F3LuYimTBs7BYJAZ+Q8cMH0pbplzfX2pcmCiHhnfWoTSqJV?= =?us-ascii?Q?yudF4i/WEwfzKOMoUy3s/mvZtUG0onYWHRr/4EgOJX0ePEeAFpjPed75X45E?= =?us-ascii?Q?aqrsAUXKvcsZ3iuJ+DPn/aOEjnQCXGh2R6fgJiAo5NUo2IC5SrAZWJ8Xn3/V?= =?us-ascii?Q?bWUQlcMlKWin+FMQ+0aiX3Go/HBfGjP+NfOPqu/ULX8v6NwgudP9QVKjrtl0?= =?us-ascii?Q?/f+qJwmAOwvjIP/8539WiPbQAbork4roQmQGnh6vQCg9TKUiHG8enz00OnRm?= =?us-ascii?Q?u0wAzxI75r+9MJ9V7uxXRiTzQc99Xuzvl9J5GmK044VKZjVfj/nYcWpYhgv7?= =?us-ascii?Q?X9m21VnLG2c5RKzZqCw0Rg/bahja4YKjrHITzrvN5HqPTerC/YbdEYpNofwW?= =?us-ascii?Q?CzNdm2IELCBq+Th3daQ13GZqwePq4JnHL7xlo8HphBIpzRAERTR6OeLf6Juv?= =?us-ascii?Q?L7Pvn03isf+KEJ1EiZmjYz0eumUG1srBm3ly6pwBac6eCAz9fdPxqSPJT0rj?= =?us-ascii?Q?OIo6dkGVb9+TN0FU6ZVGkeQL4qkAzAbUl/te8Pwg83Tg=3D=3D?= X-Microsoft-Exchange-Diagnostics-untrusted: 1;BY1PR03MB1515;3:MofIaPpy7ZjRmL1P8jj3vUKxMVzhuo4nw4ErRwLpiEFvMey2ywWDQQ95PEOHknMyWT5RMJwVsn49OCJFVITDY+/TQ7owD/M7e6a8eIgUM8kJyjOSt9Q/YZozt+8d6+ojkIwj2rcqPxu0zK6C59q5tQ==;10:468Pg7yqRIKDUATuQbqzTZ3eHRD9B0vS1J4SAufdBhemjUN6jihDNZ+wOoq+5+G9ltLjH6nKBULTneJojXyxBzgtG1l6Cg//kv046QOzGko=;6:lkAUQlZMLU/q4vAKqo74n814HUsxcRc0R5tFSHx5v1wbfWVJLF1NFtGLVqEGTskX X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR03MB1515 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BN1BFFO11FD033.protection.gbl X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD033;1:8VZcqzydCeWXTajXy/rQQhwt9n+HQ7JvCcsaWWdt+UAQ//Ju1gpIHDu/a/OGAukeX5sPXOZutZ8giYde5jkMxOllveDo2SJOF290uiNsjfq1BzGqq1Xo8QNcTImOFR9pQcM/kqwHRUlis0+hASgkHM+5rcoexh3FIQL8FW1P2QXXj37joVOXt3q5JYm8aZqsB6ljcaJy2NH/xF8fuyzxdnQpDuihbfc/5GtXbafVgD8qWG5KPKHp+coADh0HU1RxNtgEx2PO2bzNRCT4ay3zp9QD55AvbaEW6LLzdPlw1yvymwLfYB40Ztyyp5skQ/m5 X-Forefront-Antispam-Report: CIP:66.35.236.236;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(339900001)(189002)(199003)(5001830100001)(5001860100001)(97736004)(6070500001)(50986999)(50226001)(5001960100002)(81156007)(189998001)(4001540100001)(5001770100001)(87936001)(64706001)(47776003)(66066001)(86362001)(19580395003)(48376002)(6806004)(33646002)(16796002)(50466002)(85426001)(68736005)(62966003)(77156002)(92566002)(77096005)(106466001)(122386002)(46102003)(40100003)(105606002)(229853001)(53416004)(7099028);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR03MB1502;H:sj-itexedge04.altera.priv.altera.com;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;MX:1;A:0;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;CY1PR03MB1502;2:j0DedKko2vUUDxVkvdTr46dxBzCutPL9RIwawK2SXi/gCQ/iN75hVIsZao9+lMpO;2:Luzw480AhsishzGKp9zFx6Y8zBIZLYzK+lCtsmo8UUxDZIweiG4xhBB5RnnetOT4K0bEIIA2BmRgEka3CyQkoQld3vl4TcKBs39iW4DdSLjpVeZD0sklHZDM7Q5ElTX3Oa4oOJ+A3o0+GSGx8y2z8e8Q7Lneswpm4lPlOWYsIUrx9XuhbHOxulL2+TzvSqk8CGy1FL8G+orIyNNWORHFn4KlAhm+b+DWBegRvnWmIRM=;6:0e+FNPkN2EhrOj9/oSoKZnqdPIZllKjeyGZYQJ2Q44GNS1QA3kFWsfiLNq0tvAGVJlYaC9+SIKby8oCgFskxz6xeONhsKzL3J/5xS32DCK4faRImgRmfKsaPIdSCOFffWpvUc/4gb2Ms+hUyDNur3w==;3:KVnH0FrSc6JVEPrGgaRZvFzQwJZXOOwrw1XdYCeW8Pdw+AyyTXDHKEuPvk3GfiRbh9mj99DtVG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vw8Qpjv5y7I5GYIiOiY1edsFDwC?= =?us-ascii?Q?uxDeSHQD37JMWZiQkpp5HBcTy7rPyanxKXA6SPdEv7mwvQfstEc63BItSN5T?= =?us-ascii?Q?2wnFFsZNeCIp+m8JObPHSrl/bZFyti0Ol3V1U9MoiyXbyWMM2zDQib8eKfa3?= =?us-ascii?Q?HRN1+AGKGVtlHdMCKT5+j1RpHUoLPuxYcgLTT59CbV5tPrZY4pxQlI2D+SgK?= =?us-ascii?Q?MYv0r3gn3yRiE2zCfIYVtDgDXTvVqyWQVgn3F3Qi1jkl9gwvTPiGrTRb0EQ0?= =?us-ascii?Q?UIVwsjmAv1hcEhoKzyML/q56DaP3A8iTX4pGXRj/PzXMZNNt101Eu3jCclQo?= =?us-ascii?Q?ClTz9aFvTpWObI/tmI3enhJu+KdO9ncqTqEP4LNmGp20oOZ7YgUdHJIO4N2u?= =?us-ascii?Q?ZmBveygj681PyDWvUA8KxXYD1B6nVg6iBA7zJhr7U0+twN+EG/TCra7BGJdq?= =?us-ascii?Q?FbkVg=3D?= X-Microsoft-Exchange-Diagnostics: 1;CY1PR03MB1502;3:q+LWLuTJN62BmVSCeS+8Xknbl7mBaZCeClYj8BphPtGpOgu5+oiEFghZTyXv44PPV4tRbz++06wMooE45sHTzL1zewHgNnKBRKbLCLBZI7C/ld3OMB6G1hOOrx/Vm+/JfkyfiI1gx96xU77xdwahvA==;10:Af9mZO4GaeBPjHRMHIgjkpCEdRJqZX+kmrPGxC+Yjxs6yv6Oabe6xdzSra1zWKKR84EyJKuwKmTlUWmh/cFjKDPDsskderTa1XA3mWpE1do=;6:PAdzg8fAyHbx0xv4437yFZzJhe9EXdJRva1UCPOKTS/iBTVK33kbCDm81T2g4d5G X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 May 2015 18:05:53.4626 (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: CY1PR03MB1502 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1567 Lines: 36 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. * SDRAM ECC is mutually exclusive with using ocram for suspend, so disable SDRAM ECC if socfpga suspend 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 | 150 +++++++++++++++++++ arch/arm/mach-socfpga/self-refresh.S | 157 ++++++++++++++++++++ arch/arm/mach-socfpga/socfpga.c | 6 +- drivers/edac/Kconfig | 2 +- 8 files changed, 340 insertions(+), 4 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/