xref: /openbmc/u-boot/include/configs/secomx6quq7.h (revision d7869b2183d2b786e5410b97a5a6b2e630e7825e)
1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */
2058d2316SBoris BREZILLON /*
3058d2316SBoris BREZILLON  * Copyright (C) 2013 Seco S.r.l
4058d2316SBoris BREZILLON  *
5058d2316SBoris BREZILLON  * Configuration settings for the Seco Boards.
6058d2316SBoris BREZILLON  */
7058d2316SBoris BREZILLON 
8058d2316SBoris BREZILLON #ifndef __CONFIG_H
9058d2316SBoris BREZILLON #define __CONFIG_H
10058d2316SBoris BREZILLON 
11058d2316SBoris BREZILLON #include "mx6_common.h"
12058d2316SBoris BREZILLON 
13058d2316SBoris BREZILLON #define CONFIG_BOARD_REVISION_TAG
14058d2316SBoris BREZILLON 
15058d2316SBoris BREZILLON /* Size of malloc() pool */
16058d2316SBoris BREZILLON #define CONFIG_SYS_MALLOC_LEN		(10 * SZ_1M)
17058d2316SBoris BREZILLON 
18058d2316SBoris BREZILLON #define CONFIG_MXC_UART
19058d2316SBoris BREZILLON #define CONFIG_MXC_UART_BASE		UART2_BASE
20058d2316SBoris BREZILLON 
21058d2316SBoris BREZILLON #define CONFIG_SYS_MEMTEST_START	0x10000000
22058d2316SBoris BREZILLON #define CONFIG_SYS_MEMTEST_END		(CONFIG_SYS_MEMTEST_START + 500 * SZ_1M)
23058d2316SBoris BREZILLON 
24058d2316SBoris BREZILLON /* MMC Configuration */
25058d2316SBoris BREZILLON #define CONFIG_SYS_FSL_USDHC_NUM        2
26058d2316SBoris BREZILLON #define CONFIG_SYS_FSL_ESDHC_ADDR	0
27058d2316SBoris BREZILLON 
28058d2316SBoris BREZILLON /* Ethernet Configuration */
29058d2316SBoris BREZILLON #define CONFIG_FEC_MXC
30058d2316SBoris BREZILLON #define IMX_FEC_BASE			ENET_BASE_ADDR
31058d2316SBoris BREZILLON #define CONFIG_FEC_XCV_TYPE		RGMII
32058d2316SBoris BREZILLON #define CONFIG_ETHPRIME			"FEC"
33058d2316SBoris BREZILLON #define CONFIG_FEC_MXC_PHYADDR		6
34058d2316SBoris BREZILLON 
35058d2316SBoris BREZILLON #define CONFIG_EXTRA_ENV_SETTINGS					\
36058d2316SBoris BREZILLON 	"netdev=eth0\0"							\
37058d2316SBoris BREZILLON 	"ethprime=FEC0\0"						\
38058d2316SBoris BREZILLON 	"netdev=eth0\0"							\
39058d2316SBoris BREZILLON 	"ethprime=FEC0\0"						\
40058d2316SBoris BREZILLON 	"uboot=u-boot.bin\0"						\
41058d2316SBoris BREZILLON 	"kernel=uImage\0"						\
42058d2316SBoris BREZILLON 	"nfsroot=/opt/eldk/arm\0"					\
43058d2316SBoris BREZILLON 	"ip_local=10.0.0.5::10.0.0.1:255.255.255.0::eth0:off\0"		\
44058d2316SBoris BREZILLON 	"ip_server=10.0.0.1\0"						\
45058d2316SBoris BREZILLON 	"nfs_path=/targetfs \0"						\
46058d2316SBoris BREZILLON 	"memory=mem=1024M\0"						\
47058d2316SBoris BREZILLON 	"bootdev=mmc dev 0; ext2load mmc 0:1\0"				\
48058d2316SBoris BREZILLON 	"root=root=/dev/mmcblk0p1\0"					\
49058d2316SBoris BREZILLON 	"option=rootwait rw fixrtc rootflags=barrier=1\0"		\
50058d2316SBoris BREZILLON 	"cpu_freq=arm_freq=996\0"					\
51058d2316SBoris BREZILLON 	"setbootargs=setenv bootargs console=ttymxc1,115200 ${root}"	\
52058d2316SBoris BREZILLON 		" ${option} ${memory} ${cpu_freq}\0"			\
53058d2316SBoris BREZILLON 	"setbootargs_nfs=setenv bootargs console=ttymxc1,115200"	\
54058d2316SBoris BREZILLON 		" root=/dev/nfs  nfsroot=${ip_server}:${nfs_path}"	\
55058d2316SBoris BREZILLON 		" nolock,wsize=4096,rsize=4096  ip=:::::eth0:dhcp"	\
56058d2316SBoris BREZILLON 		" ${memory} ${cpu_freq}\0"				\
57058d2316SBoris BREZILLON 	"setbootdev=setenv boot_dev ${bootdev} 10800000 /boot/uImage\0"	\
58058d2316SBoris BREZILLON 	"bootcmd=run setbootargs; run setbootdev; run boot_dev;"	\
59058d2316SBoris BREZILLON 		" bootm 0x10800000\0"					\
60058d2316SBoris BREZILLON 	"stdin=serial\0"						\
61058d2316SBoris BREZILLON 	"stdout=serial\0"						\
62058d2316SBoris BREZILLON 	"stderr=serial\0"
63058d2316SBoris BREZILLON 
64058d2316SBoris BREZILLON #define CONFIG_SYS_HZ			1000
65058d2316SBoris BREZILLON 
66058d2316SBoris BREZILLON /* Physical Memory Map */
67058d2316SBoris BREZILLON #define PHYS_SDRAM			MMDC0_ARB_BASE_ADDR
68058d2316SBoris BREZILLON #define PHYS_SDRAM_SIZE			(2u * 1024 * 1024 * 1024)
69058d2316SBoris BREZILLON 
70058d2316SBoris BREZILLON #define CONFIG_SYS_SDRAM_BASE		PHYS_SDRAM
71058d2316SBoris BREZILLON #define CONFIG_SYS_INIT_RAM_ADDR	IRAM_BASE_ADDR
72058d2316SBoris BREZILLON #define CONFIG_SYS_INIT_RAM_SIZE	IRAM_SIZE
73058d2316SBoris BREZILLON 
74058d2316SBoris BREZILLON #define CONFIG_SYS_INIT_SP_OFFSET	\
75058d2316SBoris BREZILLON 	(CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
76058d2316SBoris BREZILLON #define CONFIG_SYS_INIT_SP_ADDR		\
77058d2316SBoris BREZILLON 	(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
78058d2316SBoris BREZILLON 
79056845c2SPeter Robinson /* Environment organization */
80058d2316SBoris BREZILLON #define CONFIG_ENV_SIZE			(8 * 1024)
81058d2316SBoris BREZILLON 
82058d2316SBoris BREZILLON #if defined(CONFIG_ENV_IS_IN_MMC)
83058d2316SBoris BREZILLON 	#define CONFIG_ENV_OFFSET		(6 * 128 * 1024)
84058d2316SBoris BREZILLON 	#define CONFIG_SYS_MMC_ENV_DEV		0
85058d2316SBoris BREZILLON 	#define CONFIG_DYNAMIC_MMC_DEVNO
86058d2316SBoris BREZILLON #endif
87058d2316SBoris BREZILLON 
88058d2316SBoris BREZILLON #endif /* __CONFIG_H */
89