arm: tegra: cardhu: Defining base irq number for tps6591x
Laxman Dewangan [Thu, 24 Feb 2011 11:27:06 +0000 (16:27 +0530)]
Defining the irq base address for the tps6591x through cardhu
header file.

Original-Change-Id: Iebd6ef863a994e4552f358b31b104c6e40a6446e
Reviewed-on: http://git-master/r/20755
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Original-Change-Id: I6c758f61913644ea804f1cd8a4e6c84ebdb45f64

Rebase-Id: Ree6595f6d8794cbd4becccd24cb5301f40518a86

arch/arm/mach-tegra/board-cardhu-power.c
arch/arm/mach-tegra/board-cardhu.h

index 2181c45..2ef2404 100644 (file)
@@ -240,7 +240,7 @@ static struct tps6591x_subdev_info tps_devs[] = {
 };
 
 static struct tps6591x_platform_data tps_platform = {
-       .irq_base       = TEGRA_NR_IRQS,
+       .irq_base       = TPS6591X_IRQ_BASE,
        .num_subdevs    = ARRAY_SIZE(tps_devs),
        .subdevs        = tps_devs,
        .gpio_base      = TPS6591X_GPIO_BASE,
index 2c4cc3c..ba10392 100644 (file)
@@ -22,6 +22,7 @@
 #define _MACH_TEGRA_BOARD_CARDHU_H
 
 #include <mach/gpio.h>
+#include <mach/irqs.h>
 
 #define BOARD_E1187   0x0B57
 #define BOARD_E1186   0x0B56
 #define PCA954x_I2C_BUS2       (PCA954x_I2C_BUS_BASE + 2)
 #define PCA954x_I2C_BUS3       (PCA954x_I2C_BUS_BASE + 3)
 
+/*****************Interrupt tables ******************/
+/* External peripheral act as interrupt controller */
+/* TPS6591x IRQs */
+#define TPS6591X_IRQ_BASE      TEGRA_NR_IRQS
+#define TPS6591X_IRQ_END       (TPS6591X_IRQ_BASE + 24)
+
+
+
 int cardhu_charge_init(void);
 int cardhu_regulator_init(void);
 int cardhu_suspend_init(void);