ARM: mach-prima2: move ARM_DMA_ZONE_SIZE to mdesc->dma_zone_size
Original comment: Restrict DMA-able region to workaround silicon limitation. The limitation restricts buffers available for DMA to SD/MMC hardware to be below 256MB. Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
This commit is contained in:
Родитель
96f90c7915
Коммит
98b0124f0e
|
@ -11,11 +11,4 @@
|
||||||
|
|
||||||
#define PLAT_PHYS_OFFSET UL(0x00000000)
|
#define PLAT_PHYS_OFFSET UL(0x00000000)
|
||||||
|
|
||||||
/*
|
|
||||||
* Restrict DMA-able region to workaround silicon limitation.
|
|
||||||
* The limitation restricts buffers available for DMA to SD/MMC
|
|
||||||
* hardware to be below 256MB
|
|
||||||
*/
|
|
||||||
#define ARM_DMA_ZONE_SIZE (SZ_256M)
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -36,6 +36,7 @@ MACHINE_START(PRIMA2_EVB, "prima2cb")
|
||||||
.map_io = sirfsoc_map_lluart,
|
.map_io = sirfsoc_map_lluart,
|
||||||
.init_irq = sirfsoc_of_irq_init,
|
.init_irq = sirfsoc_of_irq_init,
|
||||||
.timer = &sirfsoc_timer,
|
.timer = &sirfsoc_timer,
|
||||||
|
.dma_zone_size = SZ_256M,
|
||||||
.init_machine = sirfsoc_mach_init,
|
.init_machine = sirfsoc_mach_init,
|
||||||
.dt_compat = prima2cb_dt_match,
|
.dt_compat = prima2cb_dt_match,
|
||||||
MACHINE_END
|
MACHINE_END
|
||||||
|
|
Загрузка…
Ссылка в новой задаче