From owner-svn-src-all@FreeBSD.ORG Thu May 2 00:40:46 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id F3C37237; Thu, 2 May 2013 00:40:45 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id E61231CA8; Thu, 2 May 2013 00:40:45 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r420ejOT088910; Thu, 2 May 2013 00:40:45 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r420ejb7088909; Thu, 2 May 2013 00:40:45 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201305020040.r420ejb7088909@svn.freebsd.org> From: Adrian Chadd Date: Thu, 2 May 2013 00:40:45 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r250165 - head/sys/mips/atheros X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 May 2013 00:40:46 -0000 Author: adrian Date: Thu May 2 00:40:45 2013 New Revision: 250165 URL: http://svnweb.freebsd.org/changeset/base/250165 Log: Add the AR933x SoC GPIO pin count limitation. Modified: head/sys/mips/atheros/ar71xx_gpio.c Modified: head/sys/mips/atheros/ar71xx_gpio.c ============================================================================== --- head/sys/mips/atheros/ar71xx_gpio.c Wed May 1 23:58:39 2013 (r250164) +++ head/sys/mips/atheros/ar71xx_gpio.c Thu May 2 00:40:45 2013 (r250165) @@ -49,6 +49,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include "gpio_if.h" @@ -136,6 +137,10 @@ ar71xx_gpio_pin_max(device_t dev, int *m case AR71XX_SOC_AR7242: *maxpin = AR724X_GPIO_PINS - 1; break; + case AR71XX_SOC_AR9330: + case AR71XX_SOC_AR9331: + *maxpin = AR933X_GPIO_COUNT - 1; + break; default: *maxpin = AR71XX_GPIO_PINS - 1; }