summaryrefslogtreecommitdiff
path: root/drivers/memory/ti-aemif-cs.h
diff options
context:
space:
mode:
authorBastien Curutchet <bastien.curutchet@bootlin.com>2024-10-21 17:13:29 +0200
committerTom Rini <trini@konsulko.com>2024-10-29 18:45:22 -0600
commit94e45f7b50ea20589d6a91e4d245e96a6c590252 (patch)
treefd178b216da3aab4db569b91686c0b2fe9dc048a /drivers/memory/ti-aemif-cs.h
parent4b43602c8b05ad51ec430f81319c56c40dd00c77 (diff)
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>
Diffstat (limited to 'drivers/memory/ti-aemif-cs.h')
-rw-r--r--drivers/memory/ti-aemif-cs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/memory/ti-aemif-cs.h b/drivers/memory/ti-aemif-cs.h
new file mode 100644
index 00000000000..62e6c6ed1a7
--- /dev/null
+++ b/drivers/memory/ti-aemif-cs.h
@@ -0,0 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+#include <asm/ti-common/ti-aemif.h>
+
+void aemif_cs_configure(int cs, struct aemif_config *cfg);