Module Name: src
Committed By: matt
Date: Wed Aug 3 16:27:15 UTC 2011
Modified Files:
src/sys/arch/mips/ralink: ralink_reg.h
Log Message:
Add some defintions for SYSCTL_CFG0
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 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.2 src/sys/arch/mips/ralink/ralink_reg.h:1.3
--- src/sys/arch/mips/ralink/ralink_reg.h:1.2 Thu Jul 28 15:38:49 2011
+++ src/sys/arch/mips/ralink/ralink_reg.h Wed Aug 3 16:27:15 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: ralink_reg.h,v 1.2 2011/07/28 15:38:49 matt Exp $ */
+/* $NetBSD: ralink_reg.h,v 1.3 2011/08/03 16:27:15 matt Exp $ */
/*-
* Copyright (c) 2011 CradlePoint Technology, Inc.
* All rights reserved.
@@ -127,6 +127,16 @@
#define RA_SYSCTL_RSTSTAT 0x38
#define RA_SYSCTL_GPIOMODE 0x60
+#define SYSCTL_CFG0_BE __BIT(19)
+#define SYSCTL_CFG0_DRAM_SIZE __BITS(12,14)
+#define SYSCTL_CFG0_DRAM_2MB 0
+#define SYSCTL_CFG0_DRAM_8MB 1
+#define SYSCTL_CFG0_DRAM_16MB 2
+#define SYSCTL_CFG0_DRAM_32MB 3
+#define SYSCTL_CFG0_DRAM_64MB 4
+#define SYSCTL_CFG0_DRAM_128MB 5
+#define SYSCTL_CFG0_DRAM_256MB 6
+
#if defined(RT3883)
/* 3883 doesn't have memo regs, use teststat instead */
#define RA_SYSCTL_MEMO0 0x18