arm/imx: choose sane CONSISTENT_DMA_SIZE if video is enabled for both mx1 and mx3
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
This commit is contained in:
parent
abf6163288
commit
8e3a6e7fa7
@ -34,7 +34,14 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_MX1_VIDEO)
|
||||
#if defined(CONFIG_MX3_VIDEO)
|
||||
/*
|
||||
* Increase size of DMA-consistent memory region.
|
||||
* This is required for mx3 camera driver to capture at least two QXGA frames.
|
||||
*/
|
||||
#define CONSISTENT_DMA_SIZE SZ_8M
|
||||
|
||||
#elif defined(CONFIG_MX1_VIDEO)
|
||||
/*
|
||||
* Increase size of DMA-consistent memory region.
|
||||
* This is required for i.MX camera driver to capture at least four VGA frames.
|
||||
@ -42,12 +49,4 @@
|
||||
#define CONSISTENT_DMA_SIZE SZ_4M
|
||||
#endif /* CONFIG_MX1_VIDEO */
|
||||
|
||||
#if defined(CONFIG_MX3_VIDEO)
|
||||
/*
|
||||
* Increase size of DMA-consistent memory region.
|
||||
* This is required for mx3 camera driver to capture at least two QXGA frames.
|
||||
*/
|
||||
#define CONSISTENT_DMA_SIZE SZ_8M
|
||||
#endif /* CONFIG_MX3_VIDEO */
|
||||
|
||||
#endif /* __ASM_ARCH_MXC_MEMORY_H__ */
|
||||
|
Loading…
Reference in New Issue
Block a user