From patchwork Fri May 29 02:14:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gregory Fong X-Patchwork-Id: 477536 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 962D914016A for ; Fri, 29 May 2015 12:15:36 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=XD0HbhjX; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755445AbbE2CPV (ORCPT ); Thu, 28 May 2015 22:15:21 -0400 Received: from mail-pd0-f182.google.com ([209.85.192.182]:34598 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755375AbbE2CPJ (ORCPT ); Thu, 28 May 2015 22:15:09 -0400 Received: by pdbki1 with SMTP id ki1so54960811pdb.1; Thu, 28 May 2015 19:15:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=S79kwFM2Sxbt/V5KOKG6SlRHH+SSN2YVjllko2EpEaE=; b=XD0HbhjXK2Xr43BJfOWwG52KffOe2nnl5Irk5nRmnNRLNuIxTRALeTSp6AnYdngmJw LMQ0acuxlNoFNBN87+llyhPUSXEe8SbbYNwK2FYys7JL5eU9pjCvJwsr3jiAoaMvyXmj EHKTd0KBjs4A5gGQBQCX7IDd9zbEg1RPusiKP6FhfDwp76Vqn8aPfJZtiqbk9FNBQ28A +z0AEPuny/jPTqBGEFCsZxB1A0xcpu0ryeG6gejtArXnemkx3X4yR6zQTYqXfyfasxwE +eiDtEbHioDdNZn5J6Q6cm8mQ5jtOVx8aT+e8+9wAeg5wEKRNn2wm9ma0LPJzxvi/ySR 3kxw== X-Received: by 10.68.136.101 with SMTP id pz5mr10655378pbb.15.1432865708991; Thu, 28 May 2015 19:15:08 -0700 (PDT) Received: from gregory-irv-00.irv.broadcom.com (5520-maca-inet1-outside.broadcom.com. [216.31.211.11]) by mx.google.com with ESMTPSA id ph4sm3722456pdb.43.2015.05.28.19.15.06 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 May 2015 19:15:08 -0700 (PDT) From: Gregory Fong To: linux-gpio@vger.kernel.org Cc: Gregory Fong , Alexandre Courbot , bcm-kernel-feedback-list@broadcom.com, Brian Norris , devicetree@vger.kernel.org, Florian Fainelli , Ian Campbell , Kumar Gala , Linus Walleij , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Mark Rutland , Pawel Moll , Rob Herring , Russell King Subject: [PATCH v2 6/6] ARM: brcmstb: Add default gpio number Date: Thu, 28 May 2015 19:14:10 -0700 Message-Id: <1432865650-4062-7-git-send-email-gregory.0xf0@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1432865650-4062-1-git-send-email-gregory.0xf0@gmail.com> References: <1432865650-4062-1-git-send-email-gregory.0xf0@gmail.com> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Out of the brcmstb SoCs that I know, BCM3390 has the largest numbers of GPIOs, with its - 320 "peripheral" GPIOs - 5*32 = 160 UPG GPIOs (counting unused lines, which do get counted) - 2*32 = 64 UPG AON GPIOs (counting unused lines) Total: 544 I suspect that the upper limit will only need to be higher in the future, so set it to 1024. Signed-off-by: Gregory Fong Acked-by: Linus Walleij --- New in v2. arch/arm/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index e717642..bbe6bf7 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1509,7 +1509,8 @@ config ARM_PSCI # selected platforms. config ARCH_NR_GPIO int - default 1024 if ARCH_SHMOBILE || ARCH_TEGRA || ARCH_ZYNQ + default 1024 if ARCH_BRCMSTB || ARCH_SHMOBILE || ARCH_TEGRA || \ + ARCH_ZYNQ default 512 if ARCH_EXYNOS || ARCH_KEYSTONE || SOC_OMAP5 || \ SOC_DRA7XX || ARCH_S3C24XX || ARCH_S3C64XX || ARCH_S5PV210 default 416 if ARCH_SUNXI