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 RT3050 SYSCTL_CFG0 values.
details: https://anonhg.NetBSD.org/src/rev/52cf2af095eb
branches: trunk
changeset: 773657:52cf2af095eb
user: oki <oki%NetBSD.org@localhost>
date: Sun Feb 12 01:51:52 2012 +0000
description:
add RT3050 SYSCTL_CFG0 values.
diffstat:
sys/arch/mips/ralink/ralink_reg.h | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diffs (36 lines):
diff -r 30b668ec3c10 -r 52cf2af095eb sys/arch/mips/ralink/ralink_reg.h
--- a/sys/arch/mips/ralink/ralink_reg.h Sun Feb 12 01:46:05 2012 +0000
+++ b/sys/arch/mips/ralink/ralink_reg.h Sun Feb 12 01:51:52 2012 +0000
@@ -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 */
Home |
Main Index |
Thread Index |
Old Index