From owner-svn-src-head@FreeBSD.ORG Wed Jan 22 08:02:08 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6A3D5E7D; Wed, 22 Jan 2014 08:02:08 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3CD601AFA; Wed, 22 Jan 2014 08:02:08 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id s0M828iB026876; Wed, 22 Jan 2014 08:02:08 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id s0M828gM026875; Wed, 22 Jan 2014 08:02:08 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201401220802.s0M828gM026875@svn.freebsd.org> From: Adrian Chadd Date: Wed, 22 Jan 2014 08:02:08 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r261006 - 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-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jan 2014 08:02:08 -0000 Author: adrian Date: Wed Jan 22 08:02:07 2014 New Revision: 261006 URL: http://svnweb.freebsd.org/changeset/base/261006 Log: Use the correct bitshift operators for the GPIO definitions. Submitted by: Daan Vreeken MFC after: 1 week Modified: head/sys/mips/atheros/ar724xreg.h Modified: head/sys/mips/atheros/ar724xreg.h ============================================================================== --- head/sys/mips/atheros/ar724xreg.h Wed Jan 22 07:48:39 2014 (r261005) +++ head/sys/mips/atheros/ar724xreg.h Wed Jan 22 08:02:07 2014 (r261006) @@ -87,22 +87,22 @@ #define AR724X_PCI_INTR_MASK 0x180f0050 #define AR724X_PCI_INTR_DEV0 (1 << 14) -#define AR724X_GPIO_FUNC_GE0_MII_CLK_EN (1 >> 19) -#define AR724X_GPIO_FUNC_SPI_EN (1 >> 18) -#define AR724X_GPIO_FUNC_SPI_CS_EN2 (1 >> 14) -#define AR724X_GPIO_FUNC_SPI_CS_EN1 (1 >> 13) -#define AR724X_GPIO_FUNC_CLK_OBS5_EN (1 >> 12) -#define AR724X_GPIO_FUNC_CLK_OBS4_EN (1 >> 11) -#define AR724X_GPIO_FUNC_CLK_OBS3_EN (1 >> 10) -#define AR724X_GPIO_FUNC_CLK_OBS2_EN (1 >> 9) -#define AR724X_GPIO_FUNC_CLK_OBS1_EN (1 >> 8) -#define AR724X_GPIO_FUNC_ETH_SWITCH_LED4_EN (1 >> 7) -#define AR724X_GPIO_FUNC_ETH_SWITCH_LED3_EN (1 >> 6) -#define AR724X_GPIO_FUNC_ETH_SWITCH_LED2_EN (1 >> 5) -#define AR724X_GPIO_FUNC_ETH_SWITCH_LED1_EN (1 >> 4) -#define AR724X_GPIO_FUNC_ETH_SWITCH_LED0_EN (1 >> 3) -#define AR724X_GPIO_FUNC_UART_RTS_CTS_EN (1 >> 2) -#define AR724X_GPIO_FUNC_UART_EN (1 >> 1) -#define AR724X_GPIO_FUNC_JTAG_DISABLE (1 >> 0) +#define AR724X_GPIO_FUNC_GE0_MII_CLK_EN (1 << 19) +#define AR724X_GPIO_FUNC_SPI_EN (1 << 18) +#define AR724X_GPIO_FUNC_SPI_CS_EN2 (1 << 14) +#define AR724X_GPIO_FUNC_SPI_CS_EN1 (1 << 13) +#define AR724X_GPIO_FUNC_CLK_OBS5_EN (1 << 12) +#define AR724X_GPIO_FUNC_CLK_OBS4_EN (1 << 11) +#define AR724X_GPIO_FUNC_CLK_OBS3_EN (1 << 10) +#define AR724X_GPIO_FUNC_CLK_OBS2_EN (1 << 9) +#define AR724X_GPIO_FUNC_CLK_OBS1_EN (1 << 8) +#define AR724X_GPIO_FUNC_ETH_SWITCH_LED4_EN (1 << 7) +#define AR724X_GPIO_FUNC_ETH_SWITCH_LED3_EN (1 << 6) +#define AR724X_GPIO_FUNC_ETH_SWITCH_LED2_EN (1 << 5) +#define AR724X_GPIO_FUNC_ETH_SWITCH_LED1_EN (1 << 4) +#define AR724X_GPIO_FUNC_ETH_SWITCH_LED0_EN (1 << 3) +#define AR724X_GPIO_FUNC_UART_RTS_CTS_EN (1 << 2) +#define AR724X_GPIO_FUNC_UART_EN (1 << 1) +#define AR724X_GPIO_FUNC_JTAG_DISABLE (1 << 0) #endif