blob: 6bb6927039d9a2e1004ede469d4de453b91e16ce [file] [log] [blame]
Prabhakar Kushwahaff78aa22016-06-03 18:41:36 +05301/*
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
Shengzhou Liub9e745b2016-08-26 18:30:39 +080012/* DDR */
Prabhakar Kushwahaff78aa22016-06-03 18:41:36 +053013#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
Shengzhou Liub9e745b2016-08-26 18:30:39 +080017#define CONFIG_CHIP_SELECTS_PER_CTRL 1
Prabhakar Kushwahaff78aa22016-06-03 18:41:36 +053018#define CONFIG_CMD_MEMINFO
Prabhakar Kushwahaff78aa22016-06-03 18:41:36 +053019#define CONFIG_SYS_MEMTEST_START 0x80000000
20#define CONFIG_SYS_MEMTEST_END 0x9fffffff
21
Rajesh Bhagat4c616a12017-11-30 16:44:45 +053022#ifndef CONFIG_SPL_BUILD
23#undef BOOT_TARGET_DEVICES
24#define BOOT_TARGET_DEVICES(func) \
25 func(USB, usb, 0)
26#endif
27
Pratiyush Srivastava76379df2016-10-07 23:08:38 +053028#undef CONFIG_EXTRA_ENV_SETTINGS
Rajesh Bhagat4c616a12017-11-30 16:44:45 +053029#define CONFIG_EXTRA_ENV_SETTINGS \
30 "verify=no\0" \
31 "fdt_high=0xffffffffffffffff\0" \
32 "initrd_high=0xffffffffffffffff\0" \
33 "fdt_addr=0x00f00000\0" \
34 "kernel_addr=0x01000000\0" \
35 "scriptaddr=0x80000000\0" \
36 "fdtheader_addr_r=0x80100000\0" \
37 "kernelheader_addr_r=0x80200000\0" \
38 "kernel_addr_r=0x96000000\0" \
39 "fdt_addr_r=0x90000000\0" \
40 "load_addr=0x96000000\0" \
41 "kernel_size=0x2800000\0" \
42 "console=ttyS0,115200\0" \
43 BOOTENV \
44 "boot_scripts=ls1012afrdm_boot.scr\0" \
45 "scan_dev_for_boot_part=" \
46 "part list ${devtype} ${devnum} devplist; " \
47 "env exists devplist || setenv devplist 1; " \
48 "for distro_bootpart in ${devplist}; do " \
49 "if fstype ${devtype} " \
50 "${devnum}:${distro_bootpart} " \
51 "bootfstype; then " \
52 "run scan_dev_for_boot; " \
53 "fi; " \
54 "done\0" \
55 "scan_dev_for_boot=" \
56 "echo Scanning ${devtype} " \
57 "${devnum}:${distro_bootpart}...; " \
58 "for prefix in ${boot_prefixes}; do " \
59 "run scan_dev_for_scripts; " \
60 "done;" \
61 "\0" \
62 "installer=load usb 0:2 $load_addr " \
63 "/flex_installer_arm64.itb; " \
64 "bootm $load_addr#$board\0" \
65 "qspi_bootcmd=echo Trying load from qspi..;" \
66 "sf probe && sf read $load_addr " \
67 "$kernel_addr $kernel_size && bootm $load_addr#$board\0"
68
69#undef CONFIG_BOOTCOMMAND
Calvin Johnsona802d1e2018-03-08 15:30:35 +053070#define CONFIG_BOOTCOMMAND "pfe stop;run distro_bootcmd;run qspi_bootcmd"
Pratiyush Srivastava76379df2016-10-07 23:08:38 +053071
Prabhakar Kushwahaff78aa22016-06-03 18:41:36 +053072#define CONFIG_CMD_MEMINFO
Prabhakar Kushwahaff78aa22016-06-03 18:41:36 +053073#define CONFIG_SYS_MEMTEST_START 0x80000000
74#define CONFIG_SYS_MEMTEST_END 0x9fffffff
75
76#endif /* __LS1012ARDB_H__ */