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