From 138b2a03bedb059f7a4064b4ff03d88083774302 Mon Sep 17 00:00:00 2001 From: Aamir Bohra Date: Thu, 6 Apr 2017 20:21:58 +0530 Subject: 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 Reviewed-on: https://review.coreboot.org/19154 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/soc/intel/apollolake/include/soc/i2c.h | 5 ----- src/soc/intel/apollolake/include/soc/uart.h | 10 ---------- 2 files changed, 15 deletions(-) (limited to 'src/soc/intel/apollolake/include') 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 #include -/* 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. */ -- cgit v1.2.3