[PATCH v4 01/10] memory: ti-aemif: Store timings parameter in number of cycles - 1
Miquel Raynal
miquel.raynal at bootlin.com
Fri Nov 15 11:54:37 PST 2024
On 15/11/2024 at 14:26:22 +01, Bastien Curutchet <bastien.curutchet at bootlin.com> wrote:
> The CS configuration register expects timings to be expressed in
> 'number of cycles - 1' but they are stored in ns in the struct
> aemif_cs_data. So at init, the timings currently set are converted to ns
> by aemif_get_hw_params(), updated with values from the device-tree
> properties, and then converted back to 'number of cycles - 1' before
> being applied.
>
> Store the timings directly in 'number of cycles - 1' instead of
> nanoseconds.
> Perform the conversion from nanosecond during the device-tree parsing.
> Remove aemif_cycles_to_nsec() as it isn't used anymore.
>
> Signed-off-by: Bastien Curutchet <bastien.curutchet at bootlin.com>
Reviewed-by: Miquel Raynal <miquel.raynal at bootlin.com>
More information about the linux-mtd
mailing list