From patchwork Fri Jun 14 14:02:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chander Kashyap X-Patchwork-Id: 2721801 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8099AC0AB1 for ; Fri, 14 Jun 2013 14:04:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DEE4F20283 for ; Fri, 14 Jun 2013 14:04:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4A3C72028D for ; Fri, 14 Jun 2013 14:04:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753264Ab3FNOEC (ORCPT ); Fri, 14 Jun 2013 10:04:02 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:56369 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753328Ab3FNOEA (ORCPT ); Fri, 14 Jun 2013 10:04:00 -0400 Received: by mail-pa0-f50.google.com with SMTP id fb1so684254pad.37 for ; Fri, 14 Jun 2013 07:04:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=w3O8EDLjFxlYyeLEe4xwNN21EJp9HVI/Ayy3yNnOws8=; b=OIecXO7NaJFejo7KAUl0r7UousoBoeT7fLtKEI78ME4sGMXU+xZvjR1VlnGITgYYod 5GNxUCmhaSJWOzd5CxNxfDlTdO1Zz4VvXCqzCX4jDacM65hqL1o71kxH4gThdK8IxwhD Hhu7679JGDAqgyjKTaSJY82cM6KLIgofUXoqPKTbK7NV1tZWOxsuDtImYFk7ZpC8b5d8 CwHB6633FHPrv0jEAAPKxmj5+hkC7NHR8KE8ARUR2UEvHlDcmZq760UcJd41jWh5jfjC 0itMLbkGhN2lgeXOTrd/1y7wqgvE2AI4DeWn1WD9mveI4F6ybNql6NfrC/3RuTg9WP/g oL+g== X-Received: by 10.66.255.41 with SMTP id an9mr2695238pad.44.1371218640005; Fri, 14 Jun 2013 07:04:00 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPSA id ri8sm2452804pbc.3.2013.06.14.07.03.56 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Jun 2013 07:03:59 -0700 (PDT) From: Chander Kashyap To: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org, linux-serial@vger.kernel.org, kgene.kim@samsung.com, t.figa@samsung.com, s.nawrocki@samsung.com, mark.rutland@arm.com, thomas.ab@samsung.com, Chander Kashyap Subject: [PATCH v2 10/10] ARM: Exynos: extend soft-reset support for Exynos5420 Date: Fri, 14 Jun 2013 19:32:52 +0530 Message-Id: <1371218572-8993-11-git-send-email-chander.kashyap@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1371218572-8993-1-git-send-email-chander.kashyap@linaro.org> References: <1370516488-25860-10-git-send-email-chander.kashyap@linaro.org> <1371218572-8993-1-git-send-email-chander.kashyap@linaro.org> X-Gm-Message-State: ALoCoQmoRMAEJGaa5ZHhGyvcYaQuM1TcOKY9ceFclhsnVqKRe/N2L2rtU+LEJi37H7lk+DhHIYV0 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=-7.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 Extend the soft reset support for Exynos5420 SoC. Signed-off-by: Chander Kashyap --- arch/arm/mach-exynos/common.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/arch/arm/mach-exynos/common.c b/arch/arm/mach-exynos/common.c index 6f435da..4e6c227 100644 --- a/arch/arm/mach-exynos/common.c +++ b/arch/arm/mach-exynos/common.c @@ -330,10 +330,10 @@ void exynos5_restart(char mode, const char *cmd) u32 val; void __iomem *addr; - if (of_machine_is_compatible("samsung,exynos5250")) { - val = 0x1; - addr = EXYNOS_SWRESET; - } else if (of_machine_is_compatible("samsung,exynos5440")) { + val = 0x1; + addr = EXYNOS_SWRESET; + + if (of_machine_is_compatible("samsung,exynos5440")) { u32 status; np = of_find_compatible_node(NULL, NULL, "samsung,exynos5440-clock"); @@ -344,9 +344,6 @@ void exynos5_restart(char mode, const char *cmd) val = __raw_readl(addr); val = (val & 0xffff0000) | (status & 0xffff); - } else { - pr_err("%s: cannot support non-DT\n", __func__); - return; } __raw_writel(val, addr);