Merge tag 'next-20220328' of https://source.denx.de/u-boot/custodians/u-boot-video...
[platform/kernel/u-boot.git] / include / configs / ten64.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright 2017 NXP
4  * Copyright 2019-2021 Traverse Technologies
5  */
6
7 #ifndef __TEN64_H
8 #define __TEN64_H
9
10 #include "ls1088a_common.h"
11
12 #define COUNTER_FREQUENCY               25000000        /* 25MHz */
13
14 #define CONFIG_DIMM_SLOTS_PER_CTLR      1
15
16 #define CONFIG_SYS_LS_MC_BOOT_TIMEOUT_MS 5000
17
18 #define QSPI_NOR_BOOTCOMMAND    "run distro_bootcmd"
19 #define SD_BOOTCOMMAND          "run distro_bootcmd"
20
21 #define QSPI_MC_INIT_CMD                                \
22         "sf probe 0:0 && sf read 0x80000000 0x300000 0x200000 &&"       \
23         "sf read 0x80200000 0x5C0000 0x40000 &&"                                \
24         "fsl_mc start mc 0x80000000 0x80200000 && " \
25         "sf read 0x80300000 0x580000 0x40000 && fsl_mc lazyapply DPL 0x80300000\0"
26 #define SD_MC_INIT_CMD                          \
27         "mmcinfo; fatload mmc 0 0x80000000 mcfirmware/mc_ls1088a.itb; "\
28         "fatload mmc 0 0x80200000 dpaa2config/dpc.0x1D-0x0D.dtb; "\
29         "fsl_mc start mc 0x80000000 0x80200000\0"
30
31 #define BOOT_TARGET_DEVICES(func) \
32         func(NVME, nvme, 0) \
33         func(USB, usb, 0) \
34         func(MMC, mmc, 0) \
35         func(SCSI, scsi, 0) \
36         func(DHCP, dhcp, 0) \
37         func(PXE, pxe, 0)
38 #include <config_distro_bootcmd.h>
39
40 #undef CONFIG_EXTRA_ENV_SETTINGS
41
42 #define CONFIG_EXTRA_ENV_SETTINGS \
43         "BOARD=ten64\0"                                 \
44         "fdt_addr_r=0x90000000\0"               \
45         "fdt_high=0xa0000000\0"                 \
46         "kernel_addr_r=0x81000000\0"            \
47         "load_addr=0xa0000000\0"                \
48         BOOTENV \
49         "load_efi_dtb=mtd read devicetree $fdt_addr_r && fdt addr $fdt_addr_r && " \
50         "fdt resize && fdt boardsetup\0" \
51         "bootcmd_recovery=mtd read recovery 0xa0000000; mtd read dpl 0x80100000 && " \
52         "fsl_mc apply DPL 0x80100000 && bootm 0xa0000000#ten64\0"
53
54 #endif /* __TEN64_H */