Merge git://git.denx.de/u-boot-rockchip
[platform/kernel/u-boot.git] / include / configs / ls1012afrdm.h
1 /*
2  * Copyright 2016 Freescale Semiconductor, Inc.
3  *
4  * SPDX-License-Identifier:     GPL-2.0+
5  */
6
7 #ifndef __LS1012ARDB_H__
8 #define __LS1012ARDB_H__
9
10 #include "ls1012a_common.h"
11
12 /* DDR */
13 #define CONFIG_DIMM_SLOTS_PER_CTLR      1
14 #define CONFIG_CHIP_SELECTS_PER_CTRL    1
15 #define CONFIG_NR_DRAM_BANKS            2
16 #define CONFIG_SYS_SDRAM_SIZE           0x20000000
17 #define CONFIG_CHIP_SELECTS_PER_CTRL    1
18 #define CONFIG_CMD_MEMINFO
19 #define CONFIG_CMD_MEMTEST
20 #define CONFIG_SYS_MEMTEST_START        0x80000000
21 #define CONFIG_SYS_MEMTEST_END          0x9fffffff
22
23 #ifndef CONFIG_SPL_BUILD
24 #undef BOOT_TARGET_DEVICES
25 #define BOOT_TARGET_DEVICES(func) \
26         func(USB, usb, 0)
27 #endif
28
29 #undef CONFIG_EXTRA_ENV_SETTINGS
30 #define CONFIG_EXTRA_ENV_SETTINGS               \
31         "verify=no\0"                           \
32         "fdt_high=0xffffffffffffffff\0"         \
33         "initrd_high=0xffffffffffffffff\0"      \
34         "fdt_addr=0x00f00000\0"                 \
35         "kernel_addr=0x01000000\0"              \
36         "scriptaddr=0x80000000\0"               \
37         "fdtheader_addr_r=0x80100000\0"         \
38         "kernelheader_addr_r=0x80200000\0"      \
39         "kernel_addr_r=0x96000000\0"            \
40         "fdt_addr_r=0x90000000\0"               \
41         "load_addr=0x96000000\0"                \
42         "kernel_size=0x2800000\0"               \
43         "console=ttyS0,115200\0"                \
44         BOOTENV                                 \
45         "boot_scripts=ls1012afrdm_boot.scr\0"   \
46         "scan_dev_for_boot_part="               \
47              "part list ${devtype} ${devnum} devplist; "        \
48              "env exists devplist || setenv devplist 1; "       \
49              "for distro_bootpart in ${devplist}; do "          \
50                   "if fstype ${devtype} "                       \
51                       "${devnum}:${distro_bootpart} "           \
52                       "bootfstype; then "                       \
53                       "run scan_dev_for_boot; " \
54                   "fi; "                        \
55               "done\0"                          \
56         "scan_dev_for_boot="                              \
57                 "echo Scanning ${devtype} "               \
58                                 "${devnum}:${distro_bootpart}...; "  \
59                 "for prefix in ${boot_prefixes}; do "     \
60                         "run scan_dev_for_scripts; "      \
61                 "done;"                                   \
62                 "\0"                                      \
63         "installer=load usb 0:2 $load_addr "    \
64                    "/flex_installer_arm64.itb; "        \
65                    "bootm $load_addr#$board\0"  \
66         "qspi_bootcmd=echo Trying load from qspi..;"    \
67                 "sf probe && sf read $load_addr "       \
68                 "$kernel_addr $kernel_size && bootm $load_addr#$board\0"
69
70 #undef CONFIG_BOOTCOMMAND
71 #define CONFIG_BOOTCOMMAND "run distro_bootcmd;run qspi_bootcmd"
72
73 #define CONFIG_CMD_MEMINFO
74 #define CONFIG_CMD_MEMTEST
75 #define CONFIG_SYS_MEMTEST_START        0x80000000
76 #define CONFIG_SYS_MEMTEST_END          0x9fffffff
77
78 #endif /* __LS1012ARDB_H__ */