Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp314443ybk; Sat, 9 May 2020 03:46:23 -0700 (PDT) X-Google-Smtp-Source: APiQypJsO03ykvfvmDHcN34Y9rK0+SZDajCuOMdMS+EsANvAkh6CqoPVMMk7RYe7PI95p7j7FIeq X-Received: by 2002:a17:906:b250:: with SMTP id ce16mr5301667ejb.216.1589021183341; Sat, 09 May 2020 03:46:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589021183; cv=none; d=google.com; s=arc-20160816; b=DsVTFiDPcaEXWYSdZGTrUC8bAhlOEYG1VZ4SchAnqj9h58Urk7gupoobYkBsENfEP2 UTKZGnbdYvxnlGzwOSsls1Vn3IwBGvm6H3xGhcq8hzkAkEAn944nTng/70aAObgssJ/u 1QEUnp0mllF7CB93IyJDH/tTr7ph2WzWKNQbc3UxVnzCcf4vuDr7zF2Db9PD6zUhgxk7 5hWxgNE7cZnxtj2h8BYDuG5JC6NGWYFbwM3xIWhgCcFlBTQajpOXdSZ0hvMKJDYJtwnK T7nbTRvyumqA/MRpKw+rm9gwy4Og//oBikDhviS5lK3Vi2rjjwHm6FJXJTlEj7WbTzhV mKwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=9s4WWv0VWiJPaWdm8vwp0Ncu/qquZEX3CNgAMW3NHCM=; b=yj4pMWcjPobogd7oJLFaH9fXO+Z4m+sWSixoNh7pA5ZbgKAB41UqgP6ELJEY50Oock XxcNPNDuxx7jQG51sVZwqG5nWH46gT9+/JbJuoOiIQzxPbSAfG/OZHT9ZiAi4/LJXulN VCWOWn2gsq27vWLbiW7EQJrHb36sKgbbz/XlXVd4LBk9A7AxLgzt5i84Toi8RSBdEOQW CA1t5Jq1Q6av/9bD85cv17wwb7BLAwVRFZSdmGHUD7aIAtSaNGqnpd28odOFxOA+TlXa zWwMJu6Xzjb+Iw9+a2wwqspFx5ZcdToXgmdcHn21oaUYhIDYBh+9dFy0K4EsqMWe8J/7 Zpzg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l27si2671098edj.537.2020.05.09.03.46.00; Sat, 09 May 2020 03:46:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728243AbgEIKoj (ORCPT + 99 others); Sat, 9 May 2020 06:44:39 -0400 Received: from inva021.nxp.com ([92.121.34.21]:46208 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727986AbgEIKoi (ORCPT ); Sat, 9 May 2020 06:44:38 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 081E4200324; Sat, 9 May 2020 12:44:37 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id E5ED2200102; Sat, 9 May 2020 12:44:33 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id B0EC840285; Sat, 9 May 2020 18:44:29 +0800 (SGT) From: Hui Song To: u-boot@linux.nxdi.nxp.com, jiafei.pan@nxp.com Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, "hui.song" Subject: [PATCH v1 2/3] armv8: gpio: add gpio feature Date: Sat, 9 May 2020 18:39:55 +0800 Message-Id: <20200509103956.26038-2-hui.song_1@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200509103956.26038-1-hui.song_1@nxp.com> References: <20200509103956.26038-1-hui.song_1@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "hui.song" add one struct mpc8xxx_gpio_plat to enable gpio feature. Signed-off-by: hui.song --- .../include/asm/arch-fsl-layerscape/gpio.h | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 arch/arm/include/asm/arch-fsl-layerscape/gpio.h diff --git a/arch/arm/include/asm/arch-fsl-layerscape/gpio.h b/arch/arm/include/asm/arch-fsl-layerscape/gpio.h new file mode 100644 index 0000000000..d8dd750a72 --- /dev/null +++ b/arch/arm/include/asm/arch-fsl-layerscape/gpio.h @@ -0,0 +1,22 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright 2014 Freescale Semiconductor, Inc. + */ + +/* + * Dummy header file to enable CONFIG_OF_CONTROL. + * If CONFIG_OF_CONTROL is enabled, lib/fdtdec.c is compiled. + * It includes via , so those SoCs that enable + * OF_CONTROL must have arch/gpio.h. + */ + +#ifndef __ASM_ARCH_MX85XX_GPIO_H +#define __ASM_ARCH_MX85XX_GPIO_H + +struct mpc8xxx_gpio_plat { + ulong addr; + unsigned long size; + uint ngpios; +}; + +#endif -- 2.17.1