.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * linux/arch/arm/mach-omap2/devices.c |
---|
3 | 4 | * |
---|
4 | 5 | * OMAP2 platform device setup/initialization |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or modify |
---|
7 | | - * it under the terms of the GNU General Public License as published by |
---|
8 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
9 | | - * (at your option) any later version. |
---|
10 | 6 | */ |
---|
11 | 7 | |
---|
12 | 8 | #include <linux/kernel.h> |
---|
.. | .. |
---|
14 | 10 | #include <linux/platform_device.h> |
---|
15 | 11 | #include <linux/io.h> |
---|
16 | 12 | #include <linux/clk.h> |
---|
| 13 | +#include <linux/dma-mapping.h> |
---|
17 | 14 | #include <linux/err.h> |
---|
18 | 15 | #include <linux/slab.h> |
---|
19 | 16 | #include <linux/of.h> |
---|
.. | .. |
---|
47 | 44 | }; |
---|
48 | 45 | #endif |
---|
49 | 46 | |
---|
| 47 | +static u64 omap_vout_dma_mask = DMA_BIT_MASK(32); |
---|
| 48 | + |
---|
50 | 49 | static struct platform_device omap_vout_device = { |
---|
51 | 50 | .name = "omap_vout", |
---|
52 | 51 | .num_resources = ARRAY_SIZE(omap_vout_resource), |
---|
53 | 52 | .resource = &omap_vout_resource[0], |
---|
54 | 53 | .id = -1, |
---|
| 54 | + .dev = { |
---|
| 55 | + .dma_mask = &omap_vout_dma_mask, |
---|
| 56 | + .coherent_dma_mask = DMA_BIT_MASK(32), |
---|
| 57 | + }, |
---|
55 | 58 | }; |
---|
56 | 59 | |
---|
57 | 60 | int __init omap_init_vout(void) |
---|