Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: arch/arm/mach-tegra/devices.c

Issue 6627032: CHROMIUM: Board file changes for Tegra camera (Closed)
Patch Set: Make sensor stub functions static inline. Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « arch/arm/mach-tegra/devices.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
+};
+
+
+
« no previous file with comments | « arch/arm/mach-tegra/devices.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698