From patchwork Thu Apr 23 18:07:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Feng Kan X-Patchwork-Id: 6264501 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id ECB71BF4A6 for ; Thu, 23 Apr 2015 18:10:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1FF752028D for ; Thu, 23 Apr 2015 18:10:41 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1B2292015A for ; Thu, 23 Apr 2015 18:10:40 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YlLY3-00030G-SU; Thu, 23 Apr 2015 18:08:27 +0000 Received: from exprod5og123.obsmtp.com ([64.18.0.198] helo=mail-pa0-f47.google.com) by bombadil.infradead.org with smtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YlLXE-0002ft-38 for linux-arm-kernel@lists.infradead.org; Thu, 23 Apr 2015 18:07:37 +0000 Received: from mail-pa0-f47.google.com ([209.85.220.47]) (using TLSv1) by exprod5ob123.postini.com ([64.18.4.12]) with SMTP ID DSNKVTk00cPpcvATxjqZ5a0f3cgYb7hFG9r8@postini.com; Thu, 23 Apr 2015 11:07:36 PDT Received: by pabsx10 with SMTP id sx10so24475144pab.3 for ; Thu, 23 Apr 2015 11:07:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=TjSLARs6QP2XiO8A5uw/q4zblANQeqlCbFznE7jRJsk=; b=bNQH8qiuheF+HtGW8IpYZOwVsWNlHe3ahOoPdtJ0RpXiBgHOiPWeMPSLsFQeror/pn i/TgTUZMHoSf1CQu/03IJTyU+rS3uJ/VSqle1XpSASdUyX87wDWwofsWrY7CB6N1E9/t 78CgCjJDcvsCVS9lkIA23w3qQKIDDmHZSK8eBGivkongr+0NDUfa19nTk5N1rkTXxlrA c2M5aLFoWs3S+VI5lK4kAihtMm1dzJrgdYBKtg0iNinnnngnKuJLThVbvkY/x97RkzYv a+X3jiFLHKyUZD/dCqnriop8r9gz5h64ZPWFMbOOvc7Efux42Hbw4YvIkBD0PROo0RkK /i4w== X-Gm-Message-State: ALoCoQkO9ykjvNEWXwrVP0xWhdddzl6khWFuP/QN9zdBpH8AAQx/G0AVAvriYqyDKs/v6UDQ9VWHlzhT185Ejb80V+f8zna4/KJHtmKp65TEkCXe9dOXHmTeNY9E1Jj6ga+yIHW+whkyDDXrOfhhbcSoAoSUFRS/LAjZsCYvL0xoSrL61wvM7tw= X-Received: by 10.68.175.66 with SMTP id by2mr7350634pbc.141.1429812432773; Thu, 23 Apr 2015 11:07:12 -0700 (PDT) X-Received: by 10.68.175.66 with SMTP id by2mr7350624pbc.141.1429812432697; Thu, 23 Apr 2015 11:07:12 -0700 (PDT) Received: from fkan-lpt.amcc.com (67-207-112-226.static.wiline.com. [67.207.112.226]) by mx.google.com with ESMTPSA id o3sm1184483pds.1.2015.04.23.11.07.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 23 Apr 2015 11:07:12 -0700 (PDT) From: Feng Kan To: patches@apm.com, devicetree@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org Subject: [PATCH V3 2/4] i2c: busses: xgene: add acpi support for i2c xgene SLIMpro driver Date: Thu, 23 Apr 2015 11:07:08 -0700 Message-Id: <1429812430-31631-3-git-send-email-fkan@apm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1429812430-31631-1-git-send-email-fkan@apm.com> References: <1429812430-31631-1-git-send-email-fkan@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150423_110736_204615_F9BBBD4D X-CRM114-Status: GOOD ( 10.75 ) X-Spam-Score: -2.3 (--) Cc: Feng Kan X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This adds support for ACPI for the APM X-Gene I2C SLIMpro proxy driver. Signed-off-by: Feng Kan --- drivers/i2c/busses/i2c-xgene-slimpro.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-xgene-slimpro.c b/drivers/i2c/busses/i2c-xgene-slimpro.c index afe4cf2..0035760 100644 --- a/drivers/i2c/busses/i2c-xgene-slimpro.c +++ b/drivers/i2c/busses/i2c-xgene-slimpro.c @@ -22,6 +22,7 @@ * using the APM X-Gene SLIMpro mailbox driver. * */ +#include #include #include #include @@ -442,12 +443,21 @@ static const struct of_device_id xgene_slimpro_i2c_id[] = { }; MODULE_DEVICE_TABLE(of, xgene_slimpro_i2c_dt_ids); +#ifdef CONFIG_ACPI +static const struct acpi_device_id xgene_slimpro_i2c_acpi_ids[] = { + {"PRP0001", 0}, + {} +}; +MODULE_DEVICE_TABLE(acpi, slimpro_acpi_ids); +#endif + static struct platform_driver xgene_slimpro_i2c_driver = { .probe = xgene_slimpro_i2c_probe, .remove = xgene_slimpro_i2c_remove, .driver = { .name = "xgene-slimpro-i2c", - .of_match_table = of_match_ptr(xgene_slimpro_i2c_id) + .of_match_table = of_match_ptr(xgene_slimpro_i2c_id), + .acpi_match_table = ACPI_PTR(xgene_slimpro_i2c_acpi_ids) }, };