diff options
author | Manoj Chourasia <mchourasia@nvidia.com> | 2011-10-19 23:25:32 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:50:22 -0800 |
commit | 4f89825ef7413b378d07033fce78b7761c428097 (patch) | |
tree | c286ca9b65218dbbb0f2bff704ed88e483d08c20 /arch/arm/mach-tegra/devices.c | |
parent | 26079949e23b3f1ab7d3399ddf7e3208e872cf94 (diff) |
tegra: NOR: Add NOR platform device
Added NOR platform device for Tegra.
Reviewed-on: http://git-master/r/56895
(cherry picked from commit 6b93835cef6321f286b8efcd032a1a1cc7a6ae9d)
Change-Id: Ie0219f1b7534f140a1da924f4f97a52f50d59ad2
Signed-off-by: Manoj Chourasia <mchourasia@nvidia.com>
Reviewed-on: http://git-master/r/66705
Tested-by: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Rebase-Id: R8ca0f2697a54ee48996c57af936bcc69c942db46
Diffstat (limited to 'arch/arm/mach-tegra/devices.c')
-rw-r--r-- | arch/arm/mach-tegra/devices.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/devices.c b/arch/arm/mach-tegra/devices.c index 76ab47e43f70..c38120d119f4 100644 --- a/arch/arm/mach-tegra/devices.c +++ b/arch/arm/mach-tegra/devices.c @@ -392,7 +392,35 @@ struct platform_device tegra_spi_slave_device6 = { }; #endif +static struct resource resources_nor[] = { + [0] = { + .start = INT_SNOR, + .end = INT_SNOR, + .flags = IORESOURCE_IRQ, + }, + [1] = { + /* Map SNOR Controller */ + .start = TEGRA_SNOR_BASE, + .end = TEGRA_SNOR_BASE + TEGRA_SNOR_SIZE - 1, + .flags = IORESOURCE_MEM, + }, + [2] = { + /* Map the size of flash */ + .start = TEGRA_NOR_FLASH_BASE, + .end = TEGRA_NOR_FLASH_BASE + TEGRA_NOR_FLASH_SIZE - 1, + .flags = IORESOURCE_MEM, + } +}; +struct platform_device tegra_nor_device = { + .name = "tegra-nor", + .id = -1, + .num_resources = ARRAY_SIZE(resources_nor), + .resource = resources_nor, + .dev = { + .coherent_dma_mask = 0xffffffff, + }, +}; static struct resource sdhci_resource1[] = { [0] = { |