--- /dev/null
+diff --git a/MAINTAINERS b/MAINTAINERS
+index 9c54a5e..f88d691 100644
+--- a/MAINTAINERS
++++ b/MAINTAINERS
+@@ -3026,6 +3026,13 @@ L: linux-wireless@vger.kernel.org
+ W: http://prism54.org
+ S: Maintained
+
++ADM8211 WIRELESS DRIVER
++P: Michael Wu
++M: flamingice@sourmilk.net
++L: netdev@vger.kernel.org
++W: http://aluminum.sourmilk.net/adm8211/netdev/
++S: Maintained
++
+ PROMISE DC4030 CACHING DISK CONTROLLER DRIVER
+ P: Peter Denison
+ M: promise@pnd-pc.demon.co.uk
+diff --git a/arch/i386/Kconfig b/arch/i386/Kconfig
+index 97b64d7..92ceab7 100644
+--- a/arch/i386/Kconfig
++++ b/arch/i386/Kconfig
+@@ -796,6 +796,15 @@ config SECCOMP
+
+ If unsure, say Y. Only embedded should say N here.
+
++config VGA_NOPROBE
++ bool "Don't probe VGA at boot" if EMBEDDED
++ default n
++ help
++ Saying Y here will cause the kernel to not probe VGA at boot time.
++ This will break everything that depends on the probed screen
++ data. Say N here unless you are absolutely sure this is what you
++ want.
++
+ source kernel/Kconfig.hz
+
+ config KEXEC
+@@ -1120,6 +1129,9 @@ config PCI_GODIRECT
+ config PCI_GOANY
+ bool "Any"
+
++config PCI_GOOLPC
++ bool "OLPC"
++
+ endchoice
+
+ config PCI_BIOS
+@@ -1129,7 +1141,7 @@ config PCI_BIOS
+
+ config PCI_DIRECT
+ bool
+- depends on PCI && ((PCI_GODIRECT || PCI_GOANY) || X86_VISWS)
++ depends on PCI && ((PCI_GODIRECT || PCI_GOANY || PCI_GOOLPC) || X86_VISWS)
+ default y
+
+ config PCI_MMCONFIG
+@@ -1137,6 +1149,11 @@ config PCI_MMCONFIG
+ depends on PCI && ACPI && (PCI_GOMMCONFIG || PCI_GOANY)
+ default y
+
++config PCI_OLPC
++ bool
++ depends on PCI && PCI_GOOLPC
++ default y
++
+ source "drivers/pci/pcie/Kconfig"
+
+ source "drivers/pci/Kconfig"
+@@ -1206,10 +1223,43 @@ config SCx200HR_TIMER
+ processor goes idle (as is done by the scheduler). The
+ other workaround is idle=poll boot option.
+
++config GEODE_MFGPT_TIMER
++ bool "Geode Multi-Function General Purpose Timer (mfgpt) Support"
++ depends on MGEODE_LX && GENERIC_TIME && GENERIC_CLOCKEVENTS
++ default y
++ help
++ This driver provides a clock event source based on the MFGPT
++ timer(s) in the CS5535 and CS5536 companion chip for the geode.
++ MFGPTs have a better resolution and max interval than the
++ generic PIT, and are suitable for use as high-res timers.
++
+ config K8_NB
+ def_bool y
+ depends on AGP_AMD64
+
++config OLPC
++ bool "OLPC Support"
++ default n
++ help
++ Add support for detecting the unique features of the OLPC
++ Childrens Machine
++
++config OLPC_PM
++ tristate "OLPC power management support"
++ default y
++ depends on OLPC
++ help
++ Add support for the Geode power management facilities on the
++ OLPC Childrens Machine
++
++config OPEN_FIRMWARE
++ bool "Support for Open Firmware"
++ default y if OLPC
++ help
++ This option adds support for the implementation of Open Firmware
++ that is used on the OLPC Children's Machine.
++ If unsure, say N here.
++
+ source "drivers/pcmcia/Kconfig"
+
+ source "drivers/pci/hotplug/Kconfig"
+diff --git a/arch/i386/boot/setup.S b/arch/i386/boot/setup.S
+new file mode 100644
+index 0000000..4cf6e23
+--- /dev/null
++++ b/arch/i386/boot/setup.S
+@@ -0,0 +1,1080 @@
++/*
++ * setup.S Copyright (C) 1991, 1992 Linus Torvalds
++ *
++ * setup.s is responsible for getting the system data from the BIOS,
++ * and putting them into the appropriate places in system memory.
++ * both setup.s and system has been loaded by the bootblock.
++ *
++ * This code asks the bios for memory/disk/other parameters, and
++ * puts them in a "safe" place: 0x90000-0x901FF, ie where the
++ * boot-block used to be. It is then up to the protected mode
++ * system to read them from there before the area is overwritten
++ * for buffer-blocks.
++ *
++ * Move PS/2 aux init code to psaux.c
++ * (troyer@saifr00.cfsat.Honeywell.COM) 03Oct92
++ *
++ * some changes and additional features by Christoph Niemann,
++ * March 1993/June 1994 (Christoph.Niemann@linux.org)
++ *
++ * add APM BIOS checking by Stephen Rothwell, May 1994
++ * (sfr@canb.auug.org.au)
++ *
++ * High load stuff, initrd support and position independency
++ * by Hans Lermen & Werner Almesberger, February 1996
++ * <lermen@elserv.ffm.fgan.de>, <almesber@lrc.epfl.ch>
++ *
++ * Video handling moved to video.S by Martin Mares, March 1996
++ * <mj@k332.feld.cvut.cz>
++ *
++ * Extended memory detection scheme retwiddled by orc@pell.chi.il.us (david
++ * parsons) to avoid loadlin confusion, July 1997
++ *
++ * Transcribed from Intel (as86) -> AT&T (gas) by Chris Noe, May 1999.
++ * <stiker@northlink.com>
++ *
++ * Fix to work around buggy BIOSes which don't use carry bit correctly
++ * and/or report extended memory in CX/DX for e801h memory size detection
++ * call. As a result the kernel got wrong figures. The int15/e801h docs
++ * from Ralf Brown interrupt list seem to indicate AX/BX should be used
++ * anyway. So to avoid breaking many machines (presumably there was a reason
++ * to orginally use CX/DX instead of AX/BX), we do a kludge to see
++ * if CX/DX have been changed in the e801 call and if so use AX/BX .
++ * Michael Miller, April 2001 <michaelm@mjmm.org>
++ *
++ * New A20 code ported from SYSLINUX by H. Peter Anvin. AMD Elan bugfixes
++ * by Robert Schwebel, December 2001 <robert@schwebel.de>
++ */
++
++#include <asm/segment.h>
++#include <linux/utsrelease.h>
++#include <linux/compile.h>
++#include <asm/boot.h>
++#include <asm/e820.h>
++#include <asm/page.h>
++#include <asm/setup.h>
++
++/* Signature words to ensure LILO loaded us right */
++#define SIG1 0xAA55
++#define SIG2 0x5A5A
++
++INITSEG = DEF_INITSEG # 0x9000, we move boot here, out of the way
++SYSSEG = DEF_SYSSEG # 0x1000, system loaded at 0x10000 (65536).
++SETUPSEG = DEF_SETUPSEG # 0x9020, this is the current segment
++ # ... and the former contents of CS
++
++DELTA_INITSEG = SETUPSEG - INITSEG # 0x0020
++
++.code16
++.globl begtext, begdata, begbss, endtext, enddata, endbss
++
++.text
++begtext:
++.data
++begdata:
++.bss
++begbss:
++.text
++
++start:
++ jmp trampoline
++
++# This is the setup header, and it must start at %cs:2 (old 0x9020:2)
++
++ .ascii "HdrS" # header signature
++ .word 0x0206 # header version number (>= 0x0105)
++ # or else old loadlin-1.5 will fail)
++realmode_swtch: .word 0, 0 # default_switch, SETUPSEG
++start_sys_seg: .word SYSSEG
++ .word kernel_version # pointing to kernel version string
++ # above section of header is compatible
++ # with loadlin-1.5 (header v1.5). Don't
++ # change it.
++
++type_of_loader: .byte 0 # = 0, old one (LILO, Loadlin,
++ # Bootlin, SYSLX, bootsect...)
++ # See Documentation/i386/boot.txt for
++ # assigned ids
++
++# flags, unused bits must be zero (RFU) bit within loadflags
++loadflags:
++LOADED_HIGH = 1 # If set, the kernel is loaded high
++CAN_USE_HEAP = 0x80 # If set, the loader also has set
++ # heap_end_ptr to tell how much
++ # space behind setup.S can be used for
++ # heap purposes.
++ # Only the loader knows what is free
++#ifndef __BIG_KERNEL__
++ .byte 0
++#else
++ .byte LOADED_HIGH
++#endif
++
++setup_move_size: .word 0x8000 # size to move, when setup is not
++ # loaded at 0x90000. We will move setup
++ # to 0x90000 then just before jumping
++ # into the kernel. However, only the
++ # loader knows how much data behind
++ # us also needs to be loaded.
++
++code32_start: # here loaders can put a different
++ # start address for 32-bit code.
++#ifndef __BIG_KERNEL__
++ .long 0x1000 # 0x1000 = default for zImage
++#else
++ .long 0x100000 # 0x100000 = default for big kernel
++#endif
++
++ramdisk_image: .long 0 # address of loaded ramdisk image
++ # Here the loader puts the 32-bit
++ # address where it loaded the image.
++ # This only will be read by the kernel.
++
++ramdisk_size: .long 0 # its size in bytes
++
++bootsect_kludge:
++ .long 0 # obsolete
++
++heap_end_ptr: .word modelist+1024 # (Header version 0x0201 or later)
++ # space from here (exclusive) down to
++ # end of setup code can be used by setup
++ # for local heap purposes.
++
++pad1: .word 0
++cmd_line_ptr: .long 0 # (Header version 0x0202 or later)
++ # If nonzero, a 32-bit pointer
++ # to the kernel command line.
++ # The command line should be
++ # located between the start of
++ # setup and the end of low
++ # memory (0xa0000), or it may
++ # get overwritten before it
++ # gets read. If this field is
++ # used, there is no longer
++ # anything magical about the
++ # 0x90000 segment; the setup
++ # can be located anywhere in
++ # low memory 0x10000 or higher.
++
++ramdisk_max: .long (-__PAGE_OFFSET-(512 << 20)-1) & 0x7fffffff
++ # (Header version 0x0203 or later)
++ # The highest safe address for
++ # the contents of an initrd
++
++kernel_alignment: .long CONFIG_PHYSICAL_ALIGN #physical addr alignment
++ #required for protected mode
++ #kernel
++#ifdef CONFIG_RELOCATABLE
++relocatable_kernel: .byte 1
++#else
++relocatable_kernel: .byte 0
++#endif
++pad2: .byte 0
++pad3: .word 0
++
++cmdline_size: .long COMMAND_LINE_SIZE-1 #length of the command line,
++ #added with boot protocol
++ #version 2.06
++
++trampoline: call start_of_setup
++ .align 16
++ # The offset at this point is 0x240
++ .space (0xeff-0x240+1) # E820 & EDD space (ending at 0xeff)
++# End of setup header #####################################################
++
++start_of_setup:
++# Bootlin depends on this being done early
++ movw $0x01500, %ax
++ movb $0x81, %dl
++ int $0x13
++
++#ifdef SAFE_RESET_DISK_CONTROLLER
++# Reset the disk controller.
++ movw $0x0000, %ax
++ movb $0x80, %dl
++ int $0x13
++#endif
++
++# Set %ds = %cs, we know that SETUPSEG = %cs at this point
++ movw %cs, %ax # aka SETUPSEG
++ movw %ax, %ds
++# Check signature at end of setup
++ cmpw $SIG1, setup_sig1
++ jne bad_sig
++
++ cmpw $SIG2, setup_sig2
++ jne bad_sig
++
++ jmp good_sig1
++
++# Routine to print asciiz string at ds:si
++prtstr:
++ lodsb
++ andb %al, %al
++ jz fin
++
++ call prtchr
++ jmp prtstr
++
++fin: ret
++
++# Space printing
++prtsp2: call prtspc # Print double space
++prtspc: movb $0x20, %al # Print single space (note: fall-thru)
++
++# Part of above routine, this one just prints ascii al
++prtchr: pushw %ax
++ pushw %cx
++ movw $7,%bx
++ movw $0x01, %cx
++ movb $0x0e, %ah
++ int $0x10
++ popw %cx
++ popw %ax
++ ret
++
++beep: movb $0x07, %al
++ jmp prtchr
++
++no_sig_mess: .string "No setup signature found ..."
++
++good_sig1:
++ jmp good_sig
++
++# We now have to find the rest of the setup code/data
++bad_sig:
++ movw %cs, %ax # SETUPSEG
++ subw $DELTA_INITSEG, %ax # INITSEG
++ movw %ax, %ds
++ xorb %bh, %bh
++ movb (497), %bl # get setup sect from bootsect
++ subw $4, %bx # LILO loads 4 sectors of setup
++ shlw $8, %bx # convert to words (1sect=2^8 words)
++ movw %bx, %cx
++ shrw $3, %bx # convert to segment
++ addw $SYSSEG, %bx
++ movw %bx, %cs:start_sys_seg
++# Move rest of setup code/data to here
++ movw $2048, %di # four sectors loaded by LILO
++ subw %si, %si
++ pushw %cs
++ popw %es
++ movw $SYSSEG, %ax
++ movw %ax, %ds
++ rep
++ movsw
++ movw %cs, %ax # aka SETUPSEG
++ movw %ax, %ds
++ cmpw $SIG1, setup_sig1
++ jne no_sig
++
++ cmpw $SIG2, setup_sig2
++ jne no_sig
++
++ jmp good_sig
++
++no_sig:
++ lea no_sig_mess, %si
++ call prtstr
++
++no_sig_loop:
++ hlt
++ jmp no_sig_loop
++
++good_sig:
++ movw %cs, %ax # aka SETUPSEG
++ subw $DELTA_INITSEG, %ax # aka INITSEG
++ movw %ax, %ds
++# Check if an old loader tries to load a big-kernel
++ testb $LOADED_HIGH, %cs:loadflags # Do we have a big kernel?
++ jz loader_ok # No, no danger for old loaders.
++
++ cmpb $0, %cs:type_of_loader # Do we have a loader that
++ # can deal with us?
++ jnz loader_ok # Yes, continue.
++
++ pushw %cs # No, we have an old loader,
++ popw %ds # die.
++ lea loader_panic_mess, %si
++ call prtstr
++
++ jmp no_sig_loop
++
++loader_panic_mess: .string "Wrong loader, giving up..."
++
++# check minimum cpuid
++# we do this here because it is the last place we can actually
++# show a user visible error message. Later the video modus
++# might be already messed up.
++loader_ok:
++ call verify_cpu
++ testl %eax,%eax
++ jz cpu_ok
++ movw %cs,%ax # aka SETUPSEG
++ movw %ax,%ds
++ lea cpu_panic_mess,%si
++ call prtstr
++1: jmp 1b
++
++cpu_panic_mess:
++ .asciz "PANIC: CPU too old for this kernel."
++
++#include "../kernel/verify_cpu.S"
++
++cpu_ok:
++# Get memory size (extended mem, kB)
++
++ xorl %eax, %eax
++ movl %eax, (0x1e0)
++#ifndef STANDARD_MEMORY_BIOS_CALL
++ movb %al, (E820NR)
++# Try three different memory detection schemes. First, try
++# e820h, which lets us assemble a memory map, then try e801h,
++# which returns a 32-bit memory size, and finally 88h, which
++# returns 0-64m
++
++# method E820H:
++# the memory map from hell. e820h returns memory classified into
++# a whole bunch of different types, and allows memory holes and
++# everything. We scan through this memory map and build a list
++# of the first 32 memory areas, which we return at [E820MAP].
++# This is documented at http://www.acpi.info/, in the ACPI 2.0 specification.
++
++#define SMAP 0x534d4150
++
++meme820:
++ xorl %ebx, %ebx # continuation counter
++ movw $E820MAP, %di # point into the whitelist
++ # so we can have the bios
++ # directly write into it.
++
++jmpe820:
++ movl $0x0000e820, %eax # e820, upper word zeroed
++ movl $SMAP, %edx # ascii 'SMAP'
++ movl $20, %ecx # size of the e820rec
++ pushw %ds # data record.
++ popw %es
++ int $0x15 # make the call
++ jc bail820 # fall to e801 if it fails
++
++ cmpl $SMAP, %eax # check the return is `SMAP'
++ jne bail820 # fall to e801 if it fails
++
++# cmpl $1, 16(%di) # is this usable memory?
++# jne again820
++
++ # If this is usable memory, we save it by simply advancing %di by
++ # sizeof(e820rec).
++ #
++good820:
++ movb (E820NR), %al # up to 128 entries
++ cmpb $E820MAX, %al
++ jae bail820
++
++ incb (E820NR)
++ movw %di, %ax
++ addw $20, %ax
++ movw %ax, %di
++again820:
++ cmpl $0, %ebx # check to see if
++ jne jmpe820 # %ebx is set to EOF
++bail820:
++
++
++# method E801H:
++# memory size is in 1k chunksizes, to avoid confusing loadlin.
++# we store the 0xe801 memory size in a completely different place,
++# because it will most likely be longer than 16 bits.
++# (use 1e0 because that's what Larry Augustine uses in his
++# alternative new memory detection scheme, and it's sensible
++# to write everything into the same place.)
++
++meme801:
++ stc # fix to work around buggy
++ xorw %cx,%cx # BIOSes which don't clear/set
++ xorw %dx,%dx # carry on pass/error of
++ # e801h memory size call
++ # or merely pass cx,dx though
++ # without changing them.
++ movw $0xe801, %ax
++ int $0x15
++ jc mem88
++
++ cmpw $0x0, %cx # Kludge to handle BIOSes
++ jne e801usecxdx # which report their extended
++ cmpw $0x0, %dx # memory in AX/BX rather than
++ jne e801usecxdx # CX/DX. The spec I have read
++ movw %ax, %cx # seems to indicate AX/BX
++ movw %bx, %dx # are more reasonable anyway...
++
++e801usecxdx:
++ andl $0xffff, %edx # clear sign extend
++ shll $6, %edx # and go from 64k to 1k chunks
++ movl %edx, (0x1e0) # store extended memory size
++ andl $0xffff, %ecx # clear sign extend
++ addl %ecx, (0x1e0) # and add lower memory into
++ # total size.
++
++# Ye Olde Traditional Methode. Returns the memory size (up to 16mb or
++# 64mb, depending on the bios) in ax.
++mem88:
++
++#endif
++ movb $0x88, %ah
++ int $0x15
++ movw %ax, (2)
++
++# Set the keyboard repeat rate to the max
++ movw $0x0305, %ax
++ xorw %bx, %bx
++ int $0x16
++
++#ifndef CONFIG_VGA_NOPROBE
++
++# Check for video adapter and its parameters and allow the
++# user to browse video modes.
++ call video # NOTE: we need %ds pointing
++ # to bootsector
++#endif
++
++# Get hd0 data...
++ xorw %ax, %ax
++ movw %ax, %ds
++ ldsw (4 * 0x41), %si
++ movw %cs, %ax # aka SETUPSEG
++ subw $DELTA_INITSEG, %ax # aka INITSEG
++ pushw %ax
++ movw %ax, %es
++ movw $0x0080, %di
++ movw $0x10, %cx
++ pushw %cx
++ cld
++ rep
++ movsb
++# Get hd1 data...
++ xorw %ax, %ax
++ movw %ax, %ds
++ ldsw (4 * 0x46), %si
++ popw %cx
++ popw %es
++ movw $0x0090, %di
++ rep
++ movsb
++# Check that there IS a hd1 :-)
++ movw $0x01500, %ax
++ movb $0x81, %dl
++ int $0x13
++ jc no_disk1
++
++ cmpb $3, %ah
++ je is_disk1
++
++no_disk1:
++ movw %cs, %ax # aka SETUPSEG
++ subw $DELTA_INITSEG, %ax # aka INITSEG
++ movw %ax, %es
++ movw $0x0090, %di
++ movw $0x10, %cx
++ xorw %ax, %ax
++ cld
++ rep
++ stosb
++is_disk1:
++# check for Micro Channel (MCA) bus
++ movw %cs, %ax # aka SETUPSEG
++ subw $DELTA_INITSEG, %ax # aka INITSEG
++ movw %ax, %ds
++ xorw %ax, %ax
++ movw %ax, (0xa0) # set table length to 0
++ movb $0xc0, %ah
++ stc
++ int $0x15 # moves feature table to es:bx
++ jc no_mca
++
++ pushw %ds
++ movw %es, %ax
++ movw %ax, %ds
++ movw %cs, %ax # aka SETUPSEG
++ subw $DELTA_INITSEG, %ax # aka INITSEG
++ movw %ax, %es
++ movw %bx, %si
++ movw $0xa0, %di
++ movw (%si), %cx
++ addw $2, %cx # table length is a short
++ cmpw $0x10, %cx
++ jc sysdesc_ok
++
++ movw $0x10, %cx # we keep only first 16 bytes
++sysdesc_ok:
++ rep
++ movsb
++ popw %ds
++no_mca:
++#ifdef CONFIG_X86_VOYAGER
++ movb $0xff, 0x40 # flag on config found
++ movb $0xc0, %al
++ mov $0xff, %ah
++ int $0x15 # put voyager config info at es:di
++ jc no_voyager
++ movw $0x40, %si # place voyager info in apm table
++ cld
++ movw $7, %cx
++voyager_rep:
++ movb %es:(%di), %al
++ movb %al,(%si)
++ incw %di
++ incw %si
++ decw %cx
++ jnz voyager_rep
++no_voyager:
++#endif
++# Check for PS/2 pointing device
++ movw %cs, %ax # aka SETUPSEG
++ subw $DELTA_INITSEG, %ax # aka INITSEG
++ movw %ax, %ds
++ movb $0, (0x1ff) # default is no pointing device
++ int $0x11 # int 0x11: equipment list
++ testb $0x04, %al # check if mouse installed
++ jz no_psmouse
++
++ movb $0xAA, (0x1ff) # device present
++no_psmouse:
++
++#if defined(CONFIG_X86_SPEEDSTEP_SMI) || defined(CONFIG_X86_SPEEDSTEP_SMI_MODULE)
++ movl $0x0000E980, %eax # IST Support
++ movl $0x47534943, %edx # Request value
++ int $0x15
++
++ movl %eax, (96)
++ movl %ebx, (100)
++ movl %ecx, (104)
++ movl %edx, (108)
++#endif
++
++#if defined(CONFIG_APM) || defined(CONFIG_APM_MODULE)
++# Then check for an APM BIOS...
++ # %ds points to the bootsector
++ movw $0, 0x40 # version = 0 means no APM BIOS
++ movw $0x05300, %ax # APM BIOS installation check
++ xorw %bx, %bx
++ int $0x15
++ jc done_apm_bios # Nope, no APM BIOS
++
++ cmpw $0x0504d, %bx # Check for "PM" signature
++ jne done_apm_bios # No signature, no APM BIOS
++
++ andw $0x02, %cx # Is 32 bit supported?
++ je done_apm_bios # No 32-bit, no (good) APM BIOS
++
++ movw $0x05304, %ax # Disconnect first just in case
++ xorw %bx, %bx
++ int $0x15 # ignore return code
++ movw $0x05303, %ax # 32 bit connect
++ xorl %ebx, %ebx
++ xorw %cx, %cx # paranoia :-)
++ xorw %dx, %dx # ...
++ xorl %esi, %esi # ...
++ xorw %di, %di # ...
++ int $0x15
++ jc no_32_apm_bios # Ack, error.
++
++ movw %ax, (66) # BIOS code segment
++ movl %ebx, (68) # BIOS entry point offset
++ movw %cx, (72) # BIOS 16 bit code segment
++ movw %dx, (74) # BIOS data segment
++ movl %esi, (78) # BIOS code segment lengths
++ movw %di, (82) # BIOS data segment length
++# Redo the installation check as the 32 bit connect
++# modifies the flags returned on some BIOSs
++ movw $0x05300, %ax # APM BIOS installation check
++ xorw %bx, %bx
++ xorw %cx, %cx # paranoia
++ int $0x15
++ jc apm_disconnect # error -> shouldn't happen
++
++ cmpw $0x0504d, %bx # check for "PM" signature
++ jne apm_disconnect # no sig -> shouldn't happen
++
++ movw %ax, (64) # record the APM BIOS version
++ movw %cx, (76) # and flags
++ jmp done_apm_bios
++
++apm_disconnect: # Tidy up
++ movw $0x05304, %ax # Disconnect
++ xorw %bx, %bx
++ int $0x15 # ignore return code
++
++ jmp done_apm_bios
++
++no_32_apm_bios:
++ andw $0xfffd, (76) # remove 32 bit support bit
++done_apm_bios:
++#endif
++
++#include "edd.S"
++
++# Now we want to move to protected mode ...
++ cmpw $0, %cs:realmode_swtch
++ jz rmodeswtch_normal
++
++ lcall *%cs:realmode_swtch
++
++ jmp rmodeswtch_end
++
++rmodeswtch_normal:
++ pushw %cs
++ call default_switch
++
++rmodeswtch_end:
++# Now we move the system to its rightful place ... but we check if we have a
++# big-kernel. In that case we *must* not move it ...
++ testb $LOADED_HIGH, %cs:loadflags
++ jz do_move0 # .. then we have a normal low
++ # loaded zImage
++ # .. or else we have a high
++ # loaded bzImage
++ jmp end_move # ... and we skip moving
++
++do_move0:
++ movw $0x100, %ax # start of destination segment
++ movw %cs, %bp # aka SETUPSEG
++ subw $DELTA_INITSEG, %bp # aka INITSEG
++ movw %cs:start_sys_seg, %bx # start of source segment
++ cld
++do_move:
++ movw %ax, %es # destination segment
++ incb %ah # instead of add ax,#0x100
++ movw %bx, %ds # source segment
++ addw $0x100, %bx
++ subw %di, %di
++ subw %si, %si
++ movw $0x800, %cx
++ rep
++ movsw
++ cmpw %bp, %bx # assume start_sys_seg > 0x200,
++ # so we will perhaps read one
++ # page more than needed, but
++ # never overwrite INITSEG
++ # because destination is a
++ # minimum one page below source
++ jb do_move
++
++end_move:
++# then we load the segment descriptors
++ movw %cs, %ax # aka SETUPSEG
++ movw %ax, %ds
++
++# Check whether we need to be downward compatible with version <=201
++ cmpl $0, cmd_line_ptr
++ jne end_move_self # loader uses version >=202 features
++ cmpb $0x20, type_of_loader
++ je end_move_self # bootsect loader, we know of it
++
++# Boot loader doesnt support boot protocol version 2.02.
++# If we have our code not at 0x90000, we need to move it there now.
++# We also then need to move the params behind it (commandline)
++# Because we would overwrite the code on the current IP, we move
++# it in two steps, jumping high after the first one.
++ movw %cs, %ax
++ cmpw $SETUPSEG, %ax
++ je end_move_self
++
++ cli # make sure we really have
++ # interrupts disabled !
++ # because after this the stack
++ # should not be used
++ subw $DELTA_INITSEG, %ax # aka INITSEG
++ movw %ss, %dx
++ cmpw %ax, %dx
++ jb move_self_1
++
++ addw $INITSEG, %dx
++ subw %ax, %dx # this will go into %ss after
++ # the move
++move_self_1:
++ movw %ax, %ds
++ movw $INITSEG, %ax # real INITSEG
++ movw %ax, %es
++ movw %cs:setup_move_size, %cx
++ std # we have to move up, so we use
++ # direction down because the
++ # areas may overlap
++ movw %cx, %di
++ decw %di
++ movw %di, %si
++ subw $move_self_here+0x200, %cx
++ rep
++ movsb
++ ljmp $SETUPSEG, $move_self_here
++
++move_self_here:
++ movw $move_self_here+0x200, %cx
++ rep
++ movsb
++ movw $SETUPSEG, %ax
++ movw %ax, %ds
++ movw %dx, %ss
++end_move_self: # now we are at the right place
++
++#
++# Enable A20. This is at the very best an annoying procedure.
++# A20 code ported from SYSLINUX 1.52-1.63 by H. Peter Anvin.
++# AMD Elan bug fix by Robert Schwebel.
++#
++
++#if defined(CONFIG_X86_ELAN)
++ movb $0x02, %al # alternate A20 gate
++ outb %al, $0x92 # this works on SC410/SC520
++a20_elan_wait:
++ call a20_test
++ jz a20_elan_wait
++ jmp a20_done
++#endif
++
++
++A20_TEST_LOOPS = 32 # Iterations per wait
++A20_ENABLE_LOOPS = 255 # Total loops to try
++
++
++#ifndef CONFIG_X86_VOYAGER
++a20_try_loop:
++
++ # First, see if we are on a system with no A20 gate.
++a20_none:
++ call a20_test
++ jnz a20_done
++
++ # Next, try the BIOS (INT 0x15, AX=0x2401)
++a20_bios:
++ movw $0x2401, %ax
++ pushfl # Be paranoid about flags
++ int $0x15
++ popfl
++
++ call a20_test
++ jnz a20_done
++
++ # Try enabling A20 through the keyboard controller
++#endif /* CONFIG_X86_VOYAGER */
++a20_kbc:
++ call empty_8042
++
++#ifndef CONFIG_X86_VOYAGER
++ call a20_test # Just in case the BIOS worked
++ jnz a20_done # but had a delayed reaction.
++#endif
++
++ movb $0xD1, %al # command write
++ outb %al, $0x64
++ call empty_8042
++
++ movb $0xDF, %al # A20 on
++ outb %al, $0x60
++ call empty_8042
++
++#ifndef CONFIG_X86_VOYAGER
++ # Wait until a20 really *is* enabled; it can take a fair amount of
++ # time on certain systems; Toshiba Tecras are known to have this
++ # problem.
++a20_kbc_wait:
++ xorw %cx, %cx
++a20_kbc_wait_loop:
++ call a20_test
++ jnz a20_done
++ loop a20_kbc_wait_loop
++
++ # Final attempt: use "configuration port A"
++a20_fast:
++ inb $0x92, %al # Configuration Port A
++ orb $0x02, %al # "fast A20" version
++ andb $0xFE, %al # don't accidentally reset
++ outb %al, $0x92
++
++ # Wait for configuration port A to take effect
++a20_fast_wait:
++ xorw %cx, %cx
++a20_fast_wait_loop:
++ call a20_test
++ jnz a20_done
++ loop a20_fast_wait_loop
++
++ # A20 is still not responding. Try frobbing it again.
++ #
++ decb (a20_tries)
++ jnz a20_try_loop
++
++ movw $a20_err_msg, %si
++ call prtstr
++
++a20_die:
++ hlt
++ jmp a20_die
++
++a20_tries:
++ .byte A20_ENABLE_LOOPS
++
++a20_err_msg:
++ .ascii "linux: fatal error: A20 gate not responding!"
++ .byte 13, 10, 0
++
++ # If we get here, all is good
++a20_done:
++
++#endif /* CONFIG_X86_VOYAGER */
++# set up gdt and idt and 32bit start address
++ lidt idt_48 # load idt with 0,0
++ xorl %eax, %eax # Compute gdt_base
++ movw %ds, %ax # (Convert %ds:gdt to a linear ptr)
++ shll $4, %eax
++ addl %eax, code32
++ addl $gdt, %eax
++ movl %eax, (gdt_48+2)
++ lgdt gdt_48 # load gdt with whatever is
++ # appropriate
++
++# make sure any possible coprocessor is properly reset..
++ xorw %ax, %ax
++ outb %al, $0xf0
++ call delay
++
++ outb %al, $0xf1
++ call delay
++
++# well, that went ok, I hope. Now we mask all interrupts - the rest
++# is done in init_IRQ().
++ movb $0xFF, %al # mask all interrupts for now
++ outb %al, $0xA1
++ call delay
++
++ movb $0xFB, %al # mask all irq's but irq2 which
++ outb %al, $0x21 # is cascaded
++
++# Well, that certainly wasn't fun :-(. Hopefully it works, and we don't
++# need no steenking BIOS anyway (except for the initial loading :-).
++# The BIOS-routine wants lots of unnecessary data, and it's less
++# "interesting" anyway. This is how REAL programmers do it.
++#
++# Well, now's the time to actually move into protected mode. To make
++# things as simple as possible, we do no register set-up or anything,
++# we let the gnu-compiled 32-bit programs do that. We just jump to
++# absolute address 0x1000 (or the loader supplied one),
++# in 32-bit protected mode.
++#
++# Note that the short jump isn't strictly needed, although there are
++# reasons why it might be a good idea. It won't hurt in any case.
++ movw $1, %ax # protected mode (PE) bit
++ lmsw %ax # This is it!
++ jmp flush_instr
++
++flush_instr:
++ xorw %bx, %bx # Flag to indicate a boot
++ xorl %esi, %esi # Pointer to real-mode code
++ movw %cs, %si
++ subw $DELTA_INITSEG, %si
++ shll $4, %esi # Convert to 32-bit pointer
++
++# jump to startup_32 in arch/i386/boot/compressed/head.S
++#
++# NOTE: For high loaded big kernels we need a
++# jmpi 0x100000,__BOOT_CS
++#
++# but we yet haven't reloaded the CS register, so the default size
++# of the target offset still is 16 bit.
++# However, using an operand prefix (0x66), the CPU will properly
++# take our 48 bit far pointer. (INTeL 80386 Programmer's Reference
++# Manual, Mixing 16-bit and 32-bit code, page 16-6)
++
++ .byte 0x66, 0xea # prefix + jmpi-opcode
++code32: .long startup_32 # will be set to %cs+startup_32
++ .word __BOOT_CS
++.code32
++startup_32:
++ movl $(__BOOT_DS), %eax
++ movl %eax, %ds
++ movl %eax, %es
++ movl %eax, %fs
++ movl %eax, %gs
++ movl %eax, %ss
++
++ xorl %eax, %eax
++1: incl %eax # check that A20 really IS enabled
++ movl %eax, 0x00000000 # loop forever if it isn't
++ cmpl %eax, 0x00100000
++ je 1b
++
++ # Jump to the 32bit entry point
++ jmpl *(code32_start - start + (DELTA_INITSEG << 4))(%esi)
++.code16
++
++# Here's a bunch of information about your current kernel..
++kernel_version: .ascii UTS_RELEASE
++ .ascii " ("
++ .ascii LINUX_COMPILE_BY
++ .ascii "@"
++ .ascii LINUX_COMPILE_HOST
++ .ascii ") "
++ .ascii UTS_VERSION
++ .byte 0
++
++# This is the default real mode switch routine.
++# to be called just before protected mode transition
++default_switch:
++ cli # no interrupts allowed !
++ movb $0x80, %al # disable NMI for bootup
++ # sequence
++ outb %al, $0x70
++ lret
++
++
++#ifndef CONFIG_X86_VOYAGER
++# This routine tests whether or not A20 is enabled. If so, it
++# exits with zf = 0.
++#
++# The memory address used, 0x200, is the int $0x80 vector, which
++# should be safe.
++
++A20_TEST_ADDR = 4*0x80
++
++a20_test:
++ pushw %cx
++ pushw %ax
++ xorw %cx, %cx
++ movw %cx, %fs # Low memory
++ decw %cx
++ movw %cx, %gs # High memory area
++ movw $A20_TEST_LOOPS, %cx
++ movw %fs:(A20_TEST_ADDR), %ax
++ pushw %ax
++a20_test_wait:
++ incw %ax
++ movw %ax, %fs:(A20_TEST_ADDR)
++ call delay # Serialize and make delay constant
++ cmpw %gs:(A20_TEST_ADDR+0x10), %ax
++ loope a20_test_wait
++
++ popw %fs:(A20_TEST_ADDR)
++ popw %ax
++ popw %cx
++ ret
++
++#endif /* CONFIG_X86_VOYAGER */
++
++# This routine checks that the keyboard command queue is empty
++# (after emptying the output buffers)
++#
++# Some machines have delusions that the keyboard buffer is always full
++# with no keyboard attached...
++#
++# If there is no keyboard controller, we will usually get 0xff
++# to all the reads. With each IO taking a microsecond and
++# a timeout of 100,000 iterations, this can take about half a
++# second ("delay" == outb to port 0x80). That should be ok,
++# and should also be plenty of time for a real keyboard controller
++# to empty.
++#
++
++empty_8042:
++ pushl %ecx
++ movl $100000, %ecx
++
++empty_8042_loop:
++ decl %ecx
++ jz empty_8042_end_loop
++
++ call delay
++
++ inb $0x64, %al # 8042 status port
++ testb $1, %al # output buffer?
++ jz no_output
++
++ call delay
++ inb $0x60, %al # read it
++ jmp empty_8042_loop
++
++no_output:
++ testb $2, %al # is input buffer full?
++ jnz empty_8042_loop # yes - loop
++empty_8042_end_loop:
++ popl %ecx
++ ret
++
++# Read the cmos clock. Return the seconds in al
++gettime:
++ pushw %cx
++ movb $0x02, %ah
++ int $0x1a
++ movb %dh, %al # %dh contains the seconds
++ andb $0x0f, %al
++ movb %dh, %ah
++ movb $0x04, %cl
++ shrb %cl, %ah
++ aad
++ popw %cx
++ ret
++
++# Delay is needed after doing I/O
++delay:
++ outb %al,$0x80
++ ret
++
++# Descriptor tables
++#
++# NOTE: The intel manual says gdt should be sixteen bytes aligned for
++# efficiency reasons. However, there are machines which are known not
++# to boot with misaligned GDTs, so alter this at your peril! If you alter
++# GDT_ENTRY_BOOT_CS (in asm/segment.h) remember to leave at least two
++# empty GDT entries (one for NULL and one reserved).
++#
++# NOTE: On some CPUs, the GDT must be 8 byte aligned. This is
++# true for the Voyager Quad CPU card which will not boot without
++# This directive. 16 byte aligment is recommended by intel.
++#
++ .align 16
++gdt:
++ .fill GDT_ENTRY_BOOT_CS,8,0
++
++ .word 0xFFFF # 4Gb - (0x100000*0x1000 = 4Gb)
++ .word 0 # base address = 0
++ .word 0x9A00 # code read/exec
++ .word 0x00CF # granularity = 4096, 386
++ # (+5th nibble of limit)
++
++ .word 0xFFFF # 4Gb - (0x100000*0x1000 = 4Gb)
++ .word 0 # base address = 0
++ .word 0x9200 # data read/write
++ .word 0x00CF # granularity = 4096, 386
++ # (+5th nibble of limit)
++gdt_end:
++ .align 4
++
++ .word 0 # alignment byte
++idt_48:
++ .word 0 # idt limit = 0
++ .word 0, 0 # idt base = 0L
++
++ .word 0 # alignment byte
++gdt_48:
++ .word gdt_end - gdt - 1 # gdt limit
++ .word 0, 0 # gdt base (filled in later)
++
++#ifndef CONFIG_VGA_NOPROBE
++# Include video setup & detection code
++
++#include "video.S"
++#endif
++
++# Setup signature -- must be last
++setup_sig1: .word SIG1
++setup_sig2: .word SIG2
++
++# After this point, there is some free space which is used by the video mode
++# handling code to store the temporary mode table (not used by the kernel).
++
++modelist:
++
++.text
++endtext:
++.data
++enddata:
++.bss
++endbss:
+diff --git a/arch/i386/configs/olpc_defconfig b/arch/i386/configs/olpc_defconfig
+new file mode 100644
+index 0000000..f1675e8
+--- /dev/null
++++ b/arch/i386/configs/olpc_defconfig
+@@ -0,0 +1,2183 @@
++#
++# Automatically generated make config: don't edit
++# Linux kernel version: 2.6.22-rc5
++# Wed Jun 20 08:26:53 2007
++#
++CONFIG_X86_32=y
++CONFIG_GENERIC_TIME=y
++CONFIG_CLOCKSOURCE_WATCHDOG=y
++CONFIG_GENERIC_CLOCKEVENTS=y
++CONFIG_LOCKDEP_SUPPORT=y
++CONFIG_STACKTRACE_SUPPORT=y
++CONFIG_SEMAPHORE_SLEEPERS=y
++CONFIG_X86=y
++CONFIG_MMU=y
++CONFIG_ZONE_DMA=y
++CONFIG_QUICKLIST=y
++CONFIG_GENERIC_ISA_DMA=y
++CONFIG_GENERIC_IOMAP=y
++CONFIG_GENERIC_BUG=y
++CONFIG_GENERIC_HWEIGHT=y
++CONFIG_ARCH_MAY_HAVE_PC_FDC=y
++CONFIG_DMI=y
++CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
++
++#
++# Code maturity level options
++#
++CONFIG_EXPERIMENTAL=y
++CONFIG_BROKEN_ON_SMP=y
++CONFIG_LOCK_KERNEL=y
++CONFIG_INIT_ENV_ARG_LIMIT=32
++
++#
++# General setup
++#
++CONFIG_LOCALVERSION=""
++# CONFIG_LOCALVERSION_AUTO is not set
++CONFIG_SWAP=y
++CONFIG_SYSVIPC=y
++# CONFIG_IPC_NS is not set
++CONFIG_SYSVIPC_SYSCTL=y
++CONFIG_POSIX_MQUEUE=y
++CONFIG_BSD_PROCESS_ACCT=y
++# CONFIG_BSD_PROCESS_ACCT_V3 is not set
++# CONFIG_TASKSTATS is not set
++# CONFIG_UTS_NS is not set
++CONFIG_AUDIT=y
++CONFIG_AUDITSYSCALL=y
++# CONFIG_IKCONFIG is not set
++CONFIG_LOG_BUF_SHIFT=17
++# CONFIG_SYSFS_DEPRECATED is not set
++CONFIG_RELAY=y
++CONFIG_BLK_DEV_INITRD=y
++CONFIG_INITRAMFS_SOURCE=""
++CONFIG_CC_OPTIMIZE_FOR_SIZE=y
++CONFIG_SYSCTL=y
++CONFIG_EMBEDDED=y
++CONFIG_UID16=y
++# CONFIG_SYSCTL_SYSCALL is not set
++CONFIG_KALLSYMS=y
++# CONFIG_KALLSYMS_ALL is not set
++CONFIG_KALLSYMS_EXTRA_PASS=y
++CONFIG_HOTPLUG=y
++CONFIG_PRINTK=y
++CONFIG_BUG=y
++CONFIG_ELF_CORE=y
++# CONFIG_BASE_FULL is not set
++CONFIG_FUTEX=y
++CONFIG_ANON_INODES=y
++CONFIG_EPOLL=y
++CONFIG_SIGNALFD=y
++CONFIG_TIMERFD=y
++CONFIG_EVENTFD=y
++CONFIG_SHMEM=y
++CONFIG_VM_EVENT_COUNTERS=y
++CONFIG_SLAB=y
++# CONFIG_SLUB is not set
++# CONFIG_SLOB is not set
++CONFIG_RT_MUTEXES=y
++# CONFIG_TINY_SHMEM is not set
++CONFIG_BASE_SMALL=1
++
++#
++# Loadable module support
++#
++CONFIG_MODULES=y
++CONFIG_MODULE_UNLOAD=y
++# CONFIG_MODULE_FORCE_UNLOAD is not set
++CONFIG_MODVERSIONS=y
++CONFIG_MODULE_SRCVERSION_ALL=y
++CONFIG_KMOD=y
++
++#
++# Block layer
++#
++CONFIG_BLOCK=y
++# CONFIG_LBD is not set
++# CONFIG_BLK_DEV_IO_TRACE is not set
++# CONFIG_LSF is not set
++
++#
++# IO Schedulers
++#
++CONFIG_IOSCHED_NOOP=y
++# CONFIG_IOSCHED_AS is not set
++# CONFIG_IOSCHED_DEADLINE is not set
++CONFIG_IOSCHED_CFQ=y
++# CONFIG_DEFAULT_AS is not set
++# CONFIG_DEFAULT_DEADLINE is not set
++CONFIG_DEFAULT_CFQ=y
++# CONFIG_DEFAULT_NOOP is not set
++CONFIG_DEFAULT_IOSCHED="cfq"
++
++#
++# Processor type and features
++#
++CONFIG_TICK_ONESHOT=y
++CONFIG_NO_HZ=y
++CONFIG_HIGH_RES_TIMERS=y
++# CONFIG_SMP is not set
++CONFIG_X86_PC=y
++# CONFIG_X86_ELAN is not set
++# CONFIG_X86_VOYAGER is not set
++# CONFIG_X86_NUMAQ is not set
++# CONFIG_X86_SUMMIT is not set
++# CONFIG_X86_BIGSMP is not set
++# CONFIG_X86_VISWS is not set
++# CONFIG_X86_GENERICARCH is not set
++# CONFIG_X86_ES7000 is not set
++# CONFIG_PARAVIRT is not set
++# CONFIG_M386 is not set
++# CONFIG_M486 is not set
++# CONFIG_M586 is not set
++# CONFIG_M586TSC is not set
++# CONFIG_M586MMX is not set
++# CONFIG_M686 is not set
++# CONFIG_MPENTIUMII is not set
++# CONFIG_MPENTIUMIII is not set
++# CONFIG_MPENTIUMM is not set
++# CONFIG_MCORE2 is not set
++# CONFIG_MPENTIUM4 is not set
++# CONFIG_MK6 is not set
++# CONFIG_MK7 is not set
++# CONFIG_MK8 is not set
++# CONFIG_MCRUSOE is not set
++# CONFIG_MEFFICEON is not set
++# CONFIG_MWINCHIPC6 is not set
++# CONFIG_MWINCHIP2 is not set
++# CONFIG_MWINCHIP3D is not set
++# CONFIG_MGEODEGX1 is not set
++CONFIG_MGEODE_LX=y
++# CONFIG_MCYRIXIII is not set
++# CONFIG_MVIAC3_2 is not set
++# CONFIG_MVIAC7 is not set
++# CONFIG_X86_GENERIC is not set
++CONFIG_X86_CMPXCHG=y
++CONFIG_X86_L1_CACHE_SHIFT=5
++CONFIG_X86_XADD=y
++CONFIG_RWSEM_XCHGADD_ALGORITHM=y
++# CONFIG_ARCH_HAS_ILOG2_U32 is not set
++# CONFIG_ARCH_HAS_ILOG2_U64 is not set
++CONFIG_GENERIC_CALIBRATE_DELAY=y
++CONFIG_X86_WP_WORKS_OK=y
++CONFIG_X86_INVLPG=y
++CONFIG_X86_BSWAP=y
++CONFIG_X86_POPAD_OK=y
++CONFIG_X86_USE_PPRO_CHECKSUM=y
++CONFIG_X86_USE_3DNOW=y
++CONFIG_X86_TSC=y
++CONFIG_X86_MINIMUM_CPU_MODEL=4
++# CONFIG_HPET_TIMER is not set
++# CONFIG_PREEMPT_NONE is not set
++# CONFIG_PREEMPT_VOLUNTARY is not set
++CONFIG_PREEMPT=y
++CONFIG_PREEMPT_BKL=y
++# CONFIG_X86_UP_APIC is not set
++# CONFIG_X86_MCE is not set
++# CONFIG_VM86 is not set
++# CONFIG_TOSHIBA is not set
++# CONFIG_I8K is not set
++CONFIG_X86_REBOOTFIXUPS=y
++# CONFIG_MICROCODE is not set
++CONFIG_X86_MSR=y
++CONFIG_X86_CPUID=m
++
++#
++# Firmware Drivers
++#
++# CONFIG_EDD is not set
++# CONFIG_DELL_RBU is not set
++# CONFIG_DCDBAS is not set
++CONFIG_NOHIGHMEM=y
++# CONFIG_HIGHMEM4G is not set
++# CONFIG_HIGHMEM64G is not set
++CONFIG_VMSPLIT_3G=y
++# CONFIG_VMSPLIT_3G_OPT is not set
++# CONFIG_VMSPLIT_2G is not set
++# CONFIG_VMSPLIT_2G_OPT is not set
++# CONFIG_VMSPLIT_1G is not set
++CONFIG_PAGE_OFFSET=0xC0000000
++CONFIG_ARCH_FLATMEM_ENABLE=y
++CONFIG_ARCH_SPARSEMEM_ENABLE=y
++CONFIG_ARCH_SELECT_MEMORY_MODEL=y
++CONFIG_ARCH_POPULATES_NODE_MAP=y
++CONFIG_SELECT_MEMORY_MODEL=y
++CONFIG_FLATMEM_MANUAL=y
++# CONFIG_DISCONTIGMEM_MANUAL is not set
++# CONFIG_SPARSEMEM_MANUAL is not set
++CONFIG_FLATMEM=y
++CONFIG_FLAT_NODE_MEM_MAP=y
++CONFIG_SPARSEMEM_STATIC=y
++CONFIG_SPLIT_PTLOCK_CPUS=4
++# CONFIG_RESOURCES_64BIT is not set
++CONFIG_ZONE_DMA_FLAG=1
++CONFIG_NR_QUICK=1
++# CONFIG_MATH_EMULATION is not set
++# CONFIG_MTRR is not set
++# CONFIG_SECCOMP is not set
++# CONFIG_VGA_NOPROBE is not set
++CONFIG_HZ_100=y
++# CONFIG_HZ_250 is not set
++# CONFIG_HZ_300 is not set
++# CONFIG_HZ_1000 is not set
++CONFIG_HZ=100
++CONFIG_KEXEC=y
++CONFIG_PHYSICAL_START=0x400000
++# CONFIG_RELOCATABLE is not set
++CONFIG_PHYSICAL_ALIGN=0x100000
++# CONFIG_COMPAT_VDSO is not set
++
++#
++# Power management options (ACPI, APM)
++#
++CONFIG_PM=y
++CONFIG_PM_LEGACY=y
++CONFIG_PM_DEBUG=y
++CONFIG_DISABLE_SUSPEND_VT_SWITCH=y
++# CONFIG_PM_TRACE is not set
++# CONFIG_PM_SYSFS_DEPRECATED is not set
++CONFIG_SOFTWARE_SUSPEND=y
++CONFIG_PM_STD_PARTITION=""
++
++#
++# ACPI (Advanced Configuration and Power Interface) Support
++#
++# CONFIG_ACPI is not set
++# CONFIG_APM is not set
++
++#
++# CPU Frequency scaling
++#
++# CONFIG_CPU_FREQ is not set
++
++#
++# Bus options (PCI, PCMCIA, EISA, MCA, ISA)
++#
++CONFIG_PCI=y
++# CONFIG_PCI_GOBIOS is not set
++# CONFIG_PCI_GOMMCONFIG is not set
++# CONFIG_PCI_GODIRECT is not set
++# CONFIG_PCI_GOANY is not set
++CONFIG_PCI_GOOLPC=y
++CONFIG_PCI_DIRECT=y
++CONFIG_PCI_OLPC=y
++# CONFIG_PCIEPORTBUS is not set
++# CONFIG_ARCH_SUPPORTS_MSI is not set
++# CONFIG_PCI_DEBUG is not set
++CONFIG_ISA_DMA_API=y
++# CONFIG_ISA is not set
++# CONFIG_MCA is not set
++# CONFIG_SCx200 is not set
++CONFIG_GEODE_MFGPT_TIMER=y
++CONFIG_OLPC=y
++CONFIG_OLPC_PM=y
++CONFIG_OPEN_FIRMWARE=y
++
++#
++# PCCARD (PCMCIA/CardBus) support
++#
++# CONFIG_PCCARD is not set
++# CONFIG_HOTPLUG_PCI is not set
++
++#
++# Executable file formats
++#
++CONFIG_BINFMT_ELF=y
++# CONFIG_BINFMT_AOUT is not set
++CONFIG_BINFMT_MISC=y
++
++#
++# Networking
++#
++CONFIG_NET=y
++
++#
++# Networking options
++#
++CONFIG_PACKET=y
++CONFIG_PACKET_MMAP=y
++CONFIG_UNIX=y
++CONFIG_XFRM=y
++CONFIG_XFRM_USER=y
++# CONFIG_XFRM_SUB_POLICY is not set
++CONFIG_XFRM_MIGRATE=y
++CONFIG_NET_KEY=m
++CONFIG_NET_KEY_MIGRATE=y
++CONFIG_INET=y
++CONFIG_IP_MULTICAST=y
++CONFIG_IP_ADVANCED_ROUTER=y
++CONFIG_ASK_IP_FIB_HASH=y
++# CONFIG_IP_FIB_TRIE is not set
++CONFIG_IP_FIB_HASH=y
++CONFIG_IP_MULTIPLE_TABLES=y
++CONFIG_IP_ROUTE_MULTIPATH=y
++# CONFIG_IP_ROUTE_MULTIPATH_CACHED is not set
++CONFIG_IP_ROUTE_VERBOSE=y
++# CONFIG_IP_PNP is not set
++# CONFIG_NET_IPIP is not set
++# CONFIG_NET_IPGRE is not set
++# CONFIG_IP_MROUTE is not set
++# CONFIG_ARPD is not set
++CONFIG_SYN_COOKIES=y
++CONFIG_INET_AH=m
++CONFIG_INET_ESP=m
++CONFIG_INET_IPCOMP=m
++CONFIG_INET_XFRM_TUNNEL=m
++CONFIG_INET_TUNNEL=m
++CONFIG_INET_XFRM_MODE_TRANSPORT=y
++CONFIG_INET_XFRM_MODE_TUNNEL=y
++CONFIG_INET_XFRM_MODE_BEET=y
++# CONFIG_INET_DIAG is not set
++CONFIG_TCP_CONG_ADVANCED=y
++CONFIG_TCP_CONG_BIC=y
++CONFIG_TCP_CONG_CUBIC=m
++CONFIG_TCP_CONG_WESTWOOD=m
++CONFIG_TCP_CONG_HTCP=m
++CONFIG_TCP_CONG_HSTCP=m
++CONFIG_TCP_CONG_HYBLA=m
++CONFIG_TCP_CONG_VEGAS=m
++CONFIG_TCP_CONG_SCALABLE=m
++CONFIG_TCP_CONG_LP=m
++CONFIG_TCP_CONG_VENO=m
++CONFIG_TCP_CONG_YEAH=m
++CONFIG_TCP_CONG_ILLINOIS=m
++CONFIG_DEFAULT_BIC=y
++# CONFIG_DEFAULT_CUBIC is not set
++# CONFIG_DEFAULT_HTCP is not set
++# CONFIG_DEFAULT_VEGAS is not set
++# CONFIG_DEFAULT_WESTWOOD is not set
++# CONFIG_DEFAULT_RENO is not set
++CONFIG_DEFAULT_TCP_CONG="bic"
++# CONFIG_TCP_MD5SIG is not set
++# CONFIG_IP_VS is not set
++CONFIG_IPV6=y
++CONFIG_IPV6_PRIVACY=y
++CONFIG_IPV6_ROUTER_PREF=y
++CONFIG_IPV6_ROUTE_INFO=y
++CONFIG_IPV6_OPTIMISTIC_DAD=y
++CONFIG_INET6_AH=m
++CONFIG_INET6_ESP=m
++CONFIG_INET6_IPCOMP=m
++CONFIG_IPV6_MIP6=y
++CONFIG_INET6_XFRM_TUNNEL=m
++CONFIG_INET6_TUNNEL=m
++CONFIG_INET6_XFRM_MODE_TRANSPORT=m
++CONFIG_INET6_XFRM_MODE_TUNNEL=m
++CONFIG_INET6_XFRM_MODE_BEET=m
++CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION=m
++CONFIG_IPV6_SIT=m
++CONFIG_IPV6_TUNNEL=m
++CONFIG_IPV6_MULTIPLE_TABLES=y
++CONFIG_IPV6_SUBTREES=y
++# CONFIG_NETLABEL is not set
++CONFIG_NETWORK_SECMARK=y
++CONFIG_NETFILTER=y
++# CONFIG_NETFILTER_DEBUG is not set
++
++#
++# Core Netfilter Configuration
++#
++CONFIG_NETFILTER_NETLINK=m
++# CONFIG_NETFILTER_NETLINK_QUEUE is not set
++# CONFIG_NETFILTER_NETLINK_LOG is not set
++CONFIG_NF_CONNTRACK_ENABLED=m
++CONFIG_NF_CONNTRACK=m
++# CONFIG_NF_CT_ACCT is not set
++# CONFIG_NF_CONNTRACK_MARK is not set
++# CONFIG_NF_CONNTRACK_SECMARK is not set
++# CONFIG_NF_CONNTRACK_EVENTS is not set
++# CONFIG_NF_CT_PROTO_SCTP is not set
++# CONFIG_NF_CONNTRACK_AMANDA is not set
++CONFIG_NF_CONNTRACK_FTP=m
++# CONFIG_NF_CONNTRACK_H323 is not set
++CONFIG_NF_CONNTRACK_IRC=m
++# CONFIG_NF_CONNTRACK_NETBIOS_NS is not set
++# CONFIG_NF_CONNTRACK_PPTP is not set
++# CONFIG_NF_CONNTRACK_SANE is not set
++# CONFIG_NF_CONNTRACK_SIP is not set
++# CONFIG_NF_CONNTRACK_TFTP is not set
++# CONFIG_NF_CT_NETLINK is not set
++CONFIG_NETFILTER_XTABLES=m
++# CONFIG_NETFILTER_XT_TARGET_CLASSIFY is not set
++# CONFIG_NETFILTER_XT_TARGET_MARK is not set
++# CONFIG_NETFILTER_XT_TARGET_NFQUEUE is not set
++CONFIG_NETFILTER_XT_TARGET_NFLOG=m
++# CONFIG_NETFILTER_XT_TARGET_SECMARK is not set
++# CONFIG_NETFILTER_XT_TARGET_TCPMSS is not set
++# CONFIG_NETFILTER_XT_MATCH_COMMENT is not set
++# CONFIG_NETFILTER_XT_MATCH_CONNBYTES is not set
++# CONFIG_NETFILTER_XT_MATCH_CONNMARK is not set
++# CONFIG_NETFILTER_XT_MATCH_CONNTRACK is not set
++# CONFIG_NETFILTER_XT_MATCH_DCCP is not set
++# CONFIG_NETFILTER_XT_MATCH_DSCP is not set
++# CONFIG_NETFILTER_XT_MATCH_ESP is not set
++# CONFIG_NETFILTER_XT_MATCH_HELPER is not set
++# CONFIG_NETFILTER_XT_MATCH_LENGTH is not set
++# CONFIG_NETFILTER_XT_MATCH_LIMIT is not set
++# CONFIG_NETFILTER_XT_MATCH_MAC is not set
++# CONFIG_NETFILTER_XT_MATCH_MARK is not set
++# CONFIG_NETFILTER_XT_MATCH_POLICY is not set
++# CONFIG_NETFILTER_XT_MATCH_MULTIPORT is not set
++# CONFIG_NETFILTER_XT_MATCH_PKTTYPE is not set
++# CONFIG_NETFILTER_XT_MATCH_QUOTA is not set
++# CONFIG_NETFILTER_XT_MATCH_REALM is not set
++# CONFIG_NETFILTER_XT_MATCH_SCTP is not set
++CONFIG_NETFILTER_XT_MATCH_STATE=m
++# CONFIG_NETFILTER_XT_MATCH_STATISTIC is not set
++# CONFIG_NETFILTER_XT_MATCH_STRING is not set
++# CONFIG_NETFILTER_XT_MATCH_TCPMSS is not set
++# CONFIG_NETFILTER_XT_MATCH_HASHLIMIT is not set
++
++#
++# IP: Netfilter Configuration
++#
++CONFIG_NF_CONNTRACK_IPV4=m
++CONFIG_NF_CONNTRACK_PROC_COMPAT=y
++# CONFIG_IP_NF_QUEUE is not set
++CONFIG_IP_NF_IPTABLES=m
++# CONFIG_IP_NF_MATCH_IPRANGE is not set
++# CONFIG_IP_NF_MATCH_TOS is not set
++# CONFIG_IP_NF_MATCH_RECENT is not set
++# CONFIG_IP_NF_MATCH_ECN is not set
++# CONFIG_IP_NF_MATCH_AH is not set
++# CONFIG_IP_NF_MATCH_TTL is not set
++# CONFIG_IP_NF_MATCH_OWNER is not set
++# CONFIG_IP_NF_MATCH_ADDRTYPE is not set
++CONFIG_IP_NF_FILTER=m
++# CONFIG_IP_NF_TARGET_REJECT is not set
++CONFIG_IP_NF_TARGET_LOG=m
++# CONFIG_IP_NF_TARGET_ULOG is not set
++CONFIG_NF_NAT=m
++CONFIG_NF_NAT_NEEDED=y
++CONFIG_IP_NF_TARGET_MASQUERADE=m
++# CONFIG_IP_NF_TARGET_REDIRECT is not set
++# CONFIG_IP_NF_TARGET_NETMAP is not set
++# CONFIG_IP_NF_TARGET_SAME is not set
++# CONFIG_NF_NAT_SNMP_BASIC is not set
++CONFIG_NF_NAT_FTP=m
++CONFIG_NF_NAT_IRC=m
++# CONFIG_NF_NAT_TFTP is not set
++# CONFIG_NF_NAT_AMANDA is not set
++# CONFIG_NF_NAT_PPTP is not set
++# CONFIG_NF_NAT_H323 is not set
++# CONFIG_NF_NAT_SIP is not set
++# CONFIG_IP_NF_MANGLE is not set
++# CONFIG_IP_NF_RAW is not set
++# CONFIG_IP_NF_ARPTABLES is not set
++
++#
++# IPv6: Netfilter Configuration (EXPERIMENTAL)
++#
++# CONFIG_NF_CONNTRACK_IPV6 is not set
++# CONFIG_IP6_NF_QUEUE is not set
++# CONFIG_IP6_NF_IPTABLES is not set
++# CONFIG_IP_DCCP is not set
++# CONFIG_IP_SCTP is not set
++# CONFIG_TIPC is not set
++# CONFIG_ATM is not set
++# CONFIG_BRIDGE is not set
++# CONFIG_VLAN_8021Q is not set
++# CONFIG_DECNET is not set
++# CONFIG_LLC2 is not set
++# CONFIG_IPX is not set
++# CONFIG_ATALK is not set
++# CONFIG_X25 is not set
++# CONFIG_LAPB is not set
++# CONFIG_ECONET is not set
++# CONFIG_WAN_ROUTER is not set
++
++#
++# QoS and/or fair queueing
++#
++CONFIG_NET_SCHED=y
++CONFIG_NET_SCH_FIFO=y
++
++#
++# Queueing/Scheduling
++#
++CONFIG_NET_SCH_CBQ=m
++CONFIG_NET_SCH_HTB=m
++CONFIG_NET_SCH_HFSC=m
++CONFIG_NET_SCH_PRIO=m
++CONFIG_NET_SCH_RED=m
++CONFIG_NET_SCH_SFQ=m
++CONFIG_NET_SCH_TEQL=m
++CONFIG_NET_SCH_TBF=m
++CONFIG_NET_SCH_GRED=m
++CONFIG_NET_SCH_DSMARK=m
++CONFIG_NET_SCH_NETEM=m
++CONFIG_NET_SCH_INGRESS=m
++
++#
++# Classification
++#
++CONFIG_NET_CLS=y
++CONFIG_NET_CLS_BASIC=m
++CONFIG_NET_CLS_TCINDEX=m
++CONFIG_NET_CLS_ROUTE4=m
++CONFIG_NET_CLS_ROUTE=y
++CONFIG_NET_CLS_FW=m
++CONFIG_NET_CLS_U32=m
++CONFIG_CLS_U32_PERF=y
++CONFIG_CLS_U32_MARK=y
++CONFIG_NET_CLS_RSVP=m
++CONFIG_NET_CLS_RSVP6=m
++CONFIG_NET_EMATCH=y
++CONFIG_NET_EMATCH_STACK=32
++CONFIG_NET_EMATCH_CMP=m
++CONFIG_NET_EMATCH_NBYTE=m
++CONFIG_NET_EMATCH_U32=m
++CONFIG_NET_EMATCH_META=m
++CONFIG_NET_EMATCH_TEXT=m
++CONFIG_NET_CLS_ACT=y
++CONFIG_NET_ACT_POLICE=m
++CONFIG_NET_ACT_GACT=m
++CONFIG_GACT_PROB=y
++CONFIG_NET_ACT_MIRRED=m
++# CONFIG_NET_ACT_IPT is not set
++CONFIG_NET_ACT_PEDIT=m
++CONFIG_NET_ACT_SIMP=m
++CONFIG_NET_CLS_IND=y
++CONFIG_NET_ESTIMATOR=y
++
++#
++# Network testing
++#
++# CONFIG_NET_PKTGEN is not set
++# CONFIG_NET_TCPPROBE is not set
++# CONFIG_HAMRADIO is not set
++# CONFIG_IRDA is not set
++# CONFIG_BT is not set
++# CONFIG_AF_RXRPC is not set
++CONFIG_FIB_RULES=y
++
++#
++# Wireless
++#
++# CONFIG_CFG80211 is not set
++CONFIG_WIRELESS_EXT=y
++# CONFIG_MAC80211 is not set
++CONFIG_IEEE80211=m
++# CONFIG_IEEE80211_DEBUG is not set
++CONFIG_IEEE80211_CRYPT_WEP=m
++CONFIG_IEEE80211_CRYPT_CCMP=m
++CONFIG_IEEE80211_CRYPT_TKIP=m
++CONFIG_IEEE80211_SOFTMAC=m
++CONFIG_IEEE80211_SOFTMAC_DEBUG=y
++# CONFIG_RFKILL is not set
++
++#
++# Device Drivers
++#
++
++#
++# Generic Driver Options
++#
++CONFIG_STANDALONE=y
++CONFIG_PREVENT_FIRMWARE_BUILD=y
++CONFIG_FW_LOADER=y
++# CONFIG_DEBUG_DRIVER is not set
++# CONFIG_DEBUG_DEVRES is not set
++# CONFIG_SYS_HYPERVISOR is not set
++
++#
++# Connector - unified userspace <-> kernelspace linker
++#
++# CONFIG_CONNECTOR is not set
++CONFIG_MTD=y
++# CONFIG_MTD_DEBUG is not set
++CONFIG_MTD_CONCAT=m
++CONFIG_MTD_PARTITIONS=y
++# CONFIG_MTD_REDBOOT_PARTS is not set
++# CONFIG_MTD_CMDLINE_PARTS is not set
++
++#
++# User Modules And Translation Layers
++#
++CONFIG_MTD_CHAR=m
++CONFIG_MTD_BLKDEVS=m
++CONFIG_MTD_BLOCK=m
++CONFIG_MTD_BLOCK_RO=m
++# CONFIG_FTL is not set
++# CONFIG_NFTL is not set
++# CONFIG_INFTL is not set
++# CONFIG_RFD_FTL is not set
++# CONFIG_SSFDC is not set
++# CONFIG_MTD_OOPS is not set
++
++#
++# RAM/ROM/Flash chip drivers
++#
++# CONFIG_MTD_CFI is not set
++# CONFIG_MTD_JEDECPROBE is not set
++CONFIG_MTD_MAP_BANK_WIDTH_1=y
++CONFIG_MTD_MAP_BANK_WIDTH_2=y
++CONFIG_MTD_MAP_BANK_WIDTH_4=y
++# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set
++# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set
++# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set
++CONFIG_MTD_CFI_I1=y
++CONFIG_MTD_CFI_I2=y
++# CONFIG_MTD_CFI_I4 is not set
++# CONFIG_MTD_CFI_I8 is not set
++# CONFIG_MTD_RAM is not set
++# CONFIG_MTD_ROM is not set
++# CONFIG_MTD_ABSENT is not set
++
++#
++# Mapping drivers for chip access
++#
++# CONFIG_MTD_COMPLEX_MAPPINGS is not set
++# CONFIG_MTD_TS5500 is not set
++# CONFIG_MTD_PLATRAM is not set
++
++#
++# Self-contained MTD device drivers
++#
++# CONFIG_MTD_PMC551 is not set
++# CONFIG_MTD_SLRAM is not set
++# CONFIG_MTD_PHRAM is not set
++# CONFIG_MTD_MTDRAM is not set
++# CONFIG_MTD_BLOCK2MTD is not set
++
++#
++# Disk-On-Chip Device Drivers
++#
++# CONFIG_MTD_DOC2000 is not set
++# CONFIG_MTD_DOC2001 is not set
++# CONFIG_MTD_DOC2001PLUS is not set
++CONFIG_MTD_NAND=y
++# CONFIG_MTD_NAND_VERIFY_WRITE is not set
++# CONFIG_MTD_NAND_ECC_SMC is not set
++# CONFIG_MTD_NAND_MUSEUM_IDS is not set
++CONFIG_MTD_NAND_IDS=y
++# CONFIG_MTD_NAND_DISKONCHIP is not set
++CONFIG_MTD_NAND_CAFE=y
++# CONFIG_MTD_NAND_CS553X is not set
++# CONFIG_MTD_NAND_NANDSIM is not set
++# CONFIG_MTD_NAND_PLATFORM is not set
++# CONFIG_MTD_ONENAND is not set
++
++#
++# UBI - Unsorted block images
++#
++# CONFIG_MTD_UBI is not set
++
++#
++# Parallel port support
++#
++# CONFIG_PARPORT is not set
++
++#
++# Plug and Play support
++#
++# CONFIG_PNPACPI is not set
++
++#
++# Block devices
++#
++# CONFIG_BLK_DEV_FD is not set
++# CONFIG_BLK_CPQ_DA is not set
++# CONFIG_BLK_CPQ_CISS_DA is not set
++# CONFIG_BLK_DEV_DAC960 is not set
++# CONFIG_BLK_DEV_UMEM is not set
++# CONFIG_BLK_DEV_COW_COMMON is not set
++CONFIG_BLK_DEV_LOOP=m
++CONFIG_BLK_DEV_CRYPTOLOOP=m
++CONFIG_BLK_DEV_NBD=m
++# CONFIG_BLK_DEV_SX8 is not set
++CONFIG_BLK_DEV_UB=m
++CONFIG_BLK_DEV_RAM=y
++CONFIG_BLK_DEV_RAM_COUNT=16
++CONFIG_BLK_DEV_RAM_SIZE=16384
++CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024
++# CONFIG_CDROM_PKTCDVD is not set
++# CONFIG_ATA_OVER_ETH is not set
++
++#
++# Misc devices
++#
++# CONFIG_IBM_ASM is not set
++# CONFIG_PHANTOM is not set
++# CONFIG_SGI_IOC4 is not set
++# CONFIG_TIFM_CORE is not set
++# CONFIG_EEPROM_93CX6 is not set
++CONFIG_IDE=m
++CONFIG_IDE_MAX_HWIFS=4
++CONFIG_BLK_DEV_IDE=m
++
++#
++# Please see Documentation/ide.txt for help/info on IDE drives
++#
++# CONFIG_BLK_DEV_IDE_SATA is not set
++# CONFIG_BLK_DEV_HD_IDE is not set
++CONFIG_BLK_DEV_IDEDISK=m
++CONFIG_IDEDISK_MULTI_MODE=y
++# CONFIG_BLK_DEV_IDECD is not set
++# CONFIG_BLK_DEV_IDETAPE is not set
++# CONFIG_BLK_DEV_IDEFLOPPY is not set
++# CONFIG_BLK_DEV_IDESCSI is not set
++CONFIG_IDE_TASK_IOCTL=y
++# CONFIG_IDE_PROC_FS is not set
++
++#
++# IDE chipset support/bugfixes
++#
++CONFIG_IDE_GENERIC=m
++# CONFIG_BLK_DEV_CMD640 is not set
++CONFIG_BLK_DEV_IDEPCI=y
++CONFIG_IDEPCI_SHARE_IRQ=y
++# CONFIG_IDEPCI_PCIBUS_ORDER is not set
++# CONFIG_BLK_DEV_OFFBOARD is not set
++# CONFIG_BLK_DEV_GENERIC is not set
++# CONFIG_BLK_DEV_OPTI621 is not set
++# CONFIG_BLK_DEV_RZ1000 is not set
++CONFIG_BLK_DEV_IDEDMA_PCI=y
++# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
++CONFIG_IDEDMA_ONLYDISK=y
++# CONFIG_BLK_DEV_AEC62XX is not set
++# CONFIG_BLK_DEV_ALI15X3 is not set
++# CONFIG_BLK_DEV_AMD74XX is not set
++# CONFIG_BLK_DEV_ATIIXP is not set
++# CONFIG_BLK_DEV_CMD64X is not set
++# CONFIG_BLK_DEV_TRIFLEX is not set
++# CONFIG_BLK_DEV_CY82C693 is not set
++# CONFIG_BLK_DEV_CS5520 is not set
++# CONFIG_BLK_DEV_CS5530 is not set
++# CONFIG_BLK_DEV_CS5535 is not set
++# CONFIG_BLK_DEV_HPT34X is not set
++# CONFIG_BLK_DEV_HPT366 is not set
++# CONFIG_BLK_DEV_JMICRON is not set
++# CONFIG_BLK_DEV_SC1200 is not set
++CONFIG_BLK_DEV_PIIX=m
++# CONFIG_BLK_DEV_IT8213 is not set
++# CONFIG_BLK_DEV_IT821X is not set
++# CONFIG_BLK_DEV_NS87415 is not set
++# CONFIG_BLK_DEV_PDC202XX_OLD is not set
++# CONFIG_BLK_DEV_PDC202XX_NEW is not set
++# CONFIG_BLK_DEV_SVWKS is not set
++# CONFIG_BLK_DEV_SIIMAGE is not set
++# CONFIG_BLK_DEV_SIS5513 is not set
++# CONFIG_BLK_DEV_SLC90E66 is not set
++# CONFIG_BLK_DEV_TRM290 is not set
++# CONFIG_BLK_DEV_VIA82CXXX is not set
++# CONFIG_BLK_DEV_TC86C001 is not set
++# CONFIG_IDE_ARM is not set
++CONFIG_BLK_DEV_IDEDMA=y
++# CONFIG_IDEDMA_IVB is not set
++# CONFIG_BLK_DEV_HD is not set
++
++#
++# SCSI device support
++#
++# CONFIG_RAID_ATTRS is not set
++CONFIG_SCSI=y
++# CONFIG_SCSI_TGT is not set
++# CONFIG_SCSI_NETLINK is not set
++CONFIG_SCSI_PROC_FS=y
++
++#
++# SCSI support type (disk, tape, CD-ROM)
++#
++CONFIG_BLK_DEV_SD=y
++# CONFIG_CHR_DEV_ST is not set
++# CONFIG_CHR_DEV_OSST is not set
++CONFIG_BLK_DEV_SR=m
++CONFIG_BLK_DEV_SR_VENDOR=y
++CONFIG_CHR_DEV_SG=m
++CONFIG_CHR_DEV_SCH=m
++
++#
++# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
++#
++CONFIG_SCSI_MULTI_LUN=y
++CONFIG_SCSI_CONSTANTS=y
++CONFIG_SCSI_LOGGING=y
++# CONFIG_SCSI_SCAN_ASYNC is not set
++CONFIG_SCSI_WAIT_SCAN=m
++
++#
++# SCSI Transports
++#
++# CONFIG_SCSI_SPI_ATTRS is not set
++# CONFIG_SCSI_FC_ATTRS is not set
++# CONFIG_SCSI_ISCSI_ATTRS is not set
++# CONFIG_SCSI_SAS_ATTRS is not set
++# CONFIG_SCSI_SAS_LIBSAS is not set
++
++#
++# SCSI low-level drivers
++#
++# CONFIG_ISCSI_TCP is not set
++# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
++# CONFIG_SCSI_3W_9XXX is not set
++# CONFIG_SCSI_ACARD is not set
++# CONFIG_SCSI_AACRAID is not set
++# CONFIG_SCSI_AIC7XXX is not set
++# CONFIG_SCSI_AIC7XXX_OLD is not set
++# CONFIG_SCSI_AIC79XX is not set
++# CONFIG_SCSI_AIC94XX is not set
++# CONFIG_SCSI_DPT_I2O is not set
++# CONFIG_SCSI_ADVANSYS is not set
++# CONFIG_SCSI_ARCMSR is not set
++# CONFIG_MEGARAID_NEWGEN is not set
++# CONFIG_MEGARAID_LEGACY is not set
++# CONFIG_MEGARAID_SAS is not set
++# CONFIG_SCSI_HPTIOP is not set
++# CONFIG_SCSI_BUSLOGIC is not set
++# CONFIG_SCSI_DMX3191D is not set
++# CONFIG_SCSI_EATA is not set
++# CONFIG_SCSI_FUTURE_DOMAIN is not set
++# CONFIG_SCSI_GDTH is not set
++# CONFIG_SCSI_IPS is not set
++# CONFIG_SCSI_INITIO is not set
++# CONFIG_SCSI_INIA100 is not set
++# CONFIG_SCSI_STEX is not set
++# CONFIG_SCSI_SYM53C8XX_2 is not set
++# CONFIG_SCSI_QLOGIC_1280 is not set
++# CONFIG_SCSI_QLA_FC is not set
++# CONFIG_SCSI_QLA_ISCSI is not set
++# CONFIG_SCSI_LPFC is not set
++# CONFIG_SCSI_DC395x is not set
++# CONFIG_SCSI_DC390T is not set
++# CONFIG_SCSI_NSP32 is not set
++# CONFIG_SCSI_DEBUG is not set
++# CONFIG_SCSI_SRP is not set
++# CONFIG_ATA is not set
++
++#
++# Multi-device support (RAID and LVM)
++#
++# CONFIG_MD is not set
++
++#
++# Fusion MPT device support
++#
++# CONFIG_FUSION is not set
++# CONFIG_FUSION_SPI is not set
++# CONFIG_FUSION_FC is not set
++# CONFIG_FUSION_SAS is not set
++
++#
++# IEEE 1394 (FireWire) support
++#
++# CONFIG_FIREWIRE is not set
++# CONFIG_IEEE1394 is not set
++
++#
++# I2O device support
++#
++# CONFIG_I2O is not set
++# CONFIG_MACINTOSH_DRIVERS is not set
++
++#
++# Network device support
++#
++CONFIG_NETDEVICES=y
++CONFIG_IFB=m
++CONFIG_DUMMY=m
++# CONFIG_BONDING is not set
++# CONFIG_EQUALIZER is not set
++CONFIG_TUN=m
++# CONFIG_ARCNET is not set
++# CONFIG_PHYLIB is not set
++
++#
++# Ethernet (10 or 100Mbit)
++#
++CONFIG_NET_ETHERNET=y
++CONFIG_MII=m
++# CONFIG_HAPPYMEAL is not set
++# CONFIG_SUNGEM is not set
++# CONFIG_CASSINI is not set
++# CONFIG_NET_VENDOR_3COM is not set
++
++#
++# Tulip family network device support
++#
++# CONFIG_NET_TULIP is not set
++# CONFIG_HP100 is not set
++CONFIG_NET_PCI=y
++CONFIG_PCNET32=m
++# CONFIG_PCNET32_NAPI is not set
++# CONFIG_AMD8111_ETH is not set
++# CONFIG_ADAPTEC_STARFIRE is not set
++# CONFIG_B44 is not set
++# CONFIG_FORCEDETH is not set
++# CONFIG_DGRS is not set
++# CONFIG_EEPRO100 is not set
++# CONFIG_E100 is not set
++# CONFIG_FEALNX is not set
++# CONFIG_NATSEMI is not set
++CONFIG_NE2K_PCI=m
++CONFIG_8139CP=m
++# CONFIG_8139TOO is not set
++# CONFIG_SIS900 is not set
++# CONFIG_EPIC100 is not set
++# CONFIG_SUNDANCE is not set
++# CONFIG_TLAN is not set
++# CONFIG_VIA_RHINE is not set
++# CONFIG_SC92031 is not set
++CONFIG_NETDEV_1000=y
++# CONFIG_ACENIC is not set
++# CONFIG_DL2K is not set
++# CONFIG_E1000 is not set
++# CONFIG_NS83820 is not set
++# CONFIG_HAMACHI is not set
++# CONFIG_YELLOWFIN is not set
++# CONFIG_R8169 is not set
++# CONFIG_SIS190 is not set
++# CONFIG_SKGE is not set
++# CONFIG_SKY2 is not set
++# CONFIG_SK98LIN is not set
++# CONFIG_VIA_VELOCITY is not set
++# CONFIG_TIGON3 is not set
++# CONFIG_BNX2 is not set
++# CONFIG_QLA3XXX is not set
++# CONFIG_ATL1 is not set
++CONFIG_NETDEV_10000=y
++# CONFIG_CHELSIO_T1 is not set
++# CONFIG_CHELSIO_T3 is not set
++# CONFIG_IXGB is not set
++# CONFIG_S2IO is not set
++# CONFIG_MYRI10GE is not set
++# CONFIG_NETXEN_NIC is not set
++# CONFIG_MLX4_CORE is not set
++# CONFIG_TR is not set
++
++#
++# Wireless LAN
++#
++# CONFIG_WLAN_PRE80211 is not set
++CONFIG_WLAN_80211=y
++# CONFIG_IPW2100 is not set
++# CONFIG_IPW2200 is not set
++CONFIG_LIBERTAS=m
++CONFIG_LIBERTAS_USB=m
++CONFIG_LIBERTAS_DEBUG=y
++# CONFIG_AIRO is not set
++# CONFIG_HERMES is not set
++# CONFIG_ATMEL is not set
++# CONFIG_PRISM54 is not set
++# CONFIG_USB_ZD1201 is not set
++# CONFIG_PRISM54_USB is not set
++# CONFIG_HOSTAP is not set
++# CONFIG_BCM43XX is not set
++# CONFIG_ZD1211RW is not set
++# CONFIG_ADM8211 is not set
++# CONFIG_ACX_PCI is not set
++# CONFIG_ACX_USB is not set
++
++#
++# USB Network Adapters
++#
++CONFIG_USB_CATC=m
++CONFIG_USB_KAWETH=m
++CONFIG_USB_PEGASUS=m
++CONFIG_USB_RTL8150=m
++CONFIG_USB_USBNET_MII=m
++CONFIG_USB_USBNET=m
++CONFIG_USB_NET_AX8817X=m
++CONFIG_USB_NET_CDCETHER=m
++CONFIG_USB_NET_DM9601=m
++CONFIG_USB_NET_GL620A=m
++CONFIG_USB_NET_NET1080=m
++CONFIG_USB_NET_PLUSB=m
++CONFIG_USB_NET_MCS7830=m
++CONFIG_USB_NET_RNDIS_HOST=m
++CONFIG_USB_NET_CDC_SUBSET=m
++CONFIG_USB_ALI_M5632=y
++CONFIG_USB_AN2720=y
++CONFIG_USB_BELKIN=y
++CONFIG_USB_ARMLINUX=y
++CONFIG_USB_EPSON2888=y
++# CONFIG_USB_KC2190 is not set
++CONFIG_USB_NET_ZAURUS=m
++# CONFIG_WAN is not set
++# CONFIG_FDDI is not set
++# CONFIG_HIPPI is not set
++CONFIG_PPP=m
++CONFIG_PPP_MULTILINK=y
++CONFIG_PPP_FILTER=y
++CONFIG_PPP_ASYNC=m
++CONFIG_PPP_SYNC_TTY=m
++CONFIG_PPP_DEFLATE=m
++# CONFIG_PPP_BSDCOMP is not set
++CONFIG_PPP_MPPE=m
++CONFIG_PPPOE=m
++CONFIG_SLIP=m
++CONFIG_SLIP_COMPRESSED=y
++CONFIG_SLHC=m
++CONFIG_SLIP_SMART=y
++# CONFIG_SLIP_MODE_SLIP6 is not set
++# CONFIG_NET_FC is not set
++# CONFIG_SHAPER is not set
++CONFIG_NETCONSOLE=m
++CONFIG_NETPOLL=y
++CONFIG_NETPOLL_TRAP=y
++CONFIG_NET_POLL_CONTROLLER=y
++
++#
++# ISDN subsystem
++#
++# CONFIG_ISDN is not set
++
++#
++# Telephony Support
++#
++# CONFIG_PHONE is not set
++
++#
++# Input device support
++#
++CONFIG_INPUT=y
++# CONFIG_INPUT_FF_MEMLESS is not set
++# CONFIG_INPUT_POLLDEV is not set
++
++#
++# Userland interfaces
++#
++CONFIG_INPUT_MOUSEDEV=m
++# CONFIG_INPUT_MOUSEDEV_PSAUX is not set
++CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
++CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
++CONFIG_INPUT_JOYDEV=m
++# CONFIG_INPUT_TSDEV is not set
++CONFIG_INPUT_EVDEV=y
++# CONFIG_INPUT_EVBUG is not set
++
++#
++# Input Device Drivers
++#
++CONFIG_INPUT_KEYBOARD=y
++CONFIG_KEYBOARD_ATKBD=y
++# CONFIG_KEYBOARD_SUNKBD is not set
++# CONFIG_KEYBOARD_LKKBD is not set
++# CONFIG_KEYBOARD_XTKBD is not set
++# CONFIG_KEYBOARD_NEWTON is not set
++# CONFIG_KEYBOARD_STOWAWAY is not set
++CONFIG_INPUT_MOUSE=y
++CONFIG_MOUSE_PS2=m
++# CONFIG_MOUSE_PS2_ALPS is not set
++# CONFIG_MOUSE_PS2_LOGIPS2PP is not set
++# CONFIG_MOUSE_PS2_SYNAPTICS is not set
++# CONFIG_MOUSE_PS2_LIFEBOOK is not set
++# CONFIG_MOUSE_PS2_TRACKPOINT is not set
++# CONFIG_MOUSE_PS2_TOUCHKIT is not set
++CONFIG_MOUSE_PS2_OLPC=y
++# CONFIG_MOUSE_SERIAL is not set
++# CONFIG_MOUSE_APPLETOUCH is not set
++# CONFIG_MOUSE_VSXXXAA is not set
++# CONFIG_INPUT_JOYSTICK is not set
++# CONFIG_INPUT_TABLET is not set
++# CONFIG_INPUT_TOUCHSCREEN is not set
++CONFIG_INPUT_MISC=y
++CONFIG_INPUT_PCSPKR=m
++# CONFIG_INPUT_WISTRON_BTNS is not set
++# CONFIG_INPUT_ATI_REMOTE is not set
++# CONFIG_INPUT_ATI_REMOTE2 is not set
++# CONFIG_INPUT_KEYSPAN_REMOTE is not set
++# CONFIG_INPUT_POWERMATE is not set
++# CONFIG_INPUT_YEALINK is not set
++CONFIG_INPUT_UINPUT=m
++
++#
++# Hardware I/O ports
++#
++CONFIG_SERIO=y
++CONFIG_SERIO_I8042=y
++CONFIG_SERIO_SERPORT=y
++# CONFIG_SERIO_CT82C710 is not set
++# CONFIG_SERIO_PCIPS2 is not set
++CONFIG_SERIO_LIBPS2=y
++CONFIG_SERIO_RAW=m
++# CONFIG_GAMEPORT is not set
++
++#
++# Character devices
++#
++CONFIG_VT=y
++CONFIG_VT_CONSOLE=y
++CONFIG_HW_CONSOLE=y
++# CONFIG_VT_HW_CONSOLE_BINDING is not set
++# CONFIG_SERIAL_NONSTANDARD is not set
++
++#
++# Serial drivers
++#
++CONFIG_SERIAL_8250=y
++CONFIG_SERIAL_8250_CONSOLE=y
++CONFIG_SERIAL_8250_PCI=y
++CONFIG_SERIAL_8250_NR_UARTS=1
++CONFIG_SERIAL_8250_RUNTIME_UARTS=1
++CONFIG_SERIAL_8250_EXTENDED=y
++CONFIG_SERIAL_8250_MANY_PORTS=y
++CONFIG_SERIAL_8250_SHARE_IRQ=y
++CONFIG_SERIAL_8250_DETECT_IRQ=y
++CONFIG_SERIAL_8250_RSA=y
++
++#
++# Non-8250 serial port support
++#
++CONFIG_SERIAL_CORE=y
++CONFIG_SERIAL_CORE_CONSOLE=y
++# CONFIG_SERIAL_JSM is not set
++CONFIG_UNIX98_PTYS=y
++# CONFIG_LEGACY_PTYS is not set
++
++#
++# IPMI
++#
++# CONFIG_IPMI_HANDLER is not set
++CONFIG_WATCHDOG=y
++# CONFIG_WATCHDOG_NOWAYOUT is not set
++
++#
++# Watchdog Device Drivers
++#
++CONFIG_SOFT_WATCHDOG=m
++# CONFIG_ACQUIRE_WDT is not set
++# CONFIG_ADVANTECH_WDT is not set
++# CONFIG_ALIM1535_WDT is not set
++# CONFIG_ALIM7101_WDT is not set
++# CONFIG_SC520_WDT is not set
++# CONFIG_EUROTECH_WDT is not set
++# CONFIG_IB700_WDT is not set
++# CONFIG_IBMASR is not set
++# CONFIG_WAFER_WDT is not set
++# CONFIG_I6300ESB_WDT is not set
++# CONFIG_ITCO_WDT is not set
++# CONFIG_SC1200_WDT is not set
++# CONFIG_PC87413_WDT is not set
++# CONFIG_60XX_WDT is not set
++# CONFIG_SBC8360_WDT is not set
++# CONFIG_CPU5_WDT is not set
++# CONFIG_SMSC37B787_WDT is not set
++# CONFIG_W83627HF_WDT is not set
++# CONFIG_W83697HF_WDT is not set
++# CONFIG_W83877F_WDT is not set
++# CONFIG_W83977F_WDT is not set
++# CONFIG_MACHZ_WDT is not set
++# CONFIG_SBC_EPX_C3_WATCHDOG is not set
++
++#
++# PCI-based Watchdog Cards
++#
++# CONFIG_PCIPCWATCHDOG is not set
++# CONFIG_WDTPCI is not set
++
++#
++# USB-based Watchdog Cards
++#
++# CONFIG_USBPCWATCHDOG is not set
++CONFIG_HW_RANDOM=y
++# CONFIG_HW_RANDOM_INTEL is not set
++# CONFIG_HW_RANDOM_AMD is not set
++CONFIG_HW_RANDOM_GEODE=y
++# CONFIG_HW_RANDOM_VIA is not set
++CONFIG_NVRAM=y
++# CONFIG_RTC is not set
++# CONFIG_GEN_RTC is not set
++# CONFIG_R3964 is not set
++# CONFIG_APPLICOM is not set
++# CONFIG_SONYPI is not set
++# CONFIG_AGP is not set
++# CONFIG_DRM is not set
++# CONFIG_MWAVE is not set
++# CONFIG_PC8736x_GPIO is not set
++# CONFIG_NSC_GPIO is not set
++CONFIG_CS5535_GPIO=m
++# CONFIG_RAW_DRIVER is not set
++CONFIG_HANGCHECK_TIMER=m
++
++#
++# TPM devices
++#
++# CONFIG_TCG_TPM is not set
++# CONFIG_TELCLOCK is not set
++CONFIG_DEVPORT=y
++CONFIG_I2C=y
++CONFIG_I2C_BOARDINFO=y
++CONFIG_I2C_CHARDEV=m
++
++#
++# I2C Algorithms
++#
++# CONFIG_I2C_ALGOBIT is not set
++# CONFIG_I2C_ALGOPCF is not set
++# CONFIG_I2C_ALGOPCA is not set
++
++#
++# I2C Hardware Bus support
++#
++# CONFIG_I2C_ALI1535 is not set
++# CONFIG_I2C_ALI1563 is not set
++# CONFIG_I2C_ALI15X3 is not set
++# CONFIG_I2C_AMD756 is not set
++# CONFIG_I2C_AMD8111 is not set
++# CONFIG_I2C_I801 is not set
++# CONFIG_I2C_I810 is not set
++# CONFIG_I2C_PIIX4 is not set
++# CONFIG_I2C_NFORCE2 is not set
++# CONFIG_I2C_OCORES is not set
++# CONFIG_I2C_PARPORT_LIGHT is not set
++# CONFIG_I2C_PROSAVAGE is not set
++# CONFIG_I2C_SAVAGE4 is not set
++# CONFIG_I2C_SIMTEC is not set
++CONFIG_SCx200_ACB=y
++# CONFIG_I2C_SIS5595 is not set
++# CONFIG_I2C_SIS630 is not set
++# CONFIG_I2C_SIS96X is not set
++# CONFIG_I2C_STUB is not set
++# CONFIG_I2C_TINY_USB is not set
++# CONFIG_I2C_VIA is not set
++# CONFIG_I2C_VIAPRO is not set
++# CONFIG_I2C_VOODOO3 is not set
++
++#
++# Miscellaneous I2C Chip support
++#
++# CONFIG_SENSORS_DS1337 is not set
++# CONFIG_SENSORS_DS1374 is not set
++# CONFIG_SENSORS_EEPROM is not set
++# CONFIG_SENSORS_PCF8574 is not set
++# CONFIG_SENSORS_PCA9539 is not set
++# CONFIG_SENSORS_PCF8591 is not set
++# CONFIG_SENSORS_MAX6875 is not set
++# CONFIG_I2C_DEBUG_CORE is not set
++# CONFIG_I2C_DEBUG_ALGO is not set
++# CONFIG_I2C_DEBUG_BUS is not set
++# CONFIG_I2C_DEBUG_CHIP is not set
++
++#
++# SPI support
++#
++# CONFIG_SPI is not set
++# CONFIG_SPI_MASTER is not set
++
++#
++# Dallas's 1-wire bus
++#
++# CONFIG_W1 is not set
++CONFIG_POWER_SUPPLY=y
++# CONFIG_POWER_SUPPLY_DEBUG is not set
++# CONFIG_PDA_POWER is not set
++# CONFIG_BATTERY_DS2760 is not set
++CONFIG_BATTERY_OLPC=y
++# CONFIG_HWMON is not set
++
++#
++# Multifunction device drivers
++#
++# CONFIG_MFD_SM501 is not set
++
++#
++# Multimedia devices
++#
++CONFIG_VIDEO_DEV=y
++# CONFIG_VIDEO_V4L1 is not set
++CONFIG_VIDEO_V4L1_COMPAT=y
++CONFIG_VIDEO_V4L2=y
++CONFIG_VIDEO_CAPTURE_DRIVERS=y
++# CONFIG_VIDEO_ADV_DEBUG is not set
++# CONFIG_VIDEO_HELPER_CHIPS_AUTO is not set
++
++#
++# Encoders/decoders and other helper chips
++#
++
++#
++# Audio decoders
++#
++# CONFIG_VIDEO_TDA9840 is not set
++# CONFIG_VIDEO_TEA6415C is not set
++# CONFIG_VIDEO_TEA6420 is not set
++# CONFIG_VIDEO_MSP3400 is not set
++# CONFIG_VIDEO_CS53L32A is not set
++# CONFIG_VIDEO_TLV320AIC23B is not set
++# CONFIG_VIDEO_WM8775 is not set
++# CONFIG_VIDEO_WM8739 is not set
++
++#
++# Video decoders
++#
++CONFIG_VIDEO_OV7670=y
++# CONFIG_VIDEO_SAA711X is not set
++# CONFIG_VIDEO_TVP5150 is not set
++
++#
++# Video and audio decoders
++#
++# CONFIG_VIDEO_CX25840 is not set
++
++#
++# MPEG video encoders
++#
++# CONFIG_VIDEO_CX2341X is not set
++
++#
++# Video encoders
++#
++# CONFIG_VIDEO_SAA7127 is not set
++
++#
++# Video improvement chips
++#
++# CONFIG_VIDEO_UPD64031A is not set
++# CONFIG_VIDEO_UPD64083 is not set
++# CONFIG_VIDEO_VIVI is not set
++# CONFIG_VIDEO_SAA5246A is not set
++# CONFIG_VIDEO_SAA5249 is not set
++# CONFIG_VIDEO_SAA7134 is not set
++# CONFIG_VIDEO_HEXIUM_ORION is not set
++# CONFIG_VIDEO_HEXIUM_GEMINI is not set
++# CONFIG_VIDEO_CX88 is not set
++CONFIG_VIDEO_CAFE_CCIC=y
++CONFIG_V4L_USB_DRIVERS=y
++# CONFIG_VIDEO_PVRUSB2 is not set
++# CONFIG_VIDEO_USBVISION is not set
++# CONFIG_USB_SN9C102 is not set
++# CONFIG_USB_ZR364XX is not set
++CONFIG_RADIO_ADAPTERS=y
++# CONFIG_RADIO_GEMTEK_PCI is not set
++# CONFIG_RADIO_MAXIRADIO is not set
++# CONFIG_RADIO_MAESTRO is not set
++# CONFIG_USB_DSBR is not set
++# CONFIG_DVB_CORE is not set
++CONFIG_DAB=y
++# CONFIG_USB_DABUSB is not set
++
++#
++# Graphics support
++#
++CONFIG_BACKLIGHT_LCD_SUPPORT=y
++CONFIG_BACKLIGHT_CLASS_DEVICE=y
++CONFIG_LCD_CLASS_DEVICE=y
++# CONFIG_BACKLIGHT_PROGEAR is not set
++
++#
++# Display device support
++#
++# CONFIG_DISPLAY_SUPPORT is not set
++CONFIG_VGASTATE=m
++CONFIG_FB=y
++# CONFIG_FIRMWARE_EDID is not set
++# CONFIG_FB_DDC is not set
++CONFIG_FB_CFB_FILLRECT=y
++CONFIG_FB_CFB_COPYAREA=y
++CONFIG_FB_CFB_IMAGEBLIT=y
++# CONFIG_FB_SYS_FILLRECT is not set
++# CONFIG_FB_SYS_COPYAREA is not set
++# CONFIG_FB_SYS_IMAGEBLIT is not set
++# CONFIG_FB_SYS_FOPS is not set
++CONFIG_FB_DEFERRED_IO=y
++# CONFIG_FB_SVGALIB is not set
++# CONFIG_FB_MACMODES is not set
++# CONFIG_FB_BACKLIGHT is not set
++CONFIG_FB_MODE_HELPERS=y
++CONFIG_FB_TILEBLITTING=y
++
++#
++# Frame buffer hardware drivers
++#
++# CONFIG_FB_CIRRUS is not set
++# CONFIG_FB_PM2 is not set
++# CONFIG_FB_CYBER2000 is not set
++# CONFIG_FB_ARC is not set
++# CONFIG_FB_ASILIANT is not set
++# CONFIG_FB_IMSTT is not set
++CONFIG_FB_VGA16=m
++CONFIG_FB_VESA=y
++# CONFIG_FB_HECUBA is not set
++# CONFIG_FB_HGA is not set
++# CONFIG_FB_S1D13XXX is not set
++# CONFIG_FB_NVIDIA is not set
++# CONFIG_FB_RIVA is not set
++# CONFIG_FB_I810 is not set
++# CONFIG_FB_LE80578 is not set
++# CONFIG_FB_INTEL is not set
++# CONFIG_FB_MATROX is not set
++# CONFIG_FB_RADEON is not set
++# CONFIG_FB_ATY128 is not set
++# CONFIG_FB_ATY is not set
++# CONFIG_FB_S3 is not set
++# CONFIG_FB_SAVAGE is not set
++# CONFIG_FB_SIS is not set
++# CONFIG_FB_NEOMAGIC is not set
++# CONFIG_FB_KYRO is not set
++# CONFIG_FB_3DFX is not set
++# CONFIG_FB_VOODOO1 is not set
++# CONFIG_FB_VT8623 is not set
++# CONFIG_FB_CYBLA is not set
++# CONFIG_FB_TRIDENT is not set
++# CONFIG_FB_ARK is not set
++# CONFIG_FB_PM3 is not set
++CONFIG_FB_GEODE=y
++CONFIG_FB_GEODE_LX=y
++CONFIG_FB_GEODE_GX=y
++# CONFIG_FB_GEODE_GX1 is not set
++CONFIG_FB_OLPC_DCON=y
++# CONFIG_FB_VIRTUAL is not set
++
++#
++# Console display driver support
++#
++CONFIG_VGA_CONSOLE=y
++CONFIG_VGACON_SOFT_SCROLLBACK=y
++CONFIG_VGACON_SOFT_SCROLLBACK_SIZE=64
++CONFIG_VIDEO_SELECT=y
++CONFIG_DUMMY_CONSOLE=y
++CONFIG_FRAMEBUFFER_CONSOLE=y
++CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y
++CONFIG_FONTS=y
++# CONFIG_FONT_8x8 is not set
++CONFIG_FONT_8x16=y
++# CONFIG_FONT_6x11 is not set
++# CONFIG_FONT_7x14 is not set
++# CONFIG_FONT_PEARL_8x8 is not set
++# CONFIG_FONT_ACORN_8x8 is not set
++# CONFIG_FONT_MINI_4x6 is not set
++# CONFIG_FONT_SUN8x16 is not set
++CONFIG_FONT_SUN12x22=y
++# CONFIG_FONT_10x18 is not set
++CONFIG_LOGO=y
++# CONFIG_LOGO_LINUX_MONO is not set
++# CONFIG_LOGO_LINUX_VGA16 is not set
++CONFIG_LOGO_LINUX_CLUT224=y
++
++#
++# Sound
++#
++CONFIG_SOUND=y
++
++#
++# Advanced Linux Sound Architecture
++#
++CONFIG_SND=y
++CONFIG_SND_TIMER=y
++CONFIG_SND_PCM=y
++CONFIG_SND_HWDEP=m
++CONFIG_SND_RAWMIDI=m
++CONFIG_SND_SEQUENCER=m
++CONFIG_SND_SEQ_DUMMY=m
++CONFIG_SND_OSSEMUL=y
++CONFIG_SND_MIXER_OSS=m
++CONFIG_SND_PCM_OSS=m
++CONFIG_SND_PCM_OSS_PLUGINS=y
++CONFIG_SND_SEQUENCER_OSS=y
++CONFIG_SND_DYNAMIC_MINORS=y
++# CONFIG_SND_SUPPORT_OLD_API is not set
++CONFIG_SND_VERBOSE_PROCFS=y
++# CONFIG_SND_VERBOSE_PRINTK is not set
++# CONFIG_SND_DEBUG is not set
++
++#
++# Generic devices
++#
++CONFIG_SND_MPU401_UART=m
++CONFIG_SND_AC97_CODEC=y
++CONFIG_SND_DUMMY=m
++CONFIG_SND_VIRMIDI=m
++CONFIG_SND_MTPAV=m
++# CONFIG_SND_SERIAL_U16550 is not set
++CONFIG_SND_MPU401=m
++
++#
++# PCI devices
++#
++# CONFIG_SND_AD1889 is not set
++# CONFIG_SND_ALS300 is not set
++# CONFIG_SND_ALS4000 is not set
++# CONFIG_SND_ALI5451 is not set
++# CONFIG_SND_ATIIXP is not set
++# CONFIG_SND_ATIIXP_MODEM is not set
++# CONFIG_SND_AU8810 is not set
++# CONFIG_SND_AU8820 is not set
++# CONFIG_SND_AU8830 is not set
++# CONFIG_SND_AZT3328 is not set
++# CONFIG_SND_BT87X is not set
++# CONFIG_SND_CA0106 is not set
++# CONFIG_SND_CMIPCI is not set
++# CONFIG_SND_CS4281 is not set
++# CONFIG_SND_CS46XX is not set
++CONFIG_SND_CS5535AUDIO=y
++# CONFIG_SND_DARLA20 is not set
++# CONFIG_SND_GINA20 is not set
++# CONFIG_SND_LAYLA20 is not set
++# CONFIG_SND_DARLA24 is not set
++# CONFIG_SND_GINA24 is not set
++# CONFIG_SND_LAYLA24 is not set
++# CONFIG_SND_MONA is not set
++# CONFIG_SND_MIA is not set
++# CONFIG_SND_ECHO3G is not set
++# CONFIG_SND_INDIGO is not set
++# CONFIG_SND_INDIGOIO is not set
++# CONFIG_SND_INDIGODJ is not set
++# CONFIG_SND_EMU10K1 is not set
++# CONFIG_SND_EMU10K1X is not set
++CONFIG_SND_ENS1370=m
++CONFIG_SND_ENS1371=m
++# CONFIG_SND_ES1938 is not set
++# CONFIG_SND_ES1968 is not set
++# CONFIG_SND_FM801 is not set
++# CONFIG_SND_HDA_INTEL is not set
++# CONFIG_SND_HDSP is not set
++# CONFIG_SND_HDSPM is not set
++# CONFIG_SND_ICE1712 is not set
++# CONFIG_SND_ICE1724 is not set
++CONFIG_SND_INTEL8X0=m
++# CONFIG_SND_INTEL8X0M is not set
++# CONFIG_SND_KORG1212 is not set
++# CONFIG_SND_MAESTRO3 is not set
++# CONFIG_SND_MIXART is not set
++# CONFIG_SND_NM256 is not set
++# CONFIG_SND_PCXHR is not set
++# CONFIG_SND_RIPTIDE is not set
++# CONFIG_SND_RME32 is not set
++# CONFIG_SND_RME96 is not set
++# CONFIG_SND_RME9652 is not set
++# CONFIG_SND_SONICVIBES is not set
++# CONFIG_SND_TRIDENT is not set
++# CONFIG_SND_VIA82XX is not set
++# CONFIG_SND_VIA82XX_MODEM is not set
++# CONFIG_SND_VX222 is not set
++# CONFIG_SND_YMFPCI is not set
++CONFIG_SND_AC97_POWER_SAVE=y
++
++#
++# USB devices
++#
++CONFIG_SND_USB_AUDIO=m
++CONFIG_SND_USB_USX2Y=m
++# CONFIG_SND_USB_CAIAQ is not set
++
++#
++# System on Chip audio support
++#
++# CONFIG_SND_SOC is not set
++
++#
++# Open Sound System
++#
++# CONFIG_SOUND_PRIME is not set
++CONFIG_AC97_BUS=y
++
++#
++# HID Devices
++#
++CONFIG_HID=y
++# CONFIG_HID_DEBUG is not set
++
++#
++# USB Input Devices
++#
++CONFIG_USB_HID=y
++# CONFIG_USB_HIDINPUT_POWERBOOK is not set
++# CONFIG_HID_FF is not set
++CONFIG_USB_HIDDEV=y
++
++#
++# USB support
++#
++CONFIG_USB_ARCH_HAS_HCD=y
++CONFIG_USB_ARCH_HAS_OHCI=y
++CONFIG_USB_ARCH_HAS_EHCI=y
++CONFIG_USB=y
++# CONFIG_USB_DEBUG is not set
++
++#
++# Miscellaneous USB options
++#
++CONFIG_USB_DEVICEFS=y
++# CONFIG_USB_DEVICE_CLASS is not set
++# CONFIG_USB_DYNAMIC_MINORS is not set
++# CONFIG_USB_SUSPEND is not set
++CONFIG_USB_PERSIST=y
++# CONFIG_USB_OTG is not set
++
++#
++# USB Host Controller Drivers
++#
++CONFIG_USB_EHCI_HCD=y
++CONFIG_USB_EHCI_SPLIT_ISO=y
++CONFIG_USB_EHCI_ROOT_HUB_TT=y
++# CONFIG_USB_EHCI_TT_NEWSCHED is not set
++# CONFIG_USB_EHCI_BIG_ENDIAN_MMIO is not set
++# CONFIG_USB_ISP116X_HCD is not set
++CONFIG_USB_OHCI_HCD=y
++# CONFIG_USB_OHCI_BIG_ENDIAN_DESC is not set
++# CONFIG_USB_OHCI_BIG_ENDIAN_MMIO is not set
++CONFIG_USB_OHCI_LITTLE_ENDIAN=y
++# CONFIG_USB_UHCI_HCD is not set
++# CONFIG_USB_SL811_HCD is not set
++
++#
++# USB Device Class drivers
++#
++CONFIG_USB_ACM=m
++CONFIG_USB_PRINTER=m
++
++#
++# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
++#
++
++#
++# may also be needed; see USB_STORAGE Help for more information
++#
++CONFIG_USB_STORAGE=y
++# CONFIG_USB_STORAGE_DEBUG is not set
++CONFIG_USB_STORAGE_DATAFAB=y
++CONFIG_USB_STORAGE_FREECOM=y
++CONFIG_USB_STORAGE_DPCM=y
++CONFIG_USB_STORAGE_USBAT=y
++CONFIG_USB_STORAGE_SDDR09=y
++CONFIG_USB_STORAGE_SDDR55=y
++CONFIG_USB_STORAGE_JUMPSHOT=y
++CONFIG_USB_STORAGE_ALAUDA=y
++# CONFIG_USB_STORAGE_KARMA is not set
++CONFIG_USB_LIBUSUAL=y
++
++#
++# USB Imaging devices
++#
++# CONFIG_USB_MDC800 is not set
++# CONFIG_USB_MICROTEK is not set
++CONFIG_USB_MON=y
++
++#
++# USB port drivers
++#
++
++#
++# USB Serial Converter support
++#
++CONFIG_USB_SERIAL=m
++CONFIG_USB_SERIAL_GENERIC=y
++# CONFIG_USB_SERIAL_AIRCABLE is not set
++# CONFIG_USB_SERIAL_AIRPRIME is not set
++# CONFIG_USB_SERIAL_ARK3116 is not set
++# CONFIG_USB_SERIAL_BELKIN is not set
++# CONFIG_USB_SERIAL_WHITEHEAT is not set
++# CONFIG_USB_SERIAL_DIGI_ACCELEPORT is not set
++CONFIG_USB_SERIAL_CP2101=m
++# CONFIG_USB_SERIAL_CYPRESS_M8 is not set
++# CONFIG_USB_SERIAL_EMPEG is not set
++CONFIG_USB_SERIAL_FTDI_SIO=m
++# CONFIG_USB_SERIAL_FUNSOFT is not set
++# CONFIG_USB_SERIAL_VISOR is not set
++# CONFIG_USB_SERIAL_IPAQ is not set
++# CONFIG_USB_SERIAL_IR is not set
++# CONFIG_USB_SERIAL_EDGEPORT is not set
++# CONFIG_USB_SERIAL_EDGEPORT_TI is not set
++# CONFIG_USB_SERIAL_GARMIN is not set
++# CONFIG_USB_SERIAL_IPW is not set
++# CONFIG_USB_SERIAL_KEYSPAN_PDA is not set
++# CONFIG_USB_SERIAL_KEYSPAN is not set
++# CONFIG_USB_SERIAL_KLSI is not set
++# CONFIG_USB_SERIAL_KOBIL_SCT is not set
++# CONFIG_USB_SERIAL_MCT_U232 is not set
++# CONFIG_USB_SERIAL_MOS7720 is not set
++# CONFIG_USB_SERIAL_MOS7840 is not set
++# CONFIG_USB_SERIAL_NAVMAN is not set
++CONFIG_USB_SERIAL_PL2303=m
++# CONFIG_USB_SERIAL_HP4X is not set
++# CONFIG_USB_SERIAL_SAFE is not set
++# CONFIG_USB_SERIAL_SIERRAWIRELESS is not set
++# CONFIG_USB_SERIAL_TI is not set
++# CONFIG_USB_SERIAL_CYBERJACK is not set
++# CONFIG_USB_SERIAL_XIRCOM is not set
++# CONFIG_USB_SERIAL_OPTION is not set
++# CONFIG_USB_SERIAL_OMNINET is not set
++# CONFIG_USB_SERIAL_DEBUG is not set
++
++#
++# USB Miscellaneous drivers
++#
++# CONFIG_USB_EMI62 is not set
++# CONFIG_USB_EMI26 is not set
++# CONFIG_USB_ADUTUX is not set
++# CONFIG_USB_AUERSWALD is not set
++# CONFIG_USB_RIO500 is not set
++# CONFIG_USB_LEGOTOWER is not set
++# CONFIG_USB_LCD is not set
++# CONFIG_USB_BERRY_CHARGE is not set
++# CONFIG_USB_LED is not set
++# CONFIG_USB_CYPRESS_CY7C63 is not set
++# CONFIG_USB_CYTHERM is not set
++# CONFIG_USB_PHIDGET is not set
++# CONFIG_USB_IDMOUSE is not set
++# CONFIG_USB_FTDI_ELAN is not set
++# CONFIG_USB_APPLEDISPLAY is not set
++# CONFIG_USB_SISUSBVGA is not set
++# CONFIG_USB_LD is not set
++# CONFIG_USB_TRANCEVIBRATOR is not set
++# CONFIG_USB_IOWARRIOR is not set
++# CONFIG_USB_TEST is not set
++
++#
++# USB DSL modem support
++#
++
++#
++# USB Gadget Support
++#
++# CONFIG_USB_GADGET is not set
++CONFIG_MMC=y
++# CONFIG_MMC_DEBUG is not set
++# CONFIG_MMC_UNSAFE_RESUME is not set
++
++#
++# MMC/SD Card Drivers
++#
++CONFIG_MMC_BLOCK=y
++
++#
++# MMC/SD Host Controller Drivers
++#
++CONFIG_MMC_SDHCI=y
++# CONFIG_MMC_WBSD is not set
++# CONFIG_MMC_TIFM_SD is not set
++
++#
++# LED devices
++#
++CONFIG_NEW_LEDS=y
++CONFIG_LEDS_CLASS=y
++
++#
++# LED drivers
++#
++
++#
++# LED Triggers
++#
++CONFIG_LEDS_TRIGGERS=y
++CONFIG_LEDS_TRIGGER_TIMER=y
++# CONFIG_LEDS_TRIGGER_IDE_DISK is not set
++CONFIG_LEDS_TRIGGER_HEARTBEAT=y
++
++#
++# InfiniBand support
++#
++# CONFIG_INFINIBAND is not set
++
++#
++# EDAC - error detection and reporting (RAS) (EXPERIMENTAL)
++#
++# CONFIG_EDAC is not set
++
++#
++# Real Time Clock
++#
++CONFIG_RTC_LIB=y
++CONFIG_RTC_CLASS=y
++# CONFIG_RTC_HCTOSYS is not set
++# CONFIG_RTC_DEBUG is not set
++
++#
++# RTC interfaces
++#
++CONFIG_RTC_INTF_SYSFS=y
++CONFIG_RTC_INTF_PROC=y
++CONFIG_RTC_INTF_DEV=y
++# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set
++# CONFIG_RTC_DRV_TEST is not set
++
++#
++# I2C RTC drivers
++#
++# CONFIG_RTC_DRV_DS1307 is not set
++# CONFIG_RTC_DRV_DS1672 is not set
++# CONFIG_RTC_DRV_MAX6900 is not set
++# CONFIG_RTC_DRV_RS5C372 is not set
++# CONFIG_RTC_DRV_ISL1208 is not set
++# CONFIG_RTC_DRV_X1205 is not set
++# CONFIG_RTC_DRV_PCF8563 is not set
++# CONFIG_RTC_DRV_PCF8583 is not set
++
++#
++# SPI RTC drivers
++#
++
++#
++# Platform RTC drivers
++#
++CONFIG_RTC_DRV_CMOS=y
++# CONFIG_RTC_DRV_DS1553 is not set
++# CONFIG_RTC_DRV_DS1742 is not set
++# CONFIG_RTC_DRV_M48T86 is not set
++# CONFIG_RTC_DRV_V3020 is not set
++
++#
++# on-CPU RTC drivers
++#
++
++#
++# DMA Engine support
++#
++# CONFIG_DMA_ENGINE is not set
++
++#
++# DMA Clients
++#
++
++#
++# DMA Devices
++#
++
++#
++# Virtualization
++#
++# CONFIG_KVM is not set
++
++#
++# Sysprof
++#
++CONFIG_SYSPROF=m
++
++#
++# File systems
++#
++CONFIG_EXT2_FS=y
++CONFIG_EXT2_FS_XATTR=y
++# CONFIG_EXT2_FS_POSIX_ACL is not set
++CONFIG_EXT2_FS_SECURITY=y
++CONFIG_EXT2_FS_XIP=y
++CONFIG_FS_XIP=y
++CONFIG_EXT3_FS=y
++CONFIG_EXT3_FS_XATTR=y
++# CONFIG_EXT3_FS_POSIX_ACL is not set
++CONFIG_EXT3_FS_SECURITY=y
++# CONFIG_EXT4DEV_FS is not set
++CONFIG_JBD=y
++# CONFIG_JBD_DEBUG is not set
++CONFIG_FS_MBCACHE=y
++# CONFIG_REISERFS_FS is not set
++# CONFIG_JFS_FS is not set
++# CONFIG_FS_POSIX_ACL is not set
++# CONFIG_XFS_FS is not set
++# CONFIG_GFS2_FS is not set
++# CONFIG_OCFS2_FS is not set
++# CONFIG_MINIX_FS is not set
++# CONFIG_ROMFS_FS is not set
++CONFIG_INOTIFY=y
++CONFIG_INOTIFY_USER=y
++CONFIG_QUOTA=y
++# CONFIG_QFMT_V1 is not set
++CONFIG_QFMT_V2=y
++CONFIG_QUOTACTL=y
++CONFIG_DNOTIFY=y
++CONFIG_AUTOFS_FS=m
++CONFIG_AUTOFS4_FS=m
++# CONFIG_FUSE_FS is not set
++
++#
++# CD-ROM/DVD Filesystems
++#
++CONFIG_ISO9660_FS=m
++CONFIG_JOLIET=y
++CONFIG_ZISOFS=y
++CONFIG_UDF_FS=m
++CONFIG_UDF_NLS=y
++
++#
++# DOS/FAT/NT Filesystems
++#
++CONFIG_FAT_FS=m
++CONFIG_MSDOS_FS=m
++CONFIG_VFAT_FS=m
++CONFIG_FAT_DEFAULT_CODEPAGE=437
++CONFIG_FAT_DEFAULT_IOCHARSET="ascii"
++# CONFIG_NTFS_FS is not set
++
++#
++# Pseudo filesystems
++#
++CONFIG_PROC_FS=y
++CONFIG_PROC_KCORE=y
++CONFIG_PROC_SYSCTL=y
++CONFIG_SYSFS=y
++CONFIG_TMPFS=y
++# CONFIG_TMPFS_POSIX_ACL is not set
++CONFIG_HUGETLBFS=y
++CONFIG_HUGETLB_PAGE=y
++CONFIG_PROMFS_FS=y
++CONFIG_RAMFS=y
++# CONFIG_CONFIGFS_FS is not set
++
++#
++# Miscellaneous filesystems
++#
++# CONFIG_ADFS_FS is not set
++# CONFIG_AFFS_FS is not set
++# CONFIG_ECRYPT_FS is not set
++# CONFIG_HFS_FS is not set
++# CONFIG_HFSPLUS_FS is not set
++# CONFIG_BEFS_FS is not set
++# CONFIG_BFS_FS is not set
++# CONFIG_EFS_FS is not set
++CONFIG_JFFS2_FS=y
++CONFIG_JFFS2_FS_DEBUG=0
++CONFIG_JFFS2_FS_WRITEBUFFER=y
++CONFIG_JFFS2_FS_WBUF_VERIFY=y
++CONFIG_JFFS2_SUMMARY=y
++CONFIG_JFFS2_FS_XATTR=y
++# CONFIG_JFFS2_FS_POSIX_ACL is not set
++CONFIG_JFFS2_FS_SECURITY=y
++# CONFIG_JFFS2_COMPRESSION_OPTIONS is not set
++CONFIG_JFFS2_ZLIB=y
++CONFIG_JFFS2_RTIME=y
++# CONFIG_JFFS2_RUBIN is not set
++CONFIG_CRAMFS=m
++# CONFIG_VXFS_FS is not set
++# CONFIG_HPFS_FS is not set
++# CONFIG_QNX4FS_FS is not set
++# CONFIG_SYSV_FS is not set
++# CONFIG_UFS_FS is not set
++
++#
++# Network File Systems
++#
++CONFIG_NFS_FS=m
++CONFIG_NFS_V3=y
++# CONFIG_NFS_V3_ACL is not set
++CONFIG_NFS_V4=y
++CONFIG_NFS_DIRECTIO=y
++# CONFIG_NFSD is not set
++CONFIG_LOCKD=m
++CONFIG_LOCKD_V4=y
++CONFIG_NFS_COMMON=y
++CONFIG_SUNRPC=m
++CONFIG_SUNRPC_GSS=m
++# CONFIG_SUNRPC_BIND34 is not set
++CONFIG_RPCSEC_GSS_KRB5=m
++CONFIG_RPCSEC_GSS_SPKM3=m
++# CONFIG_SMB_FS is not set
++# CONFIG_CIFS is not set
++# CONFIG_NCP_FS is not set
++# CONFIG_CODA_FS is not set
++# CONFIG_AFS_FS is not set
++# CONFIG_9P_FS is not set
++
++#
++# Partition Types
++#
++CONFIG_PARTITION_ADVANCED=y
++# CONFIG_ACORN_PARTITION is not set
++# CONFIG_OSF_PARTITION is not set
++# CONFIG_AMIGA_PARTITION is not set
++# CONFIG_ATARI_PARTITION is not set
++# CONFIG_MAC_PARTITION is not set
++CONFIG_MSDOS_PARTITION=y
++# CONFIG_BSD_DISKLABEL is not set
++# CONFIG_MINIX_SUBPARTITION is not set
++# CONFIG_SOLARIS_X86_PARTITION is not set
++# CONFIG_UNIXWARE_DISKLABEL is not set
++# CONFIG_LDM_PARTITION is not set
++# CONFIG_SGI_PARTITION is not set
++# CONFIG_ULTRIX_PARTITION is not set
++# CONFIG_SUN_PARTITION is not set
++# CONFIG_KARMA_PARTITION is not set
++# CONFIG_EFI_PARTITION is not set
++# CONFIG_SYSV68_PARTITION is not set
++
++#
++# Native Language Support
++#
++CONFIG_NLS=y
++CONFIG_NLS_DEFAULT="utf8"
++CONFIG_NLS_CODEPAGE_437=y
++CONFIG_NLS_CODEPAGE_737=m
++CONFIG_NLS_CODEPAGE_775=m
++CONFIG_NLS_CODEPAGE_850=m
++CONFIG_NLS_CODEPAGE_852=m
++CONFIG_NLS_CODEPAGE_855=m
++CONFIG_NLS_CODEPAGE_857=m
++CONFIG_NLS_CODEPAGE_860=m
++CONFIG_NLS_CODEPAGE_861=m
++CONFIG_NLS_CODEPAGE_862=m
++CONFIG_NLS_CODEPAGE_863=m
++CONFIG_NLS_CODEPAGE_864=m
++CONFIG_NLS_CODEPAGE_865=m
++CONFIG_NLS_CODEPAGE_866=m
++CONFIG_NLS_CODEPAGE_869=m
++CONFIG_NLS_CODEPAGE_936=m
++CONFIG_NLS_CODEPAGE_950=m
++CONFIG_NLS_CODEPAGE_932=m
++CONFIG_NLS_CODEPAGE_949=m
++CONFIG_NLS_CODEPAGE_874=m
++CONFIG_NLS_ISO8859_8=m
++CONFIG_NLS_CODEPAGE_1250=m
++CONFIG_NLS_CODEPAGE_1251=m
++CONFIG_NLS_ASCII=y
++CONFIG_NLS_ISO8859_1=m
++CONFIG_NLS_ISO8859_2=m
++CONFIG_NLS_ISO8859_3=m
++CONFIG_NLS_ISO8859_4=m
++CONFIG_NLS_ISO8859_5=m
++CONFIG_NLS_ISO8859_6=m
++CONFIG_NLS_ISO8859_7=m
++CONFIG_NLS_ISO8859_9=m
++CONFIG_NLS_ISO8859_13=m
++CONFIG_NLS_ISO8859_14=m
++CONFIG_NLS_ISO8859_15=m
++CONFIG_NLS_KOI8_R=m
++CONFIG_NLS_KOI8_U=m
++CONFIG_NLS_UTF8=m
++
++#
++# Distributed Lock Manager
++#
++# CONFIG_DLM is not set
++
++#
++# Instrumentation Support
++#
++CONFIG_PROFILING=y
++CONFIG_OPROFILE=m
++CONFIG_KPROBES=y
++
++#
++# Kernel hacking
++#
++CONFIG_TRACE_IRQFLAGS_SUPPORT=y
++CONFIG_PRINTK_TIME=y
++# CONFIG_ENABLE_MUST_CHECK is not set
++CONFIG_MAGIC_SYSRQ=y
++CONFIG_UNUSED_SYMBOLS=y
++CONFIG_DEBUG_FS=y
++# CONFIG_HEADERS_CHECK is not set
++CONFIG_DEBUG_KERNEL=y
++# CONFIG_DEBUG_SHIRQ is not set
++CONFIG_DETECT_SOFTLOCKUP=y
++CONFIG_SCHEDSTATS=y
++CONFIG_TIMER_STATS=y
++# CONFIG_DEBUG_SLAB is not set
++CONFIG_DEBUG_PREEMPT=y
++# CONFIG_DEBUG_RT_MUTEXES is not set
++# CONFIG_RT_MUTEX_TESTER is not set
++CONFIG_DEBUG_SPINLOCK=y
++# CONFIG_DEBUG_MUTEXES is not set
++# CONFIG_DEBUG_LOCK_ALLOC is not set
++# CONFIG_PROVE_LOCKING is not set
++CONFIG_DEBUG_SPINLOCK_SLEEP=y
++# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set
++# CONFIG_DEBUG_KOBJECT is not set
++# CONFIG_DEBUG_BUGVERBOSE is not set
++CONFIG_DEBUG_INFO=y
++CONFIG_DEBUG_VM=y
++CONFIG_DEBUG_LIST=y
++# CONFIG_FRAME_POINTER is not set
++# CONFIG_FORCED_INLINING is not set
++# CONFIG_RCU_TORTURE_TEST is not set
++# CONFIG_LKDTM is not set
++# CONFIG_FAULT_INJECTION is not set
++CONFIG_EARLY_PRINTK=y
++CONFIG_DEBUG_STACKOVERFLOW=y
++CONFIG_DEBUG_STACK_USAGE=y
++
++#
++# Page alloc debug is incompatible with Software Suspend on i386
++#
++CONFIG_DEBUG_RODATA=y
++CONFIG_4KSTACKS=y
++CONFIG_DOUBLEFAULT=y
++
++#
++# Security options
++#
++CONFIG_KEYS=y
++CONFIG_KEYS_DEBUG_PROC_KEYS=y
++CONFIG_SECURITY=y
++CONFIG_SECURITY_NETWORK=y
++CONFIG_SECURITY_NETWORK_XFRM=y
++CONFIG_SECURITY_CAPABILITIES=y
++# CONFIG_SECURITY_ROOTPLUG is not set
++CONFIG_SECURITY_SELINUX=y
++CONFIG_SECURITY_SELINUX_BOOTPARAM=y
++CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=1
++# CONFIG_SECURITY_SELINUX_DISABLE is not set
++CONFIG_SECURITY_SELINUX_DEVELOP=y
++CONFIG_SECURITY_SELINUX_AVC_STATS=y
++CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
++# CONFIG_SECURITY_SELINUX_ENABLE_SECMARK_DEFAULT is not set
++# CONFIG_SECURITY_SELINUX_POLICYDB_VERSION_MAX is not set
++
++#
++# Cryptographic options
++#
++CONFIG_CRYPTO=y
++CONFIG_CRYPTO_ALGAPI=y
++CONFIG_CRYPTO_BLKCIPHER=y
++CONFIG_CRYPTO_HASH=y
++CONFIG_CRYPTO_MANAGER=y
++CONFIG_CRYPTO_HMAC=y
++CONFIG_CRYPTO_XCBC=m
++CONFIG_CRYPTO_NULL=m
++CONFIG_CRYPTO_MD4=m
++CONFIG_CRYPTO_MD5=y
++CONFIG_CRYPTO_SHA1=y
++CONFIG_CRYPTO_SHA256=m
++CONFIG_CRYPTO_SHA512=m
++CONFIG_CRYPTO_WP512=m
++CONFIG_CRYPTO_TGR192=m
++CONFIG_CRYPTO_GF128MUL=m
++CONFIG_CRYPTO_ECB=m
++CONFIG_CRYPTO_CBC=m
++CONFIG_CRYPTO_PCBC=m
++CONFIG_CRYPTO_LRW=m
++# CONFIG_CRYPTO_CRYPTD is not set
++CONFIG_CRYPTO_DES=m
++CONFIG_CRYPTO_FCRYPT=m
++CONFIG_CRYPTO_BLOWFISH=m
++CONFIG_CRYPTO_TWOFISH=m
++CONFIG_CRYPTO_TWOFISH_COMMON=m
++# CONFIG_CRYPTO_TWOFISH_586 is not set
++CONFIG_CRYPTO_SERPENT=m
++CONFIG_CRYPTO_AES=m
++CONFIG_CRYPTO_AES_586=m
++CONFIG_CRYPTO_CAST5=m
++CONFIG_CRYPTO_CAST6=m
++CONFIG_CRYPTO_TEA=m
++CONFIG_CRYPTO_ARC4=m
++CONFIG_CRYPTO_KHAZAD=m
++CONFIG_CRYPTO_ANUBIS=m
++CONFIG_CRYPTO_DEFLATE=m
++CONFIG_CRYPTO_MICHAEL_MIC=m
++CONFIG_CRYPTO_CRC32C=m
++CONFIG_CRYPTO_CAMELLIA=m
++# CONFIG_CRYPTO_TEST is not set
++
++#
++# Hardware crypto devices
++#
++# CONFIG_CRYPTO_DEV_PADLOCK is not set
++CONFIG_CRYPTO_DEV_GEODE=y
++
++#
++# Library routines
++#
++CONFIG_BITREVERSE=y
++CONFIG_CRC_CCITT=m
++CONFIG_CRC16=m
++# CONFIG_CRC_ITU_T is not set
++CONFIG_CRC32=y
++CONFIG_LIBCRC32C=m
++CONFIG_AUDIT_GENERIC=y
++CONFIG_ZLIB_INFLATE=y
++CONFIG_ZLIB_DEFLATE=y
++CONFIG_REED_SOLOMON=y
++CONFIG_REED_SOLOMON_DEC16=y
++CONFIG_TEXTSEARCH=y
++CONFIG_TEXTSEARCH_KMP=m
++CONFIG_TEXTSEARCH_BM=m
++CONFIG_TEXTSEARCH_FSM=m
++CONFIG_PLIST=y
++CONFIG_HAS_IOMEM=y
++CONFIG_HAS_IOPORT=y
++CONFIG_HAS_DMA=y
++CONFIG_GENERIC_HARDIRQS=y
++CONFIG_GENERIC_IRQ_PROBE=y
++CONFIG_X86_BIOS_REBOOT=y
++CONFIG_KTIME_SCALAR=y
+diff --git a/arch/i386/configs/xs_defconfig b/arch/i386/configs/xs_defconfig
+new file mode 100644
+index 0000000..b937de5
+--- /dev/null
++++ b/arch/i386/configs/xs_defconfig
+@@ -0,0 +1,2221 @@
++#
++# Automatically generated make config: don't edit
++# Linux kernel version: 2.6.22-rc5
++# Wed Jun 20 08:26:53 2007
++#
++CONFIG_X86_32=y
++CONFIG_GENERIC_TIME=y
++CONFIG_CLOCKSOURCE_WATCHDOG=y
++CONFIG_GENERIC_CLOCKEVENTS=y
++CONFIG_LOCKDEP_SUPPORT=y
++CONFIG_STACKTRACE_SUPPORT=y
++CONFIG_SEMAPHORE_SLEEPERS=y
++CONFIG_X86=y
++CONFIG_MMU=y
++CONFIG_ZONE_DMA=y
++CONFIG_QUICKLIST=y
++CONFIG_GENERIC_ISA_DMA=y
++CONFIG_GENERIC_IOMAP=y
++CONFIG_GENERIC_BUG=y
++CONFIG_GENERIC_HWEIGHT=y
++CONFIG_ARCH_MAY_HAVE_PC_FDC=y
++CONFIG_DMI=y
++CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
++
++#
++# Code maturity level options
++#
++CONFIG_EXPERIMENTAL=y
++CONFIG_BROKEN_ON_SMP=y
++CONFIG_LOCK_KERNEL=y
++CONFIG_INIT_ENV_ARG_LIMIT=32
++
++#
++# General setup
++#
++CONFIG_LOCALVERSION=""
++# CONFIG_LOCALVERSION_AUTO is not set
++CONFIG_SWAP=y
++CONFIG_SYSVIPC=y
++# CONFIG_IPC_NS is not set
++CONFIG_SYSVIPC_SYSCTL=y
++CONFIG_POSIX_MQUEUE=y
++CONFIG_BSD_PROCESS_ACCT=y
++# CONFIG_BSD_PROCESS_ACCT_V3 is not set
++# CONFIG_TASKSTATS is not set
++# CONFIG_UTS_NS is not set
++CONFIG_AUDIT=y
++CONFIG_AUDITSYSCALL=y
++# CONFIG_IKCONFIG is not set
++CONFIG_LOG_BUF_SHIFT=17
++# CONFIG_SYSFS_DEPRECATED is not set
++CONFIG_RELAY=y
++CONFIG_BLK_DEV_INITRD=y
++CONFIG_INITRAMFS_SOURCE=""
++CONFIG_CC_OPTIMIZE_FOR_SIZE=y
++CONFIG_SYSCTL=y
++CONFIG_EMBEDDED=y
++CONFIG_UID16=y
++# CONFIG_SYSCTL_SYSCALL is not set
++CONFIG_KALLSYMS=y
++# CONFIG_KALLSYMS_ALL is not set
++CONFIG_KALLSYMS_EXTRA_PASS=y
++CONFIG_HOTPLUG=y
++CONFIG_PRINTK=y
++CONFIG_BUG=y
++CONFIG_ELF_CORE=y
++# CONFIG_BASE_FULL is not set
++CONFIG_FUTEX=y
++CONFIG_ANON_INODES=y
++CONFIG_EPOLL=y
++CONFIG_SIGNALFD=y
++CONFIG_TIMERFD=y
++CONFIG_EVENTFD=y
++CONFIG_SHMEM=y
++CONFIG_VM_EVENT_COUNTERS=y
++CONFIG_SLAB=y
++# CONFIG_SLUB is not set
++# CONFIG_SLOB is not set
++CONFIG_RT_MUTEXES=y
++# CONFIG_TINY_SHMEM is not set
++CONFIG_BASE_SMALL=1
++
++#
++# Loadable module support
++#
++CONFIG_MODULES=y
++CONFIG_MODULE_UNLOAD=y
++# CONFIG_MODULE_FORCE_UNLOAD is not set
++CONFIG_MODVERSIONS=y
++CONFIG_MODULE_SRCVERSION_ALL=y
++CONFIG_KMOD=y
++
++#
++# Block layer
++#
++CONFIG_BLOCK=y
++# CONFIG_LBD is not set
++# CONFIG_BLK_DEV_IO_TRACE is not set
++# CONFIG_LSF is not set
++
++#
++# IO Schedulers
++#
++CONFIG_IOSCHED_NOOP=y
++# CONFIG_IOSCHED_AS is not set
++# CONFIG_IOSCHED_DEADLINE is not set
++CONFIG_IOSCHED_CFQ=y
++# CONFIG_DEFAULT_AS is not set
++# CONFIG_DEFAULT_DEADLINE is not set
++CONFIG_DEFAULT_CFQ=y
++# CONFIG_DEFAULT_NOOP is not set
++CONFIG_DEFAULT_IOSCHED="cfq"
++
++#
++# Processor type and features
++#
++CONFIG_TICK_ONESHOT=y
++CONFIG_NO_HZ=y
++CONFIG_HIGH_RES_TIMERS=y
++# CONFIG_SMP is not set
++CONFIG_X86_PC=y
++# CONFIG_X86_ELAN is not set
++# CONFIG_X86_VOYAGER is not set
++# CONFIG_X86_NUMAQ is not set
++# CONFIG_X86_SUMMIT is not set
++# CONFIG_X86_BIGSMP is not set
++# CONFIG_X86_VISWS is not set
++# CONFIG_X86_GENERICARCH is not set
++# CONFIG_X86_ES7000 is not set
++# CONFIG_PARAVIRT is not set
++# CONFIG_M386 is not set
++# CONFIG_M486 is not set
++# CONFIG_M586 is not set
++# CONFIG_M586TSC is not set
++# CONFIG_M586MMX is not set
++# CONFIG_M686 is not set
++# CONFIG_MPENTIUMII is not set
++# CONFIG_MPENTIUMIII is not set
++# CONFIG_MPENTIUMM is not set
++# CONFIG_MCORE2 is not set
++# CONFIG_MPENTIUM4 is not set
++# CONFIG_MK6 is not set
++# CONFIG_MK7 is not set
++# CONFIG_MK8 is not set
++# CONFIG_MCRUSOE is not set
++# CONFIG_MEFFICEON is not set
++# CONFIG_MWINCHIPC6 is not set
++# CONFIG_MWINCHIP2 is not set
++# CONFIG_MWINCHIP3D is not set
++# CONFIG_MGEODEGX1 is not set
++CONFIG_MGEODE_LX=y
++# CONFIG_MCYRIXIII is not set
++# CONFIG_MVIAC3_2 is not set
++# CONFIG_MVIAC7 is not set
++# CONFIG_X86_GENERIC is not set
++CONFIG_X86_CMPXCHG=y
++CONFIG_X86_L1_CACHE_SHIFT=5
++CONFIG_X86_XADD=y
++CONFIG_RWSEM_XCHGADD_ALGORITHM=y
++# CONFIG_ARCH_HAS_ILOG2_U32 is not set
++# CONFIG_ARCH_HAS_ILOG2_U64 is not set
++CONFIG_GENERIC_CALIBRATE_DELAY=y
++CONFIG_X86_WP_WORKS_OK=y
++CONFIG_X86_INVLPG=y
++CONFIG_X86_BSWAP=y
++CONFIG_X86_POPAD_OK=y
++CONFIG_X86_CMPXCHG64=y
++CONFIG_X86_USE_PPRO_CHECKSUM=y
++CONFIG_X86_USE_3DNOW=y
++CONFIG_X86_TSC=y
++CONFIG_X86_MINIMUM_CPU_MODEL=4
++# CONFIG_HPET_TIMER is not set
++# CONFIG_PREEMPT_NONE is not set
++# CONFIG_PREEMPT_VOLUNTARY is not set
++CONFIG_PREEMPT=y
++CONFIG_PREEMPT_BKL=y
++# CONFIG_X86_UP_APIC is not set
++# CONFIG_X86_MCE is not set
++# CONFIG_VM86 is not set
++# CONFIG_TOSHIBA is not set
++# CONFIG_I8K is not set
++CONFIG_X86_REBOOTFIXUPS=y
++# CONFIG_MICROCODE is not set
++CONFIG_X86_MSR=y
++CONFIG_X86_CPUID=m
++
++#
++# Firmware Drivers
++#
++# CONFIG_EDD is not set
++# CONFIG_DELL_RBU is not set
++# CONFIG_DCDBAS is not set
++CONFIG_NOHIGHMEM=y
++# CONFIG_HIGHMEM4G is not set
++# CONFIG_HIGHMEM64G is not set
++CONFIG_VMSPLIT_3G=y
++# CONFIG_VMSPLIT_3G_OPT is not set
++# CONFIG_VMSPLIT_2G is not set
++# CONFIG_VMSPLIT_2G_OPT is not set
++# CONFIG_VMSPLIT_1G is not set
++CONFIG_PAGE_OFFSET=0xC0000000
++CONFIG_ARCH_FLATMEM_ENABLE=y
++CONFIG_ARCH_SPARSEMEM_ENABLE=y
++CONFIG_ARCH_SELECT_MEMORY_MODEL=y
++CONFIG_ARCH_POPULATES_NODE_MAP=y
++CONFIG_SELECT_MEMORY_MODEL=y
++CONFIG_FLATMEM_MANUAL=y
++# CONFIG_DISCONTIGMEM_MANUAL is not set
++# CONFIG_SPARSEMEM_MANUAL is not set
++CONFIG_FLATMEM=y
++CONFIG_FLAT_NODE_MEM_MAP=y
++CONFIG_SPARSEMEM_STATIC=y
++CONFIG_SPLIT_PTLOCK_CPUS=4
++# CONFIG_RESOURCES_64BIT is not set
++CONFIG_ZONE_DMA_FLAG=1
++CONFIG_NR_QUICK=1
++# CONFIG_MATH_EMULATION is not set
++# CONFIG_MTRR is not set
++# CONFIG_SECCOMP is not set
++# CONFIG_VGA_NOPROBE is not set
++CONFIG_HZ_100=y
++# CONFIG_HZ_250 is not set
++# CONFIG_HZ_300 is not set
++# CONFIG_HZ_1000 is not set
++CONFIG_HZ=100
++CONFIG_KEXEC=y
++CONFIG_PHYSICAL_START=0x400000
++# CONFIG_RELOCATABLE is not set
++CONFIG_PHYSICAL_ALIGN=0x100000
++# CONFIG_COMPAT_VDSO is not set
++
++#
++# Power management options (ACPI, APM)
++#
++CONFIG_PM=y
++CONFIG_PM_LEGACY=y
++CONFIG_PM_DEBUG=y
++# CONFIG_DISABLE_CONSOLE_SUSPEND is not set
++CONFIG_DISABLE_SUSPEND_VT_SWITCH=y
++# CONFIG_PM_TRACE is not set
++# CONFIG_PM_SYSFS_DEPRECATED is not set
++CONFIG_SOFTWARE_SUSPEND=y
++CONFIG_PM_STD_PARTITION=""
++
++#
++# ACPI (Advanced Configuration and Power Interface) Support
++#
++# CONFIG_ACPI is not set
++# CONFIG_APM is not set
++
++#
++# CPU Frequency scaling
++#
++# CONFIG_CPU_FREQ is not set
++
++#
++# Bus options (PCI, PCMCIA, EISA, MCA, ISA)
++#
++CONFIG_PCI=y
++# CONFIG_PCI_GOBIOS is not set
++# CONFIG_PCI_GOMMCONFIG is not set
++# CONFIG_PCI_GODIRECT is not set
++# CONFIG_PCI_GOANY is not set
++CONFIG_PCI_GOOLPC=y
++CONFIG_PCI_DIRECT=y
++CONFIG_PCI_OLPC=y
++# CONFIG_PCIEPORTBUS is not set
++# CONFIG_ARCH_SUPPORTS_MSI is not set
++# CONFIG_PCI_DEBUG is not set
++CONFIG_ISA_DMA_API=y
++# CONFIG_ISA is not set
++# CONFIG_MCA is not set
++# CONFIG_SCx200 is not set
++CONFIG_GEODE_MFGPT_TIMER=y
++CONFIG_OLPC=y
++CONFIG_OLPC_PM=y
++CONFIG_OPEN_FIRMWARE=y
++
++#
++# PCCARD (PCMCIA/CardBus) support
++#
++# CONFIG_PCCARD is not set
++# CONFIG_HOTPLUG_PCI is not set
++
++#
++# Executable file formats
++#
++CONFIG_BINFMT_ELF=y
++# CONFIG_BINFMT_AOUT is not set
++CONFIG_BINFMT_MISC=y
++
++#
++# Networking
++#
++CONFIG_NET=y
++
++#
++# Networking options
++#
++CONFIG_PACKET=y
++CONFIG_PACKET_MMAP=y
++CONFIG_UNIX=y
++CONFIG_XFRM=y
++CONFIG_XFRM_USER=y
++# CONFIG_XFRM_SUB_POLICY is not set
++CONFIG_XFRM_MIGRATE=y
++CONFIG_NET_KEY=m
++CONFIG_NET_KEY_MIGRATE=y
++CONFIG_INET=y
++CONFIG_IP_MULTICAST=y
++CONFIG_IP_ADVANCED_ROUTER=y
++CONFIG_ASK_IP_FIB_HASH=y
++# CONFIG_IP_FIB_TRIE is not set
++CONFIG_IP_FIB_HASH=y
++CONFIG_IP_MULTIPLE_TABLES=y
++CONFIG_IP_ROUTE_MULTIPATH=y
++# CONFIG_IP_ROUTE_MULTIPATH_CACHED is not set
++CONFIG_IP_ROUTE_VERBOSE=y
++# CONFIG_IP_PNP is not set
++# CONFIG_NET_IPIP is not set
++# CONFIG_NET_IPGRE is not set
++# CONFIG_IP_MROUTE is not set
++# CONFIG_ARPD is not set
++CONFIG_SYN_COOKIES=y
++CONFIG_INET_AH=m
++CONFIG_INET_ESP=m
++CONFIG_INET_IPCOMP=m
++CONFIG_INET_XFRM_TUNNEL=m
++CONFIG_INET_TUNNEL=m
++CONFIG_INET_XFRM_MODE_TRANSPORT=y
++CONFIG_INET_XFRM_MODE_TUNNEL=y
++CONFIG_INET_XFRM_MODE_BEET=y
++# CONFIG_INET_DIAG is not set
++CONFIG_TCP_CONG_ADVANCED=y
++CONFIG_TCP_CONG_BIC=y
++CONFIG_TCP_CONG_CUBIC=m
++CONFIG_TCP_CONG_WESTWOOD=m
++CONFIG_TCP_CONG_HTCP=m
++CONFIG_TCP_CONG_HSTCP=m
++CONFIG_TCP_CONG_HYBLA=m
++CONFIG_TCP_CONG_VEGAS=m
++CONFIG_TCP_CONG_SCALABLE=m
++CONFIG_TCP_CONG_LP=m
++CONFIG_TCP_CONG_VENO=m
++CONFIG_TCP_CONG_YEAH=m
++CONFIG_TCP_CONG_ILLINOIS=m
++CONFIG_DEFAULT_BIC=y
++# CONFIG_DEFAULT_CUBIC is not set
++# CONFIG_DEFAULT_HTCP is not set
++# CONFIG_DEFAULT_VEGAS is not set
++# CONFIG_DEFAULT_WESTWOOD is not set
++# CONFIG_DEFAULT_RENO is not set
++CONFIG_DEFAULT_TCP_CONG="bic"
++# CONFIG_TCP_MD5SIG is not set
++# CONFIG_IP_VS is not set
++CONFIG_IPV6=m
++CONFIG_IPV6_PRIVACY=y
++CONFIG_IPV6_ROUTER_PREF=y
++CONFIG_IPV6_ROUTE_INFO=y
++CONFIG_IPV6_OPTIMISTIC_DAD=y
++CONFIG_INET6_AH=m
++CONFIG_INET6_ESP=m
++CONFIG_INET6_IPCOMP=m
++CONFIG_IPV6_MIP6=y
++CONFIG_INET6_XFRM_TUNNEL=m
++CONFIG_INET6_TUNNEL=m
++CONFIG_INET6_XFRM_MODE_TRANSPORT=m
++CONFIG_INET6_XFRM_MODE_TUNNEL=m
++CONFIG_INET6_XFRM_MODE_BEET=m
++CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION=m
++CONFIG_IPV6_SIT=m
++CONFIG_IPV6_TUNNEL=m
++CONFIG_IPV6_MULTIPLE_TABLES=y
++CONFIG_IPV6_SUBTREES=y
++# CONFIG_NETLABEL is not set
++CONFIG_NETWORK_SECMARK=y
++CONFIG_NETFILTER=y
++# CONFIG_NETFILTER_DEBUG is not set
++
++#
++# Core Netfilter Configuration
++#
++CONFIG_NETFILTER_NETLINK=m
++# CONFIG_NETFILTER_NETLINK_QUEUE is not set
++# CONFIG_NETFILTER_NETLINK_LOG is not set
++CONFIG_NF_CONNTRACK_ENABLED=m
++CONFIG_NF_CONNTRACK=m
++# CONFIG_NF_CT_ACCT is not set
++# CONFIG_NF_CONNTRACK_MARK is not set
++# CONFIG_NF_CONNTRACK_SECMARK is not set
++# CONFIG_NF_CONNTRACK_EVENTS is not set
++# CONFIG_NF_CT_PROTO_SCTP is not set
++# CONFIG_NF_CONNTRACK_AMANDA is not set
++CONFIG_NF_CONNTRACK_FTP=m
++# CONFIG_NF_CONNTRACK_H323 is not set
++CONFIG_NF_CONNTRACK_IRC=m
++# CONFIG_NF_CONNTRACK_NETBIOS_NS is not set
++# CONFIG_NF_CONNTRACK_PPTP is not set
++# CONFIG_NF_CONNTRACK_SANE is not set
++# CONFIG_NF_CONNTRACK_SIP is not set
++# CONFIG_NF_CONNTRACK_TFTP is not set
++# CONFIG_NF_CT_NETLINK is not set
++CONFIG_NETFILTER_XTABLES=m
++# CONFIG_NETFILTER_XT_TARGET_CLASSIFY is not set
++# CONFIG_NETFILTER_XT_TARGET_MARK is not set
++# CONFIG_NETFILTER_XT_TARGET_NFQUEUE is not set
++CONFIG_NETFILTER_XT_TARGET_NFLOG=m
++# CONFIG_NETFILTER_XT_TARGET_SECMARK is not set
++# CONFIG_NETFILTER_XT_TARGET_TCPMSS is not set
++# CONFIG_NETFILTER_XT_MATCH_COMMENT is not set
++# CONFIG_NETFILTER_XT_MATCH_CONNBYTES is not set
++# CONFIG_NETFILTER_XT_MATCH_CONNMARK is not set
++# CONFIG_NETFILTER_XT_MATCH_CONNTRACK is not set
++# CONFIG_NETFILTER_XT_MATCH_DCCP is not set
++# CONFIG_NETFILTER_XT_MATCH_DSCP is not set
++# CONFIG_NETFILTER_XT_MATCH_ESP is not set
++# CONFIG_NETFILTER_XT_MATCH_HELPER is not set
++# CONFIG_NETFILTER_XT_MATCH_LENGTH is not set
++# CONFIG_NETFILTER_XT_MATCH_LIMIT is not set
++# CONFIG_NETFILTER_XT_MATCH_MAC is not set
++# CONFIG_NETFILTER_XT_MATCH_MARK is not set
++# CONFIG_NETFILTER_XT_MATCH_POLICY is not set
++# CONFIG_NETFILTER_XT_MATCH_MULTIPORT is not set
++# CONFIG_NETFILTER_XT_MATCH_PKTTYPE is not set
++# CONFIG_NETFILTER_XT_MATCH_QUOTA is not set
++# CONFIG_NETFILTER_XT_MATCH_REALM is not set
++# CONFIG_NETFILTER_XT_MATCH_SCTP is not set
++CONFIG_NETFILTER_XT_MATCH_STATE=m
++# CONFIG_NETFILTER_XT_MATCH_STATISTIC is not set
++# CONFIG_NETFILTER_XT_MATCH_STRING is not set
++# CONFIG_NETFILTER_XT_MATCH_TCPMSS is not set
++# CONFIG_NETFILTER_XT_MATCH_HASHLIMIT is not set
++
++#
++# IP: Netfilter Configuration
++#
++CONFIG_NF_CONNTRACK_IPV4=m
++CONFIG_NF_CONNTRACK_PROC_COMPAT=y
++# CONFIG_IP_NF_QUEUE is not set
++CONFIG_IP_NF_IPTABLES=m
++# CONFIG_IP_NF_MATCH_IPRANGE is not set
++# CONFIG_IP_NF_MATCH_TOS is not set
++# CONFIG_IP_NF_MATCH_RECENT is not set
++# CONFIG_IP_NF_MATCH_ECN is not set
++# CONFIG_IP_NF_MATCH_AH is not set
++# CONFIG_IP_NF_MATCH_TTL is not set
++# CONFIG_IP_NF_MATCH_OWNER is not set
++# CONFIG_IP_NF_MATCH_ADDRTYPE is not set
++CONFIG_IP_NF_FILTER=m
++# CONFIG_IP_NF_TARGET_REJECT is not set
++CONFIG_IP_NF_TARGET_LOG=m
++# CONFIG_IP_NF_TARGET_ULOG is not set
++CONFIG_NF_NAT=m
++CONFIG_NF_NAT_NEEDED=y
++CONFIG_IP_NF_TARGET_MASQUERADE=m
++# CONFIG_IP_NF_TARGET_REDIRECT is not set
++# CONFIG_IP_NF_TARGET_NETMAP is not set
++# CONFIG_IP_NF_TARGET_SAME is not set
++# CONFIG_NF_NAT_SNMP_BASIC is not set
++CONFIG_NF_NAT_FTP=m
++CONFIG_NF_NAT_IRC=m
++# CONFIG_NF_NAT_TFTP is not set
++# CONFIG_NF_NAT_AMANDA is not set
++# CONFIG_NF_NAT_PPTP is not set
++# CONFIG_NF_NAT_H323 is not set
++# CONFIG_NF_NAT_SIP is not set
++# CONFIG_IP_NF_MANGLE is not set
++# CONFIG_IP_NF_RAW is not set
++# CONFIG_IP_NF_ARPTABLES is not set
++
++#
++# IPv6: Netfilter Configuration (EXPERIMENTAL)
++#
++# CONFIG_NF_CONNTRACK_IPV6 is not set
++# CONFIG_IP6_NF_QUEUE is not set
++# CONFIG_IP6_NF_IPTABLES is not set
++# CONFIG_IP_DCCP is not set
++# CONFIG_IP_SCTP is not set
++# CONFIG_TIPC is not set
++# CONFIG_ATM is not set
++# CONFIG_BRIDGE is not set
++# CONFIG_VLAN_8021Q is not set
++# CONFIG_DECNET is not set
++# CONFIG_LLC2 is not set
++# CONFIG_IPX is not set
++# CONFIG_ATALK is not set
++# CONFIG_X25 is not set
++# CONFIG_LAPB is not set
++# CONFIG_ECONET is not set
++# CONFIG_WAN_ROUTER is not set
++
++#
++# QoS and/or fair queueing
++#
++CONFIG_NET_SCHED=y
++CONFIG_NET_SCH_FIFO=y
++
++#
++# Queueing/Scheduling
++#
++CONFIG_NET_SCH_CBQ=m
++CONFIG_NET_SCH_HTB=m
++CONFIG_NET_SCH_HFSC=m
++CONFIG_NET_SCH_PRIO=m
++CONFIG_NET_SCH_RED=m
++CONFIG_NET_SCH_SFQ=m
++CONFIG_NET_SCH_TEQL=m
++CONFIG_NET_SCH_TBF=m
++CONFIG_NET_SCH_GRED=m
++CONFIG_NET_SCH_DSMARK=m
++CONFIG_NET_SCH_NETEM=m
++CONFIG_NET_SCH_INGRESS=m
++
++#
++# Classification
++#
++CONFIG_NET_CLS=y
++CONFIG_NET_CLS_BASIC=m
++CONFIG_NET_CLS_TCINDEX=m
++CONFIG_NET_CLS_ROUTE4=m
++CONFIG_NET_CLS_ROUTE=y
++CONFIG_NET_CLS_FW=m
++CONFIG_NET_CLS_U32=m
++CONFIG_CLS_U32_PERF=y
++CONFIG_CLS_U32_MARK=y
++CONFIG_NET_CLS_RSVP=m
++CONFIG_NET_CLS_RSVP6=m
++CONFIG_NET_EMATCH=y
++CONFIG_NET_EMATCH_STACK=32
++CONFIG_NET_EMATCH_CMP=m
++CONFIG_NET_EMATCH_NBYTE=m
++CONFIG_NET_EMATCH_U32=m
++CONFIG_NET_EMATCH_META=m
++CONFIG_NET_EMATCH_TEXT=m
++CONFIG_NET_CLS_ACT=y
++CONFIG_NET_ACT_POLICE=m
++CONFIG_NET_ACT_GACT=m
++CONFIG_GACT_PROB=y
++CONFIG_NET_ACT_MIRRED=m
++# CONFIG_NET_ACT_IPT is not set
++CONFIG_NET_ACT_PEDIT=m
++CONFIG_NET_ACT_SIMP=m
++CONFIG_NET_CLS_IND=y
++CONFIG_NET_ESTIMATOR=y
++
++#
++# Network testing
++#
++# CONFIG_NET_PKTGEN is not set
++# CONFIG_NET_TCPPROBE is not set
++# CONFIG_HAMRADIO is not set
++# CONFIG_IRDA is not set
++# CONFIG_BT is not set
++# CONFIG_AF_RXRPC is not set
++CONFIG_FIB_RULES=y
++
++#
++# Wireless
++#
++# CONFIG_CFG80211 is not set
++CONFIG_WIRELESS_EXT=y
++# CONFIG_MAC80211 is not set
++CONFIG_IEEE80211=m
++# CONFIG_IEEE80211_DEBUG is not set
++CONFIG_IEEE80211_CRYPT_WEP=m
++CONFIG_IEEE80211_CRYPT_CCMP=m
++CONFIG_IEEE80211_CRYPT_TKIP=m
++CONFIG_IEEE80211_SOFTMAC=m
++CONFIG_IEEE80211_SOFTMAC_DEBUG=y
++# CONFIG_RFKILL is not set
++
++#
++# Device Drivers
++#
++
++#
++# Generic Driver Options
++#
++CONFIG_STANDALONE=y
++CONFIG_PREVENT_FIRMWARE_BUILD=y
++CONFIG_FW_LOADER=y
++# CONFIG_DEBUG_DRIVER is not set
++# CONFIG_DEBUG_DEVRES is not set
++# CONFIG_SYS_HYPERVISOR is not set
++
++#
++# Connector - unified userspace <-> kernelspace linker
++#
++# CONFIG_CONNECTOR is not set
++CONFIG_MTD=y
++# CONFIG_MTD_DEBUG is not set
++CONFIG_MTD_CONCAT=m
++CONFIG_MTD_PARTITIONS=y
++CONFIG_MTD_REDBOOT_PARTS=m
++CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK=-1
++# CONFIG_MTD_REDBOOT_PARTS_UNALLOCATED is not set
++# CONFIG_MTD_REDBOOT_PARTS_READONLY is not set
++CONFIG_MTD_CMDLINE_PARTS=y
++
++#
++# User Modules And Translation Layers
++#
++CONFIG_MTD_CHAR=m
++CONFIG_MTD_BLKDEVS=m
++CONFIG_MTD_BLOCK=m
++CONFIG_MTD_BLOCK_RO=m
++CONFIG_FTL=m
++CONFIG_NFTL=m
++CONFIG_NFTL_RW=y
++CONFIG_INFTL=m
++CONFIG_RFD_FTL=m
++# CONFIG_SSFDC is not set
++
++#
++# RAM/ROM/Flash chip drivers
++#
++CONFIG_MTD_CFI=m
++CONFIG_MTD_JEDECPROBE=m
++CONFIG_MTD_GEN_PROBE=m
++# CONFIG_MTD_CFI_ADV_OPTIONS is not set
++CONFIG_MTD_MAP_BANK_WIDTH_1=y
++CONFIG_MTD_MAP_BANK_WIDTH_2=y
++CONFIG_MTD_MAP_BANK_WIDTH_4=y
++# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set
++# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set
++# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set
++CONFIG_MTD_CFI_I1=y
++CONFIG_MTD_CFI_I2=y
++# CONFIG_MTD_CFI_I4 is not set
++# CONFIG_MTD_CFI_I8 is not set
++CONFIG_MTD_CFI_INTELEXT=m
++CONFIG_MTD_CFI_AMDSTD=m
++CONFIG_MTD_CFI_STAA=m
++CONFIG_MTD_CFI_UTIL=m
++CONFIG_MTD_RAM=m
++CONFIG_MTD_ROM=m
++CONFIG_MTD_ABSENT=m
++
++#
++# Mapping drivers for chip access
++#
++CONFIG_MTD_COMPLEX_MAPPINGS=y
++# CONFIG_MTD_PHYSMAP is not set
++# CONFIG_MTD_PNC2000 is not set
++CONFIG_MTD_SC520CDP=m
++CONFIG_MTD_NETSC520=m
++CONFIG_MTD_TS5500=m
++# CONFIG_MTD_SBC_GXX is not set
++# CONFIG_MTD_AMD76XROM is not set
++# CONFIG_MTD_ICHXROM is not set
++# CONFIG_MTD_ESB2ROM is not set
++# CONFIG_MTD_CK804XROM is not set
++CONFIG_MTD_SCB2_FLASH=m
++# CONFIG_MTD_NETtel is not set
++# CONFIG_MTD_DILNETPC is not set
++# CONFIG_MTD_L440GX is not set
++CONFIG_MTD_PCI=m
++# CONFIG_MTD_PLATRAM is not set
++
++#
++# Self-contained MTD device drivers
++#
++CONFIG_MTD_PMC551=m
++# CONFIG_MTD_PMC551_BUGFIX is not set
++# CONFIG_MTD_PMC551_DEBUG is not set
++# CONFIG_MTD_SLRAM is not set
++# CONFIG_MTD_PHRAM is not set
++CONFIG_MTD_MTDRAM=m
++CONFIG_MTDRAM_TOTAL_SIZE=4096
++CONFIG_MTDRAM_ERASE_SIZE=128
++CONFIG_MTD_BLOCK2MTD=m
++
++#
++# Disk-On-Chip Device Drivers
++#
++# CONFIG_MTD_DOC2000 is not set
++# CONFIG_MTD_DOC2001 is not set
++# CONFIG_MTD_DOC2001PLUS is not set
++CONFIG_MTD_NAND=y
++# CONFIG_MTD_NAND_VERIFY_WRITE is not set
++# CONFIG_MTD_NAND_ECC_SMC is not set
++# CONFIG_MTD_NAND_MUSEUM_IDS is not set
++CONFIG_MTD_NAND_IDS=y
++CONFIG_MTD_NAND_DISKONCHIP=m
++# CONFIG_MTD_NAND_DISKONCHIP_PROBE_ADVANCED is not set
++CONFIG_MTD_NAND_DISKONCHIP_PROBE_ADDRESS=0
++# CONFIG_MTD_NAND_DISKONCHIP_BBTWRITE is not set
++CONFIG_MTD_NAND_CAFE=y
++CONFIG_MTD_NAND_CS553X=y
++CONFIG_MTD_NAND_NANDSIM=m
++# CONFIG_MTD_NAND_PLATFORM is not set
++# CONFIG_MTD_ONENAND is not set
++
++#
++# UBI - Unsorted block images
++#
++# CONFIG_MTD_UBI is not set
++
++#
++# Parallel port support
++#
++# CONFIG_PARPORT is not set
++
++#
++# Plug and Play support
++#
++# CONFIG_PNPACPI is not set
++
++#
++# Block devices
++#
++# CONFIG_BLK_DEV_FD is not set
++# CONFIG_BLK_CPQ_DA is not set
++# CONFIG_BLK_CPQ_CISS_DA is not set
++# CONFIG_BLK_DEV_DAC960 is not set
++# CONFIG_BLK_DEV_UMEM is not set
++# CONFIG_BLK_DEV_COW_COMMON is not set
++CONFIG_BLK_DEV_LOOP=m
++CONFIG_BLK_DEV_CRYPTOLOOP=m
++CONFIG_BLK_DEV_NBD=m
++# CONFIG_BLK_DEV_SX8 is not set
++CONFIG_BLK_DEV_UB=m
++CONFIG_BLK_DEV_RAM=y
++CONFIG_BLK_DEV_RAM_COUNT=16
++CONFIG_BLK_DEV_RAM_SIZE=16384
++CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024
++# CONFIG_CDROM_PKTCDVD is not set
++# CONFIG_ATA_OVER_ETH is not set
++
++#
++# Misc devices
++#
++# CONFIG_IBM_ASM is not set
++# CONFIG_PHANTOM is not set
++# CONFIG_SGI_IOC4 is not set
++# CONFIG_TIFM_CORE is not set
++# CONFIG_BLINK is not set
++# CONFIG_EEPROM_93CX6 is not set
++CONFIG_IDE=m
++CONFIG_IDE_MAX_HWIFS=4
++CONFIG_BLK_DEV_IDE=m
++
++#
++# Please see Documentation/ide.txt for help/info on IDE drives
++#
++# CONFIG_BLK_DEV_IDE_SATA is not set
++# CONFIG_BLK_DEV_HD_IDE is not set
++CONFIG_BLK_DEV_IDEDISK=m
++CONFIG_IDEDISK_MULTI_MODE=y
++# CONFIG_BLK_DEV_IDECD is not set
++# CONFIG_BLK_DEV_IDETAPE is not set
++# CONFIG_BLK_DEV_IDEFLOPPY is not set
++# CONFIG_BLK_DEV_IDESCSI is not set
++CONFIG_IDE_TASK_IOCTL=y
++# CONFIG_IDE_PROC_FS is not set
++
++#
++# IDE chipset support/bugfixes
++#
++CONFIG_IDE_GENERIC=m
++# CONFIG_BLK_DEV_CMD640 is not set
++CONFIG_BLK_DEV_IDEPCI=y
++CONFIG_IDEPCI_SHARE_IRQ=y
++# CONFIG_IDEPCI_PCIBUS_ORDER is not set
++# CONFIG_BLK_DEV_OFFBOARD is not set
++# CONFIG_BLK_DEV_GENERIC is not set
++# CONFIG_BLK_DEV_OPTI621 is not set
++# CONFIG_BLK_DEV_RZ1000 is not set
++CONFIG_BLK_DEV_IDEDMA_PCI=y
++# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
++CONFIG_IDEDMA_ONLYDISK=y
++# CONFIG_BLK_DEV_AEC62XX is not set
++# CONFIG_BLK_DEV_ALI15X3 is not set
++# CONFIG_BLK_DEV_AMD74XX is not set
++# CONFIG_BLK_DEV_ATIIXP is not set
++# CONFIG_BLK_DEV_CMD64X is not set
++# CONFIG_BLK_DEV_TRIFLEX is not set
++# CONFIG_BLK_DEV_CY82C693 is not set
++# CONFIG_BLK_DEV_CS5520 is not set
++# CONFIG_BLK_DEV_CS5530 is not set
++# CONFIG_BLK_DEV_CS5535 is not set
++# CONFIG_BLK_DEV_HPT34X is not set
++# CONFIG_BLK_DEV_HPT366 is not set
++# CONFIG_BLK_DEV_JMICRON is not set
++# CONFIG_BLK_DEV_SC1200 is not set
++CONFIG_BLK_DEV_PIIX=m
++# CONFIG_BLK_DEV_IT8213 is not set
++# CONFIG_BLK_DEV_IT821X is not set
++# CONFIG_BLK_DEV_NS87415 is not set
++# CONFIG_BLK_DEV_PDC202XX_OLD is not set
++# CONFIG_BLK_DEV_PDC202XX_NEW is not set
++# CONFIG_BLK_DEV_SVWKS is not set
++# CONFIG_BLK_DEV_SIIMAGE is not set
++# CONFIG_BLK_DEV_SIS5513 is not set
++# CONFIG_BLK_DEV_SLC90E66 is not set
++# CONFIG_BLK_DEV_TRM290 is not set
++# CONFIG_BLK_DEV_VIA82CXXX is not set
++# CONFIG_BLK_DEV_TC86C001 is not set
++# CONFIG_IDE_ARM is not set
++CONFIG_BLK_DEV_IDEDMA=y
++# CONFIG_IDEDMA_IVB is not set
++# CONFIG_BLK_DEV_HD is not set
++
++#
++# SCSI device support
++#
++# CONFIG_RAID_ATTRS is not set
++CONFIG_SCSI=y
++# CONFIG_SCSI_TGT is not set
++# CONFIG_SCSI_NETLINK is not set
++CONFIG_SCSI_PROC_FS=y
++
++#
++# SCSI support type (disk, tape, CD-ROM)
++#
++CONFIG_BLK_DEV_SD=y
++# CONFIG_CHR_DEV_ST is not set
++# CONFIG_CHR_DEV_OSST is not set
++CONFIG_BLK_DEV_SR=m
++CONFIG_BLK_DEV_SR_VENDOR=y
++CONFIG_CHR_DEV_SG=m
++CONFIG_CHR_DEV_SCH=m
++
++#
++# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
++#
++CONFIG_SCSI_MULTI_LUN=y
++CONFIG_SCSI_CONSTANTS=y
++CONFIG_SCSI_LOGGING=y
++# CONFIG_SCSI_SCAN_ASYNC is not set
++CONFIG_SCSI_WAIT_SCAN=m
++
++#
++# SCSI Transports
++#
++# CONFIG_SCSI_SPI_ATTRS is not set
++# CONFIG_SCSI_FC_ATTRS is not set
++# CONFIG_SCSI_ISCSI_ATTRS is not set
++# CONFIG_SCSI_SAS_ATTRS is not set
++# CONFIG_SCSI_SAS_LIBSAS is not set
++
++#
++# SCSI low-level drivers
++#
++# CONFIG_ISCSI_TCP is not set
++# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
++# CONFIG_SCSI_3W_9XXX is not set
++# CONFIG_SCSI_ACARD is not set
++# CONFIG_SCSI_AACRAID is not set
++# CONFIG_SCSI_AIC7XXX is not set
++# CONFIG_SCSI_AIC7XXX_OLD is not set
++# CONFIG_SCSI_AIC79XX is not set
++# CONFIG_SCSI_AIC94XX is not set
++# CONFIG_SCSI_DPT_I2O is not set
++# CONFIG_SCSI_ADVANSYS is not set
++# CONFIG_SCSI_ARCMSR is not set
++# CONFIG_MEGARAID_NEWGEN is not set
++# CONFIG_MEGARAID_LEGACY is not set
++# CONFIG_MEGARAID_SAS is not set
++# CONFIG_SCSI_HPTIOP is not set
++# CONFIG_SCSI_BUSLOGIC is not set
++# CONFIG_SCSI_DMX3191D is not set
++# CONFIG_SCSI_EATA is not set
++# CONFIG_SCSI_FUTURE_DOMAIN is not set
++# CONFIG_SCSI_GDTH is not set
++# CONFIG_SCSI_IPS is not set
++# CONFIG_SCSI_INITIO is not set
++# CONFIG_SCSI_INIA100 is not set
++# CONFIG_SCSI_STEX is not set
++# CONFIG_SCSI_SYM53C8XX_2 is not set
++# CONFIG_SCSI_QLOGIC_1280 is not set
++# CONFIG_SCSI_QLA_FC is not set
++# CONFIG_SCSI_QLA_ISCSI is not set
++# CONFIG_SCSI_LPFC is not set
++# CONFIG_SCSI_DC395x is not set
++# CONFIG_SCSI_DC390T is not set
++# CONFIG_SCSI_NSP32 is not set
++# CONFIG_SCSI_DEBUG is not set
++# CONFIG_SCSI_SRP is not set
++# CONFIG_ATA is not set
++
++#
++# Multi-device support (RAID and LVM)
++#
++# CONFIG_MD is not set
++
++#
++# Fusion MPT device support
++#
++# CONFIG_FUSION is not set
++# CONFIG_FUSION_SPI is not set
++# CONFIG_FUSION_FC is not set
++# CONFIG_FUSION_SAS is not set
++
++#
++# IEEE 1394 (FireWire) support
++#
++# CONFIG_FIREWIRE is not set
++# CONFIG_IEEE1394 is not set
++
++#
++# I2O device support
++#
++# CONFIG_I2O is not set
++
++#
++# Battery support
++#
++# CONFIG_BATTERY_CLASS is not set
++# CONFIG_MACINTOSH_DRIVERS is not set
++
++#
++# Network device support
++#
++CONFIG_NETDEVICES=y
++CONFIG_IFB=m
++CONFIG_DUMMY=m
++# CONFIG_BONDING is not set
++# CONFIG_EQUALIZER is not set
++CONFIG_TUN=m
++# CONFIG_ARCNET is not set
++# CONFIG_PHYLIB is not set
++
++#
++# Ethernet (10 or 100Mbit)
++#
++CONFIG_NET_ETHERNET=y
++CONFIG_MII=m
++# CONFIG_HAPPYMEAL is not set
++# CONFIG_SUNGEM is not set
++# CONFIG_CASSINI is not set
++# CONFIG_NET_VENDOR_3COM is not set
++
++#
++# Tulip family network device support
++#
++# CONFIG_NET_TULIP is not set
++# CONFIG_HP100 is not set
++CONFIG_NET_PCI=y
++# CONFIG_PCNET32 is not set
++# CONFIG_AMD8111_ETH is not set
++# CONFIG_ADAPTEC_STARFIRE is not set
++# CONFIG_B44 is not set
++# CONFIG_FORCEDETH is not set
++# CONFIG_DGRS is not set
++# CONFIG_EEPRO100 is not set
++# CONFIG_E100 is not set
++# CONFIG_FEALNX is not set
++# CONFIG_NATSEMI is not set
++CONFIG_NE2K_PCI=m
++# CONFIG_8139CP is not set
++# CONFIG_8139TOO is not set
++# CONFIG_SIS900 is not set
++# CONFIG_EPIC100 is not set
++# CONFIG_SUNDANCE is not set
++# CONFIG_TLAN is not set
++# CONFIG_VIA_RHINE is not set
++# CONFIG_SC92031 is not set
++CONFIG_NETDEV_1000=y
++# CONFIG_ACENIC is not set
++# CONFIG_DL2K is not set
++# CONFIG_E1000 is not set
++# CONFIG_NS83820 is not set
++# CONFIG_HAMACHI is not set
++# CONFIG_YELLOWFIN is not set
++# CONFIG_R8169 is not set
++# CONFIG_SIS190 is not set
++# CONFIG_SKGE is not set
++# CONFIG_SKY2 is not set
++# CONFIG_SK98LIN is not set
++# CONFIG_VIA_VELOCITY is not set
++# CONFIG_TIGON3 is not set
++# CONFIG_BNX2 is not set
++# CONFIG_QLA3XXX is not set
++# CONFIG_ATL1 is not set
++CONFIG_NETDEV_10000=y
++# CONFIG_CHELSIO_T1 is not set
++# CONFIG_CHELSIO_T3 is not set
++# CONFIG_IXGB is not set
++# CONFIG_S2IO is not set
++# CONFIG_MYRI10GE is not set
++# CONFIG_NETXEN_NIC is not set
++# CONFIG_MLX4_CORE is not set
++# CONFIG_TR is not set
++
++#
++# Wireless LAN
++#
++# CONFIG_WLAN_PRE80211 is not set
++CONFIG_WLAN_80211=y
++# CONFIG_IPW2100 is not set
++# CONFIG_IPW2200 is not set
++CONFIG_LIBERTAS=m
++CONFIG_LIBERTAS_USB=m
++CONFIG_LIBERTAS_DEBUG=y
++# CONFIG_AIRO is not set
++# CONFIG_HERMES is not set
++# CONFIG_ATMEL is not set
++# CONFIG_PRISM54 is not set
++# CONFIG_USB_ZD1201 is not set
++# CONFIG_PRISM54_USB is not set
++# CONFIG_HOSTAP is not set
++# CONFIG_BCM43XX is not set
++# CONFIG_ZD1211RW is not set
++# CONFIG_ADM8211 is not set
++# CONFIG_ACX_PCI is not set
++# CONFIG_ACX_USB is not set
++
++#
++# USB Network Adapters
++#
++CONFIG_USB_CATC=m
++CONFIG_USB_KAWETH=m
++CONFIG_USB_PEGASUS=m
++CONFIG_USB_RTL8150=m
++CONFIG_USB_USBNET_MII=m
++CONFIG_USB_USBNET=m
++CONFIG_USB_NET_AX8817X=m
++CONFIG_USB_NET_CDCETHER=m
++CONFIG_USB_NET_DM9601=m
++CONFIG_USB_NET_GL620A=m
++CONFIG_USB_NET_NET1080=m
++CONFIG_USB_NET_PLUSB=m
++CONFIG_USB_NET_MCS7830=m
++CONFIG_USB_NET_RNDIS_HOST=m
++CONFIG_USB_NET_CDC_SUBSET=m
++CONFIG_USB_ALI_M5632=y
++CONFIG_USB_AN2720=y
++CONFIG_USB_BELKIN=y
++CONFIG_USB_ARMLINUX=y
++CONFIG_USB_EPSON2888=y
++# CONFIG_USB_KC2190 is not set
++CONFIG_USB_NET_ZAURUS=m
++# CONFIG_WAN is not set
++# CONFIG_FDDI is not set
++# CONFIG_HIPPI is not set
++CONFIG_PPP=m
++CONFIG_PPP_MULTILINK=y
++CONFIG_PPP_FILTER=y
++CONFIG_PPP_ASYNC=m
++CONFIG_PPP_SYNC_TTY=m
++CONFIG_PPP_DEFLATE=m
++# CONFIG_PPP_BSDCOMP is not set
++CONFIG_PPP_MPPE=m
++CONFIG_PPPOE=m
++CONFIG_SLIP=m
++CONFIG_SLIP_COMPRESSED=y
++CONFIG_SLHC=m
++CONFIG_SLIP_SMART=y
++# CONFIG_SLIP_MODE_SLIP6 is not set
++# CONFIG_NET_FC is not set
++# CONFIG_SHAPER is not set
++CONFIG_NETCONSOLE=m
++CONFIG_NETPOLL=y
++CONFIG_NETPOLL_TRAP=y
++CONFIG_NET_POLL_CONTROLLER=y
++
++#
++# ISDN subsystem
++#
++# CONFIG_ISDN is not set
++
++#
++# Telephony Support
++#
++# CONFIG_PHONE is not set
++
++#
++# Input device support
++#
++CONFIG_INPUT=y
++# CONFIG_INPUT_FF_MEMLESS is not set
++# CONFIG_INPUT_POLLDEV is not set
++
++#
++# Userland interfaces
++#
++CONFIG_INPUT_MOUSEDEV=m
++# CONFIG_INPUT_MOUSEDEV_PSAUX is not set
++CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
++CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
++CONFIG_INPUT_JOYDEV=m
++# CONFIG_INPUT_TSDEV is not set
++CONFIG_INPUT_EVDEV=y
++# CONFIG_INPUT_EVBUG is not set
++
++#
++# Input Device Drivers
++#
++CONFIG_INPUT_KEYBOARD=y
++CONFIG_KEYBOARD_ATKBD=y
++# CONFIG_KEYBOARD_SUNKBD is not set
++# CONFIG_KEYBOARD_LKKBD is not set
++# CONFIG_KEYBOARD_XTKBD is not set
++# CONFIG_KEYBOARD_NEWTON is not set
++# CONFIG_KEYBOARD_STOWAWAY is not set
++CONFIG_INPUT_MOUSE=y
++CONFIG_MOUSE_PS2=m
++# CONFIG_MOUSE_PS2_ALPS is not set
++# CONFIG_MOUSE_PS2_LOGIPS2PP is not set
++# CONFIG_MOUSE_PS2_SYNAPTICS is not set
++# CONFIG_MOUSE_PS2_LIFEBOOK is not set
++# CONFIG_MOUSE_PS2_TRACKPOINT is not set
++# CONFIG_MOUSE_PS2_TOUCHKIT is not set
++CONFIG_MOUSE_PS2_OLPC=y
++# CONFIG_MOUSE_SERIAL is not set
++# CONFIG_MOUSE_APPLETOUCH is not set
++# CONFIG_MOUSE_VSXXXAA is not set
++# CONFIG_INPUT_JOYSTICK is not set
++# CONFIG_INPUT_TABLET is not set
++# CONFIG_INPUT_TOUCHSCREEN is not set
++CONFIG_INPUT_MISC=y
++CONFIG_INPUT_PCSPKR=m
++# CONFIG_INPUT_WISTRON_BTNS is not set
++# CONFIG_INPUT_ATI_REMOTE is not set
++# CONFIG_INPUT_ATI_REMOTE2 is not set
++# CONFIG_INPUT_KEYSPAN_REMOTE is not set
++# CONFIG_INPUT_POWERMATE is not set
++# CONFIG_INPUT_YEALINK is not set
++CONFIG_INPUT_UINPUT=m
++
++#
++# Hardware I/O ports
++#
++CONFIG_SERIO=y
++CONFIG_SERIO_I8042=y
++CONFIG_SERIO_SERPORT=y
++# CONFIG_SERIO_CT82C710 is not set
++# CONFIG_SERIO_PCIPS2 is not set
++CONFIG_SERIO_LIBPS2=y
++CONFIG_SERIO_RAW=m
++# CONFIG_GAMEPORT is not set
++
++#
++# Character devices
++#
++CONFIG_VT=y
++CONFIG_VT_CONSOLE=y
++CONFIG_HW_CONSOLE=y
++# CONFIG_VT_HW_CONSOLE_BINDING is not set
++# CONFIG_SERIAL_NONSTANDARD is not set
++
++#
++# Serial drivers
++#
++CONFIG_SERIAL_8250=y
++CONFIG_SERIAL_8250_CONSOLE=y
++CONFIG_SERIAL_8250_PCI=y
++CONFIG_SERIAL_8250_NR_UARTS=1
++CONFIG_SERIAL_8250_RUNTIME_UARTS=1
++CONFIG_SERIAL_8250_EXTENDED=y
++CONFIG_SERIAL_8250_MANY_PORTS=y
++CONFIG_SERIAL_8250_SHARE_IRQ=y
++CONFIG_SERIAL_8250_DETECT_IRQ=y
++CONFIG_SERIAL_8250_RSA=y
++
++#
++# Non-8250 serial port support
++#
++CONFIG_SERIAL_CORE=y
++CONFIG_SERIAL_CORE_CONSOLE=y
++# CONFIG_SERIAL_JSM is not set
++CONFIG_UNIX98_PTYS=y
++# CONFIG_LEGACY_PTYS is not set
++
++#
++# IPMI
++#
++# CONFIG_IPMI_HANDLER is not set
++CONFIG_WATCHDOG=y
++# CONFIG_WATCHDOG_NOWAYOUT is not set
++
++#
++# Watchdog Device Drivers
++#
++CONFIG_SOFT_WATCHDOG=m
++# CONFIG_ACQUIRE_WDT is not set
++# CONFIG_ADVANTECH_WDT is not set
++# CONFIG_ALIM1535_WDT is not set
++# CONFIG_ALIM7101_WDT is not set
++# CONFIG_SC520_WDT is not set
++# CONFIG_EUROTECH_WDT is not set
++# CONFIG_IB700_WDT is not set
++# CONFIG_IBMASR is not set
++# CONFIG_WAFER_WDT is not set
++# CONFIG_I6300ESB_WDT is not set
++# CONFIG_ITCO_WDT is not set
++# CONFIG_SC1200_WDT is not set
++# CONFIG_PC87413_WDT is not set
++# CONFIG_60XX_WDT is not set
++# CONFIG_SBC8360_WDT is not set
++# CONFIG_CPU5_WDT is not set
++# CONFIG_SMSC37B787_WDT is not set
++# CONFIG_W83627HF_WDT is not set
++# CONFIG_W83697HF_WDT is not set
++# CONFIG_W83877F_WDT is not set
++# CONFIG_W83977F_WDT is not set
++# CONFIG_MACHZ_WDT is not set
++# CONFIG_SBC_EPX_C3_WATCHDOG is not set
++
++#
++# PCI-based Watchdog Cards
++#
++# CONFIG_PCIPCWATCHDOG is not set
++# CONFIG_WDTPCI is not set
++
++#
++# USB-based Watchdog Cards
++#
++# CONFIG_USBPCWATCHDOG is not set
++CONFIG_HW_RANDOM=y
++# CONFIG_HW_RANDOM_INTEL is not set
++# CONFIG_HW_RANDOM_AMD is not set
++CONFIG_HW_RANDOM_GEODE=y
++# CONFIG_HW_RANDOM_VIA is not set
++CONFIG_NVRAM=y
++# CONFIG_RTC is not set
++# CONFIG_GEN_RTC is not set
++# CONFIG_R3964 is not set
++# CONFIG_APPLICOM is not set
++# CONFIG_SONYPI is not set
++# CONFIG_AGP is not set
++# CONFIG_DRM is not set
++# CONFIG_MWAVE is not set
++# CONFIG_PC8736x_GPIO is not set
++# CONFIG_NSC_GPIO is not set
++CONFIG_CS5535_GPIO=m
++# CONFIG_RAW_DRIVER is not set
++CONFIG_HANGCHECK_TIMER=m
++
++#
++# TPM devices
++#
++# CONFIG_TCG_TPM is not set
++# CONFIG_TELCLOCK is not set
++CONFIG_DEVPORT=y
++CONFIG_I2C=y
++CONFIG_I2C_BOARDINFO=y
++CONFIG_I2C_CHARDEV=m
++
++#
++# I2C Algorithms
++#
++# CONFIG_I2C_ALGOBIT is not set
++# CONFIG_I2C_ALGOPCF is not set
++# CONFIG_I2C_ALGOPCA is not set
++
++#
++# I2C Hardware Bus support
++#
++# CONFIG_I2C_ALI1535 is not set
++# CONFIG_I2C_ALI1563 is not set
++# CONFIG_I2C_ALI15X3 is not set
++# CONFIG_I2C_AMD756 is not set
++# CONFIG_I2C_AMD8111 is not set
++# CONFIG_I2C_I801 is not set
++# CONFIG_I2C_I810 is not set
++# CONFIG_I2C_PIIX4 is not set
++# CONFIG_I2C_NFORCE2 is not set
++# CONFIG_I2C_OCORES is not set
++# CONFIG_I2C_PARPORT_LIGHT is not set
++# CONFIG_I2C_PROSAVAGE is not set
++# CONFIG_I2C_SAVAGE4 is not set
++# CONFIG_I2C_SIMTEC is not set
++CONFIG_SCx200_ACB=y
++# CONFIG_I2C_SIS5595 is not set
++# CONFIG_I2C_SIS630 is not set
++# CONFIG_I2C_SIS96X is not set
++# CONFIG_I2C_STUB is not set
++# CONFIG_I2C_TINY_USB is not set
++# CONFIG_I2C_VIA is not set
++# CONFIG_I2C_VIAPRO is not set
++# CONFIG_I2C_VOODOO3 is not set
++
++#
++# Miscellaneous I2C Chip support
++#
++# CONFIG_SENSORS_DS1337 is not set
++# CONFIG_SENSORS_DS1374 is not set
++# CONFIG_SENSORS_EEPROM is not set
++# CONFIG_SENSORS_PCF8574 is not set
++# CONFIG_SENSORS_PCA9539 is not set
++# CONFIG_SENSORS_PCF8591 is not set
++# CONFIG_SENSORS_MAX6875 is not set
++# CONFIG_I2C_DEBUG_CORE is not set
++# CONFIG_I2C_DEBUG_ALGO is not set
++# CONFIG_I2C_DEBUG_BUS is not set
++# CONFIG_I2C_DEBUG_CHIP is not set
++
++#
++# SPI support
++#
++# CONFIG_SPI is not set
++# CONFIG_SPI_MASTER is not set
++
++#
++# Dallas's 1-wire bus
++#
++# CONFIG_W1 is not set
++CONFIG_POWER_SUPPLY=m
++# CONFIG_POWER_SUPPLY_DEBUG is not set
++# CONFIG_PDA_POWER is not set
++# CONFIG_BATTERY_DS2760 is not set
++CONFIG_BATTERY_OLPC=m
++# CONFIG_HWMON is not set
++
++#
++# Multifunction device drivers
++#
++# CONFIG_MFD_SM501 is not set
++
++#
++# Multimedia devices
++#
++CONFIG_VIDEO_DEV=m
++# CONFIG_VIDEO_V4L1 is not set
++CONFIG_VIDEO_V4L1_COMPAT=y
++CONFIG_VIDEO_V4L2=y
++CONFIG_VIDEO_CAPTURE_DRIVERS=y
++# CONFIG_VIDEO_ADV_DEBUG is not set
++# CONFIG_VIDEO_HELPER_CHIPS_AUTO is not set
++
++#
++# Encoders/decoders and other helper chips
++#
++
++#
++# Audio decoders
++#
++# CONFIG_VIDEO_TDA9840 is not set
++# CONFIG_VIDEO_TEA6415C is not set
++# CONFIG_VIDEO_TEA6420 is not set
++# CONFIG_VIDEO_MSP3400 is not set
++# CONFIG_VIDEO_CS53L32A is not set
++# CONFIG_VIDEO_TLV320AIC23B is not set
++# CONFIG_VIDEO_WM8775 is not set
++# CONFIG_VIDEO_WM8739 is not set
++
++#
++# Video decoders
++#
++CONFIG_VIDEO_OV7670=m
++# CONFIG_VIDEO_SAA711X is not set
++# CONFIG_VIDEO_TVP5150 is not set
++
++#
++# Video and audio decoders
++#
++# CONFIG_VIDEO_CX25840 is not set
++
++#
++# MPEG video encoders
++#
++# CONFIG_VIDEO_CX2341X is not set
++
++#
++# Video encoders
++#
++# CONFIG_VIDEO_SAA7127 is not set
++
++#
++# Video improvement chips
++#
++# CONFIG_VIDEO_UPD64031A is not set
++# CONFIG_VIDEO_UPD64083 is not set
++# CONFIG_VIDEO_VIVI is not set
++# CONFIG_VIDEO_SAA5246A is not set
++# CONFIG_VIDEO_SAA5249 is not set
++# CONFIG_VIDEO_SAA7134 is not set
++# CONFIG_VIDEO_HEXIUM_ORION is not set
++# CONFIG_VIDEO_HEXIUM_GEMINI is not set
++# CONFIG_VIDEO_CX88 is not set
++CONFIG_VIDEO_CAFE_CCIC=m
++CONFIG_V4L_USB_DRIVERS=y
++# CONFIG_VIDEO_PVRUSB2 is not set
++# CONFIG_VIDEO_USBVISION is not set
++# CONFIG_USB_SN9C102 is not set
++# CONFIG_USB_ZR364XX is not set
++CONFIG_RADIO_ADAPTERS=y
++# CONFIG_RADIO_GEMTEK_PCI is not set
++# CONFIG_RADIO_MAXIRADIO is not set
++# CONFIG_RADIO_MAESTRO is not set
++# CONFIG_USB_DSBR is not set
++# CONFIG_DVB_CORE is not set
++CONFIG_DAB=y
++# CONFIG_USB_DABUSB is not set
++
++#
++# Graphics support
++#
++CONFIG_BACKLIGHT_LCD_SUPPORT=y
++CONFIG_BACKLIGHT_CLASS_DEVICE=y
++CONFIG_LCD_CLASS_DEVICE=y
++# CONFIG_BACKLIGHT_PROGEAR is not set
++
++#
++# Display device support
++#
++# CONFIG_DISPLAY_SUPPORT is not set
++CONFIG_VGASTATE=m
++CONFIG_FB=y
++# CONFIG_FIRMWARE_EDID is not set
++# CONFIG_FB_DDC is not set
++CONFIG_FB_CFB_FILLRECT=y
++CONFIG_FB_CFB_COPYAREA=y
++CONFIG_FB_CFB_IMAGEBLIT=y
++# CONFIG_FB_SYS_FILLRECT is not set
++# CONFIG_FB_SYS_COPYAREA is not set
++# CONFIG_FB_SYS_IMAGEBLIT is not set
++# CONFIG_FB_SYS_FOPS is not set
++CONFIG_FB_DEFERRED_IO=y
++# CONFIG_FB_SVGALIB is not set
++# CONFIG_FB_MACMODES is not set
++# CONFIG_FB_BACKLIGHT is not set
++CONFIG_FB_MODE_HELPERS=y
++CONFIG_FB_TILEBLITTING=y
++
++#
++# Frame buffer hardware drivers
++#
++# CONFIG_FB_CIRRUS is not set
++# CONFIG_FB_PM2 is not set
++# CONFIG_FB_CYBER2000 is not set
++# CONFIG_FB_ARC is not set
++# CONFIG_FB_ASILIANT is not set
++# CONFIG_FB_IMSTT is not set
++CONFIG_FB_VGA16=m
++CONFIG_FB_VESA=y
++# CONFIG_FB_HECUBA is not set
++# CONFIG_FB_HGA is not set
++# CONFIG_FB_S1D13XXX is not set
++# CONFIG_FB_NVIDIA is not set
++# CONFIG_FB_RIVA is not set
++# CONFIG_FB_I810 is not set
++# CONFIG_FB_LE80578 is not set
++# CONFIG_FB_INTEL is not set
++# CONFIG_FB_MATROX is not set
++# CONFIG_FB_RADEON is not set
++# CONFIG_FB_ATY128 is not set
++# CONFIG_FB_ATY is not set
++# CONFIG_FB_S3 is not set
++# CONFIG_FB_SAVAGE is not set
++# CONFIG_FB_SIS is not set
++# CONFIG_FB_NEOMAGIC is not set
++# CONFIG_FB_KYRO is not set
++# CONFIG_FB_3DFX is not set
++# CONFIG_FB_VOODOO1 is not set
++# CONFIG_FB_VT8623 is not set
++# CONFIG_FB_CYBLA is not set
++# CONFIG_FB_TRIDENT is not set
++# CONFIG_FB_ARK is not set
++# CONFIG_FB_PM3 is not set
++CONFIG_FB_GEODE=y
++CONFIG_FB_GEODE_LX=y
++CONFIG_FB_GEODE_GX=y
++# CONFIG_FB_GEODE_GX1 is not set
++CONFIG_FB_OLPC_DCON=y
++# CONFIG_FB_VIRTUAL is not set
++
++#
++# Console display driver support
++#
++CONFIG_VGA_CONSOLE=y
++CONFIG_VGACON_SOFT_SCROLLBACK=y
++CONFIG_VGACON_SOFT_SCROLLBACK_SIZE=64
++CONFIG_VIDEO_SELECT=y
++CONFIG_DUMMY_CONSOLE=y
++CONFIG_FRAMEBUFFER_CONSOLE=y
++CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y
++CONFIG_FONTS=y
++# CONFIG_FONT_8x8 is not set
++CONFIG_FONT_8x16=y
++# CONFIG_FONT_6x11 is not set
++# CONFIG_FONT_7x14 is not set
++# CONFIG_FONT_PEARL_8x8 is not set
++# CONFIG_FONT_ACORN_8x8 is not set
++# CONFIG_FONT_MINI_4x6 is not set
++# CONFIG_FONT_SUN8x16 is not set
++CONFIG_FONT_SUN12x22=y
++# CONFIG_FONT_10x18 is not set
++CONFIG_LOGO=y
++# CONFIG_LOGO_LINUX_MONO is not set
++# CONFIG_LOGO_LINUX_VGA16 is not set
++CONFIG_LOGO_LINUX_CLUT224=y
++
++#
++# Sound
++#
++CONFIG_SOUND=m
++
++#
++# Advanced Linux Sound Architecture
++#
++CONFIG_SND=m
++CONFIG_SND_TIMER=m
++CONFIG_SND_PCM=m
++CONFIG_SND_HWDEP=m
++CONFIG_SND_RAWMIDI=m
++CONFIG_SND_SEQUENCER=m
++CONFIG_SND_SEQ_DUMMY=m
++CONFIG_SND_OSSEMUL=y
++CONFIG_SND_MIXER_OSS=m
++CONFIG_SND_PCM_OSS=m
++CONFIG_SND_PCM_OSS_PLUGINS=y
++CONFIG_SND_SEQUENCER_OSS=y
++CONFIG_SND_DYNAMIC_MINORS=y
++# CONFIG_SND_SUPPORT_OLD_API is not set
++CONFIG_SND_VERBOSE_PROCFS=y
++# CONFIG_SND_VERBOSE_PRINTK is not set
++# CONFIG_SND_DEBUG is not set
++
++#
++# Generic devices
++#
++CONFIG_SND_MPU401_UART=m
++CONFIG_SND_AC97_CODEC=m
++CONFIG_SND_DUMMY=m
++CONFIG_SND_VIRMIDI=m
++CONFIG_SND_MTPAV=m
++# CONFIG_SND_SERIAL_U16550 is not set
++CONFIG_SND_MPU401=m
++
++#
++# PCI devices
++#
++# CONFIG_SND_AD1889 is not set
++# CONFIG_SND_ALS300 is not set
++# CONFIG_SND_ALS4000 is not set
++# CONFIG_SND_ALI5451 is not set
++# CONFIG_SND_ATIIXP is not set
++# CONFIG_SND_ATIIXP_MODEM is not set
++# CONFIG_SND_AU8810 is not set
++# CONFIG_SND_AU8820 is not set
++# CONFIG_SND_AU8830 is not set
++# CONFIG_SND_AZT3328 is not set
++# CONFIG_SND_BT87X is not set
++# CONFIG_SND_CA0106 is not set
++# CONFIG_SND_CMIPCI is not set
++# CONFIG_SND_CS4281 is not set
++# CONFIG_SND_CS46XX is not set
++CONFIG_SND_CS5535AUDIO=m
++# CONFIG_SND_DARLA20 is not set
++# CONFIG_SND_GINA20 is not set
++# CONFIG_SND_LAYLA20 is not set
++# CONFIG_SND_DARLA24 is not set
++# CONFIG_SND_GINA24 is not set
++# CONFIG_SND_LAYLA24 is not set
++# CONFIG_SND_MONA is not set
++# CONFIG_SND_MIA is not set
++# CONFIG_SND_ECHO3G is not set
++# CONFIG_SND_INDIGO is not set
++# CONFIG_SND_INDIGOIO is not set
++# CONFIG_SND_INDIGODJ is not set
++# CONFIG_SND_EMU10K1 is not set
++# CONFIG_SND_EMU10K1X is not set
++CONFIG_SND_ENS1370=m
++# CONFIG_SND_ENS1371 is not set
++# CONFIG_SND_ES1938 is not set
++# CONFIG_SND_ES1968 is not set
++# CONFIG_SND_FM801 is not set
++# CONFIG_SND_HDA_INTEL is not set
++# CONFIG_SND_HDSP is not set
++# CONFIG_SND_HDSPM is not set
++# CONFIG_SND_ICE1712 is not set
++# CONFIG_SND_ICE1724 is not set
++# CONFIG_SND_INTEL8X0 is not set
++# CONFIG_SND_INTEL8X0M is not set
++# CONFIG_SND_KORG1212 is not set
++# CONFIG_SND_MAESTRO3 is not set
++# CONFIG_SND_MIXART is not set
++# CONFIG_SND_NM256 is not set
++# CONFIG_SND_PCXHR is not set
++# CONFIG_SND_RIPTIDE is not set
++# CONFIG_SND_RME32 is not set
++# CONFIG_SND_RME96 is not set
++# CONFIG_SND_RME9652 is not set
++# CONFIG_SND_SONICVIBES is not set
++# CONFIG_SND_TRIDENT is not set
++# CONFIG_SND_VIA82XX is not set
++# CONFIG_SND_VIA82XX_MODEM is not set
++# CONFIG_SND_VX222 is not set
++# CONFIG_SND_YMFPCI is not set
++CONFIG_SND_AC97_POWER_SAVE=y
++
++#
++# USB devices
++#
++CONFIG_SND_USB_AUDIO=m
++CONFIG_SND_USB_USX2Y=m
++# CONFIG_SND_USB_CAIAQ is not set
++
++#
++# System on Chip audio support
++#
++# CONFIG_SND_SOC is not set
++
++#
++# Open Sound System
++#
++# CONFIG_SOUND_PRIME is not set
++CONFIG_AC97_BUS=m
++
++#
++# HID Devices
++#
++CONFIG_HID=y
++# CONFIG_HID_DEBUG is not set
++
++#
++# USB Input Devices
++#
++CONFIG_USB_HID=y
++# CONFIG_USB_HIDINPUT_POWERBOOK is not set
++# CONFIG_HID_FF is not set
++CONFIG_USB_HIDDEV=y
++
++#
++# USB support
++#
++CONFIG_USB_ARCH_HAS_HCD=y
++CONFIG_USB_ARCH_HAS_OHCI=y
++CONFIG_USB_ARCH_HAS_EHCI=y
++CONFIG_USB=y
++# CONFIG_USB_DEBUG is not set
++
++#
++# Miscellaneous USB options
++#
++CONFIG_USB_DEVICEFS=y
++# CONFIG_USB_DEVICE_CLASS is not set
++# CONFIG_USB_DYNAMIC_MINORS is not set
++# CONFIG_USB_SUSPEND is not set
++CONFIG_USB_PERSIST=y
++# CONFIG_USB_OTG is not set
++
++#
++# USB Host Controller Drivers
++#
++CONFIG_USB_EHCI_HCD=y
++CONFIG_USB_EHCI_SPLIT_ISO=y
++CONFIG_USB_EHCI_ROOT_HUB_TT=y
++# CONFIG_USB_EHCI_TT_NEWSCHED is not set
++# CONFIG_USB_EHCI_BIG_ENDIAN_MMIO is not set
++# CONFIG_USB_ISP116X_HCD is not set
++CONFIG_USB_OHCI_HCD=y
++# CONFIG_USB_OHCI_BIG_ENDIAN_DESC is not set
++# CONFIG_USB_OHCI_BIG_ENDIAN_MMIO is not set
++CONFIG_USB_OHCI_LITTLE_ENDIAN=y
++# CONFIG_USB_UHCI_HCD is not set
++# CONFIG_USB_SL811_HCD is not set
++
++#
++# USB Device Class drivers
++#
++CONFIG_USB_ACM=m
++CONFIG_USB_PRINTER=m
++
++#
++# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
++#
++
++#
++# may also be needed; see USB_STORAGE Help for more information
++#
++CONFIG_USB_STORAGE=y
++# CONFIG_USB_STORAGE_DEBUG is not set
++CONFIG_USB_STORAGE_DATAFAB=y
++CONFIG_USB_STORAGE_FREECOM=y
++CONFIG_USB_STORAGE_DPCM=y
++CONFIG_USB_STORAGE_USBAT=y
++CONFIG_USB_STORAGE_SDDR09=y
++CONFIG_USB_STORAGE_SDDR55=y
++CONFIG_USB_STORAGE_JUMPSHOT=y
++CONFIG_USB_STORAGE_ALAUDA=y
++# CONFIG_USB_STORAGE_KARMA is not set
++CONFIG_USB_LIBUSUAL=y
++
++#
++# USB Imaging devices
++#
++# CONFIG_USB_MDC800 is not set
++# CONFIG_USB_MICROTEK is not set
++CONFIG_USB_MON=y
++
++#
++# USB port drivers
++#
++
++#
++# USB Serial Converter support
++#
++CONFIG_USB_SERIAL=m
++CONFIG_USB_SERIAL_GENERIC=y
++# CONFIG_USB_SERIAL_AIRCABLE is not set
++# CONFIG_USB_SERIAL_AIRPRIME is not set
++# CONFIG_USB_SERIAL_ARK3116 is not set
++# CONFIG_USB_SERIAL_BELKIN is not set
++# CONFIG_USB_SERIAL_WHITEHEAT is not set
++# CONFIG_USB_SERIAL_DIGI_ACCELEPORT is not set
++CONFIG_USB_SERIAL_CP2101=m
++# CONFIG_USB_SERIAL_CYPRESS_M8 is not set
++# CONFIG_USB_SERIAL_EMPEG is not set
++# CONFIG_USB_SERIAL_FTDI_SIO is not set
++# CONFIG_USB_SERIAL_FUNSOFT is not set
++# CONFIG_USB_SERIAL_VISOR is not set
++# CONFIG_USB_SERIAL_IPAQ is not set
++# CONFIG_USB_SERIAL_IR is not set
++# CONFIG_USB_SERIAL_EDGEPORT is not set
++# CONFIG_USB_SERIAL_EDGEPORT_TI is not set
++# CONFIG_USB_SERIAL_GARMIN is not set
++# CONFIG_USB_SERIAL_IPW is not set
++# CONFIG_USB_SERIAL_KEYSPAN_PDA is not set
++# CONFIG_USB_SERIAL_KEYSPAN is not set
++# CONFIG_USB_SERIAL_KLSI is not set
++# CONFIG_USB_SERIAL_KOBIL_SCT is not set
++# CONFIG_USB_SERIAL_MCT_U232 is not set
++# CONFIG_USB_SERIAL_MOS7720 is not set
++# CONFIG_USB_SERIAL_MOS7840 is not set
++# CONFIG_USB_SERIAL_NAVMAN is not set
++CONFIG_USB_SERIAL_PL2303=m
++# CONFIG_USB_SERIAL_HP4X is not set
++# CONFIG_USB_SERIAL_SAFE is not set
++# CONFIG_USB_SERIAL_SIERRAWIRELESS is not set
++# CONFIG_USB_SERIAL_TI is not set
++# CONFIG_USB_SERIAL_CYBERJACK is not set
++# CONFIG_USB_SERIAL_XIRCOM is not set
++# CONFIG_USB_SERIAL_OPTION is not set
++# CONFIG_USB_SERIAL_OMNINET is not set
++# CONFIG_USB_SERIAL_DEBUG is not set
++
++#
++# USB Miscellaneous drivers
++#
++# CONFIG_USB_EMI62 is not set
++# CONFIG_USB_EMI26 is not set
++# CONFIG_USB_ADUTUX is not set
++# CONFIG_USB_AUERSWALD is not set
++# CONFIG_USB_RIO500 is not set
++# CONFIG_USB_LEGOTOWER is not set
++# CONFIG_USB_LCD is not set
++# CONFIG_USB_BERRY_CHARGE is not set
++# CONFIG_USB_LED is not set
++# CONFIG_USB_CYPRESS_CY7C63 is not set
++# CONFIG_USB_CYTHERM is not set
++# CONFIG_USB_PHIDGET is not set
++# CONFIG_USB_IDMOUSE is not set
++# CONFIG_USB_FTDI_ELAN is not set
++# CONFIG_USB_APPLEDISPLAY is not set
++# CONFIG_USB_SISUSBVGA is not set
++# CONFIG_USB_LD is not set
++# CONFIG_USB_TRANCEVIBRATOR is not set
++# CONFIG_USB_IOWARRIOR is not set
++# CONFIG_USB_TEST is not set
++
++#
++# USB DSL modem support
++#
++
++#
++# USB Gadget Support
++#
++# CONFIG_USB_GADGET is not set
++CONFIG_MMC=y
++# CONFIG_MMC_DEBUG is not set
++# CONFIG_MMC_UNSAFE_RESUME is not set
++
++#
++# MMC/SD Card Drivers
++#
++CONFIG_MMC_BLOCK=y
++
++#
++# MMC/SD Host Controller Drivers
++#
++CONFIG_MMC_SDHCI=y
++# CONFIG_MMC_WBSD is not set
++# CONFIG_MMC_TIFM_SD is not set
++
++#
++# LED devices
++#
++CONFIG_NEW_LEDS=y
++CONFIG_LEDS_CLASS=y
++
++#
++# LED drivers
++#
++CONFIG_LEDS_OLPC=y
++
++#
++# LED Triggers
++#
++CONFIG_LEDS_TRIGGERS=y
++CONFIG_LEDS_TRIGGER_TIMER=y
++# CONFIG_LEDS_TRIGGER_IDE_DISK is not set
++CONFIG_LEDS_TRIGGER_HEARTBEAT=y
++
++#
++# InfiniBand support
++#
++# CONFIG_INFINIBAND is not set
++
++#
++# EDAC - error detection and reporting (RAS) (EXPERIMENTAL)
++#
++# CONFIG_EDAC is not set
++
++#
++# Real Time Clock
++#
++CONFIG_RTC_LIB=y
++CONFIG_RTC_CLASS=y
++# CONFIG_RTC_HCTOSYS is not set
++# CONFIG_RTC_DEBUG is not set
++
++#
++# RTC interfaces
++#
++CONFIG_RTC_INTF_SYSFS=y
++CONFIG_RTC_INTF_PROC=y
++CONFIG_RTC_INTF_DEV=y
++# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set
++# CONFIG_RTC_DRV_TEST is not set
++
++#
++# I2C RTC drivers
++#
++# CONFIG_RTC_DRV_DS1307 is not set
++# CONFIG_RTC_DRV_DS1672 is not set
++# CONFIG_RTC_DRV_MAX6900 is not set
++# CONFIG_RTC_DRV_RS5C372 is not set
++# CONFIG_RTC_DRV_ISL1208 is not set
++# CONFIG_RTC_DRV_X1205 is not set
++# CONFIG_RTC_DRV_PCF8563 is not set
++# CONFIG_RTC_DRV_PCF8583 is not set
++
++#
++# SPI RTC drivers
++#
++
++#
++# Platform RTC drivers
++#
++CONFIG_RTC_DRV_CMOS=y
++# CONFIG_RTC_DRV_DS1553 is not set
++# CONFIG_RTC_DRV_DS1742 is not set
++# CONFIG_RTC_DRV_M48T86 is not set
++# CONFIG_RTC_DRV_V3020 is not set
++
++#
++# on-CPU RTC drivers
++#
++
++#
++# DMA Engine support
++#
++# CONFIG_DMA_ENGINE is not set
++
++#
++# DMA Clients
++#
++
++#
++# DMA Devices
++#
++
++#
++# Virtualization
++#
++# CONFIG_KVM is not set
++
++#
++# Sysprof
++#
++CONFIG_SYSPROF=m
++
++#
++# File systems
++#
++CONFIG_EXT2_FS=y
++CONFIG_EXT2_FS_XATTR=y
++CONFIG_EXT2_FS_POSIX_ACL=y
++CONFIG_EXT2_FS_SECURITY=y
++CONFIG_EXT2_FS_XIP=y
++CONFIG_FS_XIP=y
++CONFIG_EXT3_FS=y
++CONFIG_EXT3_FS_XATTR=y
++CONFIG_EXT3_FS_POSIX_ACL=y
++CONFIG_EXT3_FS_SECURITY=y
++# CONFIG_EXT4DEV_FS is not set
++CONFIG_JBD=y
++# CONFIG_JBD_DEBUG is not set
++CONFIG_FS_MBCACHE=y
++# CONFIG_REISERFS_FS is not set
++# CONFIG_JFS_FS is not set
++CONFIG_FS_POSIX_ACL=y
++# CONFIG_XFS_FS is not set
++# CONFIG_GFS2_FS is not set
++# CONFIG_OCFS2_FS is not set
++# CONFIG_MINIX_FS is not set
++# CONFIG_ROMFS_FS is not set
++CONFIG_INOTIFY=y
++CONFIG_INOTIFY_USER=y
++CONFIG_QUOTA=y
++# CONFIG_QFMT_V1 is not set
++CONFIG_QFMT_V2=y
++CONFIG_QUOTACTL=y
++CONFIG_DNOTIFY=y
++CONFIG_AUTOFS_FS=m
++CONFIG_AUTOFS4_FS=m
++# CONFIG_FUSE_FS is not set
++
++#
++# CD-ROM/DVD Filesystems
++#
++CONFIG_ISO9660_FS=y
++CONFIG_JOLIET=y
++CONFIG_ZISOFS=y
++CONFIG_UDF_FS=m
++CONFIG_UDF_NLS=y
++
++#
++# DOS/FAT/NT Filesystems
++#
++CONFIG_FAT_FS=m
++CONFIG_MSDOS_FS=m
++CONFIG_VFAT_FS=m
++CONFIG_FAT_DEFAULT_CODEPAGE=437
++CONFIG_FAT_DEFAULT_IOCHARSET="ascii"
++# CONFIG_NTFS_FS is not set
++
++#
++# Pseudo filesystems
++#
++CONFIG_PROC_FS=y
++CONFIG_PROC_KCORE=y
++CONFIG_PROC_SYSCTL=y
++CONFIG_SYSFS=y
++CONFIG_TMPFS=y
++# CONFIG_TMPFS_POSIX_ACL is not set
++CONFIG_HUGETLBFS=y
++CONFIG_HUGETLB_PAGE=y
++CONFIG_PROMFS_FS=y
++CONFIG_RAMFS=y
++# CONFIG_CONFIGFS_FS is not set
++
++#
++# Miscellaneous filesystems
++#
++# CONFIG_ADFS_FS is not set
++# CONFIG_AFFS_FS is not set
++# CONFIG_ECRYPT_FS is not set
++# CONFIG_HFS_FS is not set
++# CONFIG_HFSPLUS_FS is not set
++# CONFIG_BEFS_FS is not set
++# CONFIG_BFS_FS is not set
++# CONFIG_EFS_FS is not set
++CONFIG_JFFS2_FS=y
++CONFIG_JFFS2_FS_DEBUG=0
++CONFIG_JFFS2_FS_WRITEBUFFER=y
++CONFIG_JFFS2_SUMMARY=y
++CONFIG_JFFS2_FS_XATTR=y
++CONFIG_JFFS2_FS_POSIX_ACL=y
++CONFIG_JFFS2_FS_SECURITY=y
++# CONFIG_JFFS2_COMPRESSION_OPTIONS is not set
++CONFIG_JFFS2_ZLIB=y
++CONFIG_JFFS2_RTIME=y
++# CONFIG_JFFS2_RUBIN is not set
++CONFIG_CRAMFS=m
++# CONFIG_VXFS_FS is not set
++# CONFIG_HPFS_FS is not set
++# CONFIG_QNX4FS_FS is not set
++# CONFIG_SYSV_FS is not set
++# CONFIG_UFS_FS is not set
++
++#
++# Network File Systems
++#
++CONFIG_NFS_FS=m
++CONFIG_NFS_V3=y
++CONFIG_NFS_V3_ACL=y
++CONFIG_NFS_V4=y
++CONFIG_NFS_DIRECTIO=y
++# CONFIG_NFSD is not set
++CONFIG_LOCKD=m
++CONFIG_LOCKD_V4=y
++CONFIG_NFS_ACL_SUPPORT=m
++CONFIG_NFS_COMMON=y
++CONFIG_SUNRPC=m
++CONFIG_SUNRPC_GSS=m
++# CONFIG_SUNRPC_BIND34 is not set
++CONFIG_RPCSEC_GSS_KRB5=m
++CONFIG_RPCSEC_GSS_SPKM3=m
++# CONFIG_SMB_FS is not set
++# CONFIG_CIFS is not set
++# CONFIG_NCP_FS is not set
++# CONFIG_CODA_FS is not set
++# CONFIG_AFS_FS is not set
++# CONFIG_9P_FS is not set
++
++#
++# Partition Types
++#
++CONFIG_PARTITION_ADVANCED=y
++# CONFIG_ACORN_PARTITION is not set
++# CONFIG_OSF_PARTITION is not set
++# CONFIG_AMIGA_PARTITION is not set
++# CONFIG_ATARI_PARTITION is not set
++# CONFIG_MAC_PARTITION is not set
++CONFIG_MSDOS_PARTITION=y
++# CONFIG_BSD_DISKLABEL is not set
++# CONFIG_MINIX_SUBPARTITION is not set
++# CONFIG_SOLARIS_X86_PARTITION is not set
++# CONFIG_UNIXWARE_DISKLABEL is not set
++# CONFIG_LDM_PARTITION is not set
++# CONFIG_SGI_PARTITION is not set
++# CONFIG_ULTRIX_PARTITION is not set
++# CONFIG_SUN_PARTITION is not set
++# CONFIG_KARMA_PARTITION is not set
++# CONFIG_EFI_PARTITION is not set
++# CONFIG_SYSV68_PARTITION is not set
++
++#
++# Native Language Support
++#
++CONFIG_NLS=y
++CONFIG_NLS_DEFAULT="utf8"
++CONFIG_NLS_CODEPAGE_437=y
++CONFIG_NLS_CODEPAGE_737=m
++CONFIG_NLS_CODEPAGE_775=m
++CONFIG_NLS_CODEPAGE_850=m
++CONFIG_NLS_CODEPAGE_852=m
++CONFIG_NLS_CODEPAGE_855=m
++CONFIG_NLS_CODEPAGE_857=m
++CONFIG_NLS_CODEPAGE_860=m
++CONFIG_NLS_CODEPAGE_861=m
++CONFIG_NLS_CODEPAGE_862=m
++CONFIG_NLS_CODEPAGE_863=m
++CONFIG_NLS_CODEPAGE_864=m
++CONFIG_NLS_CODEPAGE_865=m
++CONFIG_NLS_CODEPAGE_866=m
++CONFIG_NLS_CODEPAGE_869=m
++CONFIG_NLS_CODEPAGE_936=m
++CONFIG_NLS_CODEPAGE_950=m
++CONFIG_NLS_CODEPAGE_932=m
++CONFIG_NLS_CODEPAGE_949=m
++CONFIG_NLS_CODEPAGE_874=m
++CONFIG_NLS_ISO8859_8=m
++CONFIG_NLS_CODEPAGE_1250=m
++CONFIG_NLS_CODEPAGE_1251=m
++CONFIG_NLS_ASCII=y
++CONFIG_NLS_ISO8859_1=m
++CONFIG_NLS_ISO8859_2=m
++CONFIG_NLS_ISO8859_3=m
++CONFIG_NLS_ISO8859_4=m
++CONFIG_NLS_ISO8859_5=m
++CONFIG_NLS_ISO8859_6=m
++CONFIG_NLS_ISO8859_7=m
++CONFIG_NLS_ISO8859_9=m
++CONFIG_NLS_ISO8859_13=m
++CONFIG_NLS_ISO8859_14=m
++CONFIG_NLS_ISO8859_15=m
++CONFIG_NLS_KOI8_R=m
++CONFIG_NLS_KOI8_U=m
++CONFIG_NLS_UTF8=m
++
++#
++# Distributed Lock Manager
++#
++# CONFIG_DLM is not set
++
++#
++# Instrumentation Support
++#
++CONFIG_PROFILING=y
++CONFIG_OPROFILE=m
++CONFIG_KPROBES=y
++
++#
++# Kernel hacking
++#
++CONFIG_TRACE_IRQFLAGS_SUPPORT=y
++CONFIG_PRINTK_TIME=y
++# CONFIG_ENABLE_MUST_CHECK is not set
++CONFIG_MAGIC_SYSRQ=y
++CONFIG_UNUSED_SYMBOLS=y
++CONFIG_DEBUG_FS=y
++# CONFIG_HEADERS_CHECK is not set
++CONFIG_DEBUG_KERNEL=y
++# CONFIG_DEBUG_SHIRQ is not set
++CONFIG_DETECT_SOFTLOCKUP=y
++CONFIG_SCHEDSTATS=y
++CONFIG_TIMER_STATS=y
++# CONFIG_DEBUG_SLAB is not set
++CONFIG_DEBUG_PREEMPT=y
++# CONFIG_DEBUG_RT_MUTEXES is not set
++# CONFIG_RT_MUTEX_TESTER is not set
++CONFIG_DEBUG_SPINLOCK=y
++# CONFIG_DEBUG_MUTEXES is not set
++# CONFIG_DEBUG_LOCK_ALLOC is not set
++# CONFIG_PROVE_LOCKING is not set
++CONFIG_DEBUG_SPINLOCK_SLEEP=y
++# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set
++# CONFIG_DEBUG_KOBJECT is not set
++# CONFIG_DEBUG_BUGVERBOSE is not set
++CONFIG_DEBUG_INFO=y
++CONFIG_DEBUG_VM=y
++CONFIG_DEBUG_LIST=y
++# CONFIG_FRAME_POINTER is not set
++# CONFIG_FORCED_INLINING is not set
++# CONFIG_RCU_TORTURE_TEST is not set
++# CONFIG_LKDTM is not set
++# CONFIG_FAULT_INJECTION is not set
++CONFIG_EARLY_PRINTK=y
++CONFIG_DEBUG_STACKOVERFLOW=y
++CONFIG_DEBUG_STACK_USAGE=y
++
++#
++# Page alloc debug is incompatible with Software Suspend on i386
++#
++CONFIG_DEBUG_RODATA=y
++CONFIG_4KSTACKS=y
++CONFIG_DOUBLEFAULT=y
++
++#
++# Security options
++#
++CONFIG_KEYS=y
++CONFIG_KEYS_DEBUG_PROC_KEYS=y
++CONFIG_SECURITY=y
++CONFIG_SECURITY_NETWORK=y
++CONFIG_SECURITY_NETWORK_XFRM=y
++CONFIG_SECURITY_CAPABILITIES=y
++# CONFIG_SECURITY_ROOTPLUG is not set
++CONFIG_SECURITY_SELINUX=y
++CONFIG_SECURITY_SELINUX_BOOTPARAM=y
++CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=1
++# CONFIG_SECURITY_SELINUX_DISABLE is not set
++CONFIG_SECURITY_SELINUX_DEVELOP=y
++CONFIG_SECURITY_SELINUX_AVC_STATS=y
++CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
++# CONFIG_SECURITY_SELINUX_ENABLE_SECMARK_DEFAULT is not set
++# CONFIG_SECURITY_SELINUX_POLICYDB_VERSION_MAX is not set
++
++#
++# Cryptographic options
++#
++CONFIG_CRYPTO=y
++CONFIG_CRYPTO_ALGAPI=y
++CONFIG_CRYPTO_BLKCIPHER=y
++CONFIG_CRYPTO_HASH=y
++CONFIG_CRYPTO_MANAGER=y
++CONFIG_CRYPTO_HMAC=y
++CONFIG_CRYPTO_XCBC=m
++CONFIG_CRYPTO_NULL=m
++CONFIG_CRYPTO_MD4=m
++CONFIG_CRYPTO_MD5=y
++CONFIG_CRYPTO_SHA1=y
++CONFIG_CRYPTO_SHA256=m
++CONFIG_CRYPTO_SHA512=m
++CONFIG_CRYPTO_WP512=m
++CONFIG_CRYPTO_TGR192=m
++CONFIG_CRYPTO_GF128MUL=m
++CONFIG_CRYPTO_ECB=m
++CONFIG_CRYPTO_CBC=m
++CONFIG_CRYPTO_PCBC=m
++CONFIG_CRYPTO_LRW=m
++# CONFIG_CRYPTO_CRYPTD is not set
++CONFIG_CRYPTO_DES=m
++CONFIG_CRYPTO_FCRYPT=m
++CONFIG_CRYPTO_BLOWFISH=m
++CONFIG_CRYPTO_TWOFISH=m
++CONFIG_CRYPTO_TWOFISH_COMMON=m
++# CONFIG_CRYPTO_TWOFISH_586 is not set
++CONFIG_CRYPTO_SERPENT=m
++CONFIG_CRYPTO_AES=m
++CONFIG_CRYPTO_AES_586=m
++CONFIG_CRYPTO_CAST5=m
++CONFIG_CRYPTO_CAST6=m
++CONFIG_CRYPTO_TEA=m
++CONFIG_CRYPTO_ARC4=m
++CONFIG_CRYPTO_KHAZAD=m
++CONFIG_CRYPTO_ANUBIS=m
++CONFIG_CRYPTO_DEFLATE=m
++CONFIG_CRYPTO_MICHAEL_MIC=m
++CONFIG_CRYPTO_CRC32C=m
++CONFIG_CRYPTO_CAMELLIA=m
++# CONFIG_CRYPTO_TEST is not set
++
++#
++# Hardware crypto devices
++#
++# CONFIG_CRYPTO_DEV_PADLOCK is not set
++CONFIG_CRYPTO_DEV_GEODE=y
++
++#
++# Library routines
++#
++CONFIG_BITREVERSE=y
++CONFIG_CRC_CCITT=m
++CONFIG_CRC16=m
++# CONFIG_CRC_ITU_T is not set
++CONFIG_CRC32=y
++CONFIG_LIBCRC32C=m
++CONFIG_AUDIT_GENERIC=y
++CONFIG_ZLIB_INFLATE=y
++CONFIG_ZLIB_DEFLATE=y
++CONFIG_REED_SOLOMON=y
++CONFIG_REED_SOLOMON_DEC16=y
++CONFIG_TEXTSEARCH=y
++CONFIG_TEXTSEARCH_KMP=m
++CONFIG_TEXTSEARCH_BM=m
++CONFIG_TEXTSEARCH_FSM=m
++CONFIG_PLIST=y
++CONFIG_HAS_IOMEM=y
++CONFIG_HAS_IOPORT=y
++CONFIG_HAS_DMA=y
++CONFIG_GENERIC_HARDIRQS=y
++CONFIG_GENERIC_IRQ_PROBE=y
++CONFIG_X86_BIOS_REBOOT=y
++CONFIG_KTIME_SCALAR=y
+diff --git a/arch/i386/kernel/Makefile b/arch/i386/kernel/Makefile
+index 9d33b00..2e2cf42 100644
+--- a/arch/i386/kernel/Makefile
++++ b/arch/i386/kernel/Makefile
+@@ -39,13 +39,17 @@ obj-$(CONFIG_VM86) += vm86.o
+ obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
+ obj-$(CONFIG_HPET_TIMER) += hpet.o
+ obj-$(CONFIG_K8_NB) += k8.o
+-obj-$(CONFIG_MGEODE_LX) += geode.o
++obj-$(CONFIG_MGEODE_LX) += geode.o mfgpt.o
+
+ obj-$(CONFIG_VMI) += vmi.o vmiclock.o
+ obj-$(CONFIG_PARAVIRT) += paravirt.o
+ obj-y += pcspeaker.o
+
+ obj-$(CONFIG_SCx200) += scx200.o
++obj-$(CONFIG_OLPC) += olpc.o
++obj-$(CONFIG_OLPC_PM) += olpc-pm.o olpc-wakeup.o
++obj-$(CONFIG_OPEN_FIRMWARE) += ofw.o
++obj-$(CONFIG_PROMFS_FS) += prom.o
+
+ # vsyscall.o contains the vsyscall DSO images as __initdata.
+ # We must build both images before we can assemble it.
+diff --git a/arch/i386/kernel/geode.c b/arch/i386/kernel/geode.c
+index 41e8aec..637e301 100644
+--- a/arch/i386/kernel/geode.c
++++ b/arch/i386/kernel/geode.c
+@@ -145,10 +145,14 @@ EXPORT_SYMBOL_GPL(geode_gpio_setup_event);
+
+ static int __init geode_southbridge_init(void)
+ {
++ int timers;
++
+ if (!is_geode())
+ return -ENODEV;
+
+ init_lbars();
++ timers = geode_mfgpt_detect();
++ printk(KERN_INFO "geode-mfgpt: %d timers available.\n", timers);
+ return 0;
+ }
+
+diff --git a/arch/i386/kernel/head.S b/arch/i386/kernel/head.S
+index 8f03821..3176280 100644
+--- a/arch/i386/kernel/head.S
++++ b/arch/i386/kernel/head.S
+@@ -117,8 +117,34 @@ ENTRY(startup_32)
+ movl $(COMMAND_LINE_SIZE/4),%ecx
+ rep
+ movsl
++
++#ifdef CONFIG_OPEN_FIRMWARE
++/*
++ * If Open Firmware booted us, save the OFW client interface callback address
++ * and preserve the OFW page mappings by priming the kernel's new page
++ * directory area with a copy of the OFW page directory. That lets OFW stay
++ * resident in high memory (high in both the virtual and physical spaces)
++ * for at least long enough to copy out the device tree.
++ */
+ 1:
++ movl $(boot_params - __PAGE_OFFSET + OFW_INFO_OFFSET), %ebp
++ cmpl $0x2057464F, (%ebp) /* Magic number "OFW " */
++ jne 1f
++
++ mov 0x8(%ebp), %eax /* Save callback address */
++ mov %eax, call_firmware - __PAGE_OFFSET
+
++ /* Copy the OFW pdir into swapper_pg_dir */
++ movl %esi, %edx /* save %esi */
++ movl $(swapper_pg_dir - __PAGE_OFFSET), %edi
++ movl %cr3, %esi /* Source is current pg_dir base address */
++ movl $1024, %ecx /* Number of page directory entries */
++ rep
++ movsl
++ movl %edx, %esi /* restore %esi */
++#endif
++
++1:
+ /*
+ * Initialize page tables. This creates a PDE and a set of page
+ * tables, which are located immediately beyond _end. The variable
+@@ -129,6 +155,7 @@ ENTRY(startup_32)
+ * Warning: don't use %esi or the stack in this code. However, %esp
+ * can be used as a GPR if you really need it...
+ */
++
+ page_pde_offset = (__PAGE_OFFSET >> 20);
+
+ movl $(pg0 - __PAGE_OFFSET), %edi
+diff --git a/arch/i386/kernel/mfgpt.c b/arch/i386/kernel/mfgpt.c
+new file mode 100644
+index 0000000..2e62a41
+--- /dev/null
++++ b/arch/i386/kernel/mfgpt.c
+@@ -0,0 +1,354 @@
++/* Driver/API for AMD Geode Multi-Function General Purpose Timers (MFGPT)
++ *
++ * Copyright (C) 2006, Advanced Micro Devices, Inc.
++ *
++ * This program is free software; you can redistribute it and/or
++ * modify it under the terms of the GNU General Public License
++ * as published by the Free Software Foundation; either version
++ * 2 of the License, or (at your option) any later version.
++ */
++
++/* The MFPGT timers on the CS5536 provide us with suitable timers to use
++ * as clock event sources - not as good as a HPET or APIC, but certainly
++ * better then the PIT. This isn't a general purpose MFGPT driver, but
++ * a simplified one designed specifically to act as a clock event source.
++ * For full details about the MFGPT, please consult the CS5536 data sheet.
++*/
++
++/* We are using the 32Khz input clock - its the only one that has the
++ * ranges we find desirable. The following table lists the suitable
++ * divisors and the associated hz, minimum interval
++ * and the maximum interval:
++
++ Divisor Hz Min Delta (S) Max Delta (S)
++ 1 32000 .0005 2.048
++ 2 16000 .001 4.096
++ 4 8000 .002 8.192
++ 8 4000 .004 16.384
++ 16 2000 .008 32.768
++ 32 1000 .016 65.536
++ 64 500 .032 131.072
++ 128 250 .064 262.144
++ 256 125 .128 524.288
++*/
++
++#include <linux/kernel.h>
++#include <linux/interrupt.h>
++#include <linux/module.h>
++#include <linux/clocksource.h>
++#include <linux/clockchips.h>
++#include <asm/geode.h>
++
++#include "do_timer.h"
++
++#define MFGPT_MAX_TIMERS 8
++
++#define F_AVAIL 0x01
++
++static struct mfgpt_timer_t {
++ int flags;
++ struct module *owner;
++} mfgpt_timers[MFGPT_MAX_TIMERS];
++
++/* Selected from the table above */
++
++#define MFGPT_DIVISOR 16
++#define MFGPT_SCALE 4 /* divisor = 2^(scale) */
++#define MFGPT_HZ (32000 / MFGPT_DIVISOR)
++#define MFGPT_PERIODIC (MFGPT_HZ / HZ)
++
++#ifdef CONFIG_GEODE_MFGPT_TIMER
++static int __init mfgpt_timer_setup(void);
++#else
++#define mfgpt_timer_setup() (0)
++#endif
++
++/* Allow for disabling of MFGPTs */
++static int disable = 0;
++static int __init mfgpt_disable(char *s)
++{
++ disable = 1;
++ return 1;
++}
++__setup("nomfgpt", mfgpt_disable);
++
++/*
++ * Check whether any MFGPTs are available for the kernel to use. In most
++ * cases, firmware that uses AMD's VSA code will claim all timers during
++ * bootup; we certainly don't want to take them if they're already in use.
++ * In other cases (such as with VSAless OpenFirmware), the system firmware
++ * leaves timers available for us to use.
++ */
++int __init geode_mfgpt_detect(void)
++{
++ int count = 0, i;
++ u16 val;
++
++ if (disable) {
++ printk(KERN_INFO "geode-mfgpt: Skipping MFGPT setup\n");
++ return 0;
++ }
++
++ for (i = 0; i < MFGPT_MAX_TIMERS; i++) {
++ val = geode_mfgpt_read(i, MFGPT_REG_SETUP);
++ if (!(val & MFGPT_SETUP_SETUP)) {
++ mfgpt_timers[i].flags = F_AVAIL;
++ count++;
++ }
++ }
++
++ /* set up clock event device, if desired */
++ i = mfgpt_timer_setup();
++
++ return count;
++}
++
++int geode_mfgpt_toggle_event(int timer, int cmp, int event, int enable)
++{
++ u32 msr, mask, value, dummy;
++ int shift = (cmp == MFGPT_CMP1) ? 0 : 8;
++
++ if (timer < 0 || timer >= MFGPT_MAX_TIMERS)
++ return -EIO;
++
++ /*
++ * The register maps for these are described in sections 6.17.1.x of
++ * the AMD Geode CS5536 Companion Device Data Book.
++ */
++ switch(event) {
++ case MFGPT_EVENT_RESET:
++ /* XXX: According to the docs, we cannot reset timers above
++ * 6; that is, resets for 7 and 8 will be ignored. Is this
++ * a problem? */
++ msr = MFGPT_NR_MSR;
++ mask = 1 << (timer + 24);
++ break;
++
++ case MFGPT_EVENT_NMI:
++ msr = MFGPT_NR_MSR;
++ mask = 1 << (timer + shift);
++ break;
++
++ case MFGPT_EVENT_IRQ:
++ msr = MFGPT_IRQ_MSR;
++ mask = 1 << (timer + shift);
++ break;
++
++ default:
++ return -EIO;
++ }
++
++ rdmsr(msr, value, dummy);
++
++ if (enable)
++ value |= mask;
++ else
++ value &= ~mask;
++
++ wrmsr(msr, value, dummy);
++ return 0;
++}
++EXPORT_SYMBOL(geode_mfgpt_toggle_event);
++
++int geode_mfgpt_set_irq(int timer, int cmp, int irq, int enable)
++{
++ u32 val, dummy;
++ int offset;
++
++ if (timer < 0 || timer >= MFGPT_MAX_TIMERS)
++ return -EIO;
++
++ if (geode_mfgpt_toggle_event(timer, cmp, MFGPT_EVENT_IRQ, enable))
++ return -EIO;
++
++ rdmsr(0x51400022, val, dummy);
++
++ offset = (timer % 4) * 4;
++
++ val &= ~((0xF << offset) | (0xF << (offset + 16)));
++
++ if (enable) {
++ val |= (irq & 0x0F) << (offset);
++ val |= (irq & 0x0F) << (offset + 16);
++ }
++
++ wrmsr(0x51400022, val, dummy);
++ return 0;
++}
++EXPORT_SYMBOL(geode_mfgpt_set_irq);
++
++static int mfgpt_get(int timer, struct module *owner)
++{
++ mfgpt_timers[timer].flags &= ~F_AVAIL;
++ mfgpt_timers[timer].owner = owner;
++ printk(KERN_INFO "geode-mfgpt: Registered timer %d\n", timer);
++ return timer;
++}
++
++int geode_mfgpt_alloc_timer(int timer, int domain, struct module *owner)
++{
++ int i;
++
++ if (!geode_get_dev_base(GEODE_DEV_MFGPT))
++ return -ENODEV;
++ if (timer >= MFGPT_MAX_TIMERS)
++ return -EIO;
++
++ if (timer < 0) {
++ /* Try to find an available timer */
++ for (i = 0; i < MFGPT_MAX_TIMERS; i++) {
++ if (mfgpt_timers[i].flags & F_AVAIL)
++ return mfgpt_get(i, owner);
++
++ if (i == 5 && domain == MFGPT_DOMAIN_WORKING)
++ break;
++ }
++ }
++ else {
++ /* If they requested a specific timer, try to honor that */
++ if (mfgpt_timers[timer].flags & F_AVAIL)
++ return mfgpt_get(timer, owner);
++ }
++
++ /* No timers available - too bad */
++ return -1;
++}
++EXPORT_SYMBOL(geode_mfgpt_alloc_timer);
++
++#ifdef CONFIG_GEODE_MFGPT_TIMER
++
++static unsigned int mfgpt_tick_mode = CLOCK_EVT_MODE_SHUTDOWN;
++static u16 mfgpt_event_clock;
++
++static int irq = 7;
++static int __init mfgpt_setup(char *str)
++{
++ get_option(&str, &irq);
++ return 1;
++}
++__setup("mfgpt_irq=", mfgpt_setup);
++
++static inline void mfgpt_disable_timer(u16 clock)
++{
++ u16 val = geode_mfgpt_read(clock, MFGPT_REG_SETUP);
++ geode_mfgpt_write(clock, MFGPT_REG_SETUP, val & ~MFGPT_SETUP_CNTEN);
++}
++
++static int mfgpt_next_event(unsigned long, struct clock_event_device *);
++static void mfgpt_set_mode(enum clock_event_mode, struct clock_event_device *);
++
++static struct clock_event_device mfgpt_clockevent = {
++ .name = "mfgpt-timer",
++ .features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT,
++ .set_mode = mfgpt_set_mode,
++ .set_next_event = mfgpt_next_event,
++ .rating = 250,
++ .cpumask = CPU_MASK_ALL,
++ .shift = 32
++};
++
++static inline void mfgpt_start_timer(u16 clock, u16 delta)
++{
++ geode_mfgpt_write(mfgpt_event_clock, MFGPT_REG_CMP2, (u16) delta);
++ geode_mfgpt_write(mfgpt_event_clock, MFGPT_REG_COUNTER, 0);
++
++ geode_mfgpt_write(mfgpt_event_clock, MFGPT_REG_SETUP,
++ MFGPT_SETUP_CNTEN | MFGPT_SETUP_CMP2);
++}
++
++static void mfgpt_set_mode(enum clock_event_mode mode,
++ struct clock_event_device *evt)
++{
++ mfgpt_disable_timer(mfgpt_event_clock);
++
++ if (mode == CLOCK_EVT_MODE_PERIODIC)
++ mfgpt_start_timer(mfgpt_event_clock, MFGPT_PERIODIC);
++
++ mfgpt_tick_mode = mode;
++}
++
++static int mfgpt_next_event(unsigned long delta, struct clock_event_device *evt)
++{
++ mfgpt_start_timer(mfgpt_event_clock, delta);
++ return 0;
++}
++
++/* Assume (foolishly?), that this interrupt was due to our tick */
++
++static irqreturn_t mfgpt_tick(int irq, void *dev_id)
++{
++ if (mfgpt_tick_mode == CLOCK_EVT_MODE_SHUTDOWN)
++ return IRQ_HANDLED;
++
++ /* Turn off the clock */
++ mfgpt_disable_timer(mfgpt_event_clock);
++
++ /* Clear the counter */
++ geode_mfgpt_write(mfgpt_event_clock, MFGPT_REG_COUNTER, 0);
++
++ /* Restart the clock in periodic mode */
++
++ if (mfgpt_tick_mode == CLOCK_EVT_MODE_PERIODIC) {
++ geode_mfgpt_write(mfgpt_event_clock, MFGPT_REG_SETUP,
++ MFGPT_SETUP_CNTEN | MFGPT_SETUP_CMP2);
++ }
++
++ mfgpt_clockevent.event_handler(&mfgpt_clockevent);
++ return IRQ_HANDLED;
++}
++
++static struct irqaction mfgptirq = {
++ .handler = mfgpt_tick,
++ .flags = IRQF_DISABLED | IRQF_NOBALANCING,
++ .mask = CPU_MASK_NONE,
++ .name = "mfgpt-timer"
++};
++
++static int __init mfgpt_timer_setup(void)
++{
++ int timer, ret;
++ u16 val;
++
++ timer = geode_mfgpt_alloc_timer(MFGPT_TIMER_ANY, MFGPT_DOMAIN_WORKING, THIS_MODULE);
++ if (timer < 0) {
++ printk(KERN_ERR "mfgpt-timer: Could not allocate a MFPGT timer\n");
++ return -ENODEV;
++ }
++
++ mfgpt_event_clock = timer;
++ /* Set the clock scale and enable the event mode for CMP2 */
++ val = MFGPT_SCALE | (3 << 8);
++
++ geode_mfgpt_write(mfgpt_event_clock, MFGPT_REG_SETUP, val);
++
++ /* Set up the IRQ on the MFGPT side */
++ if (geode_mfgpt_setup_irq(mfgpt_event_clock, MFGPT_CMP2, irq)) {
++ printk(KERN_ERR "mfgpt-timer: Could not set up IRQ %d\n", irq);
++ return -EIO;
++ }
++
++ /* And register it with the kernel */
++ ret = setup_irq(irq, &mfgptirq);
++
++ if (ret) {
++ printk(KERN_ERR "mfgpt-timer: Unable to set up the interrupt.\n");
++ goto err;
++ }
++
++ /* Set up the clock event */
++ mfgpt_clockevent.mult = div_sc(MFGPT_HZ, NSEC_PER_SEC, 32);
++ mfgpt_clockevent.min_delta_ns = clockevent_delta2ns(0xF, &mfgpt_clockevent);
++ mfgpt_clockevent.max_delta_ns = clockevent_delta2ns(0xFFFE, &mfgpt_clockevent);
++
++ printk("mfgpt-timer: registering the MFGT timer as a clock event.\n");
++ clockevents_register_device(&mfgpt_clockevent);
++
++ return 0;
++
++err:
++ geode_mfgpt_release_irq(mfgpt_event_clock, MFGPT_CMP2, irq);
++ printk(KERN_ERR "mfgpt-timer: Unable to set up the MFGPT clock source\n");
++ return -EIO;
++}
++
++#endif
+diff --git a/arch/i386/kernel/ofw.c b/arch/i386/kernel/ofw.c
+new file mode 100644
+index 0000000..fdcd936
+--- /dev/null
++++ b/arch/i386/kernel/ofw.c
+@@ -0,0 +1,100 @@
++/*
++ * ofw.c - Open Firmware client interface for 32-bit systems.
++ * This code is intended to be portable to any 32-bit Open Firmware
++ * implementation with a standard client interface that can be
++ * called when Linux is running.
++ *
++ * Copyright (C) 2007 Mitch Bradley <wmb@firmworks.com>
++ * Copyright (C) 2007 Andres Salomon <dilinger@debian.org>
++ */
++
++#include <stdarg.h>
++#include <linux/spinlock.h>
++#include <linux/module.h>
++#include <asm/ofw.h>
++
++
++int (*call_firmware)(int *);
++
++static DEFINE_SPINLOCK(prom_lock);
++
++#define MAXARGS 20
++
++/*
++ * The return value from ofw() in all cases is 0 if the attempt to call the
++ * function succeeded, <0 otherwise. That return value is from the
++ * gateway function only. Any results from the called function are returned
++ * via output argument pointers.
++ *
++ * Here are call templates for all the standard OFW client services:
++ *
++ * ofw("test", 1, 1, namestr, &missing);
++ * ofw("peer", 1, 1, phandle, &sibling_phandle);
++ * ofw("child", 1, 1, phandle, &child_phandle);
++ * ofw("parent", 1, 1, phandle, &parent_phandle);
++ * ofw("instance_to_package", 1, 1, ihandle, &phandle);
++ * ofw("getproplen", 2, 1, phandle, namestr, &proplen);
++ * ofw("getprop", 4, 1, phandle, namestr, bufaddr, buflen, &size);
++ * ofw("nextprop", 3, 1, phandle, previousstr, bufaddr, &flag);
++ * ofw("setprop", 4, 1, phandle, namestr, bufaddr, len, &size);
++ * ofw("canon", 3, 1, devspecstr, bufaddr, buflen, &length);
++ * ofw("finddevice", 1, 1, devspecstr, &phandle);
++ * ofw("instance-to-path", 3, 1, ihandle, bufaddr, buflen, &length);
++ * ofw("package-to-path", 3, 1, phandle, bufaddr, buflen, &length);
++ * ofw("call_method", numin, numout, in0, in1, ..., &out0, &out1, ...);
++ * ofw("open", 1, 1, devspecstr, &ihandle);
++ * ofw("close", 1, 0, ihandle);
++ * ofw("read", 3, 1, ihandle, addr, len, &actual);
++ * ofw("write", 3, 1, ihandle, addr, len, &actual);
++ * ofw("seek", 3, 1, ihandle, pos_hi, pos_lo, &status);
++ * ofw("claim", 3, 1, virtaddr, size, align, &baseaddr);
++ * ofw("release", 2, 0, virtaddr, size);
++ * ofw("boot", 1, 0, bootspecstr);
++ * ofw("enter", 0, 0);
++ * ofw("exit", 0, 0);
++ * ofw("chain", 5, 0, virtaddr, size, entryaddr, argsaddr, len);
++ * ofw("interpret", numin+1, numout+1, cmdstr, in0, ..., &catchres, &out0, ...);
++ * ofw("set-callback", 1, 1, newfuncaddr, &oldfuncaddr);
++ * ofw("set-symbol-lookup", 2, 0, symtovaladdr, valtosymaddr);
++ * ofw("milliseconds", 0, 1, &ms);
++ */
++
++int ofw(char *name, int numargs, int numres, ...)
++{
++ va_list ap;
++ int argarray[MAXARGS+3];
++ int argnum = 3;
++ int retval;
++ int *intp;
++ unsigned long flags;
++
++ if (!call_firmware)
++ return -1;
++ if ((numargs + numres) > MAXARGS)
++ return -1; /* spit out an error? */
++
++ argarray[0] = (int) name;
++ argarray[1] = numargs;
++ argarray[2] = numres;
++
++ va_start(ap, numres);
++ while (numargs) {
++ argarray[argnum++] = va_arg(ap, int);
++ numargs--;
++ }
++
++ spin_lock_irqsave(&prom_lock, flags);
++ retval = call_firmware(argarray);
++ spin_unlock_irqrestore(&prom_lock, flags);
++
++ if (retval == 0) {
++ while (numres) {
++ intp = va_arg(ap, int *);
++ *intp = argarray[argnum++];
++ numres--;
++ }
++ }
++ va_end(ap);
++ return retval;
++}
++EXPORT_SYMBOL(ofw);
+diff --git a/arch/i386/kernel/olpc-pm.c b/arch/i386/kernel/olpc-pm.c
+new file mode 100644
+index 0000000..93149f1
+--- /dev/null
++++ b/arch/i386/kernel/olpc-pm.c
+@@ -0,0 +1,785 @@
++/* olpc-pm.c
++ * © 2006 Red Hat, Inc.
++ * Portions also copyright 2006 Advanced Micro Devices, Inc.
++ * GPLv2
++ */
++
++#include <linux/kernel.h>
++#include <linux/interrupt.h>
++#include <linux/module.h>
++#include <linux/delay.h>
++#include <linux/input.h>
++#include <linux/suspend.h>
++#include <linux/bootmem.h>
++#include <linux/platform_device.h>
++#include <linux/rtc.h>
++#include <linux/mc146818rtc.h>
++#include <asm/io.h>
++
++#include <asm/olpc.h>
++
++/* A few words about accessing the ACPI and PM registers. Long story short,
++ byte and word accesses of the ACPI and PM registers is broken. The only
++ way to do it really correctly is to use dword accesses, which we do
++ throughout this code. For more details, please consult Eratta 17 and 18
++ here:
++
++ http://www.amd.com/files/connectivitysolutions/geode/geode_gx/34472D_CS5536_B1_specupdate.pdf
++*/
++
++#define PM_IRQ 3
++
++#define CS5536_PM_PWRBTN (1 << 8)
++#define CS5536_PM_RTC (1 << 10)
++
++#define GPIO_WAKEUP_EC (1 << 31)
++#define GPIO_WAKEUP_LID (1 << 30)
++
++#define PM_MODE_NORMAL 0
++#define PM_MODE_TEST 1
++#define PM_MODE_MAX 2
++
++/* These, and the battery EC commands, should be in an olpc.h. */
++#define EC_WRITE_SCI_MASK 0x1b
++#define EC_READ_SCI_MASK 0x1c
++
++extern void do_olpc_suspend_lowlevel(void);
++
++static struct {
++ unsigned long address;
++ unsigned short segment;
++} ofw_bios_entry = { 0, __KERNEL_CS };
++
++static int olpc_pm_mode = PM_MODE_NORMAL;
++static unsigned long acpi_base;
++static unsigned long pms_base;
++static int sci_irq;
++static int olpc_lid_flag;
++
++static struct input_dev *pm_inputdev;
++static struct input_dev *lid_inputdev;
++static struct input_dev *ebook_inputdev;
++static struct pm_ops olpc_pm_ops;
++
++static int gpio_wake_events = 0;
++static int ebook_state = -1;
++static u16 olpc_wakeup_mask = 0;
++
++struct platform_device olpc_powerbutton_dev = {
++ .name = "powerbutton",
++ .id = -1,
++};
++
++struct platform_device olpc_lid_dev = {
++ .name = "lid",
++ .id = -1,
++};
++
++static void __init init_ebook_state(void)
++{
++ if (olpc_ec_cmd(0x2a, NULL, 0, (unsigned char *) &ebook_state, 1)) {
++ printk(KERN_WARNING "olpc-pm: failed to get EBOOK state!\n");
++ ebook_state = 0;
++ }
++ ebook_state &= 1;
++
++ /* the input layer needs to know what value to default to as well */
++ input_report_switch(ebook_inputdev, SW_TABLET_MODE, ebook_state);
++ input_sync(ebook_inputdev);
++}
++
++static void (*battery_callback)(unsigned long);
++static DEFINE_SPINLOCK(battery_callback_lock);
++
++/* propagate_events is non-NULL if run from workqueue,
++ NULL when called at init time to flush SCI queue */
++static void process_sci_queue(struct work_struct *propagate_events)
++{
++ unsigned char data = 0;
++ unsigned char battery_events = 0;
++ int ret;
++
++ do {
++ ret = olpc_ec_cmd(0x84, NULL, 0, &data, 1);
++ if (!ret) {
++ printk(KERN_DEBUG "olpc-pm: SCI 0x%x received\n",
++ data);
++
++ switch (data) {
++ case EC_SCI_SRC_EMPTY:
++ case EC_SCI_SRC_GAME:
++ case EC_SCI_SRC_WLAN:
++ /* we ignore these for now */
++ break;
++ case EC_SCI_SRC_BATERR:
++ printk(KERN_ERR "olpc-pm: Battery Management System detected an error! Remove turnip from battery slot.\n");
++ case EC_SCI_SRC_BATSOC:
++ case EC_SCI_SRC_BATTERY:
++ case EC_SCI_SRC_ACPWR:
++ battery_events |= data;
++ break;
++ case EC_SCI_SRC_EBOOK:
++ ebook_state = !ebook_state;
++ if (propagate_events) {
++ input_report_switch(ebook_inputdev,
++ SW_TABLET_MODE, ebook_state);
++ input_sync(ebook_inputdev);
++ }
++ break;
++ default:
++ printk(KERN_ERR "olpc-pm: Unknown SCI event 0x%x occurred!\n", data);
++ }
++ }
++ } while (data && !ret);
++
++ if (battery_events && battery_callback && propagate_events) {
++ void (*cbk)(unsigned long);
++
++ /* Older EC versions didn't distinguish between AC and battery
++ events */
++ if (olpc_platform_info.ecver < 0x45)
++ battery_events = EC_SCI_SRC_BATTERY | EC_SCI_SRC_ACPWR;
++
++ spin_lock(&battery_callback_lock);
++ cbk = battery_callback;
++ spin_unlock(&battery_callback_lock);
++
++ cbk(battery_events);
++ }
++
++ if (ret)
++ printk(KERN_WARNING "Failed to clear SCI queue!\n");
++}
++
++static DECLARE_WORK(sci_work, process_sci_queue);
++
++void olpc_register_battery_callback(void (*f)(unsigned long))
++{
++ spin_lock(&battery_callback_lock);
++ battery_callback = f;
++ spin_unlock(&battery_callback_lock);
++}
++EXPORT_SYMBOL_GPL(olpc_register_battery_callback);
++
++void olpc_deregister_battery_callback(void)
++{
++ spin_lock(&battery_callback_lock);
++ battery_callback = NULL;
++ spin_unlock(&battery_callback_lock);
++ cancel_work_sync(&sci_work);
++}
++EXPORT_SYMBOL_GPL(olpc_deregister_battery_callback);
++
++
++static int olpc_pm_interrupt(int irq, void *id)
++{
++ uint32_t sts, gpe = 0;
++
++ sts = inl(acpi_base + PM1_STS);
++ outl(sts | 0xFFFF, acpi_base + PM1_STS);
++
++ if (olpc_get_rev() >= OLPC_REV_B2) {
++ gpe = inl(acpi_base + PM_GPE0_STS);
++ outl(0xFFFFFFFF, acpi_base + PM_GPE0_STS);
++ }
++
++ if (sts & CS5536_PM_PWRBTN) {
++ input_report_key(pm_inputdev, KEY_POWER, 1);
++ input_sync(pm_inputdev);
++ printk(KERN_DEBUG "olpm-pm: PM_PWRBTN event received\n");
++ /* Do we need to delay this (and hence schedule_work)? */
++ input_report_key(pm_inputdev, KEY_POWER, 0);
++ input_sync(pm_inputdev);
++ }
++
++ if (gpe & GPIO_WAKEUP_EC) {
++ geode_gpio_clear(OLPC_GPIO_ECSCI, GPIO_NEGATIVE_EDGE_STS);
++ schedule_work(&sci_work);
++ }
++
++ if (gpe & GPIO_WAKEUP_LID) {
++ /* Disable events */
++ geode_gpio_clear(OLPC_GPIO_LID, GPIO_EVENTS_ENABLE);
++
++ /* Clear the edge */
++
++ if (olpc_lid_flag)
++ geode_gpio_clear(OLPC_GPIO_LID, GPIO_NEGATIVE_EDGE_EN);
++ else
++ geode_gpio_clear(OLPC_GPIO_LID, GPIO_POSITIVE_EDGE_EN);
++
++ /* Clear the status too */
++ geode_gpio_set(OLPC_GPIO_LID, GPIO_NEGATIVE_EDGE_STS);
++ geode_gpio_set(OLPC_GPIO_LID, GPIO_POSITIVE_EDGE_STS);
++
++ /* The line is high when the LID is open, but SW_LID
++ * should be high when the LID is closed, so we pass the old
++ * value of olpc_lid_flag
++ */
++
++ input_report_switch(lid_inputdev, SW_LID, olpc_lid_flag);
++ input_sync(lid_inputdev);
++
++ /* Swap the status */
++ olpc_lid_flag = !olpc_lid_flag;
++
++ if (olpc_lid_flag)
++ geode_gpio_set(OLPC_GPIO_LID, GPIO_NEGATIVE_EDGE_EN);
++ else
++ geode_gpio_set(OLPC_GPIO_LID, GPIO_POSITIVE_EDGE_EN);
++
++ /* re-enable the event */
++ geode_gpio_set(OLPC_GPIO_LID, GPIO_EVENTS_ENABLE);
++ }
++
++ return IRQ_HANDLED;
++}
++
++/*
++ * For now, only support STR. We also don't support suspending on
++ * B1s, due to difficulties with the cafe FPGA.
++ */
++static int olpc_pm_state_valid(suspend_state_t pm_state)
++{
++ if (pm_state == PM_SUSPEND_MEM && olpc_rev_after(OLPC_REV_B1))
++ return 1;
++
++ return 0;
++}
++
++/* This is a catchall function for operations that just don't belong
++ * anywhere else. Later we will evaluate if these belong in the
++ * individual device drivers or the firmware.
++ * If you add something to this function, please explain yourself with
++ * a comment.
++ */
++
++extern void gxfb_flatpanel_control(int state);
++
++static u32 gpio_wakeup[2];
++static u64 irq_sources[4];
++static u64 mfgpt_irq_msr, mfgpt_nr_msr;
++
++void olpc_fixup_wakeup(void)
++{
++ u32 base = geode_gpio_base();
++ int i;
++
++ /* This clears any pending events from the status register -
++ * the firmware also does this, but its possible that it tries
++ * it too early before the key has a chance to debounce
++ */
++
++ outl((CS5536_PM_PWRBTN << 16) | 0xFFFF, acpi_base + PM1_STS);
++
++ /* Enable the flatpanel sequencing as early as possible, because
++ it takes ~64ms to resume. This probably belongs in the firmware */
++
++ //gxfb_flatpanel_control(1);
++
++ /* Restore the interrupt sources */
++ wrmsrl(MSR_PIC_YSEL_LOW, irq_sources[0]);
++ wrmsrl(MSR_PIC_ZSEL_LOW, irq_sources[1]);
++ wrmsrl(MSR_PIC_YSEL_HIGH, irq_sources[2]);
++ wrmsrl(MSR_PIC_ZSEL_HIGH, irq_sources[3]);
++
++ /* Restore the X and Y sources for GPIO */
++ outl(gpio_wakeup[0], base + GPIO_MAP_X);
++ outl(gpio_wakeup[1], base + GPIO_MAP_Y);
++
++ /* Resture the MFGPT MSRs */
++ wrmsrl(MFGPT_IRQ_MSR, mfgpt_irq_msr);
++ wrmsrl(MFGPT_NR_MSR, mfgpt_nr_msr);
++
++ for (i=0;i<2;i++) {
++ /* tell the wireless module to restart USB communication */
++ olpc_ec_cmd(0x24, NULL, 0, NULL, 0);
++ }
++}
++
++void olpc_fixup_sleep(void)
++{
++ u32 base = geode_gpio_base();
++ int i;
++
++ /* Save the X and Y sources for GPIO */
++ gpio_wakeup[0] = inl(base + GPIO_MAP_X);
++ gpio_wakeup[1] = inl(base + GPIO_MAP_Y);
++
++ /* Save the Y and Z unrestricted sources */
++
++ rdmsrl(MSR_PIC_YSEL_LOW, irq_sources[0]);
++ rdmsrl(MSR_PIC_ZSEL_LOW, irq_sources[1]);
++ rdmsrl(MSR_PIC_YSEL_HIGH, irq_sources[2]);
++ rdmsrl(MSR_PIC_ZSEL_HIGH, irq_sources[3]);
++
++ /* Turn off the MFGPT timers on the way down */
++
++ for(i = 0; i < 8; i++) {
++ u32 val = geode_mfgpt_read(i, MFGPT_REG_SETUP);
++
++ if (val & MFGPT_SETUP_SETUP) {
++ val &= ~MFGPT_SETUP_CNTEN;
++ geode_mfgpt_write(i, MFGPT_REG_SETUP, val);
++ }
++ }
++
++ /* Save the MFGPT MSRs */
++ rdmsrl(MFGPT_IRQ_MSR, mfgpt_irq_msr);
++ rdmsrl(MFGPT_NR_MSR, mfgpt_nr_msr);
++
++ if (device_may_wakeup(&olpc_powerbutton_dev.dev))
++ olpc_wakeup_mask |= CS5536_PM_PWRBTN;
++ else
++ olpc_wakeup_mask &= ~(CS5536_PM_PWRBTN);
++
++ if (device_may_wakeup(&olpc_lid_dev.dev)) {
++ geode_gpio_set(OLPC_GPIO_LID, GPIO_EVENTS_ENABLE);
++ gpio_wake_events |= GPIO_WAKEUP_LID;
++ } else {
++ geode_gpio_clear(OLPC_GPIO_LID, GPIO_EVENTS_ENABLE);
++ gpio_wake_events &= ~(GPIO_WAKEUP_LID);
++ }
++}
++
++static int olpc_pm_enter(suspend_state_t pm_state)
++{
++ /* Only STR is supported */
++ if (pm_state != PM_SUSPEND_MEM)
++ return -EINVAL;
++
++ olpc_fixup_sleep();
++
++ /* Set the GPIO wakeup bits */
++ outl(gpio_wake_events, acpi_base + PM_GPE0_EN);
++ outl(0xFFFFFFFF, acpi_base + PM_GPE0_STS);
++
++ /* Save CPU state */
++ do_olpc_suspend_lowlevel();
++
++ olpc_fixup_wakeup();
++
++ /* Restore the SCI wakeup events */
++ outl(gpio_wake_events, acpi_base + PM_GPE0_EN);
++
++ return 0;
++}
++
++int asmlinkage olpc_do_sleep(u8 sleep_state)
++{
++ void *pgd_addr = __va(read_cr3());
++ printk(KERN_ERR "olpc_do_sleep!\n"); /* this needs to remain here so
++ * that gcc doesn't optimize
++ * away our __va! */
++ /* FIXME: Set the SCI bits we want to wake up on here */
++
++ /* FIXME: Set any other SCI events that we might want here */
++
++ outl((olpc_wakeup_mask << 16) | 0xFFFF, acpi_base + PM1_STS);
++
++ /* If we are in test mode, then just return (simulate a successful
++ suspend/resume). Otherwise, if we are doing the real thing,
++ then go for the gusto */
++
++ if (olpc_pm_mode != PM_MODE_TEST) {
++ __asm__ __volatile__("movl %0,%%eax" : : "r" (pgd_addr));
++ __asm__("call *(%%edi); cld"
++ : : "D" (&ofw_bios_entry));
++ }
++
++ return 0;
++}
++
++/* This code will slowly disappear as we fixup the issues in the BIOS */
++
++static void __init olpc_fixup_bios(void)
++{
++ unsigned long hi, lo;
++
++ if (olpc_has_vsa()) {
++ /* The VSA aggressively sets up the ACPI and PM register for
++ * trapping - its not enough to force these values in the BIOS -
++ * they seem to be changed during PCI init as well.
++ */
++
++ /* Change the PM registers to decode to the DD */
++
++ rdmsr(0x510100e2, lo, hi);
++ hi |= 0x80000000;
++ wrmsr(0x510100e2, lo, hi);
++
++ /* Change the ACPI registers to decode to the DD */
++
++ rdmsr(0x510100e3, lo, hi);
++ hi |= 0x80000000;
++ wrmsr(0x510100e3, lo, hi);
++ }
++
++ /* GPIO24 controls WORK_AUX */
++
++ geode_gpio_set(OLPC_GPIO_WORKAUX, GPIO_OUTPUT_ENABLE);
++ geode_gpio_set(OLPC_GPIO_WORKAUX, GPIO_OUTPUT_AUX1);
++
++ if (olpc_get_rev() >= OLPC_REV_B2) {
++ /* GPIO10 is connected to the thermal alarm */
++ geode_gpio_set(OLPC_GPIO_THRM_ALRM, GPIO_INPUT_ENABLE);
++ geode_gpio_set(OLPC_GPIO_THRM_ALRM, GPIO_INPUT_AUX1);
++
++ /* Set up to get LID events */
++ geode_gpio_set(OLPC_GPIO_LID, GPIO_INPUT_ENABLE);
++
++ /* Clear edge detection and event enable for now */
++ geode_gpio_clear(OLPC_GPIO_LID, GPIO_EVENTS_ENABLE);
++ geode_gpio_clear(OLPC_GPIO_LID, GPIO_NEGATIVE_EDGE_EN);
++ geode_gpio_clear(OLPC_GPIO_LID, GPIO_POSITIVE_EDGE_EN);
++
++ geode_gpio_set(OLPC_GPIO_LID, GPIO_NEGATIVE_EDGE_STS);
++ geode_gpio_set(OLPC_GPIO_LID, GPIO_POSITIVE_EDGE_STS);
++
++ /* Set the LID to cause an PME event on group 6 */
++ geode_gpio_event_pme(OLPC_GPIO_LID, 6);
++
++ /* Set PME group 6 to fire the SCI interrupt */
++ geode_gpio_set_irq(6, sci_irq);
++ }
++
++ geode_gpio_set(OLPC_GPIO_ECSCI, GPIO_INPUT_ENABLE);
++
++ /* Clear pending events */
++
++ geode_gpio_set(OLPC_GPIO_ECSCI, GPIO_NEGATIVE_EDGE_STS);
++ geode_gpio_set(OLPC_GPIO_ECSCI, GPIO_POSITIVE_EDGE_STS);
++
++ //geode_gpio_set(OLPC_GPIO_ECSCI, GPIO_NEGATIVE_EDGE_EN);
++ geode_gpio_set(OLPC_GPIO_ECSCI, GPIO_EVENTS_ENABLE);
++
++ /* Set the SCI to cause a PME event on group 7 */
++ geode_gpio_event_pme(OLPC_GPIO_ECSCI, 7);
++
++ /* And have group 6 also fire the SCI interrupt */
++ geode_gpio_set_irq(7, sci_irq);
++}
++
++/* This provides a control file for setting up testing of the
++ power management system. For now, there is just one setting:
++ "test" which means that we don't actually enter the power
++ off routine.
++*/
++
++static const char * const pm_states[] = {
++ [PM_MODE_NORMAL] = "normal",
++ [PM_MODE_TEST] = "test",
++};
++
++extern struct mutex pm_mutex;
++extern struct kset power_subsys;
++
++static ssize_t control_show(struct kset *s, char *buf)
++{
++ return sprintf(buf, "%s\n", pm_states[olpc_pm_mode]);
++}
++
++static ssize_t control_store(struct kset *s, const char *buf, size_t n)
++{
++ int i, len;
++ char *p;
++
++ p = memchr(buf, '\n', n);
++ len = p ? p - buf : n;
++
++ /* Grab the mutex */
++ mutex_lock(&pm_mutex);
++
++ for(i = 0; i < PM_MODE_MAX; i++) {
++ if (!strncmp(buf, pm_states[i], len)) {
++ olpc_pm_mode = i;
++ break;
++ }
++ }
++
++ mutex_unlock(&pm_mutex);
++
++ return (i == PM_MODE_MAX) ? -EINVAL : n;
++}
++
++static struct subsys_attribute control_attr = {
++ .attr = {
++ .name = "olpc-pm",
++ .mode = 0644,
++ },
++ .show = control_show,
++ .store = control_store,
++};
++
++static struct attribute * olpc_attributes[] = {
++ &control_attr.attr,
++ NULL
++};
++
++static struct attribute_group olpc_attrs = {
++ .attrs = olpc_attributes,
++};
++
++static int __init alloc_inputdevs(void)
++{
++ int ret = -ENOMEM;
++
++ pm_inputdev = input_allocate_device();
++ if (!pm_inputdev)
++ goto err;
++
++ pm_inputdev->name = "OLPC PM";
++ pm_inputdev->phys = "olpc_pm/input0";
++ set_bit(EV_KEY, pm_inputdev->evbit);
++ set_bit(KEY_POWER, pm_inputdev->keybit);
++
++ ret = input_register_device(pm_inputdev);
++ if (ret) {
++ printk(KERN_ERR "olpc-pm: failed to register PM input device: %d\n", ret);
++ goto err;
++ }
++
++ lid_inputdev = input_allocate_device();
++ if (!lid_inputdev)
++ goto err;
++
++ lid_inputdev->name = "OLPC lid switch";
++ lid_inputdev->phys = "olpc_pm/input1";
++ set_bit(EV_SW, lid_inputdev->evbit);
++ set_bit(SW_LID, lid_inputdev->swbit);
++
++ ret = input_register_device(lid_inputdev);
++ if (ret) {
++ printk(KERN_ERR "olpc-pm: failed to register lid input device: %d\n", ret);
++ goto err;
++ }
++
++ ebook_inputdev = input_allocate_device();
++ if (!ebook_inputdev)
++ goto err;
++
++ ebook_inputdev->name = "OLPC ebook switch";
++ ebook_inputdev->phys = "olpc_pm/input2";
++ set_bit(EV_SW, ebook_inputdev->evbit);
++ set_bit(SW_TABLET_MODE, ebook_inputdev->swbit);
++
++ ret = input_register_device(ebook_inputdev);
++ if (ret) {
++ printk(KERN_ERR "olpc-pm: failed to register ebook input device: %d\n", ret);
++ goto err;
++ }
++
++ return ret;
++err:
++ if (ebook_inputdev) {
++ input_unregister_device(ebook_inputdev);
++ ebook_inputdev = NULL;
++ }
++ if (lid_inputdev) {
++ input_unregister_device(lid_inputdev);
++ lid_inputdev = NULL;
++ }
++ if (pm_inputdev) {
++ input_unregister_device(pm_inputdev);
++ pm_inputdev = NULL;
++ }
++
++ return ret;
++}
++
++static int __init olpc_pm_init(void)
++{
++ uint32_t lo, hi;
++ int ret;
++ uint8_t ec_byte;
++
++ if (!machine_is_olpc())
++ return -ENODEV;
++
++ acpi_base = geode_acpi_base();
++ pms_base = geode_pms_base();
++
++ if (!acpi_base || !pms_base)
++ return -ENODEV;
++
++ ret = alloc_inputdevs();
++ if (ret)
++ return ret;
++
++ rdmsr(0x51400020, lo, hi);
++ sci_irq = (lo >> 20) & 15;
++
++ if (sci_irq) {
++ printk(KERN_INFO "SCI is mapped to IRQ %d\n", sci_irq);
++ } else {
++ /* Zero doesn't mean zero -- it means masked */
++ printk(KERN_INFO "SCI unmapped. Mapping to IRQ 3\n");
++ sci_irq = 3;
++ lo |= 0x00300000;
++ wrmsrl(0x51400020, lo);
++ }
++
++ olpc_fixup_bios();
++
++ lo = inl(pms_base + PM_FSD);
++
++ /* Lock, enable failsafe, 4 seconds */
++ outl(0xc001f400, pms_base + PM_FSD);
++
++ /* Here we set up the SCI events we're interested in during
++ * real-time. We have no sleep button, and the RTC doesn't make
++ * sense, so set up the power button
++ */
++
++ outl(inl(acpi_base) | ((CS5536_PM_PWRBTN) << 16), acpi_base);
++
++ if (olpc_get_rev() >= OLPC_REV_B2) {
++ gpio_wake_events |= GPIO_WAKEUP_LID;
++
++ /* Get the current value of the GPIO, and set up the edges */
++ olpc_lid_flag = geode_gpio_isset(OLPC_GPIO_LID, GPIO_READ_BACK);
++
++ /* Watch for the opposite edge */
++
++ if (olpc_lid_flag)
++ geode_gpio_set(OLPC_GPIO_LID, GPIO_NEGATIVE_EDGE_EN);
++ else
++ geode_gpio_set(OLPC_GPIO_LID, GPIO_POSITIVE_EDGE_EN);
++
++ /* Enable the event */
++ geode_gpio_set(OLPC_GPIO_LID, GPIO_EVENTS_ENABLE);
++ }
++
++ /* Set up the mask for wakeups the EC will generate SCIs on */
++
++ ret = olpc_ec_cmd(EC_READ_SCI_MASK, NULL, 0, &ec_byte, 1);
++ if (ret)
++ printk(KERN_ERR "Error getting the EC SCI mask: %d\n", ret);
++
++ /* Disable battery 1% charge wakeups */
++ ec_byte &= ~EC_SCI_SRC_BATSOC;
++
++ ret = olpc_ec_cmd(EC_WRITE_SCI_MASK, &ec_byte, 1, NULL, 0);
++ if (ret)
++ printk(KERN_ERR "Error setting the EC SCI mask: %d\n", ret);
++
++ /* Set up the EC SCI */
++
++ gpio_wake_events |= GPIO_WAKEUP_EC;
++
++ outl(gpio_wake_events, acpi_base + PM_GPE0_EN);
++ outl(0xFFFFFFFF, acpi_base + PM_GPE0_STS);
++
++ /* Select level triggered in PIC */
++
++ if (sci_irq < 8) {
++ lo = inb(0x4d0);
++ lo |= 1 << sci_irq;
++ outb(lo, 0x4d0);
++ } else {
++ lo = inb(0x4d1);
++ lo |= 1 << (sci_irq - 8);
++ outb(lo, 0x4d1);
++ }
++ /* Clear pending interrupt */
++ outl(inl(acpi_base) | 0xFFFF, acpi_base);
++ process_sci_queue(0); /* we just want to flush the queue here */
++ init_ebook_state();
++
++ /* Enable the interrupt */
++
++ ret = request_irq(sci_irq, &olpc_pm_interrupt, 0, "SCI", &acpi_base);
++
++ if (ret) {
++ printk(KERN_ERR "Error registering SCI: %d\n", ret);
++ return ret;
++ }
++
++ ofw_bios_entry.address = 0xF0000 + PAGE_OFFSET;
++ pm_set_ops(&olpc_pm_ops);
++
++ sysfs_create_group(&power_subsys.kobj, &olpc_attrs);
++
++ return 0;
++}
++
++
++#if defined (CONFIG_RTC_DRV_CMOS) || defined (CONFIG_RTC_DRV_CMOS_MODULE)
++struct resource rtc_platform_resource[2] = {
++ {
++ .flags = IORESOURCE_IO,
++ .start = RTC_PORT(0),
++ .end = RTC_PORT(0) + RTC_IO_EXTENT
++ },
++ {
++ .flags = IORESOURCE_IRQ,
++ .start = 8,
++ .end = 8,
++ },
++};
++
++
++static void rtc_wake_on(struct device *dev)
++{
++ olpc_wakeup_mask |= CS5536_PM_RTC;
++}
++
++static void rtc_wake_off(struct device *dev)
++{
++ olpc_wakeup_mask &= ~(CS5536_PM_RTC);
++}
++
++static struct cmos_rtc_board_info rtc_info = {
++ .rtc_day_alarm = 0,
++ .rtc_mon_alarm = 0,
++ .rtc_century = 0,
++ .wake_on = rtc_wake_on,
++ .wake_off = rtc_wake_off,
++};
++
++struct platform_device olpc_rtc_device = {
++ .name = "rtc_cmos",
++ .id = -1,
++ .num_resources = ARRAY_SIZE(rtc_platform_resource),
++ .dev.platform_data = &rtc_info,
++ .resource = rtc_platform_resource,
++};
++
++static int __init olpc_platform_init(void)
++{
++ (void)platform_device_register(&olpc_rtc_device);
++ device_init_wakeup(&olpc_rtc_device.dev, 1);
++
++ (void)platform_device_register(&olpc_powerbutton_dev);
++ device_init_wakeup(&olpc_powerbutton_dev.dev, 1);
++
++ (void)platform_device_register(&olpc_lid_dev);
++ device_init_wakeup(&olpc_lid_dev.dev, 1);
++
++ return 0;
++}
++arch_initcall(olpc_platform_init);
++#endif /* CONFIG_RTC_DRV_CMOS */
++
++static void olpc_pm_exit(void)
++{
++ /* Clear any pending events, and disable them */
++ outl(0xFFFF, acpi_base+2);
++
++ free_irq(sci_irq, &acpi_base);
++ input_unregister_device(pm_inputdev);
++ input_unregister_device(lid_inputdev);
++ input_unregister_device(ebook_inputdev);
++}
++
++static struct pm_ops olpc_pm_ops = {
++ .valid = olpc_pm_state_valid,
++ .enter = olpc_pm_enter,
++};
++
++module_init(olpc_pm_init);
++module_exit(olpc_pm_exit);
++
++MODULE_LICENSE("GPL");
++MODULE_AUTHOR("David Woodhouse <dwmw2@infradead.org>");
++MODULE_DESCRIPTION("AMD Geode power management for OLPC CL1");
+diff --git a/arch/i386/kernel/olpc-sleep.S b/arch/i386/kernel/olpc-sleep.S
+new file mode 100644
+index 0000000..9535c9a
+--- /dev/null
++++ b/arch/i386/kernel/olpc-sleep.S
+@@ -0,0 +1,39 @@
++.text
++
++ENTRY(olpc_sleep_asm)
++olpc_sleep:
++ ;; Get the value of PM1_CNT and store it off
++
++ add 08h, ax
++ mov bx,dx
++ in dx,eax
++ or 2000h, ax
++ mov ax,di
++
++ ;; flush the cache
++ wbinvd
++
++ ;; GX2 must disable refresh before going into self-refresh
++ mov 2000000180xh, ecx
++ rdmsr
++ mov eax, esi
++ and 0FF0000FFh, eax
++ wrmsr
++
++ ;; Now, put the memory into self refresh
++ mov 2004, cx
++ xor edx, edx
++ xor eax, eax
++ mov 04h, al
++ wrmsr
++
++ ;; Thats all she wrote - time to go to sleep
++
++ mov bx, dx
++ movzx di, eax
++ out eax, dx
++
++ ;;
++
++
++
+diff --git a/arch/i386/kernel/olpc-wakeup.S b/arch/i386/kernel/olpc-wakeup.S
+new file mode 100644
+index 0000000..a92cc61
+--- /dev/null
++++ b/arch/i386/kernel/olpc-wakeup.S
+@@ -0,0 +1,122 @@
++.text
++#include <linux/linkage.h>
++#include <asm/segment.h>
++#include <asm/page.h>
++
++ALIGN
++ .align 4096
++
++wakeup_start:
++# jmp wakeup_start
++
++ cli
++ cld
++
++ # Clear any dangerous flags
++
++ pushl $0
++ popfl
++
++ # Set up %cr3
++ movl $swsusp_pg_dir - __PAGE_OFFSET, %eax
++ movl %eax, %cr3
++
++ movl saved_cr4, %eax
++ movl %eax, %cr4
++
++ movl saved_cr0, %eax
++ movl %eax, %cr0
++
++ jmp 1f
++1:
++ ljmpl $__KERNEL_CS,$wakeup_return
++
++
++.org 0x1000
++
++wakeup_return:
++ movw $__KERNEL_DS, %ax
++ movw %ax, %ss
++ movw %ax, %ds
++ movw %ax, %es
++ movw %ax, %fs
++ movw %ax, %gs
++
++ lgdt saved_gdt
++ lidt saved_idt
++ lldt saved_ldt
++ ljmp $(__KERNEL_CS),$1f
++1:
++ movl %cr3, %eax
++ movl %eax, %cr3
++ wbinvd
++
++ # Go back to the return point
++ jmp ret_point
++
++save_registers:
++ sgdt saved_gdt
++ sidt saved_idt
++ sldt saved_ldt
++
++ pushl %edx
++ movl %cr4, %edx
++ movl %edx, saved_cr4
++
++ movl %cr0, %edx
++ movl %edx, saved_cr0
++
++ popl %edx
++
++
++ movl %ebx, saved_context_ebx
++ movl %ebp, saved_context_ebp
++ movl %esi, saved_context_esi
++ movl %edi, saved_context_edi
++
++ pushfl
++ popl saved_context_eflags
++
++ ret
++
++
++restore_registers:
++ movl saved_context_ebp, %ebp
++ movl saved_context_ebx, %ebx
++ movl saved_context_esi, %esi
++ movl saved_context_edi, %edi
++
++ pushl saved_context_eflags
++ popfl
++
++ ret
++
++
++ENTRY(do_olpc_suspend_lowlevel)
++ call save_processor_state
++ call save_registers
++
++ # This is the stack context we want to remember
++ movl %esp, saved_context_esp
++
++ pushl $3
++ call olpc_do_sleep
++
++ jmp wakeup_start
++ .p2align 4,,7
++ret_point:
++ movl saved_context_esp, %esp
++
++ call restore_registers
++ call restore_processor_state
++ ret
++
++.data
++ALIGN
++
++saved_gdt: .long 0,0
++saved_idt: .long 0,0
++saved_ldt: .long 0
++saved_cr4: .long 0
++saved_cr0: .long 0
++
+diff --git a/arch/i386/kernel/olpc.c b/arch/i386/kernel/olpc.c
+new file mode 100644
+index 0000000..d540cb0
+--- /dev/null
++++ b/arch/i386/kernel/olpc.c
+@@ -0,0 +1,320 @@
++/* Support for the OLPC DCON and OLPC EC access
++ * Copyright (C) 2006, Advanced Micro Devices, Inc.
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of the GNU General Public License as published by
++ * the Free Software Foundation; either version 2 of the License, or
++ * (at your option) any later version.
++ */
++
++#include <linux/autoconf.h>
++#include <linux/kernel.h>
++#include <linux/init.h>
++#include <linux/mc146818rtc.h>
++#include <linux/delay.h>
++#include <linux/spinlock.h>
++
++#include <asm/olpc.h>
++#include <asm/ofw.h>
++
++/* This is our new multi-purpose structure used to contain the
++ * information about the platform that we detect
++ */
++
++struct olpc_platform_t olpc_platform_info;
++EXPORT_SYMBOL_GPL(olpc_platform_info);
++
++/*********************************************************************
++ * EC locking and access
++ *********************************************************************/
++
++static DEFINE_SPINLOCK(ec_lock);
++
++/* what the timeout *should* be (in ms) */
++#define EC_BASE_TIMEOUT 20
++
++/* the timeout that bugs in the EC might force us to actually use */
++static int ec_timeout = EC_BASE_TIMEOUT;
++
++static int __init olpc_ec_timeout_set(char *str)
++{
++ if (get_option(&str, &ec_timeout) != 1) {
++ ec_timeout = EC_BASE_TIMEOUT;
++ printk(KERN_ERR "olpc-ec: invalid argument to "
++ "'olpc_ec_timeout=', ignoring!\n");
++ }
++ printk(KERN_DEBUG "olpc-ec: using %d ms delay for EC commands.\n",
++ ec_timeout);
++ return 1;
++}
++__setup("olpc_ec_timeout=", olpc_ec_timeout_set);
++
++/*
++ * These *bf_status functions return whether the buffers are full or not.
++ */
++
++static inline unsigned int ibf_status(unsigned int port)
++{
++ return inb(port) & 0x02;
++}
++
++static inline unsigned int obf_status(unsigned int port)
++{
++ return inb(port) & 0x01;
++}
++
++#define wait_on_ibf(p, d) __wait_on_ibf(__LINE__, (p), (d))
++static int __wait_on_ibf(unsigned int line, unsigned int port, int desired)
++{
++ unsigned int timeo;
++ int state = ibf_status(port);
++
++ for (timeo = ec_timeout; state != desired && timeo; timeo--) {
++ mdelay(1);
++ state = ibf_status(port);
++ }
++
++ if ((state == desired) && (ec_timeout > EC_BASE_TIMEOUT) &&
++ timeo < (ec_timeout - EC_BASE_TIMEOUT)) {
++ printk(KERN_WARNING "olpc-ec: waited %u ms for IBF (%d)!\n",
++ EC_BASE_TIMEOUT-timeo, line);
++ }
++
++ return !(state == desired);
++}
++
++#define wait_on_obf(p, d) __wait_on_obf(__LINE__, (p), (d))
++static int __wait_on_obf(unsigned int line, unsigned int port, int desired)
++{
++ unsigned int timeo;
++ int state = obf_status(port);
++
++ for (timeo = ec_timeout; state != desired && timeo; timeo--) {
++ mdelay(1);
++ state = obf_status(port);
++ }
++
++ if ((state == desired) && (ec_timeout > EC_BASE_TIMEOUT) &&
++ timeo < (ec_timeout - EC_BASE_TIMEOUT)) {
++ printk(KERN_WARNING "olpc-ec: waited %u ms for OBF (%d)!\n",
++ EC_BASE_TIMEOUT-timeo, line);
++ }
++
++ return !(state == desired);
++}
++
++int olpc_ec_cmd(unsigned char cmd, unsigned char *inbuf, size_t inlen,
++ unsigned char *outbuf, size_t outlen)
++{
++ unsigned long flags;
++ int ret = -EIO;
++ int i;
++
++ spin_lock_irqsave(&ec_lock, flags);
++
++ if (wait_on_ibf(0x6c, 0)) {
++ printk(KERN_ERR "olpc-ec: timeout waiting for EC to "
++ "quiesce!\n");
++ goto err;
++ }
++
++restart:
++ /*
++ * Note that if we time out during any IBF checks, that's a failure;
++ * we have to return. There's no way for the kernel to clear that.
++ *
++ * If we time out during an OBF check, we can restart the command;
++ * reissuing it will clear the OBF flag, and we should be alright.
++ * The OBF flag will sometimes misbehave due to what we believe
++ * is a hardware quirk..
++ */
++ printk(KERN_DEBUG "olpc-ec: running cmd 0x%x\n", cmd);
++ outb(cmd, 0x6c);
++
++ if (wait_on_ibf(0x6c, 0)) {
++ printk(KERN_ERR "olpc-ec: timeout waiting for EC to read "
++ "command!\n");
++ goto err;
++ }
++
++ if (inbuf && inlen) {
++ /* write data to EC */
++ for (i = 0; i < inlen; i++) {
++ if (wait_on_ibf(0x6c, 0)) {
++ printk(KERN_ERR "olpc-ec: timeout waiting for"
++ " EC accept data!\n");
++ goto err;
++ }
++ printk(KERN_DEBUG "olpc-ec: sending cmd arg 0x%x\n",
++ inbuf[i]);
++ outb(inbuf[i], 0x68);
++ }
++ }
++ if (outbuf && outlen) {
++ /* read data from EC */
++ for (i = 0; i < outlen; i++) {
++ if (wait_on_obf(0x6c, 1)) {
++ printk(KERN_ERR "olpc-ec: timeout waiting for"
++ " EC to provide data!\n");
++ goto restart;
++ }
++ outbuf[i] = inb(0x68);
++ printk(KERN_DEBUG "olpc-ec: received 0x%x\n",
++ outbuf[i]);
++ }
++ }
++
++ ret = 0;
++err:
++ spin_unlock_irqrestore(&ec_lock, flags);
++ return ret;
++}
++EXPORT_SYMBOL_GPL(olpc_ec_cmd);
++
++/*********************************************************************
++ * DCON stuff
++ *********************************************************************/
++
++static void olpc_power_off(void)
++{
++ printk(KERN_INFO "OLPC power off sequence...\n");
++ outb(0xff, 0x381);
++ outb(0x14, 0x382);
++ outb(0x01, 0x383);
++ outb(0xff, 0x381);
++ outb(0x14, 0x382);
++ outb(0x00, 0x383);
++}
++
++static void __init
++ec_detect(void)
++{
++ olpc_ec_cmd(0x08, NULL, 0, (unsigned char *) &olpc_platform_info.ecver, 1);
++}
++
++/* Check to see if this version of the OLPC board has VSA built
++ * in, and set a flag
++ */
++
++static void __init vsa_detect(void)
++{
++ u16 rev;
++
++ outw(0xFC53, 0xAC1C);
++ outw(0x0003, 0xAC1C);
++
++ rev = inw(0xAC1E);
++
++ if (rev == 0x4132)
++ olpc_platform_info.flags |= OLPC_F_VSA;
++}
++
++/* Map OFW revisions to what OLPC_REV_* */
++static const char __initdata *olpc_boardrev_str[] = {
++ "A1",
++ "preB1",
++ "B1",
++ "preB2",
++ "B2",
++ "preB3",
++ "B3",
++ "B4",
++ "C1",
++ "R1",
++};
++
++static void __init platform_detect(char *revision, size_t len)
++{
++ size_t propsize;
++ int i;
++
++ BUG_ON(ARRAY_SIZE(olpc_boardrev_str) != OLPC_REV_UNKNOWN);
++
++ if (ofw("getprop", 4, 1, NULL, "model", revision, len, &propsize)) {
++ printk(KERN_ERR "ofw: getprop call failed!\n");
++ goto failed;
++ }
++ if (len < propsize) {
++ printk(KERN_ERR "ofw: revision string is too long!\n");
++ goto failed;
++ }
++
++ for (i=0; i < ARRAY_SIZE(olpc_boardrev_str); i++) {
++ if (strcmp(revision, olpc_boardrev_str[i]) == 0) {
++ olpc_platform_info.boardrev = i;
++ return;
++ }
++ }
++
++failed:
++ strncpy(revision, "Unknown", len);
++ olpc_platform_info.boardrev = OLPC_REV_UNKNOWN;
++}
++
++static int olpc_dcon_present = -1;
++module_param(olpc_dcon_present, int, 0444);
++
++/* REV_A CMOS map:
++ * bit 440; DCON present bit
++ */
++
++#define OLPC_CMOS_DCON_OFFSET (440 / 8)
++#define OLPC_CMOS_DCON_MASK 0x01
++
++static int __init olpc_init(void)
++{
++ unsigned char *romsig;
++ char revision[10];
++
++ spin_lock_init(&ec_lock);
++
++ romsig = ioremap(0xffffffc0, 16);
++
++ if (!romsig)
++ return 0;
++
++ if (strncmp(romsig, "CL1 Q", 7))
++ goto unmap;
++ if (strncmp(romsig+6, romsig+13, 3)) {
++ printk(KERN_INFO "OLPC BIOS signature looks invalid. Assuming not OLPC\n");
++ goto unmap;
++ }
++ printk(KERN_INFO "OLPC board with OpenFirmware: %.16s\n", romsig);
++
++ olpc_platform_info.flags |= OLPC_F_PRESENT;
++
++ pm_power_off = olpc_power_off;
++
++ /* Get the platform revision */
++ platform_detect(revision, sizeof(revision));
++
++ /* If olpc_dcon_present isn't set by the command line, then
++ * "detect" it
++ */
++
++ if (olpc_dcon_present == -1) {
++ /* B1 and greater always has a DCON */
++ if (olpc_platform_info.boardrev >= OLPC_REV_B1 &&
++ olpc_platform_info.boardrev < OLPC_REV_UNKNOWN)
++ olpc_dcon_present = 1;
++ }
++
++ if (olpc_dcon_present)
++ olpc_platform_info.flags |= OLPC_F_DCON;
++
++ /* Get the EC revision */
++ ec_detect();
++
++ /* Check to see if the VSA exists */
++ vsa_detect();
++
++ printk(KERN_INFO "OLPC board revision: %s (EC=%x)\n", revision,
++ olpc_platform_info.ecver);
++
++ unmap:
++ iounmap(romsig);
++
++ return 0;
++}
++
++postcore_initcall(olpc_init);
+diff --git a/arch/i386/kernel/prom.c b/arch/i386/kernel/prom.c
+new file mode 100644
+index 0000000..d64bb27
+--- /dev/null
++++ b/arch/i386/kernel/prom.c
+@@ -0,0 +1,478 @@
++/*
++ * Procedures for creating, accessing and interpreting the device tree.
++ *
++ * Paul Mackerras August 1996.
++ * Copyright (C) 1996-2005 Paul Mackerras.
++ *
++ * Adapted for 64bit PowerPC by Dave Engebretsen and Peter Bergner.
++ * {engebret|bergner}@us.ibm.com
++ *
++ * Adapted for sparc64 by David S. Miller davem@davemloft.net
++ *
++ * Adapter for i386/OLPC by Andres Salomon <dilinger@debian.org>
++ *
++ * This program is free software; you can redistribute it and/or
++ * modify it under the terms of the GNU General Public License
++ * as published by the Free Software Foundation; either version
++ * 2 of the License, or (at your option) any later version.
++ */
++
++#include <linux/kernel.h>
++#include <linux/types.h>
++#include <linux/string.h>
++#include <linux/mm.h>
++#include <linux/bootmem.h>
++#include <linux/module.h>
++#include <asm/prom.h>
++#include <asm/ofw.h>
++
++/*
++ * XXX: This is very much a stub; right now we're keeping 2 device trees
++ * in memory (one for promfs, and one here). That will not remain
++ * for long!
++ */
++
++static struct device_node *allnodes;
++
++/* use when traversing tree through the allnext, child, sibling,
++ * or parent members of struct device_node.
++ */
++static DEFINE_RWLOCK(devtree_lock);
++
++int of_device_is_compatible(const struct device_node *device,
++ const char *compat)
++{
++ const char* cp;
++ int cplen, l;
++
++ cp = of_get_property(device, "compatible", &cplen);
++ if (cp == NULL)
++ return 0;
++ while (cplen > 0) {
++ if (strncmp(cp, compat, strlen(compat)) == 0)
++ return 1;
++ l = strlen(cp) + 1;
++ cp += l;
++ cplen -= l;
++ }
++
++ return 0;
++}
++EXPORT_SYMBOL(of_device_is_compatible);
++
++struct device_node *of_get_parent(const struct device_node *node)
++{
++ struct device_node *np;
++
++ if (!node)
++ return NULL;
++
++ np = node->parent;
++
++ return np;
++}
++EXPORT_SYMBOL(of_get_parent);
++
++struct device_node *of_get_next_child(const struct device_node *node,
++ struct device_node *prev)
++{
++ struct device_node *next;
++
++ next = prev ? prev->sibling : node->child;
++ for (; next != 0; next = next->sibling) {
++ break;
++ }
++
++ return next;
++}
++EXPORT_SYMBOL(of_get_next_child);
++
++struct device_node *of_find_node_by_path(const char *path)
++{
++ struct device_node *np = allnodes;
++
++ for (; np != 0; np = np->allnext) {
++ if (np->full_name != 0 && strcmp(np->full_name, path) == 0)
++ break;
++ }
++
++ return np;
++}
++EXPORT_SYMBOL(of_find_node_by_path);
++
++struct device_node *of_find_node_by_phandle(phandle handle)
++{
++ struct device_node *np;
++
++ for (np = allnodes; np != 0; np = np->allnext)
++ if (np->node == handle)
++ break;
++
++ return np;
++}
++EXPORT_SYMBOL(of_find_node_by_phandle);
++
++struct device_node *of_find_node_by_name(struct device_node *from,
++ const char *name)
++{
++ struct device_node *np;
++
++ np = from ? from->allnext : allnodes;
++ for (; np != NULL; np = np->allnext)
++ if (np->name != NULL && strcmp(np->name, name) == 0)
++ break;
++
++ return np;
++}
++EXPORT_SYMBOL(of_find_node_by_name);
++
++struct device_node *of_find_node_by_type(struct device_node *from,
++ const char *type)
++{
++ struct device_node *np;
++
++ np = from ? from->allnext : allnodes;
++ for (; np != 0; np = np->allnext)
++ if (np->type != 0 && strcmp(np->type, type) == 0)
++ break;
++
++ return np;
++}
++EXPORT_SYMBOL(of_find_node_by_type);
++
++struct device_node *of_find_compatible_node(struct device_node *from,
++ const char *type, const char *compatible)
++{
++ struct device_node *np;
++
++ np = from ? from->allnext : allnodes;
++ for (; np != 0; np = np->allnext) {
++ if (type != NULL
++ && !(np->type != 0 && strcmp(np->type, type) == 0))
++ continue;
++ if (of_device_is_compatible(np, compatible))
++ break;
++ }
++
++ return np;
++}
++EXPORT_SYMBOL(of_find_compatible_node);
++
++struct property *of_find_property(const struct device_node *np,
++ const char *name,
++ int *lenp)
++{
++ struct property *pp;
++
++ for (pp = np->properties; pp != 0; pp = pp->next) {
++ if (strcasecmp(pp->name, name) == 0) {
++ if (lenp != 0)
++ *lenp = pp->length;
++ break;
++ }
++ }
++ return pp;
++}
++EXPORT_SYMBOL(of_find_property);
++
++/*
++ * Find a property with a given name for a given node
++ * and return the value.
++ */
++const void *of_get_property(const struct device_node *np, const char *name,
++ int *lenp)
++{
++ struct property *pp = of_find_property(np,name,lenp);
++ return pp ? pp->value : NULL;
++}
++EXPORT_SYMBOL(of_get_property);
++
++int of_getintprop_default(struct device_node *np, const char *name, int def)
++{
++ struct property *prop;
++ int len;
++
++ prop = of_find_property(np, name, &len);
++ if (!prop || len != 4)
++ return def;
++
++ return *(int *) prop->value;
++}
++EXPORT_SYMBOL(of_getintprop_default);
++
++int of_n_addr_cells(struct device_node *np)
++{
++ const int* ip;
++ do {
++ if (np->parent)
++ np = np->parent;
++ ip = of_get_property(np, "#address-cells", NULL);
++ if (ip != NULL)
++ return *ip;
++ } while (np->parent);
++ /* No #address-cells property for the root node, default to 2 */
++ return 2;
++}
++EXPORT_SYMBOL(of_n_addr_cells);
++
++int of_n_size_cells(struct device_node *np)
++{
++ const int* ip;
++ do {
++ if (np->parent)
++ np = np->parent;
++ ip = of_get_property(np, "#size-cells", NULL);
++ if (ip != NULL)
++ return *ip;
++ } while (np->parent);
++ /* No #size-cells property for the root node, default to 1 */
++ return 1;
++}
++EXPORT_SYMBOL(of_n_size_cells);
++
++int of_set_property(struct device_node *dp, const char *name, void *val, int len)
++{
++ return -EIO;
++}
++EXPORT_SYMBOL(of_set_property);
++
++static unsigned int prom_early_allocated;
++
++static void * __init prom_early_alloc(unsigned long size)
++{
++ void *ret;
++
++ ret = kmalloc(size, GFP_KERNEL);
++ if (ret != NULL)
++ memset(ret, 0, size);
++ else
++ printk(KERN_ERR "ACK! couldn't allocate prom memory!\n");
++
++ prom_early_allocated += size;
++
++ return ret;
++}
++
++static int is_root_node(const struct device_node *dp)
++{
++ if (!dp)
++ return 0;
++
++ return (dp->parent == NULL);
++}
++
++static char * __init build_path_component(struct device_node *dp)
++{
++ int pathlen;
++ char *n, *i;
++
++ if (ofw("package-to-path", 3, 1, dp->node, NULL, 0, &pathlen)) {
++ printk(KERN_ERR "PROM: unable to get path name from OFW!\n");
++ return "ERROR";
++ }
++ n = prom_early_alloc(pathlen + 1);
++ if (ofw("package-to-path", 3, 1, dp->node, n, pathlen+1, &pathlen))
++ printk(KERN_ERR "PROM: unable to get path name from OFW\n");
++
++ if ((i = strrchr(n, '/')))
++ n = ++i; /* we only want the file name */
++ return n;
++}
++
++static char * __init build_full_name(struct device_node *dp)
++{
++ int len, ourlen, plen;
++ char *n;
++
++ plen = strlen(dp->parent->full_name);
++ ourlen = strlen(dp->path_component_name);
++ len = ourlen + plen + 2;
++
++ n = prom_early_alloc(len);
++ strcpy(n, dp->parent->full_name);
++ if (!is_root_node(dp->parent)) {
++ strcpy(n + plen, "/");
++ plen++;
++ }
++ strcpy(n + plen, dp->path_component_name);
++
++ return n;
++}
++
++static struct property * __init build_one_prop(phandle node, char *prev, char *special_name, void *special_val, int special_len)
++{
++ static struct property *tmp = NULL;
++ struct property *p;
++
++ if (tmp) {
++ p = tmp;
++ memset(p, 0, sizeof(*p) + 32);
++ tmp = NULL;
++ } else {
++ p = prom_early_alloc(sizeof(struct property) + 32);
++ }
++
++ p->name = (char *) (p + 1);
++ if (special_name) {
++ strcpy(p->name, special_name);
++ p->length = special_len;
++ p->value = prom_early_alloc(special_len);
++ memcpy(p->value, special_val, special_len);
++ } else {
++ int fl;
++ if (prev == NULL) {
++ if (ofw("nextprop", 3, 1, node, "", p->name, &fl)) {
++ printk(KERN_ERR "PROM: %s: nextprop failed!\n", __func__);
++ return NULL;
++ }
++ } else {
++ if (ofw("nextprop", 3, 1, node, prev, p->name, &fl)) {
++ printk(KERN_ERR "PROM: %s: nextprop failed!\n", __func__);
++ return NULL;
++ }
++ }
++ if (strlen(p->name) == 0 || fl != 1) {
++ tmp = p;
++ return NULL;
++ }
++ if (ofw("getproplen", 2, 1, node, p->name, &p->length)) {
++ printk(KERN_ERR "PROM: %s: getproplen failed!\n", __func__);
++ return NULL;
++ }
++ if (p->length <= 0) {
++ p->length = 0;
++ } else {
++ p->value = prom_early_alloc(p->length + 1);
++ if (ofw("getprop", 4, 1, node, p->name, p->value, p->length, &p->length)) {
++ printk(KERN_ERR "PROM: %s: getprop failed!\n", __func__);
++ return NULL;
++ }
++ ((unsigned char *)p->value)[p->length] = '\0';
++ }
++ }
++ return p;
++}
++
++static struct property * __init build_prop_list(phandle node)
++{
++ struct property *head, *tail;
++
++ head = tail = build_one_prop(node, NULL,
++ ".node", &node, sizeof(node));
++
++ tail->next = build_one_prop(node, NULL, NULL, NULL, 0);
++ tail = tail->next;
++ while(tail) {
++ tail->next = build_one_prop(node, tail->name,
++ NULL, NULL, 0);
++ tail = tail->next;
++ }
++
++ return head;
++}
++
++static char * __init get_one_property(phandle node, const char *name)
++{
++ char *buf = "<NULL>";
++ int len;
++
++ if (ofw("getproplen", 2, 1, node, name, &len)) {
++ printk(KERN_ERR "PROM: %s: getproplen failed!\n", __func__);
++ return NULL;
++ }
++ if (len > 0) {
++ buf = prom_early_alloc(len);
++ if (ofw("getprop", 4, 1, node, name, buf, len, &len)) {
++ printk(KERN_ERR "PROM: %s: getprop failed!\n", __func__);
++ return NULL;
++ }
++ }
++
++ return buf;
++}
++
++static struct device_node * __init create_node(phandle node, struct device_node *parent)
++{
++ struct device_node *dp;
++
++ if (!node)
++ return NULL;
++
++ dp = prom_early_alloc(sizeof(*dp));
++ dp->parent = parent;
++
++ kref_init(&dp->kref);
++
++ dp->name = get_one_property(node, "name");
++ dp->type = get_one_property(node, "device_type");
++ dp->node = node;
++
++ dp->properties = build_prop_list(node);
++
++ return dp;
++}
++
++static struct device_node * __init build_tree(struct device_node *parent, phandle node, struct device_node ***nextp)
++{
++ struct device_node *ret = NULL, *prev_sibling = NULL;
++ struct device_node *dp;
++ u32 child;
++
++ while (1) {
++ dp = create_node(node, parent);
++ if (!dp)
++ break;
++
++ if (prev_sibling)
++ prev_sibling->sibling = dp;
++
++ if (!ret)
++ ret = dp;
++ prev_sibling = dp;
++
++ *(*nextp) = dp;
++ *nextp = &dp->allnext;
++
++ dp->path_component_name = build_path_component(dp);
++ dp->full_name = build_full_name(dp);
++
++ if (ofw("child", 1, 1, node, &child)) {
++ printk(KERN_ERR "PROM: %s: fetching child failed!\n", __func__);
++ return NULL;
++ }
++ dp->child = build_tree(dp, child, nextp);
++
++ if (ofw("peer", 1, 1, node, &node)) {
++ printk(KERN_ERR "PROM: %s: fetching peer failed!\n", __func__);
++ return NULL;
++ }
++ }
++
++ return ret;
++}
++
++static phandle root_node;
++
++void __init prom_build_devicetree(void)
++{
++ struct device_node **nextp;
++ u32 child;
++
++ if (ofw("peer", 1, 1, 0, &root_node)) {
++ printk(KERN_ERR "PROM: unable to get root node from OFW!\n");
++ return;
++ }
++
++ allnodes = create_node(root_node, NULL);
++ allnodes->path_component_name = "";
++ allnodes->full_name = "/";
++
++ nextp = &allnodes->allnext;
++ if (ofw("child", 1, 1, allnodes->node, &child)) {
++ printk(KERN_ERR "PROM: unable to get child node from OFW!\n");
++ return;
++ }
++ allnodes->child = build_tree(allnodes, child, &nextp);
++ printk("PROM: Built device tree with %u bytes of memory.\n",
++ prom_early_allocated);
++}
+diff --git a/arch/i386/kernel/setup.c b/arch/i386/kernel/setup.c
+index d474cd6..c4b26ba 100644
+--- a/arch/i386/kernel/setup.c
++++ b/arch/i386/kernel/setup.c
+@@ -362,8 +362,10 @@ void __init zone_sizes_init(void)
+ {
+ unsigned long max_zone_pfns[MAX_NR_ZONES];
+ memset(max_zone_pfns, 0, sizeof(max_zone_pfns));
++#ifdef CONFIG_ZONE_DMA
+ max_zone_pfns[ZONE_DMA] =
+ virt_to_phys((char *)MAX_DMA_ADDRESS) >> PAGE_SHIFT;
++#endif
+ max_zone_pfns[ZONE_NORMAL] = max_low_pfn;
+ #ifdef CONFIG_HIGHMEM
+ max_zone_pfns[ZONE_HIGHMEM] = highend_pfn;
+@@ -428,6 +430,9 @@ void __init setup_bootmem_allocator(void)
+ */
+ acpi_reserve_bootmem();
+ #endif
++#ifdef CONFIG_OLPC_PM
++ reserve_bootmem(0xf0000, PAGE_SIZE);
++#endif
+ #ifdef CONFIG_X86_FIND_SMP_CONFIG
+ /*
+ * Find and reserve possible boot-time SMP configuration:
+diff --git a/arch/i386/pci/Makefile b/arch/i386/pci/Makefile
+index 44650e0..1250a7b 100644
+--- a/arch/i386/pci/Makefile
++++ b/arch/i386/pci/Makefile
+@@ -3,6 +3,7 @@ obj-y := i386.o init.o
+ obj-$(CONFIG_PCI_BIOS) += pcbios.o
+ obj-$(CONFIG_PCI_MMCONFIG) += mmconfig.o direct.o mmconfig-shared.o
+ obj-$(CONFIG_PCI_DIRECT) += direct.o
++obj-$(CONFIG_PCI_OLPC) += olpc.o
+
+ pci-y := fixup.o
+ pci-$(CONFIG_ACPI) += acpi.o
+diff --git a/arch/i386/pci/init.c b/arch/i386/pci/init.c
+index 3de9f9b..0f5f7dd 100644
+--- a/arch/i386/pci/init.c
++++ b/arch/i386/pci/init.c
+@@ -14,6 +14,9 @@ static __init int pci_access_init(void)
+ #ifdef CONFIG_PCI_MMCONFIG
+ pci_mmcfg_init(type);
+ #endif
++#ifdef CONFIG_PCI_OLPC
++ pci_olpc_init();
++#endif
+ if (raw_pci_ops)
+ return 0;
+ #ifdef CONFIG_PCI_BIOS
+diff --git a/arch/i386/pci/olpc.c b/arch/i386/pci/olpc.c
+new file mode 100644
+index 0000000..1518d25
+--- /dev/null
++++ b/arch/i386/pci/olpc.c
+@@ -0,0 +1,298 @@
++/*
++ * olpcpci.c - Low-level PCI config space access for OLPC systems
++ * without the VSA PCI virtualization software.
++ *
++ * The AMD Geode chipset (GX2 processor, cs5536 I/O companion device)
++ * has some I/O functions (display, southbridge, sound, USB HCIs, etc)
++ * that more or less behave like PCI devices, but the hardware doesn't
++ * directly implement the PCI configuration space headers. AMD provides
++ * "VSA" (Virtual System Architecture) software that emulates PCI config
++ * space for these devices, by trapping I/O accesses to PCI config register
++ * (CF8/CFC) and running some code in System Management Mode interrupt state.
++ * On the OLPC platform, we don't want to use that VSA code because
++ * (a) it slows down suspend/resume, and (b) recompiling it requires special
++ * compilers that are hard to get. So instead of letting the complex VSA
++ * code simulate the PCI config registers for the on-chip devices, we
++ * just simulate them the easy way, by inserting the code into the
++ * pci_write_config and pci_read_config path. Most of the config registers
++ * are read-only anyway, so the bulk of the simulation is just table lookup.
++ */
++
++#include <linux/pci.h>
++#include <linux/init.h>
++#include <asm/olpc.h>
++#include <asm/geode.h>
++#include "pci.h"
++
++static int is_lx;
++
++/*
++ * In the tables below, the first two line (8 longwords) are the
++ * size masks that are used when the higher level PCI code determines
++ * the size of the region by writing ~0 to a base address register
++ * and reading back the result.
++ *
++ * The following lines are the values that are read during normal
++ * PCI config access cycles, i.e. not after just having written
++ * ~0 to a base address register.
++ */
++
++static const u32 lxnb_hdr[] = { /* dev 1 function 0 - devfn = 8 */
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++
++ 0x281022 , 0x2200005 , 0x6000021 , 0x80f808 , /* AMD Vendor ID */
++ 0x0 , 0x0 , 0x0 , 0x0 , /* No virtual registers, hence no BAR for them */
++ 0x0 , 0x0 , 0x0 , 0x28100b ,
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++};
++
++static const u32 gxnb_hdr[] = { /* dev 1 function 0 - devfn = 8 */
++ 0xfffffffd , 0x0 , 0x0 , 0x0 ,
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++
++ 0x28100b , 0x2200005 , 0x6000021 , 0x80f808 , /* NSC Vendor ID */
++ 0xac1d , 0x0 , 0x0 , 0x0 , /* I/O BAR - base of virtual registers */
++ 0x0 , 0x0 , 0x0 , 0x28100b ,
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++};
++
++static const u32 lxfb_hdr[] = { /* dev 1 function 1 - devfn = 9 */
++ 0xff800008 , 0xffffc000 , 0xffffc000 , 0xffffc000 ,
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++
++ 0x20811022 , 0x2200003 , 0x3000000 , 0x0 , /* AMD Vendor ID */
++ 0xfd000000 , 0xfe000000 , 0xfe004000 , 0xfe008000 , /* FB, GP, VG, DF */
++ 0xfe00c000 , 0x0 , 0x0 , 0x30100b , /* VIP */
++ 0x0 , 0x0 , 0x0 , 0x10e , /* INTA, IRQ14 for graphics accel */
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++ 0x3d0 , 0x3c0 , 0xa0000 , 0x0 , /* VG IO, VG IO, EGA FB, MONO FB */
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++};
++
++static const u32 gxfb_hdr[] = { /* dev 1 function 1 - devfn = 9 */
++ 0xff800008 , 0xffffc000 , 0xffffc000 , 0xffffc000 ,
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++
++ 0x30100b , 0x2200003 , 0x3000000 , 0x0 , /* NSC Vendor ID */
++ 0xfd000000 , 0xfe000000 , 0xfe004000 , 0xfe008000 , /* FB, GP, VG, DF */
++ 0x0 , 0x0 , 0x0 , 0x30100b ,
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++ 0x3d0 , 0x3c0 , 0xa0000 , 0x0 , /* VG IO, VG IO, EGA FB, MONO FB */
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++};
++
++static const u32 aes_hdr[] = { /* dev 1 function 2 - devfn = 0xa */
++ 0xffffc000 , 0x0 , 0x0 , 0x0 ,
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++
++ 0x20821022 , 0x2a00006 , 0x10100000 , 0x8 , /* NSC Vendor ID */
++ 0xfe010000 , 0x0 , 0x0 , 0x0 , /* AES registers */
++ 0x0 , 0x0 , 0x0 , 0x20821022 ,
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++};
++
++
++static const u32 isa_hdr[] = { /* dev f function 0 - devfn = 78 */
++ 0xfffffff9 , 0xffffff01 , 0xffffffc1 , 0xffffffe1 ,
++ 0xffffff81 , 0xffffffc1 , 0x0 , 0x0 ,
++
++ 0x20901022 , 0x2a00049 , 0x6010003 , 0x802000 ,
++ 0x18b1 , 0x1001 , 0x1801 , 0x1881 , /* SMB-8 GPIO-256 MFGPT-64 IRQ-32 */
++ 0x1401 , 0x1841 , 0x0 , 0x20901022 , /* PMS-128 ACPI-64 */
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++ 0x0 , 0x0 , 0x0 , 0xaa5b , /* interrupt steering */
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++};
++
++static const u32 ac97_hdr[] = { /* dev f function 3 - devfn = 7b */
++ 0xffffff81 , 0x0 , 0x0 , 0x0 ,
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++
++ 0x20931022 , 0x2a00041 , 0x4010001 , 0x0 ,
++ 0x1481 , 0x0 , 0x0 , 0x0 , /* I/O BAR-128 */
++ 0x0 , 0x0 , 0x0 , 0x20931022 ,
++ 0x0 , 0x0 , 0x0 , 0x205 , /* IntB , IRQ5 */
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++};
++
++static const u32 ohci_hdr[] = { /* dev f function 4 - devfn = 7c */
++ 0xfffff000 , 0x0 , 0x0 , 0x0 ,
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++
++ 0x20941022 , 0x2300006 , 0xc031002 , 0x0 ,
++ 0xfe01a000 , 0x0 , 0x0 , 0x0 , /* MEMBAR-1000 */
++ 0x0 , 0x0 , 0x0 , 0x20941022 ,
++ 0x0 , 0x40 , 0x0 , 0x40a , /* CapPtr INT-D, IRQ A */
++ 0xc8020001 , 0x0 , 0x0 , 0x0 , /* Capabilities - 40 is R/O, 44 is mask 8103 (power control) */
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++};
++
++static const u32 ehci_hdr[] = { /* dev f function 4 - devfn = 7d */
++ 0xfffff000 , 0x0 , 0x0 , 0x0 ,
++ 0x0 , 0x0 , 0x0 , 0x0 ,
++
++ 0x20951022 , 0x2300006 , 0xc032002 , 0x0 ,
++ 0xfe01b000 , 0x0 , 0x0 , 0x0 , /* MEMBAR-1000 */
++ 0x0 , 0x0 , 0x0 , 0x20951022 ,
++ 0x0 , 0x40 , 0x0 , 0x40a , /* CapPtr INT-D, IRQ A */
++ 0xc8020001 , 0x0 , 0x0 , 0x0 , /* Capabilities - 40 is R/O, 44 is mask 8103 (power control) */
++#if 0
++ 0x1 , 0x40080000 , 0x0 , 0x0 , /* EECP - see section 2.1.7 of EHCI spec */
++#endif
++ 0x01000001 , 0x00000000 , 0x0 , 0x0 , /* EECP - see section 2.1.7 of EHCI spec */
++ 0x2020 , 0x0 , 0x0 , 0x0 , /* (EHCI page 8) 60 SBRN (R/O), 61 FLADJ (R/W), PORTWAKECAP */
++};
++
++static u32 ff_loc = ~0;
++static u32 zero_loc = 0;
++
++static int bar_probing = 0; /* Set after a write of ~0 to a BAR */
++
++#define NB_SLOT 0x1 /* Northbridge - GX chip - Device 1 */
++#define SB_SLOT 0xf /* Southbridge - CS5536 chip - Device F */
++#define SIMULATED(bus, devfn) (((bus) == 0) && ((PCI_SLOT(devfn) == NB_SLOT) || (PCI_SLOT(devfn) == SB_SLOT)))
++
++static u32 *hdr_addr(const u32 *hdr, int reg)
++{
++ u32 addr;
++
++ /*
++ * This is a little bit tricky. The header maps consist of
++ * 0x20 bytes of size masks, followed by 0x70 bytes of header data.
++ * In the normal case, when not probing a BAR's size, we want
++ * to access the header data, so we add 0x20 to the reg offset,
++ * thus skipping the size mask area.
++ * In the BAR probing case, we want to access the size mask for
++ * the BAR, so we subtract 0x10 (the config header offset for
++ * BAR0), and don't skip the size mask area.
++ */
++
++ addr = (u32)hdr + reg + (bar_probing ? -0x10 : 0x20);
++
++ bar_probing = 0;
++ return (u32 *)addr;
++}
++
++static int pci_olpc_read(unsigned int seg, unsigned int bus,
++ unsigned int devfn, int reg, int len, u32 *value)
++{
++ u32 *addr;
++
++ /* Use the hardware mechanism for non-simulated devices */
++ if (!SIMULATED(bus, devfn))
++ return pci_conf1_read(seg, bus, devfn, reg, len, value);
++
++ /*
++ * No device has config registers past 0x70, so we save table space
++ * by not storing entries for the nonexistent registers
++ */
++ if (reg >= 0x70)
++ addr = &zero_loc;
++ else {
++ switch (devfn) {
++ case 0x8:
++ addr = hdr_addr(is_lx ? lxnb_hdr : gxnb_hdr, reg);
++ break;
++ case 0x9:
++ addr = hdr_addr(is_lx ? lxfb_hdr : gxfb_hdr, reg);
++ break;
++ case 0xa:
++ addr = is_lx ? hdr_addr(aes_hdr, reg) : &ff_loc;
++ break;
++ case 0x78:
++ addr = hdr_addr(isa_hdr, reg);
++ break;
++ case 0x7b:
++ addr = hdr_addr(ac97_hdr, reg);
++ break;
++ case 0x7c:
++ addr = hdr_addr(ohci_hdr, reg);
++ break;
++ case 0x7d:
++ addr = hdr_addr(ehci_hdr, reg);
++ break;
++ default:
++ addr = &ff_loc;
++ break;
++ }
++ }
++ switch (len) {
++ case 1:
++ *value = *(u8 *) addr;
++ break;
++ case 2:
++ *value = *(u16 *) addr;
++ break;
++ case 4:
++ *value = *addr;
++ break;
++ default:
++ BUG();
++ }
++
++ return 0;
++}
++
++static int pci_olpc_write(unsigned int seg, unsigned int bus,
++ unsigned int devfn, int reg, int len, u32 value)
++{
++ /* Use the hardware mechanism for non-simulated devices */
++ if (!SIMULATED(bus, devfn))
++ return pci_conf1_write(seg, bus, devfn, reg, len, value);
++
++ /* XXX we may want to extend this to simulate EHCI power management */
++
++ /*
++ * Mostly we just discard writes, but if the write is a size probe
++ * (i.e. writing ~0 to a BAR), we remember it and arrange to return
++ * the appropriate size mask on the next read. This is cheating
++ * to some extent, because it depends on the fact that the next
++ * access after such a write will always be a read to the same BAR.
++ */
++
++ if ((reg >= 0x10) && (reg < 0x2c)) {
++ /* Write is to a BAR */
++ if (value == ~0)
++ bar_probing = 1;
++ } else {
++ /*
++ * No warning on writes to ROM BAR, CMD, LATENCY_TIMER,
++ * CACHE_LINE_SIZE, or PM registers.
++ */
++ if ((reg != 0x30) && (reg != 0x04) && (reg != 0x0d) &&
++ (reg != 0x0c) && (reg != 0x44))
++ printk(KERN_WARNING "OLPC PCI: Config write to devfn %x reg %x value %x\n", devfn, reg, value);
++ }
++
++ return 0;
++}
++
++static struct pci_raw_ops pci_olpc_conf = {
++ .read = pci_olpc_read,
++ .write = pci_olpc_write,
++};
++
++void __init pci_olpc_init(void)
++{
++ if (!machine_is_olpc() || olpc_has_vsa())
++ return;
++
++ printk(KERN_INFO "PCI: Using configuration type OLPC\n");
++ raw_pci_ops = &pci_olpc_conf;
++ is_lx = is_geode_lx();
++}
+diff --git a/arch/i386/pci/pci.h b/arch/i386/pci/pci.h
+index 8c66f27..a67e617 100644
+--- a/arch/i386/pci/pci.h
++++ b/arch/i386/pci/pci.h
+@@ -93,6 +93,7 @@ extern void pci_direct_init(int type);
+ extern void pci_pcbios_init(void);
+ extern void pci_mmcfg_init(int type);
+ extern void pcibios_sort(void);
++extern void pci_olpc_init(void);
+
+ /* pci-mmconfig.c */
+
+diff --git a/drivers/Makefile b/drivers/Makefile
+index f0878b2..c033d30 100644
+--- a/drivers/Makefile
++++ b/drivers/Makefile
+@@ -23,6 +23,8 @@ obj-y += char/
+
+ obj-$(CONFIG_CONNECTOR) += connector/
+
++obj-$(CONFIG_SYSPROF) += sysprof/
++
+ # i810fb and intelfb depend on char/agp/
+ obj-$(CONFIG_FB_I810) += video/i810/
+ obj-$(CONFIG_FB_INTEL) += video/intelfb/
+diff --git a/drivers/char/vt_ioctl.c b/drivers/char/vt_ioctl.c
+index c6f6f42..55ae42c 100644
+--- a/drivers/char/vt_ioctl.c
++++ b/drivers/char/vt_ioctl.c
+@@ -37,6 +37,9 @@
+ char vt_dont_switch;
+ extern struct tty_driver *console_driver;
+
++/* Add a notifier chain to inform drivers of a VT_TEXT/VT_GRAPHICS switch */
++RAW_NOTIFIER_HEAD(console_notifier_list);
++
+ #define VT_IS_IN_USE(i) (console_driver->ttys[i] && console_driver->ttys[i]->count)
+ #define VT_BUSY(i) (VT_IS_IN_USE(i) || i == fg_console || vc_cons[i].d == sel_cons)
+
+@@ -491,6 +494,14 @@ int vt_ioctl(struct tty_struct *tty, struct file * file,
+ vc->vc_mode = (unsigned char) arg;
+ if (console != fg_console)
+ return 0;
++
++ /* Notify listeners if the current fg_console has switched */
++
++ raw_notifier_call_chain(&console_notifier_list,
++ (arg == KD_TEXT) ?
++ CONSOLE_EVENT_SWITCH_TEXT :
++ CONSOLE_EVENT_SWITCH_GRAPHICS, 0);
++
+ /*
+ * explicitly blank/unblank the screen if switching modes
+ */
+diff --git a/drivers/i2c/busses/scx200_acb.c b/drivers/i2c/busses/scx200_acb.c
+index e6c4a2b..874d623 100644
+--- a/drivers/i2c/busses/scx200_acb.c
++++ b/drivers/i2c/busses/scx200_acb.c
+@@ -46,6 +46,10 @@ static int base[MAX_DEVICES] = { 0x820, 0x840 };
+ module_param_array(base, int, NULL, 0);
+ MODULE_PARM_DESC(base, "Base addresses for the ACCESS.bus controllers");
+
++static unsigned int smbclk = 0x70;
++module_param(smbclk, uint, 0);
++MODULE_PARM_DESC(smbclk, "Specify the SMB_CLK value");
++
+ #define POLL_TIMEOUT (HZ/5)
+
+ enum scx200_acb_state {
+@@ -108,6 +112,7 @@ struct scx200_acb_iface {
+ #define ACBADDR (iface->base + 4)
+ #define ACBCTL2 (iface->base + 5)
+ #define ACBCTL2_ENABLE 0x01
++#define ACBCTL3 (iface->base + 6)
+
+ /************************************************************************/
+
+@@ -392,11 +397,13 @@ static __init int scx200_acb_probe(struct scx200_acb_iface *iface)
+ {
+ u8 val;
+
+- /* Disable the ACCESS.bus device and Configure the SCL
+- frequency: 16 clock cycles */
+- outb(0x70, ACBCTL2);
++ /* Disable the ACCESS.bus device and Configure the SCL */
++
++ outb((smbclk & 0x7F) << 1, ACBCTL2);
++
++ outb((smbclk >> 7) & 0xFF, ACBCTL3);
+
+- if (inb(ACBCTL2) != 0x70) {
++ if (inb(ACBCTL2) != ((smbclk & 0x7F) << 1)) {
+ pr_debug(NAME ": ACBCTL2 readback failed\n");
+ return -ENXIO;
+ }
+diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c
+index 41fc3d0..a15e7a9 100644
+--- a/drivers/input/keyboard/atkbd.c
++++ b/drivers/input/keyboard/atkbd.c
+@@ -63,12 +63,25 @@ static int atkbd_extra;
+ module_param_named(extra, atkbd_extra, bool, 0);
+ MODULE_PARM_DESC(extra, "Enable extra LEDs and keys on IBM RapidAcces, EzKey and similar keyboards");
+
++#define ATKBD_KEY_UNKNOWN 0
++#define ATKBD_KEY_NULL 0xFF0000FF
++
++#define ATKBD_SCR_1 0xFF0000FE
++#define ATKBD_SCR_2 0xFF0000FD
++#define ATKBD_SCR_4 0xFF0000FC
++#define ATKBD_SCR_8 0xFF0000FB
++#define ATKBD_SCR_CLICK 0xFF0000FA
++#define ATKBD_SCR_LEFT 0xFF0000F9
++#define ATKBD_SCR_RIGHT 0xFF0000F8
++
++#define ATKBD_SPECIAL 0xFF0000F8
++
+ /*
+ * Scancode to keycode tables. These are just the default setting, and
+ * are loadable via an userland utility.
+ */
+
+-static unsigned char atkbd_set2_keycode[512] = {
++static unsigned int atkbd_set2_keycode[512] = {
+
+ #ifdef CONFIG_KEYBOARD_ATKBD_HP_KEYCODES
+
+@@ -87,11 +100,17 @@ static unsigned char atkbd_set2_keycode[512] = {
+ 82, 83, 80, 76, 77, 72, 1, 69, 87, 78, 81, 74, 55, 73, 70, 99,
+
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+- 217,100,255, 0, 97,165, 0, 0,156, 0, 0, 0, 0, 0, 0,125,
++
++ 217,100,ATKBD_KEY_NULL, 0, 97,165, 0, 0,
++ 156, 0, 0, 0, 0, 0, 0,125,
++
+ 173,114, 0,113, 0, 0, 0,126,128, 0, 0,140, 0, 0, 0,127,
+ 159, 0,115, 0,164, 0, 0,116,158, 0,172,166, 0, 0, 0,142,
+ 157, 0, 0, 0, 0, 0, 0, 0,155, 0, 98, 0, 0,163, 0, 0,
+- 226, 0, 0, 0, 0, 0, 0, 0, 0,255, 96, 0, 0, 0,143, 0,
++
++ 226, 0, 0, 0, 0, 0, 0, 0,
++ 0,ATKBD_KEY_NULL, 96, 0, 0, 0,143, 0,
++
+ 0, 0, 0, 0, 0, 0, 0, 0, 0,107, 0,105,102, 0, 0,112,
+ 110,111,108,112,106,103, 0,119, 0,118,109, 0, 99,104,119, 0,
+
+@@ -150,19 +169,6 @@ static unsigned char atkbd_unxlate_table[128] = {
+ #define ATKBD_RET_HANGEUL 0xf2
+ #define ATKBD_RET_ERR 0xff
+
+-#define ATKBD_KEY_UNKNOWN 0
+-#define ATKBD_KEY_NULL 255
+-
+-#define ATKBD_SCR_1 254
+-#define ATKBD_SCR_2 253
+-#define ATKBD_SCR_4 252
+-#define ATKBD_SCR_8 251
+-#define ATKBD_SCR_CLICK 250
+-#define ATKBD_SCR_LEFT 249
+-#define ATKBD_SCR_RIGHT 248
+-
+-#define ATKBD_SPECIAL 248
+-
+ #define ATKBD_LED_EVENT_BIT 0
+ #define ATKBD_REP_EVENT_BIT 1
+
+@@ -174,7 +180,7 @@ static unsigned char atkbd_unxlate_table[128] = {
+ #define ATKBD_XL_HANJA 0x20
+
+ static struct {
+- unsigned char keycode;
++ unsigned int keycode;
+ unsigned char set2;
+ } atkbd_scroll_keys[] = {
+ { ATKBD_SCR_1, 0xc5 },
+@@ -200,7 +206,7 @@ struct atkbd {
+ char phys[32];
+
+ unsigned short id;
+- unsigned char keycode[512];
++ unsigned int keycode[512];
+ unsigned char set;
+ unsigned char translated;
+ unsigned char extra;
+@@ -351,7 +357,7 @@ static irqreturn_t atkbd_interrupt(struct serio *serio, unsigned char data,
+ unsigned int code = data;
+ int scroll = 0, hscroll = 0, click = -1, add_release_event = 0;
+ int value;
+- unsigned char keycode;
++ unsigned int keycode;
+
+ #ifdef ATKBD_DEBUG
+ printk(KERN_DEBUG "atkbd.c: Received %02x flags %02x\n", data, flags);
+@@ -856,9 +862,11 @@ static void atkbd_set_keycode_table(struct atkbd *atkbd)
+ atkbd->keycode[i | 0x80] = atkbd_scroll_keys[j].keycode;
+ }
+ } else if (atkbd->set == 3) {
+- memcpy(atkbd->keycode, atkbd_set3_keycode, sizeof(atkbd->keycode));
++ for (i = 0; i < ARRAY_SIZE(atkbd_set3_keycode); i++)
++ atkbd->keycode[i] = atkbd_set3_keycode[i];
+ } else {
+- memcpy(atkbd->keycode, atkbd_set2_keycode, sizeof(atkbd->keycode));
++ for (i = 0; i < ARRAY_SIZE(atkbd_set2_keycode); i++)
++ atkbd->keycode[i] = atkbd_set2_keycode[i];
+
+ if (atkbd->scroll)
+ for (i = 0; i < ARRAY_SIZE(atkbd_scroll_keys); i++)
+@@ -925,8 +933,8 @@ static void atkbd_set_device_attrs(struct atkbd *atkbd)
+ }
+
+ input_dev->keycode = atkbd->keycode;
+- input_dev->keycodesize = sizeof(unsigned char);
+- input_dev->keycodemax = ARRAY_SIZE(atkbd_set2_keycode);
++ input_dev->keycodesize = sizeof(unsigned int);
++ input_dev->keycodemax = ARRAY_SIZE(atkbd->keycode);
+
+ for (i = 0; i < 512; i++)
+ if (atkbd->keycode[i] && atkbd->keycode[i] < ATKBD_SPECIAL)
+@@ -1017,6 +1025,10 @@ static int atkbd_connect(struct serio *serio, struct serio_driver *drv)
+ return err;
+ }
+
++#ifdef CONFIG_OLPC
++#include <asm/olpc.h>
++#endif
++
+ /*
+ * atkbd_reconnect() tries to restore keyboard into a sane state and is
+ * most likely called on resume.
+@@ -1027,6 +1039,12 @@ static int atkbd_reconnect(struct serio *serio)
+ struct atkbd *atkbd = serio_get_drvdata(serio);
+ struct serio_driver *drv = serio->drv;
+
++#ifdef CONFIG_OLPC
++ if (olpc_rev_after(OLPC_REV_B2))
++ if (serio->dev.power.power_state.event != PM_EVENT_ON)
++ return 0;
++#endif
++
+ if (!atkbd || !drv) {
+ printk(KERN_DEBUG "atkbd: reconnect request, but serio is disconnected, ignoring...\n");
+ return -1;
+diff --git a/drivers/input/mouse/Kconfig b/drivers/input/mouse/Kconfig
+index 7bbea09..6febbc5 100644
+--- a/drivers/input/mouse/Kconfig
++++ b/drivers/input/mouse/Kconfig
+@@ -96,6 +96,16 @@ config MOUSE_PS2_TOUCHKIT
+
+ If unsure, say N.
+
++config MOUSE_PS2_OLPC
++ bool "OLPC PS/2 mouse protocol extension" if EMBEDDED
++ default n
++ depends on MOUSE_PS2 && OLPC
++ ---help---
++ Say Y here if you have an OLPC PS/2 touchpad connected to
++ your system.
++
++ If unsure, say N.
++
+ config MOUSE_SERIAL
+ tristate "Serial mouse"
+ select SERIO
+diff --git a/drivers/input/mouse/Makefile b/drivers/input/mouse/Makefile
+index 9e6e363..f4654ce 100644
+--- a/drivers/input/mouse/Makefile
++++ b/drivers/input/mouse/Makefile
+@@ -24,3 +24,4 @@ psmouse-$(CONFIG_MOUSE_PS2_LOGIPS2PP) += logips2pp.o
+ psmouse-$(CONFIG_MOUSE_PS2_LIFEBOOK) += lifebook.o
+ psmouse-$(CONFIG_MOUSE_PS2_TRACKPOINT) += trackpoint.o
+ psmouse-$(CONFIG_MOUSE_PS2_TOUCHKIT) += touchkit_ps2.o
++psmouse-$(CONFIG_MOUSE_PS2_OLPC) += olpc.o
+diff --git a/drivers/input/mouse/olpc.c b/drivers/input/mouse/olpc.c
+new file mode 100644
+index 0000000..dc575ac
+--- /dev/null
++++ b/drivers/input/mouse/olpc.c
+@@ -0,0 +1,554 @@
++/*
++ * OLPC touchpad PS/2 mouse driver
++ *
++ * Copyright (c) 2006 One Laptop Per Child, inc.
++ * Authors Zephaniah E. Hull and Andres Salomon <dilinger@laptop.org>
++ *
++ * This driver is partly based on the ALPS driver, which is:
++ *
++ * Copyright (c) 2003 Neil Brown <neilb@cse.unsw.edu.au>
++ * Copyright (c) 2003-2005 Peter Osterlund <petero2@telia.com>
++ * Copyright (c) 2004 Dmitry Torokhov <dtor@mail.ru>
++ * Copyright (c) 2005 Vojtech Pavlik <vojtech@suse.cz>
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of the GNU General Public License version 2 as
++ * published by the Free Software Foundation.
++ */
++
++/*
++ * The touchpad on the OLPC is fairly wide, with the entire area usable
++ * as a tablet ("PT mode"), and the center 1/3rd also usable as a touchpad
++ * ("GS mode").
++ *
++ * Earlier version of the device had simultaneous reporting; however, that
++ * was removed. Instead, the device now reports packets in one mode, and
++ * tells the driver when a mode switch needs to happen.
++ */
++
++#include <linux/input.h>
++#include <linux/serio.h>
++#include <linux/libps2.h>
++#include <linux/delay.h>
++#include <asm/olpc.h>
++
++#include "psmouse.h"
++#include "olpc.h"
++
++static int tpdebug;
++module_param(tpdebug, int, 0644);
++
++#define OLPC_GS 1 /* The GS sensor. */
++#define OLPC_PT 2 /* The PT sensor. */
++
++static struct olpc_model_info olpc_model_data[] = {
++ { { 0x67, 0x00, 0x00 }, OLPC_GS | OLPC_PT }, /* unknown ID */
++ { { 0x67, 0x00, 0x0a }, OLPC_GS | OLPC_PT }, /* pre-B1 */
++ { { 0x67, 0x00, 0x14 }, OLPC_GS }, /* B1.*/
++ { { 0x67, 0x00, 0x28 }, OLPC_GS | OLPC_PT }, /* B2 */
++ { { 0x67, 0x00, 0x3c }, OLPC_GS | OLPC_PT }, /* B2-2 */
++ { { 0x67, 0x00, 0x50 }, OLPC_GS | OLPC_PT }, /* C1 */
++};
++
++#define OLPC_PKT_PT 0xcf
++#define OLPC_PKT_GS 0xff
++
++static int olpc_absolute_mode(struct psmouse *psmouse, int mode);
++
++/*
++ * OLPC absolute Mode - single-mode format
++ *
++ * byte 0: 1 1 0 0 1 1 1 1
++ * byte 1: 0 x6 x5 x4 x3 x2 x1 x0
++ * byte 2(PT): 0 0 x9 x8 x7 ? pt-dsw gs-dsw
++ * byte 2(GS): 0 x10 x9 x8 x7 ? gs-dsw pt-dsw
++ * byte 3: 0 y9 y8 y7 1 0 swr swl
++ * byte 4: 0 y6 y5 y4 y3 y2 y1 y0
++ * byte 5: 0 z6 z5 z4 z3 z2 z1 z0
++ *
++ * ?'s are not defined in the protocol spec, may vary between models.
++ *
++ * swr/swl are the left/right buttons.
++ *
++ * pt-dsw/gs-dsw indicate that the pt/gs sensor is detecting a
++ * pen/finger
++ */
++
++static void olpc_process_packet_gspt(struct psmouse *psmouse)
++{
++ struct olpc_data *priv = psmouse->private;
++ unsigned char *packet = psmouse->packet;
++ struct input_dev *dev = psmouse->dev;
++ struct input_dev *dev2 = priv->dev2;
++ int x, y, z, gs_down = 0, pt_down = 0, left, right;
++ struct timeval now_tv;
++ s64 now_ns;
++
++ left = packet[3] & 1;
++ right = packet[3] & 2;
++ x = packet[1] | ((packet[2] & 0x78) << 4);
++ y = packet[4] | ((packet[3] & 0x70) << 3);
++ z = packet[5];
++
++ if (psmouse->packet[0] == OLPC_PKT_GS) {
++ pt_down = !!(packet[2] & 1);
++ gs_down = !!(packet[2] & 2);
++ } else if (psmouse->packet[0] == OLPC_PKT_PT) {
++ gs_down = !!(packet[2] & 1);
++ pt_down = !!(packet[2] & 2);
++ }
++
++ /*
++ * XXX: Kludge.
++ * If it's been more than 30ms since the last packet,
++ * assume that there was a lift we were never told about.
++ */
++ do_gettimeofday(&now_tv);
++ now_ns = timeval_to_ns (&now_tv);
++ if (now_ns >= priv->late) {
++ input_report_key(dev, BTN_TOUCH, 0);
++ input_report_key(dev, BTN_TOOL_PEN, 0);
++ input_report_key(dev2, BTN_TOUCH, 0);
++ input_report_key(dev2, BTN_TOOL_FINGER, 0);
++
++ input_sync(dev);
++ input_sync(dev2);
++ }
++
++ priv->late = now_ns + (30 * NSEC_PER_MSEC);
++
++
++ if (tpdebug) {
++ printk(KERN_DEBUG "%s %02x %02x %02x %02x %02x %02x\n",
++ __FUNCTION__, psmouse->packet[0], psmouse->packet[1],
++ psmouse->packet[2], psmouse->packet[3], psmouse->packet[4],
++ psmouse->packet[5]);
++ printk(KERN_DEBUG "l=%d r=%d p=%d g=%d x=%d y=%d z=%d\n",
++ left, right, pt_down, gs_down, x, y, z);
++ }
++
++ if (psmouse->packet[0] == OLPC_PKT_PT) {
++ input_report_key(dev, BTN_LEFT, left);
++ input_report_key(dev, BTN_RIGHT, right);
++ } else if (psmouse->packet[0] == OLPC_PKT_GS) {
++ input_report_key(dev, BTN_LEFT, left);
++ input_report_key(dev, BTN_RIGHT, right);
++ input_report_key(dev2, BTN_LEFT, left);
++ input_report_key(dev2, BTN_RIGHT, right);
++ }
++
++ input_report_key(dev, BTN_TOUCH, pt_down);
++ input_report_key(dev, BTN_TOOL_PEN, pt_down);
++ input_report_key(dev2, BTN_TOUCH, gs_down);
++ input_report_key(dev2, BTN_TOOL_FINGER, gs_down);
++
++ input_report_abs(dev2, ABS_PRESSURE, z);
++
++ if (psmouse->packet[0] == OLPC_PKT_PT && pt_down) {
++ input_report_abs(dev, ABS_X, x);
++ input_report_abs(dev, ABS_Y, y);
++ } else if (psmouse->packet[0] == OLPC_PKT_GS && gs_down) {
++ input_report_abs(dev2, ABS_X, x);
++ input_report_abs(dev2, ABS_Y, y);
++ }
++
++ input_sync(dev);
++ input_sync(dev2);
++
++ if (priv->pending_mode == OLPC_GS &&
++ psmouse->packet[0] == OLPC_PKT_PT && pt_down) {
++ priv->pending_mode = 0;
++ cancel_delayed_work(&priv->mode_switch);
++ }
++
++ if (priv->i->flags & (OLPC_PT|OLPC_GS)) {
++ int pending = 0;
++ if (psmouse->packet[0] == OLPC_PKT_PT && !pt_down)
++ pending = OLPC_GS;
++ else if (psmouse->packet[0] == OLPC_PKT_GS && pt_down)
++ pending = OLPC_PT;
++
++ if (priv->current_mode == pending) {
++ priv->pending_mode = 0;
++ pending = priv->current_mode;
++ }
++ else if (priv->pending_mode != pending) {
++ priv->pending_mode = pending;
++ if (tpdebug)
++ printk(KERN_WARNING "Scheduling mode switch to %s.\n",
++ pending == OLPC_GS ? "GS" : "PT");
++
++ /*
++ * Apply a de-bounce when switching from PT to GS, to allow for
++ * spurious PT-up packets.
++ */
++ if (priv->pending_mode == OLPC_GS)
++ queue_delayed_work(kpsmoused_wq, &priv->mode_switch, msecs_to_jiffies(50));
++ else
++ queue_delayed_work(kpsmoused_wq, &priv->mode_switch, 0);
++ }
++ }
++}
++
++static psmouse_ret_t olpc_process_byte(struct psmouse *psmouse)
++{
++ psmouse_ret_t ret = PSMOUSE_BAD_DATA;
++
++ if (psmouse->packet[0] != OLPC_PKT_PT &&
++ psmouse->packet[0] != OLPC_PKT_GS)
++ goto out;
++
++ /* Bytes 2 - 6 should have 0 in the highest bit */
++ if (psmouse->pktcnt >= 2 && psmouse->pktcnt <= 6 &&
++ (psmouse->packet[psmouse->pktcnt - 1] & 0x80))
++ goto out;
++
++ if (psmouse->pktcnt == 6) {
++ olpc_process_packet_gspt(psmouse);
++ ret = PSMOUSE_FULL_PACKET;
++ goto out;
++ }
++
++ ret = PSMOUSE_GOOD_DATA;
++out:
++ if (ret != PSMOUSE_GOOD_DATA && ret != PSMOUSE_FULL_PACKET)
++ printk(KERN_DEBUG "%s: (%d) %02x %02x %02x %02x %02x %02x\n",
++ __FUNCTION__, psmouse->pktcnt, psmouse->packet[0],
++ psmouse->packet[1], psmouse->packet[2],
++ psmouse->packet[3], psmouse->packet[4],
++ psmouse->packet[5]);
++ return ret;
++}
++
++static struct olpc_model_info *olpc_get_model(struct psmouse *psmouse)
++{
++ struct ps2dev *ps2dev = &psmouse->ps2dev;
++ unsigned char param[4];
++ int i;
++
++ /*
++ * Now try "E7 report". Allowed responses are in
++ * olpc_model_data[].signature
++ */
++ if (ps2_command(ps2dev, NULL, PSMOUSE_CMD_SETSCALE21) ||
++ ps2_command(ps2dev, NULL, PSMOUSE_CMD_SETSCALE21) ||
++ ps2_command(ps2dev, NULL, PSMOUSE_CMD_SETSCALE21))
++ return NULL;
++
++ param[0] = param[1] = param[2] = 0xff;
++ if (ps2_command(ps2dev, param, PSMOUSE_CMD_GETINFO))
++ return NULL;
++
++ pr_debug("olpc.c(%d): E7 report: %2.2x %2.2x %2.2x",
++ __LINE__, param[0], param[1], param[2]);
++
++ for (i = 0; i < ARRAY_SIZE(olpc_model_data); i++) {
++ if (!memcmp(param, olpc_model_data[i].signature,
++ sizeof(olpc_model_data[i].signature))) {
++ printk(KERN_INFO __FILE__ ": OLPC touchpad revision 0x%x.\n", param[2]);
++ return olpc_model_data + i;
++ }
++ }
++
++ /*
++ * ALPS creates new IDs pretty frequently; rather than listing them
++ * all, just assume they support the defaults. We've set aside the
++ * first entry of olpc_model_data as the catch-all.
++ */
++ if (!memcmp(param, olpc_model_data[0].signature, 2)) {
++ printk(KERN_INFO __FILE__ ": unknown ALPS revision %x, assuming default flags.\n", param[2]);
++ return &olpc_model_data[0];
++ }
++
++ return NULL;
++}
++
++static int olpc_find_mode(struct psmouse *psmouse)
++{
++ struct olpc_data *priv = psmouse->private;
++ int mode = priv->i->flags;
++
++ if (mode & OLPC_GS)
++ mode = OLPC_GS;
++ else if (mode & OLPC_PT)
++ mode = OLPC_PT;
++ else
++ mode = -1;
++
++ return mode;
++}
++
++/*
++ * Touchpad should be disabled before calling this!
++ */
++static int olpc_new_mode(struct psmouse *psmouse, int mode)
++{
++ struct ps2dev *ps2dev = &psmouse->ps2dev;
++ struct olpc_data *priv = psmouse->private;
++ unsigned char param;
++ int ret;
++
++ if (tpdebug)
++ printk(KERN_WARNING __FILE__ ": Switching to %d. [%lu]\n", mode, jiffies);
++
++ if ((ret = ps2_command(ps2dev, ¶m, 0x01F2)))
++ goto failed;
++ if ((ret = ps2_command(ps2dev, ¶m, 0x01F2)))
++ goto failed;
++ if ((ret = ps2_command(ps2dev, ¶m, 0x01F2)))
++ goto failed;
++
++ switch (mode) {
++ default:
++ printk(KERN_WARNING __FILE__ ": Invalid mode %d. Defaulting to OLPC_GS.\n", mode);
++ case OLPC_GS:
++ ret = ps2_command(ps2dev, NULL, 0xE6);
++ break;
++ case OLPC_PT:
++ ret = ps2_command(ps2dev, NULL, 0xE7);
++ break;
++ }
++ if (ret)
++ goto failed;
++
++ /* XXX: This is a bit hacky, make sure this isn't screwing stuff up. */
++ psmouse->pktcnt = psmouse->out_of_sync = 0;
++ psmouse->last = jiffies;
++ psmouse->state = PSMOUSE_ACTIVATED;
++
++ if ((ret = ps2_command(ps2dev, NULL, PSMOUSE_CMD_ENABLE)))
++ goto failed;
++
++ priv->current_mode = mode;
++ priv->pending_mode = 0;
++ if (tpdebug)
++ printk(KERN_WARNING __FILE__ ": Switched to mode %d successful.\n", mode);
++
++failed:
++ if (ret)
++ printk(KERN_WARNING __FILE__ ": Mode switch to %d failed! (%d) [%lu]\n", mode, ret, jiffies);
++ return ret;
++}
++
++static int olpc_absolute_mode(struct psmouse *psmouse, int mode)
++{
++ struct ps2dev *ps2dev = &psmouse->ps2dev;
++
++ /* Switch to 'Advanced mode.', four disables in a row. */
++ if (ps2_command(ps2dev, NULL, PSMOUSE_CMD_DISABLE) ||
++ ps2_command(ps2dev, NULL, PSMOUSE_CMD_DISABLE) ||
++ ps2_command(ps2dev, NULL, PSMOUSE_CMD_DISABLE) ||
++ ps2_command(ps2dev, NULL, PSMOUSE_CMD_DISABLE))
++ return -1;
++
++ return olpc_new_mode(psmouse, mode);
++}
++
++/*
++ * olpc_poll() - poll the touchpad for current motion packet.
++ * Used in resync.
++ * Note: We can't poll, so always return failure.
++ */
++static int olpc_poll(struct psmouse *psmouse)
++{
++ return -1;
++}
++
++static int olpc_reconnect(struct psmouse *psmouse)
++{
++ struct olpc_data *priv = psmouse->private;
++ int mode;
++
++ if (olpc_rev_after(OLPC_REV_B2))
++ if (psmouse->ps2dev.serio->dev.power.power_state.event != PM_EVENT_ON)
++ return 0;
++
++ psmouse_reset(psmouse);
++
++ if (!(priv->i = olpc_get_model(psmouse)))
++ return -1;
++
++ mode = olpc_find_mode(psmouse);
++ if (mode < 0)
++ return -1;
++
++ if (olpc_absolute_mode(psmouse, mode)) {
++ printk(KERN_ERR __FILE__ ": Failed to reenable absolute mode.\n");
++ return -1;
++ }
++
++ return 0;
++}
++
++static void olpc_disconnect(struct psmouse *psmouse)
++{
++ struct olpc_data *priv = psmouse->private;
++
++ psmouse_reset(psmouse);
++ input_unregister_device(priv->dev2);
++ kfree(priv);
++}
++
++static void olpc_mode_switch(struct work_struct *w)
++{
++ struct delayed_work *work = container_of(w, struct delayed_work, work);
++ struct olpc_data *priv = container_of(work, struct olpc_data, mode_switch);
++ struct psmouse *psmouse = priv->psmouse;
++ struct ps2dev *ps2dev = &psmouse->ps2dev;
++ int pending_mode, ret;
++
++ if (priv->pending_mode == priv->current_mode) {
++ priv->pending_mode = 0;
++ printk (KERN_DEBUG __FILE__ ": In switch_mode, no target mode.\n");
++ return;
++ }
++
++ if (tpdebug)
++ printk(KERN_WARNING __FILE__ ": Disable for switch to %d. [%lu]\n", priv->pending_mode, jiffies);
++
++ /* XXX: This is a bit hacky, make sure this isn't screwing stuff up. */
++ psmouse->state = PSMOUSE_INITIALIZING;
++
++ ret = ps2_command(ps2dev, NULL, PSMOUSE_CMD_DISABLE);
++ if (ret) {
++ /* XXX: if this ever fails, we need to do a full reset! */
++ printk(KERN_WARNING __FILE__ ": Disable failed for switch to %d. (%d) [%lu]\n", priv->pending_mode, ret, jiffies);
++ return;
++ }
++
++ /*
++ * ALPS tells us that it may take up to 20msec for the disable to
++ * take effect; however, ps2_command() will wait up to 200msec for
++ * the ACK to come back (and I'm assuming that by the time the
++ * hardware sends back its ACK, it has stopped sending bytes).
++ */
++ pending_mode = priv->pending_mode;
++
++ if (olpc_new_mode(psmouse, priv->pending_mode))
++ goto bad;
++
++ /*
++ * Deal with a potential race condition.
++ *
++ * If there is a brief tap of a stylus or a fingernail that
++ * triggers a mode switch to PT mode, and the stylus/fingernail is
++ * lifted after the DISABLE above, but before we reenable in the new mode,
++ * then we can get stuck in PT mode.
++ */
++ if (pending_mode == OLPC_PT) {
++ priv->pending_mode = OLPC_GS;
++ queue_delayed_work(kpsmoused_wq, &priv->mode_switch, msecs_to_jiffies(50));
++ }
++
++ return;
++
++bad:
++ printk(KERN_WARNING __FILE__ ": Failure to switch modes, resetting device...\n");
++ olpc_reconnect(psmouse);
++}
++
++int olpc_init(struct psmouse *psmouse)
++{
++ struct olpc_data *priv;
++ struct input_dev *dev = psmouse->dev;
++ struct input_dev *dev2;
++ int mode;
++
++ priv = kzalloc(sizeof(struct olpc_data), GFP_KERNEL);
++ dev2 = input_allocate_device();
++ if (!priv || !dev2)
++ goto init_fail;
++
++ psmouse->private = priv;
++ priv->dev2 = dev2;
++ priv->psmouse = psmouse;
++
++ psmouse_reset(psmouse);
++ if (!(priv->i = olpc_get_model(psmouse)))
++ goto init_fail;
++
++ mode = olpc_find_mode(psmouse);
++ if (mode < 0) {
++ printk(KERN_ERR __FILE__ ": Failed to identify proper mode\n");
++ goto init_fail;
++ }
++
++ if (olpc_absolute_mode(psmouse, mode)) {
++ printk(KERN_ERR __FILE__ ": Failed to enable absolute mode\n");
++ goto init_fail;
++ }
++
++ /*
++ * Unset some of the default bits for things we don't have.
++ */
++ dev->evbit[LONG(EV_REL)] &= ~BIT(EV_REL);
++ dev->relbit[LONG(REL_X)] &= ~(BIT(REL_X) | BIT(REL_Y));
++ dev->keybit[LONG(BTN_MIDDLE)] &= ~BIT(BTN_MIDDLE);
++
++ dev->evbit[LONG(EV_KEY)] |= BIT(EV_KEY);
++ dev->keybit[LONG(BTN_TOUCH)] |= BIT(BTN_TOUCH);
++ dev->keybit[LONG(BTN_TOOL_PEN)] |= BIT(BTN_TOOL_PEN);
++ dev->keybit[LONG(BTN_LEFT)] |= BIT(BTN_LEFT) | BIT(BTN_RIGHT);
++
++ dev->evbit[LONG(EV_ABS)] |= BIT(EV_ABS);
++ input_set_abs_params(dev, ABS_X, 2, 1000, 0, 0);
++ input_set_abs_params(dev, ABS_Y, 0, 717, 0, 0);
++
++ snprintf(priv->phys, sizeof(priv->phys),
++ "%s/input1", psmouse->ps2dev.serio->phys);
++ dev2->phys = priv->phys;
++ dev2->name = "OLPC ALPS GlideSensor";
++ dev2->id.bustype = BUS_I8042;
++ dev2->id.vendor = 0x0002;
++ dev2->id.product = PSMOUSE_OLPC;
++ dev2->id.version = 0x0000;
++
++ dev2->evbit[LONG(EV_KEY)] |= BIT(EV_KEY);
++ dev2->keybit[LONG(BTN_TOUCH)] |= BIT(BTN_TOUCH);
++ dev2->keybit[LONG(BTN_TOOL_FINGER)] |= BIT(BTN_TOOL_FINGER);
++ dev2->keybit[LONG(BTN_LEFT)] |= BIT(BTN_LEFT) | BIT(BTN_RIGHT);
++
++ dev2->evbit[LONG(EV_ABS)] |= BIT(EV_ABS);
++ input_set_abs_params(dev2, ABS_X, 350, 512, 0, 0);
++ input_set_abs_params(dev2, ABS_Y, 70, 325, 0, 0);
++ input_set_abs_params(dev2, ABS_PRESSURE, 0, 63, 0, 0);
++
++ if (input_register_device(dev2)) {
++ printk(KERN_ERR __FILE__ ": Failed to register GlideSensor\n");
++ goto init_fail;
++ }
++
++ psmouse->protocol_handler = olpc_process_byte;
++ psmouse->poll = olpc_poll;
++ psmouse->disconnect = olpc_disconnect;
++ psmouse->reconnect = olpc_reconnect;
++ psmouse->pktsize = 6;
++
++ /* Disable the idle resync. */
++ psmouse->resync_time = 0;
++ /* Reset after a lot of bad bytes. */
++ psmouse->resetafter = 1024;
++
++ INIT_DELAYED_WORK(&priv->mode_switch, olpc_mode_switch);
++
++ return 0;
++
++init_fail:
++ input_free_device(dev2);
++ kfree(priv);
++ return -1;
++}
++
++int olpc_detect(struct psmouse *psmouse, int set_properties)
++{
++ if (!olpc_get_model(psmouse))
++ return -1;
++
++ if (set_properties) {
++ psmouse->vendor = "ALPS";
++ psmouse->name = "PenTablet";
++ psmouse->model = 0;
++ }
++ return 0;
++}
++
+diff --git a/drivers/input/mouse/olpc.h b/drivers/input/mouse/olpc.h
+new file mode 100644
+index 0000000..426f8b4
+--- /dev/null
++++ b/drivers/input/mouse/olpc.h
+@@ -0,0 +1,49 @@
++/*
++ * OLPC touchpad PS/2 mouse driver
++ *
++ * Copyright (c) 2006 One Laptop Per Child, inc.
++ *
++ * This driver is partly based on the ALPS driver.
++ * Copyright (c) 2003 Peter Osterlund <petero2@telia.com>
++ * Copyright (c) 2005 Vojtech Pavlik <vojtech@suse.cz>
++ *
++ * This program is free software; you can redistribute it and/or modify it
++ * under the terms of the GNU General Public License version 2 as published by
++ * the Free Software Foundation.
++ */
++
++#ifndef _OLPC_H
++#define _OLPC_H
++
++struct olpc_model_info {
++ unsigned char signature[3];
++ unsigned char flags;
++};
++
++struct olpc_data {
++ struct input_dev *dev2; /* Relative device */
++ struct psmouse *psmouse;
++ char name[32]; /* Name */
++ char phys[32]; /* Phys */
++ struct olpc_model_info *i; /* Info */
++ int pending_mode;
++ int current_mode;
++ s64 late;
++ struct delayed_work mode_switch;
++};
++
++#ifdef CONFIG_MOUSE_PS2_OLPC
++int olpc_detect(struct psmouse *psmouse, int set_properties);
++int olpc_init(struct psmouse *psmouse);
++#else
++inline int olpc_detect(struct psmouse *psmouse, int set_properties)
++{
++ return -ENOSYS;
++}
++inline int olpc_init(struct psmouse *psmouse)
++{
++ return -ENOSYS;
++}
++#endif
++
++#endif
+diff --git a/drivers/input/mouse/psmouse-base.c b/drivers/input/mouse/psmouse-base.c
+index b9f0fb2..edcdb68 100644
+--- a/drivers/input/mouse/psmouse-base.c
++++ b/drivers/input/mouse/psmouse-base.c
+@@ -26,6 +26,7 @@
+ #include "synaptics.h"
+ #include "logips2pp.h"
+ #include "alps.h"
++#include "olpc.h"
+ #include "lifebook.h"
+ #include "trackpoint.h"
+ #include "touchkit_ps2.h"
+@@ -103,7 +104,7 @@ static struct attribute_group psmouse_attribute_group = {
+ */
+ static DEFINE_MUTEX(psmouse_mutex);
+
+-static struct workqueue_struct *kpsmoused_wq;
++struct workqueue_struct *kpsmoused_wq;
+
+ struct psmouse_protocol {
+ enum psmouse_type type;
+@@ -320,7 +321,7 @@ static irqreturn_t psmouse_interrupt(struct serio *serio,
+ goto out;
+ }
+
+- if (psmouse->packet[1] == PSMOUSE_RET_ID) {
++ if (psmouse->packet[1] == PSMOUSE_RET_ID || psmouse->packet[1] == PSMOUSE_RET_BAT) {
+ __psmouse_set_state(psmouse, PSMOUSE_IGNORE);
+ serio_reconnect(serio);
+ goto out;
+@@ -631,8 +632,21 @@ static int psmouse_extensions(struct psmouse *psmouse,
+ }
+ }
+
++/*
++ * Try OLPC touchpad.
++ */
+ if (max_proto > PSMOUSE_IMEX) {
++ if (olpc_detect(psmouse, set_properties) == 0) {
++ if (!set_properties || olpc_init(psmouse) == 0)
++ return PSMOUSE_OLPC;
++/*
++ * Init failed, try basic relative protocols
++ */
++ max_proto = PSMOUSE_IMEX;
++ }
++ }
+
++ if (max_proto > PSMOUSE_IMEX) {
+ if (genius_detect(psmouse, set_properties) == 0)
+ return PSMOUSE_GENPS;
+
+@@ -762,6 +776,14 @@ static const struct psmouse_protocol psmouse_protocols[] = {
+ .detect = touchkit_ps2_detect,
+ },
+ #endif
++#ifdef CONFIG_MOUSE_PS2_OLPC
++ {
++ .type = PSMOUSE_OLPC,
++ .name = "OLPC",
++ .alias = "olpc",
++ .detect = olpc_detect,
++ },
++#endif
+ {
+ .type = PSMOUSE_CORTRON,
+ .name = "CortronPS/2",
+diff --git a/drivers/input/mouse/psmouse.h b/drivers/input/mouse/psmouse.h
+index 1317bdd..c4857df 100644
+--- a/drivers/input/mouse/psmouse.h
++++ b/drivers/input/mouse/psmouse.h
+@@ -89,6 +89,7 @@ enum psmouse_type {
+ PSMOUSE_TRACKPOINT,
+ PSMOUSE_TOUCHKIT_PS2,
+ PSMOUSE_CORTRON,
++ PSMOUSE_OLPC,
+ PSMOUSE_AUTO /* This one should always be last */
+ };
+
+@@ -96,6 +97,7 @@ int psmouse_sliced_command(struct psmouse *psmouse, unsigned char command);
+ int psmouse_reset(struct psmouse *psmouse);
+ void psmouse_set_resolution(struct psmouse *psmouse, unsigned int resolution);
+
++extern struct workqueue_struct *kpsmoused_wq;
+
+ struct psmouse_attribute {
+ struct device_attribute dattr;
+diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c
+index c2eea27..3510726 100644
+--- a/drivers/input/serio/i8042.c
++++ b/drivers/input/serio/i8042.c
+@@ -868,6 +868,11 @@ static long i8042_panic_blink(long count)
+ #undef DELAY
+
+ #ifdef CONFIG_PM
++
++#ifdef CONFIG_OLPC
++#include <asm/olpc.h>
++#endif
++
+ /*
+ * Here we try to restore the original BIOS settings. We only want to
+ * do that once, when we really suspend, not when we taking memory
+@@ -878,8 +883,15 @@ static long i8042_panic_blink(long count)
+ static int i8042_suspend(struct platform_device *dev, pm_message_t state)
+ {
+ if (dev->dev.power.power_state.event != state.event) {
++#ifdef CONFIG_OLPC
++ /* Anything newer than B2 remains powered; no reset needed */
++ if (olpc_rev_before(OLPC_REV_PRE_B3)) {
++#endif
+ if (state.event == PM_EVENT_SUSPEND)
+ i8042_controller_reset();
++#ifdef CONFIG_OLPC
++ }
++#endif
+
+ dev->dev.power.power_state = state;
+ }
+@@ -902,9 +914,15 @@ static int i8042_resume(struct platform_device *dev)
+ if (dev->dev.power.power_state.event == PM_EVENT_ON)
+ return 0;
+
++#ifdef CONFIG_OLPC
++ if (olpc_rev_before(OLPC_REV_PRE_B3)) {
++#endif
+ error = i8042_controller_check();
+ if (error)
+ return error;
++#ifdef CONFIG_OLPC
++ }
++#endif
+
+ error = i8042_controller_selftest();
+ if (error)
+diff --git a/drivers/input/serio/serio.c b/drivers/input/serio/serio.c
+index 372ca49..c9e5308 100644
+--- a/drivers/input/serio/serio.c
++++ b/drivers/input/serio/serio.c
+@@ -916,11 +916,22 @@ static int serio_uevent(struct device *dev, char **envp, int num_envp, char *buf
+ #endif /* CONFIG_HOTPLUG */
+
+ #ifdef CONFIG_PM
++
++#ifdef CONFIG_OLPC
++#include <asm/olpc.h>
++#endif
++
+ static int serio_suspend(struct device *dev, pm_message_t state)
+ {
+ if (dev->power.power_state.event != state.event) {
++#ifdef CONFIG_OLPC
++ if (olpc_rev_before(OLPC_REV_PRE_B3)) {
++#endif
+ if (state.event == PM_EVENT_SUSPEND)
+ serio_cleanup(to_serio_port(dev));
++#ifdef CONFIG_OLPC
++ }
++#endif
+
+ dev->power.power_state = state;
+ }
+diff --git a/drivers/media/video/cafe_ccic.c b/drivers/media/video/cafe_ccic.c
+index ef53618..47881d2 100644
+--- a/drivers/media/video/cafe_ccic.c
++++ b/drivers/media/video/cafe_ccic.c
+@@ -63,13 +63,13 @@ MODULE_SUPPORTED_DEVICE("Video");
+ */
+
+ #define MAX_DMA_BUFS 3
+-static int alloc_bufs_at_load = 0;
+-module_param(alloc_bufs_at_load, bool, 0444);
+-MODULE_PARM_DESC(alloc_bufs_at_load,
+- "Non-zero value causes DMA buffers to be allocated at module "
+- "load time. This increases the chances of successfully getting "
+- "those buffers, but at the cost of nailing down the memory from "
+- "the outset.");
++static int alloc_bufs_at_read = 0;
++module_param(alloc_bufs_at_read, bool, 0444);
++MODULE_PARM_DESC(alloc_bufs_at_read,
++ "Non-zero value causes DMA buffers to be allocated when the "
++ "video capture device is read, rather than at module load "
++ "time. This saves memory, but decreases the chances of "
++ "successfully getting those buffers.");
+
+ static int n_dma_bufs = 3;
+ module_param(n_dma_bufs, uint, 0644);
+@@ -370,6 +370,10 @@ static int cafe_smbus_write_data(struct cafe_camera *cam,
+ rval = value | ((command << TWSIC1_ADDR_SHIFT) & TWSIC1_ADDR);
+ cafe_reg_write(cam, REG_TWSIC1, rval);
+ spin_unlock_irqrestore(&cam->dev_lock, flags);
++ mdelay(2); /* It'll probably take about 900µs anyway, and the
++ CAFÉ is apparently quite sensitive to being poked
++ at this point. If we can work out precisely what's
++ going on and reduce this delay, it would be nice. */
+
+ /*
+ * Time to wait for the write to complete. THIS IS A RACY
+@@ -1503,7 +1507,7 @@ static int cafe_v4l_release(struct inode *inode, struct file *filp)
+ }
+ if (cam->users == 0) {
+ cafe_ctlr_power_down(cam);
+- if (! alloc_bufs_at_load)
++ if (alloc_bufs_at_read)
+ cafe_free_dma_bufs(cam);
+ }
+ mutex_unlock(&cam->s_mutex);
+@@ -2162,7 +2166,7 @@ static int cafe_pci_probe(struct pci_dev *pdev,
+ /*
+ * If so requested, try to get our DMA buffers now.
+ */
+- if (alloc_bufs_at_load) {
++ if (!alloc_bufs_at_read) {
+ if (cafe_alloc_dma_bufs(cam, 1))
+ cam_warn(cam, "Unable to alloc DMA buffers at load"
+ " will try again later.");
+diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
+index 73e248f..f7afde3 100644
+--- a/drivers/misc/Kconfig
++++ b/drivers/misc/Kconfig
+@@ -202,5 +202,10 @@ config THINKPAD_ACPI_BAY
+
+ If you are not sure, say Y here.
+
++config EEPROM_93CX6
++ tristate "EEPROM 93CX6 support"
++ ---help---
++ This is a driver for the EEPROM chipsets 93c46 and 93c66.
++ The driver supports both read as well as write commands.
+
+ endif # MISC_DEVICES
+diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
+index 93fe2e5..e17eb8e 100644
+--- a/drivers/mmc/card/block.c
++++ b/drivers/mmc/card/block.c
+@@ -229,6 +229,11 @@ static int mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req)
+ if (brq.data.blocks > card->host->max_blk_count)
+ brq.data.blocks = card->host->max_blk_count;
+
++ if (mmc_card_sd(card) && !card->host->ios.clock) {
++ printk(KERN_ERR "%s: I/O to stopped card\n",
++ req->rq_disk->disk_name);
++ goto cmd_err;
++ }
+ mmc_set_data_timeout(&brq.data, card, rq_data_dir(req) != READ);
+
+ /*
+diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
+index 20a7d89..9abbb58 100644
+--- a/drivers/mmc/host/sdhci.c
++++ b/drivers/mmc/host/sdhci.c
+@@ -411,6 +411,12 @@ static void sdhci_prepare_data(struct sdhci_host *host, struct mmc_data *data)
+ break;
+ }
+
++ /*
++ * There's an off-by-one error in the hw that we need to
++ * compensate for.
++ */
++ count++;
++
+ if (count >= 0xF) {
+ printk(KERN_WARNING "%s: Too large timeout requested!\n",
+ mmc_hostname(host->mmc));
+@@ -676,19 +682,17 @@ static void sdhci_set_power(struct sdhci_host *host, unsigned short power)
+ if (!(host->chip->quirks & SDHCI_QUIRK_SINGLE_POWER_WRITE))
+ writeb(0, host->ioaddr + SDHCI_POWER_CONTROL);
+
+- pwr = SDHCI_POWER_ON;
+-
+ switch (1 << power) {
+ case MMC_VDD_165_195:
+- pwr |= SDHCI_POWER_180;
++ pwr = SDHCI_POWER_180;
+ break;
+ case MMC_VDD_29_30:
+ case MMC_VDD_30_31:
+- pwr |= SDHCI_POWER_300;
++ pwr = SDHCI_POWER_300;
+ break;
+ case MMC_VDD_32_33:
+ case MMC_VDD_33_34:
+- pwr |= SDHCI_POWER_330;
++ pwr = SDHCI_POWER_330;
+ break;
+ default:
+ BUG();
+@@ -696,6 +700,10 @@ static void sdhci_set_power(struct sdhci_host *host, unsigned short power)
+
+ writeb(pwr, host->ioaddr + SDHCI_POWER_CONTROL);
+
++ pwr |= SDHCI_POWER_ON;
++
++ writeb(pwr, host->ioaddr + SDHCI_POWER_CONTROL);
++
+ out:
+ host->power = power;
+ }
+diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig
+index fbec8cd..8848e8a 100644
+--- a/drivers/mtd/Kconfig
++++ b/drivers/mtd/Kconfig
+@@ -278,6 +278,14 @@ config SSFDC
+ This enables read only access to SmartMedia formatted NAND
+ flash. You can mount it with FAT file system.
+
++config MTD_OOPS
++ tristate "Log panic/oops to an MTD buffer"
++ depends on MTD
++ help
++ This enables panic and oops messages to be logged to a circular
++ buffer in a flash partition where it can be read back at some
++ later point.
++
+ source "drivers/mtd/chips/Kconfig"
+
+ source "drivers/mtd/maps/Kconfig"
+diff --git a/drivers/mtd/Makefile b/drivers/mtd/Makefile
+index 6d958a4..7f0b04b 100644
+--- a/drivers/mtd/Makefile
++++ b/drivers/mtd/Makefile
+@@ -22,6 +22,7 @@ obj-$(CONFIG_NFTL) += nftl.o
+ obj-$(CONFIG_INFTL) += inftl.o
+ obj-$(CONFIG_RFD_FTL) += rfd_ftl.o
+ obj-$(CONFIG_SSFDC) += ssfdc.o
++obj-$(CONFIG_MTD_OOPS) += mtdoops.o
+
+ nftl-objs := nftlcore.o nftlmount.o
+ inftl-objs := inftlcore.o inftlmount.o
+diff --git a/drivers/mtd/chips/cfi_cmdset_0001.c b/drivers/mtd/chips/cfi_cmdset_0001.c
+index 2f19fa7..39eff9f 100644
+--- a/drivers/mtd/chips/cfi_cmdset_0001.c
++++ b/drivers/mtd/chips/cfi_cmdset_0001.c
+@@ -526,7 +526,7 @@ static int cfi_intelext_partition_fixup(struct mtd_info *mtd,
+ struct cfi_pri_intelext *extp = cfi->cmdset_priv;
+
+ /*
+- * Probing of multi-partition flash ships.
++ * Probing of multi-partition flash chips.
+ *
+ * To support multiple partitions when available, we simply arrange
+ * for each of them to have their own flchip structure even if they
+@@ -1780,7 +1780,7 @@ static int __xipram do_erase_oneblock(struct map_info *map, struct flchip *chip,
+ return ret;
+ }
+
+-int cfi_intelext_erase_varsize(struct mtd_info *mtd, struct erase_info *instr)
++static int cfi_intelext_erase_varsize(struct mtd_info *mtd, struct erase_info *instr)
+ {
+ unsigned long ofs, len;
+ int ret;
+@@ -1930,7 +1930,7 @@ static int cfi_intelext_lock(struct mtd_info *mtd, loff_t ofs, size_t len)
+ printk(KERN_DEBUG "%s: lock status before, ofs=0x%08llx, len=0x%08X\n",
+ __FUNCTION__, ofs, len);
+ cfi_varsize_frob(mtd, do_printlockstatus_oneblock,
+- ofs, len, 0);
++ ofs, len, NULL);
+ #endif
+
+ ret = cfi_varsize_frob(mtd, do_xxlock_oneblock,
+@@ -1940,7 +1940,7 @@ static int cfi_intelext_lock(struct mtd_info *mtd, loff_t ofs, size_t len)
+ printk(KERN_DEBUG "%s: lock status after, ret=%d\n",
+ __FUNCTION__, ret);
+ cfi_varsize_frob(mtd, do_printlockstatus_oneblock,
+- ofs, len, 0);
++ ofs, len, NULL);
+ #endif
+
+ return ret;
+@@ -1954,7 +1954,7 @@ static int cfi_intelext_unlock(struct mtd_info *mtd, loff_t ofs, size_t len)
+ printk(KERN_DEBUG "%s: lock status before, ofs=0x%08llx, len=0x%08X\n",
+ __FUNCTION__, ofs, len);
+ cfi_varsize_frob(mtd, do_printlockstatus_oneblock,
+- ofs, len, 0);
++ ofs, len, NULL);
+ #endif
+
+ ret = cfi_varsize_frob(mtd, do_xxlock_oneblock,
+@@ -1964,7 +1964,7 @@ static int cfi_intelext_unlock(struct mtd_info *mtd, loff_t ofs, size_t len)
+ printk(KERN_DEBUG "%s: lock status after, ret=%d\n",
+ __FUNCTION__, ret);
+ cfi_varsize_frob(mtd, do_printlockstatus_oneblock,
+- ofs, len, 0);
++ ofs, len, NULL);
+ #endif
+
+ return ret;
+@@ -2255,7 +2255,7 @@ static void cfi_intelext_save_locks(struct mtd_info *mtd)
+ adr = region->offset + block * len;
+
+ status = cfi_varsize_frob(mtd,
+- do_getlockstatus_oneblock, adr, len, 0);
++ do_getlockstatus_oneblock, adr, len, NULL);
+ if (status)
+ set_bit(block, region->lockmap);
+ else
+diff --git a/drivers/mtd/chips/cfi_cmdset_0002.c b/drivers/mtd/chips/cfi_cmdset_0002.c
+index 1f64458..389acc6 100644
+--- a/drivers/mtd/chips/cfi_cmdset_0002.c
++++ b/drivers/mtd/chips/cfi_cmdset_0002.c
+@@ -1609,7 +1609,7 @@ static int __xipram do_erase_oneblock(struct map_info *map, struct flchip *chip,
+ }
+
+
+-int cfi_amdstd_erase_varsize(struct mtd_info *mtd, struct erase_info *instr)
++static int cfi_amdstd_erase_varsize(struct mtd_info *mtd, struct erase_info *instr)
+ {
+ unsigned long ofs, len;
+ int ret;
+diff --git a/drivers/mtd/chips/jedec_probe.c b/drivers/mtd/chips/jedec_probe.c
+index 58e561e..593e9d6 100644
+--- a/drivers/mtd/chips/jedec_probe.c
++++ b/drivers/mtd/chips/jedec_probe.c
+@@ -70,6 +70,7 @@
+
+ /* Fujitsu */
+ #define MBM29F040C 0x00A4
++#define MBM29F800BA 0x2258
+ #define MBM29LV650UE 0x22D7
+ #define MBM29LV320TE 0x22F6
+ #define MBM29LV320BE 0x22F9
+@@ -129,6 +130,7 @@
+ #define LH28F640BF 0x00b0
+
+ /* ST - www.st.com */
++#define M29F800AB 0x0058
+ #define M29W800DT 0x00D7
+ #define M29W800DB 0x005B
+ #define M29W160DT 0x22C4
+@@ -646,6 +648,23 @@ static const struct amd_flash_info jedec_table[] = {
+ }
+ }, {
+ .mfr_id = MANUFACTURER_FUJITSU,
++ .dev_id = MBM29F800BA,
++ .name = "Fujitsu MBM29F800BA",
++ .uaddr = {
++ [0] = MTD_UADDR_0x0AAA_0x0555, /* x8 */
++ [1] = MTD_UADDR_0x0555_0x02AA, /* x16 */
++ },
++ .DevSize = SIZE_1MiB,
++ .CmdSet = P_ID_AMD_STD,
++ .NumEraseRegions= 4,
++ .regions = {
++ ERASEINFO(0x04000,1),
++ ERASEINFO(0x02000,2),
++ ERASEINFO(0x08000,1),
++ ERASEINFO(0x10000,15),
++ }
++ }, {
++ .mfr_id = MANUFACTURER_FUJITSU,
+ .dev_id = MBM29LV650UE,
+ .name = "Fujitsu MBM29LV650UE",
+ .uaddr = {
+@@ -1510,6 +1529,23 @@ static const struct amd_flash_info jedec_table[] = {
+ ERASEINFO(0x1000,256)
+ }
+
++ }, {
++ .mfr_id = MANUFACTURER_ST,
++ .dev_id = M29F800AB,
++ .name = "ST M29F800AB",
++ .uaddr = {
++ [0] = MTD_UADDR_0x0AAA_0x0555, /* x8 */
++ [1] = MTD_UADDR_0x0555_0x02AA, /* x16 */
++ },
++ .DevSize = SIZE_1MiB,
++ .CmdSet = P_ID_AMD_STD,
++ .NumEraseRegions= 4,
++ .regions = {
++ ERASEINFO(0x04000,1),
++ ERASEINFO(0x02000,2),
++ ERASEINFO(0x08000,1),
++ ERASEINFO(0x10000,15),
++ }
+ }, {
+ .mfr_id = MANUFACTURER_ST, /* FIXME - CFI device? */
+ .dev_id = M29W800DT,
+diff --git a/drivers/mtd/devices/Kconfig b/drivers/mtd/devices/Kconfig
+index ff642f8..b4ea64d 100644
+--- a/drivers/mtd/devices/Kconfig
++++ b/drivers/mtd/devices/Kconfig
+@@ -69,12 +69,21 @@ config MTD_DATAFLASH26
+ If you have such a board and such a DataFlash, say 'Y'.
+
+ config MTD_M25P80
+- tristate "Support for M25 SPI Flash"
++ tristate "Support most SPI Flash chips (AT26DF, M25P, W25X, ...)"
+ depends on SPI_MASTER && EXPERIMENTAL
+ help
+- This enables access to ST M25P80 and similar SPI flash chips,
+- used for program and data storage. Set up your spi devices
+- with the right board-specific platform data.
++ This enables access to most modern SPI flash chips, used for
++ program and data storage. Series supported include Atmel AT26DF,
++ Spansion S25SL, SST 25VF, ST M25P, and Winbond W25X. Other chips
++ are supported as well. See the driver source for the current list,
++ or to add other chips.
++
++ Note that the original DataFlash chips (AT45 series, not AT26DF),
++ need an entirely different driver.
++
++ Set up your spi devices with the right board-specific platform data,
++ if you want to specify device partitioning or to use a device which
++ doesn't support the JEDEC ID instruction.
+
+ config MTD_SLRAM
+ tristate "Uncached system RAM"
+diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
+index 78c2511..98df5bc 100644
+--- a/drivers/mtd/devices/m25p80.c
++++ b/drivers/mtd/devices/m25p80.c
+@@ -1,5 +1,5 @@
+ /*
+- * MTD SPI driver for ST M25Pxx flash chips
++ * MTD SPI driver for ST M25Pxx (and similar) serial flash chips
+ *
+ * Author: Mike Lavender, mike@steroidmicros.com
+ *
+@@ -19,33 +19,32 @@
+ #include <linux/module.h>
+ #include <linux/device.h>
+ #include <linux/interrupt.h>
+-#include <linux/interrupt.h>
++#include <linux/mutex.h>
++
+ #include <linux/mtd/mtd.h>
+ #include <linux/mtd/partitions.h>
++
+ #include <linux/spi/spi.h>
+ #include <linux/spi/flash.h>
+
+-#include <asm/semaphore.h>
+-
+-
+-/* NOTE: AT 25F and SST 25LF series are very similar,
+- * but commands for sector erase and chip id differ...
+- */
+
+ #define FLASH_PAGESIZE 256
+
+ /* Flash opcodes. */
+-#define OPCODE_WREN 6 /* Write enable */
+-#define OPCODE_RDSR 5 /* Read status register */
+-#define OPCODE_READ 3 /* Read data bytes */
+-#define OPCODE_PP 2 /* Page program */
+-#define OPCODE_SE 0xd8 /* Sector erase */
+-#define OPCODE_RES 0xab /* Read Electronic Signature */
++#define OPCODE_WREN 0x06 /* Write enable */
++#define OPCODE_RDSR 0x05 /* Read status register */
++#define OPCODE_READ 0x03 /* Read data bytes (low frequency) */
++#define OPCODE_FAST_READ 0x0b /* Read data bytes (high frequency) */
++#define OPCODE_PP 0x02 /* Page program (up to 256 bytes) */
++#define OPCODE_BE_4K 0x20 /* Erase 4KiB block */
++#define OPCODE_BE_32K 0x52 /* Erase 32KiB block */
++#define OPCODE_SE 0xd8 /* Sector erase (usually 64KiB) */
+ #define OPCODE_RDID 0x9f /* Read JEDEC ID */
+
+ /* Status Register bits. */
+ #define SR_WIP 1 /* Write in progress */
+ #define SR_WEL 2 /* Write enable latch */
++/* meaning of other SR_* bits may differ between vendors */
+ #define SR_BP0 4 /* Block protect 0 */
+ #define SR_BP1 8 /* Block protect 1 */
+ #define SR_BP2 0x10 /* Block protect 2 */
+@@ -65,9 +64,10 @@
+
+ struct m25p {
+ struct spi_device *spi;
+- struct semaphore lock;
++ struct mutex lock;
+ struct mtd_info mtd;
+- unsigned partitioned;
++ unsigned partitioned:1;
++ u8 erase_opcode;
+ u8 command[4];
+ };
+
+@@ -150,8 +150,9 @@ static int wait_till_ready(struct m25p *flash)
+ */
+ static int erase_sector(struct m25p *flash, u32 offset)
+ {
+- DEBUG(MTD_DEBUG_LEVEL3, "%s: %s at 0x%08x\n", flash->spi->dev.bus_id,
+- __FUNCTION__, offset);
++ DEBUG(MTD_DEBUG_LEVEL3, "%s: %s %dKiB at 0x%08x\n",
++ flash->spi->dev.bus_id, __FUNCTION__,
++ flash->mtd.erasesize / 1024, offset);
+
+ /* Wait until finished previous write command. */
+ if (wait_till_ready(flash))
+@@ -161,7 +162,7 @@ static int erase_sector(struct m25p *flash, u32 offset)
+ write_enable(flash);
+
+ /* Set up command buffer. */
+- flash->command[0] = OPCODE_SE;
++ flash->command[0] = flash->erase_opcode;
+ flash->command[1] = offset >> 16;
+ flash->command[2] = offset >> 8;
+ flash->command[3] = offset;
+@@ -201,13 +202,17 @@ static int m25p80_erase(struct mtd_info *mtd, struct erase_info *instr)
+ addr = instr->addr;
+ len = instr->len;
+
+- down(&flash->lock);
++ mutex_lock(&flash->lock);
++
++ /* REVISIT in some cases we could speed up erasing large regions
++ * by using OPCODE_SE instead of OPCODE_BE_4K
++ */
+
+ /* now erase those sectors */
+ while (len) {
+ if (erase_sector(flash, addr)) {
+ instr->state = MTD_ERASE_FAILED;
+- up(&flash->lock);
++ mutex_unlock(&flash->lock);
+ return -EIO;
+ }
+
+@@ -215,7 +220,7 @@ static int m25p80_erase(struct mtd_info *mtd, struct erase_info *instr)
+ len -= mtd->erasesize;
+ }
+
+- up(&flash->lock);
++ mutex_unlock(&flash->lock);
+
+ instr->state = MTD_ERASE_DONE;
+ mtd_erase_callback(instr);
+@@ -260,16 +265,19 @@ static int m25p80_read(struct mtd_info *mtd, loff_t from, size_t len,
+ if (retlen)
+ *retlen = 0;
+
+- down(&flash->lock);
++ mutex_lock(&flash->lock);
+
+ /* Wait till previous write/erase is done. */
+ if (wait_till_ready(flash)) {
+ /* REVISIT status return?? */
+- up(&flash->lock);
++ mutex_unlock(&flash->lock);
+ return 1;
+ }
+
+- /* NOTE: OPCODE_FAST_READ (if available) is faster... */
++ /* FIXME switch to OPCODE_FAST_READ. It's required for higher
++ * clocks; and at this writing, every chip this driver handles
++ * supports that opcode.
++ */
+
+ /* Set up the write data buffer. */
+ flash->command[0] = OPCODE_READ;
+@@ -281,7 +289,7 @@ static int m25p80_read(struct mtd_info *mtd, loff_t from, size_t len,
+
+ *retlen = m.actual_length - sizeof(flash->command);
+
+- up(&flash->lock);
++ mutex_unlock(&flash->lock);
+
+ return 0;
+ }
+@@ -323,7 +331,7 @@ static int m25p80_write(struct mtd_info *mtd, loff_t to, size_t len,
+ t[1].tx_buf = buf;
+ spi_message_add_tail(&t[1], &m);
+
+- down(&flash->lock);
++ mutex_lock(&flash->lock);
+
+ /* Wait until finished previous write command. */
+ if (wait_till_ready(flash))
+@@ -381,10 +389,10 @@ static int m25p80_write(struct mtd_info *mtd, loff_t to, size_t len,
+ if (retlen)
+ *retlen += m.actual_length
+ - sizeof(flash->command);
+- }
+- }
++ }
++ }
+
+- up(&flash->lock);
++ mutex_unlock(&flash->lock);
+
+ return 0;
+ }
+@@ -398,24 +406,118 @@ static int m25p80_write(struct mtd_info *mtd, loff_t to, size_t len,
+
+ struct flash_info {
+ char *name;
+- u8 id;
+- u16 jedec_id;
++
++ /* JEDEC id zero means "no ID" (most older chips); otherwise it has
++ * a high byte of zero plus three data bytes: the manufacturer id,
++ * then a two byte device id.
++ */
++ u32 jedec_id;
++
++ /* The size listed here is what works with OPCODE_SE, which isn't
++ * necessarily called a "sector" by the vendor.
++ */
+ unsigned sector_size;
+- unsigned n_sectors;
++ u16 n_sectors;
++
++ u16 flags;
++#define SECT_4K 0x01 /* OPCODE_BE_4K works uniformly */
+ };
+
++
++/* NOTE: double check command sets and memory organization when you add
++ * more flash chips. This current list focusses on newer chips, which
++ * have been converging on command sets which including JEDEC ID.
++ */
+ static struct flash_info __devinitdata m25p_data [] = {
+- /* REVISIT: fill in JEDEC ids, for parts that have them */
+- { "m25p05", 0x05, 0x2010, 32 * 1024, 2 },
+- { "m25p10", 0x10, 0x2011, 32 * 1024, 4 },
+- { "m25p20", 0x11, 0x2012, 64 * 1024, 4 },
+- { "m25p40", 0x12, 0x2013, 64 * 1024, 8 },
+- { "m25p80", 0x13, 0x0000, 64 * 1024, 16 },
+- { "m25p16", 0x14, 0x2015, 64 * 1024, 32 },
+- { "m25p32", 0x15, 0x2016, 64 * 1024, 64 },
+- { "m25p64", 0x16, 0x2017, 64 * 1024, 128 },
++
++ /* Atmel -- some are (confusingly) marketed as "DataFlash" */
++ { "at25fs010", 0x1f6601, 32 * 1024, 4, SECT_4K, },
++ { "at25fs040", 0x1f6604, 64 * 1024, 8, SECT_4K, },
++
++ { "at25df041a", 0x1f4401, 64 * 1024, 8, SECT_4K, },
++
++ { "at26f004", 0x1f0400, 64 * 1024, 8, SECT_4K, },
++ { "at26df081a", 0x1f4501, 64 * 1024, 16, SECT_4K, },
++ { "at26df161a", 0x1f4601, 64 * 1024, 32, SECT_4K, },
++ { "at26df321", 0x1f4701, 64 * 1024, 64, SECT_4K, },
++
++ /* Spansion -- single (large) sector size only, at least
++ * for the chips listed here (without boot sectors).
++ */
++ { "s25sl004a", 0x010212, 64 * 1024, 8, },
++ { "s25sl008a", 0x010213, 64 * 1024, 16, },
++ { "s25sl016a", 0x010214, 64 * 1024, 32, },
++ { "s25sl032a", 0x010215, 64 * 1024, 64, },
++ { "s25sl064a", 0x010216, 64 * 1024, 128, },
++
++ /* SST -- large erase sizes are "overlays", "sectors" are 4K */
++ { "sst25vf040b", 0xbf258d, 64 * 1024, 8, SECT_4K, },
++ { "sst25vf080b", 0xbf258e, 64 * 1024, 16, SECT_4K, },
++ { "sst25vf016b", 0xbf2541, 64 * 1024, 32, SECT_4K, },
++ { "sst25vf032b", 0xbf254a, 64 * 1024, 64, SECT_4K, },
++
++ /* ST Microelectronics -- newer production may have feature updates */
++ { "m25p05", 0x202010, 32 * 1024, 2, },
++ { "m25p10", 0x202011, 32 * 1024, 4, },
++ { "m25p20", 0x202012, 64 * 1024, 4, },
++ { "m25p40", 0x202013, 64 * 1024, 8, },
++ { "m25p80", 0, 64 * 1024, 16, },
++ { "m25p16", 0x202015, 64 * 1024, 32, },
++ { "m25p32", 0x202016, 64 * 1024, 64, },
++ { "m25p64", 0x202017, 64 * 1024, 128, },
++ { "m25p128", 0x202018, 256 * 1024, 64, },
++
++ { "m45pe80", 0x204014, 64 * 1024, 16, },
++ { "m45pe16", 0x204015, 64 * 1024, 32, },
++
++ { "m25pe80", 0x208014, 64 * 1024, 16, },
++ { "m25pe16", 0x208015, 64 * 1024, 32, SECT_4K, },
++
++ /* Winbond -- w25x "blocks" are 64K, "sectors" are 4KiB */
++ { "w25x10", 0xef3011, 64 * 1024, 2, SECT_4K, },
++ { "w25x20", 0xef3012, 64 * 1024, 4, SECT_4K, },
++ { "w25x40", 0xef3013, 64 * 1024, 8, SECT_4K, },
++ { "w25x80", 0xef3014, 64 * 1024, 16, SECT_4K, },
++ { "w25x16", 0xef3015, 64 * 1024, 32, SECT_4K, },
++ { "w25x32", 0xef3016, 64 * 1024, 64, SECT_4K, },
++ { "w25x64", 0xef3017, 64 * 1024, 128, SECT_4K, },
+ };
+
++static struct flash_info *__devinit jedec_probe(struct spi_device *spi)
++{
++ int tmp;
++ u8 code = OPCODE_RDID;
++ u8 id[3];
++ u32 jedec;
++ struct flash_info *info;
++
++ /* JEDEC also defines an optional "extended device information"
++ * string for after vendor-specific data, after the three bytes
++ * we use here. Supporting some chips might require using it.
++ */
++ tmp = spi_write_then_read(spi, &code, 1, id, 3);
++ if (tmp < 0) {
++ DEBUG(MTD_DEBUG_LEVEL0, "%s: error %d reading JEDEC ID\n",
++ spi->dev.bus_id, tmp);
++ return NULL;
++ }
++ jedec = id[0];
++ jedec = jedec << 8;
++ jedec |= id[1];
++ jedec = jedec << 8;
++ jedec |= id[2];
++
++ for (tmp = 0, info = m25p_data;
++ tmp < ARRAY_SIZE(m25p_data);
++ tmp++, info++) {
++ if (info->jedec_id == jedec)
++ return info;
++ }
++ dev_err(&spi->dev, "unrecognized JEDEC id %06x\n", jedec);
++ return NULL;
++}
++
++
+ /*
+ * board specific setup should have ensured the SPI clock used here
+ * matches what the READ command supports, at least until this driver
+@@ -429,37 +531,51 @@ static int __devinit m25p_probe(struct spi_device *spi)
+ unsigned i;
+
+ /* Platform data helps sort out which chip type we have, as
+- * well as how this board partitions it.
++ * well as how this board partitions it. If we don't have
++ * a chip ID, try the JEDEC id commands; they'll work for most
++ * newer chips, even if we don't recognize the particular chip.
+ */
+ data = spi->dev.platform_data;
+- if (!data || !data->type) {
+- /* FIXME some chips can identify themselves with RES
+- * or JEDEC get-id commands. Try them ...
+- */
+- DEBUG(MTD_DEBUG_LEVEL1, "%s: no chip id\n",
+- spi->dev.bus_id);
+- return -ENODEV;
+- }
++ if (data && data->type) {
++ for (i = 0, info = m25p_data;
++ i < ARRAY_SIZE(m25p_data);
++ i++, info++) {
++ if (strcmp(data->type, info->name) == 0)
++ break;
++ }
+
+- for (i = 0, info = m25p_data; i < ARRAY_SIZE(m25p_data); i++, info++) {
+- if (strcmp(data->type, info->name) == 0)
+- break;
+- }
+- if (i == ARRAY_SIZE(m25p_data)) {
+- DEBUG(MTD_DEBUG_LEVEL1, "%s: unrecognized id %s\n",
+- spi->dev.bus_id, data->type);
++ /* unrecognized chip? */
++ if (i == ARRAY_SIZE(m25p_data)) {
++ DEBUG(MTD_DEBUG_LEVEL0, "%s: unrecognized id %s\n",
++ spi->dev.bus_id, data->type);
++ info = NULL;
++
++ /* recognized; is that chip really what's there? */
++ } else if (info->jedec_id) {
++ struct flash_info *chip = jedec_probe(spi);
++
++ if (!chip || chip != info) {
++ dev_warn(&spi->dev, "found %s, expected %s\n",
++ chip ? chip->name : "UNKNOWN",
++ info->name);
++ info = NULL;
++ }
++ }
++ } else
++ info = jedec_probe(spi);
++
++ if (!info)
+ return -ENODEV;
+- }
+
+ flash = kzalloc(sizeof *flash, GFP_KERNEL);
+ if (!flash)
+ return -ENOMEM;
+
+ flash->spi = spi;
+- init_MUTEX(&flash->lock);
++ mutex_init(&flash->lock);
+ dev_set_drvdata(&spi->dev, flash);
+
+- if (data->name)
++ if (data && data->name)
+ flash->mtd.name = data->name;
+ else
+ flash->mtd.name = spi->dev.bus_id;
+@@ -468,17 +584,25 @@ static int __devinit m25p_probe(struct spi_device *spi)
+ flash->mtd.writesize = 1;
+ flash->mtd.flags = MTD_CAP_NORFLASH;
+ flash->mtd.size = info->sector_size * info->n_sectors;
+- flash->mtd.erasesize = info->sector_size;
+ flash->mtd.erase = m25p80_erase;
+ flash->mtd.read = m25p80_read;
+ flash->mtd.write = m25p80_write;
+
++ /* prefer "small sector" erase if possible */
++ if (info->flags & SECT_4K) {
++ flash->erase_opcode = OPCODE_BE_4K;
++ flash->mtd.erasesize = 4096;
++ } else {
++ flash->erase_opcode = OPCODE_SE;
++ flash->mtd.erasesize = info->sector_size;
++ }
++
+ dev_info(&spi->dev, "%s (%d Kbytes)\n", info->name,
+ flash->mtd.size / 1024);
+
+ DEBUG(MTD_DEBUG_LEVEL2,
+- "mtd .name = %s, .size = 0x%.8x (%uM) "
+- ".erasesize = 0x%.8x (%uK) .numeraseregions = %d\n",
++ "mtd .name = %s, .size = 0x%.8x (%uMiB) "
++ ".erasesize = 0x%.8x (%uKiB) .numeraseregions = %d\n",
+ flash->mtd.name,
+ flash->mtd.size, flash->mtd.size / (1024*1024),
+ flash->mtd.erasesize, flash->mtd.erasesize / 1024,
+@@ -488,7 +612,7 @@ static int __devinit m25p_probe(struct spi_device *spi)
+ for (i = 0; i < flash->mtd.numeraseregions; i++)
+ DEBUG(MTD_DEBUG_LEVEL2,
+ "mtd.eraseregions[%d] = { .offset = 0x%.8x, "
+- ".erasesize = 0x%.8x (%uK), "
++ ".erasesize = 0x%.8x (%uKiB), "
+ ".numblocks = %d }\n",
+ i, flash->mtd.eraseregions[i].offset,
+ flash->mtd.eraseregions[i].erasesize,
+@@ -516,14 +640,14 @@ static int __devinit m25p_probe(struct spi_device *spi)
+ }
+
+ if (nr_parts > 0) {
+- for (i = 0; i < data->nr_parts; i++) {
++ for (i = 0; i < nr_parts; i++) {
+ DEBUG(MTD_DEBUG_LEVEL2, "partitions[%d] = "
+ "{.name = %s, .offset = 0x%.8x, "
+- ".size = 0x%.8x (%uK) }\n",
+- i, data->parts[i].name,
+- data->parts[i].offset,
+- data->parts[i].size,
+- data->parts[i].size / 1024);
++ ".size = 0x%.8x (%uKiB) }\n",
++ i, parts[i].name,
++ parts[i].offset,
++ parts[i].size,
++ parts[i].size / 1024);
+ }
+ flash->partitioned = 1;
+ return add_mtd_partitions(&flash->mtd, parts, nr_parts);
+@@ -560,6 +684,11 @@ static struct spi_driver m25p80_driver = {
+ },
+ .probe = m25p_probe,
+ .remove = __devexit_p(m25p_remove),
++
++ /* REVISIT: many of these chips have deep power-down modes, which
++ * should clearly be entered on suspend() to minimize power use.
++ * And also when they're otherwise idle...
++ */
+ };
+
+
+diff --git a/drivers/mtd/devices/mtd_dataflash.c b/drivers/mtd/devices/mtd_dataflash.c
+index a987e91..a5ed6d2 100644
+--- a/drivers/mtd/devices/mtd_dataflash.c
++++ b/drivers/mtd/devices/mtd_dataflash.c
+@@ -14,6 +14,7 @@
+ #include <linux/slab.h>
+ #include <linux/delay.h>
+ #include <linux/device.h>
++#include <linux/mutex.h>
+ #include <linux/spi/spi.h>
+ #include <linux/spi/flash.h>
+
+@@ -89,7 +90,7 @@ struct dataflash {
+ unsigned short page_offset; /* offset in flash address */
+ unsigned int page_size; /* of bytes per page */
+
+- struct semaphore lock;
++ struct mutex lock;
+ struct spi_device *spi;
+
+ struct mtd_info mtd;
+@@ -167,7 +168,7 @@ static int dataflash_erase(struct mtd_info *mtd, struct erase_info *instr)
+ x.len = 4;
+ spi_message_add_tail(&x, &msg);
+
+- down(&priv->lock);
++ mutex_lock(&priv->lock);
+ while (instr->len > 0) {
+ unsigned int pageaddr;
+ int status;
+@@ -210,7 +211,7 @@ static int dataflash_erase(struct mtd_info *mtd, struct erase_info *instr)
+ instr->len -= priv->page_size;
+ }
+ }
+- up(&priv->lock);
++ mutex_unlock(&priv->lock);
+
+ /* Inform MTD subsystem that erase is complete */
+ instr->state = MTD_ERASE_DONE;
+@@ -266,7 +267,7 @@ static int dataflash_read(struct mtd_info *mtd, loff_t from, size_t len,
+ x[1].len = len;
+ spi_message_add_tail(&x[1], &msg);
+
+- down(&priv->lock);
++ mutex_lock(&priv->lock);
+
+ /* Continuous read, max clock = f(car) which may be less than
+ * the peak rate available. Some chips support commands with
+@@ -279,7 +280,7 @@ static int dataflash_read(struct mtd_info *mtd, loff_t from, size_t len,
+ /* plus 4 "don't care" bytes */
+
+ status = spi_sync(priv->spi, &msg);
+- up(&priv->lock);
++ mutex_unlock(&priv->lock);
+
+ if (status >= 0) {
+ *retlen = msg.actual_length - 8;
+@@ -336,7 +337,7 @@ static int dataflash_write(struct mtd_info *mtd, loff_t to, size_t len,
+ else
+ writelen = len;
+
+- down(&priv->lock);
++ mutex_lock(&priv->lock);
+ while (remaining > 0) {
+ DEBUG(MTD_DEBUG_LEVEL3, "write @ %i:%i len=%i\n",
+ pageaddr, offset, writelen);
+@@ -441,7 +442,7 @@ static int dataflash_write(struct mtd_info *mtd, loff_t to, size_t len,
+ else
+ writelen = remaining;
+ }
+- up(&priv->lock);
++ mutex_unlock(&priv->lock);
+
+ return status;
+ }
+@@ -463,7 +464,7 @@ add_dataflash(struct spi_device *spi, char *name,
+ if (!priv)
+ return -ENOMEM;
+
+- init_MUTEX(&priv->lock);
++ mutex_init(&priv->lock);
+ priv->spi = spi;
+ priv->page_size = pagesize;
+ priv->page_offset = pageoffset;
+diff --git a/drivers/mtd/devices/pmc551.c b/drivers/mtd/devices/pmc551.c
+index e8f686f..7060a08 100644
+--- a/drivers/mtd/devices/pmc551.c
++++ b/drivers/mtd/devices/pmc551.c
+@@ -30,8 +30,8 @@
+ *
+ * Notes:
+ * Due to what I assume is more buggy SROM, the 64M PMC551 I
+- * have available claims that all 4 of it's DRAM banks have 64M
+- * of ram configured (making a grand total of 256M onboard).
++ * have available claims that all 4 of its DRAM banks have 64MiB
++ * of ram configured (making a grand total of 256MiB onboard).
+ * This is slightly annoying since the BAR0 size reflects the
+ * aperture size, not the dram size, and the V370PDC supplies no
+ * other method for memory size discovery. This problem is
+@@ -70,7 +70,7 @@
+ * made the memory unusable, added a fix to code to touch up
+ * the DRAM some.
+ *
+- * Bugs/FIXME's:
++ * Bugs/FIXMEs:
+ * * MUST fix the init function to not spin on a register
+ * waiting for it to set .. this does not safely handle busted
+ * devices that never reset the register correctly which will
+@@ -562,10 +562,10 @@ static u32 fixup_pmc551(struct pci_dev *dev)
+ /*
+ * Some screen fun
+ */
+- printk(KERN_DEBUG "pmc551: %d%c (0x%x) of %sprefetchable memory at "
++ printk(KERN_DEBUG "pmc551: %d%sB (0x%x) of %sprefetchable memory at "
+ "0x%llx\n", (size < 1024) ? size : (size < 1048576) ?
+ size >> 10 : size >> 20,
+- (size < 1024) ? 'B' : (size < 1048576) ? 'K' : 'M', size,
++ (size < 1024) ? "" : (size < 1048576) ? "Ki" : "Mi", size,
+ ((dcmd & (0x1 << 3)) == 0) ? "non-" : "",
+ (unsigned long long)pci_resource_start(dev, 0));
+
+@@ -649,14 +649,10 @@ MODULE_DESCRIPTION(PMC551_VERSION);
+ * Stuff these outside the ifdef so as to not bust compiled in driver support
+ */
+ static int msize = 0;
+-#if defined(CONFIG_MTD_PMC551_APERTURE_SIZE)
+-static int asize = CONFIG_MTD_PMC551_APERTURE_SIZE;
+-#else
+ static int asize = 0;
+-#endif
+
+ module_param(msize, int, 0);
+-MODULE_PARM_DESC(msize, "memory size in Megabytes [1 - 1024]");
++MODULE_PARM_DESC(msize, "memory size in MiB [1 - 1024]");
+ module_param(asize, int, 0);
+ MODULE_PARM_DESC(asize, "aperture size, must be <= memsize [1-1024]");
+
+@@ -799,8 +795,7 @@ static int __init init_pmc551(void)
+ mtd->owner = THIS_MODULE;
+