Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/omap Add TI_AM335x EMIF SDRAM_CONFIG definitions
details: https://anonhg.NetBSD.org/src/rev/0a204d4e2447
branches: trunk
changeset: 786495:0a204d4e2447
user: matt <matt%NetBSD.org@localhost>
date: Tue Apr 30 00:17:24 2013 +0000
description:
Add TI_AM335x EMIF SDRAM_CONFIG definitions
diffstat:
sys/arch/arm/omap/omap2_reg.h | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diffs (35 lines):
diff -r 47bbab1bf0ce -r 0a204d4e2447 sys/arch/arm/omap/omap2_reg.h
--- a/sys/arch/arm/omap/omap2_reg.h Tue Apr 30 00:12:35 2013 +0000
+++ b/sys/arch/arm/omap/omap2_reg.h Tue Apr 30 00:17:24 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: omap2_reg.h,v 1.16 2013/01/08 19:03:16 macallan Exp $ */
+/* $NetBSD: omap2_reg.h,v 1.17 2013/04/30 00:17:24 matt Exp $ */
/*
* Copyright (c) 2007 Microsoft
@@ -98,6 +98,9 @@
#define TI_AM335X_L4_FAST_BASE 0x4A000000
#define TI_AM335X_L4_FAST_SIZE 0x01000000 /* 16MB */
+#define TI_AM335X_L4_EMIF_BASE 0x4C000000
+#define TI_AM335X_L4_EMIF_SIZE 0x01000000 /* 16MB */
+
/* TI Sitara DM37xx (OMAP like) */
#define TI_DM37XX_L4_CORE_BASE 0x48000000
@@ -735,5 +738,15 @@
*/
#define OMAP3530_SDMA_BASE 0x48056000
#define OMAP3530_SDMA_SIZE 0x00001000 /* 4KB */
+
+#ifdef TI_AM335X
+#define TI_AM335X_EMIF0_BASE 0x4c000000
+#define TI_AM335X_EMIF0_SIZE 0x00100000
+#define EMIF_SDRAM_CONFIG 8
+#define SDRAM_CONFIG_WIDTH __BITS(15,14)
+#define SDRAM_CONFIG_RSIZE __BITS(9,7)
+#define SDRAM_CONFIG_IBANK __BITS(6,4)
+#define SDRAM_CONFIG_PAGESIZE __BITS(2,0)
+#endif
#endif /* _ARM_OMAP_OMAP2_REG_H_ */
Home |
Main Index |
Thread Index |
Old Index