From patchwork Fri Nov 18 05:22:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tan Jui Nee X-Patchwork-Id: 9435759 X-Patchwork-Delegate: andy.shevchenko@gmail.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D0FF160756 for ; Fri, 18 Nov 2016 05:23:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C3AE529759 for ; Fri, 18 Nov 2016 05:23:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B0B9F2976E; Fri, 18 Nov 2016 05:23:27 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AEE3029761 for ; Fri, 18 Nov 2016 05:23:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751662AbcKRFXL (ORCPT ); Fri, 18 Nov 2016 00:23:11 -0500 Received: from mga11.intel.com ([192.55.52.93]:56860 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752250AbcKRFXJ (ORCPT ); Fri, 18 Nov 2016 00:23:09 -0500 Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP; 17 Nov 2016 21:23:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,655,1473145200"; d="scan'208";a="902780027" Received: from juineeta-ilbpg0.png.intel.com ([10.88.227.42]) by orsmga003.jf.intel.com with ESMTP; 17 Nov 2016 21:23:02 -0800 From: Tan Jui Nee To: mika.westerberg@linux.intel.com, heikki.krogerus@linux.intel.com, andriy.shevchenko@linux.intel.com, tglx@linutronix.de, dvhart@infradead.org, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, ptyser@xes-inc.com, lee.jones@linaro.org, linus.walleij@linaro.org Cc: linux-gpio@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, jui.nee.tan@intel.com, jonathan.yong@intel.com, ong.hock.yu@intel.com, tony.luck@intel.com, wan.ahmad.zainie.wan.mohamad@intel.com, yunying.sun@intel.com Subject: [PATCH v11 3/6] x86/intel-ivi: Add Intel In-Vehicle Infotainment (IVI) systems used in cars support Date: Fri, 18 Nov 2016 13:22:27 +0800 Message-Id: <1479446550-28677-4-git-send-email-jui.nee.tan@intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1479446550-28677-1-git-send-email-jui.nee.tan@intel.com> References: <1479446550-28677-1-git-send-email-jui.nee.tan@intel.com> Sender: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add support for non ACPI system, such as system that uses Advanced Boot Loader (ABL) whereby a platform device has to be created in order to bind with PINCTRL/GPIO. At the moment, Intel Apollo Lake SoC requires P2SB driver to hide and unhide P2SB to lookup P2SB BAR and pass the PCI BAR address to GPIO. Signed-off-by: Tan Jui Nee Reviewed-by: Mika Westerberg --- Changes in V11: - Select CONFIG_P2SB when CONFIG_X86_INTEL_IVI is enabled instead of CONFIG_LPC_ICH is enabled. This is to fix kbuildbot error. Changes in V10: - No change Changes in V9: - No change Changes in V8: - No change arch/x86/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index bada636..6019755 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -512,6 +512,16 @@ config X86_INTEL_CE This option compiles in support for the CE4100 SOC for settop boxes and media devices. +config X86_INTEL_IVI + bool "Intel In-Vehicle Infotainment (IVI) systems used in cars" + depends on X86 && PCI + select P2SB + ---help--- + Select this option to enable MMIO BAR access over the P2SB for + non-ACPI Intel Apollo Lake SoC platforms. This driver uses the P2SB + hide/unhide mechanism cooperatively to pass the PCI BAR address to + the platform driver, currently GPIO. + config X86_INTEL_MID bool "Intel MID platform support" depends on X86_EXTENDED_PLATFORM