From patchwork Fri Jun 24 00:16:14 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 914942 X-Patchwork-Delegate: khilman@deeprootsystems.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p5O0GFDS030492 for ; Fri, 24 Jun 2011 00:16:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759985Ab1FXAQO (ORCPT ); Thu, 23 Jun 2011 20:16:14 -0400 Received: from na3sys009aog114.obsmtp.com ([74.125.149.211]:58906 "EHLO na3sys009aog114.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759972Ab1FXAQN (ORCPT ); Thu, 23 Jun 2011 20:16:13 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]) (using TLSv1) by na3sys009aob114.postini.com ([74.125.148.12]) with SMTP ID DSNKTgPXTBW2PO7RYon5gSsPSgdnNt9rpYnr@postini.com; Thu, 23 Jun 2011 17:16:13 PDT Received: by pzk9 with SMTP id 9so2011948pzk.33 for ; Thu, 23 Jun 2011 17:16:12 -0700 (PDT) Received: by 10.68.42.168 with SMTP id p8mr1519514pbl.423.1308874572114; Thu, 23 Jun 2011 17:16:12 -0700 (PDT) Received: from localhost (c-24-19-7-36.hsd1.wa.comcast.net [24.19.7.36]) by mx.google.com with ESMTPS id n8sm1595284pbh.89.2011.06.23.17.16.11 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 23 Jun 2011 17:16:11 -0700 (PDT) From: Kevin Hilman To: linux-omap@vger.kernel.org Cc: Russell King , linux-arm-kernel@lists.infradead.org, Jean Pihet Subject: [PATCH] OMAP3: PM: remove get_*_restore_pointer functions, directly use entry points Date: Thu, 23 Jun 2011 17:16:14 -0700 Message-Id: <1308874574-30663-1-git-send-email-khilman@ti.com> X-Mailer: git-send-email 1.7.4 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Fri, 24 Jun 2011 00:16:15 +0000 (UTC) Upon return from off-mode, the ROM code jumps to a restore function saved in the scratchpad. Based on SoC revision or errata, this restore entry point is different. Current code uses some helper functions in sleep34xx.S (get_*_restore_pointer) to get the restore function entry point. When returning from off-mode, this code is executed from SDRAM, so there's no reason to use these helper functions when using the SDRAM entry points directly would work just fine. This patch uses ENTRY/ENDPROC to create "real" entry points for these functions, and uses those values directly when writing the scratchpad. Tested all three entry points - restore_es3: 3430/n900 - restore_3630: 3630/Zoom3 - restore: 3530/Overo Suggested-by: Russell King Cc: Jean Pihet Signed-off-by: Kevin Hilman Acked-by: Santosh Shilimkar Acked-by: Jean Pihet