diff options
author | Daniel Mack <daniel@caiaq.de> | 2009-07-09 13:04:49 -0400 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2009-09-10 06:49:27 -0400 |
commit | 1ff2c33e197f0a65e4641b2dbac1a8c85f5204dd (patch) | |
tree | d1e74c2a91fbcd01107084cd3ea17f3435b4e807 | |
parent | f0f04f0840e41411895056bece50bfbd5dfc81cc (diff) |
[ARM] pxa: add device definition for graphics controller
Signed-off-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
-rw-r--r-- | arch/arm/mach-pxa/devices.c | 27 | ||||
-rw-r--r-- | arch/arm/mach-pxa/devices.h | 2 |
2 files changed, 29 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/devices.c b/arch/arm/mach-pxa/devices.c index ecc08f360b68..46fabe1cca11 100644 --- a/arch/arm/mach-pxa/devices.c +++ b/arch/arm/mach-pxa/devices.c | |||
@@ -935,6 +935,33 @@ void __init pxa3xx_set_nand_info(struct pxa3xx_nand_platform_data *info) | |||
935 | { | 935 | { |
936 | pxa_register_device(&pxa3xx_device_nand, info); | 936 | pxa_register_device(&pxa3xx_device_nand, info); |
937 | } | 937 | } |
938 | |||
939 | static struct resource pxa3xx_resources_gcu[] = { | ||
940 | { | ||
941 | .start = 0x54000000, | ||
942 | .end = 0x54000fff, | ||
943 | .flags = IORESOURCE_MEM, | ||
944 | }, | ||
945 | { | ||
946 | .start = IRQ_GCU, | ||
947 | .end = IRQ_GCU, | ||
948 | .flags = IORESOURCE_IRQ, | ||
949 | }, | ||
950 | }; | ||
951 | |||
952 | static u64 pxa3xx_gcu_dmamask = DMA_BIT_MASK(32); | ||
953 | |||
954 | struct platform_device pxa3xx_device_gcu = { | ||
955 | .name = "pxa3xx-gcu", | ||
956 | .id = -1, | ||
957 | .num_resources = ARRAY_SIZE(pxa3xx_resources_gcu), | ||
958 | .resource = pxa3xx_resources_gcu, | ||
959 | .dev = { | ||
960 | .dma_mask = &pxa3xx_gcu_dmamask, | ||
961 | .coherent_dma_mask = 0xffffffff, | ||
962 | }, | ||
963 | }; | ||
964 | |||
938 | #endif /* CONFIG_PXA3xx */ | 965 | #endif /* CONFIG_PXA3xx */ |
939 | 966 | ||
940 | /* pxa2xx-spi platform-device ID equals respective SSP platform-device ID + 1. | 967 | /* pxa2xx-spi platform-device ID equals respective SSP platform-device ID + 1. |
diff --git a/arch/arm/mach-pxa/devices.h b/arch/arm/mach-pxa/devices.h index ecc24a4dca6d..93817d99761e 100644 --- a/arch/arm/mach-pxa/devices.h +++ b/arch/arm/mach-pxa/devices.h | |||
@@ -35,4 +35,6 @@ extern struct platform_device pxa27x_device_pwm1; | |||
35 | extern struct platform_device pxa3xx_device_nand; | 35 | extern struct platform_device pxa3xx_device_nand; |
36 | extern struct platform_device pxa3xx_device_i2c_power; | 36 | extern struct platform_device pxa3xx_device_i2c_power; |
37 | 37 | ||
38 | extern struct platform_device pxa3xx_device_gcu; | ||
39 | |||
38 | void __init pxa_register_device(struct platform_device *dev, void *data); | 40 | void __init pxa_register_device(struct platform_device *dev, void *data); |