| Index: arch/arm/mach-tegra/devices.c
|
| diff --git a/arch/arm/mach-tegra/devices.c b/arch/arm/mach-tegra/devices.c
|
| index c1ee3139fbc9d5e7e64260ec55c1ae3f9d0d2259..4e468bfc2051cedccb4efaaaaf6a04a12d06ccb6 100644
|
| --- a/arch/arm/mach-tegra/devices.c
|
| +++ b/arch/arm/mach-tegra/devices.c
|
| @@ -28,6 +28,7 @@
|
| #include <mach/irqs.h>
|
| #include <mach/iomap.h>
|
| #include <mach/dma.h>
|
| +#include <mach/nvhost.h>
|
|
|
| static struct resource i2c_resource1[] = {
|
| [0] = {
|
| @@ -862,3 +863,28 @@ struct platform_device tegra_aes_device = {
|
| .coherent_dma_mask = DMA_BIT_MASK(32),
|
| },
|
| };
|
| +
|
| +static struct resource tegra_camera_resources[] = {
|
| + {
|
| + .name = "regs",
|
| + .start = TEGRA_VI_BASE,
|
| + .end = TEGRA_VI_BASE + TEGRA_VI_SIZE - 1,
|
| + .flags = IORESOURCE_MEM,
|
| + },
|
| +};
|
| +
|
| +static u64 tegra_camera_dma_mask = DMA_BIT_MASK(32);
|
| +
|
| +struct nvhost_device tegra_camera_device = {
|
| + .name = "tegra-camera",
|
| + .id = 0,
|
| + .dev = {
|
| + .dma_mask = &tegra_camera_dma_mask,
|
| + .coherent_dma_mask = 0xffffffff,
|
| + },
|
| + .num_resources = ARRAY_SIZE(tegra_camera_resources),
|
| + .resource = tegra_camera_resources,
|
| +};
|
| +
|
| +
|
| +
|
|
|