aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2017-08-15 22:42:01 -0700
committerBin Meng <bmeng.cn@gmail.com>2017-09-16 14:57:44 +0800
commit507f1024b8f2659e78324ce459f5965de4232c24 (patch)
treeb7f6e9f4db042904d3493d3116e9a2f2f169493e
parentfffad9264aa63a2f8da7d15d27d9a7c03a5ff4ec (diff)
downloadu-boot-507f1024b8f2659e78324ce459f5965de4232c24.zip
u-boot-507f1024b8f2659e78324ce459f5965de4232c24.tar.gz
u-boot-507f1024b8f2659e78324ce459f5965de4232c24.tar.bz2
x86: braswell: Disable PUNIT power configuration for B0 stepping
FSP's built-in UPD configuration enables PUNIT power configuration, but on B0 stepping, this causes CPU hangs in fsp_init(). Disable it. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--arch/x86/cpu/braswell/fsp_configs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/cpu/braswell/fsp_configs.c b/arch/x86/cpu/braswell/fsp_configs.c
index d984519..249f851 100644
--- a/arch/x86/cpu/braswell/fsp_configs.c
+++ b/arch/x86/cpu/braswell/fsp_configs.c
@@ -139,6 +139,12 @@ void update_fsp_configs(struct fsp_config_data *config,
#endif
update_fsp_gpio_configs(&silicon_upd->gpio_familiy_ptr,
&silicon_upd->gpio_pad_ptr);
+ /*
+ * For Braswell B0 stepping, disable_punit_pwr_config must be set to 1
+ * otherwise it just hangs in fsp_init().
+ */
+ if (gd->arch.x86_mask == 2)
+ silicon_upd->disable_punit_pwr_config = 1;
silicon_upd->emmc_mode = fdtdec_get_int(blob, node,
"fsp,emmc-mode", EMMC_MODE_PCI);
silicon_upd->sata_speed = fdtdec_get_int(blob, node,