Merge branch '2022-12-07-Kconfig-migrations' into next
[platform/kernel/u-boot.git] / include / configs / phycore_imx8mp.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  *
3  * Copyright (C) 2020 PHYTEC Messtechnik GmbH
4  * Author: Teresa Remmet <t.remmet@phytec.de>
5  */
6
7 #ifndef __PHYCORE_IMX8MP_H
8 #define __PHYCORE_IMX8MP_H
9
10 #include <linux/sizes.h>
11 #include <asm/arch/imx-regs.h>
12
13 #define CFG_SYS_UBOOT_BASE \
14                 (QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)
15
16 #ifdef CONFIG_SPL_BUILD
17
18 #define CONFIG_POWER_PCA9450
19
20 #endif
21
22 #define CONFIG_EXTRA_ENV_SETTINGS \
23         "image=Image\0" \
24         "console=ttymxc0,115200\0" \
25         "fdt_addr=0x48000000\0" \
26         "fdt_file=" CONFIG_DEFAULT_FDT_FILE "\0" \
27         "ip_dyn=yes\0" \
28         "mmcdev=" __stringify(CONFIG_SYS_MMC_ENV_DEV) "\0" \
29         "mmcpart=1\0" \
30         "mmcroot=2\0" \
31         "mmcautodetect=yes\0" \
32         "mmcargs=setenv bootargs console=${console} " \
33                 "root=/dev/mmcblk${mmcdev}p${mmcroot} rootwait rw\0" \
34         "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
35         "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
36         "mmcboot=echo Booting from mmc ...; " \
37                 "run mmcargs; " \
38                 "if run loadfdt; then " \
39                         "booti ${loadaddr} - ${fdt_addr}; " \
40                 "else " \
41                         "echo WARN: Cannot load the DT; " \
42                 "fi;\0 " \
43         "nfsroot=/nfs\0" \
44         "netargs=setenv bootargs console=${console} root=/dev/nfs ip=dhcp " \
45                 "nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
46         "netboot=echo Booting from net ...; " \
47                 "run netargs; " \
48                 "if test ${ip_dyn} = yes; then " \
49                         "setenv get_cmd dhcp; " \
50                 "else " \
51                         "setenv get_cmd tftp; " \
52                 "fi; " \
53                 "${get_cmd} ${loadaddr} ${image}; " \
54                 "if ${get_cmd} ${fdt_addr} ${fdt_file}; then " \
55                         "booti ${loadaddr} - ${fdt_addr}; " \
56                 "else " \
57                         "echo WARN: Cannot load the DT; " \
58                 "fi;\0" \
59
60 /* Link Definitions */
61
62 #define CFG_SYS_INIT_RAM_ADDR   0x40000000
63 #define CFG_SYS_INIT_RAM_SIZE   SZ_512K
64
65
66 #define CFG_SYS_SDRAM_BASE              0x40000000
67
68 #define PHYS_SDRAM                      0x40000000
69 #define PHYS_SDRAM_SIZE                 0x80000000
70
71 #endif /* __PHYCORE_IMX8MP_H */