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: Daniel DeGrasse <daniel.degrasse@nxp.com>
This commit is contained in:
parent
b2a9fca9c8
commit
ff7ac415d7
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue