1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright 2016 Freescale Semiconductor, Inc.
6 #ifndef __LS1012ARDB_H__
7 #define __LS1012ARDB_H__
9 #include "ls1012a_common.h"
12 #define CONFIG_DIMM_SLOTS_PER_CTLR 1
13 #define CONFIG_SYS_SDRAM_SIZE 0x20000000
15 #ifndef CONFIG_SPL_BUILD
16 #undef BOOT_TARGET_DEVICES
17 #define BOOT_TARGET_DEVICES(func) \
21 #undef CONFIG_EXTRA_ENV_SETTINGS
22 #define CONFIG_EXTRA_ENV_SETTINGS \
24 "fdt_high=0xffffffffffffffff\0" \
25 "fdt_addr=0x00f00000\0" \
26 "kernel_addr=0x01000000\0" \
27 "scriptaddr=0x80000000\0" \
28 "fdtheader_addr_r=0x80100000\0" \
29 "kernelheader_addr_r=0x80200000\0" \
30 "kernel_addr_r=0x96000000\0" \
31 "fdt_addr_r=0x90000000\0" \
32 "load_addr=0x96000000\0" \
33 "kernel_size=0x2800000\0" \
34 "bootm_size=0x10000000\0" \
35 "console=ttyS0,115200\0" \
37 "boot_scripts=ls1012afrdm_boot.scr\0" \
38 "scan_dev_for_boot_part=" \
39 "part list ${devtype} ${devnum} devplist; " \
40 "env exists devplist || setenv devplist 1; " \
41 "for distro_bootpart in ${devplist}; do " \
42 "if fstype ${devtype} " \
43 "${devnum}:${distro_bootpart} " \
45 "run scan_dev_for_boot; " \
48 "installer=load usb 0:2 $load_addr " \
49 "/flex_installer_arm64.itb; " \
50 "bootm $load_addr#$board\0" \
51 "qspi_bootcmd=echo Trying load from qspi..;" \
52 "sf probe && sf read $load_addr " \
53 "$kernel_addr $kernel_size && bootm $load_addr#$board\0"
56 #undef QSPI_NOR_BOOTCOMMAND
57 #define QSPI_NOR_BOOTCOMMAND "run distro_bootcmd;run qspi_bootcmd"
60 #endif /* __LS1012ARDB_H__ */