Module Name:    src
Committed By:   oki
Date:           Sun Feb 12 01:51:53 UTC 2012

Modified Files:
        src/sys/arch/mips/ralink: ralink_reg.h

Log Message:
add RT3050 SYSCTL_CFG0 values.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/mips/ralink/ralink_reg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mips/ralink/ralink_reg.h
diff -u src/sys/arch/mips/ralink/ralink_reg.h:1.3 src/sys/arch/mips/ralink/ralink_reg.h:1.4
--- src/sys/arch/mips/ralink/ralink_reg.h:1.3	Wed Aug  3 16:27:15 2011
+++ src/sys/arch/mips/ralink/ralink_reg.h	Sun Feb 12 01:51:52 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: ralink_reg.h,v 1.3 2011/08/03 16:27:15 matt Exp $	*/
+/*	$NetBSD: ralink_reg.h,v 1.4 2012/02/12 01:51:52 oki Exp $	*/
 /*-
  * Copyright (c) 2011 CradlePoint Technology, Inc.
  * All rights reserved.
@@ -127,6 +127,18 @@
 #define RA_SYSCTL_RSTSTAT      0x38
 #define RA_SYSCTL_GPIOMODE     0x60
 
+#if defined(RT3050) || defined(RT3052)
+#define	SYSCTL_CFG0_INIC_EE_SDRAM 	__BIT(29)
+#define	SYSCTL_CFG0_INIC_8MB_SDRAM 	__BIT(28)
+#define	SYSCTL_CFG0_GE0_MODE		__BITS(24,25)
+#define	SYSCTL_CFG0_BYPASS_PLL		__BIT(21)
+#define	SYSCTL_CFG0_BE			__BIT(20)
+#define	SYSCTL_CFG0_CPU_CLK_SEL 	__BIT(18)
+#define	SYSCTL_CFG0_BOOT_FROM		__BITS(16,17)
+#define	SYSCTL_CFG0_TEST_CODE		__BITS(8,15)
+#define	SYSCTL_CFG0_SRAM_CS_MODE	__BITS(2,3)
+#define	SYSCTL_CFG0_SDRAM_CLK_DRV	__BIT(0)
+#else
 #define	SYSCTL_CFG0_BE		__BIT(19)
 #define SYSCTL_CFG0_DRAM_SIZE	__BITS(12,14) 
 #define	SYSCTL_CFG0_DRAM_2MB	0
@@ -136,6 +148,7 @@
 #define	SYSCTL_CFG0_DRAM_64MB	4
 #define	SYSCTL_CFG0_DRAM_128MB	5
 #define	SYSCTL_CFG0_DRAM_256MB	6
+#endif
 
 #if defined(RT3883)
 /* 3883 doesn't have memo regs, use teststat instead */

Reply via email to