diff options
author | Alok Chauhan <alokc@nvidia.com> | 2011-05-16 21:47:34 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:42:39 -0800 |
commit | 1c31f0a1841cfa81331ea8c3a6391a23df24a0ff (patch) | |
tree | 00adc570bb502c9a3fc18b756ebeedab779c8664 /arch/arm/mach-tegra/devices.c | |
parent | b8af16cc014cf77fa66e931b96e8cc1559ee8acb (diff) |
arm: tegra: devices: Adding device details for tegra kbc
Adding device details for the tegra based kbc driver.
Bug 827020
Original-Change-Id: I47b150fc97f97ce91c1de569aec067ad2e5f0660
Reviewed-on: http://git-master/r/31725
Reviewed-by: Alok Chauhan <alokc@nvidia.com>
Tested-by: Alok Chauhan <alokc@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Rebase-Id: Ra1a6e6dc6477cf1deae0b84dc3911b8ccfd9bbb8
Diffstat (limited to 'arch/arm/mach-tegra/devices.c')
-rw-r--r-- | arch/arm/mach-tegra/devices.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/devices.c b/arch/arm/mach-tegra/devices.c index 550bb62f00a1..dbc7f297e1a5 100644 --- a/arch/arm/mach-tegra/devices.c +++ b/arch/arm/mach-tegra/devices.c @@ -1225,3 +1225,26 @@ struct platform_device tegra_aes_device = { .coherent_dma_mask = DMA_BIT_MASK(32), }, }; + +static struct resource tegra_kbc_resources[] = { + [0] = { + .start = TEGRA_KBC_BASE, + .end = TEGRA_KBC_BASE + TEGRA_KBC_SIZE - 1, + .flags = IORESOURCE_MEM, + }, + [1] = { + .start = INT_KBC, + .end = INT_KBC, + .flags = IORESOURCE_IRQ, + }, +}; + +struct platform_device tegra_kbc_device = { + .name = "tegra-kbc", + .id = -1, + .resource = tegra_kbc_resources, + .num_resources = ARRAY_SIZE(tegra_kbc_resources), + .dev = { + .platform_data = 0, + }, +}; |