03e5c04af6ee17b5877e31f43eb42e9a5a65da57
[platform/kernel/u-boot.git] / include / configs / udoo.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2013 Freescale Semiconductor, Inc.
4  *
5  * Configuration settings for Udoo board.
6  */
7
8 #ifndef __CONFIG_H
9 #define __CONFIG_H
10
11 #include "mx6_common.h"
12
13 #include "imx6_spl.h"
14
15 #define CONFIG_MXC_UART_BASE            UART2_BASE
16
17 /* MMC Configuration */
18 #define CONFIG_SYS_FSL_ESDHC_ADDR       0
19
20 #define CONFIG_EXTRA_ENV_SETTINGS \
21         "console=ttymxc1,115200\0" \
22         "fdt_high=0xffffffff\0" \
23         "initrd_high=0xffffffff\0" \
24         "fdtfile=undefined\0" \
25         "fdt_addr=0x18000000\0" \
26         "fdt_addr_r=0x18000000\0" \
27         "ip_dyn=yes\0" \
28         "mmcdev=2\0" \
29         "mmcrootfstype=ext4\0" \
30         "findfdt="\
31                 "if test ${board_rev} = MX6Q; then " \
32                         "setenv fdtfile imx6q-udoo.dtb; fi; " \
33                 "if test ${board_rev} = MX6DL; then " \
34                         "setenv fdtfile imx6dl-udoo.dtb; fi; " \
35                 "if test ${fdtfile} = undefined; then " \
36                         "echo WARNING: Could not determine dtb to use; fi\0" \
37         "kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
38         "pxefile_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
39         "ramdisk_addr_r=0x13000000\0" \
40         "scriptaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
41         BOOTENV
42
43 #define BOOT_TARGET_DEVICES(func) \
44         func(MMC, mmc, 2) \
45         func(SATA, sata, 0) \
46         func(DHCP, dhcp, na)
47
48 #include <config_distro_bootcmd.h>
49 #include <linux/stringify.h>
50
51 /* Physical Memory Map */
52 #define PHYS_SDRAM                      MMDC0_ARB_BASE_ADDR
53
54 #define CONFIG_SYS_SDRAM_BASE           PHYS_SDRAM
55 #define CONFIG_SYS_INIT_RAM_ADDR        IRAM_BASE_ADDR
56 #define CONFIG_SYS_INIT_RAM_SIZE        IRAM_SIZE
57
58 /* Environment organization */
59
60 #endif                         /* __CONFIG_H * */