Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1533052pxj; Fri, 18 Jun 2021 09:07:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1/6wQRBQzVoxKCwpfENg1yppfS43SHiKpF90ADv4MqKQF1rGBP8A76ocEdmeQg9pVRzTc X-Received: by 2002:a05:6402:1e8b:: with SMTP id f11mr6101959edf.86.1624032471475; Fri, 18 Jun 2021 09:07:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624032471; cv=none; d=google.com; s=arc-20160816; b=ubAzcITnezyTG7CT7zZYrEYWknbFTwlQC6s/KKTU6uQe0lZJ/MSye4cSaecu7pvMtB r0u4o87WjuRbY5DHDxCW/pnq/p+gm/2xiNB+98YNNRBv8ku8GLeqf9otbsKFjXgAzK7x yOX+NTzaEV1KL684VrrrxnL0R7n1D1+av3a/YRo1unOD59dRhwm7fYg1ygHB0rOyJ/qz WfiRSowVQIxuHvt4php/fCkfjhG8si74JXdg8jy/KSfMk043JvekA/MQDliixeUjKbqr 67TATcdlx+J8mqVcYj+V9rAEHBaKNvo4n28Lh60ZAgb08drIwvo/B9khuPn46Us0DOsH s6zQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=npp+X8J+8A/jNf+7OWz6QlLmFhf2jmvaXTG9mL1EzdU=; b=Z6snoKCVuWGPr7qe3KnFxGqiGdCGVn54DGg8J33L7evUOnsbxN1frxM9DF0Fd0sTfJ fRW7y1iOtXEuiq6jARjAX8Xst5JernH69WQPjoaENluAqb3fhbt9pQtB9WaVMoY2qqfE rFZnz7hbmOVz1cvUU2rKNdvr6AIi5jPHukjh3inlF2uM3Ixijxd3Jqw48S9LHvzRqpmf 4K4Vp6J0ZBnVnAqeyg9l/O1ekE6Pjw7hW/aQ3faP4FcGsFRn91+LgC50cj+uQpEPaZW/ 0UtbK4T0mD98L4O9gImTz45UlcwnZbvRLJ4V9Ej/ReIbYcjVJNU0vJ11BeILDElHzb38 2e7A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w21si2721535ejk.639.2021.06.18.09.07.27; Fri, 18 Jun 2021 09:07:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233366AbhFRM5X (ORCPT + 99 others); Fri, 18 Jun 2021 08:57:23 -0400 Received: from mga17.intel.com ([192.55.52.151]:24557 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232968AbhFRM5L (ORCPT ); Fri, 18 Jun 2021 08:57:11 -0400 IronPort-SDR: B54ZAuOOR5MSDHoYpn7yhEIZO9BLUIbSr81w7swqpKd056Eg7AXmBeDEERqyfDLOZPFMne249Y vC1Hu8njfZkQ== X-IronPort-AV: E=McAfee;i="6200,9189,10018"; a="186926074" X-IronPort-AV: E=Sophos;i="5.83,283,1616482800"; d="scan'208";a="186926074" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jun 2021 05:55:01 -0700 IronPort-SDR: mt1lCujJebKDUNjbmjXA4io9NOZ66BkXpewGu9/haW8YSyW7SXYT7SRH7g7NCSuutk2HwOEUPG McKZ7TTFptWA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,283,1616482800"; d="scan'208";a="640700726" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga005.fm.intel.com with ESMTP; 18 Jun 2021 05:54:59 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id B7321774; Fri, 18 Jun 2021 15:55:21 +0300 (EEST) From: Andy Shevchenko To: Hans de Goede , Mario Limonciello , Andy Shevchenko , Daniel Scally , Heikki Krogerus , linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org Cc: Mark Gross Subject: [PATCH v2 8/8] platform/x86: intel_cht_int33fe: Move to its own subfolder Date: Fri, 18 Jun 2021 15:55:16 +0300 Message-Id: <20210618125516.53510-8-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210618125516.53510-1-andriy.shevchenko@linux.intel.com> References: <20210618125516.53510-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since we have started collecting Intel x86 specific drivers in its own folder, Move intel_cht_int33fe to own subfolder there. Signed-off-by: Andy Shevchenko --- v2: no changes drivers/platform/x86/Kconfig | 24 ------------------ drivers/platform/x86/Makefile | 4 --- drivers/platform/x86/intel/Kconfig | 1 + drivers/platform/x86/intel/Makefile | 1 + drivers/platform/x86/intel/int33fe/Kconfig | 25 +++++++++++++++++++ drivers/platform/x86/intel/int33fe/Makefile | 5 ++++ .../int33fe}/intel_cht_int33fe_common.c | 0 .../int33fe}/intel_cht_int33fe_common.h | 0 .../int33fe}/intel_cht_int33fe_microb.c | 0 .../int33fe}/intel_cht_int33fe_typec.c | 0 10 files changed, 32 insertions(+), 28 deletions(-) create mode 100644 drivers/platform/x86/intel/int33fe/Kconfig create mode 100644 drivers/platform/x86/intel/int33fe/Makefile rename drivers/platform/x86/{ => intel/int33fe}/intel_cht_int33fe_common.c (100%) rename drivers/platform/x86/{ => intel/int33fe}/intel_cht_int33fe_common.h (100%) rename drivers/platform/x86/{ => intel/int33fe}/intel_cht_int33fe_microb.c (100%) rename drivers/platform/x86/{ => intel/int33fe}/intel_cht_int33fe_typec.c (100%) diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig index 79d095c0ab61..7d385c3b2239 100644 --- a/drivers/platform/x86/Kconfig +++ b/drivers/platform/x86/Kconfig @@ -687,30 +687,6 @@ config INTEL_ATOMISP2_PM To compile this driver as a module, choose M here: the module will be called intel_atomisp2_pm. -config INTEL_CHT_INT33FE - tristate "Intel Cherry Trail ACPI INT33FE Driver" - depends on X86 && ACPI && I2C && REGULATOR - depends on CHARGER_BQ24190=y || (CHARGER_BQ24190=m && m) - depends on USB_ROLES_INTEL_XHCI=y || (USB_ROLES_INTEL_XHCI=m && m) - depends on TYPEC_MUX_PI3USB30532=y || (TYPEC_MUX_PI3USB30532=m && m) - help - This driver add support for the INT33FE ACPI device found on - some Intel Cherry Trail devices. - - There are two kinds of INT33FE ACPI device possible: for hardware - with USB Type-C and Micro-B connectors. This driver supports both. - - The INT33FE ACPI device has a CRS table with I2cSerialBusV2 - resources for Fuel Gauge Controller and (in the Type-C variant) - FUSB302 USB Type-C Controller and PI3USB30532 USB switch. - This driver instantiates i2c-clients for these, so that standard - i2c drivers for these chips can bind to the them. - - If you enable this driver it is advised to also select - CONFIG_BATTERY_BQ27XXX=m or CONFIG_BATTERY_BQ27XXX_I2C=m for Micro-B - device and CONFIG_TYPEC_FUSB302=m and CONFIG_BATTERY_MAX17042=m - for Type-C device. - config INTEL_HID_EVENT tristate "INTEL HID Event" depends on ACPI diff --git a/drivers/platform/x86/Makefile b/drivers/platform/x86/Makefile index e03b59ce3f9f..7ee369aab10d 100644 --- a/drivers/platform/x86/Makefile +++ b/drivers/platform/x86/Makefile @@ -70,10 +70,6 @@ obj-$(CONFIG_X86_PLATFORM_DRIVERS_INTEL) += intel/ obj-$(CONFIG_INTEL_ATOMISP2_LED) += intel_atomisp2_led.o obj-$(CONFIG_INTEL_ATOMISP2_PM) += intel_atomisp2_pm.o -obj-$(CONFIG_INTEL_CHT_INT33FE) += intel_cht_int33fe.o -intel_cht_int33fe-objs := intel_cht_int33fe_common.o \ - intel_cht_int33fe_typec.o \ - intel_cht_int33fe_microb.o obj-$(CONFIG_INTEL_HID_EVENT) += intel-hid.o obj-$(CONFIG_INTEL_INT0002_VGPIO) += intel_int0002_vgpio.o obj-$(CONFIG_INTEL_MENLOW) += intel_menlow.o diff --git a/drivers/platform/x86/intel/Kconfig b/drivers/platform/x86/intel/Kconfig index 33f2dab03d3d..f2eef337eb98 100644 --- a/drivers/platform/x86/intel/Kconfig +++ b/drivers/platform/x86/intel/Kconfig @@ -16,6 +16,7 @@ menuconfig X86_PLATFORM_DRIVERS_INTEL if X86_PLATFORM_DRIVERS_INTEL +source "drivers/platform/x86/intel/int33fe/Kconfig" source "drivers/platform/x86/intel/int3472/Kconfig" endif # X86_PLATFORM_DRIVERS_INTEL diff --git a/drivers/platform/x86/intel/Makefile b/drivers/platform/x86/intel/Makefile index 3ac795d810f1..0653055942d5 100644 --- a/drivers/platform/x86/intel/Makefile +++ b/drivers/platform/x86/intel/Makefile @@ -4,4 +4,5 @@ # Intel x86 Platform-Specific Drivers # +obj-$(CONFIG_INTEL_CHT_INT33FE) += int33fe/ obj-$(CONFIG_INTEL_SKL_INT3472) += int3472/ diff --git a/drivers/platform/x86/intel/int33fe/Kconfig b/drivers/platform/x86/intel/int33fe/Kconfig new file mode 100644 index 000000000000..c7efb461d97d --- /dev/null +++ b/drivers/platform/x86/intel/int33fe/Kconfig @@ -0,0 +1,25 @@ +# SPDX-License-Identifier: GPL-2.0-only +config INTEL_CHT_INT33FE + tristate "Intel Cherry Trail ACPI INT33FE Driver" + depends on X86 && ACPI && I2C && REGULATOR + depends on CHARGER_BQ24190=y || (CHARGER_BQ24190=m && m) + depends on USB_ROLES_INTEL_XHCI=y || (USB_ROLES_INTEL_XHCI=m && m) + depends on TYPEC_MUX_PI3USB30532=y || (TYPEC_MUX_PI3USB30532=m && m) + help + This driver add support for the INT33FE ACPI device found on + some Intel Cherry Trail devices. + + There are two kinds of INT33FE ACPI device possible: for hardware + with USB Type-C and Micro-B connectors. This driver supports both. + + The INT33FE ACPI device has a CRS table with I2cSerialBusV2 + resources for Fuel Gauge Controller and (in the Type-C variant) + FUSB302 USB Type-C Controller and PI3USB30532 USB switch. + This driver instantiates i2c-clients for these, so that standard + i2c drivers for these chips can bind to the them. + + If you enable this driver it is advised to also select + CONFIG_BATTERY_BQ27XXX=m or CONFIG_BATTERY_BQ27XXX_I2C=m for Micro-B + device and CONFIG_TYPEC_FUSB302=m and CONFIG_BATTERY_MAX17042=m + for Type-C device. + diff --git a/drivers/platform/x86/intel/int33fe/Makefile b/drivers/platform/x86/intel/int33fe/Makefile new file mode 100644 index 000000000000..cc11183ce179 --- /dev/null +++ b/drivers/platform/x86/intel/int33fe/Makefile @@ -0,0 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0-only +obj-$(CONFIG_INTEL_CHT_INT33FE) += intel_cht_int33fe.o +intel_cht_int33fe-objs := intel_cht_int33fe_common.o \ + intel_cht_int33fe_typec.o \ + intel_cht_int33fe_microb.o diff --git a/drivers/platform/x86/intel_cht_int33fe_common.c b/drivers/platform/x86/intel/int33fe/intel_cht_int33fe_common.c similarity index 100% rename from drivers/platform/x86/intel_cht_int33fe_common.c rename to drivers/platform/x86/intel/int33fe/intel_cht_int33fe_common.c diff --git a/drivers/platform/x86/intel_cht_int33fe_common.h b/drivers/platform/x86/intel/int33fe/intel_cht_int33fe_common.h similarity index 100% rename from drivers/platform/x86/intel_cht_int33fe_common.h rename to drivers/platform/x86/intel/int33fe/intel_cht_int33fe_common.h diff --git a/drivers/platform/x86/intel_cht_int33fe_microb.c b/drivers/platform/x86/intel/int33fe/intel_cht_int33fe_microb.c similarity index 100% rename from drivers/platform/x86/intel_cht_int33fe_microb.c rename to drivers/platform/x86/intel/int33fe/intel_cht_int33fe_microb.c diff --git a/drivers/platform/x86/intel_cht_int33fe_typec.c b/drivers/platform/x86/intel/int33fe/intel_cht_int33fe_typec.c similarity index 100% rename from drivers/platform/x86/intel_cht_int33fe_typec.c rename to drivers/platform/x86/intel/int33fe/intel_cht_int33fe_typec.c -- 2.30.2