From patchwork Mon May 15 16:02:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 13241719 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E0C8CC7EE22 for ; Mon, 15 May 2023 16:03:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gJ4PFD5z0k55x8j3vb4n7SrLRuPtKJlg8KuNnxu6yEQ=; b=chSdrMrIO8rtuV rZTi6Vu1yh8fYpETIztcNBk91gcPY4Q9jCK09nuPV6ZzKDKSZaOhR+At4Zfa9f1M2u93DGb60Nxb5 /Q8pCAYG3OirPrYupOoVXS2wtv5RpSObVAr4CtJePyk2irT7bja1cH7SH1obAVioAtc29vjaJO7c/ w2pNzut0JP7An4gGN72zep/RPfcD17ZYVnOl9RNezojlmlwL24Ziy9y0DhDRdIOCW1sjNxyQ8WWuH TySQFzOXvIgA20hBxMEj072Q0yVSJsj9pIs11GaOdWOHUOtMbpPqZE1W6hFe9tH5wAXmp7LsIMwx/ 6FxF9sySKC8JclXUZf9Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pyafF-002fGt-2u; Mon, 15 May 2023 16:03:10 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pyaf9-002fF7-2l for linux-arm-kernel@bombadil.infradead.org; Mon, 15 May 2023 16:03:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:Content-Transfer-Encoding :MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From: Sender:Reply-To:Content-ID:Content-Description; bh=af5c91Q+vqJOwLmdyh9Q8efsWJmeqrOcwNcvgIRxRNY=; b=e2PGaud7ApfgH0SXHmmbSkvwAZ F36Zp9ZpMq5TT5sxy93amPEixlSNNdpOS/usENIlr/EP1dCf3loIr3HWU/g4jNrd3Vf5UE7fKJgI3 sKxa5owbXTtI61pPg8N+gqsqJchbIj2pyMfKgICCTp/+fgVarXVKp5oJjC+pshOHTg+xvSNrLRJ9+ aaOle5VefWWGTujFJEzGR1pSmV3ntXOJgy8cyfmpGRHWlhqqBln1Pt40cPZgNcH5a3DEbCBaas6Xl 67DOF2erB3qFSTjYPqwomnGVMVd21qsuo+z5TrIUPtiWyO9K28W0l3AEtn0QsAxoo76FrYLgRpcRb Upr0h9mQ==; Received: from fllv0015.ext.ti.com ([198.47.19.141]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pyaf4-00BVwO-2q for linux-arm-kernel@lists.infradead.org; Mon, 15 May 2023 16:03:02 +0000 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 34FG2eu5004419; Mon, 15 May 2023 11:02:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1684166560; bh=af5c91Q+vqJOwLmdyh9Q8efsWJmeqrOcwNcvgIRxRNY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=SP84bAZeRgvC/Gc+WsGQ7Atg+Tv8DWL6vow2gLHKiV4vVI80fktSft8/rWehKjmyg 1rARaYTfCDmsTN0t7R9SryL81T6Dk8AN5yeuyVKCtKNk1hvEw79SOVyQ31s3zlCNO+ ibuHvZn1lAP0fYhYxV2VMvkEHALeEVEcJG7OmBI0= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 34FG2ee3013210 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 15 May 2023 11:02:40 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 15 May 2023 11:02:39 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 15 May 2023 11:02:39 -0500 Received: from lelv0327.itg.ti.com (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 34FG2ZR6029578; Mon, 15 May 2023 11:02:39 -0500 From: Andrew Davis To: Russell King , Baruch Siach , Vladimir Zapolskiy , Kunihiko Hayashi , Masami Hiramatsu , Arnd Bergmann , Geert Uytterhoeven , Linus Walleij CC: , , Andrew Davis Subject: [PATCH 07/10] ARM: mach-digicolor: Rework support and directory structure Date: Mon, 15 May 2023 11:02:31 -0500 Message-ID: <20230515160234.289631-7-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230515160234.289631-1-afd@ti.com> References: <20230515160234.289631-1-afd@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230515_170259_174960_246782E6 X-CRM114-Status: GOOD ( 17.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Having a platform need a mach-* directory should be seen as a negative, it means the platform needs special non-standard handling. ARM64 support does not allow mach-* directories at all. While we may not get to that given all the non-standard architectures we support, we should still try to get as close as we can and reduce the number of mach directories. The mach-digicolor/ directory and files, provides just one "feature": having the kernel print the machine name if the DTB does not also contain a "model" string (which they always do). To reduce the number of mach-* directories let's do without that feature and remove this directory. Signed-off-by: Andrew Davis --- arch/arm/Kconfig | 2 -- arch/arm/Kconfig.platforms | 11 +++++++++++ arch/arm/Makefile | 1 - arch/arm/mach-digicolor/Kconfig | 11 ----------- arch/arm/mach-digicolor/Makefile | 2 -- arch/arm/mach-digicolor/digicolor.c | 15 --------------- 6 files changed, 11 insertions(+), 31 deletions(-) delete mode 100644 arch/arm/mach-digicolor/Kconfig delete mode 100644 arch/arm/mach-digicolor/Makefile delete mode 100644 arch/arm/mach-digicolor/digicolor.c diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index f60e98da58cd..d4afd5a01307 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -363,8 +363,6 @@ source "arch/arm/mach-clps711x/Kconfig" source "arch/arm/mach-davinci/Kconfig" -source "arch/arm/mach-digicolor/Kconfig" - source "arch/arm/mach-dove/Kconfig" source "arch/arm/mach-ep93xx/Kconfig" diff --git a/arch/arm/Kconfig.platforms b/arch/arm/Kconfig.platforms index 38457d5a18ff..c74392419cc3 100644 --- a/arch/arm/Kconfig.platforms +++ b/arch/arm/Kconfig.platforms @@ -87,6 +87,17 @@ config MACH_ASM9260 help Support for Alphascale ASM9260 based platform. +config ARCH_DIGICOLOR + bool "Conexant Digicolor SoC Support" + depends on ARCH_MULTI_V7 + select CLKSRC_MMIO + select DIGICOLOR_TIMER + select GENERIC_IRQ_CHIP + select GPIOLIB + select MFD_SYSCON + select PINCTRL + select PINCTRL_DIGICOLOR + menuconfig ARCH_MOXART bool "MOXA ART SoC" depends on ARCH_MULTI_V4 diff --git a/arch/arm/Makefile b/arch/arm/Makefile index e20c8af34d51..82ec2c8bd749 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -176,7 +176,6 @@ machine-$(CONFIG_ARCH_BCM) += bcm machine-$(CONFIG_ARCH_BERLIN) += berlin machine-$(CONFIG_ARCH_CLPS711X) += clps711x machine-$(CONFIG_ARCH_DAVINCI) += davinci -machine-$(CONFIG_ARCH_DIGICOLOR) += digicolor machine-$(CONFIG_ARCH_DOVE) += dove machine-$(CONFIG_ARCH_EP93XX) += ep93xx machine-$(CONFIG_ARCH_EXYNOS) += exynos diff --git a/arch/arm/mach-digicolor/Kconfig b/arch/arm/mach-digicolor/Kconfig deleted file mode 100644 index 90394433c405..000000000000 --- a/arch/arm/mach-digicolor/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -config ARCH_DIGICOLOR - bool "Conexant Digicolor SoC Support" - depends on ARCH_MULTI_V7 - select CLKSRC_MMIO - select DIGICOLOR_TIMER - select GENERIC_IRQ_CHIP - select GPIOLIB - select MFD_SYSCON - select PINCTRL - select PINCTRL_DIGICOLOR diff --git a/arch/arm/mach-digicolor/Makefile b/arch/arm/mach-digicolor/Makefile deleted file mode 100644 index fc5b7c98c824..000000000000 --- a/arch/arm/mach-digicolor/Makefile +++ /dev/null @@ -1,2 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only -obj-$(CONFIG_ARCH_DIGICOLOR) += digicolor.o diff --git a/arch/arm/mach-digicolor/digicolor.c b/arch/arm/mach-digicolor/digicolor.c deleted file mode 100644 index 156d0d5996a9..000000000000 --- a/arch/arm/mach-digicolor/digicolor.c +++ /dev/null @@ -1,15 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-only -/* - * Support for Conexant Digicolor SoCs -*/ - -#include - -static const char *const digicolor_dt_compat[] __initconst = { - "cnxt,cx92755", - NULL, -}; - -DT_MACHINE_START(DIGICOLOR, "Conexant Digicolor (Flattened Device Tree)") - .dt_compat = digicolor_dt_compat, -MACHINE_END