diff options
-rw-r--r-- | arch/arm/mach-msm/Kconfig | 1 | ||||
-rw-r--r-- | arch/arm/mach-msm/Makefile | 6 | ||||
-rw-r--r-- | drivers/gpio/Kconfig | 8 | ||||
-rw-r--r-- | drivers/gpio/Makefile | 1 | ||||
-rw-r--r-- | drivers/gpio/gpio-msm-v2.c (renamed from arch/arm/mach-msm/gpio-v2.c) | 4 |
5 files changed, 12 insertions, 8 deletions
diff --git a/arch/arm/mach-msm/Kconfig b/arch/arm/mach-msm/Kconfig index cc7c0b21e2b8..f5cce3fe351a 100644 --- a/arch/arm/mach-msm/Kconfig +++ b/arch/arm/mach-msm/Kconfig | |||
@@ -47,6 +47,7 @@ config ARCH_MSM8X60 | |||
47 | select ARM_GIC | 47 | select ARM_GIC |
48 | select CPU_V7 | 48 | select CPU_V7 |
49 | select MSM_V2_TLMM | 49 | select MSM_V2_TLMM |
50 | select GPIO_MSM_V2 | ||
50 | select MSM_GPIOMUX | 51 | select MSM_GPIOMUX |
51 | select MSM_SCM if SMP | 52 | select MSM_SCM if SMP |
52 | 53 | ||
diff --git a/arch/arm/mach-msm/Makefile b/arch/arm/mach-msm/Makefile index c0709afd2130..7a227d1c144d 100644 --- a/arch/arm/mach-msm/Makefile +++ b/arch/arm/mach-msm/Makefile | |||
@@ -29,9 +29,3 @@ obj-$(CONFIG_ARCH_MSM8960) += board-msm8960.o devices-msm8960.o | |||
29 | obj-$(CONFIG_ARCH_MSM7X30) += gpiomux-v1.o gpiomux.o | 29 | obj-$(CONFIG_ARCH_MSM7X30) += gpiomux-v1.o gpiomux.o |
30 | obj-$(CONFIG_ARCH_QSD8X50) += gpiomux-8x50.o gpiomux-v1.o gpiomux.o | 30 | obj-$(CONFIG_ARCH_QSD8X50) += gpiomux-8x50.o gpiomux-v1.o gpiomux.o |
31 | obj-$(CONFIG_ARCH_MSM8X60) += gpiomux-8x60.o gpiomux-v2.o gpiomux.o | 31 | obj-$(CONFIG_ARCH_MSM8X60) += gpiomux-8x60.o gpiomux-v2.o gpiomux.o |
32 | ifdef CONFIG_MSM_V2_TLMM | ||
33 | ifndef CONFIG_ARCH_MSM8960 | ||
34 | # TODO: TLMM Mapping issues need to be resolved | ||
35 | obj-y += gpio-v2.o | ||
36 | endif | ||
37 | endif | ||
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 382c67c66070..30e14e8b5bc1 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig | |||
@@ -98,6 +98,14 @@ config GPIO_MSM_V1 | |||
98 | Qualcomm MSM chips. Most of the pins on the MSM can be | 98 | Qualcomm MSM chips. Most of the pins on the MSM can be |
99 | selected for GPIO, and are controlled by this driver. | 99 | selected for GPIO, and are controlled by this driver. |
100 | 100 | ||
101 | config GPIO_MSM_V2 | ||
102 | tristate "Qualcomm MSM GPIO v2" | ||
103 | depends on GPIOLIB && ARCH_MSM | ||
104 | help | ||
105 | Say yes here to support the GPIO interface on ARM v7 based | ||
106 | Qualcomm MSM chips. Most of the pins on the MSM can be | ||
107 | selected for GPIO, and are controlled by this driver. | ||
108 | |||
101 | config GPIO_PLAT_SAMSUNG | 109 | config GPIO_PLAT_SAMSUNG |
102 | def_bool y | 110 | def_bool y |
103 | depends on SAMSUNG_GPIOLIB_4BIT | 111 | depends on SAMSUNG_GPIOLIB_4BIT |
diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile index 72d4e5056773..3efbb995623f 100644 --- a/drivers/gpio/Makefile +++ b/drivers/gpio/Makefile | |||
@@ -20,6 +20,7 @@ obj-$(CONFIG_GPIO_MAX732X) += max732x.o | |||
20 | obj-$(CONFIG_GPIO_MC33880) += mc33880.o | 20 | obj-$(CONFIG_GPIO_MC33880) += mc33880.o |
21 | obj-$(CONFIG_GPIO_MCP23S08) += mcp23s08.o | 21 | obj-$(CONFIG_GPIO_MCP23S08) += mcp23s08.o |
22 | obj-$(CONFIG_GPIO_MSM_V1) += gpio-msm-v1.o | 22 | obj-$(CONFIG_GPIO_MSM_V1) += gpio-msm-v1.o |
23 | obj-$(CONFIG_GPIO_MSM_V2) += gpio-msm-v2.o | ||
23 | obj-$(CONFIG_GPIO_74X164) += 74x164.o | 24 | obj-$(CONFIG_GPIO_74X164) += 74x164.o |
24 | obj-$(CONFIG_ARCH_OMAP) += gpio-omap.o | 25 | obj-$(CONFIG_ARCH_OMAP) += gpio-omap.o |
25 | obj-$(CONFIG_GPIO_PCA953X) += pca953x.o | 26 | obj-$(CONFIG_GPIO_PCA953X) += pca953x.o |
diff --git a/arch/arm/mach-msm/gpio-v2.c b/drivers/gpio/gpio-msm-v2.c index cc9c4fd7cccc..5cb1227d69cf 100644 --- a/arch/arm/mach-msm/gpio-v2.c +++ b/drivers/gpio/gpio-msm-v2.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* Copyright (c) 2010, Code Aurora Forum. All rights reserved. | 1 | /* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved. |
2 | * | 2 | * |
3 | * This program is free software; you can redistribute it and/or modify | 3 | * This program is free software; you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License version 2 and | 4 | * it under the terms of the GNU General Public License version 2 and |
@@ -30,8 +30,8 @@ | |||
30 | 30 | ||
31 | #include <asm/mach/irq.h> | 31 | #include <asm/mach/irq.h> |
32 | 32 | ||
33 | #include <mach/msm_gpiomux.h> | ||
33 | #include <mach/msm_iomap.h> | 34 | #include <mach/msm_iomap.h> |
34 | #include "gpiomux.h" | ||
35 | 35 | ||
36 | /* Bits of interest in the GPIO_IN_OUT register. | 36 | /* Bits of interest in the GPIO_IN_OUT register. |
37 | */ | 37 | */ |