Heiko Schocher | 258c37b | 2008-08-21 20:44:49 +0200 | [diff] [blame] | 1 | /* |
Heiko Schocher | 7f625fc | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 2 | * (C) Copyright 2008-2009 |
Heiko Schocher | 258c37b | 2008-08-21 20:44:49 +0200 | [diff] [blame] | 3 | * Heiko Schocher, DENX Software Engineering, hs@denx.de. |
| 4 | * |
| 5 | * (C) Copyright 2003-2005 |
| 6 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 7 | * |
| 8 | * See file CREDITS for list of people who contributed to this |
| 9 | * project. |
| 10 | * |
| 11 | * This program is free software; you can redistribute it and/or |
| 12 | * modify it under the terms of the GNU General Public License as |
| 13 | * published by the Free Software Foundation; either version 2 of |
| 14 | * the License, or (at your option) any later version. |
| 15 | * |
| 16 | * This program is distributed in the hope that it will be useful, |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 | * GNU General Public License for more details. |
| 20 | * |
| 21 | * You should have received a copy of the GNU General Public License |
| 22 | * along with this program; if not, write to the Free Software |
| 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 24 | * MA 02111-1307 USA |
| 25 | */ |
| 26 | |
| 27 | #ifndef __CONFIG_H |
| 28 | #define __CONFIG_H |
| 29 | |
| 30 | /* |
| 31 | * High Level Configuration Options |
| 32 | * (easy to change) |
| 33 | */ |
| 34 | |
Heiko Schocher | 7f625fc | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 35 | #define CONFIG_MUCMC52 1 /* MUCMC52 board */ |
| 36 | #define CONFIG_HOSTNAME mucmc52 |
Heiko Schocher | 258c37b | 2008-08-21 20:44:49 +0200 | [diff] [blame] | 37 | |
Wolfgang Denk | 2ae1824 | 2010-10-06 09:05:45 +0200 | [diff] [blame^] | 38 | #ifndef CONFIG_SYS_TEXT_BASE |
| 39 | #define CONFIG_SYS_TEXT_BASE 0xFFF00000 |
| 40 | #endif |
| 41 | |
Heiko Schocher | 7f625fc | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 42 | #include "manroland/common.h" |
| 43 | #include "manroland/mpc5200-common.h" |
Heiko Schocher | 258c37b | 2008-08-21 20:44:49 +0200 | [diff] [blame] | 44 | |
| 45 | #define CONFIG_LAST_STAGE_INIT |
Heiko Schocher | 258c37b | 2008-08-21 20:44:49 +0200 | [diff] [blame] | 46 | /* |
| 47 | * Serial console configuration |
| 48 | */ |
Heiko Schocher | 258c37b | 2008-08-21 20:44:49 +0200 | [diff] [blame] | 49 | #define CONFIG_BAUDRATE 38400 /* ... at 38400 bps */ |
Heiko Schocher | 258c37b | 2008-08-21 20:44:49 +0200 | [diff] [blame] | 50 | |
Heiko Schocher | 258c37b | 2008-08-21 20:44:49 +0200 | [diff] [blame] | 51 | #define CONFIG_CMD_PCI |
Heiko Schocher | 258c37b | 2008-08-21 20:44:49 +0200 | [diff] [blame] | 52 | |
| 53 | /* |
| 54 | * Flash configuration |
| 55 | */ |
Heiko Schocher | 7f625fc | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 56 | #define CONFIG_SYS_MAX_FLASH_SECT 67 |
Heiko Schocher | 258c37b | 2008-08-21 20:44:49 +0200 | [diff] [blame] | 57 | |
| 58 | /* |
| 59 | * Environment settings |
| 60 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0e8d158 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 61 | #define CONFIG_ENV_SECT_SIZE 0x20000 |
Heiko Schocher | 258c37b | 2008-08-21 20:44:49 +0200 | [diff] [blame] | 62 | |
| 63 | /* |
| 64 | * Memory map |
| 65 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 66 | #define CONFIG_SYS_STATUS1_BASE 0x80600200 |
| 67 | #define CONFIG_SYS_STATUS2_BASE 0x80600300 |
| 68 | #define CONFIG_SYS_PMI_UNI_BASE 0x80800000 |
| 69 | #define CONFIG_SYS_PMI_BROAD_BASE 0x80810000 |
Heiko Schocher | 258c37b | 2008-08-21 20:44:49 +0200 | [diff] [blame] | 70 | |
Heiko Schocher | 258c37b | 2008-08-21 20:44:49 +0200 | [diff] [blame] | 71 | /* |
| 72 | * GPIO configuration |
| 73 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 74 | #define CONFIG_SYS_GPS_PORT_CONFIG 0x8D550644 |
Heiko Schocher | 258c37b | 2008-08-21 20:44:49 +0200 | [diff] [blame] | 75 | |
Heiko Schocher | 7f625fc | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 76 | #define CONFIG_SYS_MEMTEST_START 0x00100000 |
| 77 | #define CONFIG_SYS_MEMTEST_END 0x00f00000 |
Heiko Schocher | 258c37b | 2008-08-21 20:44:49 +0200 | [diff] [blame] | 78 | |
Heiko Schocher | 7f625fc | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 79 | #define CONFIG_SYS_LOAD_ADDR 0x100000 |
Heiko Schocher | 258c37b | 2008-08-21 20:44:49 +0200 | [diff] [blame] | 80 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 81 | #define CONFIG_SYS_BOOTCS_CFG 0x0004FB00 |
Heiko Schocher | 258c37b | 2008-08-21 20:44:49 +0200 | [diff] [blame] | 82 | |
| 83 | /* 8Mbit SRAM @0x80100000 */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 84 | #define CONFIG_SYS_CS1_SIZE 0x00100000 |
| 85 | #define CONFIG_SYS_CS1_CFG 0x00019B00 |
Heiko Schocher | 258c37b | 2008-08-21 20:44:49 +0200 | [diff] [blame] | 86 | |
Heiko Schocher | d1831c5 | 2010-09-13 12:12:33 +0200 | [diff] [blame] | 87 | #define CONFIG_SYS_SRAM_SIZE CONFIG_SYS_CS1_SIZE |
| 88 | |
Heiko Schocher | 258c37b | 2008-08-21 20:44:49 +0200 | [diff] [blame] | 89 | /* FRAM 32Kbyte @0x80700000 */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 90 | #define CONFIG_SYS_CS2_START 0x80700000 |
| 91 | #define CONFIG_SYS_CS2_SIZE 0x00008000 |
| 92 | #define CONFIG_SYS_CS2_CFG 0x00019800 |
Heiko Schocher | 258c37b | 2008-08-21 20:44:49 +0200 | [diff] [blame] | 93 | |
| 94 | /* Display H1, Status Inputs, EPLD @0x80600000 */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 95 | #define CONFIG_SYS_CS3_START 0x80600000 |
| 96 | #define CONFIG_SYS_CS3_SIZE 0x00100000 |
| 97 | #define CONFIG_SYS_CS3_CFG 0x00019800 |
Heiko Schocher | 258c37b | 2008-08-21 20:44:49 +0200 | [diff] [blame] | 98 | |
| 99 | /* PMI Unicast 32Kbyte @0x80800000 */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 100 | #define CONFIG_SYS_CS6_START CONFIG_SYS_PMI_UNI_BASE |
| 101 | #define CONFIG_SYS_CS6_SIZE 0x00008000 |
| 102 | #define CONFIG_SYS_CS6_CFG 0xFFFFF930 |
Heiko Schocher | 258c37b | 2008-08-21 20:44:49 +0200 | [diff] [blame] | 103 | |
| 104 | /* PMI Broadcast 32Kbyte @0x80810000 */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 105 | #define CONFIG_SYS_CS7_START CONFIG_SYS_PMI_BROAD_BASE |
| 106 | #define CONFIG_SYS_CS7_SIZE 0x00008000 |
| 107 | #define CONFIG_SYS_CS7_CFG 0xFF00F930 |
Heiko Schocher | 258c37b | 2008-08-21 20:44:49 +0200 | [diff] [blame] | 108 | |
Heiko Schocher | 258c37b | 2008-08-21 20:44:49 +0200 | [diff] [blame] | 109 | /*----------------------------------------------------------------------- |
| 110 | * IDE/ATA stuff Supports IDE harddisk |
| 111 | *----------------------------------------------------------------------- |
| 112 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 113 | #define CONFIG_SYS_IDE_MAXDEVICE 1 /* max. 2 drives per IDE bus */ |
Heiko Schocher | 258c37b | 2008-08-21 20:44:49 +0200 | [diff] [blame] | 114 | |
Heiko Schocher | 258c37b | 2008-08-21 20:44:49 +0200 | [diff] [blame] | 115 | /* |
| 116 | * PCI Mapping: |
| 117 | * 0x40000000 - 0x4fffffff - PCI Memory |
| 118 | * 0x50000000 - 0x50ffffff - PCI IO Space |
| 119 | */ |
| 120 | #define CONFIG_PCI 1 |
| 121 | #define CONFIG_PCI_PNP 1 |
| 122 | #define CONFIG_PCI_SCAN_SHOW 1 |
| 123 | #define CONFIG_PCIAUTO_SKIP_HOST_BRIDGE 1 |
| 124 | |
| 125 | #define CONFIG_PCI_MEM_BUS 0x40000000 |
| 126 | #define CONFIG_PCI_MEM_PHYS CONFIG_PCI_MEM_BUS |
| 127 | #define CONFIG_PCI_MEM_SIZE 0x10000000 |
| 128 | |
| 129 | #define CONFIG_PCI_IO_BUS 0x50000000 |
| 130 | #define CONFIG_PCI_IO_PHYS CONFIG_PCI_IO_BUS |
| 131 | #define CONFIG_PCI_IO_SIZE 0x01000000 |
| 132 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 133 | #define CONFIG_SYS_ISA_IO CONFIG_PCI_IO_BUS |
Heiko Schocher | 258c37b | 2008-08-21 20:44:49 +0200 | [diff] [blame] | 134 | |
| 135 | /*---------------------------------------------------------------------*/ |
| 136 | /* Display addresses */ |
| 137 | /*---------------------------------------------------------------------*/ |
| 138 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 139 | #define CONFIG_SYS_DISP_CHR_RAM (CONFIG_SYS_DISPLAY_BASE + 0x38) |
| 140 | #define CONFIG_SYS_DISP_CWORD (CONFIG_SYS_DISPLAY_BASE + 0x30) |
Heiko Schocher | 258c37b | 2008-08-21 20:44:49 +0200 | [diff] [blame] | 141 | |
| 142 | #endif /* __CONFIG_H */ |