board: freescale: p1_p2_rdb_pc: Define SW macros for lower and upper NOR banks
[platform/kernel/u-boot.git] / include / configs / ls1012afrdm.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright 2016 Freescale Semiconductor, Inc.
4  * Copyright 2021 NXP
5  */
6
7 #ifndef __LS1012ARDB_H__
8 #define __LS1012ARDB_H__
9
10 #include "ls1012a_common.h"
11
12 /* DDR */
13 #define CONFIG_SYS_SDRAM_SIZE           0x20000000
14
15 #ifndef CONFIG_SPL_BUILD
16 #undef BOOT_TARGET_DEVICES
17 #define BOOT_TARGET_DEVICES(func) \
18         func(USB, usb, 0)
19 #endif
20
21 #undef CONFIG_EXTRA_ENV_SETTINGS
22 #define CONFIG_EXTRA_ENV_SETTINGS               \
23         "verify=no\0"                           \
24         "fdt_high=0xffffffffffffffff\0"         \
25         "kernel_addr=0x01000000\0"              \
26         "scriptaddr=0x80000000\0"               \
27         "fdtheader_addr_r=0x80100000\0"         \
28         "kernelheader_addr_r=0x80200000\0"      \
29         "kernel_addr_r=0x96000000\0"            \
30         "fdt_addr_r=0x90000000\0"               \
31         "load_addr=0x96000000\0"                \
32         "kernel_size=0x2800000\0"               \
33         "bootm_size=0x10000000\0"               \
34         "console=ttyS0,115200\0"                \
35         BOOTENV                                 \
36         "boot_scripts=ls1012afrdm_boot.scr\0"   \
37         "scan_dev_for_boot_part="               \
38              "part list ${devtype} ${devnum} devplist; "        \
39              "env exists devplist || setenv devplist 1; "       \
40              "for distro_bootpart in ${devplist}; do "          \
41                   "if fstype ${devtype} "                       \
42                       "${devnum}:${distro_bootpart} "           \
43                       "bootfstype; then "                       \
44                       "run scan_dev_for_boot; " \
45                   "fi; "                        \
46               "done\0"                          \
47         "installer=load usb 0:2 $load_addr "    \
48                    "/flex_installer_arm64.itb; "        \
49                    "bootm $load_addr#$board\0"  \
50         "qspi_bootcmd=echo Trying load from qspi..;"    \
51                 "sf probe && sf read $load_addr "       \
52                 "$kernel_addr $kernel_size && bootm $load_addr#$board\0"
53
54 #ifdef CONFIG_TFABOOT
55 #undef QSPI_NOR_BOOTCOMMAND
56 #define QSPI_NOR_BOOTCOMMAND "run distro_bootcmd;run qspi_bootcmd"
57 #endif
58
59 #endif /* __LS1012ARDB_H__ */