]> Git Repo - J-u-boot.git/blame - include/configs/mx6ul_14x14_evk.h
Convert CONFIG_SYS_I2C_SPEED et al to Kconfig
[J-u-boot.git] / include / configs / mx6ul_14x14_evk.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0+ */
f0ff57b0
PF
2/*
3 * Copyright (C) 2015 Freescale Semiconductor, Inc.
4 *
5 * Configuration settings for the Freescale i.MX6UL 14x14 EVK board.
f0ff57b0
PF
6 */
7#ifndef __MX6UL_14X14_EVK_CONFIG_H
8#define __MX6UL_14X14_EVK_CONFIG_H
9
f0ff57b0
PF
10#include <asm/arch/imx-regs.h>
11#include <linux/sizes.h>
1af3c7f4 12#include <linux/stringify.h>
f0ff57b0 13#include "mx6_common.h"
552a848e 14#include <asm/mach-imx/gpio.h>
f0ff57b0 15
d9cbb264
PF
16#define is_mx6ul_9x9_evk() CONFIG_IS_ENABLED(TARGET_MX6UL_9X9_EVK)
17
f0ff57b0 18/* SPL options */
f0ff57b0
PF
19#include "imx6_spl.h"
20
f0ff57b0
PF
21/* Size of malloc() pool */
22#define CONFIG_SYS_MALLOC_LEN (16 * SZ_1M)
23
f0ff57b0
PF
24#define CONFIG_MXC_UART_BASE UART1_BASE
25
f0ff57b0
PF
26/* MMC Configs */
27#ifdef CONFIG_FSL_USDHC
28#define CONFIG_SYS_FSL_ESDHC_ADDR USDHC2_BASE_ADDR
29
30/* NAND pin conflicts with usdhc2 */
31#ifdef CONFIG_NAND_MXS
32#define CONFIG_SYS_FSL_USDHC_NUM 1
33#else
34#define CONFIG_SYS_FSL_USDHC_NUM 2
35#endif
36
f0ff57b0
PF
37#endif
38
f0ff57b0 39/* I2C configs */
f0ff57b0 40#ifdef CONFIG_CMD_I2C
f0ff57b0 41#define CONFIG_SYS_I2C_MXC
03544c66
AA
42#define CONFIG_SYS_I2C_MXC_I2C1 /* enable I2C bus 1 */
43#define CONFIG_SYS_I2C_MXC_I2C2 /* enable I2C bus 2 */
1a8c0199 44#endif
f0ff57b0 45
f0ff57b0
PF
46#define CONFIG_SYS_MMC_IMG_LOAD_PART 1
47
48#define CONFIG_EXTRA_ENV_SETTINGS \
49 "script=boot.scr\0" \
50 "image=zImage\0" \
51 "console=ttymxc0\0" \
52 "fdt_high=0xffffffff\0" \
53 "initrd_high=0xffffffff\0" \
d9cbb264 54 "fdt_file=undefined\0" \
f0ff57b0
PF
55 "fdt_addr=0x83000000\0" \
56 "boot_fdt=try\0" \
57 "ip_dyn=yes\0" \
0a1a45b7 58 "splashimage=" __stringify(CONFIG_LOADADDR) "\0" \
df674904 59 "videomode=video=ctfb:x:480,y:272,depth:24,pclk:108695,le:8,ri:4,up:2,lo:4,hs:41,vs:10,sync:0,vmode:0\0" \
f0ff57b0
PF
60 "mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \
61 "mmcpart=" __stringify(CONFIG_SYS_MMC_IMG_LOAD_PART) "\0" \
62 "mmcroot=" CONFIG_MMCROOT " rootwait rw\0" \
63 "mmcautodetect=yes\0" \
64 "mmcargs=setenv bootargs console=${console},${baudrate} " \
65 "root=${mmcroot}\0" \
66 "loadbootscript=" \
67 "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
68 "bootscript=echo Running bootscript from mmc ...; " \
69 "source\0" \
70 "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
71 "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
72 "mmcboot=echo Booting from mmc ...; " \
73 "run mmcargs; " \
74 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
75 "if run loadfdt; then " \
76 "bootz ${loadaddr} - ${fdt_addr}; " \
77 "else " \
78 "if test ${boot_fdt} = try; then " \
79 "bootz; " \
80 "else " \
81 "echo WARN: Cannot load the DT; " \
82 "fi; " \
83 "fi; " \
84 "else " \
85 "bootz; " \
86 "fi;\0" \
87 "netargs=setenv bootargs console=${console},${baudrate} " \
88 "root=/dev/nfs " \
89 "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
90 "netboot=echo Booting from net ...; " \
91 "run netargs; " \
92 "if test ${ip_dyn} = yes; then " \
93 "setenv get_cmd dhcp; " \
94 "else " \
95 "setenv get_cmd tftp; " \
96 "fi; " \
97 "${get_cmd} ${image}; " \
98 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
99 "if ${get_cmd} ${fdt_addr} ${fdt_file}; then " \
100 "bootz ${loadaddr} - ${fdt_addr}; " \
101 "else " \
102 "if test ${boot_fdt} = try; then " \
103 "bootz; " \
104 "else " \
105 "echo WARN: Cannot load the DT; " \
106 "fi; " \
107 "fi; " \
108 "else " \
109 "bootz; " \
d9cbb264
PF
110 "fi;\0" \
111 "findfdt="\
112 "if test $fdt_file = undefined; then " \
113 "if test $board_name = EVK && test $board_rev = 9X9; then " \
114 "setenv fdt_file imx6ul-9x9-evk.dtb; fi; " \
115 "if test $board_name = EVK && test $board_rev = 14X14; then " \
116 "setenv fdt_file imx6ul-14x14-evk.dtb; fi; " \
117 "if test $fdt_file = undefined; then " \
118 "echo WARNING: Could not determine dtb to use; fi; " \
119 "fi;\0" \
f0ff57b0
PF
120
121#define CONFIG_BOOTCOMMAND \
d9cbb264 122 "run findfdt;" \
f0ff57b0
PF
123 "mmc dev ${mmcdev};" \
124 "mmc dev ${mmcdev}; if mmc rescan; then " \
125 "if run loadbootscript; then " \
126 "run bootscript; " \
127 "else " \
128 "if run loadimage; then " \
129 "run mmcboot; " \
130 "else run netboot; " \
131 "fi; " \
132 "fi; " \
133 "else run netboot; fi"
134
135/* Miscellaneous configurable options */
f0ff57b0
PF
136
137#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
138#define CONFIG_SYS_HZ 1000
139
f0ff57b0 140/* Physical Memory Map */
f0ff57b0
PF
141#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
142
143#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
144#define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
145#define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
146
147#define CONFIG_SYS_INIT_SP_OFFSET \
148 (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
149#define CONFIG_SYS_INIT_SP_ADDR \
150 (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
151
e856bdcf 152/* environment organization */
f0ff57b0
PF
153#define CONFIG_MMCROOT "/dev/mmcblk1p2" /* USDHC2 */
154
f0ff57b0 155/* USB Configs */
f0ff57b0 156#ifdef CONFIG_CMD_USB
f0ff57b0
PF
157#define CONFIG_EHCI_HCD_INIT_AFTER_RESET
158#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
159#define CONFIG_MXC_USB_FLAGS 0
160#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
161#endif
162
0d4cdb56 163#ifdef CONFIG_CMD_NET
0d4cdb56
PF
164#define CONFIG_FEC_ENET_DEV 1
165
166#if (CONFIG_FEC_ENET_DEV == 0)
167#define IMX_FEC_BASE ENET_BASE_ADDR
168#define CONFIG_FEC_MXC_PHYADDR 0x2
169#define CONFIG_FEC_XCV_TYPE RMII
1a8c0199 170#define CONFIG_ETHPRIME "eth0"
0d4cdb56
PF
171#elif (CONFIG_FEC_ENET_DEV == 1)
172#define IMX_FEC_BASE ENET2_BASE_ADDR
173#define CONFIG_FEC_MXC_PHYADDR 0x1
174#define CONFIG_FEC_XCV_TYPE RMII
1a8c0199 175#define CONFIG_ETHPRIME "eth1"
0d4cdb56 176#endif
0d4cdb56
PF
177#endif
178
ce2190f5 179#ifndef CONFIG_SPL_BUILD
ae076058 180#if defined(CONFIG_DM_VIDEO)
df674904
PF
181#define CONFIG_VIDEO_MXS
182#define CONFIG_VIDEO_LOGO
df674904
PF
183#define CONFIG_VIDEO_BMP_LOGO
184#define MXS_LCDIF_BASE MX6UL_LCDIF1_BASE_ADDR
185#endif
ce2190f5 186#endif
df674904 187
f0ff57b0 188#endif
This page took 0.581892 seconds and 4 git commands to generate.