提交 31e1029a 编写于 作者: M Michal Simek

dm: core: Add missing entries for manual relocation

Patches:
"dm: core: Add a post_bind method for parents"
(sha1: 0118ce79)
"dm: core: Add a uclass pre_probe() method for devices"
(sha1: 02c07b37)
"dm: core: Allow the uclass to set up a device's child after binding"
(sha1: 081f2fcb)
"dm: core: Allow uclass to set up a device's child before it is probed"
(sha1: 83c7e434)

Adds new entries to struct driver and struct uclass_driver without
extending code for manual relocation. This patch fixes it for all
architectures which requires MANUAL_RELOC.
Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
Acked-by: NSimon Glass <sjg@chromium.org>
上级 281f1566
...@@ -59,6 +59,8 @@ void fix_drivers(void) ...@@ -59,6 +59,8 @@ void fix_drivers(void)
entry->unbind += gd->reloc_off; entry->unbind += gd->reloc_off;
if (entry->ofdata_to_platdata) if (entry->ofdata_to_platdata)
entry->ofdata_to_platdata += gd->reloc_off; entry->ofdata_to_platdata += gd->reloc_off;
if (entry->child_post_bind)
entry->child_post_bind += gd->reloc_off;
if (entry->child_pre_probe) if (entry->child_pre_probe)
entry->child_pre_probe += gd->reloc_off; entry->child_pre_probe += gd->reloc_off;
if (entry->child_post_remove) if (entry->child_post_remove)
...@@ -81,10 +83,16 @@ void fix_uclass(void) ...@@ -81,10 +83,16 @@ void fix_uclass(void)
entry->post_bind += gd->reloc_off; entry->post_bind += gd->reloc_off;
if (entry->pre_unbind) if (entry->pre_unbind)
entry->pre_unbind += gd->reloc_off; entry->pre_unbind += gd->reloc_off;
if (entry->pre_probe)
entry->pre_probe += gd->reloc_off;
if (entry->post_probe) if (entry->post_probe)
entry->post_probe += gd->reloc_off; entry->post_probe += gd->reloc_off;
if (entry->pre_remove) if (entry->pre_remove)
entry->pre_remove += gd->reloc_off; entry->pre_remove += gd->reloc_off;
if (entry->child_post_bind)
entry->child_post_bind += gd->reloc_off;
if (entry->child_pre_probe)
entry->child_pre_probe += gd->reloc_off;
if (entry->init) if (entry->init)
entry->init += gd->reloc_off; entry->init += gd->reloc_off;
if (entry->destroy) if (entry->destroy)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册