Skip to contentSkip to conversation

x86/geode/net5501: Add platform driver for Soekris Engineering net5501

tip:x86/platform tip-bot for Philip Prindeville 1 participant 1 message Mar 6, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw
Commit-ID:  da4e3302949f4a702f1ddfefe067762232d363d5
Gitweb:     http://git.kernel.org/tip/da4e3302949f4a702f1ddfefe067762232d363d5
Author:     Philip Prindeville <[email protected]>
AuthorDate: Mon, 5 Mar 2012 15:05:15 -0800
Committer:  Ingo Molnar <[email protected]>
CommitDate: Tue, 6 Mar 2012 09:23:56 +0100

x86/geode/net5501: Add platform driver for Soekris Engineering net5501

Add platform driver for the Soekris Engineering net5501 single-board computer. Probes well-known locations in ROM for BIOS signature to confirm correct platform. Registers 1 LED and 1 GPIO-based button (typically used for soft reset).

Cc Richard Purdie <[email protected]>
Cc Andres Salomon <[email protected]>
Cc Matthew Garrett <[email protected]>
[ Removed Kconfig and Makefile detritus from drivers/leds/]
---
 arch/x86/Kconfig                  |    6 ++
 arch/x86/platform/geode/Makefile  |    1 +
 arch/x86/platform/geode/net5501.c |  154 +++++++++++++++++++++++++++++++++++++
 drivers/leds/Kconfig              |   10 ---
 drivers/leds/Makefile             |    1 -
 drivers/leds/leds-net5501.c       |   97 -----------------------
 6 files changed, 161 insertions(+), 108 deletions(-)
arch/x86/Kconfig +6 -0
index c0d4931..e76f1db 100644
@@ -2114,6 +2114,12 @@ config ALIX
 
 	  Note: You have to set alix.force=1 for boards with Award BIOS.
 
+config NET5501
+	bool "Soekris Engineering net5501 System Support (LEDS, GPIO, etc)"
+	select GPIOLIB
+	---help---
+	  This option enables system support for the Soekris Engineering net5501.
+
 endif # X86_32
 
 config AMD_NB
arch/x86/platform/geode/Makefile +1 -0
index 07c9cd0..246b788 100644
@@ -1 +1,2 @@
 obj-$(CONFIG_ALIX)		+= alix.o
+obj-$(CONFIG_NET5501)		+= net5501.o
arch/x86/platform/geode/net5501.c new file +154 -0

154 lines not on this page · raw message

drivers/leds/Kconfig +0 -10
index 9ca28fc..8c7a75d 100644
@@ -89,16 +89,6 @@ config LEDS_NET48XX
 	  This option enables support for the Soekris net4801 and net4826 error
 	  LED.
 
-config LEDS_NET5501
-	tristate "LED Support for Soekris net5501 series Error LED"
-	depends on LEDS_TRIGGERS
-	depends on X86 && GPIO_CS5535
-	select LEDS_TRIGGER_DEFAULT_ON
-	default n
-	help
-	  Add support for the Soekris net5501 board (detection, error led
-	  and GPIO).
-
 config LEDS_FSG
 	tristate "LED Support for the Freecom FSG-3"
 	depends on LEDS_CLASS
drivers/leds/Makefile +0 -1
index 1fc6875..6bcf4f6 100644
@@ -14,7 +14,6 @@ obj-$(CONFIG_LEDS_MIKROTIK_RB532)	+= leds-rb532.o
 obj-$(CONFIG_LEDS_S3C24XX)		+= leds-s3c24xx.o
 obj-$(CONFIG_LEDS_AMS_DELTA)		+= leds-ams-delta.o
 obj-$(CONFIG_LEDS_NET48XX)		+= leds-net48xx.o
-obj-$(CONFIG_LEDS_NET5501)		+= leds-net5501.o
 obj-$(CONFIG_LEDS_WRAP)			+= leds-wrap.o
 obj-$(CONFIG_LEDS_COBALT_QUBE)		+= leds-cobalt-qube.o
 obj-$(CONFIG_LEDS_COBALT_RAQ)		+= leds-cobalt-raq.o
drivers/leds/leds-net5501.c deleted +0 -97

97 lines not on this page · raw message