patch-2.4.25 linux-2.4.25/arch/mips/momentum/ocelot_c/ocelot_c_fpga.h

Next file: linux-2.4.25/arch/mips/momentum/ocelot_c/prom.c
Previous file: linux-2.4.25/arch/mips/momentum/jaguar_atx/setup.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/arch/mips/momentum/ocelot_c/ocelot_c_fpga.h linux-2.4.25/arch/mips/momentum/ocelot_c/ocelot_c_fpga.h
@@ -22,11 +22,19 @@
  *  You should have received a copy of the  GNU General Public License along
  *  with this program; if not, write  to the Free Software Foundation, Inc.,
  *  675 Mass Ave, Cambridge, MA 02139, USA.
+ *
+ *  Louis Hamilton, Red Hat, Inc.
+ *    hamilton@redhat.com  [MIPS64 modifications]
  */
+
 #ifndef __OCELOT_C_FPGA_H__
 #define __OCELOT_C_FPGA_H__
 
-#define OCELOT_C_CS0_ADDR (0xfc000000)
+#ifdef CONFIG_MIPS64
+#define OCELOT_C_CS0_ADDR       (0xfffffffffc000000)
+#else
+#define OCELOT_C_CS0_ADDR               (0xfc000000)
+#endif
 
 #define OCELOT_C_REG_BOARDREV		0x0
 #define OCELOT_C_REG_FPGA_REV		0x1

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)