]> git.baikalelectronics.ru Git - uboot.git/commit
cpu-uclass: relocate ops pointers for CONFIG_NEEDS_MANUAL_RELOC
authorOvidiu Panait <ovpanait@gmail.com>
Tue, 31 May 2022 18:14:23 +0000 (21:14 +0300)
committerMichal Simek <michal.simek@amd.com>
Fri, 24 Jun 2022 12:16:00 +0000 (14:16 +0200)
commit6d52750ea30441aed49046fc6b87db988204e55a
treeb6754b9f6c1246e4dc0694ffe753ae2e89a76239
parent8a63a5c5a1c30fa2267f4f9baef70f7e3e3ff05d
cpu-uclass: relocate ops pointers for CONFIG_NEEDS_MANUAL_RELOC

Relocate cpu_ops pointers when CONFIG_NEEDS_MANUAL_RELOC is enabled.

The (gd->flags & GD_FLG_RELOC) check was added to make sure the reloc_done
logic works for drivers that use DM_FLAG_PRE_RELOC.

Signed-off-by: Ovidiu Panait <ovpanait@gmail.com>
Link: https://lore.kernel.org/r/20220531181435.3473549-2-ovpanait@gmail.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/cpu/cpu-uclass.c