2 * Copyright (C) Stefano Babic <sbabic@denx.de>
4 * SPDX-License-Identifier: GPL-2.0+
8 #ifndef __SKSIMX6_CONFIG_H
9 #define __SKSIMX6_CONFIG_H
11 #include "mx6_common.h"
15 #define CONFIG_IMX_THERMAL
18 #define CONFIG_MXC_UART
19 #define CONFIG_MXC_UART_BASE UART1_BASE
21 /* Size of malloc() pool */
22 #define CONFIG_SYS_MALLOC_LEN (8 * SZ_1M)
25 #define IMX_FEC_BASE ENET_BASE_ADDR
26 #define CONFIG_FEC_XCV_TYPE RGMII
27 #define CONFIG_ETHPRIME "FEC"
28 #define CONFIG_FEC_MXC_PHYADDR 0x01
31 #define CONFIG_PHY_MICREL_KSZ9021
34 #define CONFIG_SYS_I2C
35 #define CONFIG_SYS_I2C_MXC
36 #define CONFIG_SYS_I2C_MXC_I2C2
37 #define CONFIG_SYS_I2C_SPEED 100000
39 /* Filesystem support */
41 /* Physical Memory Map */
42 #define CONFIG_NR_DRAM_BANKS 1
43 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
45 #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
46 #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
47 #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
49 #define CONFIG_SYS_INIT_SP_OFFSET \
50 (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
51 #define CONFIG_SYS_INIT_SP_ADDR \
52 (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
55 #define CONFIG_SYS_FSL_ESDHC_ADDR 0
56 #define CONFIG_SYS_FSL_USDHC_NUM 1
58 /* Environment organization */
59 #define CONFIG_ENV_SIZE (16 * 1024)
60 #define CONFIG_ENV_OFFSET (6 * 64 * 1024)
61 #define CONFIG_SYS_MMC_ENV_DEV 0
62 #define CONFIG_SYS_REDUNDAND_ENVIRONMENT
63 #define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + \
65 #define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE
67 /* Default environment */
68 #define CONFIG_EXTRA_ENV_SETTINGS \
69 "addcons=setenv bootargs ${bootargs} " \
70 "console=${console},${baudrate}\0" \
71 "addip=setenv bootargs ${bootargs} " \
72 "ip=${ipaddr}:${serverip}:${gatewayip}:" \
73 "${netmask}:${hostname}:${netdev}:off\0" \
74 "addmisc=setenv bootargs ${bootargs} ${miscargs}\0" \
75 "bootcmd=run mmcboot\0" \
77 "bootimage=uImage\0" \
79 "fdt_addr_r=0x18000000\0" \
80 "fdt_file=imx6dl-sks-cts.dtb\0" \
81 "fdt_high=0xffffffff\0" \
82 "kernel_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \
84 "mmcargs=setenv bootargs root=${mmcroot} rw rootwait\0" \
85 "mmcboot=if run mmcload;then " \
86 "run mmcargs addcons addmisc;" \
88 "mmcload=mmc rescan;" \
89 "load mmc 0:${mmcpart} ${kernel_addr_r} boot/fitImage\0"\
91 "mmcroot=/dev/mmcblk0p1\0" \
92 "net_nfs=tftp ${kernel_addr_r} ${board_name}/${bootfile};" \
93 "tftp ${fdt_addr_r} ${board_name}/${fdt_file};" \
94 "run nfsargs addip addcons addmisc;" \
95 "bootm ${kernel_addr_r} - ${fdt_addr_r}\0" \
96 "nfsargs=setenv bootargs root=/dev/nfs " \
97 "nfsroot=${serverip}:${nfsroot},v3 panic=1\0"