Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1189033imm; Wed, 10 Oct 2018 10:26:01 -0700 (PDT) X-Google-Smtp-Source: ACcGV60Qs1NXz7cdVg8Y5qB0/KGnPIEwlJ+4leyxz/NqggAcWrcQR2dW6cWQ9zUNVjQww3ZtFmdA X-Received: by 2002:a63:f050:: with SMTP id s16-v6mr30569300pgj.403.1539192361030; Wed, 10 Oct 2018 10:26:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539192361; cv=none; d=google.com; s=arc-20160816; b=z/99pik0PgjHz3nDuxgjruh+O+E3Z9DdRpOrU1eY16ZpfxmhFeOLC3LQSu7YsFZ+5p xOaBfHWMAzWL5DckUOxSWzBlp1iHa9FLh9mcMrFGtbDmlQ8kYlfYKvHbK/xfuM5jf7Zb 6EQiPQeikyET/CYtwBEx4GNFsavgnAqCwav4rlnQx0vubIzwPY9l0H+o5L15urLswPLr V3wcE/Js/+P4zQJsTs893VxMtGpxEznJtZcwa2Ud6hsaOPpFtFm6vdYYz+ezdesQ7/dO 3iMa6JjE7422EpadEnRdjXQeE1psHaG+PjiqRE43+toSZO11qWQnyVBfgtWo/N/IafH9 WPrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Yiq7tJipevHuk/NVSsja5/0wHGssgveo178kPOw0m20=; b=LzHlbpvOWupFRbRAGSNlYhBXr0+rZoMwG7AJ7HOzWyWseur1KbX412umE5CKnQsd7k zmH9AdLvwzMkk+cOjAhnADqzftWkMEJemlzxQ85TfLYG6Vsjn75Lm+niuRNz+u/WV25H XV1sqOu2qoHtI71Ufs9EX3Kelhyy7kAjYQdRMsy6fxI2um+Rf2vaSrVpcStdsWzRxxY/ 8/8pHMzRPlRdfL+nbBOig8hvw3J9HpGXMlPkfRdoOXQhTJSJ+dlM2NOUyy4qiWdwhd4W 3x47G9v2Idb/+2uMGcnut36ZHLShJjZ8lrRnxCTFtVtAR1nD3qlANgQPX9hBArrkbW3d 9bWg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f1-v6si26748070pln.317.2018.10.10.10.25.45; Wed, 10 Oct 2018 10:26:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727365AbeJKAqp (ORCPT + 99 others); Wed, 10 Oct 2018 20:46:45 -0400 Received: from shell.v3.sk ([90.176.6.54]:54552 "EHLO shell.v3.sk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726911AbeJKAqp (ORCPT ); Wed, 10 Oct 2018 20:46:45 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id A4042BCFBD; Wed, 10 Oct 2018 19:23:34 +0200 (CEST) Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id i_nqN1EWszN0; Wed, 10 Oct 2018 19:23:19 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id 473E9BCFBC; Wed, 10 Oct 2018 19:23:10 +0200 (CEST) X-Virus-Scanned: amavisd-new at zimbra.v3.sk Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Q0V_-29Cc2dm; Wed, 10 Oct 2018 19:23:05 +0200 (CEST) Received: from belphegor.lan (ip-89-102-31-34.net.upcbroadband.cz [89.102.31.34]) by zimbra.v3.sk (Postfix) with ESMTPSA id A4A44BCFAA; Wed, 10 Oct 2018 19:23:04 +0200 (CEST) From: Lubomir Rintel To: Mark Brown , Geert Uytterhoeven , Darren Hart , Andy Shevchenko Cc: Greg Kroah-Hartman , James Cameron , Sebastian Reichel , Rob Herring , Mark Rutland , Eric Miao , Haojian Zhuang , Daniel Mack , Robert Jarzmik , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, platform-driver-x86@vger.kernel.org, devel@driverdev.osuosl.org, linux-pm@vger.kernel.org, Lubomir Rintel Subject: [PATCH 05/15] Platform: OLPC: Move OLPC config symbol out of x86 tree Date: Wed, 10 Oct 2018 19:22:50 +0200 Message-Id: <20181010172300.317643-6-lkundrak@v3.sk> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181010172300.317643-1-lkundrak@v3.sk> References: <20181010172300.317643-1-lkundrak@v3.sk> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are ARM OLPC machines that use mostly the same drivers, including EC infrastructure, DCON and Battery. While at that, fix Kconfig to allow building this as a module. Signed-off-by: Lubomir Rintel --- arch/x86/Kconfig | 11 ----------- drivers/input/mouse/Kconfig | 2 +- drivers/platform/Kconfig | 2 ++ drivers/platform/olpc/Kconfig | 11 +++++++++++ drivers/staging/olpc_dcon/Kconfig | 2 +- 5 files changed, 15 insertions(+), 13 deletions(-) create mode 100644 drivers/platform/olpc/Kconfig diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 1a0be022f91d..be6af341a718 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -2729,17 +2729,6 @@ config SCx200HR_TIMER processor goes idle (as is done by the scheduler). The other workaround is idle=3Dpoll boot option. =20 -config OLPC - bool "One Laptop Per Child support" - depends on !X86_PAE - select GPIOLIB - select OF - select OF_PROMTREE - select IRQ_DOMAIN - ---help--- - Add support for detecting the unique features of the OLPC - XO hardware. - config OLPC_XO1_PM bool "OLPC XO-1 Power Management" depends on OLPC && MFD_CS5535 && PM_SLEEP diff --git a/drivers/input/mouse/Kconfig b/drivers/input/mouse/Kconfig index 566a1e3aa504..58034892a4df 100644 --- a/drivers/input/mouse/Kconfig +++ b/drivers/input/mouse/Kconfig @@ -165,7 +165,7 @@ config MOUSE_PS2_TOUCHKIT =20 config MOUSE_PS2_OLPC bool "OLPC PS/2 mouse protocol extension" - depends on MOUSE_PS2 && OLPC + depends on MOUSE_PS2 && X86 && OLPC help Say Y here if you have an OLPC XO-1 laptop (with built-in PS/2 touchpad/tablet device). The manufacturer calls the diff --git a/drivers/platform/Kconfig b/drivers/platform/Kconfig index d4c2e424a700..4313d73d3618 100644 --- a/drivers/platform/Kconfig +++ b/drivers/platform/Kconfig @@ -10,3 +10,5 @@ source "drivers/platform/goldfish/Kconfig" source "drivers/platform/chrome/Kconfig" =20 source "drivers/platform/mellanox/Kconfig" + +source "drivers/platform/olpc/Kconfig" diff --git a/drivers/platform/olpc/Kconfig b/drivers/platform/olpc/Kconfi= g new file mode 100644 index 000000000000..7b736c9e67ac --- /dev/null +++ b/drivers/platform/olpc/Kconfig @@ -0,0 +1,11 @@ +config OLPC + tristate "One Laptop Per Child support" + depends on X86 || ARM || COMPILE_TEST + depends on !X86_PAE + select GPIOLIB + select OF + select OF_PROMTREE if X86 + select IRQ_DOMAIN + help + Add support for detecting the unique features of the OLPC + XO hardware. diff --git a/drivers/staging/olpc_dcon/Kconfig b/drivers/staging/olpc_dco= n/Kconfig index c91a56f77bcb..07f9f1de8667 100644 --- a/drivers/staging/olpc_dcon/Kconfig +++ b/drivers/staging/olpc_dcon/Kconfig @@ -1,6 +1,6 @@ config FB_OLPC_DCON tristate "One Laptop Per Child Display CONtroller support" - depends on OLPC && FB + depends on X86 && OLPC && FB depends on I2C depends on (GPIO_CS5535 || GPIO_CS5535=3Dn) select BACKLIGHT_CLASS_DEVICE --=20 2.19.0