xref: /openbmc/u-boot/include/configs/mx6memcal.h (revision b71d9e8b)
1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */
2baefb63aSEric Nelson /*
3d8acc9deSEric Nelson  * Copyright (C) 2010-2018 Freescale Semiconductor, Inc.
4baefb63aSEric Nelson  *
5d8acc9deSEric Nelson  * Configuration settings for the virtual mx6memcal board.
6baefb63aSEric Nelson  */
7baefb63aSEric Nelson 
8baefb63aSEric Nelson #ifndef __CONFIG_H
9baefb63aSEric Nelson #define __CONFIG_H
10baefb63aSEric Nelson 
11baefb63aSEric Nelson /* SPL */
12baefb63aSEric Nelson 
13baefb63aSEric Nelson #include "mx6_common.h"
14baefb63aSEric Nelson #include "imx6_spl.h"
15baefb63aSEric Nelson 
16baefb63aSEric Nelson #undef CONFIG_MMC
17baefb63aSEric Nelson #undef CONFIG_SPL_MMC_SUPPORT
18baefb63aSEric Nelson #undef CONFIG_GENERIC_MMC
19baefb63aSEric Nelson #undef CONFIG_CMD_FUSE
20baefb63aSEric Nelson 
21baefb63aSEric Nelson #define CONFIG_SYS_MEMTEST_START	0x10000000
22baefb63aSEric Nelson #define CONFIG_SYS_MEMTEST_END		0x20000000
23baefb63aSEric Nelson #define CONFIG_SYS_MALLOC_LEN		(64 * 1024 * 1024)
24baefb63aSEric Nelson 
25baefb63aSEric Nelson #define CONFIG_MXC_UART
26baefb63aSEric Nelson #ifdef CONFIG_SERIAL_CONSOLE_UART1
27baefb63aSEric Nelson #if defined(CONFIG_MX6SL)
28baefb63aSEric Nelson #define CONFIG_MXC_UART_BASE		UART1_IPS_BASE_ADDR
29baefb63aSEric Nelson #else
30baefb63aSEric Nelson #define CONFIG_MXC_UART_BASE		UART1_BASE
31baefb63aSEric Nelson #endif
32baefb63aSEric Nelson #elif defined(CONFIG_SERIAL_CONSOLE_UART2)
33baefb63aSEric Nelson #define CONFIG_MXC_UART_BASE		UART2_BASE
34baefb63aSEric Nelson #else
35baefb63aSEric Nelson #error please define serial console (CONFIG_SERIAL_CONSOLE_UARTx)
36baefb63aSEric Nelson #endif
37baefb63aSEric Nelson #define CONFIG_BAUDRATE			115200
38baefb63aSEric Nelson 
39baefb63aSEric Nelson #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + 16)
40baefb63aSEric Nelson 
41baefb63aSEric Nelson /* Physical Memory Map */
42baefb63aSEric Nelson #define PHYS_SDRAM		       MMDC0_ARB_BASE_ADDR
43baefb63aSEric Nelson 
44baefb63aSEric Nelson #define CONFIG_SYS_SDRAM_BASE	       PHYS_SDRAM
45baefb63aSEric Nelson #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
46baefb63aSEric Nelson #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
47baefb63aSEric Nelson 
48baefb63aSEric Nelson #define CONFIG_SYS_INIT_SP_OFFSET \
49baefb63aSEric Nelson 	(CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
50baefb63aSEric Nelson #define CONFIG_SYS_INIT_SP_ADDR \
51baefb63aSEric Nelson 	(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
52baefb63aSEric Nelson 
53baefb63aSEric Nelson #define CONFIG_ENV_SIZE			(8 * 1024)
54baefb63aSEric Nelson 
550093b3fcSEric Nelson #define CONFIG_MXC_USB_PORTSC	PORT_PTS_UTMI
560093b3fcSEric Nelson 
57baefb63aSEric Nelson #endif	       /* __CONFIG_H */
58