xref: /openbmc/u-boot/include/configs/omap5_uevm.h (revision 83bf0057)
1 /*
2  * (C) Copyright 2013
3  * Texas Instruments Incorporated.
4  * Sricharan R	  <r.sricharan@ti.com>
5  *
6  * Configuration settings for the TI EVM5430 board.
7  * See ti_omap5_common.h for omap5 common settings.
8  *
9  * SPDX-License-Identifier:	GPL-2.0+
10  */
11 
12 #ifndef __CONFIG_OMAP5_EVM_H
13 #define __CONFIG_OMAP5_EVM_H
14 
15 #ifndef CONFIG_SPL_BUILD
16 /* Define the default GPT table for eMMC */
17 #define PARTS_DEFAULT \
18 	"uuid_disk=${uuid_gpt_disk};" \
19 	"name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs}"
20 #endif
21 
22 #define DFU_ALT_INFO_MMC \
23 	"dfu_alt_info_mmc=" \
24 	"boot part 0 1;" \
25 	"rootfs part 0 2;" \
26 	"MLO fat 0 1;" \
27 	"MLO.raw raw 0x100 0x100;" \
28 	"u-boot.img.raw raw 0x300 0x400;" \
29 	"spl-os-args.raw raw 0x80 0x80;" \
30 	"spl-os-image.raw raw 0x900 0x2000;" \
31 	"spl-os-args fat 0 1;" \
32 	"spl-os-image fat 0 1;" \
33 	"u-boot.img fat 0 1;" \
34 	"uEnv.txt fat 0 1\0"
35 
36 #define DFU_ALT_INFO_EMMC \
37 	"dfu_alt_info_emmc=" \
38 	"rawemmc raw 0 3751936;" \
39 	"boot part 1 1;" \
40 	"rootfs part 1 2;" \
41 	"MLO fat 1 1;" \
42 	"MLO.raw raw 0x100 0x100;" \
43 	"u-boot.img.raw raw 0x300 0x400;" \
44 	"spl-os-args.raw raw 0x80 0x80;" \
45 	"spl-os-image.raw raw 0x900 0x2000;" \
46 	"spl-os-args fat 1 1;" \
47 	"spl-os-image fat 1 1;" \
48 	"u-boot.img fat 1 1;" \
49 	"uEnv.txt fat 1 1\0"
50 
51 #define DFU_ALT_INFO_RAM \
52 	"dfu_alt_info_ram=" \
53 	"kernel ram 0x80200000 0x4000000;" \
54 	"fdt ram 0x80f80000 0x80000;" \
55 	"ramdisk ram 0x81000000 0x4000000\0"
56 
57 #define DFUARGS \
58 	"dfu_bufsiz=0x10000\0" \
59 	DFU_ALT_INFO_MMC \
60 	DFU_ALT_INFO_EMMC \
61 	DFU_ALT_INFO_RAM
62 
63 #include <configs/ti_omap5_common.h>
64 
65 #define CONFIG_CONS_INDEX		3
66 #define CONFIG_SYS_NS16550_COM3		UART3_BASE
67 #define CONFIG_BAUDRATE			115200
68 
69 #define CONFIG_MISC_INIT_R
70 /* MMC ENV related defines */
71 #define CONFIG_ENV_IS_IN_MMC
72 #define CONFIG_SYS_MMC_ENV_DEV		1	/* SLOT2: eMMC(1) */
73 #define CONFIG_ENV_SIZE			(128 << 10)
74 #define CONFIG_ENV_OFFSET		0xE0000
75 #define CONFIG_ENV_OFFSET_REDUND	(CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
76 #define CONFIG_SYS_REDUNDAND_ENVIRONMENT
77 
78 /* Enhance our eMMC support / experience. */
79 #define CONFIG_CMD_GPT
80 #define CONFIG_EFI_PARTITION
81 #define CONFIG_HSMMC2_8BIT
82 #define CONFIG_SUPPORT_EMMC_BOOT
83 
84 /* Required support for the TCA642X GPIO we have on the uEVM */
85 #define CONFIG_TCA642X
86 #define CONFIG_CMD_TCA642X
87 #define CONFIG_SYS_I2C_TCA642X_BUS_NUM 4
88 #define CONFIG_SYS_I2C_TCA642X_ADDR 0x22
89 
90 /* USB UHH support options */
91 #define CONFIG_CMD_USB
92 #define CONFIG_USB_HOST
93 #define CONFIG_USB_EHCI
94 #define CONFIG_USB_EHCI_OMAP
95 #define CONFIG_USB_STORAGE
96 #define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS 3
97 #define CONFIG_EHCI_HCD_INIT_AFTER_RESET
98 
99 #define CONFIG_OMAP_EHCI_PHY2_RESET_GPIO 80
100 #define CONFIG_OMAP_EHCI_PHY3_RESET_GPIO 79
101 
102 /* USB GADGET */
103 #define CONFIG_USB_DWC3_PHY_OMAP
104 #define CONFIG_USB_DWC3_OMAP
105 #define CONFIG_USB_DWC3
106 #define CONFIG_USB_DWC3_GADGET
107 
108 #define CONFIG_USB_GADGET
109 #define CONFIG_USB_GADGET_DOWNLOAD
110 #define CONFIG_USB_GADGET_VBUS_DRAW 2
111 #define CONFIG_G_DNL_MANUFACTURER "Texas Instruments"
112 #define CONFIG_G_DNL_VENDOR_NUM 0x0403
113 #define CONFIG_G_DNL_PRODUCT_NUM 0xBD00
114 #define CONFIG_USB_GADGET_DUALSPEED
115 
116 /* USB Device Firmware Update support */
117 #define CONFIG_USB_FUNCTION_DFU
118 #define CONFIG_DFU_RAM
119 #define CONFIG_CMD_DFU
120 
121 #define CONFIG_DFU_MMC
122 
123 /* Enabled commands */
124 #define CONFIG_CMD_DHCP		/* DHCP Support			*/
125 
126 /* USB Networking options */
127 #define CONFIG_USB_HOST_ETHER
128 #define CONFIG_USB_ETHER_SMSC95XX
129 
130 #define CONSOLEDEV		"ttyO2"
131 
132 /* Max time to hold reset on this board, see doc/README.omap-reset-time */
133 #define CONFIG_OMAP_PLATFORM_RESET_TIME_MAX_USEC	16296
134 
135 #define CONFIG_CMD_SCSI
136 #define CONFIG_LIBATA
137 #define CONFIG_SCSI_AHCI
138 #define CONFIG_SCSI_AHCI_PLAT
139 #define CONFIG_SYS_SCSI_MAX_SCSI_ID	1
140 #define CONFIG_SYS_SCSI_MAX_LUN		1
141 #define CONFIG_SYS_SCSI_MAX_DEVICE	(CONFIG_SYS_SCSI_MAX_SCSI_ID * \
142 						CONFIG_SYS_SCSI_MAX_LUN)
143 
144 #endif /* __CONFIG_OMAP5_EVM_H */
145