Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Prabhakar Kushwaha | ff78aa2 | 2016-06-03 18:41:36 +0530 | [diff] [blame] | 2 | /* |
| 3 | * Copyright 2016 Freescale Semiconductor, Inc. |
Hou Zhiqiang | b416df3 | 2022-04-22 13:50:06 +0530 | [diff] [blame] | 4 | * Copyright 2021 NXP |
Prabhakar Kushwaha | ff78aa2 | 2016-06-03 18:41:36 +0530 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __LS1012ARDB_H__ |
| 8 | #define __LS1012ARDB_H__ |
| 9 | |
| 10 | #include "ls1012a_common.h" |
| 11 | |
Shengzhou Liu | b9e745b | 2016-08-26 18:30:39 +0800 | [diff] [blame] | 12 | /* DDR */ |
Prabhakar Kushwaha | ff78aa2 | 2016-06-03 18:41:36 +0530 | [diff] [blame] | 13 | #define CONFIG_SYS_SDRAM_SIZE 0x20000000 |
Prabhakar Kushwaha | ff78aa2 | 2016-06-03 18:41:36 +0530 | [diff] [blame] | 14 | |
Rajesh Bhagat | 4c616a1 | 2017-11-30 16:44:45 +0530 | [diff] [blame] | 15 | #undef BOOT_TARGET_DEVICES |
| 16 | #define BOOT_TARGET_DEVICES(func) \ |
| 17 | func(USB, usb, 0) |
Rajesh Bhagat | 4c616a1 | 2017-11-30 16:44:45 +0530 | [diff] [blame] | 18 | |
Pratiyush Srivastava | 76379df | 2016-10-07 23:08:38 +0530 | [diff] [blame] | 19 | #undef CONFIG_EXTRA_ENV_SETTINGS |
Rajesh Bhagat | 4c616a1 | 2017-11-30 16:44:45 +0530 | [diff] [blame] | 20 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 21 | "verify=no\0" \ |
| 22 | "fdt_high=0xffffffffffffffff\0" \ |
Rajesh Bhagat | 4c616a1 | 2017-11-30 16:44:45 +0530 | [diff] [blame] | 23 | "kernel_addr=0x01000000\0" \ |
| 24 | "scriptaddr=0x80000000\0" \ |
| 25 | "fdtheader_addr_r=0x80100000\0" \ |
| 26 | "kernelheader_addr_r=0x80200000\0" \ |
| 27 | "kernel_addr_r=0x96000000\0" \ |
| 28 | "fdt_addr_r=0x90000000\0" \ |
| 29 | "load_addr=0x96000000\0" \ |
| 30 | "kernel_size=0x2800000\0" \ |
Udit Agarwal | 3fba231 | 2020-06-08 18:55:44 +0530 | [diff] [blame] | 31 | "bootm_size=0x10000000\0" \ |
Rajesh Bhagat | 4c616a1 | 2017-11-30 16:44:45 +0530 | [diff] [blame] | 32 | "console=ttyS0,115200\0" \ |
| 33 | BOOTENV \ |
| 34 | "boot_scripts=ls1012afrdm_boot.scr\0" \ |
| 35 | "scan_dev_for_boot_part=" \ |
| 36 | "part list ${devtype} ${devnum} devplist; " \ |
| 37 | "env exists devplist || setenv devplist 1; " \ |
| 38 | "for distro_bootpart in ${devplist}; do " \ |
| 39 | "if fstype ${devtype} " \ |
| 40 | "${devnum}:${distro_bootpart} " \ |
| 41 | "bootfstype; then " \ |
| 42 | "run scan_dev_for_boot; " \ |
| 43 | "fi; " \ |
| 44 | "done\0" \ |
Rajesh Bhagat | 4c616a1 | 2017-11-30 16:44:45 +0530 | [diff] [blame] | 45 | "installer=load usb 0:2 $load_addr " \ |
| 46 | "/flex_installer_arm64.itb; " \ |
| 47 | "bootm $load_addr#$board\0" \ |
Mian Yousaf Kaukab | 864c3db | 2021-04-14 12:33:58 +0200 | [diff] [blame] | 48 | "qspi_bootcmd=echo Trying load from qspi..;" \ |
Rajesh Bhagat | 4c616a1 | 2017-11-30 16:44:45 +0530 | [diff] [blame] | 49 | "sf probe && sf read $load_addr " \ |
| 50 | "$kernel_addr $kernel_size && bootm $load_addr#$board\0" |
| 51 | |
Rajesh Bhagat | 7f91b65 | 2018-11-05 18:03:08 +0000 | [diff] [blame] | 52 | #ifdef CONFIG_TFABOOT |
| 53 | #undef QSPI_NOR_BOOTCOMMAND |
Mian Yousaf Kaukab | 864c3db | 2021-04-14 12:33:58 +0200 | [diff] [blame] | 54 | #define QSPI_NOR_BOOTCOMMAND "run distro_bootcmd;run qspi_bootcmd" |
Rajesh Bhagat | 7f91b65 | 2018-11-05 18:03:08 +0000 | [diff] [blame] | 55 | #endif |
Pratiyush Srivastava | 76379df | 2016-10-07 23:08:38 +0530 | [diff] [blame] | 56 | |
Prabhakar Kushwaha | ff78aa2 | 2016-06-03 18:41:36 +0530 | [diff] [blame] | 57 | #endif /* __LS1012ARDB_H__ */ |