Commit 8e3a6e7f authored by Uwe Kleine-König's avatar Uwe Kleine-König

arm/imx: choose sane CONSISTENT_DMA_SIZE if video is enabled for both mx1 and mx3

Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
parent abf61632
......@@ -34,20 +34,19 @@
# endif
#endif
#if defined(CONFIG_MX1_VIDEO)
#if defined(CONFIG_MX3_VIDEO)
/*
* Increase size of DMA-consistent memory region.
* This is required for i.MX camera driver to capture at least four VGA frames.
* This is required for mx3 camera driver to capture at least two QXGA frames.
*/
#define CONSISTENT_DMA_SIZE SZ_4M
#endif /* CONFIG_MX1_VIDEO */
#define CONSISTENT_DMA_SIZE SZ_8M
#if defined(CONFIG_MX3_VIDEO)
#elif defined(CONFIG_MX1_VIDEO)
/*
* Increase size of DMA-consistent memory region.
* This is required for mx3 camera driver to capture at least two QXGA frames.
* This is required for i.MX camera driver to capture at least four VGA frames.
*/
#define CONSISTENT_DMA_SIZE SZ_8M
#endif /* CONFIG_MX3_VIDEO */
#define CONSISTENT_DMA_SIZE SZ_4M
#endif /* CONFIG_MX1_VIDEO */
#endif /* __ASM_ARCH_MXC_MEMORY_H__ */
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