Pali Rohár | 118f9a4 | 2022-02-14 11:34:28 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 | |
| 3 | #ifdef CONFIG_ENV_IS_IN_SPI_FLASH |
| 4 | &spi0 { |
| 5 | spi-flash@0 { |
| 6 | partitions { |
| 7 | compatible = "fixed-partitions"; |
| 8 | #address-cells = <1>; |
| 9 | #size-cells = <1>; |
| 10 | |
| 11 | partition@firmware { |
| 12 | reg = <0 CONFIG_ENV_OFFSET>; |
| 13 | label = "firmware"; |
| 14 | }; |
| 15 | |
| 16 | partition@u-boot-env { |
| 17 | reg = <CONFIG_ENV_OFFSET CONFIG_ENV_SIZE>; |
| 18 | label = "u-boot-env"; |
| 19 | }; |
| 20 | }; |
| 21 | }; |
| 22 | }; |
| 23 | #endif |
Pali Rohár | f60c600 | 2022-02-14 11:34:29 +0100 | [diff] [blame] | 24 | |
| 25 | /* |
| 26 | * U-Boot requires to have this eMMC node by default in "okay" status. U-Boot |
| 27 | * at runtime changes status to "disabled" if eMMC is not present on the board. |
| 28 | */ |
| 29 | &sdhci0 { |
| 30 | status = "okay"; |
| 31 | }; |