From patchwork Wed Sep 27 00:03:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Gerlach X-Patchwork-Id: 114305 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp4417857qgf; Tue, 26 Sep 2017 17:05:41 -0700 (PDT) X-Google-Smtp-Source: AOwi7QB3DcA9aWnpYa80Sa9xtokr4RImm6neoxd62U5onFmFckLfvkzTa8UZXPpTLc4cPnUKr52Y X-Received: by 10.98.17.216 with SMTP id 85mr12301703pfr.206.1506470741415; Tue, 26 Sep 2017 17:05:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506470741; cv=none; d=google.com; s=arc-20160816; b=gAcK5nuL7Oq06+U4QA2babEqHfw+BwkXThxJIntUuA/SODMcBCU3f3ieFxwZfw1P0i StW95505ebZHzKRBFkcv3Ahmc2Bk7jggrV6o48nRrldHRfZz+dntqCtaIebTk5JmaY+4 zaFKwj2aD07Pqdx6F+yNxNQkqPfCwzPwZC8HOYgTuFHuyQdcSUXOSVH7CN3UnJEUoJEO QdOEk1OsR+uLM7FiZL/dG92WvFWg3OhUSTC1lGHAVc5FsU+Ac75qBZEiaVTzPl+ERnrP NAfG87uEqoSY6sEmeUKacyq/+xuu7+1uv5ehUNTWbI7PfH5UkKeCtDKPQFmQenP8ag09 q4qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature:arc-authentication-results; bh=P268ModTT3qHkSfMJWWT5Gj68kCPmRyPK2NQcOlAioc=; b=H/W8VN3fSr9C5W7vZqPBT9hvcysI2oJNO6IAqDxRoRwRQzqdIHmSQqaQKzDCmX4WG5 Zz7WwBYySfXxH0nloarO64FNm1lvaf+CItOaLGC1jP1b1hJmm5aQ4UVySjGjiRB7CTNq pPxDFiDjYkWomiFJoEqndCKFvf4pHH1utE/twCGly+tCiV3jzMcIX6SySuuUHo4HY2vE HknzANRioJdbNNALkGfuP/FkzNIzae99gfzLoyOY8Y271uNRJFzV5JpJXhWySojIR7jD pLv0WLGFufAY6CU8RiZZ+N5xNeJ412r8a6z98AYiZOk+F04w7Ribzph0T0kc1leJxWwo SJ/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=B9vmWdhu; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o16si6312020pfi.582.2017.09.26.17.05.41; Tue, 26 Sep 2017 17:05:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=B9vmWdhu; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S968099AbdI0AFk (ORCPT + 6 others); Tue, 26 Sep 2017 20:05:40 -0400 Received: from fllnx209.ext.ti.com ([198.47.19.16]:24953 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965047AbdI0AFj (ORCPT ); Tue, 26 Sep 2017 20:05:39 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id v8R048Mj023015; Tue, 26 Sep 2017 19:04:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1506470648; bh=alThuhcQhGstTXZPIzCcOqiGUvZqvukX1I0dPBdWWDU=; h=From:To:CC:Subject:Date; b=B9vmWdhuwhXup//Otnjnz6Ig5CTqqk6j5tYAGs8dtgOd+jSSZzzV6ft24P5laTtlH Qll+dVWC+CphEcu1YFZLRg7i58AgME5BSsDgrHwl2g+6lq8tRdYHeUo+9v8c0UOhrR qJ+AJ6j9emQ3j0cPjnMHGI/0dit7PuqeHXvuXKnU= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v8R042EX017328; Tue, 26 Sep 2017 19:04:02 -0500 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34; Tue, 26 Sep 2017 19:04:01 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend Transport; Tue, 26 Sep 2017 19:04:01 -0500 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v8R0417j016939; Tue, 26 Sep 2017 19:04:01 -0500 Received: from localhost (uda0274052.dhcp.ti.com [128.247.59.203]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id v8R041306504; Tue, 26 Sep 2017 19:04:01 -0500 (CDT) From: Dave Gerlach To: Tony Lindgren , Santosh Shilimkar , Russell King CC: , , , , Rob Herring , Dave Gerlach , Keerthy J , Johan Hovold Subject: [PATCH v4 0/2] memory: Introduce ti-emif-sram driver Date: Tue, 26 Sep 2017 19:03:53 -0500 Message-ID: <20170927000355.30597-1-d-gerlach@ti.com> X-Mailer: git-send-email 2.13.4 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hi, This is v4 of the series introduces a ti-emif-sram driver to be used on am335x and am437x, based on v4.14-rc1. This version addresses some comments from Russell King and Johan Hovold in v3 found here [1]. The main change in this version is dropping the additions to the arch/arm/kernel/asm-offsets.c file and instead generating our own local "emif-asm-offsets.h" using the same strategy in the drivers/memory Makefile. This keeps our driver changes out of the arch or platform code and is a cleaner implementation. Otherwise some small fixups based on comments from Johan in v3 were done. This code is required for low-power modes to work on AM335x and AM437x and a forthcoming PM series for those platforms will depend on this series. After both this and the PM series are reviewed I will send the necessary device tree changes for both, but in the meantime all remaining patches for am335x and am437x PM can be found here [2]. Regards, Dave [1] https://www.spinics.net/lists/linux-omap/msg138314.html [2] https://github.com/dgerlach/linux-pm/tree/upstream/v4.14/amx3-suspend-v4 Dave Gerlach (2): Documentation: dt: Update ti,emif bindings memory: ti-emif-sram: introduce relocatable suspend/resume handlers .../bindings/memory-controllers/ti/emif.txt | 18 +- drivers/memory/.gitignore | 1 + drivers/memory/Kconfig | 10 + drivers/memory/Makefile | 20 ++ drivers/memory/emif-asm-offsets.c | 22 ++ drivers/memory/emif.h | 17 ++ drivers/memory/ti-emif-pm.c | 339 +++++++++++++++++++++ drivers/memory/ti-emif-sram-pm.S | 334 ++++++++++++++++++++ include/linux/ti-emif-sram.h | 148 +++++++++ 9 files changed, 908 insertions(+), 1 deletion(-) create mode 100644 drivers/memory/.gitignore create mode 100644 drivers/memory/emif-asm-offsets.c create mode 100644 drivers/memory/ti-emif-pm.c create mode 100644 drivers/memory/ti-emif-sram-pm.S create mode 100644 include/linux/ti-emif-sram.h -- 2.13.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html