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