1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2010-2011 Freescale Semiconductor, Inc.
5 * Configuration settings for the Freescale i.MX6Q Armadillo2 board.
11 #include "mx6_common.h"
13 /* Size of malloc() pool */
14 #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 2 * 1024 * 1024)
16 #define CONFIG_MXC_UART
17 #define CONFIG_MXC_UART_BASE UART4_BASE
20 #define CONFIG_SYS_FSL_ESDHC_ADDR USDHC4_BASE_ADDR
21 #define CONFIG_SYS_FSL_USDHC_NUM 2
23 #define CONFIG_FEC_MXC
24 #define IMX_FEC_BASE ENET_BASE_ADDR
25 #define CONFIG_FEC_XCV_TYPE RGMII
26 #define CONFIG_FEC_MXC_PHYADDR 0
28 #define CONFIG_EXTRA_ENV_SETTINGS \
32 "fdt_file=imx6q-arm2.dtb\0" \
33 "fdt_addr=0x18000000\0" \
34 "fdt_high=0xffffffff\0" \
35 "initrd_high=0xffffffff\0" \
40 "mmcroot=/dev/mmcblk0p2 rootwait rw\0" \
41 "mmcargs=setenv bootargs console=${console},${baudrate} " \
44 "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
45 "bootscript=echo Running bootscript from mmc ...; " \
47 "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
48 "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
49 "mmcboot=echo Booting from mmc ...; " \
51 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
52 "if run loadfdt; then " \
53 "bootz ${loadaddr} - ${fdt_addr}; " \
55 "if test ${boot_fdt} = try; then " \
58 "echo WARN: Cannot load the DT; " \
64 "netargs=setenv bootargs console=${console},${baudrate} " \
66 "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
67 "netboot=echo Booting from net ...; " \
69 "if test ${ip_dyn} = yes; then " \
70 "setenv get_cmd dhcp; " \
72 "setenv get_cmd tftp; " \
74 "${get_cmd} ${image}; " \
75 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
76 "if ${get_cmd} ${fdt_addr} ${fdt_file}; then " \
77 "bootz ${loadaddr} - ${fdt_addr}; " \
79 "if test ${boot_fdt} = try; then " \
82 "echo WARN: Cannot load the DT; " \
89 #define CONFIG_BOOTCOMMAND \
90 "mmc dev ${mmcdev};" \
91 "mmc dev ${mmcdev}; if mmc rescan; then " \
92 "if run loadbootscript; then " \
95 "if run loadimage; then " \
97 "else run netboot; " \
100 "else run netboot; fi"
102 #define CONFIG_ARP_TIMEOUT 200UL
104 /* Miscellaneous configurable options */
106 /* Physical Memory Map */
107 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
109 #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
110 #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
111 #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
113 #define CONFIG_SYS_INIT_SP_OFFSET \
114 (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
115 #define CONFIG_SYS_INIT_SP_ADDR \
116 (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
118 /* Environment organization */
119 #define CONFIG_SYS_MMC_ENV_DEV 1
122 #ifdef CONFIG_CMD_USB
123 #define CONFIG_EHCI_HCD_INIT_AFTER_RESET
124 #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
125 #define CONFIG_MXC_USB_FLAGS 0
126 #define CONFIG_USB_MAX_CONTROLLER_COUNT 1
129 #endif /* __CONFIG_H */