Anatolij Gustschin | a3921ee | 2010-04-24 19:27:09 +0200 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2010 DENX Software Engineering |
| 3 | * Anatolij Gustschin <agust@denx.de> |
| 4 | * |
| 5 | * Common configuration options for MPC5121 based boards |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU General Public License as |
| 9 | * published by the Free Software Foundation; either version 2 of |
| 10 | * the License, or (at your option) any later version. |
| 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | * GNU General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License |
| 18 | * along with this program; if not, write to the Free Software |
| 19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 20 | * MA 02111-1307 USA |
| 21 | */ |
| 22 | |
| 23 | #ifndef __MPC5121_COMMON_H |
| 24 | #define __MPC5121_COMMON_H |
| 25 | |
| 26 | /* Use SRAM for initial stack */ |
| 27 | #define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_SRAM_BASE /* Init RAM base */ |
Wolfgang Denk | 553f098 | 2010-10-26 13:32:32 +0200 | [diff] [blame] | 28 | #define CONFIG_SYS_INIT_RAM_SIZE CONFIG_SYS_SRAM_SIZE /* Size of area */ |
Anatolij Gustschin | a3921ee | 2010-04-24 19:27:09 +0200 | [diff] [blame] | 29 | |
Wolfgang Denk | 553f098 | 2010-10-26 13:32:32 +0200 | [diff] [blame] | 30 | #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - \ |
Wolfgang Denk | 25ddd1f | 2010-10-26 14:34:52 +0200 | [diff] [blame] | 31 | GENERATED_GBL_DATA_SIZE) |
Michael Zaidman | 800eb09 | 2010-09-20 08:51:53 +0200 | [diff] [blame] | 32 | #define CONFIG_SYS_INIT_SP_OFFSET (CONFIG_SYS_GBL_DATA_OFFSET - 0x4) |
Anatolij Gustschin | a3921ee | 2010-04-24 19:27:09 +0200 | [diff] [blame] | 33 | |
| 34 | #define CONFIG_SYS_MEMTEST_START 0x00200000 /* memtest region */ |
| 35 | #define CONFIG_SYS_MEMTEST_END 0x00400000 |
| 36 | |
| 37 | /* |
| 38 | * Serial console |
| 39 | */ |
| 40 | #define CONFIG_BAUDRATE 115200 |
| 41 | #define CONFIG_SYS_BAUDRATE_TABLE \ |
| 42 | {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200} |
| 43 | |
| 44 | #define CONFIG_CMDLINE_EDITING 1 /* command line history */ |
| 45 | /* Use the HUSH parser */ |
| 46 | #define CONFIG_SYS_HUSH_PARSER |
| 47 | #ifdef CONFIG_SYS_HUSH_PARSER |
| 48 | #define CONFIG_SYS_PROMPT_HUSH_PS2 "> " |
| 49 | #endif |
| 50 | |
| 51 | #endif /* __MPC5121_COMMON_H */ |