Updated NatSemi SCx200 patches for Linux-2.4
Subsystems (6)
Hi,
here's a merge of my SCx200 patches with Linux-2.4 from the bitkeeper tree. I'm waiting for Linus to apply the 2.5 patch before submitting this to Marcelo again, but I wanted to post this anyway. Please comment if there is anything strange with these patches.
The patch is also available as a bitkeeper with:
bk pull bk://zoo.weinigel.se/scx200-2.4
/Christer
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas:
# ChangeSet 1.723 -> 1.724
# drivers/mtd/maps/Makefile 1.5 -> 1.6
# drivers/i2c/Makefile 1.3 -> 1.4 # MAINTAINERS 1.82 -> 1.83 # init/main.c 1.26 -> 1.28
# arch/i386/kernel/Makefile 1.4 -> 1.6
# drivers/char/Config.in 1.36 -> 1.38
# arch/i386/config.in 1.35 -> 1.37
# drivers/char/Makefile 1.23 -> 1.25
# include/linux/pci_ids.h 1.44.1.1 -> 1.46
# drivers/mtd/maps/Config.in 1.6 -> 1.7
# Documentation/Configure.help 1.136 -> 1.137
# drivers/i2c/Config.in 1.4 -> 1.6
# (new) -> 1.2 include/linux/scx200.h # (new) -> 1.1 drivers/char/scx200_gpio.c # (new) -> 1.2 drivers/char/scx200_wdt.c # (new) -> 1.1 drivers/i2c/scx200_i2c.c # (new) -> 1.2 include/linux/scx200_gpio.h # (new) -> 1.1 drivers/mtd/maps/scx200_docflash.c # (new) -> 1.1 drivers/i2c/scx200_acb.c # (new) -> 1.2 arch/i386/kernel/scx200.c
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/10/05 [email protected] 1.724
# Merge weinigel.se:/export/bk/linux-2.4
# into weinigel.se:/export/bk/scx200-2.4 # -------------------------------------------- # diff -Nru a/Documentation/Configure.help b/Documentation/Configure.help --- a/Documentation/Configure.help Sat Oct 5 18:08:30 2002 +++ b/Documentation/Configure.help Sat Oct 5 18:08:30 2002 @@ -25929,6 +25929,58 @@
If unsure, say N.
+NatSemi SCx200 support
+CONFIG_SCx200
+ This provides basic support for the National Semiconductor SCx200
+ processor. Right now this is just a driver for the GPIO pins. +
+ If you don't know what to do here, say N.
+
+ This support is also available as a module. If compiled as a
+ module, it will be called scx200.o.
+
+NatSemi SCx200 Watchdog
+CONFIG_SCx200_WDT
+ Enable the built-in watchdog timer support on the National
+ Semiconductor SCx200 processors.
+
+ If compiled as a module, it will be called scx200_watchdog.o. +
+Flash device mapped with DOCCS on NatSemi SCx200 +CONFIG_MTD_SCx200_DOCFLASH
+ Enable support for a flash chip mapped using the DOCCS signal on a
+ National Semiconductor SCx200 processor.
+
+ If you don't know what to do here, say N.
+
+ If compiled as a module, it will be called scx200_docflash.o. +
+NatSemi SCx200 I2C using GPIO pins
+CONFIG_SCx200_I2C
+ Enable the use of two GPIO pins of a SCx200 processor as an I2C bus. +
+ If you don't know what to do here, say N.
+
+ If compiled as a module, it will be called scx200_i2c.o. +
+GPIO pin used for SCL
+CONFIG_SCx200_I2C_SCL
+ Enter the GPIO pin number used for the SCL signal. This value can
+ also be specified with a module parameter.
+
+GPIO pin used for SDA
+CONFIG_SCx200_I2C_SDA
+ Enter the GPIO pin number used for the SSA signal. This value can
+ also be specified with a module parameter.
+
+NatSemi SCx200 ACCESS.bus
+CONFIG_SCx200_ACB
+ Enable the use of the ACCESS.bus controllers of a SCx200 processor. +
+ If you don't know what to do here, say N.
+
+ If compiled as a module, it will be called scx200_acb.o. +
#
# A couple of things I keep forgetting:
# capitalize: AppleTalk, Ethernet, DOS, DMA, FAT, FTP, Internet,
MAINTAINERS +6 -0
@@ -1430,6 +1430,12 @@ L: [email protected] S: Maintained +SCx200 CPU SUPPORT +P: Christer Weinigel +M: [email protected] +W: http://www.weinigel.se +S: Supported + SGI VISUAL WORKSTATION 320 AND 540 P: Bent Hagemark M: [email protected]
arch/i386/config.in +2 -0
@@ -263,6 +263,8 @@ bool 'ISA bus support' CONFIG_ISA fi +tristate 'NatSemi SCx200 support' CONFIG_SCx200 + source drivers/pci/Config.in bool 'EISA support' CONFIG_EISA
arch/i386/kernel/Makefile +3 -0
@@ -41,4 +41,7 @@ obj-$(CONFIG_X86_IO_APIC) += io_apic.o acpitable.o obj-$(CONFIG_X86_VISWS_APIC) += visws_apic.o +export-objs += scx200.o +obj-$(CONFIG_SCx200) += scx200.o + include $(TOPDIR)/Rules.make
arch/i386/kernel/scx200.c new file +128 -0
128 lines not on this page · raw message
drivers/char/Config.in +2 -0
@@ -212,6 +212,7 @@ tristate ' Mixcom Watchdog' CONFIG_MIXCOMWD tristate ' SBC-60XX Watchdog Timer' CONFIG_60XX_WDT dep_tristate ' SC1200 Watchdog Timer (EXPERIMENTAL)' CONFIG_SC1200_WDT $CONFIG_EXPERIMENTAL + tristate ' NatSemi SCx200 Watchdog' CONFIG_SCx200_WDT tristate ' Software Watchdog' CONFIG_SOFT_WATCHDOG tristate ' W83877F (EMACS) Watchdog Timer' CONFIG_W83877F_WDT tristate ' WDT Watchdog timer' CONFIG_WDT
@@ -235,6 +236,7 @@ fi tristate 'NetWinder flash support' CONFIG_NWFLASH fi +dep_tristate 'NatSemi SCx200 GPIO Support' CONFIG_SCx200_GPIO $CONFIG_SCx200 if [ "$CONFIG_X86" = "y" -o "$CONFIG_X86_64" = "y" ]; then dep_tristate 'AMD 768 Random Number Generator support' CONFIG_AMD_RNG $CONFIG_PCI
drivers/char/Makefile +2 -0
@@ -252,6 +252,7 @@ obj-$(CONFIG_DZ) += dz.o obj-$(CONFIG_NWBUTTON) += nwbutton.o obj-$(CONFIG_NWFLASH) += nwflash.o +obj-$(CONFIG_SCx200_GPIO) += scx200_gpio.o # Only one watchdog can succeed. We probe the hardware watchdog # drivers first, then the softdog driver. This means if your hardware
@@ -278,6 +279,7 @@ #obj-$(CONFIG_ALIM1535_WDT) += alim1535d_wdt.o obj-$(CONFIG_INDYDOG) += indydog.o obj-$(CONFIG_SC1200_WDT) += sc1200wdt.o +obj-$(CONFIG_SCx200_WDT) += scx200_wdt.o obj-$(CONFIG_WAFER_WDT) += wafer5823wdt.o obj-$(CONFIG_SOFT_WATCHDOG) += softdog.o obj-$(CONFIG_AMD7XX_TCO) += amd7xx_tco.o
drivers/char/scx200_gpio.c new file +154 -0
154 lines not on this page · raw message
drivers/char/scx200_wdt.c new file +277 -0
277 lines not on this page · raw message
drivers/i2c/Config.in +6 -0
@@ -13,6 +13,12 @@ dep_tristate ' Philips style parallel port adapter' CONFIG_I2C_PHILIPSPAR $CONFIG_I2C_ALGOBIT $CONFIG_PARPORT dep_tristate ' ELV adapter' CONFIG_I2C_ELV $CONFIG_I2C_ALGOBIT dep_tristate ' Velleman K9000 adapter' CONFIG_I2C_VELLEMAN $CONFIG_I2C_ALGOBIT + dep_tristate ' NatSemi SCx200 I2C using GPIO pins' CONFIG_SCx200_I2C $CONFIG_SCx200 $CONFIG_I2C_ALGOBIT + if [ "$CONFIG_SCx200_I2C" != "n" ]; then + int ' GPIO pin used for SCL' CONFIG_SCx200_I2C_SCL 12 + int ' GPIO pin used for SDA' CONFIG_SCx200_I2C_SDA 13 + fi + dep_tristate ' NatSemi SCx200 ACCESS.bus' CONFIG_SCx200_ACB $CONFIG_I2C fi dep_tristate 'I2C PCF 8584 interfaces' CONFIG_I2C_ALGOPCF $CONFIG_I2C
drivers/i2c/Makefile +2 -0
@@ -18,6 +18,8 @@ obj-$(CONFIG_ITE_I2C_ALGO) += i2c-algo-ite.o obj-$(CONFIG_ITE_I2C_ADAP) += i2c-adap-ite.o obj-$(CONFIG_I2C_PROC) += i2c-proc.o +obj-$(CONFIG_SCx200_I2C) += scx200_i2c.o +obj-$(CONFIG_SCx200_ACB) += scx200_acb.o obj-$(CONFIG_I2C_KEYWEST) += i2c-keywest.o # This is needed for automatic patch generation: sensors code starts here
drivers/i2c/scx200_acb.c new file +579 -0
579 lines not on this page · raw message
drivers/i2c/scx200_i2c.c new file +156 -0
156 lines not on this page · raw message
drivers/mtd/maps/Config.in +1 -0
@@ -30,6 +30,7 @@ dep_tristate ' JEDEC Flash device mapped on Mixcom piggyback card' CONFIG_MTD_MIXMEM $CONFIG_MTD_JEDEC dep_tristate ' JEDEC Flash device mapped on Octagon 5066 SBC' CONFIG_MTD_OCTAGON $CONFIG_MTD_JEDEC dep_tristate ' JEDEC Flash device mapped on Tempustech VMAX SBC301' CONFIG_MTD_VMAX $CONFIG_MTD_JEDEC + dep_tristate ' Flash device mapped with DOCCS on NatSemi SCx200' CONFIG_MTD_SCx200_DOCFLASH $CONFIG_MTD_CFI dep_tristate ' BIOS flash chip on Intel L440GX boards' CONFIG_MTD_L440GX $CONFIG_MTD_JEDECPROBE dep_tristate ' ROM connected to AMD766 southbridge' CONFIG_MTD_AMD766ROM $CONFIG_MTD_GEN_PROBE dep_tristate ' ROM connected to Intel Hub Controller 2' CONFIG_MTD_ICH2ROM $CONFIG_MTD_JEDECPROBE
drivers/mtd/maps/Makefile +1 -0
@@ -32,6 +32,7 @@ obj-$(CONFIG_MTD_NETSC520) += netsc520.o obj-$(CONFIG_MTD_SUN_UFLASH) += sun_uflash.o obj-$(CONFIG_MTD_VMAX) += vmax301.o +obj-$(CONFIG_MTD_SCx200_DOCFLASH)+= scx200_docflash.o obj-$(CONFIG_MTD_DBOX2) += dbox2-flash.o obj-$(CONFIG_MTD_OCELOT) += ocelot.o obj-$(CONFIG_MTD_SOLUTIONENGINE)+= solutionengine.o
drivers/mtd/maps/scx200_docflash.c new file +268 -0
268 lines not on this page · raw message
include/linux/pci_ids.h +6 -0
@@ -288,6 +288,12 @@#define PCI_DEVICE_ID_NS_87560_USB 0x0012#define PCI_DEVICE_ID_NS_83815 0x0020#define PCI_DEVICE_ID_NS_83820 0x0022 +#define PCI_DEVICE_ID_NS_SCx200_BRIDGE 0x0500 +#define PCI_DEVICE_ID_NS_SCx200_SMI 0x0501 +#define PCI_DEVICE_ID_NS_SCx200_IDE 0x0502 +#define PCI_DEVICE_ID_NS_SCx200_AUDIO 0x0503 +#define PCI_DEVICE_ID_NS_SCx200_VIDEO 0x0504 +#define PCI_DEVICE_ID_NS_SCx200_XBUS 0x0505#define PCI_DEVICE_ID_NS_87410 0xd001#define PCI_VENDOR_ID_TSENG 0x100c
include/linux/scx200.h new file +56 -0
56 lines not on this page · raw message
include/linux/scx200_gpio.h new file +98 -0
98 lines not on this page · raw message
Signature · 5 lines
-- "Just how much can I get away with and still go to heaven?" Freelance consultant specializing in device driver programming for Linux Christer Weinigel <[email protected]> http://www.weinigel.se