hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/arm/mach-omap2/devices.c
....@@ -1,12 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * linux/arch/arm/mach-omap2/devices.c
34 *
45 * 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.
106 */
117
128 #include <linux/kernel.h>
....@@ -14,6 +10,7 @@
1410 #include <linux/platform_device.h>
1511 #include <linux/io.h>
1612 #include <linux/clk.h>
13
+#include <linux/dma-mapping.h>
1714 #include <linux/err.h>
1815 #include <linux/slab.h>
1916 #include <linux/of.h>
....@@ -47,11 +44,17 @@
4744 };
4845 #endif
4946
47
+static u64 omap_vout_dma_mask = DMA_BIT_MASK(32);
48
+
5049 static struct platform_device omap_vout_device = {
5150 .name = "omap_vout",
5251 .num_resources = ARRAY_SIZE(omap_vout_resource),
5352 .resource = &omap_vout_resource[0],
5453 .id = -1,
54
+ .dev = {
55
+ .dma_mask = &omap_vout_dma_mask,
56
+ .coherent_dma_mask = DMA_BIT_MASK(32),
57
+ },
5558 };
5659
5760 int __init omap_init_vout(void)