Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1955275rwb; Fri, 19 Aug 2022 12:21:10 -0700 (PDT) X-Google-Smtp-Source: AA6agR6upRzvw62dwyzJpT7XsybH+OqA47Kgdkq1uGi8t6ohANf7qejk3RkdHqf7iGZkaasUXrvV X-Received: by 2002:a05:6a00:1a88:b0:52f:52df:ce1d with SMTP id e8-20020a056a001a8800b0052f52dfce1dmr9334555pfv.13.1660936870468; Fri, 19 Aug 2022 12:21:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660936870; cv=none; d=google.com; s=arc-20160816; b=shgCGlfwh4XSOeCMTlVsBHMf/nspjhVpYs7jsDy2iuQFJDJRGZj9syWBnfjGcvahBe OIEhw/VSF7FTj61/OdAbJw9Mqu49CpLVxfXK7cije9CkGoraKzEiKy8NzVlPc4v7G9f9 /fUWArpbiQ+RSTGCjVeZAnGK3jHJbRwoHwTkEZsp4T27s5fCGrqj4fBxBuBifFThxGTo eBP5cd6gW0QpBlnQcN4eRzczP6bTZSxsIJ5evh1Z4XRiX7nVaiSus1e+1U8ay86/VVRz GrOk+hI7r8V0Hw6xd93JNAKO1FP6uD08GU4QTXPBnYzWORoRdjco2adOA9P8oXL+wdid bgmA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=nXTCIJcEFFL9brBk9FAx7jaNqk+kJLgAJ/UZokFWiR8=; b=YUJ3F45isnkEb+x2UfaYJWHvLaUgtXci0vUSPbEFdhcyMDd3EnRRrBt4607mBjuLxM icgP2RG9TQC56DfduGLtc/EALl0hsXx3deq4iYMGu67D6vkO5KM96n/jgcDZY8YuAT0R EImeWtRSi9+4OV1nnvmela3EuZ6V13ICGwBRcBiKXrVbVNWklmExAvVEl1bfQ3okCNvK uz9O0KeW+A2yxvto5uO3NYDoG/5ViUaBssYUCx2c71krf/Sor3RTv68sx6rKt7ChVJt2 j/4DT24EtEW4NdRWvUOt4WGj30hEbxX+nC6+WKrPbsmjbcXt5njHd3xew1PG1RPCWp0h 8Pvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BT30kbtw; 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 q7-20020a170902eb8700b00172bdd4a21fsi2884466plg.86.2022.08.19.12.20.59; Fri, 19 Aug 2022 12:21:10 -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=BT30kbtw; 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 S1351198AbiHSTRK (ORCPT + 99 others); Fri, 19 Aug 2022 15:17:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350282AbiHSTRG (ORCPT ); Fri, 19 Aug 2022 15:17:06 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5370112332 for ; Fri, 19 Aug 2022 12:17:02 -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 ams.source.kernel.org (Postfix) with ESMTPS id 5DB03B827CD for ; Fri, 19 Aug 2022 19:17:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6356C433D6; Fri, 19 Aug 2022 19:16:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660936620; bh=o2xdg2Rv7BFF7s0EqoFYePZNdZZxEEpjrxSZiJdS454=; h=From:To:Cc:Subject:Date:From; b=BT30kbtwqKYX/hXb+AIqTNCjLdPWg82/lzDYYjxClWZzn9WmenyRGsHjghTYqoPNz WaH7bZYWNedvwGKYJHuTPLTAJ8oAlbv1yjXbyInsNU4ZPSc3el3HkbWKADtEigEOU5 vVB7JnF6xsTOXsXooBUdYgJeKtUclQLnVhE32MLBm4Rf9gZMPFF2WRlRdi9UHiH2eh sYdyf1PfpB/sGVB8B7zIGhAo3YKK5FKueJRJJP24FK48o/z+DVgSnkFosfaagHHNWV xrI4gw0BzDsRWXi9xUwXuzGP1sX0yDSv5iGuBLqQ9QDXMo5oY8wJo+9bxQvyULLvhT h6AojjkBNNeCQ== Received: by pali.im (Postfix) id DDAA3761; Fri, 19 Aug 2022 21:16:56 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Scott Wood , Christophe Leroy , Sinan Akman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/7] powerpc/85xx: p2020: Create one unified machine description Date: Fri, 19 Aug 2022 21:15:50 +0200 Message-Id: <20220819191557.28116-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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,T_SCC_BODY_TEXT_LINE 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 This patch series unifies all P2020 boards and machine descriptions into one generic unified P2020 machine description. With this generic machine description, kernel can boot on any P2020-based board with correct DTS file. Tested on CZ.NIC Turris 1.1 board with has Freescale P2020 processor. Kernel during booting correctly detects P2020 and prints: [ 0.000000] Using Freescale P2020 machine description Pali Rohár (7): powerpc/85xx: Mark mpc85xx_rdb_pic_init() as static powerpc/85xx: Mark mpc85xx_ds_pic_init() as static powerpc/85xx: p2020: Move all P2020 machine descriptions to p2020.c powerpc/85xx: p2020: Unify .setup_arch and .init_IRQ callbacks powerpc/85xx: p2020: Define just one machine description powerpc/85xx: p2020: Enable boards by new config option CONFIG_P2020 powerpc: dts: turris1x.dts: Remove "fsl,P2020RDB-PC" compatible string arch/powerpc/boot/dts/turris1x.dts | 2 +- arch/powerpc/platforms/85xx/Kconfig | 22 ++- arch/powerpc/platforms/85xx/Makefile | 1 + arch/powerpc/platforms/85xx/mpc85xx_ds.c | 25 +-- arch/powerpc/platforms/85xx/mpc85xx_rdb.c | 46 +----- .../platforms/85xx/{mpc85xx_ds.c => p2020.c} | 144 +++++++----------- 6 files changed, 75 insertions(+), 165 deletions(-) copy arch/powerpc/platforms/85xx/{mpc85xx_ds.c => p2020.c} (53%) -- 2.20.1