1*baefb63aSEric Nelson /* 2*baefb63aSEric Nelson * Copyright (C) 2010-2011 Freescale Semiconductor, Inc. 3*baefb63aSEric Nelson * 4*baefb63aSEric Nelson * Configuration settings for the Boundary Devices Nitrogen6X 5*baefb63aSEric Nelson * and Freescale i.MX6Q Sabre Lite boards. 6*baefb63aSEric Nelson * 7*baefb63aSEric Nelson * SPDX-License-Identifier: GPL-2.0+ 8*baefb63aSEric Nelson */ 9*baefb63aSEric Nelson 10*baefb63aSEric Nelson #ifndef __CONFIG_H 11*baefb63aSEric Nelson #define __CONFIG_H 12*baefb63aSEric Nelson 13*baefb63aSEric Nelson /* SPL */ 14*baefb63aSEric Nelson 15*baefb63aSEric Nelson #include "mx6_common.h" 16*baefb63aSEric Nelson #include "imx6_spl.h" 17*baefb63aSEric Nelson 18*baefb63aSEric Nelson #undef CONFIG_FSL_ESDHC 19*baefb63aSEric Nelson #undef CONFIG_MMC 20*baefb63aSEric Nelson #undef CONFIG_SPL_MMC_SUPPORT 21*baefb63aSEric Nelson #undef CONFIG_GENERIC_MMC 22*baefb63aSEric Nelson #undef CONFIG_CMD_FUSE 23*baefb63aSEric Nelson 24*baefb63aSEric Nelson #define CONFIG_SYS_MEMTEST_START 0x10000000 25*baefb63aSEric Nelson #define CONFIG_SYS_MEMTEST_END 0x20000000 26*baefb63aSEric Nelson #define CONFIG_SYS_MALLOC_LEN (64 * 1024 * 1024) 27*baefb63aSEric Nelson 28*baefb63aSEric Nelson #define CONFIG_MXC_UART 29*baefb63aSEric Nelson #ifdef CONFIG_SERIAL_CONSOLE_UART1 30*baefb63aSEric Nelson #if defined(CONFIG_MX6SL) 31*baefb63aSEric Nelson #define CONFIG_MXC_UART_BASE UART1_IPS_BASE_ADDR 32*baefb63aSEric Nelson #else 33*baefb63aSEric Nelson #define CONFIG_MXC_UART_BASE UART1_BASE 34*baefb63aSEric Nelson #endif 35*baefb63aSEric Nelson #elif defined(CONFIG_SERIAL_CONSOLE_UART2) 36*baefb63aSEric Nelson #define CONFIG_MXC_UART_BASE UART2_BASE 37*baefb63aSEric Nelson #else 38*baefb63aSEric Nelson #error please define serial console (CONFIG_SERIAL_CONSOLE_UARTx) 39*baefb63aSEric Nelson #endif 40*baefb63aSEric Nelson #define CONFIG_BAUDRATE 115200 41*baefb63aSEric Nelson 42*baefb63aSEric Nelson #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + 16) 43*baefb63aSEric Nelson 44*baefb63aSEric Nelson /* Physical Memory Map */ 45*baefb63aSEric Nelson #define CONFIG_NR_DRAM_BANKS 1 46*baefb63aSEric Nelson #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR 47*baefb63aSEric Nelson 48*baefb63aSEric Nelson #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM 49*baefb63aSEric Nelson #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR 50*baefb63aSEric Nelson #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE 51*baefb63aSEric Nelson 52*baefb63aSEric Nelson #define CONFIG_SYS_INIT_SP_OFFSET \ 53*baefb63aSEric Nelson (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) 54*baefb63aSEric Nelson #define CONFIG_SYS_INIT_SP_ADDR \ 55*baefb63aSEric Nelson (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET) 56*baefb63aSEric Nelson 57*baefb63aSEric Nelson #define CONFIG_ENV_SIZE (8 * 1024) 58*baefb63aSEric Nelson 59*baefb63aSEric Nelson #endif /* __CONFIG_H */ 60