diff options
Diffstat (limited to 'src/soc/intel/apollolake')
-rw-r--r-- | src/soc/intel/apollolake/i2c.c | 18 | ||||
-rw-r--r-- | src/soc/intel/apollolake/include/soc/iomap.h | 3 |
2 files changed, 3 insertions, 18 deletions
diff --git a/src/soc/intel/apollolake/i2c.c b/src/soc/intel/apollolake/i2c.c index bb14df2a0e..bf378bce34 100644 --- a/src/soc/intel/apollolake/i2c.c +++ b/src/soc/intel/apollolake/i2c.c @@ -2,6 +2,7 @@ * This file is part of the coreboot project. * * Copyright 2016 Google Inc. + * Copyright (C) 2018 Intel Corporation. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -13,27 +14,10 @@ * GNU General Public License for more details. */ -#include <console/console.h> #include <device/device.h> #include <device/pci_def.h> #include <drivers/i2c/designware/dw_i2c.h> -#include <intelblocks/chip.h> -#include <soc/iomap.h> #include <soc/pci_devs.h> -#include "chip.h" - -const struct dw_i2c_bus_config *dw_i2c_get_soc_cfg(unsigned int bus) -{ - const struct soc_intel_common_config *common_config; - common_config = chip_get_common_soc_structure(); - - return &common_config->i2c[bus]; -} - -uintptr_t dw_i2c_get_soc_early_base(unsigned int bus) -{ - return PRERAM_I2C_BASE_ADDRESS(bus); -} /* Convert I2C bus number to PCI device and function */ int dw_i2c_soc_bus_to_devfn(unsigned int bus) diff --git a/src/soc/intel/apollolake/include/soc/iomap.h b/src/soc/intel/apollolake/include/soc/iomap.h index 7e6a795c58..9a2500cd45 100644 --- a/src/soc/intel/apollolake/include/soc/iomap.h +++ b/src/soc/intel/apollolake/include/soc/iomap.h @@ -51,6 +51,7 @@ #define EARLY_GSPI_BASE_ADDRESS 0xfe011000 /* Temporary BAR for early I2C bus access */ -#define PRERAM_I2C_BASE_ADDRESS(x) (0xfe020000 + (0x1000 * (x))) +#define EARLY_I2C_BASE_ADDRESS 0xfe020000 +#define EARLY_I2C_BASE(x) (EARLY_I2C_BASE_ADDRESS + (0x1000 * (x))) #endif /* _SOC_APOLLOLAKE_IOMAP_H_ */ |