summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/soc/amd/stoneyridge/i2c.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/soc/amd/stoneyridge/i2c.c b/src/soc/amd/stoneyridge/i2c.c
index 2837a910be..7ce1c244ca 100644
--- a/src/soc/amd/stoneyridge/i2c.c
+++ b/src/soc/amd/stoneyridge/i2c.c
@@ -16,12 +16,12 @@
#include <drivers/i2c/designware/dw_i2c.h>
#include <soc/iomap.h>
-const uintptr_t i2c_bus_address[] = { I2C_BASE_ADDRESS,
- I2C_BASE_ADDRESS + I2C_DEVICE_SIZE * 1,
- I2C_BASE_ADDRESS + I2C_DEVICE_SIZE * 2,
- I2C_BASE_ADDRESS + I2C_DEVICE_SIZE * 3,
- };
-
+static const uintptr_t i2c_bus_address[] = {
+ I2C_BASE_ADDRESS + I2C_DEVICE_SIZE * 0,
+ I2C_BASE_ADDRESS + I2C_DEVICE_SIZE * 1,
+ I2C_BASE_ADDRESS + I2C_DEVICE_SIZE * 2,
+ I2C_BASE_ADDRESS + I2C_DEVICE_SIZE * 3,
+};
uintptr_t dw_i2c_base_address(unsigned int bus)
{