Skip to contentSkip to conversation

bcmring: add gpio support in Kconfig and Makefile

PATCH New Leo (Hao) Chen 2 participants 2 messages Oct 9, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 2/8 bcmring: add gpio support in Kconfig and Makefile

#1 lore raw

PATCH 2/8 bcmring: add gpio support in Kconfig and Makefile

Quoted 35 lines · Leo (Hao) Chen

From 4aff48c9134bc44306540bf7220c3546a8a889d2 Mon Sep 17 00:00:00 2001
From: Leo Chen <[email protected]>
Date: Wed, 7 Oct 2009 11:43:05 -0700
Subject: [PATCH] bcmring: gpio addition to Kconfig and Makefile

---
 arch/arm/Kconfig                   |    3 ++-
 arch/arm/mach-bcmring/Makefile     |    3 ++-
 arch/arm/mach-bcmring/csp/Makefile |    2 ++
 3 files changed, 6 insertions(+), 2 deletions(-)
arch/arm/Kconfig +2 -1
index 1c4119c..d22af37 100644
@@ -695,10 +695,11 @@ config ARCH_BCMRING
 	depends on MMU
 	select CPU_V6
 	select ARM_AMBA
+	select GENERIC_GPIO
 	select COMMON_CLKDEV
 	select GENERIC_TIME
 	select GENERIC_CLOCKEVENTS
-	select ARCH_WANT_OPTIONAL_GPIOLIB
+	select ARCH_REQUIRE_GPIOLIB
 	help
 	  Support for Broadcom's BCMRing platform.
 
arch/arm/mach-bcmring/Makefile +0 -0
index f8d9fce..b629869 100644

arch/arm/mach-bcmring/Makefile line 9

Quoted 7 lines
arch/arm/mach-bcmring/Makefile +2 -1
@@ -4,5 +4,6 @@
 
 # Object file lists.
 
-obj-y := arch.o mm.o irq.o clock.o core.o timer.o dma.o
+obj-y := arch.o mm.o irq.o clock.o core.o timer.o dma.o gpio_irq.o
 obj-y += csp/
+obj-$(CONFIG_ARCH_REQUIRE_GPIOLIB)	+= gpio.o

If ARCH_BCMRING always has CONFIG_ARCH_REQUIRE_GPIOLIB why not just add gpio.o to the obj-y list?

Regards,
Hartley