summaryrefslogtreecommitdiff
path: root/arch/arm/mach-bcm2709/bcm2709.c
diff options
context:
space:
mode:
authorNoralf Trønnes <noralf@tronnes.org>2015-05-19 13:31:50 +0200
committerNoralf Trønnes <noralf@tronnes.org>2015-05-19 13:31:50 +0200
commitcce0a62ba4087e70af8316b9ba78329352228e3e (patch)
tree8decaf230199c74bfacade40aaeda9919ad18fab /arch/arm/mach-bcm2709/bcm2709.c
parent9112b62cec10ca617232b817ca37f0858323ca7c (diff)
downloadlinux-cce0a62ba4087e70af8316b9ba78329352228e3e.tar.gz
BCM270x: Add vchiq device to platform file and Device Tree
Prepare to turn the vchiq module into a driver. Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Diffstat (limited to 'arch/arm/mach-bcm2709/bcm2709.c')
-rw-r--r--arch/arm/mach-bcm2709/bcm2709.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm/mach-bcm2709/bcm2709.c b/arch/arm/mach-bcm2709/bcm2709.c
index 95db41ff2601..528bf6e18e5d 100644
--- a/arch/arm/mach-bcm2709/bcm2709.c
+++ b/arch/arm/mach-bcm2709/bcm2709.c
@@ -456,6 +456,31 @@ static struct platform_device bcm2708_vcio_device = {
},
};
+static struct resource bcm2708_vchiq_resources[] = {
+ {
+ .start = ARMCTRL_0_BELL_BASE,
+ .end = ARMCTRL_0_BELL_BASE + 16,
+ .flags = IORESOURCE_MEM,
+ }, {
+ .start = IRQ_ARM_DOORBELL_0,
+ .end = IRQ_ARM_DOORBELL_0,
+ .flags = IORESOURCE_IRQ,
+ },
+};
+
+static u64 vchiq_dmamask = DMA_BIT_MASK(DMA_MASK_BITS_COMMON);
+
+static struct platform_device bcm2708_vchiq_device = {
+ .name = "bcm2835_vchiq",
+ .id = -1,
+ .resource = bcm2708_vchiq_resources,
+ .num_resources = ARRAY_SIZE(bcm2708_vchiq_resources),
+ .dev = {
+ .dma_mask = &vchiq_dmamask,
+ .coherent_dma_mask = DMA_BIT_MASK(DMA_MASK_BITS_COMMON),
+ },
+};
+
#ifdef CONFIG_BCM2708_GPIO
#define BCM_GPIO_DRIVER_NAME "bcm2708_gpio"
@@ -930,6 +955,7 @@ void __init bcm2709_init(void)
bcm_register_device_dt(&bcm2708_dmaengine_device);
bcm_register_device_dt(&bcm2708_vcio_device);
+ bcm_register_device_dt(&bcm2708_vchiq_device);
#ifdef CONFIG_BCM2708_GPIO
bcm_register_device_dt(&bcm2708_gpio_device);
#endif