From af9cbaa1827f796fff13c5d73351454ea683fc34 Mon Sep 17 00:00:00 2001 From: Ryan Lin Date: Wed, 1 Oct 2014 15:53:39 -0700 Subject: [PATCH] Broadwell: Reg_Script: add END tag to array "smbus_init_script" Need END tag, "REG_SCRIPT_END", to indicate the end of smbus_init_script. BUG=chromium:416651 TEST=test on Auron. Change-Id: Ieeaf6c705aa673acc9bb2635e103c4148bc8742f Signed-off-by: Stefan Reinauer Original-Commit-Id: 172c5fc259a2f6d09daccb1fe53fe0aa7c5601e1 Original-Change-Id: I1f5624f4c6ce7f0e8ceb8971aaa595d99e9ff82e Original-Signed-off-by: Ryan Lin Original-Reviewed-on: https://chromium-review.googlesource.com/220934 Original-Reviewed-by: Duncan Laurie Original-Reviewed-by: Kenji Chen Reviewed-on: http://review.coreboot.org/9221 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/soc/intel/broadwell/romstage/smbus.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/soc/intel/broadwell/romstage/smbus.c b/src/soc/intel/broadwell/romstage/smbus.c index 2bc14922ab..8b3cde3fb5 100644 --- a/src/soc/intel/broadwell/romstage/smbus.c +++ b/src/soc/intel/broadwell/romstage/smbus.c @@ -39,6 +39,8 @@ static const struct reg_script smbus_init_script[] = { REG_IO_WRITE8(SMBUS_BASE_ADDRESS + SMBHSTCTL, 0), /* Clear errors */ REG_IO_WRITE8(SMBUS_BASE_ADDRESS + SMBHSTSTAT, 0xff), + /* Indicate the end of this array by REG_SCRIPT_END */ + REG_SCRIPT_END, }; void enable_smbus(void)