xref: /openbmc/u-boot/include/configs/ot1200.h (revision 06fd66a4)
1 /*
2  * Copyright (C) 2010-2013 Freescale Semiconductor, Inc.
3  * Copyright (C) 2014 Bachmann electronic GmbH
4  *
5  * SPDX-License-Identifier:     GPL-2.0+
6  */
7 
8 #ifndef __CONFIG_H
9 #define __CONFIG_H
10 
11 #include "mx6_common.h"
12 #define CONFIG_MX6
13 #define CONFIG_DISPLAY_CPUINFO
14 #define CONFIG_DISPLAY_BOARDINFO
15 
16 #include <asm/arch/imx-regs.h>
17 #include <asm/imx-common/gpio.h>
18 
19 #define CONFIG_CMDLINE_TAG
20 #define CONFIG_SETUP_MEMORY_TAGS
21 #define CONFIG_INITRD_TAG
22 #define CONFIG_REVISION_TAG
23 #define CONFIG_SYS_GENERIC_BOARD
24 
25 /* Size of malloc() pool */
26 #define CONFIG_SYS_MALLOC_LEN           (10 * 1024 * 1024)
27 
28 #define CONFIG_BOARD_EARLY_INIT_F
29 #define CONFIG_MISC_INIT_R
30 #define CONFIG_MXC_GPIO
31 
32 /* FUSE Configs */
33 #define CONFIG_CMD_FUSE
34 #define CONFIG_MXC_OCOTP
35 
36 /* UART Configs */
37 #define CONFIG_MXC_UART
38 #define CONFIG_MXC_UART_BASE           UART1_BASE
39 
40 /* SF Configs */
41 #define CONFIG_CMD_SF
42 #define CONFIG_SPI
43 #define CONFIG_SPI_FLASH
44 #define CONFIG_SPI_FLASH_STMICRO
45 #define CONFIG_SPI_FLASH_WINBOND
46 #define CONFIG_SPI_FLASH_MACRONIX
47 #define CONFIG_SPI_FLASH_SST
48 #define CONFIG_MXC_SPI
49 #define CONFIG_SF_DEFAULT_BUS  2
50 #define CONFIG_SF_DEFAULT_CS   0
51 #define CONFIG_SF_DEFAULT_SPEED 25000000
52 #define CONFIG_SF_DEFAULT_MODE (SPI_MODE_0)
53 
54 /* IO expander */
55 #define CONFIG_PCA953X
56 #define CONFIG_SYS_I2C_PCA953X_ADDR	0x20
57 #define CONFIG_SYS_I2C_PCA953X_WIDTH	{ {0x20, 16} }
58 #define CONFIG_CMD_PCA953X
59 #define CONFIG_CMD_PCA953X_INFO
60 
61 /* I2C Configs */
62 #define CONFIG_CMD_I2C
63 #define CONFIG_SYS_I2C
64 #define CONFIG_SYS_I2C_MXC
65 #define CONFIG_SYS_I2C_SPEED            100000
66 
67 /* OCOTP Configs */
68 #define CONFIG_CMD_IMXOTP
69 #define CONFIG_IMX_OTP
70 #define IMX_OTP_BASE                    OCOTP_BASE_ADDR
71 #define IMX_OTP_ADDR_MAX                0x7F
72 #define IMX_OTP_DATA_ERROR_VAL          0xBADABADA
73 #define IMX_OTPWRITE_ENABLED
74 
75 /* MMC Configs */
76 #define CONFIG_FSL_ESDHC
77 #define CONFIG_FSL_USDHC
78 #define CONFIG_SYS_FSL_ESDHC_ADDR      0
79 #define CONFIG_SYS_FSL_USDHC_NUM       2
80 
81 #define CONFIG_MMC
82 #define CONFIG_CMD_MMC
83 #define CONFIG_GENERIC_MMC
84 #define CONFIG_BOUNCE_BUFFER
85 
86 /* USB Configs */
87 #define CONFIG_CMD_USB
88 #define CONFIG_USB_STORAGE
89 #define CONFIG_USB_EHCI
90 #define CONFIG_USB_EHCI_MX6
91 #define CONFIG_MXC_USB_PORTSC   (PORT_PTS_UTMI | PORT_PTS_PTW)
92 #define CONFIG_USB_MAX_CONTROLLER_COUNT 2
93 
94 #ifdef CONFIG_MX6Q
95 #define CONFIG_CMD_SATA
96 #endif
97 
98 /*
99  * SATA Configs
100  */
101 #ifdef CONFIG_CMD_SATA
102 #define CONFIG_DWC_AHSATA
103 #define CONFIG_SYS_SATA_MAX_DEVICE	1
104 #define CONFIG_DWC_AHSATA_PORT_ID	0
105 #define CONFIG_DWC_AHSATA_BASE_ADDR	SATA_ARB_BASE_ADDR
106 #define CONFIG_LBA48
107 #define CONFIG_LIBATA
108 #endif
109 
110 
111 /* SPL */
112 #ifdef CONFIG_SPL
113 #include "imx6_spl.h"
114 #define CONFIG_SPL_SPI_SUPPORT
115 #define CONFIG_SPL_LIBCOMMON_SUPPORT
116 #define CONFIG_SPL_SPI_FLASH_SUPPORT
117 #define CONFIG_SYS_SPI_U_BOOT_OFFS     (64 * 1024)
118 #define CONFIG_SPL_SPI_LOAD
119 #endif
120 
121 #define CONFIG_CMD_PING
122 #define CONFIG_CMD_DHCP
123 #define CONFIG_CMD_MII
124 #define CONFIG_CMD_NET
125 #define CONFIG_FEC_MXC
126 #define CONFIG_MII
127 #define IMX_FEC_BASE                    ENET_BASE_ADDR
128 #define CONFIG_FEC_XCV_TYPE             MII100
129 #define CONFIG_ETHPRIME                 "FEC"
130 #define CONFIG_FEC_MXC_PHYADDR          0x5
131 #define CONFIG_PHYLIB
132 #define CONFIG_PHY_SMSC
133 
134 #ifndef CONFIG_SPL
135 #define CONFIG_CMD_EEPROM
136 #define CONFIG_ENV_EEPROM_IS_ON_I2C
137 #define CONFIG_SYS_I2C_EEPROM_BUS             1
138 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN        1
139 #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS     3
140 #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 5
141 #define CONFIG_SYS_I2C_MULTI_EEPROMS
142 #endif
143 
144 /* Miscellaneous commands */
145 #define CONFIG_CMD_BMODE
146 #define CONFIG_CMD_SETEXPR
147 
148 /* allow to overwrite serial and ethaddr */
149 #define CONFIG_ENV_OVERWRITE
150 #define CONFIG_CONS_INDEX              1
151 #define CONFIG_BAUDRATE                115200
152 
153 /* Command definition */
154 #include <config_cmd_default.h>
155 
156 #undef CONFIG_CMD_IMLS
157 
158 #define CONFIG_BOOTDELAY               2
159 
160 #define CONFIG_PREBOOT                 ""
161 
162 #define CONFIG_LOADADDR                0x12000000
163 #define CONFIG_SYS_TEXT_BASE           0x17800000
164 
165 /* Miscellaneous configurable options */
166 #define CONFIG_SYS_LONGHELP
167 #define CONFIG_SYS_HUSH_PARSER
168 #define CONFIG_SYS_CBSIZE              1024
169 
170 /* Print Buffer Size */
171 #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
172 #define CONFIG_SYS_MAXARGS             16
173 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
174 
175 #define CONFIG_SYS_LOAD_ADDR           CONFIG_LOADADDR
176 
177 #define CONFIG_CMDLINE_EDITING
178 
179 /* Physical Memory Map */
180 #define CONFIG_NR_DRAM_BANKS           1
181 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
182 
183 #define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
184 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
185 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
186 
187 #define CONFIG_SYS_INIT_SP_OFFSET \
188 	(CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
189 #define CONFIG_SYS_INIT_SP_ADDR \
190 	(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
191 
192 /* FLASH and environment organization */
193 #define CONFIG_SYS_NO_FLASH
194 
195 #define CONFIG_ENV_IS_IN_SPI_FLASH
196 #define CONFIG_ENV_SIZE                 (64 * 1024)	/* 64 kb */
197 #define CONFIG_ENV_OFFSET               (1024 * 1024)
198 /* M25P16 has an erase size of 64 KiB */
199 #define CONFIG_ENV_SECT_SIZE            (64 * 1024)
200 #define CONFIG_ENV_SPI_BUS              CONFIG_SF_DEFAULT_BUS
201 #define CONFIG_ENV_SPI_CS               CONFIG_SF_DEFAULT_CS
202 #define CONFIG_ENV_SPI_MODE             CONFIG_SF_DEFAULT_MODE
203 #define CONFIG_ENV_SPI_MAX_HZ           CONFIG_SF_DEFAULT_SPEED
204 
205 #define CONFIG_OF_LIBFDT
206 #define CONFIG_CMD_BOOTZ
207 
208 #ifndef CONFIG_SYS_DCACHE_OFF
209 #define CONFIG_CMD_CACHE
210 #endif
211 
212 #define CONFIG_CMD_BOOTZ
213 #define CONFIG_SUPPORT_RAW_INITRD
214 
215 /* FS Configs */
216 #define CONFIG_CMD_EXT3
217 #define CONFIG_CMD_EXT4
218 #define CONFIG_DOS_PARTITION
219 #define CONFIG_CMD_FS_GENERIC
220 #define CONFIG_LIB_UUID
221 #define CONFIG_CMD_FS_UUID
222 
223 #define CONFIG_BOOTP_SERVERIP
224 #define CONFIG_BOOTP_BOOTFILE
225 
226 #endif         /* __CONFIG_H */
227