Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2965407rwi; Fri, 21 Oct 2022 09:49:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4JriNq7eIFY5gbtk321Usx8IdELXoDVKq0SqB2BH8arR0JwHTv85doUNh2dhvoEojfYXGe X-Received: by 2002:a17:907:1c98:b0:78d:3b08:33ef with SMTP id nb24-20020a1709071c9800b0078d3b0833efmr16634548ejc.175.1666370987756; Fri, 21 Oct 2022 09:49:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666370987; cv=none; d=google.com; s=arc-20160816; b=Kw4/usaAwWSC8Nty0UG7MIMBTTVzcabTgZTA3//+ogjqynmxKcNlg9ZBxIWmJ04HbP YyYNtD1DNO+2kAtCJ3G/uKON3a80YwlViZHTsTjTE3OGj1kDIFkJoVObBasi1PCvrUBH mrlvh/ISLEuUXUJCXI7AzAbtdvjrZ/6nCSZABDR4KxIgunY2TyArURljV7bKFWeSMaJH qPyb72+yMqw+dgalEvUG+3gLhSyD7bBg2wbQF12njEgdNVZyjpT5QRrhjPagkLDG6oJo N7CJYVcLa2UgTdjLQjWSEUJy2YhfzpiMbAHq0QjWD4Vx1oViPoe9h8xETAwLrv0WtS6Y ScUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=i2cO7atrb8GOp8AlnQiF6COukYkbeBSZPxMWfQTwH48=; b=lV3hu7b2BmVX4zLfz3ObEhYtkHskzdjaFTs1cM0rHoUYeuFrCU8j8aEjag7rjrmuGQ ybovyR8zywq4YspiI+dQxHT5r2TAVxO90pLwnLDMw9j1ufg5+TL6bkm4qbGD7tDeTC6Y LQdyXtYlX6LRGzs9qzijhS6qUd2o0CwBAkc4EhSiZeqdq+9NnaYuDOAS9tiPEYBYqpgf +aNBOAOhslbT8LH22706vY9IkWs2vBnTm4WU3ujEf4AhJJBy1rAGc6ip4A9GsendKvZi evBAy12Kd11QLP7CaBtn2aFeQ6sosHdcRCXI3MlwYiR8OenQbp4h2C6lFkOxreR+mxg/ ct0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dbKjGctV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d16-20020aa7d690000000b004532dbfc916si1560385edr.615.2022.10.21.09.49.22; Fri, 21 Oct 2022 09:49:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dbKjGctV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230304AbiJUP46 (ORCPT + 99 others); Fri, 21 Oct 2022 11:56:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230198AbiJUP4m (ORCPT ); Fri, 21 Oct 2022 11:56:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 857B627EAEC for ; Fri, 21 Oct 2022 08:56:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AF44661EFC for ; Fri, 21 Oct 2022 15:56:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF3BCC433C1; Fri, 21 Oct 2022 15:56:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666367786; bh=j50IJWTM+ka8Tvy0ZYlIik8TuO6XdXeMeLuiUvXyurg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dbKjGctVSH/+SRrzYRqJIVMhwq0w15beQQOedRgkQ9SV9jKk73nrXQk53jHiZIvZ9 B4LaRJw+gP9aXeM9jFtA1oUzF1E52Rhsn6Y0ioO3o85oddYoJxcJdxqX3p3v+j1V6v Z2+VNwBrwL7/HoLOqf2YftT9VP6ta7X2aNWbsNygoOXGztjK+sNlu9UrG/es4BGrKl hXwaYbh9bxtRCRyZbL7TaOk9SfEXZ4A0veeKDoTcLtqar1UOfXYpfbdm342mYzU/ts oS80UbAjtqjVe3dHfJbZP4lhhbaqw7yKdxqrPqhD/5y/vepJLFek9xp5BekyWFEZcm d62ZZghzk2FMQ== From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org, Russell King , Linus Walleij , Lubomir Rintel Cc: linux-kernel@vger.kernel.org, Arnd Bergmann Subject: [PATCH 07/11] ARM: mmp: select specific CPU implementation Date: Fri, 21 Oct 2022 17:49:37 +0200 Message-Id: <20221021155000.4108406-8-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20221021155000.4108406-1-arnd@kernel.org> References: <20221021155000.4108406-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann The behavior of the MMP platform code depends on whether the CPU_PXA168/CPU_PXA910/CPU_MMP2 symbols are enabled or not. I believe the intention here was that these can be left disabled for a pure DT-only build, but it's not clear if that actually works. At the minimum, the cpu_is_pxa168() and cpu_is_pxa910() checks behave differently, which causes changes in the power management code. For the moment, make the behavior depend on whether CONFIG_ATAGS is set or not, to make it easier to bisect the removal of the old code later. Signed-off-by: Arnd Bergmann --- arch/arm/mach-mmp/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-mmp/Kconfig b/arch/arm/mach-mmp/Kconfig index d71417d57961..da38106149c4 100644 --- a/arch/arm/mach-mmp/Kconfig +++ b/arch/arm/mach-mmp/Kconfig @@ -113,6 +113,8 @@ config MACH_MMP_DT select PINCTRL_SINGLE select ARCH_HAS_RESET_CONTROLLER select CPU_MOHAWK + select CPU_PXA168 if ATAGS + select CPU_PXA910 if ATAGS help Include support for Marvell MMP2 based platforms using the device tree. Needn't select any other machine while @@ -125,6 +127,7 @@ config MACH_MMP2_DT select PINCTRL_SINGLE select ARCH_HAS_RESET_CONTROLLER select CPU_PJ4 + select CPU_MMP2 if ATAGS select PM_GENERIC_DOMAINS if PM select PM_GENERIC_DOMAINS_OF if PM && OF help -- 2.29.2