]> www.infradead.org Git - users/jedix/linux-maple.git/commit
memory: ti-aemif: Export aemif_*_cs_timings()
authorBastien Curutchet <bastien.curutchet@bootlin.com>
Wed, 4 Dec 2024 09:43:16 +0000 (10:43 +0100)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 9 Dec 2024 19:38:27 +0000 (20:38 +0100)
commitdf8e78607d4795806b59564ba7a3e2e125d119fc
tree253ec3f805266a326e93aa3e33866afbfbd1daf7
parenta6d60e3376065752137ec23d103f7d039c363e41
memory: ti-aemif: Export aemif_*_cs_timings()

Export the aemif_set_cs_timing() and aemif_check_cs_timing() symbols so
they can be used by other drivers

Add a mutex to protect the CS configuration register from concurrent
accesses between the AEMIF and its 'children'.

Signed-off-by: Bastien Curutchet <bastien.curutchet@bootlin.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20241204094319.1050826-7-bastien.curutchet@bootlin.com
[krzysztof: wrap aemif_set_cs_timings() at 80-char]
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/memory/ti-aemif.c
include/linux/memory/ti-aemif.h [new file with mode: 0644]