]> git.baikalelectronics.ru Git - uboot.git/commit
arm: mvebu: turris_omnia: Fix MTD partitions order for Linux
authorPali Rohár <pali@kernel.org>
Thu, 21 Oct 2021 15:55:48 +0000 (17:55 +0200)
committerStefan Roese <sr@denx.de>
Thu, 28 Oct 2021 08:33:32 +0000 (10:33 +0200)
commitab26b52ee28c5d29a6cade69c1106c9550149180
tree45e31a7eaa5130a877f623ada95fa1f8b7740a3a
parent31dd6e48920e8d5000bedc157d301207d0e3b1f6
arm: mvebu: turris_omnia: Fix MTD partitions order for Linux

Linux enumerates MTD partitions in DTB order, while the fdt_add_subnode()
function puts a new subnode at the beginning.

To fix this, put MTD partitions into DTB in reverse order.

Fixes: 1f3c494182e8 ("arm: mvebu: turris_omnia: fixup MTD partitions in Linux' DTB")
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
board/CZ.NIC/turris_omnia/turris_omnia.c