]> git.dujemihanovic.xyz Git - u-boot.git/commit
memory: ti-aemif: Add DM support
authorBastien Curutchet <bastien.curutchet@bootlin.com>
Mon, 21 Oct 2024 15:13:29 +0000 (17:13 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 30 Oct 2024 00:45:22 +0000 (18:45 -0600)
commit94e45f7b50ea20589d6a91e4d245e96a6c590252
treefd178b216da3aab4db569b91686c0b2fe9dc048a
parent4b43602c8b05ad51ec430f81319c56c40dd00c77
memory: ti-aemif: Add DM support

The AEMIF's bindings in the Linux tree have a node for the AEMIF
controller and then a node for each AEMIF's chip select. This CS node
doesn't have a compatible property but describes the timing parameters
used by a given chip select.
The U-Boot DM framework expects every node to have a 'compatible'
property. If no 'compatible' is present in a node, its children won't be
parsed by u-boot.

Add DM support to the ti-aemif driver.
Add a new ti-aemif-cs driver to comply with the Linux bindings and the
U-Boot's DM philosophy. This driver handles the timing parameters
of an AEMIF's chip select so move aemif_cs_configure() from ti-aemif.c
to ti-aemif-cs.c.

Signed-off-by: Bastien Curutchet <bastien.curutchet@bootlin.com>
drivers/memory/Makefile
drivers/memory/ti-aemif-cs.c [new file with mode: 0644]
drivers/memory/ti-aemif-cs.h [new file with mode: 0644]
drivers/memory/ti-aemif.c