blob: f93dea7b374f49c204f1f6a225e611c774375f9d [file] [log] [blame]
Heiko Schocher6dedf3d2006-12-21 16:14:48 +01001/*
Heiko Schocher7f625fc2009-09-23 07:56:04 +02002 * (C) Copyright 2003-2009
Heiko Schocher6dedf3d2006-12-21 16:14:48 +01003 * Heiko Schocher, DENX Software Engineering, hs@denx.de.
4 *
Wolfgang Denk3765b3e2013-10-07 13:07:26 +02005 * SPDX-License-Identifier: GPL-2.0+
Heiko Schocher6dedf3d2006-12-21 16:14:48 +01006 */
7
8#ifndef __CONFIG_H
9#define __CONFIG_H
10
11/*
12 * High Level Configuration Options
13 * (easy to change)
14 */
15
Heiko Schocher7f625fc2009-09-23 07:56:04 +020016#define CONFIG_UC101 1 /* UC101 board */
17#define CONFIG_HOSTNAME uc101
Heiko Schocher6dedf3d2006-12-21 16:14:48 +010018
Wolfgang Denk2ae18242010-10-06 09:05:45 +020019#ifndef CONFIG_SYS_TEXT_BASE
20#define CONFIG_SYS_TEXT_BASE 0xFFF00000
21#endif
Wolfgang Denk2ced53e2010-11-28 21:18:58 +010022#define CONFIG_SYS_LDSCRIPT "arch/powerpc/cpu/mpc5xxx/u-boot-customlayout.lds"
Wolfgang Denk2ae18242010-10-06 09:05:45 +020023
Heiko Schocher7f625fc2009-09-23 07:56:04 +020024#include "manroland/common.h"
25#include "manroland/mpc5200-common.h"
Becky Bruce31d82672008-05-08 19:02:12 -050026
Heiko Schocher6dedf3d2006-12-21 16:14:48 +010027/*
28 * Serial console configuration
29 */
Heiko Schocher6dedf3d2006-12-21 16:14:48 +010030#define CONFIG_BAUDRATE 115200 /* ... at 115200 bps */
Heiko Schocher6dedf3d2006-12-21 16:14:48 +010031
Jon Loeliger6c18eb92007-07-04 22:33:38 -050032/*
Jon Loeliger079a1362007-07-10 10:12:10 -050033 * BOOTP options
34 */
35#define CONFIG_BOOTP_BOOTFILESIZE
36#define CONFIG_BOOTP_BOOTPATH
37#define CONFIG_BOOTP_GATEWAY
38#define CONFIG_BOOTP_HOSTNAME
39
Heiko Schocher6dedf3d2006-12-21 16:14:48 +010040/*
41 * Flash configuration
42 */
Heiko Schocher7f625fc2009-09-23 07:56:04 +020043#define CONFIG_SYS_MAX_FLASH_SECT 140
Heiko Schocher6dedf3d2006-12-21 16:14:48 +010044
45/*
46 * Environment settings
47 */
Jean-Christophe PLAGNIOL-VILLARD0e8d1582008-09-10 22:48:06 +020048#define CONFIG_ENV_SECT_SIZE 0x10000
Heiko Schocher6dedf3d2006-12-21 16:14:48 +010049
50/*
51 * Memory map
52 */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020053#define CONFIG_SYS_IB_MASTER 0xc0510000 /* CS 6 */
54#define CONFIG_SYS_IB_EPLD 0xc0500000 /* CS 7 */
Heiko Schocher6dedf3d2006-12-21 16:14:48 +010055
Heiko Schocher6dedf3d2006-12-21 16:14:48 +010056/* SRAM */
Heiko Schocherd1831c52010-09-13 12:12:33 +020057#define CONFIG_SYS_SRAM_SIZE 0x200000
Heiko Schocher6dedf3d2006-12-21 16:14:48 +010058
Heiko Schocher6dedf3d2006-12-21 16:14:48 +010059/*
60 * GPIO configuration
61 */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020062#define CONFIG_SYS_GPS_PORT_CONFIG 0x4d558044
Heiko Schocher6dedf3d2006-12-21 16:14:48 +010063
Heiko Schocher7f625fc2009-09-23 07:56:04 +020064#define CONFIG_SYS_MEMTEST_START 0x00300000
65#define CONFIG_SYS_MEMTEST_END 0x00f00000
Heiko Schocher6dedf3d2006-12-21 16:14:48 +010066
Heiko Schocher7f625fc2009-09-23 07:56:04 +020067#define CONFIG_SYS_LOAD_ADDR 0x300000
Heiko Schocher6dedf3d2006-12-21 16:14:48 +010068
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020069#define CONFIG_SYS_BOOTCS_CFG 0x00045D00
Heiko Schocher6dedf3d2006-12-21 16:14:48 +010070
71/* 8Mbit SRAM @0x80100000 */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020072#define CONFIG_SYS_CS1_SIZE 0x00200000
73#define CONFIG_SYS_CS1_CFG 0x21D00
Heiko Schocher6dedf3d2006-12-21 16:14:48 +010074
75/* Display H1, Status Inputs, EPLD @0x80600000 8 Bit */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020076#define CONFIG_SYS_CS3_START CONFIG_SYS_DISPLAY_BASE
77#define CONFIG_SYS_CS3_SIZE 0x00000100
78#define CONFIG_SYS_CS3_CFG 0x00081802
Heiko Schocher6dedf3d2006-12-21 16:14:48 +010079
80/* Interbus Master 16 Bit */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020081#define CONFIG_SYS_CS6_START CONFIG_SYS_IB_MASTER
82#define CONFIG_SYS_CS6_SIZE 0x00010000
83#define CONFIG_SYS_CS6_CFG 0x00FF3500
Heiko Schocher6dedf3d2006-12-21 16:14:48 +010084
85/* Interbus EPLD 8 Bit */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020086#define CONFIG_SYS_CS7_START CONFIG_SYS_IB_EPLD
87#define CONFIG_SYS_CS7_SIZE 0x00010000
88#define CONFIG_SYS_CS7_CFG 0x00081800
Heiko Schocher6dedf3d2006-12-21 16:14:48 +010089
Heiko Schocher6dedf3d2006-12-21 16:14:48 +010090/*-----------------------------------------------------------------------
91 * IDE/ATA stuff Supports IDE harddisk
92 *-----------------------------------------------------------------------
93 */
94
Heiko Schocher7f625fc2009-09-23 07:56:04 +020095#define CONFIG_SYS_IDE_MAXDEVICE 1 /* max. 2 drives per IDE bus*/
Heiko Schocher6dedf3d2006-12-21 16:14:48 +010096
97/*---------------------------------------------------------------------*/
98/* Display addresses */
99/*---------------------------------------------------------------------*/
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200100#define CONFIG_SYS_DISP_CHR_RAM (CONFIG_SYS_DISPLAY_BASE + 0x38)
101#define CONFIG_SYS_DISP_CWORD (CONFIG_SYS_DISPLAY_BASE + 0x30)
Heiko Schocher6dedf3d2006-12-21 16:14:48 +0100102
103#endif /* __CONFIG_H */