From patchwork Thu Mar 21 14:10:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10863591 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 91BA91390 for ; Thu, 21 Mar 2019 14:10:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6A7592A280 for ; Thu, 21 Mar 2019 14:10:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5E7282A262; Thu, 21 Mar 2019 14:10:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EDAD22A26F for ; Thu, 21 Mar 2019 14:10:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=O+DV5oiKVfGDmWnxNZZjQS/nbEbV+ICpdpOBYJpUPK4=; b=G2iAsrRm8qaL6X bMSzbAwOlpbOCwTn2hTStidOl2i+r1NDYZ0B2BCrErCXDhr8VJ/SykfU4pH1tPGtnxR96VwlTOCWx dVlHKpvBV4TUQmObonS57YHtKxDS94yu2eF0/Xo5RW5eSUXRwvKAmtllHUudRPq/82uobPR7YZSvO 544CUrAyTPVnYpQy2Nso26IG6Mg4Sa36JX2yzfmb6/dz408daPQXl9tlN3/iTmCWZUVPNuf0cSzb5 HqoEfy18C3W8XMbowjBpazCwx3sHTR95C55FoENBq/wdoxLXf8y4w+u6l0JzPhCAa2jKjXNsYnu8d sdD4ClH8dDzx4hpebKPA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h6yPA-0004Ov-TK; Thu, 21 Mar 2019 14:10:48 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h6yOg-0003tf-BG for linux-arm-kernel@lists.infradead.org; Thu, 21 Mar 2019 14:10:25 +0000 Received: by mail-wm1-x342.google.com with SMTP id y197so2888768wmd.0 for ; Thu, 21 Mar 2019 07:10:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8Ep/9wE+P/naMBN31BGQ2oBAcO627wlPpUiNIIkI8AI=; b=QLPV5EyFTEUMO2j3fSjpFFAjrSGilXu2fqCPGQUh+Gs3fqWW+DTntGKMjrg9W5q9i1 DgG+sAYd5IxnSAjwod5chERTmuLsCjdgubx9WHHnuEdTIRdRDkPDqIi9WNhn6QIJWXNJ kYE7iScVz9M0KGB8XGjjzoeTHKKrTus9D+oupP/5xsgkMgD4Wb1jNhjIvF8rqptYDagp DsWuzpfKhq+l8C9PeoLDOkP9ON+HYBIGg4lM8PAWkgNI3foc4ucXxQvtV5swna1qxOvL Zh9mtOAXjb1qPkRTkWNlYes8kZ0ZPU6De/hE/NoAmWsw2rt2f5MBWwBmFGLefmp69uEB dl2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8Ep/9wE+P/naMBN31BGQ2oBAcO627wlPpUiNIIkI8AI=; b=pDLWWfodp2ysTThkDdh/Zzw99qrLSA76YC1SuOunxppMpwIJDazUQyU5DL5zEAtuaN FDCXXM2vHDXZI27T2XqZssA7zmrWOhJCx95pWSG2GEIAVgmHLrDfwV98DRUTtBhKtzHL TsKuplDf6GQ5PpeCA2x860IpWzbrZzXLZJq9XOdpAEviCB6v5v1hmIv0nZPirduPhnTK eqvoFDnKegSAERVuJewApCGyn6t7NkO6vYo+1h888yYJvwyEFjTzx9G8rapURu08APIu WXaDAPNcytm6HUMk8D+XZUacakIx/AN61rRIatZR4/jzcblnSDQk0rXGqjFV5mERqMdX R1oQ== X-Gm-Message-State: APjAAAXE/JO/RSi5ypmnhy3zbP9jG1DSidn3BG5kG1/dO+2nceKxKgQH rp45Oqr9Cp806SYm1NHwDFcx8g== X-Google-Smtp-Source: APXvYqxkh7EohtGxFt6SumlIko9dmyA276cexLPo6Mz51jmyRuuJqPhtnno/WLmilBMjI0VYNRcIUQ== X-Received: by 2002:a1c:9684:: with SMTP id y126mr2745111wmd.124.1553177416688; Thu, 21 Mar 2019 07:10:16 -0700 (PDT) Received: from localhost.localdomain (aputeaux-684-1-20-74.w90-86.abo.wanadoo.fr. [90.86.223.74]) by smtp.gmail.com with ESMTPSA id z14sm7513921wrv.78.2019.03.21.07.10.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Mar 2019 07:10:16 -0700 (PDT) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Rob Herring , Mark Rutland , David Lechner Subject: [PATCH 1/4] ARM: davinci: fix cpufreq registration on da850-evm Date: Thu, 21 Mar 2019 15:10:07 +0100 Message-Id: <20190321141010.19612-2-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190321141010.19612-1-brgl@bgdev.pl> References: <20190321141010.19612-1-brgl@bgdev.pl> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190321_071019_064452_594443DF X-CRM114-Status: GOOD ( 13.92 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Bartosz Golaszewski The system_rev variable is never set on davinci and is always 0, so we're using the default max operating point of 300MHz. The cvdd supply is fixed at 1.2V however, so we can go up to 372MHz. Remove the switch and always set da850_max_speed to 372000. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/board-da850-evm.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index 1fdc9283a8c5..77d74fb311fa 100644 --- a/arch/arm/mach-davinci/board-da850-evm.c +++ b/arch/arm/mach-davinci/board-da850-evm.c @@ -1155,17 +1155,7 @@ static struct edma_rsv_info *da850_edma_rsv[2] = { #ifdef CONFIG_CPU_FREQ static __init int da850_evm_init_cpufreq(void) { - switch (system_rev & 0xF) { - case 3: - da850_max_speed = 456000; - break; - case 2: - da850_max_speed = 408000; - break; - case 1: - da850_max_speed = 372000; - break; - } + da850_max_speed = 372000; return da850_register_cpufreq("pll0_sysclk3"); }