mbox series

[0/6] memory: ti-aemif: Add DM support

Message ID 20241021151330.1860929-1-bastien.curutchet@bootlin.com
Headers show
Series memory: ti-aemif: Add DM support | expand

Message

Bastien Curutchet Oct. 21, 2024, 3:13 p.m. UTC
Hi all,

This patch series aims to add DM support for the AEMIF controller that
can be found in the DaVinci SoCs.

This controller has already a driver used by the Keystone SoCs so I
add my work to it.

As we can now easily import Linux device-trees, I try to stick the
most I can to the Linux bindings of the AEMIF controller. To do so I add
an 'intermediate' driver called 'ti-aemif-cs'. It's in charge of
configuring timings for a given chip select of the AEMIF controller.

Bastien Curutchet (6):
  memory: ti-aemif: Correct macro to ensure avoiding precedence issues
  memory: ti-aemif: Make AEMIF driver architecture agnostic
  memory: ti-aemif: Add ARCH_DAVINCI to architectures that uses TI_AEMIF
  memory: ti-aemif: Wrap the CS configuration into a function
  memory: ti-aemif: Add DM support
  memory: ti-aemif-cs: Compute timing configuration from DT parsing

 arch/arm/include/asm/ti-common/ti-aemif.h |   1 +
 board/ti/ks2_evm/board.c                  |   4 +-
 drivers/memory/Kconfig                    |   2 +-
 drivers/memory/Makefile                   |   2 +-
 drivers/memory/ti-aemif-cs.c              | 183 ++++++++++++++++++++++
 drivers/memory/ti-aemif-cs.h              |   4 +
 drivers/memory/ti-aemif.c                 |  63 +++-----
 7 files changed, 215 insertions(+), 44 deletions(-)
 create mode 100644 drivers/memory/ti-aemif-cs.c
 create mode 100644 drivers/memory/ti-aemif-cs.h

Comments

Tom Rini Oct. 30, 2024, 3:54 a.m. UTC | #1
On Mon, 21 Oct 2024 17:13:24 +0200, Bastien Curutchet wrote:

> This patch series aims to add DM support for the AEMIF controller that
> can be found in the DaVinci SoCs.
> 
> This controller has already a driver used by the Keystone SoCs so I
> add my work to it.
> 
> As we can now easily import Linux device-trees, I try to stick the
> most I can to the Linux bindings of the AEMIF controller. To do so I add
> an 'intermediate' driver called 'ti-aemif-cs'. It's in charge of
> configuring timings for a given chip select of the AEMIF controller.
> 
> [...]

Applied to u-boot/master, thanks!