]> git.baikalelectronics.ru Git - uboot.git/commit
arm: imx8m: remove unused and obsolete board_fix_fdt() in SOC context
authorHugo Villeneuve <hvilleneuve@dimonoff.com>
Tue, 25 Apr 2023 14:19:35 +0000 (10:19 -0400)
committerStefano Babic <sbabic@denx.de>
Tue, 2 May 2023 08:57:32 +0000 (10:57 +0200)
commit1678e5d5f2bef5bf9db89610af64d51eb57d247d
tree9d6c7fbe75de0a80ecd3a4f4a99b025cdf821af6
parent20e5ddb96091ea1cbf04230ca42929a6805c66e2
arm: imx8m: remove unused and obsolete board_fix_fdt() in SOC context

It doesn't seem appropriate for arch/SOC to use a board-level
functionality (CONFIG_OF_BOARD_FIXUP), because this prevents boards
that need to do FDT fixup from using that feature.

Also, this code is completely dead and useless (from comments by
Rasmus Villemoes on the mailing list):

  - No in-tree imx8m-based board seems to set CONFIG_OF_BOARD_FIXUP
  - The nodes which that function wants to disable don't even exist in
    the U-Boot copy of imx8mp.dtsi.

This code was introduced in commit 3efdcc5fc335. It seems to be some
random import of code from downstream NXP U-Boot, with a commit
message that makes no sense in upstream context.

Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Fabio Estevam <festevam@denx.de>
arch/arm/mach-imx/imx8m/soc.c