From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0A400C43381 for ; Mon, 18 Mar 2019 12:29:27 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id B795A20854 for ; Mon, 18 Mar 2019 12:29:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Q1SH1ku4"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="cJ31JBsU" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B795A20854 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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=rrERA2E1XopIKi8JQGX8ze7bod4D24vBqYhY0ue4TmA=; b=Q1SH1ku4XnXfDH jiVdWNX14t3sV5auxpvNWQk5hIvv0soghyxRRd/sTEvHXlnue55QzztETQsCQfKZXM/34NIKy4cFV sR+a4/LFjYQOtFRGtn5ZTxkScTkzBAEdHnU93TjK4dik1CKTBEOhIvp2hMO5Vg3QtM3OvcyvouVPa Hf8PBl67E1Hi20SS6Qut81p/VUCuGSOXQ5/D7M+99bNBaG8bPGAYDOGNmNPNhIbLdzQic3fNzP7VY aiUUEcDpu3IuJCaOB+4lOT5mbeHrR07Lzcmj9S2bM4fM9QfkIwOKcr9LNTYMduSneX0YVSKjld6V7 0Q+XuQaJ62QBvjGbuj6g==; 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 1h5rOK-0005wk-72; Mon, 18 Mar 2019 12:29:20 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h5rO7-0005j6-LD for linux-arm-kernel@lists.infradead.org; Mon, 18 Mar 2019 12:29:09 +0000 Received: by mail-wr1-x443.google.com with SMTP id j9so2646607wrn.6 for ; Mon, 18 Mar 2019 05:29:07 -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=DO1z0u/OGAKzBJvOGOCFOqGEzFjL4ovxKinkepShL1c=; b=cJ31JBsUt3zlxsh7mDLZPov/0YbuWV71MZXbptWlCzYiOhURS+tWKLLnKe3p2Uj0o0 sOyJ8323MLdPyKPR72r4bYtwxr+w4u/TbmJZr2mRvowkAibwRQ6ail5iHUFmCCrTjLXd R7HwEhlKftOcIYIbL+0AwRC7O1nxFEP2zGVl13L1AU31w1EOeI/rwU/ZeptxMZvIa0i7 8PpI6Dbp++MsbzOvGWqNGIIq7/UDZLUnt9oE4NSgy3DnRh+tWeyduT5332L9CaW3HM9G JND7JMJ1VDzRReJhBdoBdJef0yWax7DKjJtFarfCVIxZaeoh8hFVK5oJwsrJN4eizWaw 59NA== 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=DO1z0u/OGAKzBJvOGOCFOqGEzFjL4ovxKinkepShL1c=; b=AMRfLtg2o6i40wYUWUBkuWjsXOMSSNzgGTAj3o31rLgdD9VeVFzI+wICsZ5Pa9Tzy4 uh8atWurC3CVBdJAAunXDt01437Yrm6hnntqhMNAy1hrRa5NbO8Is4WxOStL4iE7w6gP CoF3JCKesC/FhI59W+mcaJpCgtHBElGOy7xxEAeglgDYo3wvIPVGFFgBMIF0Jksjlcyh xX4EL0vgttMWfEKzVWuO0ZzSLzhuCN01GYDhsAhjZL6ZrxFsCmRABEVOVMLNHiZ9OtRa 5pg/I8+mE9BrwQJmxBFEn/UHtd2R+PiltQ+2xdxrjIHWR9G5UZHFAtuFiT5zbqWXPdhF o5ow== X-Gm-Message-State: APjAAAXyjrZ4K0Lhk0gfMmXUY/xm43wV6XM6/myPVlgIipKBxxWLEikh +WXRxL8MYCanKroix0ge9d1TCg== X-Google-Smtp-Source: APXvYqzvQWOc4EjgmodXU2RBYM4zE/Uhz6gwTPNWKxheb3WySunZN6g2wGjbfG6Gtyo+MZWROQG1+A== X-Received: by 2002:adf:f487:: with SMTP id l7mr11353454wro.86.1552912146149; Mon, 18 Mar 2019 05:29:06 -0700 (PDT) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id v13sm2368112wmj.43.2019.03.18.05.29.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Mar 2019 05:29:05 -0700 (PDT) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Arnd Bergmann , David Lechner Subject: [RESEND PATCH 1/2] ARM: davinci: support multiplatform build for ARM v5 Date: Mon, 18 Mar 2019 13:29:00 +0100 Message-Id: <20190318122901.7231-2-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190318122901.7231-1-brgl@bgdev.pl> References: <20190318122901.7231-1-brgl@bgdev.pl> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190318_052907_690313_600E4C06 X-CRM114-Status: GOOD ( 14.52 ) 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: Bartosz Golaszewski , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Bartosz Golaszewski Add modifications necessary to make davinci part of the ARM v5 multiplatform build. Move the arch-specific configuration out of arch/arm/Kconfig and into mach-davinci/Kconfig. Remove the sub-menu for DaVinci implementations (they'll be visible directly under the system type. Select all necessary options not already selected by ARCH_MULTI_V5. Update davinci_all_defconfig. Explicitly include the mach-specific headers in mach-davinci/Makefile. Signed-off-by: Bartosz Golaszewski --- arch/arm/Kconfig | 21 --------------------- arch/arm/configs/davinci_all_defconfig | 5 +++++ arch/arm/mach-davinci/Kconfig | 16 ++++++++++++---- arch/arm/mach-davinci/Makefile | 2 ++ 4 files changed, 19 insertions(+), 25 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index f893798e13d3..01be980ee5d0 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -583,27 +583,6 @@ config ARCH_S3C24XX (), the IPAQ 1940 or the Samsung SMDK2410 development board (and derivatives). -config ARCH_DAVINCI - bool "TI DaVinci" - select ARCH_HAS_HOLES_MEMORYMODEL - select COMMON_CLK - select CPU_ARM926T - select DAVINCI_TIMER - select GENERIC_ALLOCATOR - select GENERIC_CLOCKEVENTS - select GENERIC_IRQ_CHIP - select GENERIC_IRQ_MULTI_HANDLER - select GPIOLIB - select HAVE_IDE - select PM_GENERIC_DOMAINS if PM - select PM_GENERIC_DOMAINS_OF if PM && OF - select RESET_CONTROLLER - select SPARSE_IRQ - select USE_OF - select ZONE_DMA - help - Support for TI's DaVinci platform. - config ARCH_OMAP1 bool "TI OMAP1" depends on MMU diff --git a/arch/arm/configs/davinci_all_defconfig b/arch/arm/configs/davinci_all_defconfig index 207962a656a2..bbf285dd63e4 100644 --- a/arch/arm/configs/davinci_all_defconfig +++ b/arch/arm/configs/davinci_all_defconfig @@ -17,6 +17,9 @@ CONFIG_MODVERSIONS=y CONFIG_PARTITION_ADVANCED=y # CONFIG_IOSCHED_DEADLINE is not set # CONFIG_IOSCHED_CFQ is not set +CONFIG_ARCH_MULTIPLATFORM=y +CONFIG_ARCH_MULTI_V7=n +CONFIG_ARCH_MULTI_V5=y CONFIG_ARCH_DAVINCI=y CONFIG_ARCH_DAVINCI_DM644x=y CONFIG_ARCH_DAVINCI_DM355=y @@ -128,9 +131,11 @@ CONFIG_SPI=y CONFIG_SPI_DAVINCI=m CONFIG_PINCTRL_DA850_PUPD=m CONFIG_PINCTRL_SINGLE=y +CONFIG_GPIOLIB=y CONFIG_GPIO_SYSFS=y CONFIG_GPIO_PCA953X=y CONFIG_GPIO_PCA953X_IRQ=y +CONFIG_RESET_CONTROLLER=y CONFIG_POWER_RESET=y CONFIG_POWER_RESET_GPIO=y CONFIG_SYSCON_REBOOT_MODE=m diff --git a/arch/arm/mach-davinci/Kconfig b/arch/arm/mach-davinci/Kconfig index 5a59cebc7d0a..ba6d55590b9d 100644 --- a/arch/arm/mach-davinci/Kconfig +++ b/arch/arm/mach-davinci/Kconfig @@ -1,11 +1,21 @@ # SPDX-License-Identifier: GPL-2.0 + +menuconfig ARCH_DAVINCI + bool "TI DaVinci" + depends on ARCH_MULTI_V5 + select DAVINCI_TIMER + select ZONE_DMA + select ARCH_HAS_HOLES_MEMORYMODEL + select PM_GENERIC_DOMAINS if PM + select PM_GENERIC_DOMAINS_OF if PM && OF + select HAVE_IDE + select PINCTRL_SINGLE + if ARCH_DAVINCI config ARCH_DAVINCI_DMx bool -menu "TI DaVinci Implementations" - comment "DaVinci Core Type" config ARCH_DAVINCI_DM644x @@ -225,6 +235,4 @@ config DAVINCI_MUX_WARNINGS to change the pin multiplexing setup. When there are no warnings printed, it's safe to deselect DAVINCI_MUX for your product. -endmenu - endif diff --git a/arch/arm/mach-davinci/Makefile b/arch/arm/mach-davinci/Makefile index d9af8c0c0b87..58838a9de651 100644 --- a/arch/arm/mach-davinci/Makefile +++ b/arch/arm/mach-davinci/Makefile @@ -4,6 +4,8 @@ # # +ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include + # Common objects obj-y := serial.o usb.o common.o sram.o -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel