From patchwork Thu Oct 29 07:01:45 2015
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Pavel Fedin
X-Patchwork-Id: 7516581
Return-Path:
X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org
Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org
Received: from mail.kernel.org (mail.kernel.org [198.145.29.136])
by patchwork1.web.kernel.org (Postfix) with ESMTP id D31FE9F399
for ;
Thu, 29 Oct 2015 07:01:54 +0000 (UTC)
Received: from mail.kernel.org (localhost [127.0.0.1])
by mail.kernel.org (Postfix) with ESMTP id EF7442097C
for ;
Thu, 29 Oct 2015 07:01:53 +0000 (UTC)
Received: from vger.kernel.org (vger.kernel.org [209.132.180.67])
by mail.kernel.org (Postfix) with ESMTP id CE0DA20897
for ;
Thu, 29 Oct 2015 07:01:52 +0000 (UTC)
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
id S1756522AbbJ2HBw (ORCPT
);
Thu, 29 Oct 2015 03:01:52 -0400
Received: from mailout3.w1.samsung.com ([210.118.77.13]:13553 "EHLO
mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
with ESMTP id S1752915AbbJ2HBv (ORCPT
);
Thu, 29 Oct 2015 03:01:51 -0400
Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245])
by mailout3.w1.samsung.com
(Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5
2014))
with ESMTP id <0NWY00EAKZJ0J320@mailout3.w1.samsung.com>; Thu,
29 Oct 2015 07:01:48 +0000 (GMT)
X-AuditID: cbfec7f5-f794b6d000001495-4b-5631c45cb3a3
Received: from eusync4.samsung.com ( [203.254.199.214])
by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 6A.7B.05269.C54C1365;
Thu, 29 Oct 2015 07:01:48 +0000 (GMT)
Received: from fedinw7x64.rnd.samsung.ru ([106.109.131.169])
by eusync4.samsung.com
(Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5
2014)) with ESMTPA id <0NWY00EINZIXJY80@eusync4.samsung.com>; Thu,
29 Oct 2015 07:01:48 +0000 (GMT)
From: Pavel Fedin
To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Cc: Kukjin Kim ,
Krzysztof Kozlowski , stable@vger.kernel.org
Subject: [PATCH v2] ARM: exynos: Bring back reboot on Exynos5410
Date: Thu, 29 Oct 2015 10:01:45 +0300
Message-id: <1446102105-8896-1-git-send-email-p.fedin@samsung.com>
X-Mailer: git-send-email 2.4.4
X-Brightmail-Tracker:
H4sIAAAAAAAAA+NgFnrJJMWRmVeSWpSXmKPExsVy+t/xa7oxRwzDDH6+V7J4/cLQov/xa2aL
TY+vsVrMOL+PyWLBxkeMDqwem1Z1snlsXlLv0bdlFaPH501yASxRXDYpqTmZZalF+nYJXBk7
Xp5nKXjHU3HumWUD43WuLkZODgkBE4kplz4zQdhiEhfurWfrYuTiEBJYyihxZ1MjM4TTxiQx
49ImdpAqNgF1idNfP7CA2CIC3hKTz/wFinNwMAtkSTw56AYSFhZwkLjbsYUNxGYRUJWY+Okl
mM0r4CRxekMbG8QyOYkr16ezTWDkXsDIsIpRNLU0uaA4KT3XSK84Mbe4NC9dLzk/dxMjJAC+
7mBceszqEKMAB6MSD+/KFsMwIdbEsuLK3EOMEhzMSiK80ixAId6UxMqq1KL8+KLSnNTiQ4zS
HCxK4rwzd70PERJITyxJzU5NLUgtgskycXBKNTCu8l50UM9GfzrHr8tFyxfZn5Dpb3x6oUEr
2rQgIv6zAg9bcub9l05r+KOsnq0JEP0b0fLF8fuVortpQtY68aL+ji2/GZX/94vNreLi2Xnd
rXzuB7bXgUpVHe9+drzO81zOoRA9bW6b0/0VutKv9rfPYnKzcT89UfSJcgHjps0OYVHdRyr2
vVdiKc5INNRiLipOBACZjeLB/AEAAA==
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
Fixes: 8cfc7fdd3308 ("ARM: EXYNOS: move restart code into pmu driver")
---
v1 => v2:
- Added 'const'
---
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..ecbe980 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 const 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,
},