From patchwork Mon Sep 15 14:09:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mika Westerberg X-Patchwork-Id: 389376 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 835B414013A for ; Tue, 16 Sep 2014 00:09:50 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752690AbaIOOJt (ORCPT ); Mon, 15 Sep 2014 10:09:49 -0400 Received: from mga11.intel.com ([192.55.52.93]:32865 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751979AbaIOOJt (ORCPT ); Mon, 15 Sep 2014 10:09:49 -0400 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 15 Sep 2014 07:09:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,528,1406617200"; d="scan'208";a="599766311" Received: from blue.fi.intel.com ([10.237.72.156]) by fmsmga002.fm.intel.com with ESMTP; 15 Sep 2014 07:09:46 -0700 Received: by blue.fi.intel.com (Postfix, from userid 1004) id 622DEE00A3; Mon, 15 Sep 2014 17:09:45 +0300 (EEST) From: Mika Westerberg To: Linus Walleij , Alexandre Courbot Cc: Arnd Bergmann , Alan Cox , Ning Li , Mika Westerberg , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] gpio: Increase ARCH_NR_GPIOs to 512 Date: Mon, 15 Sep 2014 17:09:44 +0300 Message-Id: <1410790185-31101-1-git-send-email-mika.westerberg@linux.intel.com> X-Mailer: git-send-email 2.1.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Some newer Intel SoCs, like Braswell already have more than 256 GPIOs available so the default limit is exceeded. Instead of adding more architecture specific gpio.h files with custom ARCH_NR_GPIOs we increase the gpiolib default limit to be twice the current. Signed-off-by: Mika Westerberg --- Changes to previous version is that now we increase the common limit instead of adding x86 specific gpio.h include/asm-generic/gpio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h index c1d4105e1c1d..383ade1a211b 100644 --- a/include/asm-generic/gpio.h +++ b/include/asm-generic/gpio.h @@ -27,7 +27,7 @@ */ #ifndef ARCH_NR_GPIOS -#define ARCH_NR_GPIOS 256 +#define ARCH_NR_GPIOS 512 #endif /*