aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/skylake/i2c.c
diff options
context:
space:
mode:
authorSubrata Banik <subrata.banik@intel.com>2018-05-07 16:27:51 +0530
committerSubrata Banik <subrata.banik@intel.com>2018-06-06 06:26:11 +0000
commite62836b7d61f053cfcdab32ccb49d8eb01f220dd (patch)
treec267955eafbda27ce8d203f44cf402f261bd5f9b /src/soc/intel/skylake/i2c.c
parent9ab6d92e96434d6d4975e0d11aae736feef0dfc1 (diff)
soc/intel/common/block: Move i2c common functions into block/i2c
This patch cleans soc/intel/{apollolake/cannonlake/skylake} by moving common soc code into common/block/i2c. BUG=b:78109109 BRANCH=none TEST=Build and boot KBL/CNL/APL platform. Change-Id: I88f2f836eee4f80b79486dd8644d1bb3826c5af1 Signed-off-by: Maulik V Vaghela <maulik.v.vaghela@intel.com> Signed-off-by: Subrata Banik <subrata.banik@intel.com> Reviewed-on: https://review.coreboot.org/26056 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/soc/intel/skylake/i2c.c')
-rw-r--r--src/soc/intel/skylake/i2c.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/soc/intel/skylake/i2c.c b/src/soc/intel/skylake/i2c.c
index c9070fe5a0..9fd9bf39e6 100644
--- a/src/soc/intel/skylake/i2c.c
+++ b/src/soc/intel/skylake/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,26 +14,10 @@
* GNU General Public License for more details.
*/
-#include <console/console.h>
#include <device/device.h>
#include <intelblocks/chip.h>
#include <drivers/i2c/designware/dw_i2c.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 EARLY_I2C_BASE(bus);
-}
int dw_i2c_soc_devfn_to_bus(unsigned int devfn)
{