1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2013 Freescale Semiconductor, Inc.
5 * Configuration settings for Udoo board.
11 #include "mx6_common.h"
13 #define CFG_MXC_UART_BASE UART2_BASE
15 /* MMC Configuration */
16 #define CFG_SYS_FSL_ESDHC_ADDR 0
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" \
27 "mmcrootfstype=ext4\0" \
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" \
41 #define BOOT_TARGET_DEVICES(func) \
46 #include <config_distro_bootcmd.h>
47 #include <linux/stringify.h>
49 /* Physical Memory Map */
50 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
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
56 /* Environment organization */
58 #endif /* __CONFIG_H * */