Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Configuration settings for the iDMR board |
| 3 | * |
| 4 | * Based on MC5272C3, r5200 and M5271EVB board configs |
| 5 | * (C) Copyright 2006 Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 6 | * (C) Copyright 2006 Lab X Technologies <zachary.landau@labxtechnologies.com> |
| 7 | * (C) Copyright 2003 Josef Baumgartner <josef.baumgartner@telex.de> |
| 8 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 9 | * SPDX-License-Identifier: GPL-2.0+ |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 10 | */ |
| 11 | |
| 12 | #ifndef _IDMR_H |
| 13 | #define _IDMR_H |
| 14 | |
| 15 | |
| 16 | /* |
| 17 | * High Level Configuration Options (easy to change) |
| 18 | */ |
| 19 | |
| 20 | #define CONFIG_MCF52x2 /* define processor family */ |
| 21 | #define CONFIG_M5271 /* define processor type */ |
| 22 | #define CONFIG_IDMR /* define board type */ |
| 23 | |
| 24 | #undef CONFIG_WATCHDOG /* disable watchdog */ |
| 25 | |
| 26 | /* |
| 27 | * Default environment settings |
| 28 | */ |
| 29 | #define CONFIG_BOOTCOMMAND "run net_nfs" |
| 30 | #define CONFIG_BOOTDELAY 5 |
TsiChungLiew | 47dfc1c | 2007-08-15 19:43:20 -0500 | [diff] [blame] | 31 | #define CONFIG_MCFUART |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 32 | #define CONFIG_SYS_UART_PORT (0) |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 33 | #define CONFIG_BAUDRATE 19200 |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 34 | #define CONFIG_ETHADDR 00:06:3b:01:41:55 |
| 35 | #define CONFIG_ETHPRIME |
| 36 | #define CONFIG_IPADDR 192.168.30.1 |
| 37 | #define CONFIG_SERVERIP 192.168.1.1 |
Joe Hershberger | 257ff78 | 2011-10-13 13:03:47 +0000 | [diff] [blame] | 38 | #define CONFIG_ROOTPATH "" |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 39 | #define CONFIG_GATEWAYIP 192.168.1.1 |
| 40 | #define CONFIG_NETMASK 255.255.0.0 |
| 41 | #define CONFIG_HOSTNAME idmr |
Joe Hershberger | e4da248 | 2011-10-13 13:03:48 +0000 | [diff] [blame] | 42 | #define CONFIG_BOOTFILE "/tftpboot/idmr/uImage" |
Wolfgang Denk | 1baed66 | 2008-03-03 12:16:44 +0100 | [diff] [blame] | 43 | #define CONFIG_PREBOOT "echo;echo Type \\\"run flash_nfs\\\" to mount root " \ |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 44 | "filesystem over NFS; echo" |
| 45 | |
TsiChungLiew | 47dfc1c | 2007-08-15 19:43:20 -0500 | [diff] [blame] | 46 | #define CONFIG_MCFTMR |
| 47 | |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 48 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 49 | "netdev=eth0\0" \ |
| 50 | "ramargs=setenv bootargs root=/dev/ram rw\0" \ |
| 51 | "addip=setenv bootargs $(bootargs) " \ |
| 52 | "ip=$(ipaddr):$(serverip):$(gatewayip):" \ |
| 53 | "$(netmask):$(hostname):$(netdev):off panic=1\0" \ |
| 54 | "flash_nfs=run nfsargs addip;bootm $(kernel_addr)\0" \ |
| 55 | "flash_self=run ramargs addip;bootm $(kernel_addr) " \ |
| 56 | "$(ramdisk_addr)\0" \ |
| 57 | "net_nfs=tftp 200000 $(bootfile);run nfsargs addip;bootm\0" \ |
| 58 | "nfsargs=setenv bootargs root=/dev/nfs rw " \ |
| 59 | "nfsroot=$(serverip):$(rootpath)\0" \ |
Heiko Schocher | c5e8405 | 2010-07-20 17:45:02 +0200 | [diff] [blame] | 60 | "ethact=FEC\0 " \ |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 61 | "update=prot off ff800000 ff81ffff; era ff800000 ff81ffff; " \ |
| 62 | "cp.b 200000 ff800000 $(filesize);" \ |
| 63 | "prot on ff800000 ff81ffff\0" \ |
| 64 | "load=tftp 200000 $(u-boot)\0" \ |
| 65 | "u-boot=/tftpboot/idmr/u-boot.bin\0" \ |
| 66 | "" |
| 67 | |
Jon Loeliger | 860435b | 2007-07-04 22:32:32 -0500 | [diff] [blame] | 68 | |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 69 | /* |
Jon Loeliger | 140b69c | 2007-07-10 09:38:02 -0500 | [diff] [blame] | 70 | * BOOTP options |
| 71 | */ |
| 72 | #define CONFIG_BOOTP_BOOTFILESIZE |
| 73 | #define CONFIG_BOOTP_BOOTPATH |
| 74 | #define CONFIG_BOOTP_GATEWAY |
| 75 | #define CONFIG_BOOTP_HOSTNAME |
| 76 | |
| 77 | |
| 78 | /* |
Jon Loeliger | 860435b | 2007-07-04 22:32:32 -0500 | [diff] [blame] | 79 | * Command line configuration. |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 80 | */ |
Jon Loeliger | 860435b | 2007-07-04 22:32:32 -0500 | [diff] [blame] | 81 | #include <config_cmd_default.h> |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 82 | |
Jon Loeliger | 860435b | 2007-07-04 22:32:32 -0500 | [diff] [blame] | 83 | #define CONFIG_CMD_PING |
| 84 | #define CONFIG_CMD_JFFS2 |
| 85 | #define CONFIG_CMD_NET |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 86 | |
Jon Loeliger | 860435b | 2007-07-04 22:32:32 -0500 | [diff] [blame] | 87 | #undef CONFIG_CMD_LOADS |
| 88 | #undef CONFIG_CMD_LOADB |
| 89 | |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 90 | |
| 91 | /* |
| 92 | * Low Level Configuration Settings |
| 93 | * (address mappings, register initial values, etc.) |
| 94 | * You should know what you are doing if you make changes here. |
| 95 | */ |
| 96 | |
| 97 | /* |
| 98 | * Configuration for environment, which occupies third sector in flash. |
| 99 | */ |
| 100 | #ifndef CONFIG_MONITOR_IS_IN_RAM |
Jean-Christophe PLAGNIOL-VILLARD | 7e1cda6 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 101 | #define CONFIG_ENV_ADDR 0xff820000 |
| 102 | #define CONFIG_ENV_SECT_SIZE 0x10000 |
| 103 | #define CONFIG_ENV_SIZE 0x2000 |
Jean-Christophe PLAGNIOL-VILLARD | 53db4cd | 2008-09-10 22:48:04 +0200 | [diff] [blame] | 104 | #define CONFIG_ENV_IS_IN_FLASH |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 105 | #else /* CONFIG_MONITOR_IS_IN_RAM */ |
Jean-Christophe PLAGNIOL-VILLARD | 7e1cda6 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 106 | #define CONFIG_ENV_OFFSET 0x4000 |
| 107 | #define CONFIG_ENV_SECT_SIZE 0x2000 |
Jean-Christophe PLAGNIOL-VILLARD | 53db4cd | 2008-09-10 22:48:04 +0200 | [diff] [blame] | 108 | #define CONFIG_ENV_IS_IN_FLASH |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 109 | #endif /* !CONFIG_MONITOR_IS_IN_RAM */ |
| 110 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 111 | #define CONFIG_SYS_USE_PPCENV /* Environment embedded in sect .ppcenv */ |
Wolfgang Denk | 4ed40bb | 2007-09-16 17:10:04 +0200 | [diff] [blame] | 112 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 113 | #define CONFIG_SYS_PROMPT "=> " |
| 114 | #define CONFIG_SYS_LONGHELP /* undef to save memory */ |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 115 | |
Jon Loeliger | 860435b | 2007-07-04 22:32:32 -0500 | [diff] [blame] | 116 | #if defined(CONFIG_CMD_KGDB) |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 117 | #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ |
Jon Loeliger | 860435b | 2007-07-04 22:32:32 -0500 | [diff] [blame] | 118 | #else |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 119 | #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ |
Jon Loeliger | 860435b | 2007-07-04 22:32:32 -0500 | [diff] [blame] | 120 | #endif |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 121 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 122 | #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */ |
| 123 | #define CONFIG_SYS_MAXARGS 16 /* max number of command args */ |
| 124 | #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */ |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 125 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 126 | #define CONFIG_SYS_LOAD_ADDR 0x00100000 |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 127 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 128 | #define CONFIG_SYS_MEMTEST_START 0x400 |
| 129 | #define CONFIG_SYS_MEMTEST_END 0x380000 |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 130 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 131 | #define CONFIG_SYS_HZ (50000000 / 64) |
| 132 | #define CONFIG_SYS_CLK 100000000 |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 133 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 134 | #define CONFIG_SYS_MBAR 0x40000000 /* Register Base Addrs */ |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 135 | |
| 136 | /* |
| 137 | * Ethernet |
| 138 | */ |
TsiChungLiew | 47dfc1c | 2007-08-15 19:43:20 -0500 | [diff] [blame] | 139 | #define CONFIG_MCFFEC |
| 140 | #ifdef CONFIG_MCFFEC |
TsiChung Liew | b316245 | 2008-03-30 01:22:13 -0500 | [diff] [blame] | 141 | # define CONFIG_MII 1 |
| 142 | # define CONFIG_MII_INIT 1 |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 143 | # define CONFIG_SYS_DISCOVER_PHY |
| 144 | # define CONFIG_SYS_RX_ETH_BUFFER 8 |
| 145 | # define CONFIG_SYS_FAULT_ECHO_LINK_DOWN |
TsiChungLiew | 47dfc1c | 2007-08-15 19:43:20 -0500 | [diff] [blame] | 146 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 147 | # define CONFIG_SYS_FEC0_PINMUX 0 |
| 148 | # define CONFIG_SYS_FEC0_MIIBASE CONFIG_SYS_FEC0_IOBASE |
Wolfgang Denk | a1be476 | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 149 | # define MCFFEC_TOUT_LOOP 50000 |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 150 | /* If CONFIG_SYS_DISCOVER_PHY is not defined - hardcoded */ |
| 151 | # ifndef CONFIG_SYS_DISCOVER_PHY |
TsiChungLiew | 47dfc1c | 2007-08-15 19:43:20 -0500 | [diff] [blame] | 152 | # define FECDUPLEX FULL |
| 153 | # define FECSPEED _100BASET |
| 154 | # else |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 155 | # ifndef CONFIG_SYS_FAULT_ECHO_LINK_DOWN |
| 156 | # define CONFIG_SYS_FAULT_ECHO_LINK_DOWN |
TsiChungLiew | 47dfc1c | 2007-08-15 19:43:20 -0500 | [diff] [blame] | 157 | # endif |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 158 | # endif /* CONFIG_SYS_DISCOVER_PHY */ |
TsiChungLiew | 47dfc1c | 2007-08-15 19:43:20 -0500 | [diff] [blame] | 159 | #endif |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 160 | |
| 161 | /* |
| 162 | * Definitions for initial stack pointer and data area (in DPRAM) |
| 163 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 164 | #define CONFIG_SYS_INIT_RAM_ADDR 0x20000000 |
Wolfgang Denk | 1c2e98e | 2010-10-26 13:32:32 +0200 | [diff] [blame] | 165 | #define CONFIG_SYS_INIT_RAM_SIZE 0x1000 /* Size of used area in internal SRAM */ |
Wolfgang Denk | 0191e47 | 2010-10-26 14:34:52 +0200 | [diff] [blame] | 166 | #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 167 | #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 168 | |
| 169 | /* |
| 170 | * Start addresses for the final memory configuration |
| 171 | * (Set up by the startup code) |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 172 | * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0 |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 173 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 174 | #define CONFIG_SYS_SDRAM_BASE 0x00000000 |
| 175 | #define CONFIG_SYS_SDRAM_SIZE 16 /* SDRAM size in MB */ |
| 176 | #define CONFIG_SYS_FLASH_BASE 0xff800000 |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 177 | |
| 178 | #ifdef CONFIG_MONITOR_IS_IN_RAM |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 179 | #define CONFIG_SYS_MONITOR_BASE 0x20000 |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 180 | #else /* !CONFIG_MONITOR_IS_IN_RAM */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 181 | #define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_FLASH_BASE + 0x400) |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 182 | #endif /* CONFIG_MONITOR_IS_IN_RAM */ |
| 183 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 184 | #define CONFIG_SYS_MONITOR_LEN 0x20000 |
| 185 | #define CONFIG_SYS_MALLOC_LEN (256 << 10) |
| 186 | #define CONFIG_SYS_BOOTPARAMS_LEN (64*1024) |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 187 | |
| 188 | /* |
| 189 | * For booting Linux, the board info and command line data |
| 190 | * have to be in the first 8 MB of memory, since this is |
| 191 | * the maximum mapped by the Linux kernel during initialization ?? |
| 192 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 193 | #define CONFIG_SYS_BOOTMAPSZ (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20)) |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 194 | |
| 195 | /* FLASH organization */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 196 | #define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max number of memory banks */ |
| 197 | #define CONFIG_SYS_MAX_FLASH_SECT 128 /* max number of sectors on one chip */ |
| 198 | #define CONFIG_SYS_FLASH_ERASE_TOUT 1000 |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 199 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 200 | #define CONFIG_SYS_FLASH_SIZE 0x800000 |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 201 | /* |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 202 | * #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1 |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 203 | */ |
| 204 | |
| 205 | /* Cache Configuration */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 206 | #define CONFIG_SYS_CACHELINE_SIZE 16 |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 207 | |
TsiChung Liew | 0ee47d4 | 2010-03-11 22:12:53 -0600 | [diff] [blame] | 208 | #define ICACHE_STATUS (CONFIG_SYS_INIT_RAM_ADDR + \ |
Wolfgang Denk | 1c2e98e | 2010-10-26 13:32:32 +0200 | [diff] [blame] | 209 | CONFIG_SYS_INIT_RAM_SIZE - 8) |
TsiChung Liew | 0ee47d4 | 2010-03-11 22:12:53 -0600 | [diff] [blame] | 210 | #define DCACHE_STATUS (CONFIG_SYS_INIT_RAM_ADDR + \ |
Wolfgang Denk | 1c2e98e | 2010-10-26 13:32:32 +0200 | [diff] [blame] | 211 | CONFIG_SYS_INIT_RAM_SIZE - 4) |
TsiChung Liew | 0ee47d4 | 2010-03-11 22:12:53 -0600 | [diff] [blame] | 212 | #define CONFIG_SYS_ICACHE_INV (CF_CACR_CINV | CF_CACR_INVI) |
| 213 | #define CONFIG_SYS_CACHE_ACR0 (CONFIG_SYS_SDRAM_BASE | \ |
| 214 | CF_ADDRMASK(CONFIG_SYS_SDRAM_SIZE) | \ |
| 215 | CF_ACR_EN | CF_ACR_SM_ALL) |
| 216 | #define CONFIG_SYS_CACHE_ICACR (CF_CACR_CENB | CF_CACR_CINV | \ |
| 217 | CF_CACR_DISD | CF_CACR_INVI | \ |
| 218 | CF_CACR_CEIB | CF_CACR_DCM | \ |
| 219 | CF_CACR_EUSP) |
| 220 | |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 221 | /* Port configuration */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 222 | #define CONFIG_SYS_FECI2C 0xF0 |
Bartlomiej Sieka | d612c9f | 2007-01-23 14:11:22 +0100 | [diff] [blame] | 223 | |
Bartlomiej Sieka | d534418 | 2007-01-23 17:22:06 +0100 | [diff] [blame] | 224 | |
| 225 | /* Dynamic MTD partition support */ |
Stefan Roese | b1423dd | 2009-03-19 13:30:36 +0100 | [diff] [blame] | 226 | #define CONFIG_CMD_MTDPARTS |
Stefan Roese | 5dc958f | 2009-05-12 14:32:58 +0200 | [diff] [blame] | 227 | #define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ |
| 228 | #define CONFIG_FLASH_CFI_MTD |
Bartlomiej Sieka | d534418 | 2007-01-23 17:22:06 +0100 | [diff] [blame] | 229 | #define MTDIDS_DEFAULT "nor0=idmr-0" |
| 230 | |
| 231 | #define MTDPARTS_DEFAULT "mtdparts=idmr-0:128k(u-boot)," \ |
| 232 | "64k(env)," \ |
| 233 | "640k(kernel)," \ |
| 234 | "2m(rootfs)," \ |
| 235 | "-(user)"; |
| 236 | |
Stefan Roese | addc447 | 2007-08-18 14:37:52 +0200 | [diff] [blame] | 237 | #if defined(CONFIG_CMD_MII) |
| 238 | #error "MII commands don't work on iDMR board and should not be enabled." |
| 239 | #endif |
Bartlomiej Sieka | d612c9f | 2007-01-23 14:11:22 +0100 | [diff] [blame] | 240 | |
Bartlomiej Sieka | 8ff81c6 | 2006-12-20 00:27:32 +0100 | [diff] [blame] | 241 | #endif /* _IDMR_H */ |