cmd: Kconfig: Move CONFIG_MP to Kconfig
[platform/kernel/u-boot.git] / include / configs / mx6sllevk.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright 2013-2016 Freescale Semiconductor, Inc.
4  *
5  * Configuration settings for the Freescale i.MX6SL EVK board.
6  */
7
8 #ifndef __CONFIG_H
9 #define __CONFIG_H
10
11 #include "mx6_common.h"
12
13 #ifdef CONFIG_SECURE_BOOT
14 #ifndef CONFIG_CSF_SIZE
15 #define CONFIG_CSF_SIZE 0x4000
16 #endif
17 #endif
18
19 /* Size of malloc() pool */
20 #define CONFIG_SYS_MALLOC_LEN           (16 * SZ_1M)
21
22 #define CONFIG_MXC_UART
23 #define CONFIG_MXC_UART_BASE            UART1_BASE
24
25 /* I2C Configs */
26 #ifdef CONFIG_CMD_I2C
27 #define CONFIG_SYS_I2C_MXC
28 #define CONFIG_SYS_I2C_MXC_I2C1         /* enable I2C bus 1 */
29 #define CONFIG_SYS_I2C_MXC_I2C2         /* enable I2C bus 2 */
30 #define CONFIG_SYS_I2C_MXC_I2C3         /* enable I2C bus 3 */
31 #define CONFIG_SYS_I2C_SPEED              100000
32 #endif
33
34 #define CONFIG_EXTRA_ENV_SETTINGS \
35         "epdc_waveform=epdc_splash.bin\0" \
36         "script=boot.scr\0" \
37         "image=zImage\0" \
38         "console=ttymxc0\0" \
39         "fdt_high=0xffffffff\0" \
40         "initrd_high=0xffffffff\0" \
41         "fdt_file=imx6sll-evk.dtb\0" \
42         "fdt_addr=0x83000000\0" \
43         "boot_fdt=try\0" \
44         "ip_dyn=yes\0" \
45         "mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \
46         "mmcpart=1\0" \
47         "mmcroot=" CONFIG_MMCROOT " rootwait rw\0" \
48         "mmcautodetect=yes\0" \
49         "mmcargs=setenv bootargs console=${console},${baudrate} " \
50                 "root=${mmcroot}\0" \
51         "loadbootscript=" \
52                 "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
53         "bootscript=echo Running bootscript from mmc ...; " \
54                 "source\0" \
55         "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
56         "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
57         "mmcboot=echo Booting from mmc ...; " \
58                 "run mmcargs; " \
59                 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
60                         "if run loadfdt; then " \
61                                 "bootz ${loadaddr} - ${fdt_addr}; " \
62                         "else " \
63                                 "if test ${boot_fdt} = try; then " \
64                                         "bootz; " \
65                                 "else " \
66                                         "echo WARN: Cannot load the DT; " \
67                                 "fi; " \
68                         "fi; " \
69                 "else " \
70                         "bootz; " \
71                 "fi;\0" \
72         "netargs=setenv bootargs console=${console},${baudrate} " \
73                 "root=/dev/nfs " \
74         "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
75                 "netboot=echo Booting from net ...; " \
76                 "usb start; " \
77                 "run netargs; " \
78                 "if test ${ip_dyn} = yes; then " \
79                         "setenv get_cmd dhcp; " \
80                 "else " \
81                         "setenv get_cmd tftp; " \
82                 "fi; " \
83                 "${get_cmd} ${image}; " \
84                 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
85                         "if ${get_cmd} ${fdt_addr} ${fdt_file}; then " \
86                                 "bootz ${loadaddr} - ${fdt_addr}; " \
87                         "else " \
88                                 "if test ${boot_fdt} = try; then " \
89                                         "bootz; " \
90                                 "else " \
91                                         "echo WARN: Cannot load the DT; " \
92                                 "fi; " \
93                         "fi; " \
94                 "else " \
95                         "bootz; " \
96                 "fi;\0"
97
98 #define CONFIG_BOOTCOMMAND \
99            "mmc dev ${mmcdev};" \
100            "mmc dev ${mmcdev}; if mmc rescan; then " \
101                    "if run loadbootscript; then " \
102                            "run bootscript; " \
103                    "else " \
104                            "if run loadimage; then " \
105                                    "run mmcboot; " \
106                            "else run netboot; " \
107                            "fi; " \
108                    "fi; " \
109            "else run netboot; fi"
110
111 /* Miscellaneous configurable options */
112 #define CONFIG_SYS_MEMTEST_START        0x80000000
113 #define CONFIG_SYS_MEMTEST_END          (CONFIG_SYS_MEMTEST_START + SZ_128M)
114
115 /* Physical Memory Map */
116 #define CONFIG_NR_DRAM_BANKS            1
117 #define PHYS_SDRAM                      MMDC0_ARB_BASE_ADDR
118 #define PHYS_SDRAM_SIZE                 SZ_2G
119
120 #define CONFIG_SYS_SDRAM_BASE           PHYS_SDRAM
121 #define CONFIG_SYS_INIT_RAM_ADDR        IRAM_BASE_ADDR
122 #define CONFIG_SYS_INIT_RAM_SIZE        IRAM_SIZE
123
124 #define CONFIG_SYS_INIT_SP_OFFSET \
125         (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
126 #define CONFIG_SYS_INIT_SP_ADDR \
127         (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
128
129 /* Environment organization */
130 #define CONFIG_ENV_SIZE                 SZ_8K
131 #define CONFIG_SYS_MMC_ENV_PART         0   /* user partition */
132 #define CONFIG_MMCROOT                  "/dev/mmcblk0p2"  /* USDHC1 */
133
134 #define CONFIG_ENV_OFFSET               (12 * SZ_64K)
135
136 /* MMC Configs */
137 #define CONFIG_SYS_FSL_ESDHC_ADDR       USDHC1_BASE_ADDR
138 #define CONFIG_SYS_FSL_USDHC_NUM        3
139 #define CONFIG_SYS_MMC_ENV_DEV          0   /* USDHC1 */
140
141 #define CONFIG_IMX_THERMAL
142
143 #define CONFIG_IOMUX_LPSR
144
145 /* USB Configs */
146 #ifdef CONFIG_CMD_USB
147 #define CONFIG_MXC_USB_PORTSC           (PORT_PTS_UTMI | PORT_PTS_PTW)
148 #endif
149
150 #endif                          /* __CONFIG_H */