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_CHIP_SELECTS_PER_CTRL 1
14 #define CONFIG_SYS_SDRAM_SIZE 0x20000000
15 #define CONFIG_CHIP_SELECTS_PER_CTRL 1
17 #ifndef CONFIG_SPL_BUILD
18 #undef BOOT_TARGET_DEVICES
19 #define BOOT_TARGET_DEVICES(func) \
23 #undef CONFIG_EXTRA_ENV_SETTINGS
24 #define CONFIG_EXTRA_ENV_SETTINGS \
26 "fdt_high=0xffffffffffffffff\0" \
27 "fdt_addr=0x00f00000\0" \
28 "kernel_addr=0x01000000\0" \
29 "scriptaddr=0x80000000\0" \
30 "fdtheader_addr_r=0x80100000\0" \
31 "kernelheader_addr_r=0x80200000\0" \
32 "kernel_addr_r=0x96000000\0" \
33 "fdt_addr_r=0x90000000\0" \
34 "load_addr=0x96000000\0" \
35 "kernel_size=0x2800000\0" \
36 "bootm_size=0x10000000\0" \
37 "console=ttyS0,115200\0" \
39 "boot_scripts=ls1012afrdm_boot.scr\0" \
40 "scan_dev_for_boot_part=" \
41 "part list ${devtype} ${devnum} devplist; " \
42 "env exists devplist || setenv devplist 1; " \
43 "for distro_bootpart in ${devplist}; do " \
44 "if fstype ${devtype} " \
45 "${devnum}:${distro_bootpart} " \
47 "run scan_dev_for_boot; " \
50 "scan_dev_for_boot=" \
51 "echo Scanning ${devtype} " \
52 "${devnum}:${distro_bootpart}...; " \
53 "for prefix in ${boot_prefixes}; do " \
54 "run scan_dev_for_scripts; " \
57 "installer=load usb 0:2 $load_addr " \
58 "/flex_installer_arm64.itb; " \
59 "bootm $load_addr#$board\0" \
60 "qspi_bootcmd=pfe stop; echo Trying load from qspi..;" \
61 "sf probe && sf read $load_addr " \
62 "$kernel_addr $kernel_size && bootm $load_addr#$board\0"
64 #undef CONFIG_BOOTCOMMAND
66 #undef QSPI_NOR_BOOTCOMMAND
67 #define QSPI_NOR_BOOTCOMMAND "pfe stop;run distro_bootcmd;run qspi_bootcmd"
69 #define CONFIG_BOOTCOMMAND "pfe stop;run distro_bootcmd;run qspi_bootcmd"
72 #endif /* __LS1012ARDB_H__ */