diff mbox series

[3/6] memory: ti-aemif: Add ARCH_DAVINCI to architectures that uses TI_AEMIF

Message ID 20241021151330.1860929-4-bastien.curutchet@bootlin.com
State Accepted
Delegated to: Tom Rini
Headers show
Series memory: ti-aemif: Add DM support | expand

Commit Message

Bastien Curutchet Oct. 21, 2024, 3:13 p.m. UTC
TI_AEMIF configuration doesn't depend on ARCH_DAVINCI while the AEMIF
controller is present in the DaVinci SoCs.

Add ARCH_DAVINCI to the potential users of the TI_AEMIF driver
Add <asm/io.h> to driver's includes to fix build issue on ARCH_DAVINCI

Signed-off-by: Bastien Curutchet <bastien.curutchet@bootlin.com>
---
 drivers/memory/Kconfig    | 2 +-
 drivers/memory/ti-aemif.c | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

Comments

Tom Rini Oct. 22, 2024, 2:01 p.m. UTC | #1
On Mon, Oct 21, 2024 at 05:13:27PM +0200, Bastien Curutchet wrote:

> TI_AEMIF configuration doesn't depend on ARCH_DAVINCI while the AEMIF
> controller is present in the DaVinci SoCs.
> 
> Add ARCH_DAVINCI to the potential users of the TI_AEMIF driver
> Add <asm/io.h> to driver's includes to fix build issue on ARCH_DAVINCI
> 
> Signed-off-by: Bastien Curutchet <bastien.curutchet@bootlin.com>

Reviewed-by: Tom Rini <trini@konsulko.com>
diff mbox series

Patch

diff --git a/drivers/memory/Kconfig b/drivers/memory/Kconfig
index d10edd2774..7c40f17698 100644
--- a/drivers/memory/Kconfig
+++ b/drivers/memory/Kconfig
@@ -39,7 +39,7 @@  config STM32_FMC2_EBI
 
 config TI_AEMIF
 	tristate "Texas Instruments AEMIF driver"
-	depends on ARCH_KEYSTONE
+	depends on ARCH_KEYSTONE || ARCH_DAVINCI
 	help
 	  This driver is for the AEMIF module available in Texas Instruments
 	  SoCs. AEMIF stands for Asynchronous External Memory Interface and
diff --git a/drivers/memory/ti-aemif.c b/drivers/memory/ti-aemif.c
index 8e7ddde970..82a9c8cf7b 100644
--- a/drivers/memory/ti-aemif.c
+++ b/drivers/memory/ti-aemif.c
@@ -7,6 +7,7 @@ 
  */
 
 #include <asm/arch/hardware.h>
+#include <asm/io.h>
 #include <asm/ti-common/ti-aemif.h>
 
 #define AEMIF_WAITCYCLE_CONFIG		(0x4)