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: 7516591 Return-Path: X-Original-To: patchwork-linux-arm@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 7D3F2BEEA4 for ; Thu, 29 Oct 2015 07:03:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A44552072B for ; Thu, 29 Oct 2015 07:03:45 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A8E5620711 for ; Thu, 29 Oct 2015 07:03:44 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZrhE0-00082D-4c; Thu, 29 Oct 2015 07:02:16 +0000 Received: from mailout3.w1.samsung.com ([210.118.77.13]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZrhDw-0007s7-De for linux-arm-kernel@lists.infradead.org; Thu, 29 Oct 2015 07:02:13 +0000 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> for linux-arm-kernel@lists.infradead.org; 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 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== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151029_000212_629557_8E535EAC X-CRM114-Status: GOOD ( 15.79 ) X-Spam-Score: -6.9 (------) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Krzysztof Kozlowski , Kukjin Kim , stable@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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, },