Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/ralink Add some defintions for SYSCTL_CFG0
details: https://anonhg.NetBSD.org/src/rev/36dc7450ecb5
branches: trunk
changeset: 767931:36dc7450ecb5
user: matt <matt%NetBSD.org@localhost>
date: Wed Aug 03 16:27:15 2011 +0000
description:
Add some defintions for SYSCTL_CFG0
diffstat:
sys/arch/mips/ralink/ralink_reg.h | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diffs (26 lines):
diff -r ce7b58e443a7 -r 36dc7450ecb5 sys/arch/mips/ralink/ralink_reg.h
--- a/sys/arch/mips/ralink/ralink_reg.h Wed Aug 03 16:26:53 2011 +0000
+++ b/sys/arch/mips/ralink/ralink_reg.h Wed Aug 03 16:27:15 2011 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index