UPSTREAM: mainboard/intel/galileo: Gen1 - Set correct I2C scripts
Switch the I2C scripts to properly match the I2C address selection for the Galileo Gen1 board. TEST=Build an run on Galileo Gen1 BUG=None BRANCH=None TEST=None Change-Id: I9fc8b59a3a719abb474c99a83e0d538794626da9 Original-Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com> Original-Reviewed-on: https://review.coreboot.org/15258 Original-Tested-by: build bot (Jenkins) Original-Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Original-Reviewed-by: Martin Roth <martinroth@google.com> Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/359316 Reviewed-by: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
parent
024de611e6
commit
4b65a4333f
1 changed files with 2 additions and 2 deletions
|
|
@ -39,7 +39,7 @@ void car_mainboard_pre_console_init(void)
|
|||
else
|
||||
script = (reg_legacy_gpio_read (R_QNC_GPIO_RGLVL_RESUME_WELL)
|
||||
& GALILEO_DETERMINE_IOEXP_SLA_RESUMEWELL_GPIO)
|
||||
? gen1_hsuart0_0x21 : gen1_hsuart0_0x20;
|
||||
? gen1_hsuart0_0x20 : gen1_hsuart0_0x21;
|
||||
reg_script_run(script);
|
||||
}
|
||||
}
|
||||
|
|
@ -57,7 +57,7 @@ void mainboard_gpio_i2c_init(device_t dev)
|
|||
/* Determine which I2C address is in use */
|
||||
script = (reg_legacy_gpio_read (R_QNC_GPIO_RGLVL_RESUME_WELL)
|
||||
& GALILEO_DETERMINE_IOEXP_SLA_RESUMEWELL_GPIO)
|
||||
? gen1_i2c_0x21_init : gen1_i2c_0x20_init;
|
||||
? gen1_i2c_0x20_init : gen1_i2c_0x21_init;
|
||||
|
||||
/* Initialize the I2C chips */
|
||||
reg_script_run(script);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue