Dirk Behme | ad9bc8e | 2009-01-28 21:39:58 +0100 | [diff] [blame] | 1 | /* |
Sanjeev Premi | 741de26 | 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 | ad9bc8e | 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 | * |
Wolfgang Denk | 3765b3e | 2013-10-07 13:07:26 +0200 | [diff] [blame] | 14 | * SPDX-License-Identifier: GPL-2.0+ |
Dirk Behme | ad9bc8e | 2009-01-28 21:39:58 +0100 | [diff] [blame] | 15 | */ |
| 16 | |
Sanjeev Premi | 741de26 | 2011-10-25 06:11:29 +0000 | [diff] [blame] | 17 | #ifndef __OMAP3EVM_CONFIG_H |
| 18 | #define __OMAP3EVM_CONFIG_H |
| 19 | |
| 20 | #include <asm/arch/cpu.h> |
Nishanth Menon | 987ec58 | 2015-03-09 17:12:04 -0500 | [diff] [blame] | 21 | #include <asm/arch/omap.h> |
Sanjeev Premi | 741de26 | 2011-10-25 06:11:29 +0000 | [diff] [blame] | 22 | |
Sanjeev Premi | 741de26 | 2011-10-25 06:11:29 +0000 | [diff] [blame] | 23 | /* ---------------------------------------------------------------------------- |
Bin Meng | a187559 | 2016-02-05 19:30:11 -0800 | [diff] [blame] | 24 | * Supported U-Boot commands |
Sanjeev Premi | 741de26 | 2011-10-25 06:11:29 +0000 | [diff] [blame] | 25 | * ---------------------------------------------------------------------------- |
| 26 | */ |
Tom Rini | 1ee6d31 | 2012-05-21 11:20:47 +0000 | [diff] [blame] | 27 | |
Sanjeev Premi | 3970884 | 2011-10-25 06:11:30 +0000 | [diff] [blame] | 28 | #define CONFIG_CMD_JFFS2 |
Sanjeev Premi | 741de26 | 2011-10-25 06:11:29 +0000 | [diff] [blame] | 29 | |
Sanjeev Premi | 3970884 | 2011-10-25 06:11:30 +0000 | [diff] [blame] | 30 | #define CONFIG_CMD_NAND |
Sanjeev Premi | 741de26 | 2011-10-25 06:11:29 +0000 | [diff] [blame] | 31 | |
Sanjeev Premi | 741de26 | 2011-10-25 06:11:29 +0000 | [diff] [blame] | 32 | /* ---------------------------------------------------------------------------- |
Bin Meng | a187559 | 2016-02-05 19:30:11 -0800 | [diff] [blame] | 33 | * Supported U-Boot features |
Sanjeev Premi | 741de26 | 2011-10-25 06:11:29 +0000 | [diff] [blame] | 34 | * ---------------------------------------------------------------------------- |
| 35 | */ |
| 36 | #define CONFIG_SYS_LONGHELP |
Sanjeev Premi | 741de26 | 2011-10-25 06:11:29 +0000 | [diff] [blame] | 37 | |
| 38 | /* Display CPU and Board information */ |
| 39 | #define CONFIG_DISPLAY_CPUINFO |
| 40 | #define CONFIG_DISPLAY_BOARDINFO |
| 41 | |
| 42 | /* Allow to overwrite serial and ethaddr */ |
| 43 | #define CONFIG_ENV_OVERWRITE |
| 44 | |
| 45 | /* Add auto-completion support */ |
| 46 | #define CONFIG_AUTO_COMPLETE |
| 47 | |
| 48 | /* ---------------------------------------------------------------------------- |
| 49 | * Supported hardware |
| 50 | * ---------------------------------------------------------------------------- |
| 51 | */ |
| 52 | |
| 53 | /* MMC */ |
| 54 | #define CONFIG_MMC |
| 55 | #define CONFIG_GENERIC_MMC |
| 56 | #define CONFIG_OMAP_HSMMC |
Tom Rini | 673283f | 2011-11-18 12:48:09 +0000 | [diff] [blame] | 57 | |
| 58 | /* SPL */ |
| 59 | #define CONFIG_SPL_MMC_SUPPORT |
| 60 | #define CONFIG_SPL_FAT_SUPPORT |
| 61 | #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */ |
| 62 | #define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */ |
Paul Kocialkowski | e2ccdf8 | 2014-11-08 23:14:55 +0100 | [diff] [blame] | 63 | #define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1 |
Guillaume GARDET | 205b4f3 | 2014-10-15 17:53:11 +0200 | [diff] [blame] | 64 | #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img" |
Tom Rini | 673283f | 2011-11-18 12:48:09 +0000 | [diff] [blame] | 65 | |
| 66 | /* Partition tables */ |
Sanjeev Premi | 35e3f6d | 2011-11-16 10:20:50 -0500 | [diff] [blame] | 67 | #define CONFIG_EFI_PARTITION |
Tom Rini | 673283f | 2011-11-18 12:48:09 +0000 | [diff] [blame] | 68 | #define CONFIG_DOS_PARTITION |
Sanjeev Premi | 741de26 | 2011-10-25 06:11:29 +0000 | [diff] [blame] | 69 | |
| 70 | /* USB |
| 71 | * |
Paul Kocialkowski | 95de1e2 | 2015-08-04 17:04:06 +0200 | [diff] [blame] | 72 | * Enable CONFIG_USB_MUSB_HCD for Host functionalities MSC, keyboard |
| 73 | * Enable CONFIG_USB_MUSB_UDD for Device functionalities. |
Sanjeev Premi | 741de26 | 2011-10-25 06:11:29 +0000 | [diff] [blame] | 74 | */ |
| 75 | #define CONFIG_USB_OMAP3 |
Paul Kocialkowski | 95de1e2 | 2015-08-04 17:04:06 +0200 | [diff] [blame] | 76 | #define CONFIG_USB_MUSB_HCD |
| 77 | /* #define CONFIG_USB_MUSB_UDC */ |
Sanjeev Premi | 741de26 | 2011-10-25 06:11:29 +0000 | [diff] [blame] | 78 | |
Tom Rini | 673283f | 2011-11-18 12:48:09 +0000 | [diff] [blame] | 79 | /* NAND SPL */ |
| 80 | #define CONFIG_SPL_NAND_SIMPLE |
| 81 | #define CONFIG_SPL_NAND_SUPPORT |
Scott Wood | 6f2f01b | 2012-09-20 19:09:07 -0500 | [diff] [blame] | 82 | #define CONFIG_SPL_NAND_BASE |
| 83 | #define CONFIG_SPL_NAND_DRIVERS |
| 84 | #define CONFIG_SPL_NAND_ECC |
Tom Rini | 673283f | 2011-11-18 12:48:09 +0000 | [diff] [blame] | 85 | #define CONFIG_SYS_NAND_5_ADDR_CYCLE |
| 86 | #define CONFIG_SYS_NAND_PAGE_COUNT 64 |
| 87 | #define CONFIG_SYS_NAND_PAGE_SIZE 2048 |
| 88 | #define CONFIG_SYS_NAND_OOBSIZE 64 |
| 89 | #define CONFIG_SYS_NAND_BLOCK_SIZE (128*1024) |
| 90 | #define CONFIG_SYS_NAND_BAD_BLOCK_POS 0 |
| 91 | #define CONFIG_SYS_NAND_ECCPOS {2, 3, 4, 5, 6, 7, 8, 9,\ |
| 92 | 10, 11, 12, 13} |
| 93 | #define CONFIG_SYS_NAND_ECCSIZE 512 |
| 94 | #define CONFIG_SYS_NAND_ECCBYTES 3 |
pekon gupta | 3f71906 | 2013-11-18 19:03:01 +0530 | [diff] [blame] | 95 | #define CONFIG_NAND_OMAP_ECCSCHEME OMAP_ECC_HAM1_CODE_HW |
Tom Rini | 673283f | 2011-11-18 12:48:09 +0000 | [diff] [blame] | 96 | #define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_TEXT_BASE |
| 97 | #define CONFIG_SYS_NAND_U_BOOT_OFFS 0x80000 |
| 98 | |
Sanjeev Premi | 741de26 | 2011-10-25 06:11:29 +0000 | [diff] [blame] | 99 | /* ----------------------------------------------------------------------------- |
Sanjeev Premi | 3970884 | 2011-10-25 06:11:30 +0000 | [diff] [blame] | 100 | * Include common board configuration |
Sanjeev Premi | 741de26 | 2011-10-25 06:11:29 +0000 | [diff] [blame] | 101 | * ----------------------------------------------------------------------------- |
| 102 | */ |
Sanjeev Premi | 3970884 | 2011-10-25 06:11:30 +0000 | [diff] [blame] | 103 | #include "omap3_evm_common.h" |
Sanjeev Premi | ee8e225 | 2011-10-25 06:11:28 +0000 | [diff] [blame] | 104 | |
| 105 | /* ----------------------------------------------------------------------------- |
| 106 | * Default environment |
| 107 | * ----------------------------------------------------------------------------- |
Tom Rix | fccc0fc | 2009-06-28 12:52:31 -0500 | [diff] [blame] | 108 | */ |
Sanjeev Premi | 136cf92 | 2009-05-15 23:48:37 +0200 | [diff] [blame] | 109 | |
Dirk Behme | ad9bc8e | 2009-01-28 21:39:58 +0100 | [diff] [blame] | 110 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 111 | "loadaddr=0x82000000\0" \ |
Ajay Kumar Gupta | 73c8640 | 2009-11-04 15:58:23 -0600 | [diff] [blame] | 112 | "usbtty=cdc_acm\0" \ |
Vaibhav Hiremath | dcc4f38 | 2011-09-03 21:42:35 -0400 | [diff] [blame] | 113 | "mmcdev=0\0" \ |
Sanjeev Premi | effeda5 | 2011-09-23 05:25:28 +0000 | [diff] [blame] | 114 | "console=ttyO0,115200n8\0" \ |
Dirk Behme | ad9bc8e | 2009-01-28 21:39:58 +0100 | [diff] [blame] | 115 | "mmcargs=setenv bootargs console=${console} " \ |
| 116 | "root=/dev/mmcblk0p2 rw " \ |
| 117 | "rootfstype=ext3 rootwait\0" \ |
| 118 | "nandargs=setenv bootargs console=${console} " \ |
| 119 | "root=/dev/mtdblock4 rw " \ |
| 120 | "rootfstype=jffs2\0" \ |
Vaibhav Hiremath | dcc4f38 | 2011-09-03 21:42:35 -0400 | [diff] [blame] | 121 | "loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \ |
Dirk Behme | ad9bc8e | 2009-01-28 21:39:58 +0100 | [diff] [blame] | 122 | "bootscript=echo Running bootscript from mmc ...; " \ |
Wolfgang Denk | 74de7ae | 2009-04-01 23:34:12 +0200 | [diff] [blame] | 123 | "source ${loadaddr}\0" \ |
Vaibhav Hiremath | dcc4f38 | 2011-09-03 21:42:35 -0400 | [diff] [blame] | 124 | "loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage\0" \ |
Dirk Behme | ad9bc8e | 2009-01-28 21:39:58 +0100 | [diff] [blame] | 125 | "mmcboot=echo Booting from mmc ...; " \ |
| 126 | "run mmcargs; " \ |
| 127 | "bootm ${loadaddr}\0" \ |
| 128 | "nandboot=echo Booting from nand ...; " \ |
| 129 | "run nandargs; " \ |
| 130 | "onenand read ${loadaddr} 280000 400000; " \ |
| 131 | "bootm ${loadaddr}\0" \ |
| 132 | |
| 133 | #define CONFIG_BOOTCOMMAND \ |
Andrew Bradford | 6696811 | 2012-10-01 05:06:52 +0000 | [diff] [blame] | 134 | "mmc dev ${mmcdev}; if mmc rescan; then " \ |
Dirk Behme | ad9bc8e | 2009-01-28 21:39:58 +0100 | [diff] [blame] | 135 | "if run loadbootscript; then " \ |
| 136 | "run bootscript; " \ |
| 137 | "else " \ |
| 138 | "if run loaduimage; then " \ |
| 139 | "run mmcboot; " \ |
| 140 | "else run nandboot; " \ |
| 141 | "fi; " \ |
| 142 | "fi; " \ |
| 143 | "else run nandboot; fi" |
| 144 | |
Sanjeev Premi | 741de26 | 2011-10-25 06:11:29 +0000 | [diff] [blame] | 145 | #endif /* __OMAP3EVM_CONFIG_H */ |