aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/apollolake/include
diff options
context:
space:
mode:
authorAamir Bohra <aamir.bohra@intel.com>2017-04-06 20:21:58 +0530
committerMartin Roth <martinroth@google.com>2017-04-11 17:00:43 +0200
commit138b2a03bedb059f7a4064b4ff03d88083774302 (patch)
tree3adb0bd38c9ad0f7b7693f000eae4d8609de834c /src/soc/intel/apollolake/include
parent015c64335d13b9e213fa93127d621c574b17018e (diff)
soc/intel/apollolake: Use LPSS common library
Use lpss common library to program reset and clock register for lpss modules Change-Id: I75f9aebd60290fbf22684f8cc2ce8e8a4a4304b0 Signed-off-by: Aamir Bohra <aamir.bohra@intel.com> Reviewed-on: https://review.coreboot.org/19154 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/soc/intel/apollolake/include')
-rw-r--r--src/soc/intel/apollolake/include/soc/i2c.h5
-rw-r--r--src/soc/intel/apollolake/include/soc/uart.h10
2 files changed, 0 insertions, 15 deletions
diff --git a/src/soc/intel/apollolake/include/soc/i2c.h b/src/soc/intel/apollolake/include/soc/i2c.h
index f7778e514c..8839f1460a 100644
--- a/src/soc/intel/apollolake/include/soc/i2c.h
+++ b/src/soc/intel/apollolake/include/soc/i2c.h
@@ -20,11 +20,6 @@
#include <device/pci_def.h>
#include <soc/pci_devs.h>
-/* I2C Controller Reset in MMIO private region */
-#define I2C_LPSS_REG_RESET 0x204
-#define I2C_LPSS_RESET_RELEASE_HC ((1 << 1) | (1 << 0))
-#define I2C_LPSS_RESET_RELEASE_IDMA (1 << 2)
-
/* Convert I2C bus number to PCI device and function */
static inline int i2c_bus_to_devfn(unsigned int bus)
{
diff --git a/src/soc/intel/apollolake/include/soc/uart.h b/src/soc/intel/apollolake/include/soc/uart.h
index 3c6759c0ac..c7ba4a657a 100644
--- a/src/soc/intel/apollolake/include/soc/uart.h
+++ b/src/soc/intel/apollolake/include/soc/uart.h
@@ -18,16 +18,6 @@
#ifndef _SOC_APOLLOLAKE_UART_H_
#define _SOC_APOLLOLAKE_UART_H_
-/* Clock is 100MHz * (M / N).*/
-#define UART_CLK 0x200
-# define UART_CLK_UPDATE (1 << 31)
-# define UART_CLK_DIV_N(n) (((n) & 0x7fff) << 16)
-# define UART_CLK_DIV_M(m) (((m) & 0x7fff) << 1)
-# define UART_CLK_EN (1 << 0)
-#define UART_RESET 0x204
-# define UART_RESET_DMA_EN (1 << 2)
-# define UART_RESET_UART_EN (3 << 0)
-
void lpss_console_uart_init(void);
/* Initialize the console UART including the pads for the configured UART. */