From patchwork Sun Jun 10 13:25:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 927340 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="hF/lfnzw"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 413cKM0bNSz9rvt for ; Sun, 10 Jun 2018 23:23:18 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 91F75C21DA6; Sun, 10 Jun 2018 13:21:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id B9088C21D56; Sun, 10 Jun 2018 13:20:48 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 42DBAC21E1A; Sun, 10 Jun 2018 13:20:36 +0000 (UTC) Received: from mail-pg0-f67.google.com (mail-pg0-f67.google.com [74.125.83.67]) by lists.denx.de (Postfix) with ESMTPS id 630EFC21D65 for ; Sun, 10 Jun 2018 13:20:31 +0000 (UTC) Received: by mail-pg0-f67.google.com with SMTP id 15-v6so8479731pge.2 for ; Sun, 10 Jun 2018 06:20:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=O376cNbKcuQoj7QbPDvMLeWZSY7w6/h3EyieBFbimr0=; b=hF/lfnzwKwT4ncDDx6PaHD4rzJpvgF3lFQN7r00/5tzC4VofWtk1FXa0EuUiDjDD7a sP5TWKrxiY1l6ga9NWuk8hJ3EiV/18ufNEHcpo9BaICRTd4tUeZKmRO5bUaHZOhPSetE xmXuFgfJMYKhopaWCI8Jy+rRMtsBaA2PXtZd5oNlsGTfj9DCeaw5/FqE4qBpc5BsSs4b TFddW1M32TbF7BgWe0Yc21dbiFBjUEQ97epdMoT0FKcOlL9FAyPcLeGErKUB7RO4+3IP RyEH/C2vWaScw8mFQeKsT/21V/I/OFA2Uo9LDUIy3kMqFuphv5X+yd8H4n97/eISvGNu Owow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=O376cNbKcuQoj7QbPDvMLeWZSY7w6/h3EyieBFbimr0=; b=RsGEg8iIkVG1WiRfvc5eDWKLGc/Uu8+CrppNVWQc+HEOHBPvA+V9Do7SZgE+rJfTDw Ocwh0YsXahnsVNhqhA3MfkseE+9U5x6g49OHhdHSPAy8Az1osk1F9KEiNkczeKhh3X68 dNPRahVHFG2BOrcbtmN+qt7rEeq3DGgORSdBrdOJz49eA01XZ9rlEH5WuEUwKMy86foA LuwDWGlG4KBqC0YBwR40S8Mnlgz2FdaBgb2WrEktHoql3Lo1b/Kg87rCHIG8n+IRla/W MnlKQ2IopDWcCSf/P1ctEvrrD+z3ZJ8+b4CvvUBCyTkb/6K9zjV0PHHdJzSC5CsT3JA8 f0RA== X-Gm-Message-State: APt69E1s9amB8mC36LzTTmf6KlT6vlMe87r9wbXTkE042+9NReGzCJRX 9BvPmpdlAgTWynW/1lIfQI4= X-Google-Smtp-Source: ADUXVKJ1X3dZ5bNCbJZqwYX4phBfz5XgQgchXZw1FLaeQ1ti84+JFAk/+oEkq40OAAuQ5ka1bQcTww== X-Received: by 2002:a63:12:: with SMTP id 18-v6mr11802260pga.121.1528636830023; Sun, 10 Jun 2018 06:20:30 -0700 (PDT) Received: from ala-d2121-lx1.wrs.com (unknown-156-139.windriver.com. [147.11.156.139]) by smtp.gmail.com with ESMTPSA id 82-v6sm63211661pft.74.2018.06.10.06.20.28 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 10 Jun 2018 06:20:29 -0700 (PDT) From: Bin Meng To: Simon Glass , U-Boot Mailing List Date: Sun, 10 Jun 2018 06:25:01 -0700 Message-Id: <1528637118-32739-3-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1528637118-32739-1-git-send-email-bmeng.cn@gmail.com> References: <1528637118-32739-1-git-send-email-bmeng.cn@gmail.com> Subject: [U-Boot] [PATCH 02/18] x86: Conditionally build the pinctrl_ich6 driver X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The pinctrl_ich6 driver is currently unconditionally built for all x86 boards. Let's use a Kconfig option to control the build. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- arch/x86/Kconfig | 6 ++++++ arch/x86/cpu/baytrail/Kconfig | 1 + arch/x86/cpu/ivybridge/Kconfig | 1 + arch/x86/lib/Makefile | 2 +- 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index c145799..460aed6 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -744,6 +744,12 @@ config I8259_PIC slave) interrupt controllers. Include this to have U-Boot set up the interrupt correctly. +config PINCTRL_ICH6 + bool + help + Intel ICH6 compatible chipset pinctrl driver. It needs to work + together with the ICH6 compatible gpio driver. + config I8254_TIMER bool default y diff --git a/arch/x86/cpu/baytrail/Kconfig b/arch/x86/cpu/baytrail/Kconfig index ac58b03..022a9f2 100644 --- a/arch/x86/cpu/baytrail/Kconfig +++ b/arch/x86/cpu/baytrail/Kconfig @@ -12,6 +12,7 @@ config INTEL_BAYTRAIL imply AHCI_PCI imply ICH_SPI imply INTEL_ICH6_GPIO + imply PINCTRL_ICH6 imply MMC imply MMC_PCI imply MMC_SDHCI diff --git a/arch/x86/cpu/ivybridge/Kconfig b/arch/x86/cpu/ivybridge/Kconfig index e31c33c..ea25ff3 100644 --- a/arch/x86/cpu/ivybridge/Kconfig +++ b/arch/x86/cpu/ivybridge/Kconfig @@ -13,6 +13,7 @@ config NORTHBRIDGE_INTEL_IVYBRIDGE imply AHCI_PCI imply ICH_SPI imply INTEL_ICH6_GPIO + imply PINCTRL_ICH6 imply SCSI imply SCSI_AHCI imply SPI_FLASH diff --git a/arch/x86/lib/Makefile b/arch/x86/lib/Makefile index 51d451f..2adb236 100644 --- a/arch/x86/lib/Makefile +++ b/arch/x86/lib/Makefile @@ -24,7 +24,7 @@ obj-$(CONFIG_ENABLE_MRC_CACHE) += mrccache.o obj-y += northbridge-uclass.o obj-$(CONFIG_I8259_PIC) += i8259.o obj-$(CONFIG_I8254_TIMER) += i8254.o -obj-y += pinctrl_ich6.o +obj-$(CONFIG_PINCTRL_ICH6) += pinctrl_ich6.o obj-y += pirq_routing.o obj-y += relocate.o obj-y += physmem.o