Skip to content

Commit

Permalink
Merge tag 'pinctrl' of git://git.kernel.org/pub/scm/linux/kernel/git/…
Browse files Browse the repository at this point in the history
…arm/arm-soc

Pull arm-soc pincontrol drivers update from Arnd Bergmann:
 "We are converting platforms to use the pinctrl framework over time,
  rather than using platform specific code for the same effect.  This
  adds the respective driver for the prima2 platform."

* tag 'pinctrl' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
  ARM: prima2: enable gpiolib unconditionally
  PINCTRL: SiRF: add GPIO and GPIO irq support in CSR SiRFprimaII
  • Loading branch information
Linus Torvalds committed Jul 24, 2012
2 parents 3645f0c + 8ee41a6 commit e81218f
Show file tree
Hide file tree
Showing 4 changed files with 503 additions and 2 deletions.
1 change: 1 addition & 0 deletions arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ config ARCH_PRIMA2
bool "CSR SiRFSoC PRIMA2 ARM Cortex A9 Platform"
select CPU_V7
select NO_IOPORT
select ARCH_REQUIRE_GPIOLIB
select GENERIC_CLOCKEVENTS
select CLKDEV_LOOKUP
select GENERIC_IRQ_CHIP
Expand Down
13 changes: 13 additions & 0 deletions arch/arm/mach-prima2/include/mach/gpio.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#ifndef __MACH_GPIO_H
#define __MACH_GPIO_H

/* Pull up/down values */
enum sirfsoc_gpio_pull {
SIRFSOC_GPIO_PULL_NONE,
SIRFSOC_GPIO_PULL_UP,
SIRFSOC_GPIO_PULL_DOWN,
};

void sirfsoc_gpio_set_pull(unsigned gpio, unsigned mode);

#endif
2 changes: 1 addition & 1 deletion arch/arm/mach-prima2/include/mach/irqs.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#define SIRFSOC_INTENAL_IRQ_START 0
#define SIRFSOC_INTENAL_IRQ_END 59

#define SIRFSOC_GPIO_IRQ_START (SIRFSOC_INTENAL_IRQ_END + 1)
#define NR_IRQS 220

#endif
Loading

0 comments on commit e81218f

Please sign in to comment.