wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 1 | /* |
| 2 | * include/configs/mx1ads.h |
wdenk | 9e930b6 | 2004-06-19 21:19:10 +0000 | [diff] [blame] | 3 | * |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 4 | * (c) Copyright 2004 |
| 5 | * Techware Information Technology, Inc. |
| 6 | * http://www.techware.com.tw/ |
| 7 | * |
| 8 | * Ming-Len Wu <minglen_wu@techware.com.tw> |
| 9 | * |
| 10 | * This is the Configuration setting for Motorola MX1ADS board |
| 11 | * |
| 12 | * This program is free software; you can redistribute it and/or |
| 13 | * modify it under the terms of the GNU General Public License as |
| 14 | * published by the Free Software Foundation; either version 2 of |
| 15 | * the License, or (at your option) any later version. |
| 16 | * |
| 17 | * This program is distributed in the hope that it will be useful, |
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
wdenk | 7ac1610 | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 20 | * GNU General Public License for more details. |
| 21 | * |
| 22 | * You should have received a copy of the GNU General Public License |
| 23 | * along with this program; if not, write to the Free Software |
| 24 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 25 | * MA 02111-1307 USA |
| 26 | */ |
| 27 | |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 28 | #ifndef __CONFIG_H |
| 29 | #define __CONFIG_H |
| 30 | |
| 31 | /* |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 32 | * High Level Configuration Options |
| 33 | * (easy to change) |
| 34 | */ |
| 35 | #define CONFIG_ARM920T 1 /* This is an ARM920T Core */ |
wdenk | 7ac1610 | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 36 | #define CONFIG_IMX 1 /* It's a Motorola MC9328 SoC */ |
| 37 | #define CONFIG_MX1ADS 1 /* on a Motorola MX1ADS Board */ |
| 38 | #undef CONFIG_USE_IRQ /* we don't need IRQ/FIQ stuff */ |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 39 | |
wdenk | 7ac1610 | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 40 | /* |
| 41 | * Select serial console configuration |
| 42 | */ |
| 43 | #define CONFIG_IMX_SERIAL1 /* internal uart 1 */ |
| 44 | /* #define _CONFIG_UART2 */ /* internal uart 2 */ |
| 45 | /* #define CONFIG_SILENT_CONSOLE */ /* use this to disable output */ |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 46 | |
wdenk | 7ac1610 | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 47 | #define BOARD_LATE_INIT 1 |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 48 | #define USE_920T_MMU 1 |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 49 | |
wdenk | 9e930b6 | 2004-06-19 21:19:10 +0000 | [diff] [blame] | 50 | #if 0 |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 51 | #define CFG_MX1_GPCR 0x000003AB /* for MX1ADS 0L44N */ |
| 52 | #define CFG_MX1_GPCR 0x000003AB /* for MX1ADS 0L44N */ |
| 53 | #define CFG_MX1_GPCR 0x000003AB /* for MX1ADS 0L44N */ |
wdenk | 9e930b6 | 2004-06-19 21:19:10 +0000 | [diff] [blame] | 54 | #endif |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 55 | |
| 56 | /* |
| 57 | * Size of malloc() pool |
| 58 | */ |
| 59 | |
| 60 | #define CFG_MALLOC_LEN (CFG_ENV_SIZE + 128*1024) |
wdenk | 7ac1610 | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 61 | |
| 62 | |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 63 | #define CFG_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */ |
| 64 | |
| 65 | /* |
| 66 | * CS8900 Ethernet drivers |
| 67 | */ |
| 68 | #define CONFIG_DRIVER_CS8900 1 /* we have a CS8900 on-board */ |
| 69 | #define CS8900_BASE 0x15000300 |
wdenk | 7ac1610 | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 70 | #define CS8900_BUS16 1 /* the Linux driver does accesses as shorts */ |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 71 | |
| 72 | /* |
| 73 | * select serial console configuration |
| 74 | */ |
| 75 | |
wdenk | 7ac1610 | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 76 | /* #define CONFIG_UART1 */ |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 77 | /* #define CONFIG_UART2 1 */ |
| 78 | |
| 79 | #define CONFIG_BAUDRATE 115200 |
| 80 | |
| 81 | /*********************************************************** |
| 82 | * Command definition |
| 83 | ***********************************************************/ |
| 84 | |
| 85 | #define CONFIG_COMMANDS \ |
| 86 | (CONFIG_CMD_DFL | \ |
| 87 | CFG_CMD_CACHE | \ |
wdenk | 7ac1610 | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 88 | CFG_CMD_REGINFO | \ |
wdenk | 9e930b6 | 2004-06-19 21:19:10 +0000 | [diff] [blame] | 89 | CFG_CMD_ELF) |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 90 | |
| 91 | /* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */ |
| 92 | #include <cmd_confdefs.h> |
| 93 | |
| 94 | #define CONFIG_BOOTDELAY 3 |
wdenk | 7ac1610 | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 95 | #define CONFIG_BOOTARGS "root=/dev/msdk mem=48M" |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 96 | #define CONFIG_BOOTFILE "mx1ads" |
wdenk | 7ac1610 | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 97 | #define CONFIG_BOOTCOMMAND "tftp; bootm" |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 98 | |
| 99 | #if (CONFIG_COMMANDS & CFG_CMD_KGDB) |
| 100 | #define CONFIG_KGDB_BAUDRATE 115200 /* speed to run kgdb serial port */ |
| 101 | /* what's this ? it's not used anywhere */ |
| 102 | #define CONFIG_KGDB_SER_INDEX 1 /* which serial port to use */ |
| 103 | #endif |
| 104 | |
| 105 | /* |
| 106 | * Miscellaneous configurable options |
| 107 | */ |
wdenk | 9e930b6 | 2004-06-19 21:19:10 +0000 | [diff] [blame] | 108 | |
wdenk | 7ac1610 | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 109 | #define CFG_HUSH_PARSER 1 |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 110 | #define CFG_PROMPT_HUSH_PS2 "> " |
wdenk | 9e930b6 | 2004-06-19 21:19:10 +0000 | [diff] [blame] | 111 | |
wdenk | 7ac1610 | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 112 | #define CFG_LONGHELP /* undef to save memory */ |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 113 | |
| 114 | #ifdef CFG_HUSH_PARSER |
| 115 | #define CFG_PROMPT "MX1ADS$ " /* Monitor Command Prompt */ |
| 116 | #else |
| 117 | #define CFG_PROMPT "MX1ADS=> " /* Monitor Command Prompt */ |
| 118 | #endif |
| 119 | |
wdenk | 7ac1610 | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 120 | #define CFG_CBSIZE 256 /* Console I/O Buffer Size */ |
| 121 | #define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 122 | /* Print Buffer Size */ |
wdenk | 7ac1610 | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 123 | #define CFG_MAXARGS 16 /* max number of command args */ |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 124 | #define CFG_BARGSIZE CFG_CBSIZE /* Boot Argument Buffer Size */ |
| 125 | |
| 126 | #define CFG_MEMTEST_START 0x09000000 /* memtest works on */ |
| 127 | #define CFG_MEMTEST_END 0x0AF00000 /* 63 MB in DRAM */ |
| 128 | |
wdenk | 7ac1610 | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 129 | #undef CFG_CLKS_IN_HZ /* everything, incl board info, in Hz */ |
| 130 | #define CFG_LOAD_ADDR 0x08800000 /* default load address */ |
| 131 | /*#define CFG_HZ 1000 */ |
| 132 | #define CFG_HZ 3686400 |
| 133 | #define CFG_CPUSPEED 0x141 |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 134 | |
| 135 | /* valid baudrates */ |
| 136 | #define CFG_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 } |
| 137 | |
| 138 | /*----------------------------------------------------------------------- |
| 139 | * Stack sizes |
| 140 | * |
| 141 | * The stack sizes are set up in start.S using the settings below |
| 142 | */ |
| 143 | #define CONFIG_STACKSIZE (128*1024) /* regular stack */ |
| 144 | #ifdef CONFIG_USE_IRQ |
| 145 | #define CONFIG_STACKSIZE_IRQ (4*1024) /* IRQ stack */ |
| 146 | #define CONFIG_STACKSIZE_FIQ (4*1024) /* FIQ stack */ |
| 147 | #endif |
| 148 | |
| 149 | /*----------------------------------------------------------------------- |
| 150 | * Physical Memory Map |
| 151 | */ |
wdenk | 9e930b6 | 2004-06-19 21:19:10 +0000 | [diff] [blame] | 152 | |
wdenk | 7ac1610 | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 153 | #define CONFIG_NR_DRAM_BANKS 1 /* we have 1 bank of SDRAM */ |
| 154 | #define PHYS_SDRAM_1 0x08000000 /* SDRAM on CSD0 */ |
| 155 | #define PHYS_SDRAM_1_SIZE 0x04000000 /* 64 MB */ |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 156 | |
wdenk | 7ac1610 | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 157 | #define CFG_MAX_FLASH_BANKS 1 /* 1 bank of SyncFlash */ |
| 158 | #define CFG_FLASH_BASE 0x0C000000 /* SyncFlash on CSD1 */ |
| 159 | #define FLASH_BANK_SIZE 0x01000000 /* 16 MB Total */ |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 160 | |
| 161 | /*----------------------------------------------------------------------- |
| 162 | * FLASH and environment organization |
| 163 | */ |
| 164 | |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 165 | #define CONFIG_SYNCFLASH 1 |
| 166 | #define PHYS_FLASH_SIZE 0x01000000 |
| 167 | #define CFG_MAX_FLASH_SECT (16) |
wdenk | 7ac1610 | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 168 | #define CFG_ENV_ADDR (CFG_FLASH_BASE+0x00ff8000) |
wdenk | 9e930b6 | 2004-06-19 21:19:10 +0000 | [diff] [blame] | 169 | |
wdenk | 7ac1610 | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 170 | #define CFG_ENV_IS_IN_FLASH 1 |
| 171 | #define CFG_ENV_SIZE 0x04000 /* Total Size of Environment Sector */ |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 172 | #define CFG_ENV_SECT_SIZE 0x100000 |
wdenk | 7ac1610 | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 173 | |
| 174 | /*----------------------------------------------------------------------- |
| 175 | * Enable passing ATAGS |
| 176 | */ |
| 177 | |
| 178 | #define CONFIG_CMDLINE_TAG 1 /* enable passing of ATAGs */ |
| 179 | #define CONFIG_SETUP_MEMORY_TAGS 1 |
| 180 | |
| 181 | #define CONFIG_SYS_CLK_FREQ 16780000 |
| 182 | #define CONFIG_SYSPLL_CLK_FREQ 16000000 |
| 183 | |
wdenk | 9f664dd | 2004-06-09 21:50:45 +0000 | [diff] [blame] | 184 | #endif /* __CONFIG_H */ |