Skip to content
Commit e0899d34 authored by Georgij Černyšiov's avatar Georgij Černyšiov Committed by Chris Friedt
Browse files

drivers: mipi_dbi: stm32: fmc: add bank address property



The driver gets FMC bank address using
`FMC_BANK1_<parent_register_value>` define.

This approach has some flaws:
- The parent (bank) register's value might not correspond
  sequentially to the expected bank number.
  For example: `STM32_FMC_NOSRAM_BANK3` maps to `FMC_BANK1_4`,
  instead of `FMC_BANK1_3`.
- Some families don't even define the necessary `FMC_BANK1_x` macros.

To address this, the commit adds an optional `bank-address` property,
providing a direct way to define the FMC bank address for the driver.

Signed-off-by: default avatarGeorgij Černyšiov <geo.cgv@gmail.com>
parent 7f3a728a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment