| OLD | NEW |
| 1 /* | 1 /* |
| 2 * arch/arm/mach-tegra/devices.c | 2 * arch/arm/mach-tegra/devices.c |
| 3 * | 3 * |
| 4 * Copyright (C) 2010 Google, Inc. | 4 * Copyright (C) 2010 Google, Inc. |
| 5 * | 5 * |
| 6 * Author: | 6 * Author: |
| 7 * Colin Cross <ccross@android.com> | 7 * Colin Cross <ccross@android.com> |
| 8 * Erik Gilling <ccross@android.com> | 8 * Erik Gilling <ccross@android.com> |
| 9 * | 9 * |
| 10 * This software is licensed under the terms of the GNU General Public | 10 * This software is licensed under the terms of the GNU General Public |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 #include <linux/resource.h> | 22 #include <linux/resource.h> |
| 23 #include <linux/platform_device.h> | 23 #include <linux/platform_device.h> |
| 24 #include <linux/dma-mapping.h> | 24 #include <linux/dma-mapping.h> |
| 25 #include <linux/fsl_devices.h> | 25 #include <linux/fsl_devices.h> |
| 26 #include <linux/serial_8250.h> | 26 #include <linux/serial_8250.h> |
| 27 #include <asm/pmu.h> | 27 #include <asm/pmu.h> |
| 28 #include <mach/irqs.h> | 28 #include <mach/irqs.h> |
| 29 #include <mach/iomap.h> | 29 #include <mach/iomap.h> |
| 30 #include <mach/dma.h> | 30 #include <mach/dma.h> |
| 31 #include <mach/nvhost.h> |
| 31 | 32 |
| 32 static struct resource i2c_resource1[] = { | 33 static struct resource i2c_resource1[] = { |
| 33 [0] = { | 34 [0] = { |
| 34 .start = INT_I2C, | 35 .start = INT_I2C, |
| 35 .end = INT_I2C, | 36 .end = INT_I2C, |
| 36 .flags = IORESOURCE_IRQ, | 37 .flags = IORESOURCE_IRQ, |
| 37 }, | 38 }, |
| 38 [1] = { | 39 [1] = { |
| 39 .start = TEGRA_I2C_BASE, | 40 .start = TEGRA_I2C_BASE, |
| 40 .end = TEGRA_I2C_BASE + TEGRA_I2C_SIZE-1, | 41 .end = TEGRA_I2C_BASE + TEGRA_I2C_SIZE-1, |
| (...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 855 struct platform_device tegra_aes_device = { | 856 struct platform_device tegra_aes_device = { |
| 856 .name = "tegra-aes", | 857 .name = "tegra-aes", |
| 857 .id = -1, | 858 .id = -1, |
| 858 .resource = tegra_aes_resources, | 859 .resource = tegra_aes_resources, |
| 859 .num_resources = ARRAY_SIZE(tegra_aes_resources), | 860 .num_resources = ARRAY_SIZE(tegra_aes_resources), |
| 860 .dev = { | 861 .dev = { |
| 861 .dma_mask = &tegra_aes_dma_mask, | 862 .dma_mask = &tegra_aes_dma_mask, |
| 862 .coherent_dma_mask = DMA_BIT_MASK(32), | 863 .coherent_dma_mask = DMA_BIT_MASK(32), |
| 863 }, | 864 }, |
| 864 }; | 865 }; |
| 866 |
| 867 static struct resource tegra_camera_resources[] = { |
| 868 { |
| 869 .name = "regs", |
| 870 .start = TEGRA_VI_BASE, |
| 871 .end = TEGRA_VI_BASE + TEGRA_VI_SIZE - 1, |
| 872 .flags = IORESOURCE_MEM, |
| 873 }, |
| 874 }; |
| 875 |
| 876 static u64 tegra_camera_dma_mask = DMA_BIT_MASK(32); |
| 877 |
| 878 struct nvhost_device tegra_camera_device = { |
| 879 .name = "tegra-camera", |
| 880 .id = 0, |
| 881 .dev = { |
| 882 .dma_mask = &tegra_camera_dma_mask, |
| 883 .coherent_dma_mask = 0xffffffff, |
| 884 }, |
| 885 .num_resources = ARRAY_SIZE(tegra_camera_resources), |
| 886 .resource = tegra_camera_resources, |
| 887 }; |
| 888 |
| 889 |
| 890 |
| OLD | NEW |