Sylwester Nawrocki | 33c14ff | 2010-08-05 18:16:31 +0900 | [diff] [blame] | 1 | /* linux/arch/arm/plat-s5p/dev-fimc0.c |
| 2 | * |
| 3 | * Copyright (c) 2010 Samsung Electronics |
| 4 | * |
| 5 | * Base S5P FIMC0 resource and device definitions |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License version 2 as |
| 9 | * published by the Free Software Foundation. |
| 10 | */ |
| 11 | |
| 12 | #include <linux/kernel.h> |
Marek Szyprowski | 0fe7f88 | 2010-09-09 21:29:52 +0900 | [diff] [blame] | 13 | #include <linux/dma-mapping.h> |
Sylwester Nawrocki | 33c14ff | 2010-08-05 18:16:31 +0900 | [diff] [blame] | 14 | #include <linux/platform_device.h> |
| 15 | #include <linux/interrupt.h> |
| 16 | #include <linux/ioport.h> |
| 17 | #include <mach/map.h> |
| 18 | |
| 19 | static struct resource s5p_fimc0_resource[] = { |
| 20 | [0] = { |
| 21 | .start = S5P_PA_FIMC0, |
Sylwester Nawrocki | 80e2f36 | 2010-09-09 21:31:46 +0900 | [diff] [blame] | 22 | .end = S5P_PA_FIMC0 + SZ_4K - 1, |
Sylwester Nawrocki | 33c14ff | 2010-08-05 18:16:31 +0900 | [diff] [blame] | 23 | .flags = IORESOURCE_MEM, |
| 24 | }, |
| 25 | [1] = { |
| 26 | .start = IRQ_FIMC0, |
| 27 | .end = IRQ_FIMC0, |
| 28 | .flags = IORESOURCE_IRQ, |
| 29 | }, |
| 30 | }; |
| 31 | |
Marek Szyprowski | 0fe7f88 | 2010-09-09 21:29:52 +0900 | [diff] [blame] | 32 | static u64 s5p_fimc0_dma_mask = DMA_BIT_MASK(32); |
| 33 | |
Sylwester Nawrocki | 33c14ff | 2010-08-05 18:16:31 +0900 | [diff] [blame] | 34 | struct platform_device s5p_device_fimc0 = { |
| 35 | .name = "s5p-fimc", |
| 36 | .id = 0, |
| 37 | .num_resources = ARRAY_SIZE(s5p_fimc0_resource), |
| 38 | .resource = s5p_fimc0_resource, |
Marek Szyprowski | 0fe7f88 | 2010-09-09 21:29:52 +0900 | [diff] [blame] | 39 | .dev = { |
| 40 | .dma_mask = &s5p_fimc0_dma_mask, |
| 41 | .coherent_dma_mask = DMA_BIT_MASK(32), |
| 42 | }, |
Sylwester Nawrocki | 33c14ff | 2010-08-05 18:16:31 +0900 | [diff] [blame] | 43 | }; |