--- zzzz-none-000/linux-2.4.17/include/asm-mips/ddb5xxx/ddb5477.h 2001-09-09 17:43:01.000000000 +0000 +++ sangam-fb-322/linux-2.4.17/include/asm-mips/ddb5xxx/ddb5477.h 2004-11-24 13:21:30.000000000 +0000 @@ -18,7 +18,6 @@ #define __ASM_DDB5XXX_DDB5477_H #include -#include /* * This contains macros that are specific to DDB5477 or renamed from @@ -28,9 +27,9 @@ /* * renamed PADRs */ -#define DDB_LCS0 DDB_LDCS0 -#define DDB_LCS1 DDB_LDCS1 -#define DDB_LCS2 DDB_LDCS2 +#define DDB_LCS0 DDB_DCS2 +#define DDB_LCS1 DDB_DCS3 +#define DDB_LCS2 DDB_DCS4 #define DDB_VRC5477 DDB_INTCS /* @@ -173,8 +172,10 @@ * corresponding size. For example, if PCI_IO_SIZE is 16MB, then * PCI_IO_BASE must be aligned along 16MB boundary. */ + +/* the actual ram size is detected at run-time */ #define DDB_SDRAM_BASE 0x00000000 -#define DDB_SDRAM_SIZE 0x08000000 /* 128MB, for sure? */ +#define DDB_MAX_SDRAM_SIZE 0x08000000 /* less than 128MB */ #define DDB_PCI0_MEM_BASE 0x08000000 #define DDB_PCI0_MEM_SIZE 0x08000000 /* 128 MB */ @@ -227,7 +228,7 @@ /* * debug routines */ -#if defined(CONFIG_LL_DEBUG) +#if defined(CONFIG_DEBUG) extern void vrc5477_show_pdar_regs(void); extern void vrc5477_show_pci_regs(void); extern void vrc5477_show_bar_regs(void); @@ -235,4 +236,9 @@ extern void vrc5477_show_all_regs(void); #endif +/* + * RAM size + */ +extern int board_ram_size; + #endif /* __ASM_DDB5XXX_DDB5477_H */