wdenk | 62cb5cf | 2005-05-19 22:46:33 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2005 |
| 3 | * Greg Ungerer <greg.ungerer@opengear.com>. |
| 4 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 5 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 6 | * SPDX-License-Identifier: GPL-2.0+ |
wdenk | 62cb5cf | 2005-05-19 22:46:33 +0000 | [diff] [blame] | 7 | */ |
| 8 | #ifndef __CONFIG_H |
| 9 | #define __CONFIG_H |
| 10 | |
| 11 | /* |
| 12 | * High Level Configuration Options |
| 13 | * (easy to change) |
| 14 | */ |
| 15 | #define CONFIG_KS8695 1 /* it is a KS8695 CPU */ |
| 16 | #define CONFIG_CM41xx 1 /* it is an OpenGear CM41xx boad */ |
| 17 | |
wdenk | 62cb5cf | 2005-05-19 22:46:33 +0000 | [diff] [blame] | 18 | #define CONFIG_CMDLINE_TAG 1 /* enable passing of ATAGs */ |
| 19 | #define CONFIG_SETUP_MEMORY_TAGS 1 |
| 20 | #define CONFIG_INITRD_TAG 1 |
| 21 | |
wdenk | f593f46 | 2005-05-23 10:49:50 +0000 | [diff] [blame] | 22 | #define CONFIG_DRIVER_KS8695ETH /* use KS8695 ethernet driver */ |
| 23 | |
wdenk | 62cb5cf | 2005-05-19 22:46:33 +0000 | [diff] [blame] | 24 | /* |
| 25 | * Size of malloc() pool |
| 26 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 27 | #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 128*1024) |
wdenk | 62cb5cf | 2005-05-19 22:46:33 +0000 | [diff] [blame] | 28 | |
| 29 | /* |
| 30 | * Hardware drivers |
| 31 | */ |
| 32 | |
| 33 | /* |
| 34 | * select serial console configuration |
| 35 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 68a8756 | 2008-09-10 22:48:00 +0200 | [diff] [blame] | 36 | #define CONFIG_ENV_IS_NOWHERE |
Jean-Christophe PLAGNIOL-VILLARD | b2c4d40 | 2009-03-29 23:01:42 +0200 | [diff] [blame] | 37 | #define CONFIG_KS8695_SERIAL |
wdenk | 62cb5cf | 2005-05-19 22:46:33 +0000 | [diff] [blame] | 38 | #define CONFIG_SERIAL1 |
| 39 | #define CONFIG_CONS_INDEX 1 |
| 40 | #define CONFIG_BAUDRATE 115200 |
Jon Loeliger | 37ec35e | 2007-07-04 22:31:56 -0500 | [diff] [blame] | 41 | |
| 42 | /* |
Jon Loeliger | e54e77a | 2007-07-10 09:29:01 -0500 | [diff] [blame] | 43 | * BOOTP options |
| 44 | */ |
| 45 | #define CONFIG_BOOTP_BOOTFILESIZE |
| 46 | #define CONFIG_BOOTP_BOOTPATH |
| 47 | #define CONFIG_BOOTP_GATEWAY |
| 48 | #define CONFIG_BOOTP_HOSTNAME |
| 49 | |
| 50 | |
| 51 | /* |
Jon Loeliger | 37ec35e | 2007-07-04 22:31:56 -0500 | [diff] [blame] | 52 | * Command line configuration. |
| 53 | */ |
| 54 | #include <config_cmd_default.h> |
| 55 | |
Mike Frysinger | 78dcaf4 | 2009-01-28 19:08:14 -0500 | [diff] [blame] | 56 | #undef CONFIG_CMD_SAVEENV |
Jon Loeliger | 37ec35e | 2007-07-04 22:31:56 -0500 | [diff] [blame] | 57 | |
wdenk | 62cb5cf | 2005-05-19 22:46:33 +0000 | [diff] [blame] | 58 | |
| 59 | #define CONFIG_BOOTDELAY 0 |
| 60 | #define CONFIG_BOOTARGS "mem=32M console=ttyAM0,115200" |
| 61 | #define CONFIG_BOOTCOMMAND "gofsk 0x02200000" |
| 62 | |
| 63 | /* |
| 64 | * Miscellaneous configurable options |
| 65 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 66 | #define CONFIG_SYS_LONGHELP /* undef to save memory */ |
| 67 | #define CONFIG_SYS_PROMPT "boot > " /* Monitor Command Prompt */ |
| 68 | #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ |
| 69 | #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */ |
| 70 | #define CONFIG_SYS_MAXARGS 16 /* max number of command args */ |
| 71 | #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */ |
wdenk | 62cb5cf | 2005-05-19 22:46:33 +0000 | [diff] [blame] | 72 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 73 | #define CONFIG_SYS_MEMTEST_START 0x00800000 /* memtest works on */ |
| 74 | #define CONFIG_SYS_MEMTEST_END 0x01000000 /* 16 MB in DRAM */ |
wdenk | 62cb5cf | 2005-05-19 22:46:33 +0000 | [diff] [blame] | 75 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 76 | #define CONFIG_SYS_LOAD_ADDR 0x00008000 /* default load address */ |
wdenk | 62cb5cf | 2005-05-19 22:46:33 +0000 | [diff] [blame] | 77 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 78 | #define CONFIG_SYS_HZ (1000) /* 1ms resolution ticks */ |
wdenk | 62cb5cf | 2005-05-19 22:46:33 +0000 | [diff] [blame] | 79 | |
| 80 | /*----------------------------------------------------------------------- |
wdenk | 62cb5cf | 2005-05-19 22:46:33 +0000 | [diff] [blame] | 81 | * Physical Memory Map |
| 82 | */ |
| 83 | #define CONFIG_NR_DRAM_BANKS 1 /* we have 1 bank of DRAM */ |
| 84 | #define PHYS_SDRAM_1 0x00000000 /* SDRAM Bank #1 */ |
| 85 | #define PHYS_SDRAM_1_SIZE 0x02000000 /* 32 MB */ |
Greg Ungerer | 93840ee | 2011-09-09 22:23:18 +1000 | [diff] [blame] | 86 | #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1 |
| 87 | |
| 88 | #define CONFIG_SYS_INIT_SP_ADDR 0x00020000 /* lowest 128k of RAM */ |
wdenk | 62cb5cf | 2005-05-19 22:46:33 +0000 | [diff] [blame] | 89 | |
| 90 | #define PHYS_FLASH_1 0x02000000 /* Flash Bank #1 */ |
| 91 | #define PHYS_FLASH_SECT_SIZE 0x00020000 /* 128 KB sectors (x1) */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 92 | #define CONFIG_SYS_FLASH_BASE PHYS_FLASH_1 |
wdenk | 62cb5cf | 2005-05-19 22:46:33 +0000 | [diff] [blame] | 93 | |
| 94 | /*----------------------------------------------------------------------- |
| 95 | * FLASH and environment organization |
| 96 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 97 | #define CONFIG_SYS_MAX_FLASH_BANKS 2 /* max number of flash banks */ |
| 98 | #define CONFIG_SYS_MAX_FLASH_SECT (128) /* max number of sectors on one chip */ |
wdenk | 62cb5cf | 2005-05-19 22:46:33 +0000 | [diff] [blame] | 99 | |
| 100 | /* timeout values are in ticks */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 101 | #define CONFIG_SYS_FLASH_ERASE_TOUT (20*CONFIG_SYS_HZ) /* Timeout for Flash Erase */ |
| 102 | #define CONFIG_SYS_FLASH_WRITE_TOUT (20*CONFIG_SYS_HZ) /* Timeout for Flash Write */ |
wdenk | 62cb5cf | 2005-05-19 22:46:33 +0000 | [diff] [blame] | 103 | |
Jean-Christophe PLAGNIOL-VILLARD | 7e1cda6 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 104 | #define CONFIG_ENV_SIZE 0x20000 /* Total Size of Environment */ |
wdenk | 62cb5cf | 2005-05-19 22:46:33 +0000 | [diff] [blame] | 105 | |
| 106 | #endif /* __CONFIG_H */ |