]>
Commit | Line | Data |
---|---|---|
ad9bc8e5 | 1 | /* |
741de266 SP |
2 | * Configuration settings for the TI OMAP3 EVM board. |
3 | * | |
4 | * Copyright (C) 2006-2011 Texas Instruments Incorporated - http://www.ti.com/ | |
5 | * | |
ad9bc8e5 DB |
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 | * | |
3765b3e7 | 14 | * SPDX-License-Identifier: GPL-2.0+ |
ad9bc8e5 DB |
15 | */ |
16 | ||
741de266 SP |
17 | #ifndef __OMAP3EVM_CONFIG_H |
18 | #define __OMAP3EVM_CONFIG_H | |
19 | ||
20 | #include <asm/arch/cpu.h> | |
21 | #include <asm/arch/omap3.h> | |
22 | ||
741de266 SP |
23 | /* ---------------------------------------------------------------------------- |
24 | * Supported U-boot commands | |
25 | * ---------------------------------------------------------------------------- | |
26 | */ | |
741de266 SP |
27 | #include <config_cmd_default.h> |
28 | ||
1ee6d31f TR |
29 | #define CONFIG_CMD_ASKENV |
30 | ||
3970884c SP |
31 | #define CONFIG_CMD_EXT2 |
32 | #define CONFIG_CMD_FAT | |
33 | #define CONFIG_CMD_JFFS2 | |
741de266 | 34 | |
3970884c SP |
35 | #define CONFIG_CMD_I2C |
36 | #define CONFIG_CMD_MMC | |
37 | #define CONFIG_CMD_NAND | |
741de266 SP |
38 | #define CONFIG_CMD_DHCP |
39 | #define CONFIG_CMD_PING | |
40 | ||
41 | #undef CONFIG_CMD_FLASH /* flinfo, erase, protect */ | |
42 | #undef CONFIG_CMD_FPGA /* FPGA configuration Support */ | |
43 | #undef CONFIG_CMD_IMI /* iminfo */ | |
44 | #undef CONFIG_CMD_IMLS /* List all found images */ | |
45 | ||
46 | /* ---------------------------------------------------------------------------- | |
47 | * Supported U-boot features | |
48 | * ---------------------------------------------------------------------------- | |
49 | */ | |
50 | #define CONFIG_SYS_LONGHELP | |
51 | #define CONFIG_SYS_HUSH_PARSER | |
52 | ||
53 | /* Display CPU and Board information */ | |
54 | #define CONFIG_DISPLAY_CPUINFO | |
55 | #define CONFIG_DISPLAY_BOARDINFO | |
56 | ||
57 | /* Allow to overwrite serial and ethaddr */ | |
58 | #define CONFIG_ENV_OVERWRITE | |
59 | ||
60 | /* Add auto-completion support */ | |
61 | #define CONFIG_AUTO_COMPLETE | |
62 | ||
63 | /* ---------------------------------------------------------------------------- | |
64 | * Supported hardware | |
65 | * ---------------------------------------------------------------------------- | |
66 | */ | |
67 | ||
68 | /* MMC */ | |
69 | #define CONFIG_MMC | |
70 | #define CONFIG_GENERIC_MMC | |
71 | #define CONFIG_OMAP_HSMMC | |
673283f3 TR |
72 | |
73 | /* SPL */ | |
74 | #define CONFIG_SPL_MMC_SUPPORT | |
75 | #define CONFIG_SPL_FAT_SUPPORT | |
76 | #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */ | |
77 | #define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */ | |
e2ccdf89 | 78 | #define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1 |
205b4f33 | 79 | #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img" |
673283f3 TR |
80 | |
81 | /* Partition tables */ | |
35e3f6d7 | 82 | #define CONFIG_EFI_PARTITION |
673283f3 | 83 | #define CONFIG_DOS_PARTITION |
741de266 SP |
84 | |
85 | /* USB | |
86 | * | |
87 | * Enable CONFIG_MUSB_HCD for Host functionalities MSC, keyboard | |
88 | * Enable CONFIG_MUSB_UDD for Device functionalities. | |
89 | */ | |
90 | #define CONFIG_USB_OMAP3 | |
91 | #define CONFIG_MUSB_HCD | |
92 | /* #define CONFIG_MUSB_UDC */ | |
93 | ||
673283f3 TR |
94 | /* NAND SPL */ |
95 | #define CONFIG_SPL_NAND_SIMPLE | |
96 | #define CONFIG_SPL_NAND_SUPPORT | |
6f2f01b9 SW |
97 | #define CONFIG_SPL_NAND_BASE |
98 | #define CONFIG_SPL_NAND_DRIVERS | |
99 | #define CONFIG_SPL_NAND_ECC | |
673283f3 TR |
100 | #define CONFIG_SYS_NAND_5_ADDR_CYCLE |
101 | #define CONFIG_SYS_NAND_PAGE_COUNT 64 | |
102 | #define CONFIG_SYS_NAND_PAGE_SIZE 2048 | |
103 | #define CONFIG_SYS_NAND_OOBSIZE 64 | |
104 | #define CONFIG_SYS_NAND_BLOCK_SIZE (128*1024) | |
105 | #define CONFIG_SYS_NAND_BAD_BLOCK_POS 0 | |
106 | #define CONFIG_SYS_NAND_ECCPOS {2, 3, 4, 5, 6, 7, 8, 9,\ | |
107 | 10, 11, 12, 13} | |
108 | #define CONFIG_SYS_NAND_ECCSIZE 512 | |
109 | #define CONFIG_SYS_NAND_ECCBYTES 3 | |
3f719069 | 110 | #define CONFIG_NAND_OMAP_ECCSCHEME OMAP_ECC_HAM1_CODE_HW |
673283f3 TR |
111 | #define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_TEXT_BASE |
112 | #define CONFIG_SYS_NAND_U_BOOT_OFFS 0x80000 | |
113 | ||
741de266 | 114 | /* ----------------------------------------------------------------------------- |
3970884c | 115 | * Include common board configuration |
ee8e2254 | 116 | * ----------------------------------------------------------------------------- |
ad9bc8e5 | 117 | */ |
3970884c | 118 | #include "omap3_evm_common.h" |
ad9bc8e5 | 119 | |
ee8e2254 SP |
120 | /* ----------------------------------------------------------------------------- |
121 | * Default environment | |
122 | * ----------------------------------------------------------------------------- | |
123 | */ | |
2e4b8b5c | 124 | #define CONFIG_BOOTDELAY 3 |
136cf92d | 125 | |
ad9bc8e5 DB |
126 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
127 | "loadaddr=0x82000000\0" \ | |
73c8640e | 128 | "usbtty=cdc_acm\0" \ |
dcc4f38b | 129 | "mmcdev=0\0" \ |
effeda55 | 130 | "console=ttyO0,115200n8\0" \ |
ad9bc8e5 DB |
131 | "mmcargs=setenv bootargs console=${console} " \ |
132 | "root=/dev/mmcblk0p2 rw " \ | |
133 | "rootfstype=ext3 rootwait\0" \ | |
134 | "nandargs=setenv bootargs console=${console} " \ | |
135 | "root=/dev/mtdblock4 rw " \ | |
136 | "rootfstype=jffs2\0" \ | |
dcc4f38b | 137 | "loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \ |
ad9bc8e5 | 138 | "bootscript=echo Running bootscript from mmc ...; " \ |
74de7aef | 139 | "source ${loadaddr}\0" \ |
dcc4f38b | 140 | "loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage\0" \ |
ad9bc8e5 DB |
141 | "mmcboot=echo Booting from mmc ...; " \ |
142 | "run mmcargs; " \ | |
143 | "bootm ${loadaddr}\0" \ | |
144 | "nandboot=echo Booting from nand ...; " \ | |
145 | "run nandargs; " \ | |
146 | "onenand read ${loadaddr} 280000 400000; " \ | |
147 | "bootm ${loadaddr}\0" \ | |
148 | ||
149 | #define CONFIG_BOOTCOMMAND \ | |
66968110 | 150 | "mmc dev ${mmcdev}; if mmc rescan; then " \ |
ad9bc8e5 DB |
151 | "if run loadbootscript; then " \ |
152 | "run bootscript; " \ | |
153 | "else " \ | |
154 | "if run loaduimage; then " \ | |
155 | "run mmcboot; " \ | |
156 | "else run nandboot; " \ | |
157 | "fi; " \ | |
158 | "fi; " \ | |
159 | "else run nandboot; fi" | |
160 | ||
741de266 | 161 | #endif /* __OMAP3EVM_CONFIG_H */ |