Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp673162imu; Fri, 16 Nov 2018 08:28:01 -0800 (PST) X-Google-Smtp-Source: AJdET5evnZBy2797ytlHP4bEeSdfs5eXt9Rpo4lDRMBLqyaIp6MskAvOKvCstgfL0Pg4T2a1Vw9Z X-Received: by 2002:a62:9683:: with SMTP id s3mr4586997pfk.60.1542385681756; Fri, 16 Nov 2018 08:28:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542385681; cv=none; d=google.com; s=arc-20160816; b=aKQYFdivkNBkqVS7hKJaSBR5XHnFVGnhzPkuEObEdQ/ImUys9OzT5nH4iEiD9Owf/O lAm7mJ+v5UZUDIerN9TDpTOI1Njox/5SGfqPqrztdxwqf60jmD8DZ+bBUdKanHVKbhQB U3fP/HNyOe0Mybn2jkIZV65FuIM4qqLpp8wKkavTYRy2OON+KQyHMbNfxMnuce0Cr32T 9IfDsBHXexeEU0ZWUsyIZtfJfMEZ6rvNg1jf7d0tEQ10qk79lMRuCHwvUezG9l9Wajcw BPqRubg337C5mahHCGVt+yxCTLF97Oq1DA+JyDmhRVY9kNGW6awm2Tzs0wMMPHnn+3Ap 4Guw== 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=qWGDe4C3R/BzByb9VEc+HbbHo2ef3Gb75GrzZalENJQ=; b=oI7VDzRxeeniDLuCybp/Nnvd7DueciCZ9vdo1LSGKHHTYtX3Fc1Mu32qPK2Fu2yjGo HsPZG5mHhTcZc4QlywbBhh1gjwrTxvsOxYKXAljHgWEE725mLNQAIC9TKmAVLbH9aexm V5WrKBDBMRrhI20DqD7R7Wqpr/Nbg/oUUthnfLGuQQeKCnrz+ix5tcnjVkQIXK1w/A8R dSyLlKpDFKmtiyihMLkYKavpo6XRcFNX2+/kygzslyy+YovHFCllarjkQG+ATVWMlO6a +hWcY+YbJpfoh7OYmONQA7xVH6rSAwiFmnpx0fOFbA3B2EJR5l60c4eHFLWnA3T4hHqx u2Pw== 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 e31si29017258pge.270.2018.11.16.08.27.46; Fri, 16 Nov 2018 08:28:01 -0800 (PST) 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 S2390186AbeKQCh5 (ORCPT + 99 others); Fri, 16 Nov 2018 21:37:57 -0500 Received: from shell.v3.sk ([90.176.6.54]:57063 "EHLO shell.v3.sk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729123AbeKQCh5 (ORCPT ); Fri, 16 Nov 2018 21:37:57 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id E33B253108; Fri, 16 Nov 2018 17:24:49 +0100 (CET) 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 9HWyDK9inCZ9; Fri, 16 Nov 2018 17:24:32 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id A9BB95318D; Fri, 16 Nov 2018 17:24:21 +0100 (CET) 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 g0oB6lhxw6Zl; Fri, 16 Nov 2018 17:24:17 +0100 (CET) Received: from belphegor.brq.redhat.com (nat-pool-brq-t.redhat.com [213.175.37.10]) by zimbra.v3.sk (Postfix) with ESMTPSA id 9BF4752C54; Fri, 16 Nov 2018 17:24:15 +0100 (CET) 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 v2 05/17] Platform: OLPC: Move OLPC config symbol out of x86 tree Date: Fri, 16 Nov 2018 17:23:51 +0100 Message-Id: <20181116162403.49854-6-lkundrak@v3.sk> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181116162403.49854-1-lkundrak@v3.sk> References: <20181116162403.49854-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 Acked-by: Pavel Machek --- Changes since v1: - Use 'depends on OLPC && X86' idiom (thanks Andy Shevchenko) arch/x86/Kconfig | 11 ----------- drivers/input/mouse/Kconfig | 3 ++- drivers/platform/Kconfig | 2 ++ drivers/platform/olpc/Kconfig | 11 +++++++++++ drivers/staging/olpc_dcon/Kconfig | 3 ++- 5 files changed, 17 insertions(+), 13 deletions(-) create mode 100644 drivers/platform/olpc/Kconfig diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 9d734f3c8234..f98f78e317d4 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -2734,17 +2734,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=3Dy && PM_SLEEP diff --git a/drivers/input/mouse/Kconfig b/drivers/input/mouse/Kconfig index 566a1e3aa504..cf12d0e4fba2 100644 --- a/drivers/input/mouse/Kconfig +++ b/drivers/input/mouse/Kconfig @@ -165,7 +165,8 @@ 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 + depends on OLPC && X86 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 192cc8d0853f..ff540350f50f 100644 --- a/drivers/staging/olpc_dcon/Kconfig +++ b/drivers/staging/olpc_dcon/Kconfig @@ -1,8 +1,9 @@ config FB_OLPC_DCON tristate "One Laptop Per Child Display CONtroller support" - depends on OLPC && FB + depends on FB depends on I2C depends on BACKLIGHT_LCD_SUPPORT + depends on OLPC && X86 depends on (GPIO_CS5535 || GPIO_CS5535=3Dn) select BACKLIGHT_CLASS_DEVICE help --=20 2.19.1