Jagan Teki | b22da75 | 2020-01-10 00:16:21 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright (C) 2019 Jagan Teki <jagan@amarulasolutions.com> |
| 4 | */ |
| 5 | |
| 6 | #include <config.h> |
| 7 | |
| 8 | / { |
Simon Glass | 88315f7 | 2020-07-19 13:55:57 -0600 | [diff] [blame] | 9 | binman: binman { |
| 10 | multiple-images; |
| 11 | }; |
| 12 | }; |
| 13 | |
Simon Glass | 4943502 | 2020-07-19 13:56:07 -0600 | [diff] [blame] | 14 | #ifdef CONFIG_SPL |
Simon Glass | 88315f7 | 2020-07-19 13:55:57 -0600 | [diff] [blame] | 15 | &binman { |
| 16 | simple-bin { |
Jagan Teki | b22da75 | 2020-01-10 00:16:21 +0530 | [diff] [blame] | 17 | filename = "u-boot-rockchip.bin"; |
| 18 | pad-byte = <0xff>; |
| 19 | |
Quentin Schulz | 8c9b9fe | 2022-09-02 15:10:51 +0200 | [diff] [blame] | 20 | mkimage { |
Jagan Teki | b22da75 | 2020-01-10 00:16:21 +0530 | [diff] [blame] | 21 | filename = "idbloader.img"; |
Quentin Schulz | 8c9b9fe | 2022-09-02 15:10:51 +0200 | [diff] [blame] | 22 | args = "-n", CONFIG_SYS_SOC, "-T", "rksd"; |
| 23 | #ifdef CONFIG_TPL |
| 24 | multiple-data-files; |
| 25 | |
| 26 | u-boot-tpl { |
| 27 | }; |
| 28 | #endif |
| 29 | u-boot-spl { |
| 30 | }; |
Jagan Teki | b22da75 | 2020-01-10 00:16:21 +0530 | [diff] [blame] | 31 | }; |
| 32 | |
Quentin Schulz | d9ffa5e | 2022-09-02 15:10:52 +0200 | [diff] [blame] | 33 | #ifdef CONFIG_ARM64 |
| 34 | blob { |
| 35 | filename = "u-boot.itb"; |
| 36 | #else |
Jagan Teki | b22da75 | 2020-01-10 00:16:21 +0530 | [diff] [blame] | 37 | u-boot-img { |
Quentin Schulz | d9ffa5e | 2022-09-02 15:10:52 +0200 | [diff] [blame] | 38 | #endif |
Jagan Teki | b22da75 | 2020-01-10 00:16:21 +0530 | [diff] [blame] | 39 | offset = <CONFIG_SPL_PAD_TO>; |
| 40 | }; |
| 41 | }; |
Quentin Schulz | 9c5217d | 2022-09-02 15:10:55 +0200 | [diff] [blame] | 42 | |
| 43 | #ifdef CONFIG_ROCKCHIP_SPI_IMAGE |
| 44 | simple-bin-spi { |
| 45 | filename = "u-boot-rockchip-spi.bin"; |
| 46 | pad-byte = <0xff>; |
| 47 | |
| 48 | mkimage { |
| 49 | filename = "idbloader-spi.img"; |
| 50 | args = "-n", CONFIG_SYS_SOC, "-T", "rkspi"; |
| 51 | #ifdef CONFIG_TPL |
| 52 | multiple-data-files; |
| 53 | |
| 54 | u-boot-tpl { |
| 55 | }; |
| 56 | #endif |
| 57 | u-boot-spl { |
| 58 | }; |
| 59 | }; |
| 60 | |
| 61 | #ifdef CONFIG_ARM64 |
| 62 | blob { |
| 63 | filename = "u-boot.itb"; |
| 64 | #else |
| 65 | u-boot-img { |
| 66 | #endif |
| 67 | /* Sync with u-boot,spl-payload-offset if present */ |
| 68 | offset = <CONFIG_SYS_SPI_U_BOOT_OFFS>; |
| 69 | }; |
| 70 | }; |
| 71 | #endif |
Jagan Teki | b22da75 | 2020-01-10 00:16:21 +0530 | [diff] [blame] | 72 | }; |
Simon Glass | 4943502 | 2020-07-19 13:56:07 -0600 | [diff] [blame] | 73 | #endif |