Blame view
include/configs/cm_fx6.h
7.25 KB
e32028a70 arm: mx6: add sup... |
1 2 3 4 5 6 7 8 9 10 11 12 |
/* * Config file for Compulab CM-FX6 board * * Copyright (C) 2014, Compulab Ltd - http://compulab.co.il/ * * Author: Nikita Kiryanov <nikita@compulab.co.il> * * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __CONFIG_CM_FX6_H #define __CONFIG_CM_FX6_H |
e32028a70 arm: mx6: add sup... |
13 14 15 |
#include "mx6_common.h" /* Machine config */ |
e32028a70 arm: mx6: add sup... |
16 17 |
#define CONFIG_SYS_LITTLE_ENDIAN #define CONFIG_MACH_TYPE 4273 |
e32028a70 arm: mx6: add sup... |
18 |
|
e32028a70 arm: mx6: add sup... |
19 |
/* MMC */ |
e32028a70 arm: mx6: add sup... |
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
#define CONFIG_SYS_FSL_USDHC_NUM 3 #define CONFIG_SYS_FSL_ESDHC_ADDR USDHC2_BASE_ADDR /* RAM */ #define PHYS_SDRAM_1 MMDC0_ARB_BASE_ADDR #define PHYS_SDRAM_2 MMDC1_ARB_BASE_ADDR #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1 #define CONFIG_NR_DRAM_BANKS 2 #define CONFIG_SYS_MEMTEST_START 0x10000000 #define CONFIG_SYS_MEMTEST_END 0x10010000 #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE #define CONFIG_SYS_INIT_SP_OFFSET \ (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) #define CONFIG_SYS_INIT_SP_ADDR \ (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET) /* Serial console */ #define CONFIG_MXC_UART #define CONFIG_MXC_UART_BASE UART4_BASE |
e32028a70 arm: mx6: add sup... |
40 |
#define CONFIG_SYS_BAUDRATE_TABLE {9600, 19200, 38400, 57600, 115200} |
e32028a70 arm: mx6: add sup... |
41 |
/* SPI flash */ |
e32028a70 arm: mx6: add sup... |
42 43 44 45 |
#define CONFIG_SF_DEFAULT_BUS 0 #define CONFIG_SF_DEFAULT_CS 0 #define CONFIG_SF_DEFAULT_SPEED 25000000 #define CONFIG_SF_DEFAULT_MODE (SPI_MODE_0) |
63a930937 ARM: configs: cm_... |
46 47 |
/* MTD support */ #ifndef CONFIG_SPL_BUILD |
63a930937 ARM: configs: cm_... |
48 49 50 51 |
#define CONFIG_MTD_DEVICE #define CONFIG_MTD_PARTITIONS #define CONFIG_SPI_FLASH_MTD #endif |
e32028a70 arm: mx6: add sup... |
52 |
/* Environment */ |
e32028a70 arm: mx6: add sup... |
53 54 55 56 57 58 59 |
#define CONFIG_ENV_SPI_MAX_HZ CONFIG_SF_DEFAULT_SPEED #define CONFIG_ENV_SPI_MODE CONFIG_SF_DEFAULT_MODE #define CONFIG_ENV_SPI_BUS CONFIG_SF_DEFAULT_BUS #define CONFIG_ENV_SPI_CS CONFIG_SF_DEFAULT_CS #define CONFIG_ENV_SECT_SIZE (64 * 1024) #define CONFIG_ENV_SIZE (8 * 1024) #define CONFIG_ENV_OFFSET (768 * 1024) |
3ef5f6714 ARM: imx: cm_fx6:... |
60 |
#ifndef CONFIG_SPL_BUILD |
dbeaa1d13 ARM: imx: cm_fx6:... |
61 |
#define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG |
e32028a70 arm: mx6: add sup... |
62 |
#define CONFIG_EXTRA_ENV_SETTINGS \ |
6b79f71c8 ARM: imx: cm_fx6:... |
63 64 65 66 67 68 69 |
"fdt_high=0xffffffff\0" \ "initrd_high=0xffffffff\0" \ "fdt_addr_r=0x18000000\0" \ "ramdisk_addr_r=0x13000000\0" \ "kernel_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \ "pxefile_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \ "scriptaddr=" __stringify(CONFIG_LOADADDR) "\0" \ |
edc57f1df ARM: imx: cm_fx6:... |
70 |
"fdtfile=undefined\0" \ |
1c2e52924 arm: mx6: cm-fx6:... |
71 |
"stdin=serial,usbkbd\0" \ |
deb94d619 arm: mx6: cm-fx6:... |
72 73 74 |
"stdout=serial,vga\0" \ "stderr=serial,vga\0" \ "panel=HDMI\0" \ |
e32028a70 arm: mx6: add sup... |
75 |
"autoload=no\0" \ |
f0f6724f8 ARM: configs: cm_... |
76 77 |
"uImage=uImage-cm-fx6\0" \ "zImage=zImage-cm-fx6\0" \ |
508a6edea arm: mx6: cm-fx6:... |
78 |
"kernel=uImage-cm-fx6\0" \ |
508a6edea arm: mx6: cm-fx6:... |
79 |
"dtb=cm-fx6.dtb\0" \ |
e32028a70 arm: mx6: add sup... |
80 81 |
"console=ttymxc3,115200\0" \ "ethprime=FEC0\0" \ |
e32028a70 arm: mx6: add sup... |
82 83 |
"video_hdmi=mxcfb0:dev=hdmi,1920x1080M-32@50,if=RGB32\0" \ "video_dvi=mxcfb0:dev=dvi,1280x800M-32@50,if=RGB32\0" \ |
6b79f71c8 ARM: imx: cm_fx6:... |
84 |
"doboot=bootm ${kernel_addr_r}\0" \ |
508a6edea arm: mx6: cm-fx6:... |
85 |
"doloadfdt=false\0" \ |
43ede0bca Kconfig: Migrate ... |
86 87 |
"mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \ "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \ |
f0f6724f8 ARM: configs: cm_... |
88 |
"setboottypez=setenv kernel ${zImage};" \ |
6b79f71c8 ARM: imx: cm_fx6:... |
89 |
"setenv doboot bootz ${kernel_addr_r} - ${fdt_addr_r};" \ |
508a6edea arm: mx6: cm-fx6:... |
90 |
"setenv doloadfdt true;\0" \ |
f0f6724f8 ARM: configs: cm_... |
91 |
"setboottypem=setenv kernel ${uImage};" \ |
6b79f71c8 ARM: imx: cm_fx6:... |
92 |
"setenv doboot bootm ${kernel_addr_r};" \ |
508a6edea arm: mx6: cm-fx6:... |
93 |
"setenv doloadfdt false;\0"\ |
e32028a70 arm: mx6: add sup... |
94 |
"mmcroot=/dev/mmcblk0p2 rw rootwait\0" \ |
206f38f72 arm: mx6: cm_fx6:... |
95 |
"sataroot=/dev/sda2 rw rootwait\0" \ |
a6b0652bb arm: mx6: cm_fx6:... |
96 97 |
"nandroot=/dev/mtdblock4 rw\0" \ "nandrootfstype=ubifs\0" \ |
508a6edea arm: mx6: cm-fx6:... |
98 |
"mmcargs=setenv bootargs console=${console} root=${mmcroot} " \ |
f0f6724f8 ARM: configs: cm_... |
99 |
"${video} ${extrabootargs}\0" \ |
508a6edea arm: mx6: cm-fx6:... |
100 |
"sataargs=setenv bootargs console=${console} root=${sataroot} " \ |
f0f6724f8 ARM: configs: cm_... |
101 |
"${video} ${extrabootargs}\0" \ |
a6b0652bb arm: mx6: cm_fx6:... |
102 103 104 |
"nandargs=setenv bootargs console=${console} " \ "root=${nandroot} " \ "rootfstype=${nandrootfstype} " \ |
f0f6724f8 ARM: configs: cm_... |
105 |
"${video} ${extrabootargs}\0" \ |
508a6edea arm: mx6: cm-fx6:... |
106 |
"nandboot=if run nandloadkernel; then " \ |
a6b0652bb arm: mx6: cm_fx6:... |
107 |
"run nandloadfdt;" \ |
508a6edea arm: mx6: cm-fx6:... |
108 109 110 111 112 113 114 115 |
"run setboottypem;" \ "run storagebootcmd;" \ "run setboottypez;" \ "run storagebootcmd;" \ "fi;\0" \ "run_eboot=echo Starting EBOOT ...; "\ "mmc dev 2 && " \ "mmc rescan && mmc read 10042000 a 400 && go 10042000\0" \ |
6b79f71c8 ARM: imx: cm_fx6:... |
116 117 |
"loadkernel=load ${storagetype} ${storagedev} ${kernel_addr_r} ${kernel};\0"\ "loadfdt=load ${storagetype} ${storagedev} ${fdt_addr_r} ${dtb};\0" \ |
6b79f71c8 ARM: imx: cm_fx6:... |
118 119 |
"nandloadkernel=nand read ${kernel_addr_r} 0 780000;\0" \ "nandloadfdt=nand read ${fdt_addr_r} 780000 80000;\0" \ |
508a6edea arm: mx6: cm-fx6:... |
120 121 122 |
"setupmmcboot=setenv storagetype mmc; setenv storagedev 2;\0" \ "setupsataboot=setenv storagetype sata; setenv storagedev 0;\0" \ "setupnandboot=setenv storagetype nand;\0" \ |
508a6edea arm: mx6: cm-fx6:... |
123 124 125 126 127 |
"storagebootcmd=echo Booting from ${storagetype} ...;" \ "run ${storagetype}args; run doboot;\0" \ "trybootk=if run loadkernel; then " \ "if ${doloadfdt}; then " \ "run loadfdt;" \ |
a6b0652bb arm: mx6: cm_fx6:... |
128 |
"fi;" \ |
508a6edea arm: mx6: cm-fx6:... |
129 130 |
"run storagebootcmd;" \ "fi;\0" \ |
5a6440cac ARM: imx: cm_fx6:... |
131 |
"trybootsmz=" \ |
508a6edea arm: mx6: cm-fx6:... |
132 133 134 |
"run setboottypem;" \ "run trybootk;" \ "run setboottypez;" \ |
3ef5f6714 ARM: imx: cm_fx6:... |
135 136 137 138 139 140 |
"run trybootk;\0" \ "legacy_bootcmd=" \ "run setupmmcboot;" \ "mmc dev ${storagedev};" \ "if mmc rescan; then " \ "run trybootsmz;" \ |
508a6edea arm: mx6: cm-fx6:... |
141 |
"fi;" \ |
3ef5f6714 ARM: imx: cm_fx6:... |
142 143 144 145 146 147 |
"run setupsataboot;" \ "if sata init; then " \ "run trybootsmz;" \ "fi;" \ "run setupnandboot;" \ "run nandboot;\0" \ |
edc57f1df ARM: imx: cm_fx6:... |
148 149 150 151 152 |
"findfdt="\ "if test $board_name = Utilite && test $board_rev = MX6Q ; then " \ "setenv fdtfile imx6q-utilite-pro.dtb; fi; " \ "if test $fdtfile = undefined; then " \ "echo WARNING: Could not determine dtb to use; fi; \0" \ |
3ef5f6714 ARM: imx: cm_fx6:... |
153 |
BOOTENV |
e32028a70 arm: mx6: add sup... |
154 |
|
63a930937 ARM: configs: cm_... |
155 |
#define CONFIG_PREBOOT "usb start;sf probe" |
1c2e52924 arm: mx6: cm-fx6:... |
156 |
|
3ef5f6714 ARM: imx: cm_fx6:... |
157 158 159 160 161 162 163 164 165 |
#define BOOT_TARGET_DEVICES(func) \ func(USB, usb, 0) \ func(MMC, mmc, 2) \ func(SATA, sata, 0) #include <config_distro_bootcmd.h> #else #define CONFIG_EXTRA_ENV_SETTINGS #endif |
e32028a70 arm: mx6: add sup... |
166 167 |
/* SPI */ #define CONFIG_SPI |
e32028a70 arm: mx6: add sup... |
168 |
|
a6b0652bb arm: mx6: cm_fx6:... |
169 170 |
/* NAND */ #ifndef CONFIG_SPL_BUILD |
a6b0652bb arm: mx6: cm_fx6:... |
171 172 173 |
#define CONFIG_SYS_NAND_BASE 0x40000000 #define CONFIG_SYS_NAND_MAX_CHIPS 1 #define CONFIG_SYS_MAX_NAND_DEVICE 1 |
a6b0652bb arm: mx6: cm_fx6:... |
174 175 |
#define CONFIG_SYS_NAND_ONFI_DETECTION /* APBH DMA is required for NAND support */ |
a6b0652bb arm: mx6: cm_fx6:... |
176 |
#endif |
02b1343e4 arm: mx6: cm_fx6:... |
177 178 179 180 181 |
/* Ethernet */ #define CONFIG_FEC_MXC #define CONFIG_FEC_MXC_PHYADDR 0 #define CONFIG_FEC_XCV_TYPE RGMII #define IMX_FEC_BASE ENET_BASE_ADDR |
02b1343e4 arm: mx6: cm_fx6:... |
182 183 184 185 |
#define CONFIG_PHY_ATHEROS #define CONFIG_MII #define CONFIG_ETHPRIME "FEC0" #define CONFIG_ARP_TIMEOUT 200UL |
02b1343e4 arm: mx6: cm_fx6:... |
186 |
#define CONFIG_NET_RETRY_COUNT 5 |
0f3effb99 arm: mx6: cm_fx6:... |
187 |
/* USB */ |
0f3effb99 arm: mx6: cm_fx6:... |
188 189 190 191 |
#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) #define CONFIG_MXC_USB_FLAGS 0 #define CONFIG_USB_MAX_CONTROLLER_COUNT 2 #define CONFIG_EHCI_HCD_INIT_AFTER_RESET /* For OTG port */ |
f42b2f606 arm: mx6: cm_fx6:... |
192 |
/* I2C */ |
f42b2f606 arm: mx6: cm_fx6:... |
193 194 |
#define CONFIG_SYS_I2C #define CONFIG_SYS_I2C_MXC |
03544c664 I2C: mxc_i2c: mak... |
195 196 |
#define CONFIG_SYS_I2C_MXC_I2C1 /* enable I2C bus 1 */ #define CONFIG_SYS_I2C_MXC_I2C2 /* enable I2C bus 2 */ |
f8cb101e1 driver/i2c/mxc: E... |
197 |
#define CONFIG_SYS_I2C_MXC_I2C3 /* enable I2C bus 3 */ |
f42b2f606 arm: mx6: cm_fx6:... |
198 199 200 201 202 203 |
#define CONFIG_SYS_I2C_SPEED 100000 #define CONFIG_SYS_MXC_I2C3_SPEED 400000 #define CONFIG_SYS_I2C_EEPROM_ADDR 0x50 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 #define CONFIG_SYS_I2C_EEPROM_BUS 2 |
206f38f72 arm: mx6: cm_fx6:... |
204 |
/* SATA */ |
206f38f72 arm: mx6: cm_fx6:... |
205 |
#define CONFIG_SYS_SATA_MAX_DEVICE 1 |
206f38f72 arm: mx6: cm_fx6:... |
206 |
#define CONFIG_LBA48 |
206f38f72 arm: mx6: cm_fx6:... |
207 208 |
#define CONFIG_DWC_AHSATA_PORT_ID 0 #define CONFIG_DWC_AHSATA_BASE_ADDR SATA_ARB_BASE_ADDR |
e32028a70 arm: mx6: add sup... |
209 |
/* Boot */ |
e32028a70 arm: mx6: add sup... |
210 |
#define CONFIG_SYS_BOOTMAPSZ (8 << 20) |
f66113c0e arm: mx6: cm_fx6:... |
211 |
#define CONFIG_SERIAL_TAG |
e32028a70 arm: mx6: add sup... |
212 213 |
/* misc */ |
9fbdcf018 arm: mx6: cm-fx6:... |
214 |
#define CONFIG_SYS_MALLOC_LEN (10 * 1024 * 1024) |
7d1abb7d5 arm: mx6: cm-fx6:... |
215 |
#define CONFIG_MISC_INIT_R |
e32028a70 arm: mx6: add sup... |
216 217 218 |
/* SPL */ #include "imx6_spl.h" |
e32028a70 arm: mx6: add sup... |
219 220 |
#define CONFIG_SYS_SPI_U_BOOT_OFFS (64 * 1024) #define CONFIG_SPL_SPI_LOAD |
deb94d619 arm: mx6: cm-fx6:... |
221 |
/* Display */ |
deb94d619 arm: mx6: cm-fx6:... |
222 |
#define CONFIG_VIDEO_IPUV3 |
deb94d619 arm: mx6: cm-fx6:... |
223 |
#define CONFIG_IMX_HDMI |
deb94d619 arm: mx6: cm-fx6:... |
224 |
|
3a236a356 arm: mx6: cm-fx6:... |
225 |
#define CONFIG_SPLASH_SCREEN |
f82eb2fa5 common: convert c... |
226 |
#define CONFIG_SPLASH_SOURCE |
3a236a356 arm: mx6: cm-fx6:... |
227 |
#define CONFIG_VIDEO_BMP_RLE8 |
8015dde87 arm: mx6: cm-fx6:... |
228 229 |
#define CONFIG_VIDEO_LOGO #define CONFIG_VIDEO_BMP_LOGO |
126165312 arm: cm-fx6: add ... |
230 |
/* EEPROM */ |
126165312 arm: cm-fx6: add ... |
231 232 233 234 235 |
#define CONFIG_ENV_EEPROM_IS_ON_I2C #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4 #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 5 #define CONFIG_SYS_EEPROM_SIZE 256 |
e32028a70 arm: mx6: add sup... |
236 |
#endif /* __CONFIG_CM_FX6_H */ |