blob: 66962aa86f86fc86e1cae645d1e9ea05384a0b21 [file] [log] [blame]
Markus Niebelcb07d742014-07-18 16:52:44 +02001/*
2 * Copyright (C) 2013, 2014 Markus Niebel <Markus.Niebel@tq-group.com>
3 *
4 * Configuration settings for the TQ Systems TQMa6<Q,S> module.
5 *
6 * SPDX-License-Identifier: GPL-2.0+
7 */
8
9#ifndef __CONFIG_H
10#define __CONFIG_H
11
Markus Niebel1719d492014-10-23 15:47:05 +020012#define CONFIG_MX6
13
14/* SPL */
15/* #if defined(CONFIG_SPL_BUILD) */
16
17#define CONFIG_SPL_MMC_SUPPORT
18#define CONFIG_SPL_SPI_SUPPORT
19#define CONFIG_SPL_FAT_SUPPORT
20#define CONFIG_SPL_EXT_SUPPORT
21
22/* common IMX6 SPL configuration */
23#include "imx6_spl.h"
24
25/* #endif */
26
Markus Niebelcb07d742014-07-18 16:52:44 +020027#include "mx6_common.h"
28#include <asm/arch/imx-regs.h>
29#include <asm/imx-common/gpio.h>
30#include <linux/sizes.h>
31
Markus Niebelcb07d742014-07-18 16:52:44 +020032#if defined(CONFIG_MX6DL) || defined(CONFIG_MX6S)
33#define PHYS_SDRAM_SIZE (512u * SZ_1M)
34#elif defined(CONFIG_MX6Q) || defined(CONFIG_MX6D)
35#define PHYS_SDRAM_SIZE (1024u * SZ_1M)
36#endif
37
Markus Niebelcb07d742014-07-18 16:52:44 +020038#define CONFIG_DISPLAY_CPUINFO
39#define CONFIG_DISPLAY_BOARDINFO
40#define CONFIG_SYS_GENERIC_BOARD
41
42#define CONFIG_CMDLINE_TAG
43#define CONFIG_SETUP_MEMORY_TAGS
44#define CONFIG_INITRD_TAG
45#define CONFIG_REVISION_TAG
46
47#define CONFIG_BOARD_EARLY_INIT_F
48#define CONFIG_BOARD_LATE_INIT
49
50#define CONFIG_MXC_GPIO
51#define CONFIG_MXC_UART
52
53/* SPI */
54#define CONFIG_CMD_SPI
55#define CONFIG_MXC_SPI
56
57/* SPI Flash */
58#define CONFIG_SPI_FLASH
59#define CONFIG_SPI_FLASH_STMICRO
60
Markus Niebel52835462014-11-18 13:22:54 +010061#define TQMA6_SPI_FLASH_SECTOR_SIZE SZ_64K
62
Markus Niebelcb07d742014-07-18 16:52:44 +020063#define CONFIG_CMD_SF
64#define CONFIG_SF_DEFAULT_BUS 0
Markus Niebel1719d492014-10-23 15:47:05 +020065#define CONFIG_SF_DEFAULT_CS 0
Markus Niebelcb07d742014-07-18 16:52:44 +020066#define CONFIG_SF_DEFAULT_SPEED 50000000
67#define CONFIG_SF_DEFAULT_MODE (SPI_MODE_0)
68
69/* I2C Configs */
70#define CONFIG_CMD_I2C
71#define CONFIG_SYS_I2C
72#define CONFIG_SYS_I2C_MXC
York Sunf8cb1012015-03-20 10:20:40 -070073#define CONFIG_SYS_I2C_MXC_I2C3 /* enable I2C bus 3 */
Markus Niebelcb07d742014-07-18 16:52:44 +020074#define CONFIG_I2C_MULTI_BUS
75#define CONFIG_SYS_I2C_SPEED 100000
76
77/* I2C SYSMON (LM75) */
78#define CONFIG_DTT_LM75
Markus Niebelcb07d742014-07-18 16:52:44 +020079#define CONFIG_DTT_MAX_TEMP 70
80#define CONFIG_DTT_MIN_TEMP -30
81#define CONFIG_DTT_HYSTERESIS 3
82#define CONFIG_CMD_DTT
83
84/* I2C EEPROM (M24C64) */
85#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
86#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
87#define CONFIG_SYS_I2C_EEPROM_PAGE_WRITE_BITS 5 /* 32 Bytes */
88#define CONFIG_SYS_I2C_EEPROM_PAGE_WRITE_DELAY_MS 20
89#define CONFIG_CMD_EEPROM
90
91#define CONFIG_POWER
92#define CONFIG_POWER_I2C
93#define CONFIG_POWER_PFUZE100
94#define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08
95#define TQMA6_PFUZE100_I2C_BUS 2
96
97/* MMC Configs */
98#define CONFIG_FSL_ESDHC
99#define CONFIG_FSL_USDHC
100#define CONFIG_SYS_FSL_ESDHC_ADDR 0
101
102#define CONFIG_MMC
103#define CONFIG_CMD_MMC
104#define CONFIG_GENERIC_MMC
105#define CONFIG_BOUNCE_BUFFER
106
107/* USB Configs */
108#define CONFIG_CMD_USB
109#define CONFIG_USB_EHCI
110#define CONFIG_USB_EHCI_MX6
111#define CONFIG_USB_STORAGE
112#define CONFIG_USB_HOST_ETHER
113#define CONFIG_USB_ETHER_SMSC95XX
Markus Niebelcb07d742014-07-18 16:52:44 +0200114#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
Stefan Roese911b5ea2015-03-12 13:34:29 +0100115#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
116#define CONFIG_EHCI_HCD_INIT_AFTER_RESET /* For OTG port */
Markus Niebelcb07d742014-07-18 16:52:44 +0200117
118/* Fuses */
119#define CONFIG_MXC_OCOTP
120#define CONFIG_CMD_FUSE
121
122#define CONFIG_CMD_EXT2
Stefan Roese911b5ea2015-03-12 13:34:29 +0100123#define CONFIG_CMD_EXT4
124#define CONFIG_CMD_EXT4_WRITE
Markus Niebelcb07d742014-07-18 16:52:44 +0200125#define CONFIG_CMD_FAT
Stefan Roese911b5ea2015-03-12 13:34:29 +0100126#define CONFIG_CMD_FS_GENERIC
Markus Niebelcb07d742014-07-18 16:52:44 +0200127#define CONFIG_DOS_PARTITION
128
129#define CONFIG_CMD_PING
130#define CONFIG_CMD_DHCP
131#define CONFIG_CMD_MII
132#define CONFIG_CMD_NET
133
134#define CONFIG_FEC_MXC
135#define IMX_FEC_BASE ENET_BASE_ADDR
136#define CONFIG_PHYLIB
137#define CONFIG_MII
138
Markus Niebelcb07d742014-07-18 16:52:44 +0200139#define CONFIG_ARP_TIMEOUT 200UL
140/* Network config - Allow larger/faster download for TFTP/NFS */
141#define CONFIG_IP_DEFRAG
142#define CONFIG_TFTP_BLOCKSIZE 4096
143#define CONFIG_NFS_READ_SIZE 4096
144
Markus Niebelcb07d742014-07-18 16:52:44 +0200145/* allow to overwrite serial and ethaddr */
146#define CONFIG_ENV_OVERWRITE
147#define CONFIG_CONS_INDEX 1
148#define CONFIG_BAUDRATE 115200
149
150/* Command definition */
151#include <config_cmd_default.h>
152
153#define CONFIG_CMD_BMODE
154#define CONFIG_CMD_BOOTZ
155#define CONFIG_CMD_ITEST
156#define CONFIG_CMD_SETEXPR
157#undef CONFIG_CMD_IMLS
158
159#define CONFIG_BOOTDELAY 3
160
161#define CONFIG_LOADADDR 0x12000000
162
163/* place code in last 4 MiB of RAM */
164#if defined(CONFIG_MX6DL) || defined(CONFIG_MX6S)
165#define CONFIG_SYS_TEXT_BASE 0x2fc00000
166#elif defined(CONFIG_MX6Q) || defined(CONFIG_MX6D)
167#define CONFIG_SYS_TEXT_BASE 0x4fc00000
168#endif
169
170#define CONFIG_ENV_SIZE (SZ_8K)
171/* Size of malloc() pool */
172#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 2 * SZ_1M)
173
174#if defined(CONFIG_TQMA6X_MMC_BOOT)
175
176#define CONFIG_ENV_IS_IN_MMC
177#define TQMA6_UBOOT_OFFSET SZ_1K
178#define TQMA6_UBOOT_SECTOR_START 0x2
179#define TQMA6_UBOOT_SECTOR_COUNT 0x7fe
180
181#define CONFIG_ENV_OFFSET SZ_1M
182#define CONFIG_SYS_MMC_ENV_DEV 0
183
184#define TQMA6_FDT_OFFSET (2 * SZ_1M)
185#define TQMA6_FDT_SECTOR_START 0x1000
186#define TQMA6_FDT_SECTOR_COUNT 0x800
187
188#define TQMA6_KERNEL_SECTOR_START 0x2000
189#define TQMA6_KERNEL_SECTOR_COUNT 0x2000
190
191#define TQMA6_EXTRA_BOOTDEV_ENV_SETTINGS \
192 "uboot_start="__stringify(TQMA6_UBOOT_SECTOR_START)"\0" \
193 "uboot_size="__stringify(TQMA6_UBOOT_SECTOR_COUNT)"\0" \
194 "fdt_start="__stringify(TQMA6_FDT_SECTOR_START)"\0" \
195 "fdt_size="__stringify(TQMA6_FDT_SECTOR_COUNT)"\0" \
196 "kernel_start="__stringify(TQMA6_KERNEL_SECTOR_START)"\0" \
197 "kernel_size="__stringify(TQMA6_KERNEL_SECTOR_COUNT)"\0" \
198 "mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \
199 "loadimage=mmc dev ${mmcdev}; " \
200 "mmc read ${loadaddr} ${kernel_start} ${kernel_size};\0" \
201 "loadfdt=mmc dev ${mmcdev}; " \
202 "mmc read ${fdt_addr} ${fdt_start} ${fdt_size};\0" \
203 "update_uboot=if tftp ${uboot}; then " \
204 "if itest ${filesize} > 0; then " \
205 "mmc dev ${mmcdev}; mmc rescan; " \
206 "setexpr blkc ${filesize} / 0x200; " \
207 "setexpr blkc ${blkc} + 1; " \
208 "if itest ${blkc} <= ${uboot_size}; then " \
209 "mmc write ${loadaddr} ${uboot_start} " \
210 "${blkc}; " \
211 "fi; " \
212 "fi; fi; " \
213 "setenv filesize; setenv blkc \0" \
214 "update_kernel=run kernel_name; " \
215 "if tftp ${kernel}; then " \
216 "if itest ${filesize} > 0; then " \
217 "mmc dev ${mmcdev}; mmc rescan; " \
218 "setexpr blkc ${filesize} / 0x200; " \
219 "setexpr blkc ${blkc} + 1; " \
220 "if itest ${blkc} <= ${kernel_size}; then " \
221 "mmc write ${loadaddr} " \
222 "${kernel_start} ${blkc}; " \
223 "fi; " \
224 "fi; " \
225 "fi; " \
226 "setenv filesize; setenv blkc \0" \
227 "update_fdt=if tftp ${fdt_file}; then " \
228 "if itest ${filesize} > 0; then " \
229 "mmc dev ${mmcdev}; mmc rescan; " \
230 "setexpr blkc ${filesize} / 0x200; " \
231 "setexpr blkc ${blkc} + 1; " \
232 "if itest ${blkc} <= ${fdt_size}; then " \
233 "mmc write ${loadaddr} ${fdt_start} ${blkc}; " \
234 "fi; " \
235 "fi; fi; " \
236 "setenv filesize; setenv blkc \0" \
237
238#define CONFIG_BOOTCOMMAND \
239 "run mmcboot; run netboot; run panicboot"
240
241#elif defined(CONFIG_TQMA6X_SPI_BOOT)
242
Markus Niebelcb07d742014-07-18 16:52:44 +0200243#define TQMA6_UBOOT_OFFSET 0x400
244#define TQMA6_UBOOT_SECTOR_START 0x0
245/* max u-boot size: 512k */
Markus Niebel52835462014-11-18 13:22:54 +0100246#define TQMA6_UBOOT_SECTOR_SIZE TQMA6_SPI_FLASH_SECTOR_SIZE
Markus Niebelcb07d742014-07-18 16:52:44 +0200247#define TQMA6_UBOOT_SECTOR_COUNT 0x8
248#define TQMA6_UBOOT_SIZE (TQMA6_UBOOT_SECTOR_SIZE * \
249 TQMA6_UBOOT_SECTOR_COUNT)
250
251#define CONFIG_ENV_IS_IN_SPI_FLASH
252#define CONFIG_SYS_REDUNDAND_ENVIRONMENT
253#define CONFIG_ENV_OFFSET (TQMA6_UBOOT_SIZE)
Markus Niebel52835462014-11-18 13:22:54 +0100254#define CONFIG_ENV_SECT_SIZE TQMA6_SPI_FLASH_SECTOR_SIZE
Markus Niebelcb07d742014-07-18 16:52:44 +0200255#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + \
256 CONFIG_ENV_SECT_SIZE)
257
258#define CONFIG_ENV_SPI_BUS (CONFIG_SF_DEFAULT_BUS)
259#define CONFIG_ENV_SPI_CS (CONFIG_SF_DEFAULT_CS)
260#define CONFIG_ENV_SPI_MAX_HZ (CONFIG_SF_DEFAULT_SPEED)
261#define CONFIG_ENV_SPI_MODE (CONFIG_SF_DEFAULT_MODE)
262
263#define TQMA6_FDT_OFFSET (CONFIG_ENV_OFFSET_REDUND + \
264 CONFIG_ENV_SECT_SIZE)
Markus Niebel52835462014-11-18 13:22:54 +0100265#define TQMA6_FDT_SECT_SIZE (TQMA6_SPI_FLASH_SECTOR_SIZE)
Markus Niebelcb07d742014-07-18 16:52:44 +0200266
267#define TQMA6_FDT_SECTOR_START 0x0a /* 8 Sector u-boot, 2 Sector env */
268#define TQMA6_FDT_SECTOR_COUNT 0x01
269
270#define TQMA6_KERNEL_SECTOR_START 0x10
271#define TQMA6_KERNEL_SECTOR_COUNT 0x60
272
273#define TQMA6_EXTRA_BOOTDEV_ENV_SETTINGS \
274 "mmcblkdev=0\0" \
275 "uboot_offset="__stringify(TQMA6_UBOOT_OFFSET)"\0" \
276 "uboot_sectors="__stringify(TQMA6_UBOOT_SECTOR_COUNT)"\0" \
277 "fdt_start="__stringify(TQMA6_FDT_SECTOR_START)"\0" \
278 "fdt_sectors="__stringify(TQMA6_FDT_SECTOR_COUNT)"\0" \
279 "kernel_start="__stringify(TQMA6_KERNEL_SECTOR_START)"\0" \
280 "kernel_sectors="__stringify(TQMA6_KERNEL_SECTOR_COUNT)"\0" \
281 "update_uboot=if tftp ${uboot}; then " \
282 "if itest ${filesize} > 0; then " \
283 "setexpr blkc ${filesize} + " \
284 __stringify(TQMA6_UBOOT_OFFSET) "; " \
285 "setexpr size ${uboot_sectors} * " \
Markus Niebel52835462014-11-18 13:22:54 +0100286 __stringify(TQMA6_SPI_FLASH_SECTOR_SIZE)"; " \
Markus Niebelcb07d742014-07-18 16:52:44 +0200287 "if itest ${blkc} <= ${size}; then " \
288 "sf probe; " \
289 "sf erase 0 ${size}; " \
290 "sf write ${loadaddr} ${uboot_offset} " \
291 "${filesize}; " \
292 "fi; " \
293 "fi; fi; " \
294 "setenv filesize 0; setenv blkc; setenv size \0" \
295 "update_kernel=run kernel_name; if tftp ${kernel}; then " \
296 "if itest ${filesize} > 0; then " \
297 "setexpr size ${kernel_sectors} * " \
Markus Niebel52835462014-11-18 13:22:54 +0100298 __stringify(TQMA6_SPI_FLASH_SECTOR_SIZE)"; " \
Markus Niebelcb07d742014-07-18 16:52:44 +0200299 "setexpr offset ${kernel_start} * " \
Markus Niebel52835462014-11-18 13:22:54 +0100300 __stringify(TQMA6_SPI_FLASH_SECTOR_SIZE)"; " \
Markus Niebelcb07d742014-07-18 16:52:44 +0200301 "if itest ${filesize} <= ${size}; then " \
302 "sf probe; " \
303 "sf erase ${offset} ${size}; " \
304 "sf write ${loadaddr} ${offset} " \
305 "${filesize}; " \
306 "fi; " \
307 "fi; fi; " \
308 "setenv filesize 0; setenv size ; setenv offset\0" \
309 "update_fdt=if tftp ${fdt_file}; then " \
310 "if itest ${filesize} > 0; then " \
311 "setexpr size ${fdt_sectors} * " \
Markus Niebel52835462014-11-18 13:22:54 +0100312 __stringify(TQMA6_SPI_FLASH_SECTOR_SIZE)"; " \
Markus Niebelcb07d742014-07-18 16:52:44 +0200313 "setexpr offset ${fdt_start} * " \
Markus Niebel52835462014-11-18 13:22:54 +0100314 __stringify(TQMA6_SPI_FLASH_SECTOR_SIZE)"; " \
Markus Niebelcb07d742014-07-18 16:52:44 +0200315 "if itest ${filesize} <= ${size}; then " \
316 "sf probe; " \
317 "sf erase ${offset} ${size}; " \
318 "sf write ${loadaddr} ${offset} " \
319 "${filesize}; " \
320 "fi; " \
321 "fi; fi; " \
322 "setenv filesize 0; setenv size ; setenv offset\0" \
323 "loadimage=sf probe; " \
324 "setexpr size ${kernel_sectors} * " \
Markus Niebel52835462014-11-18 13:22:54 +0100325 __stringify(TQMA6_SPI_FLASH_SECTOR_SIZE)"; " \
Markus Niebelcb07d742014-07-18 16:52:44 +0200326 "setexpr offset ${kernel_start} * " \
Markus Niebel52835462014-11-18 13:22:54 +0100327 __stringify(TQMA6_SPI_FLASH_SECTOR_SIZE)"; " \
Markus Niebelcb07d742014-07-18 16:52:44 +0200328 "sf read ${loadaddr} ${offset} ${size}; " \
329 "setenv size ; setenv offset\0" \
330 "loadfdt=sf probe; " \
331 "setexpr size ${fdt_sectors} * " \
Markus Niebel52835462014-11-18 13:22:54 +0100332 __stringify(TQMA6_SPI_FLASH_SECTOR_SIZE)"; " \
Markus Niebelcb07d742014-07-18 16:52:44 +0200333 "setexpr offset ${fdt_start} * " \
Markus Niebel52835462014-11-18 13:22:54 +0100334 __stringify(TQMA6_SPI_FLASH_SECTOR_SIZE)"; " \
Markus Niebelcb07d742014-07-18 16:52:44 +0200335 "sf read ${${fdt_addr}} ${offset} ${size}; " \
336 "setenv size ; setenv offset\0" \
337
338
339#define CONFIG_BOOTCOMMAND \
340 "sf probe; run mmcboot; run netboot; run panicboot" \
341
342#else
343
344#error "need to define boot source"
345
346#endif
347
348/* 128 MiB offset as in ARM related docu for linux suggested */
349#define TQMA6_FDT_ADDRESS 0x18000000
350
351#define CONFIG_EXTRA_ENV_SETTINGS \
352 "board=tqma6\0" \
353 "uimage=uImage\0" \
354 "zimage=zImage\0" \
355 "boot_type=bootz\0" \
356 "kernel_name=if test \"${boot_type}\" != bootz; then " \
357 "setenv kernel ${uimage}; " \
358 "else setenv kernel ${zimage}; fi\0" \
359 "uboot=u-boot.imx\0" \
360 "fdt_file=" CONFIG_DEFAULT_FDT_FILE "\0" \
361 "fdt_addr="__stringify(TQMA6_FDT_ADDRESS)"\0" \
362 "console=" CONFIG_CONSOLE_DEV "\0" \
363 "fdt_high=0xffffffff\0" \
364 "initrd_high=0xffffffff\0" \
365 "addtty=setenv bootargs ${bootargs} console=${console},${baudrate}\0" \
366 "addfb=setenv bootargs ${bootargs} " \
367 "imx-fbdev.legacyfb_depth=32 consoleblank=0\0" \
368 "mmcpart=2\0" \
369 "mmcblkdev=0\0" \
370 "mmcargs=run addmmc addtty addfb\0" \
371 "addmmc=setenv bootargs ${bootargs} " \
372 "root=/dev/mmcblk${mmcblkdev}p${mmcpart} rw rootwait\0" \
373 "mmcboot=echo Booting from mmc ...; " \
374 "setenv bootargs; " \
375 "run mmcargs; " \
376 "run loadimage; " \
377 "if run loadfdt; then " \
378 "echo boot device tree kernel ...; " \
379 "${boot_type} ${loadaddr} - ${fdt_addr}; " \
380 "else " \
381 "${boot_type}; " \
382 "fi;\0" \
383 "setenv bootargs \0" \
384 "netdev=eth0\0" \
385 "rootpath=/srv/nfs/tqma6\0" \
386 "ipmode=static\0" \
387 "netargs=run addnfs addip addtty addfb\0" \
388 "addnfs=setenv bootargs ${bootargs} " \
389 "root=/dev/nfs rw " \
390 "nfsroot=${serverip}:${rootpath},v3,tcp;\0" \
391 "addip_static=setenv bootargs ${bootargs} " \
392 "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:" \
393 "${hostname}:${netdev}:off\0" \
394 "addip_dynamic=setenv bootargs ${bootargs} ip=dhcp\0" \
395 "addip=if test \"${ipmode}\" != static; then " \
396 "run addip_dynamic; else run addip_static; fi\0" \
397 "set_getcmd=if test \"${ipmode}\" != static; then " \
398 "setenv getcmd dhcp; setenv autoload yes; " \
399 "else setenv getcmd tftp; setenv autoload no; fi\0" \
400 "netboot=echo Booting from net ...; " \
401 "run kernel_name; " \
402 "run set_getcmd; " \
403 "setenv bootargs; " \
404 "run netargs; " \
405 "if ${getcmd} ${kernel}; then " \
406 "if ${getcmd} ${fdt_addr} ${fdt_file}; then " \
407 "${boot_type} ${loadaddr} - ${fdt_addr}; " \
408 "fi; " \
409 "fi; " \
410 "echo ... failed\0" \
411 "panicboot=echo No boot device !!! reset\0" \
412 TQMA6_EXTRA_BOOTDEV_ENV_SETTINGS \
413
414/* Miscellaneous configurable options */
415#define CONFIG_SYS_LONGHELP
416#define CONFIG_SYS_HUSH_PARSER
417#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
418
419#define CONFIG_AUTO_COMPLETE
420#define CONFIG_SYS_CBSIZE 512
421
422/* Print Buffer Size */
423#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
424 sizeof(CONFIG_SYS_PROMPT) + 16)
425#define CONFIG_SYS_MAXARGS 16
426#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
427
428#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
Markus Niebelcb07d742014-07-18 16:52:44 +0200429
430#define CONFIG_CMDLINE_EDITING
431#define CONFIG_STACKSIZE (128u * SZ_1K)
432
433/* Physical Memory Map */
434#define CONFIG_NR_DRAM_BANKS 1
435#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
436
437#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
438#define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
439#define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
440
441#define CONFIG_SYS_INIT_SP_OFFSET \
442 (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
443#define CONFIG_SYS_INIT_SP_ADDR \
444 (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
445
446/* FLASH and environment organization */
447#define CONFIG_SYS_NO_FLASH
448
449#define CONFIG_OF_LIBFDT
450#define CONFIG_OF_BOARD_SETUP
451#define CONFIG_FIT
452#define CONFIG_FIT_VERBOSE
453
454#ifndef CONFIG_SYS_DCACHE_OFF
455#define CONFIG_CMD_CACHE
456#endif
457
Stefan Roese6b396b32015-03-12 16:34:16 +0100458/*
459 * All the defines above are for the TQMa6 SoM
460 *
461 * Now include the baseboard specific configuration
462 */
463#ifdef CONFIG_MBA6
464#include "tqma6_mba6.h"
465#else
466#error "No baseboard for the TQMa6 defined!"
467#endif
468
469/* Support at least the sensor on TQMa6 SOM */
470#if !defined(CONFIG_DTT_SENSORS)
471#define CONFIG_DTT_SENSORS { 0 }
472#endif
473
Markus Niebelcb07d742014-07-18 16:52:44 +0200474#endif /* __CONFIG_H */