From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752520AbaJUDmL (ORCPT ); Mon, 20 Oct 2014 23:42:11 -0400 Received: from va-smtp01.263.net ([54.88.144.211]:57876 "EHLO va-smtp01.263.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750769AbaJUDmJ (ORCPT ); Mon, 20 Oct 2014 23:42:09 -0400 X-RL-SENDER: zyw@rock-chips.com X-FST-TO: heiko@sntech.de X-SENDER-IP: 127.0.0.1 X-LOGIN-NAME: zyw@rock-chips.com X-UNIQUE-TAG: <93a719a750bafaeafbab6fa74db08090> X-DNS-TYPE: 1 From: zyw@rock-chips.com To: Heiko Stuebner Cc: Mike Turquette , Ian Campbell , dianders@chromium.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kumar Gala , Russell King , linux-rockchip@lists.infradead.org, Rob Herring , Pawel Moll , Chris Zhong , Mark Rutland , linux-arm-kernel@lists.infradead.org, Linus Walleij Subject: [PATCH v3 0/6] add suspend support for RK3288 Date: Mon, 20 Oct 2014 20:41:34 -0700 Message-Id: <1413862894-2623-1-git-send-email-zyw@rock-chips.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chris Zhong this is the 1st version of suspend. RK3288 can shut down the cpu, gpu and other device controllers in suspend, and it will pull the GLOBAL_PWROFF pin to high in the final stage of the process of suspend, pull the pin to low again when resume. Changes in v3: - move the pinmux of gpio6_c6 save and restore to pinctrl-rockchip Changes in v2: - __raw_readl/__raw_writel replaced by readl_relaxed/writel_relaxed - add the regulator calls in prepare and finish. - add the pinmux of gpio6_c6 save and restore - put "rockchip,rk3288-pmu-sram" to first Chris (1): pinctrl: rockchip: add suspend/resume functions Chris Zhong (5): pinctrl: rockchip: save and restore gpio6_c6 pinmux in suspend/resume clk: rockchip: RK3288: add suspend and resume ARM: rockchip: add suspend and resume for RK3288 ARM: rockchip: Add pmu-sram binding ARM: dts: add RK3288 suspend support .../devicetree/bindings/arm/rockchip/pmu-sram.txt | 15 + arch/arm/boot/dts/rk3288.dtsi | 11 + arch/arm/mach-rockchip/Makefile | 1 + arch/arm/mach-rockchip/pm.c | 316 ++++++++++++++++++++ arch/arm/mach-rockchip/pm.h | 102 +++++++ arch/arm/mach-rockchip/rockchip.c | 11 +- arch/arm/mach-rockchip/sleep.S | 87 ++++++ drivers/clk/rockchip/clk-rk3288.c | 63 ++++ drivers/pinctrl/pinctrl-rockchip.c | 57 ++++ 9 files changed, 661 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/rockchip/pmu-sram.txt create mode 100644 arch/arm/mach-rockchip/pm.c create mode 100644 arch/arm/mach-rockchip/pm.h create mode 100644 arch/arm/mach-rockchip/sleep.S -- 1.7.9.5