From patchwork Wed Oct 28 09:36:05 2015
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Pavel Fedin
X-Patchwork-Id: 7509151
Return-Path:
X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org
Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org
Received: from mail.kernel.org (mail.kernel.org [198.145.29.136])
by patchwork2.web.kernel.org (Postfix) with ESMTP id 4CFF2BEEA4
for ;
Wed, 28 Oct 2015 09:37:09 +0000 (UTC)
Received: from mail.kernel.org (localhost [127.0.0.1])
by mail.kernel.org (Postfix) with ESMTP id 752CC206AD
for ;
Wed, 28 Oct 2015 09:37:08 +0000 (UTC)
Received: from vger.kernel.org (vger.kernel.org [209.132.180.67])
by mail.kernel.org (Postfix) with ESMTP id 930FC206AC
for ;
Wed, 28 Oct 2015 09:37:07 +0000 (UTC)
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
id S1751159AbbJ1JhG (ORCPT
);
Wed, 28 Oct 2015 05:37:06 -0400
Received: from mailout2.w1.samsung.com ([210.118.77.12]:12036 "EHLO
mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
with ESMTP id S1750968AbbJ1JhE (ORCPT
);
Wed, 28 Oct 2015 05:37:04 -0400
Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244])
by mailout2.w1.samsung.com
(Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5
2014)) with ESMTP id <0NWX004QKC1QV770@mailout2.w1.samsung.com> for
linux-samsung-soc@vger.kernel.org;
Wed, 28 Oct 2015 09:37:02 +0000 (GMT)
X-AuditID: cbfec7f4-f79c56d0000012ee-1d-5630973d8eb3
Received: from eusync1.samsung.com ( [203.254.199.211])
by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 8B.AE.04846.D3790365;
Wed, 28 Oct 2015 09:37:01 +0000 (GMT)
Received: from fedinw7x64.rnd.samsung.ru ([106.109.131.169])
by eusync1.samsung.com
(Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5
2014)) with ESMTPA id <0NWX005T7C05TB60@eusync1.samsung.com>; Wed,
28 Oct 2015 09:37:01 +0000 (GMT)
From: Pavel Fedin
To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Cc: Kukjin Kim ,
Krzysztof Kozlowski
Subject: [PATCH] ARM: exynos: Bring back reboot on Exynos5410
Date: Wed, 28 Oct 2015 12:36:05 +0300
Message-id: <1446024965-8508-1-git-send-email-p.fedin@samsung.com>
X-Mailer: git-send-email 2.4.4
X-Brightmail-Tracker:
H4sIAAAAAAAAA+NgFnrCJMWRmVeSWpSXmKPExsVy+t/xy7q20w3CDDp+alm8fmFo0f/4NbPF
psfXWC1mnN/H5MDisWlVJ5vH5iX1Hn1bVjF6fN4kF8ASxWWTkpqTWZZapG+XwJVxc+ZBloJD
3BU9uy+wNTAe5+xi5OCQEDCRmPq0oIuRE8gUk7hwbz1bFyMXh5DAUkaJM1eeMEI4bUwSx+Zc
ZwGpYhNQlzj99QOYLSLgLTH5zF92kEHMAgES/66bg4SFBWwlWr/dZQaxWQRUJRrnn2EDsXkF
nCRur+xgh1gmJ3Hl+nS2CYzcCxgZVjGKppYmFxQnpeca6hUn5haX5qXrJefnbmKE+P3LDsbF
x6wOMQpwMCrx8BpU6IUJsSaWFVfmHmKU4GBWEuH91mIQJsSbklhZlVqUH19UmpNafIhRmoNF
SZx37q73IUIC6YklqdmpqQWpRTBZJg5OqQbGqNkm/5L3nGe/bWjvHPcxbmdke/3Ea38fHGq9
/uIVz4H+a3wXGnSOaUWvS/v9z1z3QMvhnibV+HDdxVXztKdpH/L/sTVm8pvNy/RuL7/5/0yS
TwDrW52oYqftH/m0Zjt8OFK/m/9hVsLzH5YnxRRZDa1O3/14wdl27td3E4r5/Q8Kh2mt/3cz
WomlOCPRUIu5qDgRAPestw73AQAA
Sender: linux-samsung-soc-owner@vger.kernel.org
Precedence: bulk
List-ID:
X-Mailing-List: linux-samsung-soc@vger.kernel.org
X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI,
RP_MATCHES_RCVD,
UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org
X-Virus-Scanned: ClamAV using ClamSMTP
Since 8cfc7fdd33080e30b86d21b1a8c9ad0686427ddc ("ARM: EXYNOS: move restart
code into pmu driver") PMU support is required in order for the reboot to
work. Unfortunately, there is currently no PMU support for 5410.
This patch adds exynos5410-pmu to the list of recognized devices. It is
okay for the code to have empty struct exynos_pmu_data, in this case only
minimal support is enabled. This is enough for SWRESET to work.
Signed-off-by: Pavel Fedin
Reviewed-by: Krzysztof Kozlowski
---
arch/arm/mach-exynos/pmu.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/arm/mach-exynos/pmu.c b/arch/arm/mach-exynos/pmu.c
index de68938..7b9e33c 100644
--- a/arch/arm/mach-exynos/pmu.c
+++ b/arch/arm/mach-exynos/pmu.c
@@ -908,6 +908,10 @@ static const struct exynos_pmu_data exynos5250_pmu_data = {
.powerdown_conf = exynos5_powerdown_conf,
};
+static struct exynos_pmu_data exynos5410_pmu_data = {
+ /* Only SWRESET is currently supported on 5410 */
+};
+
static struct exynos_pmu_data exynos5420_pmu_data = {
.pmu_config = exynos5420_pmu_config,
.pmu_init = exynos5420_pmu_init,
@@ -934,6 +938,9 @@ static const struct of_device_id exynos_pmu_of_device_ids[] = {
.compatible = "samsung,exynos5250-pmu",
.data = &exynos5250_pmu_data,
}, {
+ .compatible = "samsung,exynos5410-pmu",
+ .data = &exynos5410_pmu_data,
+ }, {
.compatible = "samsung,exynos5420-pmu",
.data = &exynos5420_pmu_data,
},