diff options
Diffstat (limited to 'src/soc/intel')
-rw-r--r-- | src/soc/intel/common/block/i2c/lpss_i2c.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/soc/intel/common/block/i2c/lpss_i2c.c b/src/soc/intel/common/block/i2c/lpss_i2c.c index 7db3fe9668..34e04ecf1b 100644 --- a/src/soc/intel/common/block/i2c/lpss_i2c.c +++ b/src/soc/intel/common/block/i2c/lpss_i2c.c @@ -540,9 +540,8 @@ int lpss_i2c_gen_speed_config(struct lpss_i2c_regs *regs, uint16_t hcnt_min, lcnt_min; int i; - /* Clock must be provided by Kconfig */ - if (!ic_clk) - return -1; + _Static_assert(CONFIG_SOC_INTEL_COMMON_LPSS_CLOCK_MHZ != 0, + "SOC_INTEL_COMMON_LPSS_CLOCK_MHZ can't be zero!"); /* Apply board specific override for this speed if found */ for (i = 0; i < LPSS_I2C_SPEED_CONFIG_COUNT; i++) { |