From patchwork Tue Dec 3 16:36:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 21981 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f71.google.com (mail-qa0-f71.google.com [209.85.216.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 93D86202AE for ; Tue, 3 Dec 2013 16:38:59 +0000 (UTC) Received: by mail-qa0-f71.google.com with SMTP id o15sf14331492qap.6 for ; Tue, 03 Dec 2013 08:38:59 -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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=IGlz6SrwUFA0FKV4MrN0wlp7ulkG8B1wcGh4kkAZ4kY=; b=RxnF394F+wPnRbOanRQpeKySVRMUItnjr5ZGqZLska6nugu3VB8ylgQvtqoWEGbSHR 2nHiSAnPEiSP9FOEOfEASzF6otd6DIQ8aqvXAEpR6IoaH2vVdGkFt3fu1lqCoL/T0nM8 ZtTiuJtz0eKGB6UEt2a4LKNMH88EydE380nw9flx3PH6gNA1QX0WaIwhCYnaz9xkXLUn //wVykWhBslxIfJvRXZDVADvcbrNEkad7ycVtFbNTLN1uLHxj0aesAbXcQUXQ/g7t/fq 34TRDhhquM9bXiCAlGDod0TI/eE3kjWSAF2wD3/kGCMbRr9hO5eF4dWX2dBayEpyUkgn ov5w== X-Gm-Message-State: ALoCoQlNln+sQrcfIljh4boq+TYNkEQGm/4/JLHkMxDkALI6I7GKI1AufRw519h+grE7MNcqT+uw X-Received: by 10.58.198.116 with SMTP id jb20mr22701744vec.4.1386088739354; Tue, 03 Dec 2013 08:38:59 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.71.170 with SMTP id w10ls982606qeu.58.gmail; Tue, 03 Dec 2013 08:38:59 -0800 (PST) X-Received: by 10.221.47.193 with SMTP id ut1mr56506932vcb.8.1386088739238; Tue, 03 Dec 2013 08:38:59 -0800 (PST) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id tl2si4402420vdc.38.2013.12.03.08.38.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Dec 2013 08:38:59 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id if17so9864694vcb.39 for ; Tue, 03 Dec 2013 08:38:59 -0800 (PST) X-Received: by 10.220.122.129 with SMTP id l1mr241839vcr.48.1386088739016; Tue, 03 Dec 2013 08:38:59 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp222471vcz; Tue, 3 Dec 2013 08:38:58 -0800 (PST) X-Received: by 10.66.216.193 with SMTP id os1mr76677101pac.29.1386088738011; Tue, 03 Dec 2013 08:38:58 -0800 (PST) Received: from mail-pd0-f170.google.com (mail-pd0-f170.google.com [209.85.192.170]) by mx.google.com with ESMTPS id sj5si51884988pab.81.2013.12.03.08.38.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Dec 2013 08:38:58 -0800 (PST) Received-SPF: neutral (google.com: 209.85.192.170 is neither permitted nor denied by best guess record for domain of hanjun.guo@linaro.org) client-ip=209.85.192.170; Received: by mail-pd0-f170.google.com with SMTP id g10so20435346pdj.15 for ; Tue, 03 Dec 2013 08:38:57 -0800 (PST) X-Received: by 10.68.66.103 with SMTP id e7mr39082570pbt.120.1386088737511; Tue, 03 Dec 2013 08:38:57 -0800 (PST) Received: from localhost ([61.148.199.138]) by mx.google.com with ESMTPSA id i10sm148872393pat.11.2013.12.03.08.38.49 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 03 Dec 2013 08:38:57 -0800 (PST) From: Hanjun Guo To: "Rafael J. Wysocki" , Catalin Marinas , Will Deacon , Russell King - ARM Linux , Daniel Lezcano Cc: linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Grant Likely , Matthew Garrett , Olof Johansson , Linus Walleij , Bjorn Helgaas , Rob Herring , Mark Rutland , Jon Masters , patches@linaro.org, linux-kernel@vger.kernel.org, linaro-kernel@lists.linaro.org, linaro-acpi@lists.linaro.org, Hanjun Guo , Graeme Gregory , Al Stone Subject: [RFC part1 PATCH 7/7] ARM64 / ACPI: Enable ARM64 in Kconfig Date: Wed, 4 Dec 2013 00:36:51 +0800 Message-Id: <1386088611-2801-8-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1386088611-2801-1-git-send-email-hanjun.guo@linaro.org> References: <1386088611-2801-1-git-send-email-hanjun.guo@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: hanjun.guo@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add Kconfigs to build ACPI on ARM64, and make ACPI runable on ARM64. acpi_idle driver is x86/IA64 dependent now, so make CONFIG_ACPI_PROCESSOR depends on X86 || IA64, and implement it on ARM in the furture. In order to make arm-core.c can both run on ARM and ARM64, introduce CONFIG_ACPI_ARM to support it. Signed-off-by: Graeme Gregory Signed-off-by: Al Stone Signed-off-by: Hanjun Guo --- arch/arm64/Kconfig | 2 ++ drivers/acpi/Kconfig | 12 +++++++++--- drivers/acpi/plat/Makefile | 2 +- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 88c8b6c1..a37795f 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -280,6 +280,8 @@ source "net/Kconfig" source "drivers/Kconfig" +source "drivers/acpi/Kconfig" + source "fs/Kconfig" source "arch/arm64/kvm/Kconfig" diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig index 53f0f16..f43485e 100644 --- a/drivers/acpi/Kconfig +++ b/drivers/acpi/Kconfig @@ -2,13 +2,17 @@ # ACPI Configuration # +config ACPI_ARM + bool + select ACPI_REDUCED_HARDWARE + 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 select PNP - default y + select ACPI_ARM if (ARM || ARM64) + default y if !(ARM || ARM64) help Advanced Configuration and Power Interface (ACPI) support for Linux requires an ACPI-compliant platform (hardware/firmware), @@ -149,6 +153,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 @@ -250,6 +255,7 @@ config ACPI_DEBUG config ACPI_PCI_SLOT bool "PCI slot detection driver" depends on SYSFS + depends on PCI default n help This driver creates entries in /sys/bus/pci/slots/ for all PCI diff --git a/drivers/acpi/plat/Makefile b/drivers/acpi/plat/Makefile index 46bc65e..3a61176 100644 --- a/drivers/acpi/plat/Makefile +++ b/drivers/acpi/plat/Makefile @@ -1 +1 @@ -obj-$(CONFIG_ARM64) += arm-core.o +obj-$(CONFIG_ACPI_ARM) += arm-core.o