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: 7509161 Return-Path: X-Original-To: patchwork-linux-arm@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 1F2839F2F7 for ; Wed, 28 Oct 2015 09:39:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5D076206AD for ; Wed, 28 Oct 2015 09:39:12 +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 7598F206AC for ; Wed, 28 Oct 2015 09:39:10 +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 1ZrNAq-0002HM-AF; Wed, 28 Oct 2015 09:37:40 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZrNAa-0001vi-QQ for linux-arm-kernel@lists.infradead.org; Wed, 28 Oct 2015 09:37:26 +0000 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-arm-kernel@lists.infradead.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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151028_023725_148046_72DB7E04 X-CRM114-Status: GOOD ( 16.77 ) 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 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 --- 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, },