Dirk Behme | bb732be | 2009-01-28 21:39:58 +0100 | [diff] [blame] | 1 | /* |
Sanjeev Premi | 22ad102 | 2011-10-25 06:11:29 +0000 | [diff] [blame] | 2 | * Configuration settings for the TI OMAP3 EVM board. |
| 3 | * |
| 4 | * Copyright (C) 2006-2011 Texas Instruments Incorporated - http://www.ti.com/ |
| 5 | * |
Dirk Behme | bb732be | 2009-01-28 21:39:58 +0100 | [diff] [blame] | 6 | * Author : |
| 7 | * Manikandan Pillai <mani.pillai@ti.com> |
| 8 | * Derived from Beagle Board and 3430 SDP code by |
| 9 | * Richard Woodruff <r-woodruff2@ti.com> |
| 10 | * Syed Mohammed Khasim <khasim@ti.com> |
| 11 | * |
| 12 | * Manikandan Pillai <mani.pillai@ti.com> |
| 13 | * |
Dirk Behme | bb732be | 2009-01-28 21:39:58 +0100 | [diff] [blame] | 14 | * See file CREDITS for list of people who contributed to this |
| 15 | * project. |
| 16 | * |
| 17 | * This program is free software; you can redistribute it and/or |
| 18 | * modify it under the terms of the GNU General Public License as |
| 19 | * published by the Free Software Foundation; either version 2 of |
| 20 | * the License, or (at your option) any later version. |
| 21 | * |
| 22 | * This program is distributed in the hope that it will be useful, |
| 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 25 | * GNU General Public License for more details. |
| 26 | * |
| 27 | * You should have received a copy of the GNU General Public License |
| 28 | * along with this program; if not, write to the Free Software |
| 29 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 30 | * MA 02111-1307 USA |
| 31 | */ |
Sanjeev Premi | 22ad102 | 2011-10-25 06:11:29 +0000 | [diff] [blame] | 32 | |
| 33 | #ifndef __OMAP3EVM_CONFIG_H |
| 34 | #define __OMAP3EVM_CONFIG_H |
| 35 | |
| 36 | #include <asm/arch/cpu.h> |
| 37 | #include <asm/arch/omap3.h> |
| 38 | |
Sanjeev Premi | 22ad102 | 2011-10-25 06:11:29 +0000 | [diff] [blame] | 39 | /* ---------------------------------------------------------------------------- |
| 40 | * Supported U-boot commands |
| 41 | * ---------------------------------------------------------------------------- |
| 42 | */ |
Sanjeev Premi | 22ad102 | 2011-10-25 06:11:29 +0000 | [diff] [blame] | 43 | #include <config_cmd_default.h> |
| 44 | |
Tom Rini | 669a38f | 2012-05-21 11:20:47 +0000 | [diff] [blame] | 45 | #define CONFIG_CMD_ASKENV |
| 46 | |
Sanjeev Premi | 593d909 | 2011-10-25 06:11:30 +0000 | [diff] [blame] | 47 | #define CONFIG_CMD_EXT2 |
| 48 | #define CONFIG_CMD_FAT |
| 49 | #define CONFIG_CMD_JFFS2 |
Sanjeev Premi | 22ad102 | 2011-10-25 06:11:29 +0000 | [diff] [blame] | 50 | |
Sanjeev Premi | 593d909 | 2011-10-25 06:11:30 +0000 | [diff] [blame] | 51 | #define CONFIG_CMD_I2C |
| 52 | #define CONFIG_CMD_MMC |
| 53 | #define CONFIG_CMD_NAND |
Sanjeev Premi | 22ad102 | 2011-10-25 06:11:29 +0000 | [diff] [blame] | 54 | #define CONFIG_CMD_DHCP |
| 55 | #define CONFIG_CMD_PING |
| 56 | |
| 57 | #undef CONFIG_CMD_FLASH /* flinfo, erase, protect */ |
| 58 | #undef CONFIG_CMD_FPGA /* FPGA configuration Support */ |
| 59 | #undef CONFIG_CMD_IMI /* iminfo */ |
| 60 | #undef CONFIG_CMD_IMLS /* List all found images */ |
| 61 | |
| 62 | /* ---------------------------------------------------------------------------- |
| 63 | * Supported U-boot features |
| 64 | * ---------------------------------------------------------------------------- |
| 65 | */ |
| 66 | #define CONFIG_SYS_LONGHELP |
| 67 | #define CONFIG_SYS_HUSH_PARSER |
| 68 | |
| 69 | /* Display CPU and Board information */ |
| 70 | #define CONFIG_DISPLAY_CPUINFO |
| 71 | #define CONFIG_DISPLAY_BOARDINFO |
| 72 | |
| 73 | /* Allow to overwrite serial and ethaddr */ |
| 74 | #define CONFIG_ENV_OVERWRITE |
| 75 | |
| 76 | /* Add auto-completion support */ |
| 77 | #define CONFIG_AUTO_COMPLETE |
| 78 | |
| 79 | /* ---------------------------------------------------------------------------- |
| 80 | * Supported hardware |
| 81 | * ---------------------------------------------------------------------------- |
| 82 | */ |
| 83 | |
| 84 | /* MMC */ |
| 85 | #define CONFIG_MMC |
| 86 | #define CONFIG_GENERIC_MMC |
| 87 | #define CONFIG_OMAP_HSMMC |
Tom Rini | 988a235 | 2011-11-18 12:48:09 +0000 | [diff] [blame] | 88 | |
| 89 | /* SPL */ |
| 90 | #define CONFIG_SPL_MMC_SUPPORT |
| 91 | #define CONFIG_SPL_FAT_SUPPORT |
| 92 | #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */ |
| 93 | #define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */ |
| 94 | #define CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION 1 |
| 95 | #define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME "u-boot.img" |
| 96 | |
| 97 | /* Partition tables */ |
Sanjeev Premi | fb270e6 | 2011-11-16 10:20:50 -0500 | [diff] [blame] | 98 | #define CONFIG_EFI_PARTITION |
Tom Rini | 988a235 | 2011-11-18 12:48:09 +0000 | [diff] [blame] | 99 | #define CONFIG_DOS_PARTITION |
Sanjeev Premi | 22ad102 | 2011-10-25 06:11:29 +0000 | [diff] [blame] | 100 | |
| 101 | /* USB |
| 102 | * |
| 103 | * Enable CONFIG_MUSB_HCD for Host functionalities MSC, keyboard |
| 104 | * Enable CONFIG_MUSB_UDD for Device functionalities. |
| 105 | */ |
| 106 | #define CONFIG_USB_OMAP3 |
| 107 | #define CONFIG_MUSB_HCD |
| 108 | /* #define CONFIG_MUSB_UDC */ |
Dirk Behme | bb732be | 2009-01-28 21:39:58 +0100 | [diff] [blame] | 109 | |
Tom Rini | 988a235 | 2011-11-18 12:48:09 +0000 | [diff] [blame] | 110 | /* NAND SPL */ |
| 111 | #define CONFIG_SPL_NAND_SIMPLE |
| 112 | #define CONFIG_SPL_NAND_SUPPORT |
Scott Wood | c352a0c | 2012-09-20 19:09:07 -0500 | [diff] [blame] | 113 | #define CONFIG_SPL_NAND_BASE |
| 114 | #define CONFIG_SPL_NAND_DRIVERS |
| 115 | #define CONFIG_SPL_NAND_ECC |
Tom Rini | 988a235 | 2011-11-18 12:48:09 +0000 | [diff] [blame] | 116 | #define CONFIG_SYS_NAND_5_ADDR_CYCLE |
| 117 | #define CONFIG_SYS_NAND_PAGE_COUNT 64 |
| 118 | #define CONFIG_SYS_NAND_PAGE_SIZE 2048 |
| 119 | #define CONFIG_SYS_NAND_OOBSIZE 64 |
| 120 | #define CONFIG_SYS_NAND_BLOCK_SIZE (128*1024) |
| 121 | #define CONFIG_SYS_NAND_BAD_BLOCK_POS 0 |
| 122 | #define CONFIG_SYS_NAND_ECCPOS {2, 3, 4, 5, 6, 7, 8, 9,\ |
| 123 | 10, 11, 12, 13} |
| 124 | #define CONFIG_SYS_NAND_ECCSIZE 512 |
| 125 | #define CONFIG_SYS_NAND_ECCBYTES 3 |
Tom Rini | 988a235 | 2011-11-18 12:48:09 +0000 | [diff] [blame] | 126 | #define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_TEXT_BASE |
| 127 | #define CONFIG_SYS_NAND_U_BOOT_OFFS 0x80000 |
| 128 | |
Sanjeev Premi | 22ad102 | 2011-10-25 06:11:29 +0000 | [diff] [blame] | 129 | /* ----------------------------------------------------------------------------- |
Sanjeev Premi | 593d909 | 2011-10-25 06:11:30 +0000 | [diff] [blame] | 130 | * Include common board configuration |
Sanjeev Premi | 47b601e | 2011-10-25 06:11:28 +0000 | [diff] [blame] | 131 | * ----------------------------------------------------------------------------- |
Dirk Behme | bb732be | 2009-01-28 21:39:58 +0100 | [diff] [blame] | 132 | */ |
Sanjeev Premi | 593d909 | 2011-10-25 06:11:30 +0000 | [diff] [blame] | 133 | #include "omap3_evm_common.h" |
Dirk Behme | bb732be | 2009-01-28 21:39:58 +0100 | [diff] [blame] | 134 | |
Sanjeev Premi | 47b601e | 2011-10-25 06:11:28 +0000 | [diff] [blame] | 135 | /* ----------------------------------------------------------------------------- |
| 136 | * Default environment |
| 137 | * ----------------------------------------------------------------------------- |
| 138 | */ |
Tom Rini | c9f9b91 | 2012-05-21 11:20:45 +0000 | [diff] [blame] | 139 | #define CONFIG_BOOTDELAY 3 |
Sanjeev Premi | bf2f48c | 2009-05-15 23:48:37 +0200 | [diff] [blame] | 140 | |
Dirk Behme | bb732be | 2009-01-28 21:39:58 +0100 | [diff] [blame] | 141 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 142 | "loadaddr=0x82000000\0" \ |
Ajay Kumar Gupta | bf79379 | 2009-11-04 15:58:23 -0600 | [diff] [blame] | 143 | "usbtty=cdc_acm\0" \ |
Vaibhav Hiremath | 4fdf2b7 | 2011-09-03 21:42:35 -0400 | [diff] [blame] | 144 | "mmcdev=0\0" \ |
Sanjeev Premi | 16822bf | 2011-09-23 05:25:28 +0000 | [diff] [blame] | 145 | "console=ttyO0,115200n8\0" \ |
Dirk Behme | bb732be | 2009-01-28 21:39:58 +0100 | [diff] [blame] | 146 | "mmcargs=setenv bootargs console=${console} " \ |
| 147 | "root=/dev/mmcblk0p2 rw " \ |
| 148 | "rootfstype=ext3 rootwait\0" \ |
| 149 | "nandargs=setenv bootargs console=${console} " \ |
| 150 | "root=/dev/mtdblock4 rw " \ |
| 151 | "rootfstype=jffs2\0" \ |
Vaibhav Hiremath | 4fdf2b7 | 2011-09-03 21:42:35 -0400 | [diff] [blame] | 152 | "loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \ |
Dirk Behme | bb732be | 2009-01-28 21:39:58 +0100 | [diff] [blame] | 153 | "bootscript=echo Running bootscript from mmc ...; " \ |
Wolfgang Denk | 85c25df | 2009-04-01 23:34:12 +0200 | [diff] [blame] | 154 | "source ${loadaddr}\0" \ |
Vaibhav Hiremath | 4fdf2b7 | 2011-09-03 21:42:35 -0400 | [diff] [blame] | 155 | "loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage\0" \ |
Dirk Behme | bb732be | 2009-01-28 21:39:58 +0100 | [diff] [blame] | 156 | "mmcboot=echo Booting from mmc ...; " \ |
| 157 | "run mmcargs; " \ |
| 158 | "bootm ${loadaddr}\0" \ |
| 159 | "nandboot=echo Booting from nand ...; " \ |
| 160 | "run nandargs; " \ |
| 161 | "onenand read ${loadaddr} 280000 400000; " \ |
| 162 | "bootm ${loadaddr}\0" \ |
| 163 | |
| 164 | #define CONFIG_BOOTCOMMAND \ |
Andrew Bradford | e1c7c8a | 2012-10-01 05:06:52 +0000 | [diff] [blame] | 165 | "mmc dev ${mmcdev}; if mmc rescan; then " \ |
Dirk Behme | bb732be | 2009-01-28 21:39:58 +0100 | [diff] [blame] | 166 | "if run loadbootscript; then " \ |
| 167 | "run bootscript; " \ |
| 168 | "else " \ |
| 169 | "if run loaduimage; then " \ |
| 170 | "run mmcboot; " \ |
| 171 | "else run nandboot; " \ |
| 172 | "fi; " \ |
| 173 | "fi; " \ |
| 174 | "else run nandboot; fi" |
| 175 | |
Sanjeev Premi | 22ad102 | 2011-10-25 06:11:29 +0000 | [diff] [blame] | 176 | #endif /* __OMAP3EVM_CONFIG_H */ |