Merge patch series "upl: Prerequite patches for updated spec"
[u-boot.git] / include / configs / nitrogen6x.h
blob23eefaffc721dbb5e2727fa3dff4820f3151e249
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3 * Copyright (C) 2010-2011 Freescale Semiconductor, Inc.
5 * Configuration settings for the Boundary Devices Nitrogen6X
6 * and Freescale i.MX6Q Sabre Lite boards.
7 */
9 #ifndef __CONFIG_H
10 #define __CONFIG_H
12 #include "mx6_common.h"
14 /* MMC Configs */
15 #define CFG_SYS_FSL_ESDHC_ADDR 0
16 #define CFG_SYS_FSL_USDHC_NUM 2
18 #define IMX_FEC_BASE ENET_BASE_ADDR
19 #define CFG_FEC_MXC_PHYADDR 6
21 #ifdef CONFIG_CMD_MMC
22 #define DISTRO_BOOT_DEV_MMC(func) func(MMC, mmc, 0) func(MMC, mmc, 1)
23 #else
24 #define DISTRO_BOOT_DEV_MMC(func)
25 #endif
27 #ifdef CONFIG_CMD_SATA
28 #define DISTRO_BOOT_DEV_SATA(func) func(SATA, sata, 0)
29 #else
30 #define DISTRO_BOOT_DEV_SATA(func)
31 #endif
33 #ifdef CONFIG_USB_STORAGE
34 #define DISTRO_BOOT_DEV_USB(func) func(USB, usb, 0)
35 #else
36 #define DISTRO_BOOT_DEV_USB(func)
37 #endif
39 #ifdef CONFIG_CMD_PXE
40 #define DISTRO_BOOT_DEV_PXE(func) func(PXE, pxe, na)
41 #else
42 #define DISTRO_BOOT_DEV_PXE(func)
43 #endif
45 #ifdef CONFIG_CMD_DHCP
46 #define DISTRO_BOOT_DEV_DHCP(func) func(DHCP, dhcp, na)
47 #else
48 #define DISTRO_BOOT_DEV_DHCP(func)
49 #endif
51 #define BOOT_TARGET_DEVICES(func) \
52 DISTRO_BOOT_DEV_MMC(func) \
53 DISTRO_BOOT_DEV_SATA(func) \
54 DISTRO_BOOT_DEV_USB(func) \
55 DISTRO_BOOT_DEV_PXE(func) \
56 DISTRO_BOOT_DEV_DHCP(func)
58 #include <config_distro_bootcmd.h>
59 #include <linux/stringify.h>
61 #define CFG_EXTRA_ENV_SETTINGS \
62 "console=ttymxc1\0" \
63 "fdt_high=0xffffffff\0" \
64 "initrd_high=0xffffffff\0" \
65 "fdt_addr_r=0x18000000\0" \
66 "fdtfile=" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \
67 "kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
68 "pxefile_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
69 "scriptaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
70 "ramdisk_addr_r=0x13000000\0" \
71 "ramdiskaddr=0x13000000\0" \
72 "ip_dyn=yes\0" \
73 "usb_pgood_delay=2000\0" \
74 BOOTENV
76 /* Miscellaneous configurable options */
78 /* Physical Memory Map */
79 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
81 #define CFG_SYS_SDRAM_BASE PHYS_SDRAM
82 #define CFG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
83 #define CFG_SYS_INIT_RAM_SIZE IRAM_SIZE
85 /* Environment organization */
87 #endif /* __CONFIG_H */