Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212602
b: refs/heads/master
c: ab78cde
h: refs/heads/master
v: v3
  • Loading branch information
Gregory Bean authored and Daniel Walker committed Oct 6, 2010
1 parent 0983302 commit 27bee23
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 10c4580e798838fd63eafec5ed304b7ace6db020
refs/heads/master: ab78cde589e89afa039a13bc75d23d249f1c1200
5 changes: 5 additions & 0 deletions trunk/arch/arm/mach-msm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ config ARCH_MSM7X30
select MSM_VIC
select CPU_V7
select MSM_REMOTE_SPINLOCK_DEKKERS
select MSM_GPIOMUX

config ARCH_QSD8X50
bool "QSD8X50"
Expand All @@ -26,6 +27,7 @@ config ARCH_QSD8X50
select MSM_VIC
select CPU_V7
select MSM_REMOTE_SPINLOCK_LDREX
select MSM_GPIOMUX
endchoice

config MSM_SOC_REV_A
Expand Down Expand Up @@ -106,6 +108,9 @@ config MSM_SMD_PKG3
config MSM_SMD
bool

config MSM_GPIOMUX
bool

config MSM_V2_TLMM
bool
endif
20 changes: 20 additions & 0 deletions trunk/arch/arm/mach-msm/gpiomux.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#define __ARCH_ARM_MACH_MSM_GPIOMUX_H

#include <linux/bitops.h>
#include <linux/errno.h>

#if defined(CONFIG_MSM_V2_TLMM)
#include "gpiomux-v2.h"
Expand Down Expand Up @@ -60,6 +61,8 @@ enum {
GPIOMUX_CTL_MASK = GPIOMUX_VALID,
};

#ifdef CONFIG_MSM_GPIOMUX

/* Each architecture must provide its own instance of this table.
* To avoid having gpiomux manage any given gpio, one or both of
* the entries can avoid setting GPIOMUX_VALID - the absence
Expand Down Expand Up @@ -90,5 +93,22 @@ int msm_gpiomux_write(unsigned gpio,
* should use msm_gpiomux_write.
*/
void __msm_gpiomux_write(unsigned gpio, gpiomux_config_t val);
#else
static inline int __must_check msm_gpiomux_get(unsigned gpio)
{
return -ENOSYS;
}

static inline int msm_gpiomux_put(unsigned gpio)
{
return -ENOSYS;
}

static inline int msm_gpiomux_write(unsigned gpio,
gpiomux_config_t active,
gpiomux_config_t suspended)
{
return -ENOSYS;
}
#endif
#endif

0 comments on commit 27bee23

Please sign in to comment.