1 /* linux/arch/arm/plat-s5p/dev-fimd0.c
3 * Copyright (c) 2009-2011 Samsung Electronics Co., Ltd.
4 * http://www.samsung.com
6 * Core file for Samsung Display Controller (FIMD) driver
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
13 #include <linux/kernel.h>
14 #include <linux/string.h>
15 #include <linux/platform_device.h>
17 #include <linux/gfp.h>
18 #include <linux/dma-mapping.h>
20 #include <mach/irqs.h>
24 #include <plat/devs.h>
27 static struct resource s5p_fimd0_resource[] = {
29 .start = S5P_PA_FIMD0,
30 .end = S5P_PA_FIMD0 + SZ_32K - 1,
31 .flags = IORESOURCE_MEM,
34 .start = IRQ_FIMD0_VSYNC,
35 .end = IRQ_FIMD0_VSYNC,
36 .flags = IORESOURCE_IRQ,
39 .start = IRQ_FIMD0_FIFO,
40 .end = IRQ_FIMD0_FIFO,
41 .flags = IORESOURCE_IRQ,
44 .start = IRQ_FIMD0_SYSTEM,
45 .end = IRQ_FIMD0_SYSTEM,
46 .flags = IORESOURCE_IRQ,
50 static u64 fimd0_dmamask = DMA_BIT_MASK(32);
52 struct platform_device s5p_device_fimd0 = {
55 .num_resources = ARRAY_SIZE(s5p_fimd0_resource),
56 .resource = s5p_fimd0_resource,
58 .dma_mask = &fimd0_dmamask,
59 .coherent_dma_mask = DMA_BIT_MASK(32),
63 void __init s5p_fimd0_set_platdata(struct s3c_fb_platdata *pd)
65 s3c_set_platdata(pd, sizeof(struct s3c_fb_platdata),