Commit d1704f9d authored by Simon Glass's avatar Simon Glass
Browse files

x86: broadwell: Update PCH to work in TPL



The early init should only happen once. Update the probe method to
deal with TPL, SPL and U-Boot proper.

Series-change: 2
- Add a new patch to update PCH to work in TPL
Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
parent bee6a7d5
...@@ -599,10 +599,16 @@ static int broadwell_pch_init(struct udevice *dev) ...@@ -599,10 +599,16 @@ static int broadwell_pch_init(struct udevice *dev)
static int broadwell_pch_probe(struct udevice *dev) static int broadwell_pch_probe(struct udevice *dev)
{ {
if (!(gd->flags & GD_FLG_RELOC)) if (CONFIG_IS_ENABLED(X86_32BIT_INIT)) {
return broadwell_pch_early_init(dev); if (!(gd->flags & GD_FLG_RELOC))
else return broadwell_pch_early_init(dev);
else
return broadwell_pch_init(dev);
} else if (IS_ENABLED(CONFIG_SPL) && !IS_ENABLED(CONFIG_SPL_BUILD)) {
return broadwell_pch_init(dev); return broadwell_pch_init(dev);
} else {
return 0;
}
} }
static int broadwell_pch_get_spi_base(struct udevice *dev, ulong *sbasep) static int broadwell_pch_get_spi_base(struct udevice *dev, ulong *sbasep)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment