Heiko Schocher | 6dedf3d | 2006-12-21 16:14:48 +0100 | [diff] [blame] | 1 | /* |
Heiko Schocher | 7f625fc | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 2 | * (C) Copyright 2003-2009 |
Heiko Schocher | 6dedf3d | 2006-12-21 16:14:48 +0100 | [diff] [blame] | 3 | * Heiko Schocher, DENX Software Engineering, hs@denx.de. |
| 4 | * |
| 5 | * See file CREDITS for list of people who contributed to this |
| 6 | * project. |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or |
| 9 | * modify it under the terms of the GNU General Public License as |
| 10 | * published by the Free Software Foundation; either version 2 of |
| 11 | * the License, or (at your option) any later version. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU General Public License |
| 19 | * along with this program; if not, write to the Free Software |
| 20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 21 | * MA 02111-1307 USA |
| 22 | */ |
| 23 | |
| 24 | #ifndef __CONFIG_H |
| 25 | #define __CONFIG_H |
| 26 | |
| 27 | /* |
| 28 | * High Level Configuration Options |
| 29 | * (easy to change) |
| 30 | */ |
| 31 | |
Heiko Schocher | 7f625fc | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 32 | #define CONFIG_UC101 1 /* UC101 board */ |
| 33 | #define CONFIG_HOSTNAME uc101 |
Heiko Schocher | 6dedf3d | 2006-12-21 16:14:48 +0100 | [diff] [blame] | 34 | |
Wolfgang Denk | 2ae1824 | 2010-10-06 09:05:45 +0200 | [diff] [blame] | 35 | #ifndef CONFIG_SYS_TEXT_BASE |
| 36 | #define CONFIG_SYS_TEXT_BASE 0xFFF00000 |
| 37 | #endif |
| 38 | |
Heiko Schocher | 7f625fc | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 39 | #include "manroland/common.h" |
| 40 | #include "manroland/mpc5200-common.h" |
Becky Bruce | 31d8267 | 2008-05-08 19:02:12 -0500 | [diff] [blame] | 41 | |
Heiko Schocher | 6dedf3d | 2006-12-21 16:14:48 +0100 | [diff] [blame] | 42 | /* |
| 43 | * Serial console configuration |
| 44 | */ |
Heiko Schocher | 6dedf3d | 2006-12-21 16:14:48 +0100 | [diff] [blame] | 45 | #define CONFIG_BAUDRATE 115200 /* ... at 115200 bps */ |
Heiko Schocher | 6dedf3d | 2006-12-21 16:14:48 +0100 | [diff] [blame] | 46 | |
Jon Loeliger | 6c18eb9 | 2007-07-04 22:33:38 -0500 | [diff] [blame] | 47 | /* |
Jon Loeliger | 079a136 | 2007-07-10 10:12:10 -0500 | [diff] [blame] | 48 | * BOOTP options |
| 49 | */ |
| 50 | #define CONFIG_BOOTP_BOOTFILESIZE |
| 51 | #define CONFIG_BOOTP_BOOTPATH |
| 52 | #define CONFIG_BOOTP_GATEWAY |
| 53 | #define CONFIG_BOOTP_HOSTNAME |
| 54 | |
Heiko Schocher | 6dedf3d | 2006-12-21 16:14:48 +0100 | [diff] [blame] | 55 | /* |
| 56 | * Flash configuration |
| 57 | */ |
Heiko Schocher | 7f625fc | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 58 | #define CONFIG_SYS_MAX_FLASH_SECT 140 |
Heiko Schocher | 6dedf3d | 2006-12-21 16:14:48 +0100 | [diff] [blame] | 59 | |
| 60 | /* |
| 61 | * Environment settings |
| 62 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0e8d158 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 63 | #define CONFIG_ENV_SECT_SIZE 0x10000 |
Heiko Schocher | 6dedf3d | 2006-12-21 16:14:48 +0100 | [diff] [blame] | 64 | |
| 65 | /* |
| 66 | * Memory map |
| 67 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 68 | #define CONFIG_SYS_IB_MASTER 0xc0510000 /* CS 6 */ |
| 69 | #define CONFIG_SYS_IB_EPLD 0xc0500000 /* CS 7 */ |
Heiko Schocher | 6dedf3d | 2006-12-21 16:14:48 +0100 | [diff] [blame] | 70 | |
Heiko Schocher | 6dedf3d | 2006-12-21 16:14:48 +0100 | [diff] [blame] | 71 | /* SRAM */ |
Heiko Schocher | d1831c5 | 2010-09-13 12:12:33 +0200 | [diff] [blame] | 72 | #define CONFIG_SYS_SRAM_SIZE 0x200000 |
Heiko Schocher | 6dedf3d | 2006-12-21 16:14:48 +0100 | [diff] [blame] | 73 | |
Heiko Schocher | 6dedf3d | 2006-12-21 16:14:48 +0100 | [diff] [blame] | 74 | /* |
| 75 | * GPIO configuration |
| 76 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 77 | #define CONFIG_SYS_GPS_PORT_CONFIG 0x4d558044 |
Heiko Schocher | 6dedf3d | 2006-12-21 16:14:48 +0100 | [diff] [blame] | 78 | |
Heiko Schocher | 7f625fc | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 79 | #define CONFIG_SYS_MEMTEST_START 0x00300000 |
| 80 | #define CONFIG_SYS_MEMTEST_END 0x00f00000 |
Heiko Schocher | 6dedf3d | 2006-12-21 16:14:48 +0100 | [diff] [blame] | 81 | |
Heiko Schocher | 7f625fc | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 82 | #define CONFIG_SYS_LOAD_ADDR 0x300000 |
Heiko Schocher | 6dedf3d | 2006-12-21 16:14:48 +0100 | [diff] [blame] | 83 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 84 | #define CONFIG_SYS_BOOTCS_CFG 0x00045D00 |
Heiko Schocher | 6dedf3d | 2006-12-21 16:14:48 +0100 | [diff] [blame] | 85 | |
| 86 | /* 8Mbit SRAM @0x80100000 */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 87 | #define CONFIG_SYS_CS1_SIZE 0x00200000 |
| 88 | #define CONFIG_SYS_CS1_CFG 0x21D00 |
Heiko Schocher | 6dedf3d | 2006-12-21 16:14:48 +0100 | [diff] [blame] | 89 | |
| 90 | /* Display H1, Status Inputs, EPLD @0x80600000 8 Bit */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 91 | #define CONFIG_SYS_CS3_START CONFIG_SYS_DISPLAY_BASE |
| 92 | #define CONFIG_SYS_CS3_SIZE 0x00000100 |
| 93 | #define CONFIG_SYS_CS3_CFG 0x00081802 |
Heiko Schocher | 6dedf3d | 2006-12-21 16:14:48 +0100 | [diff] [blame] | 94 | |
| 95 | /* Interbus Master 16 Bit */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 96 | #define CONFIG_SYS_CS6_START CONFIG_SYS_IB_MASTER |
| 97 | #define CONFIG_SYS_CS6_SIZE 0x00010000 |
| 98 | #define CONFIG_SYS_CS6_CFG 0x00FF3500 |
Heiko Schocher | 6dedf3d | 2006-12-21 16:14:48 +0100 | [diff] [blame] | 99 | |
| 100 | /* Interbus EPLD 8 Bit */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 101 | #define CONFIG_SYS_CS7_START CONFIG_SYS_IB_EPLD |
| 102 | #define CONFIG_SYS_CS7_SIZE 0x00010000 |
| 103 | #define CONFIG_SYS_CS7_CFG 0x00081800 |
Heiko Schocher | 6dedf3d | 2006-12-21 16:14:48 +0100 | [diff] [blame] | 104 | |
Heiko Schocher | 6dedf3d | 2006-12-21 16:14:48 +0100 | [diff] [blame] | 105 | /*----------------------------------------------------------------------- |
| 106 | * IDE/ATA stuff Supports IDE harddisk |
| 107 | *----------------------------------------------------------------------- |
| 108 | */ |
| 109 | |
Heiko Schocher | 7f625fc | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 110 | #define CONFIG_SYS_IDE_MAXDEVICE 1 /* max. 2 drives per IDE bus*/ |
Heiko Schocher | 6dedf3d | 2006-12-21 16:14:48 +0100 | [diff] [blame] | 111 | |
| 112 | /*---------------------------------------------------------------------*/ |
| 113 | /* Display addresses */ |
| 114 | /*---------------------------------------------------------------------*/ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 115 | #define CONFIG_SYS_DISP_CHR_RAM (CONFIG_SYS_DISPLAY_BASE + 0x38) |
| 116 | #define CONFIG_SYS_DISP_CWORD (CONFIG_SYS_DISPLAY_BASE + 0x30) |
Heiko Schocher | 6dedf3d | 2006-12-21 16:14:48 +0100 | [diff] [blame] | 117 | |
| 118 | #endif /* __CONFIG_H */ |