From patchwork Thu Oct 29 07:46:11 2015
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Pavel Fedin
X-Patchwork-Id: 7516951
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 C422ABEEA4
for ;
Thu, 29 Oct 2015 07:46:18 +0000 (UTC)
Received: from mail.kernel.org (localhost [127.0.0.1])
by mail.kernel.org (Postfix) with ESMTP id 0161920956
for ;
Thu, 29 Oct 2015 07:46:18 +0000 (UTC)
Received: from vger.kernel.org (vger.kernel.org [209.132.180.67])
by mail.kernel.org (Postfix) with ESMTP id A895420936
for ;
Thu, 29 Oct 2015 07:46:16 +0000 (UTC)
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
id S1752395AbbJ2HqP (ORCPT
);
Thu, 29 Oct 2015 03:46:15 -0400
Received: from mailout3.w1.samsung.com ([210.118.77.13]:15529 "EHLO
mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
with ESMTP id S1751879AbbJ2HqP (ORCPT
);
Thu, 29 Oct 2015 03:46:15 -0400
Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244])
by mailout3.w1.samsung.com
(Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5
2014))
with ESMTP id <0NWZ00E6I1L0J730@mailout3.w1.samsung.com>; Thu,
29 Oct 2015 07:46:12 +0000 (GMT)
X-AuditID: cbfec7f4-f79c56d0000012ee-f7-5631cec4478a
Received: from eusync2.samsung.com ( [203.254.199.212])
by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 9D.01.04846.4CEC1365;
Thu, 29 Oct 2015 07:46:12 +0000 (GMT)
Received: from fedinw7x64 ([106.109.131.169])
by eusync2.samsung.com (Oracle Communications Messaging Server
7.0.5.31.0 64bit (built May 5 2014))
with ESMTPA id <0NWZ00MV61KZVC80@eusync2.samsung.com>; Thu,
29 Oct 2015 07:46:12 +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 RESEND] ARM: exynos: Bring back reboot on Exynos5410
Date: Thu, 29 Oct 2015 10:46:11 +0300
Message-id: <008101d1121d$e1b9b250$a52d16f0$@samsung.com>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit
X-Mailer: Microsoft Outlook 14.0
Thread-index: AdESHdQYU/XBmsDqTK2k/gngzW9mTQ==
Content-language: ru
X-Brightmail-Tracker:
H4sIAAAAAAAAA+NgFnrILMWRmVeSWpSXmKPExsVy+t/xK7pHzhmGGVy5wGvx+oWhRf/j18wW
mx5fY7WYcX4fk8WCjY8YHVg9Nq3qZPPYvKTeo2/LKkaPz5vkAliiuGxSUnMyy1KL9O0SuDLm
NG9gLvjDV7FlWR9zA+Meni5GDg4JAROJ/9tLuxg5gUwxiQv31rN1MXJxCAksZZS4PPEolPOd
UWLZ0lZ2kCohATOJ5wvPsILYbALqEqe/fmABsUUEvCUmn/nLDjKUWSBPYucuT5CwsIC7xKLe
R4wgNouAqsS8DSvZQGxeAUuJxStPQNmCEj8m3wMbwyygJbF+53EmCFteYvOat8wQxylI7Dj7
mhFilZ7E36t9bBA1IhLT/t1jnsAoOAvJqFlIRs1CMmoWkpYFjCyrGEVTS5MLipPScw31ihNz
i0vz0vWS83M3MUIC/ssOxsXHrA4xCnAwKvHwLjAyDBNiTSwrrsw9xCjBwawkwivNAhTiTUms
rEotyo8vKs1JLT7EKM3BoiTOO3fX+xAhgfTEktTs1NSC1CKYLBMHp1QDY2tzZRjDrA/H8n/t
NtKRvLF5EVPWhDVvd95Yrrz4JktsenFAbfzbqxlty/Z93bbYxDNDcYey5Qt9J8sq06z+NCmn
Gw9fP3rs/fFUbNrziTlHHisGzK2P5J778GdpeG7Ynl1H06ZZ3r1bnLCK5VXJb86rx08Yfaj+
6xKtfLDI9kLWb9a5K0vPWCuxFGckGmoxFxUnAgBnxeQ1dAIAAA==
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
Cc:
Fixes: 8cfc7fdd3308 ("ARM: EXYNOS: move restart code into pmu driver")
---
v1 => v2:
- Added 'const'
- Resend: added missing Cc: tag
---
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,
},