diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2010-08-12 12:51:04 +0530 |
---|---|---|
committer | Gary King <gking@nvidia.com> | 2010-08-19 13:42:46 -0700 |
commit | 7cbbbf6ebdff77af92b710e7e784284c75899285 (patch) | |
tree | 99228a7ac713cf198962926dfe8e5e5da77ec805 | |
parent | 26fb5db1a0d0d75cb980c8070ea01d54a1a2a35b (diff) |
[arm/tegra] nct1008: Adding board info for temp sensor nct1008.
Adding the board information for the device nct1008. This is
ON semiconductor temperature sensor and driver compatible
with national semicoductor LM90.
The board info is getting register if config variable
CONFIG_SENSORS_LM90 is selected through def config file.
Change-Id: I2d49dec6ef0942823654b8f00cf62742f0136273
Reviewed-on: http://git-master.nvidia.com/r/5078
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Gary King <gking@nvidia.com>
-rw-r--r-- | arch/arm/mach-tegra/board-generic.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-generic.c b/arch/arm/mach-tegra/board-generic.c index 4534cd49454c..7ad72114c86a 100644 --- a/arch/arm/mach-tegra/board-generic.c +++ b/arch/arm/mach-tegra/board-generic.c @@ -192,6 +192,11 @@ static struct i2c_board_info bus3_i2c_devices[] = { .irq = (INT_GPIO_BASE + TEGRA_GPIO_PN5), }, #endif +#ifdef CONFIG_SENSORS_LM90 + { + I2C_BOARD_INFO("nct1008", 0x4C), + }, +#endif }; void __init i2c_device_setup(void) |