From: Stefan E. <se...@us...> - 2003-11-10 20:54:28
|
Update of /cvsroot/blob/blob/include/blob/arch In directory sc8-pr-cvs1:/tmp/cvs-serv14776/include/blob/arch Modified Files: ra_alpha.h Log Message: Remove old LED stuf. Fix defines, memory config. Add proper partition support. Index: ra_alpha.h =================================================================== RCS file: /cvsroot/blob/blob/include/blob/arch/ra_alpha.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ra_alpha.h 5 Nov 2003 10:09:46 -0000 1.1 +++ ra_alpha.h 10 Nov 2003 20:54:25 -0000 1.2 @@ -24,12 +24,14 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifndef BLOB_ARCH_CSIR_IMS_H -#define BLOB_ARCH_CSIR_IMS_H +#ifndef BLOB_ARCH_RA_ALPHA_H +#define BLOB_ARCH_RA_ALPHA_H #define USE_SERIAL1 #define TERMINAL_SPEED baud_115200 +#define LED_GPIO (GPIO_bit(0)) + /* the base address were BLOB is loaded by the first stage loader */ #define BLOB_ABS_BASE_ADDR (0xa0200400) @@ -42,44 +44,60 @@ /* and where do they live in flash */ #define BLOB_FLASH_BASE (0x00000000) -#define BLOB_FLASH_LEN (128 * 1024) -#define PARAM_FLASH_BASE (BLOB_FLASH_BASE + BLOB_FLASH_LEN) -#define PARAM_FLASH_LEN (128 * 1024) -#define KERNEL_FLASH_BASE (PARAM_FLASH_BASE + PARAM_FLASH_LEN) +#define BLOB_FLASH_LEN (256 * 1024) +#define PARAM_FLASH_BASE (0x00040000) +#define PARAM_FLASH_LEN (256 * 1024) +#define CONFIG_FLASH_BASE (0x00040000) +#define CONFIG_FLASH_LEN (256 * 1024) +#define KERNEL_FLASH_BASE (0x00080000) #define KERNEL_FLASH_LEN (1024 * 1024) -#define RAMDISK_FLASH_BASE (KERNEL_FLASH_BASE + KERNEL_FLASH_LEN) -#define RAMDISK_FLASH_LEN (4 * 1024 * 1024) +#define LOAD_RAMDISK 1 /* load ramdisk into ram */ +#define RAMDISK_FLASH_BASE (0x00180000) +#define RAMDISK_FLASH_LEN (1536 * 1024) +#define ROOTFS_FLASH_BASE (0x00300000) +#define ROOTFS_FLASH_LEN (0x00600000) /* 6M */ +#define DATAFS_FLASH_BASE (0x00900000) +#define DATAFS_FLASH_LEN (0x00700000) /* 7M */ /* this needs to be defined if you want parameter block support */ -#define PARAM_START PARAM_FLASH_BASE -#define PARAM_LEN PARAM_FLASH_LEN +// #define PARAM_START PARAM_FLASH_BASE +// #define PARAM_LEN PARAM_FLASH_LEN /* load ramdisk into ram */ #define LOAD_RAMDISK 1 +/* RAM pool for up/downloading */ +#define RAM_START (0xa2000000) +#define RAM_SIZE (16*1024*1024) + /* the size (in kbytes) to which the compressed ramdisk expands */ #define RAMDISK_SIZE (4 * 1024) +#define MDREFR_VALUE 0x0009f018 +#define MDCNFG_VALUE 0x000019c9 +#define MDMRS_VALUE 0x00020002 +/* L=27, M=4, N=1 */ +#define CCCR_VALUE 0x00000161 + #if 0 -#define MSC0_VALUE 0x -#define MSC1_VALUE 0x -#define MSC2_VALUE 0x -#define MECR_VALUE 0x -#define MCMEM0_VALUE 0x -#define MCMEM1_VALUE 0x -#define MCATT0_VALUE 0x -#define MCATT1_VALUE 0x -#define MCIO0_VALUE 0x -#define MCIO1_VALUE 0x +#define MDREFR_VAL 0x00018018 +#define MDCNFG_VAL 0x00001AC9 +#define MDMRS_VAL 0x00000000 +#define MSC0_VAL 0x23F223F2 +#define MSC1_VAL 0x3FF1A441 +#define MSC2_VAL 0x7FF17FF1 +#define MECR_VAL 0x00000000 +#define MCMEM0_VAL 0x00010504 +#define MCMEM1_VAL 0x00010504 +#define MCATT0_VAL 0x00010504 +#define MCATT1_VAL 0x00010504 +#define MCIO0_VAL 0x00004715 +#define MCIO1_VAL 0x00004715 #endif -#define MDREFR_VALUE 0x01018013 -#define MDCNFG_VALUE 0x000019c9 -#define MDMRS_VALUE 0x00020002 /* GPIO configuration */ -/*#define GPIO0_VALUE GPIO_OUT_LO*/ -#define GPIO0_VALUE GPIO_OUT_HI +#define GPIO0_VALUE GPIO_OUT_LO #define GPIO1_VALUE GPIO_OUT_LO #define GPIO2_VALUE GPIO_OUT_LO #define GPIO3_VALUE GPIO_INPUT /* eth_wakeup */ @@ -114,8 +132,8 @@ #define GPIO32_VALUE GPIO_OUT_LO #define GPIO33_VALUE GPIO_OUT_HI /* nCS5 [unused] */ #define GPIO34_VALUE (GPIO_INPUT | GPIO_ALT_FN1) /* FFRXD */ -#define GPIO35_VALUE GPIO_OUT_LO -#define GPIO36_VALUE GPIO_OUT_LO +#define GPIO35_VALUE GPIO_OUT_HI /* Core Voltage */ +#define GPIO36_VALUE GPIO_OUT_HI /* Core Voltage */ #define GPIO37_VALUE GPIO_OUT_LO #define GPIO38_VALUE GPIO_OUT_LO #define GPIO39_VALUE (GPIO_OUT_LO | GPIO_ALT_FN2) /* FFTXD */ @@ -165,4 +183,4 @@ #define GPIO83_VALUE GPIO_OUT_LO #define GPIO84_VALUE GPIO_OUT_LO -#endif /* #ifndef BLOB_ARCH_CSIR_IMS_H */ +#endif /* #ifndef BLOB_ARCH_RA_ALPHA_H */ |