From patchwork Sat Jan 23 16:32:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antoine Tenart X-Patchwork-Id: 572147 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id CF631140A98 for ; Sun, 24 Jan 2016 03:32:14 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753714AbcAWQcN (ORCPT ); Sat, 23 Jan 2016 11:32:13 -0500 Received: from down.free-electrons.com ([37.187.137.238]:34699 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753554AbcAWQcM (ORCPT ); Sat, 23 Jan 2016 11:32:12 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id 62A002CF; Sat, 23 Jan 2016 17:32:10 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (21.107.128.77.rev.sfr.net [77.128.107.21]) by mail.free-electrons.com (Postfix) with ESMTPSA id 16EE32A4; Sat, 23 Jan 2016 17:32:10 +0100 (CET) From: Antoine Tenart To: ptyser@xes-inc.com Cc: Antoine Tenart , lee.jones@linaro.org, linus.walleij@linaro.org, gnurou@gmail.com, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] gpio: gpio-ich: add support for Intel Baytrail Date: Sat, 23 Jan 2016 17:32:07 +0100 Message-Id: <1453566729-30220-2-git-send-email-antoine.tenart@free-electrons.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1453566729-30220-1-git-send-email-antoine.tenart@free-electrons.com> References: <1453566729-30220-1-git-send-email-antoine.tenart@free-electrons.com> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org This patch adds support for the Braytrail series, with the hardware blink capability. Signed-off-by: Antoine Tenart Acked-by: Lee Jones --- drivers/gpio/gpio-ich.c | 12 ++++++++++++ include/linux/mfd/lpc_ich.h | 1 + 2 files changed, 13 insertions(+) diff --git a/drivers/gpio/gpio-ich.c b/drivers/gpio/gpio-ich.c index 4ba7ed502131..6f5fcae32855 100644 --- a/drivers/gpio/gpio-ich.c +++ b/drivers/gpio/gpio-ich.c @@ -384,6 +384,15 @@ static struct ichx_desc avoton_desc = { .use_outlvl_cache = true, }; +/* Baytrail */ +static struct ichx_desc baytrail_desc = { + .ngpio = 96, + .regs = ichx_regs, + .reglen = ichx_reglen, + .have_blink = true, + .use_outlvl_cache = true, +}; + static int ichx_gpio_request_regions(struct resource *res_base, const char *name, u8 use_gpio) { @@ -461,6 +470,9 @@ static int ichx_gpio_probe(struct platform_device *pdev) case AVOTON_GPIO: ichx_priv.desc = &avoton_desc; break; + case ICH_BAYTRAIL_GPIO: + ichx_priv.desc = &baytrail_desc; + break; default: return -ENODEV; } diff --git a/include/linux/mfd/lpc_ich.h b/include/linux/mfd/lpc_ich.h index 2b300b44f994..659a1cd875d8 100644 --- a/include/linux/mfd/lpc_ich.h +++ b/include/linux/mfd/lpc_ich.h @@ -34,6 +34,7 @@ enum { ICH_V10CORP_GPIO, ICH_V10CONS_GPIO, AVOTON_GPIO, + ICH_BAYTRAIL_GPIO, }; struct lpc_ich_info {