1
2
3
4
5
6
7
8#ifndef __CONFIG_H
9#define __CONFIG_H
10
11#include "mx6_common.h"
12
13#define CFG_MXC_UART_BASE UART2_BASE
14
15
16#define CFG_SYS_FSL_ESDHC_ADDR 0
17
18#define CFG_EXTRA_ENV_SETTINGS \
19 "console=ttymxc1,115200\0" \
20 "fdt_high=0xffffffff\0" \
21 "initrd_high=0xffffffff\0" \
22 "fdtfile=undefined\0" \
23 "fdt_addr=0x18000000\0" \
24 "fdt_addr_r=0x18000000\0" \
25 "ip_dyn=yes\0" \
26 "mmcdev=2\0" \
27 "mmcrootfstype=ext4\0" \
28 "findfdt="\
29 "if test ${board_rev} = MX6Q; then " \
30 "setenv fdtfile imx6q-udoo.dtb; fi; " \
31 "if test ${board_rev} = MX6DL; then " \
32 "setenv fdtfile imx6dl-udoo.dtb; fi; " \
33 "if test ${fdtfile} = undefined; then " \
34 "echo WARNING: Could not determine dtb to use; fi\0" \
35 "kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
36 "pxefile_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
37 "ramdisk_addr_r=0x13000000\0" \
38 "scriptaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
39 BOOTENV
40
41#define BOOT_TARGET_DEVICES(func) \
42 func(MMC, mmc, 2) \
43 func(SATA, sata, 0) \
44 func(DHCP, dhcp, na)
45
46#include <config_distro_bootcmd.h>
47#include <linux/stringify.h>
48
49
50#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
51
52#define CFG_SYS_SDRAM_BASE PHYS_SDRAM
53#define CFG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
54#define CFG_SYS_INIT_RAM_SIZE IRAM_SIZE
55
56
57
58#endif
59