From patchwork Mon Nov 19 19:49:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaro Koskinen X-Patchwork-Id: 10689355 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 983FF6C5 for ; Mon, 19 Nov 2018 19:50:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8452D2A381 for ; Mon, 19 Nov 2018 19:50:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 740A72A38B; Mon, 19 Nov 2018 19:50:07 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW 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 22D272A381 for ; Mon, 19 Nov 2018 19:50:07 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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:In-Reply-To: References:List-Owner; bh=iOeoW98WNRyC3qQ7yo+bEGkG59yEwcDfHgSnDooMSIo=; b=Y+Y Sa78qyImHBnvwSFveOSUNvY4dcSL0vM15NFKKpubNPg7rlK2KwUaVNjv9Q8uIejQpfVRj9PObFiqg 8AlfY2nY9MWVcWbVOVxemcKP/1i7PIQyjKIIKCCa4woTQdF64+nxDnf35xMg1LROfE/Hei+CC5+Ly +8KdbVlnKH2PmaiT90mRI1frUl7TuQpBJmhrOG8ORmjCY8tVQTAM3NJoXoSxYdJzTOsA8KaUU6SKC c4D2Xu82pSOedIf+Bu5CgQ3KQLNkwhxBQUHjyVgTbmaCnHXWV4Aq1agJln1FDAtJAzMiuhPtfVnyv L+6sxqZ61auUIm5SWet7NxZWBa2I3gA==; 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 1gOpYb-00088v-1W; Mon, 19 Nov 2018 19:50:05 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gOpYY-0007XI-IL for linux-arm-kernel@bombadil.infradead.org; Mon, 19 Nov 2018 19:50:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=YqY1XdZyxsg7vlAFCOiPE93XeCk8knejeuWClcQLdA8=; b=fPMej7yaRns8NN6ijQMb71wzx OELnMI1y+8oUCRUbxaLFQZ0SX0zD1wek5fTPMKHefM0aifIjspg723SGsM45+ChCtHmR6fy/jNydT iK+8tt5oljEe8qsiDARwmUJGxjDx8PFBrmK/ZvPQC9kUEKY3bF9clFUcchjM7Yj4tytHYLbJAZcw8 QXiPFMZJBRHvbvkdTjm1ycGx5CeMwxqn7lSXfTFMVkxvhgxxgxTclO7/Q9ILrxJhI5eQHPmxnGh4j Ey4tUiMS/APu82BbvjXJ6KEKuOGXFwcCbR5V87kkBjkZ2F9speS+Ux2v++rqLlHwDXUEbvqHgyVpq PYnHgiW3w==; Received: from emh07.mail.saunalahti.fi ([62.142.5.117]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gOpYV-0004I6-JZ for linux-arm-kernel@lists.infradead.org; Mon, 19 Nov 2018 19:50:01 +0000 Received: from localhost.localdomain (85-76-71-135-nat.elisa-mobile.fi [85.76.71.135]) by emh07.mail.saunalahti.fi (Postfix) with ESMTP id 7002FB0061; Mon, 19 Nov 2018 21:49:46 +0200 (EET) From: Aaro Koskinen To: Tony Lindgren , linux-omap@vger.kernel.org Subject: [PATCH] ARM: OMAP1: devices: configure omap1_spi100k only on OMAP7xx Date: Mon, 19 Nov 2018 21:49:43 +0200 Message-Id: <20181119194943.351-1-aaro.koskinen@iki.fi> X-Mailer: git-send-email 2.17.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181119_194959_688854_CD26F596 X-CRM114-Status: UNSURE ( 8.59 ) X-CRM114-Notice: Please train this message. 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: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Aaro Koskinen MIME-Version: 1.0 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 Configure omap1_spi100k only on OMAP7xx. This allows running multiboard kernels on non-OMAP7xx HW with CONFIG_SPI_OMAP_100K enabled. Signed-off-by: Aaro Koskinen --- arch/arm/mach-omap1/devices.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-omap1/devices.c b/arch/arm/mach-omap1/devices.c index baaf902b7016..e1243b5d554f 100644 --- a/arch/arm/mach-omap1/devices.c +++ b/arch/arm/mach-omap1/devices.c @@ -244,6 +244,9 @@ struct platform_device omap_spi2 = { static void omap_init_spi100k(void) { + if (!cpu_is_omap7xx()) + return; + omap_spi1.dev.platform_data = ioremap(OMAP7XX_SPI1_BASE, 0x7ff); if (omap_spi1.dev.platform_data) platform_device_register(&omap_spi1);