cmd: Kconfig: Move CONFIG_MP to Kconfig
[platform/kernel/u-boot.git] / include / configs / ls1012a2g5rdb.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright 2017 NXP
4  */
5
6 #ifndef __LS1012A2G5RDB_H__
7 #define __LS1012A2G5RDB_H__
8
9 #include "ls1012a_common.h"
10
11 /* DDR */
12 #define CONFIG_DIMM_SLOTS_PER_CTLR      1
13 #define CONFIG_CHIP_SELECTS_PER_CTRL    1
14 #define CONFIG_NR_DRAM_BANKS            2
15 #define CONFIG_SYS_SDRAM_SIZE           0x40000000
16 #define CONFIG_CMD_MEMINFO
17 #define CONFIG_SYS_MEMTEST_START        0x80000000
18 #define CONFIG_SYS_MEMTEST_END          0x9fffffff
19
20 /*  MMC  */
21 #ifdef CONFIG_MMC
22 #define CONFIG_SYS_FSL_MMC_HAS_CAPBLT_VS33
23 #endif
24
25 /* SATA */
26 #define CONFIG_LIBATA
27 #define CONFIG_SCSI_AHCI
28 #define CONFIG_SCSI_AHCI_PLAT
29
30 #define CONFIG_SYS_SATA                         AHCI_BASE_ADDR
31
32 #define CONFIG_SYS_SCSI_MAX_SCSI_ID             1
33 #define CONFIG_SYS_SCSI_MAX_LUN                 1
34 #define CONFIG_SYS_SCSI_MAX_DEVICE              (CONFIG_SYS_SCSI_MAX_SCSI_ID * \
35                                                 CONFIG_SYS_SCSI_MAX_LUN)
36 #define CONFIG_CMD_MEMINFO
37 #define CONFIG_SYS_MEMTEST_START        0x80000000
38 #define CONFIG_SYS_MEMTEST_END          0x9fffffff
39
40 #undef CONFIG_EXTRA_ENV_SETTINGS
41 #define CONFIG_EXTRA_ENV_SETTINGS               \
42         "verify=no\0"                           \
43         "fdt_high=0xffffffffffffffff\0"         \
44         "initrd_high=0xffffffffffffffff\0"      \
45         "fdt_addr=0x00f00000\0"                 \
46         "kernel_addr=0x01000000\0"              \
47         "kernelheader_addr=0x800000\0"          \
48         "scriptaddr=0x80000000\0"               \
49         "scripthdraddr=0x80080000\0"            \
50         "fdtheader_addr_r=0x80100000\0"         \
51         "kernelheader_addr_r=0x80200000\0"      \
52         "kernel_addr_r=0x81000000\0"            \
53         "fdt_addr_r=0x90000000\0"               \
54         "load_addr=0xa0000000\0"                \
55         "kernel_size=0x2800000\0"               \
56         "kernelheader_size=0x40000\0"           \
57         "console=ttyS0,115200\0"                \
58         BOOTENV                                 \
59         "boot_scripts=ls1012ardb_boot.scr\0"    \
60         "boot_script_hdr=hdr_ls1012ardb_bs.out\0"       \
61         "scan_dev_for_boot_part="               \
62              "part list ${devtype} ${devnum} devplist; "        \
63              "env exists devplist || setenv devplist 1; "       \
64              "for distro_bootpart in ${devplist}; do "          \
65                   "if fstype ${devtype} "                       \
66                       "${devnum}:${distro_bootpart} "           \
67                       "bootfstype; then "                       \
68                       "run scan_dev_for_boot; " \
69                   "fi; "                        \
70               "done\0"                          \
71         "scan_dev_for_boot="                              \
72                 "echo Scanning ${devtype} "               \
73                                 "${devnum}:${distro_bootpart}...; "  \
74                 "for prefix in ${boot_prefixes}; do "     \
75                         "run scan_dev_for_scripts; "      \
76                 "done;"                                   \
77                 "\0"                                      \
78         "boot_a_script="                                  \
79                 "load ${devtype} ${devnum}:${distro_bootpart} "  \
80                         "${scriptaddr} ${prefix}${script}; "    \
81                 "env exists secureboot && load ${devtype} "     \
82                         "${devnum}:${distro_bootpart} "         \
83                         "${scripthdraddr} ${prefix}${boot_script_hdr} " \
84                         "&& esbc_validate ${scripthdraddr};"    \
85                 "source ${scriptaddr}\0"          \
86         "installer=load mmc 0:2 $load_addr "    \
87                    "/flex_installer_arm64.itb; "        \
88                    "bootm $load_addr#$board\0"  \
89         "qspi_bootcmd=echo Trying load from qspi..;"    \
90                 "sf probe && sf read $load_addr "       \
91                 "$kernel_addr $kernel_size; env exists secureboot "     \
92                 "&& sf read $kernelheader_addr_r $kernelheader_addr "   \
93                 "$kernelheader_size && esbc_validate ${kernelheader_addr_r}; " \
94                 "bootm $load_addr#$board\0"
95
96 #undef CONFIG_BOOTCOMMAND
97 #if defined(CONFIG_QSPI_BOOT) || defined(CONFIG_SD_BOOT_QSPI)
98 #define CONFIG_BOOTCOMMAND "pfe stop;run distro_bootcmd; run qspi_bootcmd; " \
99                            "env exists secureboot && esbc_halt;"
100 #endif
101
102 #define DEFAULT_PFE_MDIO_NAME "PFE_MDIO"
103 #define DEFAULT_PFE_MDIO1_NAME "PFE_MDIO1"
104
105 #include <asm/fsl_secure_boot.h>
106
107 #endif /* __LS1012A2G5RDB_H__ */