From owner-svn-src-head@FreeBSD.ORG Thu Mar 28 19:30:57 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id ABB88A67; Thu, 28 Mar 2013 19:30:57 +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 869FDE71; Thu, 28 Mar 2013 19:30:57 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r2SJUvd3071241; Thu, 28 Mar 2013 19:30:57 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r2SJUvZu071051; Thu, 28 Mar 2013 19:30:57 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201303281930.r2SJUvZu071051@svn.freebsd.org> From: Adrian Chadd Date: Thu, 28 Mar 2013 19:30:57 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r248844 - 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.14 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: Thu, 28 Mar 2013 19:30:57 -0000 Author: adrian Date: Thu Mar 28 19:30:56 2013 New Revision: 248844 URL: http://svnweb.freebsd.org/changeset/base/248844 Log: Tie in the AR933x support into -HEAD. Modified: head/sys/mips/atheros/ar71xx_setup.c head/sys/mips/atheros/files.ar71xx Modified: head/sys/mips/atheros/ar71xx_setup.c ============================================================================== --- head/sys/mips/atheros/ar71xx_setup.c Thu Mar 28 19:27:06 2013 (r248843) +++ head/sys/mips/atheros/ar71xx_setup.c Thu Mar 28 19:30:56 2013 (r248844) @@ -52,6 +52,8 @@ __FBSDID("$FreeBSD$"); #include #include +#include + #include #include @@ -59,8 +61,7 @@ __FBSDID("$FreeBSD$"); #include #include #include - -#include +#include #define AR71XX_SYS_TYPE_LEN 128 @@ -142,7 +143,18 @@ ar71xx_detect_sys_type(void) break; } break; - + case REV_ID_MAJOR_AR9330: + minor = 0; + rev = (id & AR933X_REV_ID_REVISION_MASK); + chip = "9330"; + ar71xx_cpu_ops = &ar933x_chip_def; + break; + case REV_ID_MAJOR_AR9331: + minor = 1; + rev = (id & AR933X_REV_ID_REVISION_MASK); + chip = "9331"; + ar71xx_cpu_ops = &ar933x_chip_def; + break; default: panic("ar71xx: unknown chip id:0x%08x\n", id); Modified: head/sys/mips/atheros/files.ar71xx ============================================================================== --- head/sys/mips/atheros/files.ar71xx Thu Mar 28 19:27:06 2013 (r248843) +++ head/sys/mips/atheros/files.ar71xx Thu Mar 28 19:30:56 2013 (r248844) @@ -14,6 +14,9 @@ mips/atheros/ar71xx_wdog.c optional ar71 mips/atheros/if_arge.c optional arge mips/atheros/uart_bus_ar71xx.c optional uart_ar71xx mips/atheros/uart_cpu_ar71xx.c optional uart_ar71xx +mips/atheros/uart_bus_ar933x.c optional uart_ar933x +mips/atheros/uart_cpu_ar933x.c optional uart_ar933x +mips/atheros/uart_dev_ar933x.c optional uart_ar933x mips/atheros/ar71xx_bus_space_reversed.c standard mips/mips/intr_machdep.c standard mips/mips/tick.c standard @@ -21,6 +24,7 @@ mips/atheros/ar71xx_setup.c standard mips/atheros/ar71xx_chip.c standard mips/atheros/ar724x_chip.c standard mips/atheros/ar91xx_chip.c standard +mips/atheros/ar933x_chip.c standard mips/atheros/ar71xx_fixup.c optional ar71xx_ath_eeprom dev/hwpmc/hwpmc_mips24k.c optional hwpmc_mips24k