Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Dec 2008 22:45:30 GMT
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 154079 for review
Message-ID:  <200812042245.mB4MjUDK046164@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=154079

Change 154079 by sam@sam_ebb on 2008/12/04 22:44:49

	don't calculate register offsets relative to each other;
	just use the absolute addresses in the manual

Affected files ...

.. //depot/projects/vap/sys/arm/xscale/ixp425/ixp425reg.h#6 edit

Differences ...

==== //depot/projects/vap/sys/arm/xscale/ixp425/ixp425reg.h#6 (text+ko) ====

@@ -662,23 +662,16 @@
 
 /*
  * IXP435/Gateworks Cambria
- *
- * Octal status LED latch is in upper 256K of CS3
- * Optional RS485 Serial port is next lower 256K
- * Optional GPS Serial port is next lower 256K
- * next lower 768K is reserved
- * Compact flash socket 1 is next lower 256K
- * Compact flash socket 0 is next lower 256K
  */
-#define	CAMBRIA_OCTAL_LED_HWBASE (IXP425_EXP_BUS_CS4_HWBASE - 0x40000)
-#define	CAMBRIA_OCTAL_LED_SIZE	0x40000
-#define	CAMBRIA_RS485_HWBASE	(CAMBRIA_OCTAL_LED_HWBASE - 0x40000)
+#define	CAMBRIA_GPS_HWBASE	0x53FC0000UL	/* optional GPS Serial Port */
+#define	CAMBRIA_GPS_SIZE	0x40000
+#define	CAMBRIA_RS485_HWBASE	0x53F80000UL	/* optional RS485 Serial Port */
 #define	CAMBRIA_RS485_SIZE	0x40000
-#define	CAMBRIA_GPS_HWBASE	(CAMBRIA_RS485_HWBASE - 0x40000)
-#define	CAMBRIA_GPS_SIZE	0x40000
-#define	CAMBRIA_CFSEL1_HWBASE	(CAMBRIA_GPS_HWBASE - 4*0x40000)
+#define	CAMBRIA_OCTAL_LED_HWBASE 0x53F40000UL	/* Octal Status LED Latch */
+#define	CAMBRIA_OCTAL_LED_SIZE	0x1000
+#define	CAMBRIA_CFSEL1_HWBASE	0x53E40000UL	/* Compact Flash Socket Sel 0 */
 #define	CAMBRIA_CFSEL1_SIZE	0x40000
-#define	CAMBRIA_CFSEL0_HWBASE	(CAMBRIA_CFSEL1_HWBASE - 0x40000)
+#define	CAMBRIA_CFSEL0_HWBASE	0x53E00000UL	/* Compact Flash Socket Sel 1 */
 #define	CAMBRIA_CFSEL0_SIZE	0x40000
 
 #define IXP435_USB1_HWBASE	0xcd000000UL	/* USB host controller 1 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812042245.mB4MjUDK046164>