Commit df595a9d authored by Santosh Shilimkar's avatar Santosh Shilimkar

ARM: keystone: enable DMA zone for LPAE

Keystone II peripheral devices support 32-bit DMA and hence can access only
first 2GB of the memory address space. So set the platform dma_zone_size
to handle that case.
Signed-off-by: default avatarSantosh Shilimkar <santosh.shilimkar@ti.com>
parent 89b3feef
...@@ -12,6 +12,7 @@ config ARCH_KEYSTONE ...@@ -12,6 +12,7 @@ config ARCH_KEYSTONE
select COMMON_CLK_KEYSTONE select COMMON_CLK_KEYSTONE
select TI_EDMA select TI_EDMA
select ARCH_SUPPORTS_BIG_ENDIAN select ARCH_SUPPORTS_BIG_ENDIAN
select ZONE_DMA if ARM_LPAE
help help
Support for boards based on the Texas Instruments Keystone family of Support for boards based on the Texas Instruments Keystone family of
SoCs. SoCs.
...@@ -68,6 +68,9 @@ void keystone_restart(enum reboot_mode mode, const char *cmd) ...@@ -68,6 +68,9 @@ void keystone_restart(enum reboot_mode mode, const char *cmd)
} }
DT_MACHINE_START(KEYSTONE, "Keystone") DT_MACHINE_START(KEYSTONE, "Keystone")
#if defined(CONFIG_ZONE_DMA) && defined(CONFIG_ARM_LPAE)
.dma_zone_size = SZ_2G,
#endif
.smp = smp_ops(keystone_smp_ops), .smp = smp_ops(keystone_smp_ops),
.init_machine = keystone_init, .init_machine = keystone_init,
.dt_compat = keystone_match, .dt_compat = keystone_match,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment