Heiko Schocher | 7f625fc | 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 | 3765b3e | 2013-10-07 13:07:26 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Heiko Schocher | 7f625fc | 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 | 7f625fc | 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 | */ |
| 24 | #include <config_cmd_default.h> |
| 25 | |
| 26 | #define CONFIG_CMD_DATE |
| 27 | #define CONFIG_CMD_DISPLAY |
| 28 | #define CONFIG_CMD_DHCP |
| 29 | #define CONFIG_CMD_PING |
| 30 | #define CONFIG_CMD_EEPROM |
| 31 | #define CONFIG_CMD_I2C |
| 32 | #define CONFIG_CMD_DTT |
| 33 | #define CONFIG_CMD_IDE |
| 34 | #define CONFIG_CMD_FAT |
| 35 | #define CONFIG_CMD_NFS |
| 36 | #define CONFIG_CMD_MII |
| 37 | #define CONFIG_CMD_SNTP |
| 38 | |
Ilya Yanok | 7f0d241 | 2010-09-09 23:03:32 +0200 | [diff] [blame] | 39 | /* |
| 40 | * 8-symbol LED display (can be accessed with 'display' command) |
| 41 | */ |
| 42 | #define CONFIG_PDSP188x |
| 43 | |
Heiko Schocher | 7f625fc | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 44 | #define CONFIG_TIMESTAMP 1 /* Print image info with timestamp */ |
| 45 | |
| 46 | /* |
| 47 | * Autobooting |
| 48 | */ |
| 49 | #define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */ |
| 50 | |
| 51 | #define CONFIG_PREBOOT "echo;" \ |
| 52 | "echo Type \\\"run flash_nfs\\\" to mount root filesystem over NFS;" \ |
| 53 | "echo" |
| 54 | |
| 55 | #undef CONFIG_BOOTARGS |
| 56 | |
Heiko Schocher | 7f625fc | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 57 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 58 | "netdev=eth0\0" \ |
| 59 | "nfsargs=setenv bootargs root=/dev/nfs rw " \ |
| 60 | "nfsroot=${serverip}:${rootpath}\0" \ |
| 61 | "ramargs=setenv bootargs root=/dev/ram rw\0" \ |
| 62 | "addwdt=setenv bootargs ${bootargs} wdt=off\0" \ |
| 63 | "logval=4\0" \ |
| 64 | "addlog=setenv bootargs ${bootargs} loglevel=${logval}\0" \ |
| 65 | "addip=setenv bootargs ${bootargs} " \ |
| 66 | "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \ |
| 67 | ":${hostname}:${netdev}:off panic=1\0" \ |
| 68 | "kernel_addr=ff810000\0" \ |
Marek Vasut | 93ea89f | 2012-09-23 17:41:23 +0200 | [diff] [blame] | 69 | "fdt_addr="__stringify(CONFIG_SYS_FLASH_BASE)"\0" \ |
Heiko Schocher | 7f625fc | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 70 | "flash_nfs=run nfsargs addip addcon addwdt addlog;" \ |
| 71 | "bootm ${kernel_addr} - ${fdt_addr}\0" \ |
| 72 | "rootpath=/opt/eldk/ppc_82xx\0" \ |
| 73 | "kernel_addr_r=300000\0" \ |
| 74 | "fdt_addr_r=200000\0" \ |
Marek Vasut | 93ea89f | 2012-09-23 17:41:23 +0200 | [diff] [blame] | 75 | "fdt_file=" __stringify(CONFIG_HOSTNAME) "/" \ |
| 76 | __stringify(CONFIG_HOSTNAME) ".dtb\0" \ |
| 77 | "kernel_file=" __stringify(CONFIG_HOSTNAME) "/uImage \0" \ |
Heiko Schocher | 7f625fc | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 78 | "load_fdt=tftp ${fdt_addr_r} ${fdt_file};\0" \ |
| 79 | "load_kernel=tftp ${kernel_addr_r} ${kernel_file};\0" \ |
| 80 | "addcon=setenv bootargs ${bootargs} console=ttyPSC0,${baudrate}\0"\ |
| 81 | "net_nfs=run load_fdt load_kernel; " \ |
| 82 | "run nfsargs addip addcon addwdt addlog;" \ |
| 83 | "bootm ${kernel_addr_r} - ${fdt_addr_r}\0" \ |
Marek Vasut | 93ea89f | 2012-09-23 17:41:23 +0200 | [diff] [blame] | 84 | "u-boot=" __stringify(CONFIG_HOSTNAME) "/u-boot.bin \0" \ |
Heiko Schocher | 7f625fc | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 85 | "u-boot_addr_r=200000\0" \ |
| 86 | "load=tftp ${u-boot_addr_r} ${u-boot}\0" \ |
Marek Vasut | 93ea89f | 2012-09-23 17:41:23 +0200 | [diff] [blame] | 87 | "update=protect off " __stringify(CONFIG_SYS_TEXT_BASE) " +${filesize};"\ |
| 88 | "erase " __stringify(CONFIG_SYS_TEXT_BASE) " +${filesize};"\ |
| 89 | "cp.b ${u-boot_addr_r} " __stringify(CONFIG_SYS_TEXT_BASE) \ |
Heiko Schocher | 7f625fc | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 90 | " ${filesize};" \ |
Marek Vasut | 93ea89f | 2012-09-23 17:41:23 +0200 | [diff] [blame] | 91 | "protect on " __stringify(CONFIG_SYS_TEXT_BASE) " +${filesize}\0"\ |
Heiko Schocher | 7f625fc | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 92 | "" |
| 93 | |
| 94 | #define CONFIG_BOOTCOMMAND "run net_nfs" |
| 95 | |
| 96 | #define CONFIG_MISC_INIT_R 1 |
| 97 | |
| 98 | /* |
| 99 | * Miscellaneous configurable options |
| 100 | */ |
| 101 | #define CONFIG_SYS_LONGHELP /* undef to save memory */ |
Heiko Schocher | 7f625fc | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 102 | #if defined(CONFIG_CMD_KGDB) |
| 103 | #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ |
| 104 | #else |
| 105 | #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ |
| 106 | #endif |
| 107 | #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) |
| 108 | #define CONFIG_SYS_MAXARGS 16 /* max number of command args*/ |
| 109 | #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE |
Heiko Schocher | 7cb5fc1 | 2009-12-03 11:20:42 +0100 | [diff] [blame] | 110 | #define CONFIG_CMDLINE_EDITING 1 /* add command line history */ |
Heiko Schocher | 7cb5fc1 | 2009-12-03 11:20:42 +0100 | [diff] [blame] | 111 | #define CONFIG_AUTO_COMPLETE /* add autocompletion support */ |
Heiko Schocher | 7f625fc | 2009-09-23 07:56:04 +0200 | [diff] [blame] | 112 | |
| 113 | /* Enable an alternate, more extensive memory test */ |
| 114 | #define CONFIG_SYS_ALT_MEMTEST |
| 115 | |
| 116 | /* |
| 117 | * Enable loopw command. |
| 118 | */ |
| 119 | #define CONFIG_LOOPW |
| 120 | |
| 121 | /* pass open firmware flat tree */ |
| 122 | #define CONFIG_OF_LIBFDT 1 |
| 123 | #define CONFIG_OF_BOARD_SETUP 1 |
| 124 | |
| 125 | #endif /* __MANROLAND_COMMON_H */ |