blob: f06ca9c6afada80fd76ec94c92d7c56f536f734c [file] [log] [blame]
Anatolij Gustschina3921ee2010-04-24 19:27:09 +02001/*
2 * (C) Copyright 2010 DENX Software Engineering
3 * Anatolij Gustschin <agust@denx.de>
4 *
5 * Common configuration options for MPC5121 based boards
6 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02007 * SPDX-License-Identifier: GPL-2.0+
Anatolij Gustschina3921ee2010-04-24 19:27:09 +02008 */
9
10#ifndef __MPC5121_COMMON_H
11#define __MPC5121_COMMON_H
12
13/* Use SRAM for initial stack */
14#define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_SRAM_BASE /* Init RAM base */
Wolfgang Denk553f0982010-10-26 13:32:32 +020015#define CONFIG_SYS_INIT_RAM_SIZE CONFIG_SYS_SRAM_SIZE /* Size of area */
Anatolij Gustschina3921ee2010-04-24 19:27:09 +020016
Wolfgang Denk553f0982010-10-26 13:32:32 +020017#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - \
Wolfgang Denk25ddd1f2010-10-26 14:34:52 +020018 GENERATED_GBL_DATA_SIZE)
Michael Zaidman800eb092010-09-20 08:51:53 +020019#define CONFIG_SYS_INIT_SP_OFFSET (CONFIG_SYS_GBL_DATA_OFFSET - 0x4)
Anatolij Gustschina3921ee2010-04-24 19:27:09 +020020
21#define CONFIG_SYS_MEMTEST_START 0x00200000 /* memtest region */
22#define CONFIG_SYS_MEMTEST_END 0x00400000
23
24/*
25 * Serial console
26 */
27#define CONFIG_BAUDRATE 115200
28#define CONFIG_SYS_BAUDRATE_TABLE \
29 {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200}
30
31#define CONFIG_CMDLINE_EDITING 1 /* command line history */
Anatolij Gustschina3921ee2010-04-24 19:27:09 +020032
33#endif /* __MPC5121_COMMON_H */