Heiko Schocher | 028c79f | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2009 |
| 3 | * Heiko Schocher, DENX Software Engineering, hs@denx.de. |
| 4 | * |
Wolfgang Denk | bd8ec7e | 2013-10-07 13:07:26 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Heiko Schocher | 028c79f | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef __MANROLAND_COMMON_H |
| 9 | #define __MANROLAND_COMMON_H |
| 10 | |
| 11 | /* |
| 12 | * High Level Configuration Options |
| 13 | * (easy to change) |
| 14 | */ |
| 15 | |
Heiko Schocher | 028c79f | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 16 | #define CONFIG_BOARD_EARLY_INIT_R |
| 17 | |
| 18 | /* Partitions */ |
| 19 | #define CONFIG_DOS_PARTITION |
| 20 | |
| 21 | /* |
| 22 | * Command line configuration. |
| 23 | */ |
Heiko Schocher | 028c79f | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 24 | #define CONFIG_CMD_DATE |
| 25 | #define CONFIG_CMD_DISPLAY |
Heiko Schocher | 028c79f | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 26 | #define CONFIG_CMD_EEPROM |
Heiko Schocher | 028c79f | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 27 | #define CONFIG_CMD_DTT |
| 28 | #define CONFIG_CMD_IDE |
Heiko Schocher | 028c79f | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 29 | |
Ilya Yanok | 435a63d | 2010-09-09 23:03:32 +0200 | [diff] [blame] | 30 | /* |
| 31 | * 8-symbol LED display (can be accessed with 'display' command) |
| 32 | */ |
| 33 | #define CONFIG_PDSP188x |
| 34 | |
Heiko Schocher | 028c79f | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 35 | #define CONFIG_TIMESTAMP 1 /* Print image info with timestamp */ |
| 36 | |
| 37 | /* |
| 38 | * Autobooting |
| 39 | */ |
| 40 | #define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */ |
| 41 | |
| 42 | #define CONFIG_PREBOOT "echo;" \ |
| 43 | "echo Type \\\"run flash_nfs\\\" to mount root filesystem over NFS;" \ |
| 44 | "echo" |
| 45 | |
| 46 | #undef CONFIG_BOOTARGS |
| 47 | |
Heiko Schocher | 028c79f | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 48 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 49 | "netdev=eth0\0" \ |
| 50 | "nfsargs=setenv bootargs root=/dev/nfs rw " \ |
| 51 | "nfsroot=${serverip}:${rootpath}\0" \ |
| 52 | "ramargs=setenv bootargs root=/dev/ram rw\0" \ |
| 53 | "addwdt=setenv bootargs ${bootargs} wdt=off\0" \ |
| 54 | "logval=4\0" \ |
| 55 | "addlog=setenv bootargs ${bootargs} loglevel=${logval}\0" \ |
| 56 | "addip=setenv bootargs ${bootargs} " \ |
| 57 | "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \ |
| 58 | ":${hostname}:${netdev}:off panic=1\0" \ |
| 59 | "kernel_addr=ff810000\0" \ |
Marek Vasut | fd5ba89 | 2012-09-23 17:41:23 +0200 | [diff] [blame] | 60 | "fdt_addr="__stringify(CONFIG_SYS_FLASH_BASE)"\0" \ |
Heiko Schocher | 028c79f | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 61 | "flash_nfs=run nfsargs addip addcon addwdt addlog;" \ |
| 62 | "bootm ${kernel_addr} - ${fdt_addr}\0" \ |
| 63 | "rootpath=/opt/eldk/ppc_82xx\0" \ |
| 64 | "kernel_addr_r=300000\0" \ |
| 65 | "fdt_addr_r=200000\0" \ |
Marek Vasut | fd5ba89 | 2012-09-23 17:41:23 +0200 | [diff] [blame] | 66 | "fdt_file=" __stringify(CONFIG_HOSTNAME) "/" \ |
| 67 | __stringify(CONFIG_HOSTNAME) ".dtb\0" \ |
| 68 | "kernel_file=" __stringify(CONFIG_HOSTNAME) "/uImage \0" \ |
Heiko Schocher | 028c79f | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 69 | "load_fdt=tftp ${fdt_addr_r} ${fdt_file};\0" \ |
| 70 | "load_kernel=tftp ${kernel_addr_r} ${kernel_file};\0" \ |
| 71 | "addcon=setenv bootargs ${bootargs} console=ttyPSC0,${baudrate}\0"\ |
| 72 | "net_nfs=run load_fdt load_kernel; " \ |
| 73 | "run nfsargs addip addcon addwdt addlog;" \ |
| 74 | "bootm ${kernel_addr_r} - ${fdt_addr_r}\0" \ |
Marek Vasut | fd5ba89 | 2012-09-23 17:41:23 +0200 | [diff] [blame] | 75 | "u-boot=" __stringify(CONFIG_HOSTNAME) "/u-boot.bin \0" \ |
Heiko Schocher | 028c79f | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 76 | "u-boot_addr_r=200000\0" \ |
| 77 | "load=tftp ${u-boot_addr_r} ${u-boot}\0" \ |
Marek Vasut | fd5ba89 | 2012-09-23 17:41:23 +0200 | [diff] [blame] | 78 | "update=protect off " __stringify(CONFIG_SYS_TEXT_BASE) " +${filesize};"\ |
| 79 | "erase " __stringify(CONFIG_SYS_TEXT_BASE) " +${filesize};"\ |
| 80 | "cp.b ${u-boot_addr_r} " __stringify(CONFIG_SYS_TEXT_BASE) \ |
Heiko Schocher | 028c79f | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 81 | " ${filesize};" \ |
Marek Vasut | fd5ba89 | 2012-09-23 17:41:23 +0200 | [diff] [blame] | 82 | "protect on " __stringify(CONFIG_SYS_TEXT_BASE) " +${filesize}\0"\ |
Heiko Schocher | 028c79f | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 83 | "" |
| 84 | |
| 85 | #define CONFIG_BOOTCOMMAND "run net_nfs" |
| 86 | |
| 87 | #define CONFIG_MISC_INIT_R 1 |
| 88 | |
| 89 | /* |
| 90 | * Miscellaneous configurable options |
| 91 | */ |
| 92 | #define CONFIG_SYS_LONGHELP /* undef to save memory */ |
Heiko Schocher | 028c79f | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 93 | #if defined(CONFIG_CMD_KGDB) |
| 94 | #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ |
| 95 | #else |
| 96 | #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ |
| 97 | #endif |
| 98 | #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) |
| 99 | #define CONFIG_SYS_MAXARGS 16 /* max number of command args*/ |
| 100 | #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE |
Heiko Schocher | 1566065 | 2009-12-03 11:20:42 +0100 | [diff] [blame] | 101 | #define CONFIG_CMDLINE_EDITING 1 /* add command line history */ |
Heiko Schocher | 1566065 | 2009-12-03 11:20:42 +0100 | [diff] [blame] | 102 | #define CONFIG_AUTO_COMPLETE /* add autocompletion support */ |
Heiko Schocher | 028c79f | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 103 | |
| 104 | /* Enable an alternate, more extensive memory test */ |
| 105 | #define CONFIG_SYS_ALT_MEMTEST |
| 106 | |
| 107 | /* |
| 108 | * Enable loopw command. |
| 109 | */ |
Heiko Schocher | 028c79f | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 110 | |
Heiko Schocher | 028c79f | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 111 | #endif /* __MANROLAND_COMMON_H */ |