mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
UPSTREAM: soc/intel/quark: Set temporary I2C base address
Set a temporary I2C base address during romstage.
TEST=Build and run on Galileo Gen2
Change-Id: I4b427c66a4e7e6d30cc611d4d3c40bb0ea36066d
Original-Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com>
Original-Reviewed-on: https://review.coreboot.org/15006
Original-Reviewed-by: Martin Roth <martinroth@google.com>
(cherry-picked from commit 56c99f2850
)
Signed-off-by: Martin Roth <martinroth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/348421
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
parent
c3b2f0034f
commit
c2a4fe7d48
2 changed files with 4 additions and 2 deletions
|
@ -25,7 +25,8 @@
|
|||
#define UART_BASE_ADDRESS CONFIG_TTYS0_BASE
|
||||
|
||||
/* I2C/GPIO Controller */
|
||||
#define I2C_GPIO_BASE_ADDRESS 0xa0020000
|
||||
#define I2C_BASE_ADDRESS 0xa0020000
|
||||
#define GPIO_BASE_ADDRESS 0xa0021000
|
||||
|
||||
/*
|
||||
* I/O port address space
|
||||
|
|
|
@ -52,7 +52,8 @@ static const struct reg_script legacy_gpio_init[] = {
|
|||
|
||||
static const struct reg_script i2c_gpio_controller_init[] = {
|
||||
/* Temporarily enable the GPIO controller */
|
||||
REG_PCI_WRITE32(PCI_BASE_ADDRESS_1, I2C_GPIO_BASE_ADDRESS),
|
||||
REG_PCI_WRITE32(PCI_BASE_ADDRESS_0, I2C_BASE_ADDRESS),
|
||||
REG_PCI_WRITE32(PCI_BASE_ADDRESS_1, GPIO_BASE_ADDRESS),
|
||||
REG_PCI_OR8(PCI_COMMAND, PCI_COMMAND_MEMORY),
|
||||
REG_SCRIPT_END
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue