1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 /* 3 * Copyright 2014-2015 Freescale Semiconductor, Inc. 4 * Copyright Jasbir Matharu 5 * Copyright 2015 UDOO Team 6 * 7 * Configuration settings for the UDOO NEO board. 8 */ 9 10 #ifndef __CONFIG_H 11 #define __CONFIG_H 12 13 #include "mx6_common.h" 14 15 /* MMC Configuration */ 16 #define CFG_SYS_FSL_ESDHC_ADDR USDHC2_BASE_ADDR 17 18 /* Command definition */ 19 #define CFG_MXC_UART_BASE UART1_BASE 20 21 /* Linux only */ 22 #define CFG_EXTRA_ENV_SETTINGS \ 23 "console=ttymxc0,115200\0" \ 24 "fdt_high=0xffffffff\0" \ 25 "initrd_high=0xffffffff\0" \ 26 "fdtfile=undefined\0" \ 27 "fdt_addr=0x83000000\0" \ 28 "fdt_addr_r=0x83000000\0" \ 29 "ip_dyn=yes\0" \ 30 "mmcdev=1\0" \ 31 "mmcrootfstype=ext4\0" \ 32 "findfdt="\ 33 "if test $board_name = BASIC; then " \ 34 "setenv fdtfile imx6sx-udoo-neo-basic.dtb; fi; " \ 35 "if test $board_name = BASICKS; then " \ 36 "setenv fdtfile imx6sx-udoo-neo-basic.dtb; fi; " \ 37 "if test $board_name = FULL; then " \ 38 "setenv fdtfile imx6sx-udoo-neo-full.dtb; fi; " \ 39 "if test $board_name = EXTENDED; then " \ 40 "setenv fdtfile imx6sx-udoo-neo-extended.dtb; fi; " \ 41 "if test $fdtfile = UNDEFINED; then " \ 42 "echo WARNING: Could not determine dtb to use; fi\0" \ 43 "kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \ 44 "pxefile_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \ 45 "ramdisk_addr_r=0x84000000\0" \ 46 "scriptaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \ 47 BOOTENV 48 49 #define BOOT_TARGET_DEVICES(func) \ 50 func(MMC, mmc, 1) \ 51 func(USB, usb, 0) \ 52 func(DHCP, dhcp, na) 53 54 #include <config_distro_bootcmd.h> 55 56 /* Physical Memory Map */ 57 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR 58 #define CFG_SYS_SDRAM_BASE PHYS_SDRAM 59 #define CFG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR 60 #define CFG_SYS_INIT_RAM_SIZE IRAM_SIZE 61 62 #endif /* __CONFIG_H */ 63