From patchwork Wed Jan 14 15:05:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 43122 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C3936240B9 for ; Wed, 14 Jan 2015 15:09:41 +0000 (UTC) Received: by mail-lb0-f197.google.com with SMTP id w7sf5195127lbi.0 for ; Wed, 14 Jan 2015 07:09:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=C1tLJTWwz4rY3WWz3kV7K2mSQ+Iu043pnsHNfbyVbVk=; b=X/3BefUjEeEjcfcelrnDunYtTZ7mfBL+J6OFafcsK/pwFMeTWbrg6GScQQZ1WJatLF nhrZwMBBYRrNVftT/dqCnHSpXTBsXJOpkgAHCpGLClM/Grpe79fBg8rOXv3StDEVDcv+ AGtGc4hskLtsnWVcbUqcbjL0Wj9DpO07DChladvEEFHDU228f110j/dBH2jjA7HT7khi atst6oJ16PyeSKjmGHhHzD+c28LCmgLre7kYx8qwFW/AXPnJk5OqNvW0jfBIIZWW/2i6 2Va3m9z4AhEs9XvwVBpJgyEYuVktTNkeK1l6COOxCdK97x+SrhHwhG6AEeal9PJRB1Yy /g6w== X-Gm-Message-State: ALoCoQkCJzTcug4V3ZX3ng6OPfCGeyXyevCB29d28Aa8AJi6jSanLlEKktu+78YpFB3v9BcfmMKS X-Received: by 10.152.37.193 with SMTP id a1mr582378lak.3.1421248180740; Wed, 14 Jan 2015 07:09:40 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.43.41 with SMTP id t9ls141387lal.99.gmail; Wed, 14 Jan 2015 07:09:40 -0800 (PST) X-Received: by 10.152.5.67 with SMTP id q3mr4349552laq.73.1421248180532; Wed, 14 Jan 2015 07:09:40 -0800 (PST) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id b1si6138608lab.72.2015.01.14.07.09.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Jan 2015 07:09:40 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by mail-la0-f45.google.com with SMTP id gq15so8614146lab.4 for ; Wed, 14 Jan 2015 07:09:40 -0800 (PST) X-Received: by 10.152.87.12 with SMTP id t12mr4421318laz.31.1421248180457; Wed, 14 Jan 2015 07:09:40 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.9.200 with SMTP id c8csp1726792lbb; Wed, 14 Jan 2015 07:09:39 -0800 (PST) X-Received: by 10.70.103.141 with SMTP id fw13mr6635039pdb.14.1421248174161; Wed, 14 Jan 2015 07:09:34 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pt2si30867387pbb.199.2015.01.14.07.09.33; Wed, 14 Jan 2015 07:09:34 -0800 (PST) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754061AbbANPJY (ORCPT + 28 others); Wed, 14 Jan 2015 10:09:24 -0500 Received: from mail-pa0-f51.google.com ([209.85.220.51]:54335 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753949AbbANPJU (ORCPT ); Wed, 14 Jan 2015 10:09:20 -0500 Received: by mail-pa0-f51.google.com with SMTP id ey11so11004767pad.10 for ; Wed, 14 Jan 2015 07:09:19 -0800 (PST) X-Received: by 10.70.36.111 with SMTP id p15mr6424107pdj.122.1421248159914; Wed, 14 Jan 2015 07:09:19 -0800 (PST) Received: from localhost (119.81.172.112-static.reverse.softlayer.com. [119.81.172.112]) by mx.google.com with ESMTPSA id v8sm19995273pdp.94.2015.01.14.07.09.17 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 14 Jan 2015 07:09:19 -0800 (PST) From: Hanjun Guo To: Catalin Marinas , "Rafael J. Wysocki" , Olof Johansson , Arnd Bergmann , Mark Rutland , Grant Likely , Will Deacon Cc: Lorenzo Pieralisi , Graeme Gregory , Sudeep Holla , Jon Masters , Jason Cooper , Marc Zyngier , Bjorn Helgaas , Mark Brown , Rob Herring , Robert Richter , Randy Dunlap , Charles.Garcia-Tobin@arm.com, phoenix.liyi@huawei.com, Timur Tabi , suravee.suthikulpanit@amd.com, wangyijing@huawei.com, linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linaro-acpi@lists.linaro.org, Al Stone , Hanjun Guo Subject: [PATCH v7 16/17] ARM64 / ACPI: Enable ARM64 in Kconfig Date: Wed, 14 Jan 2015 23:05:04 +0800 Message-Id: <1421247905-3749-17-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1421247905-3749-1-git-send-email-hanjun.guo@linaro.org> References: <1421247905-3749-1-git-send-email-hanjun.guo@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: hanjun.guo@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Graeme Gregory Add Kconfigs to build ACPI on ARM64, and make ACPI available on ARM64. acpi_idle driver is x86/IA64 dependent now, so make CONFIG_ACPI_PROCESSOR depend on X86 || IA64, and implement it on ARM64 in the future. Reviewed-by: Grant Likely Tested-by: Suravee Suthikulpanit Tested-by: Yijing Wang Signed-off-by: Graeme Gregory Signed-off-by: Al Stone Signed-off-by: Hanjun Guo --- arch/arm64/Kconfig | 2 ++ drivers/acpi/Kconfig | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index c19ae5d..915aa16 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -647,6 +647,8 @@ source "drivers/Kconfig" source "drivers/firmware/Kconfig" +source "drivers/acpi/Kconfig" + source "fs/Kconfig" source "arch/arm64/kvm/Kconfig" diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig index 8951cef..3e3bd35 100644 --- a/drivers/acpi/Kconfig +++ b/drivers/acpi/Kconfig @@ -5,8 +5,7 @@ menuconfig ACPI bool "ACPI (Advanced Configuration and Power Interface) Support" depends on !IA64_HP_SIM - depends on IA64 || X86 - depends on PCI + depends on ((IA64 || X86) && PCI) || (ARM64 && EXPERT) select PNP default y help @@ -163,6 +162,7 @@ config ACPI_PROCESSOR tristate "Processor" select THERMAL select CPU_IDLE + depends on X86 || IA64 default y help This driver installs ACPI as the idle handler for Linux and uses @@ -263,7 +263,7 @@ config ACPI_DEBUG config ACPI_PCI_SLOT bool "PCI slot detection driver" - depends on SYSFS + depends on SYSFS && PCI default n help This driver creates entries in /sys/bus/pci/slots/ for all PCI