2 * Copyright (C) 2013 Stefan Roese <sr@denx.de>
4 * Configuration settings for the ProjectionDesign / Barco
7 * Based on mx6qsabrelite.h which is:
8 * Copyright (C) 2010-2011 Freescale Semiconductor, Inc.
10 * SPDX-License-Identifier: GPL-2.0+
16 #include "mx6_common.h"
20 /* Provide the MACH_TYPE value that the vendor kernel requires. */
21 #define CONFIG_MACH_TYPE 3769
23 /* Size of malloc() pool */
24 #define CONFIG_SYS_MALLOC_LEN (2 * 1024 * 1024)
26 #define CONFIG_MISC_INIT_R
28 #define CONFIG_MXC_UART
29 #define CONFIG_MXC_UART_BASE UART1_BASE
32 #define CONFIG_SYS_I2C
33 #define CONFIG_SYS_I2C_MXC
34 #define CONFIG_SYS_I2C_MXC_I2C1 /* enable I2C bus 1 */
35 #define CONFIG_SYS_I2C_MXC_I2C2 /* enable I2C bus 2 */
36 #define CONFIG_SYS_I2C_MXC_I2C3 /* enable I2C bus 3 */
37 #define CONFIG_SYS_I2C_SPEED 100000
40 #define CONFIG_SYS_FSL_ESDHC_ADDR 0
41 #define CONFIG_SYS_FSL_USDHC_NUM 1
43 #define CONFIG_FEC_MXC
45 #define IMX_FEC_BASE ENET_BASE_ADDR
46 #define CONFIG_FEC_XCV_TYPE RGMII
47 #define CONFIG_FEC_MXC_PHYADDR 4
49 #define CONFIG_PHY_MICREL
50 #define CONFIG_PHY_MICREL_KSZ9021
53 #define CONFIG_USB_EHCI
54 #define CONFIG_USB_EHCI_MX6
55 #define CONFIG_MXC_USB_PORT 1
56 #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
57 #define CONFIG_MXC_USB_FLAGS 0
59 #define CONFIG_SYS_MEMTEST_START 0x10000000
60 #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + (500 << 20))
62 #define CONFIG_HOSTNAME titanium
63 #define CONFIG_UBI_PART ubi
64 #define CONFIG_UBIFS_VOLUME rootfs0
66 #define MTDIDS_DEFAULT "nand0=gpmi-nand"
67 #define MTDPARTS_DEFAULT "mtdparts=gpmi-nand:16M(uboot),512k(env1)," \
70 #define CONFIG_EXTRA_ENV_SETTINGS \
71 "kernel=" __stringify(CONFIG_HOSTNAME) "/uImage\0" \
72 "kernel_fs=/boot/uImage\0" \
73 "kernel_addr=11000000\0" \
74 "dtb=" __stringify(CONFIG_HOSTNAME) "/" \
75 __stringify(CONFIG_HOSTNAME) ".dtb\0" \
76 "dtb_fs=/boot/" __stringify(CONFIG_HOSTNAME) ".dtb\0" \
77 "dtb_addr=12800000\0" \
82 "fdt_high=0xffffffff\0" \
83 "initrd_high=0xffffffff\0" \
87 "loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr}" \
89 "bootscript=echo Running bootscript from mmc ...; source\0" \
90 "loaduimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}\0" \
91 "mmcroot=/dev/mmcblk0p2\0" \
92 "mmcargs=setenv bootargs console=${console},${baudrate} " \
93 "root=${mmcroot} rootwait rw\0" \
94 "bootmmc=run mmcargs; fatload mmc ${mmcdev}:${mmcpart} ${loadaddr}" \
95 " ${uimage}; bootm\0" \
96 "addip=setenv bootargs ${bootargs} " \
97 "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \
98 ":${hostname}:${netdev}:off panic=1\0" \
99 "addcon=setenv bootargs ${bootargs} console=ttymxc0," \
101 "addmtd=setenv bootargs ${bootargs} ${mtdparts}\0" \
102 "rootpath=/opt/eldk-5.3/armv7a/rootfs-minimal-mtdutils\0" \
103 "nfsargs=setenv bootargs root=/dev/nfs rw " \
104 "nfsroot=${serverip}:${rootpath}\0" \
105 "ubifs=" __stringify(CONFIG_HOSTNAME) "/ubifs.img\0" \
106 "part=" __stringify(CONFIG_UBI_PART) "\0" \
108 "vol=" __stringify(CONFIG_UBIFS_VOLUME) "\0" \
109 "load_ubifs=tftp ${kernel_addr} ${ubifs}\0" \
110 "update_ubifs=ubi part ${part};ubi write ${kernel_addr} ${vol}" \
112 "upd_ubifs=run load_ubifs update_ubifs\0" \
113 "init_ubi=nand erase.part ubi;ubi part ${part};" \
114 "ubi create ${vol} c800000\0" \
115 "mtdids=" MTDIDS_DEFAULT "\0" \
116 "mtdparts=" MTDPARTS_DEFAULT "\0" \
117 "nand_ubifs=run ubifs_mount ubifs_load ubifsargs addip" \
119 "bootm ${kernel_addr} - ${dtb_addr}\0" \
120 "ubifsargs=set bootargs ubi.mtd=ubi " \
121 "root=ubi:rootfs${boot_vol} rootfstype=ubifs\0" \
122 "ubifs_mount=ubi part ubi;ubifsmount ubi:rootfs${boot_vol}\0" \
123 "ubifs_load=ubifsload ${kernel_addr} ${kernel_fs};" \
124 "ubifsload ${dtb_addr} ${dtb_fs};\0" \
125 "nand_ubifs=run ubifs_mount ubifs_load ubifsargs addip addcon " \
126 "addmtd;bootm ${kernel_addr} - ${dtb_addr}\0" \
127 "load_kernel=tftp ${kernel_addr} ${kernel}\0" \
128 "load_dtb=tftp ${dtb_addr} ${dtb}\0" \
129 "net_nfs=run load_dtb load_kernel; " \
130 "run nfsargs addip addcon addmtd;" \
131 "bootm ${kernel_addr} - ${dtb_addr}\0" \
132 "delenv=env default -a -f; saveenv; reset\0"
134 #define CONFIG_BOOTCOMMAND "run nand_ubifs"
136 /* Print Buffer Size */
137 #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
138 sizeof(CONFIG_SYS_PROMPT) + 16)
140 /* Physical Memory Map */
141 #define CONFIG_NR_DRAM_BANKS 1
142 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
143 #define PHYS_SDRAM_SIZE (512 << 20)
145 #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
146 #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
147 #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
149 #define CONFIG_SYS_INIT_SP_OFFSET \
150 (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
151 #define CONFIG_SYS_INIT_SP_ADDR \
152 (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
154 /* Enable NAND support */
155 #define CONFIG_CMD_NAND
156 #define CONFIG_CMD_NAND_TRIMFFS
158 #ifdef CONFIG_CMD_NAND
161 #define CONFIG_NAND_MXS
162 #define CONFIG_SYS_MAX_NAND_DEVICE 1
163 #define CONFIG_SYS_NAND_BASE 0x40000000
164 #define CONFIG_SYS_NAND_5_ADDR_CYCLE
165 #define CONFIG_SYS_NAND_ONFI_DETECTION
167 /* DMA stuff, needed for GPMI/MXS NAND support */
168 #define CONFIG_APBH_DMA
169 #define CONFIG_APBH_DMA_BURST
170 #define CONFIG_APBH_DMA_BURST8
172 /* Environment in NAND */
173 #define CONFIG_ENV_IS_IN_NAND
174 #define CONFIG_ENV_OFFSET (16 << 20)
175 #define CONFIG_ENV_SECT_SIZE (128 << 10)
176 #define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE
177 #define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + (512 << 10))
178 #define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE
180 #else /* CONFIG_CMD_NAND */
182 /* Environment in MMC */
183 #define CONFIG_ENV_SIZE (8 << 10)
184 #define CONFIG_ENV_IS_IN_MMC
185 #define CONFIG_ENV_OFFSET (6 * 64 * 1024)
186 #define CONFIG_SYS_MMC_ENV_DEV 0
188 #endif /* CONFIG_CMD_NAND */
190 /* UBI/UBIFS config options */
192 #define CONFIG_MTD_DEVICE
193 #define CONFIG_MTD_PARTITIONS
194 #define CONFIG_RBTREE
195 #define CONFIG_CMD_MTDPARTS
196 #define CONFIG_CMD_UBIFS
198 #endif /* __CONFIG_H */