2 * DRM/KMS device registration for TI OMAP platforms
4 * Copyright (C) 2012 Texas Instruments
5 * Author: Rob Clark <rob.clark@linaro.org>
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License version 2 as published by
9 * the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 * You should have received a copy of the GNU General Public License along with
17 * this program. If not, see <http://www.gnu.org/licenses/>.
20 #include <linux/module.h>
21 #include <linux/kernel.h>
23 #include <linux/init.h>
24 #include <linux/platform_device.h>
25 #include <linux/dma-mapping.h>
26 #include <linux/platform_data/omap_drm.h>
31 #if defined(CONFIG_DRM_OMAP) || defined(CONFIG_DRM_OMAP_MODULE)
33 static struct omap_drm_platform_data platform_data;
35 static struct platform_device omap_drm_device = {
37 .coherent_dma_mask = DMA_BIT_MASK(32),
38 .platform_data = &platform_data,
44 int __init omap_init_drm(void)
46 platform_data.omaprev = GET_OMAP_TYPE;
48 return platform_device_register(&omap_drm_device);
52 int __init omap_init_drm(void) { return 0; }