/* * This table is used by some tools to extract hardware parameters. * The table should be included in the kernel and the decompressor. * Don't forget to update the tools if you change this table. * * Copyright (C) 2001 Axis Communications AB * * Authors: Mikael Starvik (starvik@axis.com) */ #define PA_SET_VALUE (([31mCONFIG_ETRAX_DEF_R_PORT_PA_DIR[0m << 8) | \ ([31mCONFIG_ETRAX_DEF_R_PORT_PA_DATA[0m)) #define PB_SET_VALUE (([31mCONFIG_ETRAX_DEF_R_PORT_PB_CONFIG[0m << 16) | \ ([31mCONFIG_ETRAX_DEF_R_PORT_PB_DIR[0m << 8) | \ ([31mCONFIG_ETRAX_DEF_R_PORT_PB_DATA[0m)) .ascii "HW_PARAM_MAGIC" ; Magic number .dword 0xc0004000 ; Kernel start address ; Debug port #ifdef [31mCONFIG_ETRAX_DEBUG_PORT0[0m .dword 0 #elif defined([31mCONFIG_ETRAX_DEBUG_PORT1[0m) .dword 1 #elif defined([31mCONFIG_ETRAX_DEBUG_PORT2[0m) .dword 2 #elif defined([31mCONFIG_ETRAX_DEBUG_PORT3[0m) .dword 3 #else .dword 4 ; No debug #endif ; SDRAM or EDO DRAM? #ifdef [31mCONFIG_ETRAX_SDRAM[0m .dword 1 #else .dword 0 #endif ; Register values .dword R_WAITSTATES .dword [31mCONFIG_ETRAX_DEF_R_WAITSTATES[0m .dword R_BUS_CONFIG .dword [31mCONFIG_ETRAX_DEF_R_BUS_CONFIG[0m #ifdef [31mCONFIG_ETRAX_SDRAM[0m .dword R_SDRAM_CONFIG .dword [31mCONFIG_ETRAX_DEF_R_SDRAM_CONFIG[0m .dword R_SDRAM_TIMING .dword [31mCONFIG_ETRAX_DEF_R_SDRAM_TIMING[0m #else .dword R_DRAM_CONFIG .dword [31mCONFIG_ETRAX_DEF_R_DRAM_CONFIG[0m .dword R_DRAM_TIMING .dword [31mCONFIG_ETRAX_DEF_R_DRAM_TIMING[0m #endif .dword R_PORT_PA_SET .dword PA_SET_VALUE .dword R_PORT_PB_SET .dword PB_SET_VALUE .dword 0 ; No more register values |