Commit ff7ac415 authored by Daniel DeGrasse's avatar Daniel DeGrasse Committed by Carles Cufi
Browse files

drivers: mipi_dbi: nxp_lcdic: calculate reset delay correctly



Reset delay was not being calculated correctly in lcdic driver, the
ticks field needs to be accessed directly within the timeout structure
to calculate the correct delay time

Signed-off-by: default avatarDaniel DeGrasse <daniel.degrasse@nxp.com>
parent b2a9fca9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -563,8 +563,8 @@ static int mipi_dbi_lcdic_reset(const struct device *dev, k_timeout_t delay)
	const struct mipi_dbi_lcdic_config *config = dev->config;
	LCDIC_Type *base = config->base;
	uint32_t lcdic_freq;
	uint32_t delay_ms = k_ticks_to_ms_ceil32(delay.ticks);
	uint8_t rst_width, pulse_cnt;
	uint32_t delay_ms = k_ticks_to_ms_ceil32(delay);

	/* Calculate delay based off timer0 ratio. Formula given
	 * by RM is as follows: