From cdea598e8912e0320bd7337c1b6736025676b429 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Thu, 10 Aug 2017 13:54:39 +0530 Subject: common/block/lpss: Add CLK read function into LPSS common This patch add new API to read LPSS CLK register. Also combine multiple LPSS_CLOCK_CTL_REG writes into a single write inside lpss_clk_update function. Change-Id: I420919ad9154c4cf426bc232c5eb59d95fd698d2 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/20938 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Aaron Durbin --- src/soc/intel/common/block/include/intelblocks/lpss.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/soc/intel/common/block/include/intelblocks') diff --git a/src/soc/intel/common/block/include/intelblocks/lpss.h b/src/soc/intel/common/block/include/intelblocks/lpss.h index 138340df86..c6caae2675 100644 --- a/src/soc/intel/common/block/include/intelblocks/lpss.h +++ b/src/soc/intel/common/block/include/intelblocks/lpss.h @@ -30,4 +30,7 @@ void lpss_clk_update(uintptr_t base, uint32_t clk_m_val, uint32_t clk_n_val); /* Check if controller is in reset. */ bool lpss_is_controller_in_reset(uintptr_t base); +/* Read LPSS CLK register */ +uint32_t lpss_clk_read(uintptr_t base); + #endif /* SOC_INTEL_COMMON_BLOCK_LPSS_H */ -- cgit v1.2.3