diff options
author | Pali Rohár <pali@kernel.org> | 2022-02-14 11:34:28 +0100 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2022-02-17 14:17:07 +0100 |
commit | a134aaa54ee5056432a26ac471b67f2cb0078ae9 (patch) | |
tree | 4790b250237b8fcba2b6a8264743028c68ddca47 | |
parent | 9dde7a09fcd7f80012b5d2dcbb497eb8b4a628aa (diff) | |
download | u-boot-a134aaa54ee5056432a26ac471b67f2cb0078ae9.zip u-boot-a134aaa54ee5056432a26ac471b67f2cb0078ae9.tar.gz u-boot-a134aaa54ee5056432a26ac471b67f2cb0078ae9.tar.bz2 |
arm: a37xx: espressobin: Move U-Boot specific partitions node to -u-boot.dtsi
U-Boot specific changes should be in armada-3720-espressobin-u-boot.dtsi DTS file.
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
-rw-r--r-- | arch/arm/dts/armada-3720-espressobin-u-boot.dtsi | 23 | ||||
-rw-r--r-- | arch/arm/dts/armada-3720-espressobin.dts | 18 |
2 files changed, 23 insertions, 18 deletions
diff --git a/arch/arm/dts/armada-3720-espressobin-u-boot.dtsi b/arch/arm/dts/armada-3720-espressobin-u-boot.dtsi new file mode 100644 index 0000000..7ec3392 --- /dev/null +++ b/arch/arm/dts/armada-3720-espressobin-u-boot.dtsi @@ -0,0 +1,23 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) + +#ifdef CONFIG_ENV_IS_IN_SPI_FLASH +&spi0 { + spi-flash@0 { + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@firmware { + reg = <0 CONFIG_ENV_OFFSET>; + label = "firmware"; + }; + + partition@u-boot-env { + reg = <CONFIG_ENV_OFFSET CONFIG_ENV_SIZE>; + label = "u-boot-env"; + }; + }; + }; +}; +#endif diff --git a/arch/arm/dts/armada-3720-espressobin.dts b/arch/arm/dts/armada-3720-espressobin.dts index f59f82d..c0e0e13 100644 --- a/arch/arm/dts/armada-3720-espressobin.dts +++ b/arch/arm/dts/armada-3720-espressobin.dts @@ -147,24 +147,6 @@ reg = <0>; /* Chip select 0 */ spi-max-frequency = <50000000>; m25p,fast-read; - -#ifdef CONFIG_ENV_IS_IN_SPI_FLASH - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@firmware { - reg = <0 CONFIG_ENV_OFFSET>; - label = "firmware"; - }; - - partition@u-boot-env { - reg = <CONFIG_ENV_OFFSET CONFIG_ENV_SIZE>; - label = "u-boot-env"; - }; - }; -#endif }; }; |