BOOTLOADER
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
config.h
Go to the documentation of this file.
1 #ifndef __CONFIG_H
2 #define __CONFIG_H
3 
4 #include "define.h"
5 
6 #define SET_SYSCLK_SUPPORT
7 #define RTC_TIMER_SUPPORT
8 #define INTERRUPT_SUPPORT
9 #define HARDWARE_TIMER_SUPPORT
10 #define NOR_FLASH_SUPPORT
11 #define NAND_FLASH_SUPPORT
12 #define IIC_ROM_SUPPORT
13 #define SERIAL_DOWNLOAD_SUPPORT
14 #define XMODEM_DOWNLOAD_SUPPORT
15 
16 #define ETHERNET_SUPPORT
17 #ifdef ETHERNET_SUPPORT
18  #define TFTP_DOWNLOAD_SUPPORT
19 #endif
20 
21 #ifdef NOR_FLASH_SUPPORT
22  #define SST39VF160_SUPPORT
23 #endif
24 
25 #if defined(NOR_FLASH_SUPPORT) || defined(NAND_FLASH_SUPPORT)
26  #define SAVE_ENV_SUPPORT
27 #endif
28 
29 #define TIMER_FREQ 1000
30 
31 #define CMD_SHELL_SUPPORT
32 
33 #define DEFAULT_IP_ADDR ((192U<<24)|(168<<16)|(3<<8)|100)
34 #define DEFAULT_IP_MASK (0xffffff00)
35 #define DEFAULT_IP_GATE ((192U<<24)|(168<<16)|(3<<8)|1)
36 
37 #define SERIAL_PORTS 2
38 #define DEFAULT_SERIAL_PORT 0
39 #define DEFAULT_SERIAL_BAUD 115200
40 
41 
42 #define INTERRUPT_SUPPORT
43 #define USB_DOWNLOAD_SUPPORT
44 #define SAVE_ENV_IN_NAND
45 
46 #define ROM_BASE 0x08000000
47 #define ROM_SIZE SIZE_2M
48 #define DRAM_BASE 0x30000000
49 #define DRAM_SIZE SIZE_64M
50 #define SDRAM_SIZE64M 1
51 
52 #define MMUTT_SIZE SIZE_16K
53 
54 #define ROM_END (ROM_BASE + ROM_SIZE)
55 #define DRAM_END (DRAM_BASE + DRAM_SIZE)
56 #define BIOS_RUN_ADDR (DRAM_END - SIZE_256K)
57 #define MMUTT_STARTADDRESS (DRAM_END-MMUTT_SIZE)
58 #define ISR_STARTADDRESS (MMUTT_STARTADDRESS-0x100)
59 
60 #define BOOT_PARAMS_ADDR (DRAM_BASE+0x100)
61 #define BIOS_SIZE (SIZE_64K)
62 #define BIOS_BASE (ROM_SIZE-BIOS_SIZE)
63 #define BIOS_LOAD (ROM_SIZE-4)
64 #define BIOS_ENV_ADDR (ROM_SIZE-0x200)
65 
66 #define AUDIO_DOWNLOAD_ADDR (DRAM_BASE + 0x8000)
67 #define AUDIO_INITRD_ADDR (DRAM_BASE + (DRAM_SIZE>>1))
68 
69 //#if (SERIAL_PORTS>1)
70 // #define SERIAL_PORTS_SWITCH
71 //#endif
72 
73 #endif