rename-gta03-dropped-3d7k-new-moniker.patch
authorAndy Green <andy@openmoko.com>
Mon, 2 Mar 2009 18:51:56 +0000 (18:51 +0000)
committerAndy Green <agreen@octopus.localdomain>
Mon, 2 Mar 2009 18:51:56 +0000 (18:51 +0000)
GTA03 project is dropped, long live Openmoko 3d7k project.

This name was literally generated by picking the first character
of the next four car license plates to pass by I am told.

The should catch all GTA03 instances except the machine name.

I registered a new machine name since the 3d7k is different
from original GTA03, the machine number is 2120.

Signed-off-by: Andy Green <andy@openmoko.com>
17 files changed:
arch/arm/configs/gta03_defconfig [deleted file]
arch/arm/configs/om_3d7k_defconfig [new file with mode: 0644]
arch/arm/mach-s3c6410/Kconfig
arch/arm/mach-s3c6410/Makefile
arch/arm/mach-s3c6410/include/mach/om-3d7k.h [new file with mode: 0644]
arch/arm/mach-s3c6410/include/mach/om-gta03.h [deleted file]
arch/arm/mach-s3c6410/mach-om-3d7k.c [new file with mode: 0644]
arch/arm/mach-s3c6410/mach-om-gta03.c [deleted file]
arch/arm/mach-s3c6410/om-3d7k-features.c [new file with mode: 0644]
arch/arm/mach-s3c6410/om-gta03-features.c [deleted file]
build
drivers/input/touchscreen/pcap7200_ts.c
drivers/spi/spi_s3c64xx_gpio.c
sound/soc/s3c24xx/Kconfig
sound/soc/s3c24xx/Makefile
sound/soc/s3c24xx/om_3d7k_wm8753.c [new file with mode: 0644]
sound/soc/s3c24xx/om_gta03_wm8753.c [deleted file]

diff --git a/arch/arm/configs/gta03_defconfig b/arch/arm/configs/gta03_defconfig
deleted file mode 100644 (file)
index c4a4ab7..0000000
+++ /dev/null
@@ -1,1749 +0,0 @@
-#
-# Automatically generated make config: don't edit
-# Linux kernel version: 2.6.29-rc3
-# Tue Feb 24 01:50:43 2009
-#
-CONFIG_ARM=y
-CONFIG_SYS_SUPPORTS_APM_EMULATION=y
-CONFIG_GENERIC_GPIO=y
-# CONFIG_GENERIC_TIME is not set
-# CONFIG_GENERIC_CLOCKEVENTS is not set
-CONFIG_MMU=y
-CONFIG_NO_IOPORT=y
-CONFIG_GENERIC_HARDIRQS=y
-CONFIG_STACKTRACE_SUPPORT=y
-CONFIG_HAVE_LATENCYTOP_SUPPORT=y
-CONFIG_LOCKDEP_SUPPORT=y
-CONFIG_TRACE_IRQFLAGS_SUPPORT=y
-CONFIG_HARDIRQS_SW_RESEND=y
-CONFIG_GENERIC_IRQ_PROBE=y
-CONFIG_RWSEM_GENERIC_SPINLOCK=y
-# CONFIG_ARCH_HAS_ILOG2_U32 is not set
-# CONFIG_ARCH_HAS_ILOG2_U64 is not set
-CONFIG_GENERIC_HWEIGHT=y
-CONFIG_GENERIC_CALIBRATE_DELAY=y
-CONFIG_FIQ=y
-CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y
-CONFIG_VECTORS_BASE=0xffff0000
-CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
-
-#
-# General setup
-#
-CONFIG_EXPERIMENTAL=y
-CONFIG_BROKEN_ON_SMP=y
-CONFIG_INIT_ENV_ARG_LIMIT=32
-CONFIG_LOCALVERSION=""
-CONFIG_LOCALVERSION_AUTO=y
-CONFIG_SWAP=y
-# CONFIG_SYSVIPC is not set
-# CONFIG_POSIX_MQUEUE is not set
-# CONFIG_BSD_PROCESS_ACCT is not set
-# CONFIG_TASKSTATS is not set
-# CONFIG_AUDIT is not set
-
-#
-# RCU Subsystem
-#
-CONFIG_CLASSIC_RCU=y
-# CONFIG_TREE_RCU is not set
-# CONFIG_PREEMPT_RCU is not set
-# CONFIG_TREE_RCU_TRACE is not set
-# CONFIG_PREEMPT_RCU_TRACE is not set
-CONFIG_IKCONFIG=y
-CONFIG_IKCONFIG_PROC=y
-CONFIG_LOG_BUF_SHIFT=18
-# CONFIG_GROUP_SCHED is not set
-# CONFIG_CGROUPS is not set
-CONFIG_SYSFS_DEPRECATED=y
-CONFIG_SYSFS_DEPRECATED_V2=y
-# CONFIG_RELAY is not set
-CONFIG_NAMESPACES=y
-# CONFIG_UTS_NS is not set
-# CONFIG_USER_NS is not set
-# CONFIG_PID_NS is not set
-# CONFIG_NET_NS is not set
-CONFIG_BLK_DEV_INITRD=y
-CONFIG_INITRAMFS_SOURCE=""
-CONFIG_CC_OPTIMIZE_FOR_SIZE=y
-CONFIG_SYSCTL=y
-# CONFIG_EMBEDDED is not set
-CONFIG_UID16=y
-CONFIG_SYSCTL_SYSCALL=y
-CONFIG_KALLSYMS=y
-CONFIG_KALLSYMS_ALL=y
-# CONFIG_KALLSYMS_EXTRA_PASS is not set
-CONFIG_HOTPLUG=y
-CONFIG_PRINTK=y
-CONFIG_BUG=y
-CONFIG_ELF_CORE=y
-CONFIG_COMPAT_BRK=y
-CONFIG_BASE_FULL=y
-CONFIG_FUTEX=y
-CONFIG_ANON_INODES=y
-CONFIG_EPOLL=y
-CONFIG_SIGNALFD=y
-CONFIG_TIMERFD=y
-CONFIG_EVENTFD=y
-CONFIG_SHMEM=y
-CONFIG_AIO=y
-CONFIG_ASHMEM=y
-CONFIG_VM_EVENT_COUNTERS=y
-CONFIG_SLUB_DEBUG=y
-# CONFIG_SLAB is not set
-CONFIG_SLUB=y
-# CONFIG_SLOB is not set
-# CONFIG_PROFILING is not set
-CONFIG_HAVE_OPROFILE=y
-# CONFIG_KPROBES is not set
-CONFIG_HAVE_KPROBES=y
-CONFIG_HAVE_KRETPROBES=y
-CONFIG_HAVE_CLK=y
-CONFIG_HAVE_GENERIC_DMA_COHERENT=y
-CONFIG_SLABINFO=y
-CONFIG_RT_MUTEXES=y
-CONFIG_BASE_SMALL=0
-CONFIG_MODULES=y
-# CONFIG_MODULE_FORCE_LOAD is not set
-CONFIG_MODULE_UNLOAD=y
-# CONFIG_MODULE_FORCE_UNLOAD is not set
-# CONFIG_MODVERSIONS is not set
-# CONFIG_MODULE_SRCVERSION_ALL is not set
-CONFIG_BLOCK=y
-CONFIG_LBD=y
-# CONFIG_BLK_DEV_IO_TRACE is not set
-# CONFIG_BLK_DEV_BSG is not set
-# CONFIG_BLK_DEV_INTEGRITY is not set
-
-#
-# IO Schedulers
-#
-CONFIG_IOSCHED_NOOP=y
-CONFIG_IOSCHED_AS=y
-CONFIG_IOSCHED_DEADLINE=y
-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"
-CONFIG_FREEZER=y
-
-#
-# System Type
-#
-# CONFIG_ARCH_AAEC2000 is not set
-# CONFIG_ARCH_INTEGRATOR is not set
-# CONFIG_ARCH_REALVIEW is not set
-# CONFIG_ARCH_VERSATILE is not set
-# CONFIG_ARCH_AT91 is not set
-# CONFIG_ARCH_CLPS711X is not set
-# CONFIG_ARCH_EBSA110 is not set
-# CONFIG_ARCH_EP93XX is not set
-# CONFIG_ARCH_FOOTBRIDGE is not set
-# CONFIG_ARCH_NETX is not set
-# CONFIG_ARCH_H720X is not set
-# CONFIG_ARCH_IMX is not set
-# CONFIG_ARCH_IOP13XX is not set
-# CONFIG_ARCH_IOP32X is not set
-# CONFIG_ARCH_IOP33X is not set
-# CONFIG_ARCH_IXP23XX is not set
-# CONFIG_ARCH_IXP2000 is not set
-# CONFIG_ARCH_IXP4XX is not set
-# CONFIG_ARCH_L7200 is not set
-# CONFIG_ARCH_KIRKWOOD is not set
-# CONFIG_ARCH_KS8695 is not set
-# CONFIG_ARCH_NS9XXX is not set
-# CONFIG_ARCH_LOKI is not set
-# CONFIG_ARCH_MV78XX0 is not set
-# CONFIG_ARCH_MXC is not set
-# CONFIG_ARCH_ORION5X is not set
-# CONFIG_ARCH_PNX4008 is not set
-# CONFIG_ARCH_PXA is not set
-# CONFIG_ARCH_RPC is not set
-# CONFIG_ARCH_SA1100 is not set
-# CONFIG_ARCH_S3C2410 is not set
-CONFIG_ARCH_S3C64XX=y
-# CONFIG_ARCH_SHARK is not set
-# CONFIG_ARCH_LH7A40X is not set
-# CONFIG_ARCH_DAVINCI is not set
-# CONFIG_ARCH_OMAP is not set
-# CONFIG_ARCH_MSM is not set
-# CONFIG_ARCH_W90X900 is not set
-CONFIG_MACH_NEO1973=y
-CONFIG_PLAT_S3C64XX=y
-CONFIG_CPU_S3C6400_INIT=y
-CONFIG_CPU_S3C6400_CLOCK=y
-CONFIG_S3C64XX_DMA=y
-CONFIG_S3C64XX_SETUP_I2C0=y
-CONFIG_S3C64XX_SETUP_I2C1=y
-CONFIG_S3C64XX_SETUP_FB_24BPP=y
-CONFIG_S3C64XX_SETUP_USBOTG=y
-CONFIG_PLAT_S3C=y
-
-#
-# Boot options
-#
-CONFIG_S3C_BOOT_ERROR_RESET=y
-CONFIG_S3C_BOOT_UART_FORCE_FIFO=y
-
-#
-# Power management
-#
-# CONFIG_S3C2410_PM_DEBUG is not set
-# CONFIG_S3C2410_PM_CHECK is not set
-CONFIG_S3C_LOWLEVEL_UART_PORT=3
-CONFIG_S3C_GPIO_SPACE=0
-CONFIG_S3C_GPIO_TRACK=y
-CONFIG_S3C_GPIO_PULL_UPDOWN=y
-CONFIG_S3C_GPIO_CFG_S3C24XX=y
-CONFIG_S3C_GPIO_CFG_S3C64XX=y
-CONFIG_S3C_DMA=y
-CONFIG_S3C_PWM=y
-CONFIG_S3C_DEV_HSMMC=y
-CONFIG_S3C_DEV_HSMMC1=y
-CONFIG_S3C_DEV_I2C1=y
-CONFIG_S3C_DEV_FB=y
-CONFIG_CPU_S3C6410=y
-CONFIG_S3C6410_SETUP_SDHCI=y
-# CONFIG_MACH_SMDK6410 is not set
-CONFIG_MACH_OPENMOKO_GTA03=y
-
-#
-# Processor Type
-#
-CONFIG_CPU_32=y
-CONFIG_CPU_V6=y
-CONFIG_CPU_32v6K=y
-CONFIG_CPU_32v6=y
-CONFIG_CPU_ABRT_EV6=y
-CONFIG_CPU_PABRT_NOIFAR=y
-CONFIG_CPU_CACHE_V6=y
-CONFIG_CPU_CACHE_VIPT=y
-CONFIG_CPU_COPY_V6=y
-CONFIG_CPU_TLB_V6=y
-CONFIG_CPU_HAS_ASID=y
-CONFIG_CPU_CP15=y
-CONFIG_CPU_CP15_MMU=y
-
-#
-# Processor Features
-#
-CONFIG_ARM_THUMB=y
-# CONFIG_CPU_ICACHE_DISABLE is not set
-# CONFIG_CPU_DCACHE_DISABLE is not set
-# CONFIG_CPU_BPREDICT_DISABLE is not set
-# CONFIG_OUTER_CACHE is not set
-CONFIG_ARM_VIC=y
-
-#
-# Bus support
-#
-# CONFIG_PCI_SYSCALL is not set
-# CONFIG_ARCH_SUPPORTS_MSI is not set
-# CONFIG_PCCARD is not set
-
-#
-# Kernel Features
-#
-CONFIG_VMSPLIT_3G=y
-# CONFIG_VMSPLIT_2G is not set
-# CONFIG_VMSPLIT_1G is not set
-CONFIG_PAGE_OFFSET=0xC0000000
-# CONFIG_PREEMPT is not set
-CONFIG_HZ=100
-CONFIG_AEABI=y
-CONFIG_OABI_COMPAT=y
-CONFIG_ARCH_FLATMEM_HAS_HOLES=y
-# CONFIG_ARCH_SPARSEMEM_DEFAULT is not set
-# CONFIG_ARCH_SELECT_MEMORY_MODEL is not set
-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_PAGEFLAGS_EXTENDED=y
-CONFIG_SPLIT_PTLOCK_CPUS=4
-# CONFIG_PHYS_ADDR_T_64BIT is not set
-CONFIG_ZONE_DMA_FLAG=0
-CONFIG_VIRT_TO_BUS=y
-CONFIG_UNEVICTABLE_LRU=y
-CONFIG_ALIGNMENT_TRAP=y
-
-#
-# Boot options
-#
-CONFIG_ZBOOT_ROM_TEXT=0
-CONFIG_ZBOOT_ROM_BSS=0
-CONFIG_CMDLINE="console=ttySAC0,115200 root=/dev/ram init=/bin/bash initrd=0x51000000,4M"
-# CONFIG_XIP_KERNEL is not set
-# CONFIG_KEXEC is not set
-
-#
-# CPU Power Management
-#
-CONFIG_CPU_IDLE=y
-CONFIG_CPU_IDLE_GOV_LADDER=y
-
-#
-# Floating point emulation
-#
-
-#
-# At least one emulation must be selected
-#
-# CONFIG_FPE_NWFPE is not set
-# CONFIG_FPE_FASTFPE is not set
-CONFIG_VFP=y
-
-#
-# Userspace binary formats
-#
-CONFIG_BINFMT_ELF=y
-# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
-CONFIG_HAVE_AOUT=y
-# CONFIG_BINFMT_AOUT is not set
-# CONFIG_BINFMT_MISC is not set
-
-#
-# Power management options
-#
-CONFIG_PM=y
-# CONFIG_PM_DEBUG is not set
-CONFIG_PM_SLEEP=y
-CONFIG_SUSPEND=y
-CONFIG_SUSPEND_FREEZER=y
-CONFIG_APM_EMULATION=y
-CONFIG_ARCH_SUSPEND_POSSIBLE=y
-CONFIG_NET=y
-
-#
-# Networking options
-#
-CONFIG_COMPAT_NET_DEV_OPS=y
-CONFIG_PACKET=y
-CONFIG_PACKET_MMAP=y
-CONFIG_UNIX=y
-CONFIG_XFRM=y
-# CONFIG_XFRM_USER is not set
-# CONFIG_XFRM_SUB_POLICY is not set
-CONFIG_XFRM_MIGRATE=y
-# CONFIG_XFRM_STATISTICS is not set
-# CONFIG_NET_KEY is not set
-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 is not set
-# CONFIG_IP_ROUTE_VERBOSE is not set
-CONFIG_IP_PNP=y
-# CONFIG_IP_PNP_DHCP is not set
-# CONFIG_IP_PNP_BOOTP is not set
-# CONFIG_IP_PNP_RARP 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 is not set
-# CONFIG_INET_ESP is not set
-# CONFIG_INET_IPCOMP is not set
-# CONFIG_INET_XFRM_TUNNEL is not set
-CONFIG_INET_TUNNEL=m
-CONFIG_INET_XFRM_MODE_TRANSPORT=y
-CONFIG_INET_XFRM_MODE_TUNNEL=y
-CONFIG_INET_XFRM_MODE_BEET=y
-# CONFIG_INET_LRO is not set
-CONFIG_INET_DIAG=y
-CONFIG_INET_TCP_DIAG=y
-# CONFIG_TCP_CONG_ADVANCED is not set
-CONFIG_TCP_CONG_CUBIC=y
-CONFIG_DEFAULT_TCP_CONG="cubic"
-CONFIG_TCP_MD5SIG=y
-CONFIG_IPV6=m
-# CONFIG_IPV6_PRIVACY is not set
-# CONFIG_IPV6_ROUTER_PREF is not set
-# CONFIG_IPV6_OPTIMISTIC_DAD is not set
-# CONFIG_INET6_AH is not set
-# CONFIG_INET6_ESP is not set
-# CONFIG_INET6_IPCOMP is not set
-# CONFIG_IPV6_MIP6 is not set
-# CONFIG_INET6_XFRM_TUNNEL is not set
-# CONFIG_INET6_TUNNEL is not set
-CONFIG_INET6_XFRM_MODE_TRANSPORT=m
-CONFIG_INET6_XFRM_MODE_TUNNEL=m
-CONFIG_INET6_XFRM_MODE_BEET=m
-# CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION is not set
-CONFIG_IPV6_SIT=m
-CONFIG_IPV6_NDISC_NODETYPE=y
-# CONFIG_IPV6_TUNNEL is not set
-# CONFIG_IPV6_MULTIPLE_TABLES is not set
-# CONFIG_IPV6_MROUTE is not set
-# CONFIG_NETWORK_SECMARK is not set
-CONFIG_NETFILTER=y
-# CONFIG_NETFILTER_DEBUG is not set
-CONFIG_NETFILTER_ADVANCED=y
-
-#
-# Core Netfilter Configuration
-#
-# CONFIG_NETFILTER_NETLINK_QUEUE is not set
-# CONFIG_NETFILTER_NETLINK_LOG is not set
-# CONFIG_NF_CONNTRACK 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_NFLOG is not set
-# CONFIG_NETFILTER_XT_TARGET_NFQUEUE is not set
-# CONFIG_NETFILTER_XT_TARGET_RATEEST is not set
-# CONFIG_NETFILTER_XT_TARGET_TCPMSS is not set
-# CONFIG_NETFILTER_XT_MATCH_COMMENT 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_HASHLIMIT is not set
-# CONFIG_NETFILTER_XT_MATCH_IPRANGE 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_MULTIPORT is not set
-# CONFIG_NETFILTER_XT_MATCH_OWNER is not set
-# CONFIG_NETFILTER_XT_MATCH_POLICY is not set
-# CONFIG_NETFILTER_XT_MATCH_PKTTYPE is not set
-# CONFIG_NETFILTER_XT_MATCH_QUOTA is not set
-# CONFIG_NETFILTER_XT_MATCH_RATEEST is not set
-# CONFIG_NETFILTER_XT_MATCH_REALM is not set
-# CONFIG_NETFILTER_XT_MATCH_RECENT is not set
-# CONFIG_NETFILTER_XT_MATCH_SCTP is not set
-# 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_TIME is not set
-# CONFIG_NETFILTER_XT_MATCH_U32 is not set
-# CONFIG_IP_VS is not set
-
-#
-# IP: Netfilter Configuration
-#
-# CONFIG_NF_DEFRAG_IPV4 is not set
-# CONFIG_IP_NF_QUEUE is not set
-# CONFIG_IP_NF_IPTABLES is not set
-# CONFIG_IP_NF_ARPTABLES is not set
-
-#
-# IPv6: Netfilter Configuration
-#
-# CONFIG_IP6_NF_QUEUE is not set
-CONFIG_IP6_NF_IPTABLES=m
-# CONFIG_IP6_NF_MATCH_AH is not set
-# CONFIG_IP6_NF_MATCH_EUI64 is not set
-# CONFIG_IP6_NF_MATCH_FRAG is not set
-# CONFIG_IP6_NF_MATCH_OPTS is not set
-# CONFIG_IP6_NF_MATCH_HL is not set
-# CONFIG_IP6_NF_MATCH_IPV6HEADER is not set
-# CONFIG_IP6_NF_MATCH_MH is not set
-# CONFIG_IP6_NF_MATCH_RT is not set
-# CONFIG_IP6_NF_TARGET_LOG is not set
-# CONFIG_IP6_NF_FILTER is not set
-# CONFIG_IP6_NF_MANGLE is not set
-# CONFIG_IP6_NF_RAW 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_NET_DSA 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
-# CONFIG_NET_SCHED is not set
-# CONFIG_DCB is not set
-
-#
-# Network testing
-#
-# CONFIG_NET_PKTGEN is not set
-# CONFIG_HAMRADIO is not set
-# CONFIG_CAN is not set
-# CONFIG_IRDA is not set
-# CONFIG_BT is not set
-# CONFIG_AF_RXRPC is not set
-# CONFIG_PHONET is not set
-CONFIG_FIB_RULES=y
-CONFIG_WIRELESS=y
-CONFIG_CFG80211=y
-# CONFIG_CFG80211_REG_DEBUG is not set
-CONFIG_NL80211=y
-CONFIG_WIRELESS_OLD_REGULATORY=y
-CONFIG_WIRELESS_EXT=y
-CONFIG_WIRELESS_EXT_SYSFS=y
-# CONFIG_LIB80211 is not set
-CONFIG_MAC80211=y
-
-#
-# Rate control algorithm selection
-#
-CONFIG_MAC80211_RC_MINSTREL=y
-# CONFIG_MAC80211_RC_DEFAULT_PID is not set
-CONFIG_MAC80211_RC_DEFAULT_MINSTREL=y
-CONFIG_MAC80211_RC_DEFAULT="minstrel"
-# CONFIG_MAC80211_MESH is not set
-CONFIG_MAC80211_LEDS=y
-# CONFIG_MAC80211_DEBUG_MENU is not set
-# CONFIG_WIMAX is not set
-# CONFIG_RFKILL is not set
-# CONFIG_NET_9P is not set
-
-#
-# Device Drivers
-#
-
-#
-# Generic Driver Options
-#
-CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
-CONFIG_STANDALONE=y
-CONFIG_PREVENT_FIRMWARE_BUILD=y
-CONFIG_FW_LOADER=y
-CONFIG_FIRMWARE_IN_KERNEL=y
-CONFIG_EXTRA_FIRMWARE=""
-# CONFIG_DEBUG_DRIVER is not set
-# CONFIG_DEBUG_DEVRES is not set
-# CONFIG_SYS_HYPERVISOR is not set
-# CONFIG_CONNECTOR is not set
-CONFIG_MTD=y
-# CONFIG_MTD_DEBUG is not set
-# CONFIG_MTD_CONCAT is not set
-CONFIG_MTD_PARTITIONS=y
-# CONFIG_MTD_TESTS is not set
-# CONFIG_MTD_REDBOOT_PARTS is not set
-CONFIG_MTD_CMDLINE_PARTS=y
-# CONFIG_MTD_AFS_PARTS is not set
-# CONFIG_MTD_AR7_PARTS is not set
-
-#
-# User Modules And Translation Layers
-#
-CONFIG_MTD_CHAR=y
-CONFIG_MTD_BLKDEVS=y
-CONFIG_MTD_BLOCK=y
-# 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_PLATRAM is not set
-
-#
-# Self-contained MTD device drivers
-#
-# CONFIG_MTD_DATAFLASH is not set
-# CONFIG_MTD_M25P80 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 is not set
-CONFIG_MTD_ONENAND=y
-# CONFIG_MTD_ONENAND_VERIFY_WRITE is not set
-CONFIG_MTD_ONENAND_GENERIC=y
-# CONFIG_MTD_ONENAND_OTP is not set
-# CONFIG_MTD_ONENAND_2X_PROGRAM is not set
-# CONFIG_MTD_ONENAND_SIM is not set
-
-#
-# LPDDR flash memory drivers
-#
-# CONFIG_MTD_LPDDR is not set
-# CONFIG_MTD_QINFO_PROBE is not set
-
-#
-# UBI - Unsorted block images
-#
-# CONFIG_MTD_UBI is not set
-# CONFIG_PARPORT is not set
-CONFIG_BLK_DEV=y
-# CONFIG_BLK_DEV_COW_COMMON is not set
-CONFIG_BLK_DEV_LOOP=y
-# CONFIG_BLK_DEV_CRYPTOLOOP is not set
-# CONFIG_BLK_DEV_NBD is not set
-# CONFIG_BLK_DEV_UB is not set
-CONFIG_BLK_DEV_RAM=y
-CONFIG_BLK_DEV_RAM_COUNT=16
-CONFIG_BLK_DEV_RAM_SIZE=8192
-# CONFIG_BLK_DEV_XIP is not set
-# CONFIG_CDROM_PKTCDVD is not set
-# CONFIG_ATA_OVER_ETH is not set
-CONFIG_MISC_DEVICES=y
-# CONFIG_ICS932S401 is not set
-# CONFIG_ENCLOSURE_SERVICES is not set
-# CONFIG_C2PORT is not set
-
-#
-# EEPROM support
-#
-# CONFIG_EEPROM_AT24 is not set
-# CONFIG_EEPROM_AT25 is not set
-# CONFIG_EEPROM_LEGACY is not set
-# CONFIG_EEPROM_93CX6 is not set
-CONFIG_HAVE_IDE=y
-# CONFIG_IDE is not set
-
-#
-# SCSI device support
-#
-# CONFIG_RAID_ATTRS is not set
-# CONFIG_SCSI is not set
-# CONFIG_SCSI_DMA is not set
-# CONFIG_SCSI_NETLINK is not set
-# CONFIG_ATA is not set
-# CONFIG_MD is not set
-CONFIG_NETDEVICES=y
-# CONFIG_DUMMY is not set
-# CONFIG_BONDING is not set
-# CONFIG_MACVLAN is not set
-# CONFIG_EQUALIZER is not set
-CONFIG_TUN=y
-# CONFIG_VETH is not set
-# CONFIG_NET_ETHERNET is not set
-# CONFIG_NETDEV_1000 is not set
-# CONFIG_NETDEV_10000 is not set
-
-#
-# Wireless LAN
-#
-# CONFIG_WLAN_PRE80211 is not set
-# CONFIG_WLAN_80211 is not set
-# CONFIG_IWLWIFI_LEDS is not set
-
-#
-# Enable WiMAX (Networking options) to see the WiMAX drivers
-#
-
-#
-# USB Network Adapters
-#
-# CONFIG_USB_CATC is not set
-# CONFIG_USB_KAWETH is not set
-# CONFIG_USB_PEGASUS is not set
-# CONFIG_USB_RTL8150 is not set
-# CONFIG_USB_USBNET is not set
-# CONFIG_WAN is not set
-CONFIG_PPP=y
-# CONFIG_PPP_MULTILINK is not set
-# CONFIG_PPP_FILTER is not set
-CONFIG_PPP_ASYNC=y
-CONFIG_PPP_SYNC_TTY=y
-CONFIG_PPP_DEFLATE=y
-CONFIG_PPP_BSDCOMP=y
-CONFIG_PPP_MPPE=y
-# CONFIG_PPPOE is not set
-# CONFIG_PPPOL2TP is not set
-# CONFIG_SLIP is not set
-CONFIG_SLHC=y
-# CONFIG_NETCONSOLE is not set
-# CONFIG_NETPOLL is not set
-# CONFIG_NET_POLL_CONTROLLER is not set
-# CONFIG_ISDN 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=y
-CONFIG_INPUT_MOUSEDEV_PSAUX=y
-CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
-CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
-# CONFIG_INPUT_JOYDEV 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_KEYBOARD_GPIO is not set
-CONFIG_KEYBOARD_NEO1973=y
-CONFIG_INPUT_MOUSE=y
-CONFIG_MOUSE_PS2=y
-CONFIG_MOUSE_PS2_ALPS=y
-CONFIG_MOUSE_PS2_LOGIPS2PP=y
-CONFIG_MOUSE_PS2_SYNAPTICS=y
-CONFIG_MOUSE_PS2_LIFEBOOK=y
-CONFIG_MOUSE_PS2_TRACKPOINT=y
-# CONFIG_MOUSE_PS2_ELANTECH is not set
-# CONFIG_MOUSE_PS2_TOUCHKIT is not set
-# CONFIG_MOUSE_SERIAL is not set
-# CONFIG_MOUSE_APPLETOUCH is not set
-# CONFIG_MOUSE_BCM5974 is not set
-# CONFIG_MOUSE_VSXXXAA is not set
-# CONFIG_MOUSE_GPIO is not set
-# CONFIG_INPUT_JOYSTICK is not set
-# CONFIG_INPUT_TABLET is not set
-CONFIG_INPUT_TOUCHSCREEN=y
-# CONFIG_TOUCHSCREEN_FILTER is not set
-# CONFIG_TOUCHSCREEN_ADS7846 is not set
-# CONFIG_TOUCHSCREEN_FUJITSU is not set
-# CONFIG_TOUCHSCREEN_GUNZE is not set
-# CONFIG_TOUCHSCREEN_ELO is not set
-# CONFIG_TOUCHSCREEN_WACOM_W8001 is not set
-# CONFIG_TOUCHSCREEN_MTOUCH is not set
-# CONFIG_TOUCHSCREEN_INEXIO is not set
-# CONFIG_TOUCHSCREEN_MK712 is not set
-# CONFIG_TOUCHSCREEN_PENMOUNT is not set
-# CONFIG_TOUCHSCREEN_TOUCHRIGHT is not set
-# CONFIG_TOUCHSCREEN_TOUCHWIN is not set
-# CONFIG_TOUCHSCREEN_USB_COMPOSITE is not set
-# CONFIG_TOUCHSCREEN_TOUCHIT213 is not set
-# CONFIG_TOUCHSCREEN_TSC2007 is not set
-CONFIG_TOUCHSCREEN_PCAP7200=y
-CONFIG_INPUT_MISC=y
-# 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_CM109 is not set
-# CONFIG_INPUT_UINPUT is not set
-CONFIG_INPUT_PCF50633_PMU=y
-CONFIG_INPUT_LIS302DL=y
-
-#
-# Hardware I/O ports
-#
-CONFIG_SERIO=y
-CONFIG_SERIO_SERPORT=y
-CONFIG_SERIO_LIBPS2=y
-# CONFIG_SERIO_RAW is not set
-# CONFIG_GAMEPORT is not set
-
-#
-# Character devices
-#
-CONFIG_VT=y
-CONFIG_CONSOLE_TRANSLATIONS=y
-CONFIG_VT_CONSOLE=y
-CONFIG_NR_TTY_DEVICES=8
-CONFIG_HW_CONSOLE=y
-# CONFIG_VT_HW_CONSOLE_BINDING is not set
-CONFIG_DEVKMEM=y
-# CONFIG_SERIAL_NONSTANDARD is not set
-
-#
-# Serial drivers
-#
-CONFIG_SERIAL_8250=y
-# CONFIG_SERIAL_8250_CONSOLE is not set
-CONFIG_SERIAL_8250_NR_UARTS=4
-CONFIG_SERIAL_8250_RUNTIME_UARTS=4
-# CONFIG_SERIAL_8250_EXTENDED is not set
-
-#
-# Non-8250 serial port support
-#
-CONFIG_SERIAL_SAMSUNG=y
-CONFIG_SERIAL_SAMSUNG_UARTS=4
-# CONFIG_SERIAL_SAMSUNG_DEBUG is not set
-CONFIG_SERIAL_SAMSUNG_CONSOLE=y
-CONFIG_SERIAL_S3C6400=y
-CONFIG_SERIAL_CORE=y
-CONFIG_SERIAL_CORE_CONSOLE=y
-CONFIG_UNIX98_PTYS=y
-# CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set
-CONFIG_LEGACY_PTYS=y
-CONFIG_LEGACY_PTY_COUNT=256
-# CONFIG_IPMI_HANDLER is not set
-CONFIG_HW_RANDOM=y
-# CONFIG_NVRAM is not set
-# CONFIG_R3964 is not set
-# CONFIG_RAW_DRIVER is not set
-# CONFIG_TCG_TPM is not set
-CONFIG_I2C=y
-CONFIG_I2C_BOARDINFO=y
-CONFIG_I2C_CHARDEV=y
-CONFIG_I2C_HELPER_AUTO=y
-
-#
-# I2C Hardware Bus support
-#
-
-#
-# I2C system bus drivers (mostly embedded / system-on-chip)
-#
-# CONFIG_I2C_GPIO is not set
-# CONFIG_I2C_OCORES is not set
-CONFIG_I2C_S3C2410=y
-# CONFIG_I2C_SIMTEC is not set
-
-#
-# External I2C/SMBus adapter drivers
-#
-# CONFIG_I2C_PARPORT_LIGHT is not set
-# CONFIG_I2C_TAOS_EVM is not set
-# CONFIG_I2C_TINY_USB is not set
-
-#
-# Other I2C/SMBus bus drivers
-#
-# CONFIG_I2C_PCA_PLATFORM is not set
-# CONFIG_I2C_STUB is not set
-
-#
-# Miscellaneous I2C Chip support
-#
-# CONFIG_DS1682 is not set
-# CONFIG_AT24 is not set
-# CONFIG_SENSORS_EEPROM is not set
-# CONFIG_SENSORS_PCF50606 is not set
-# CONFIG_SENSORS_PCF8574 is not set
-# CONFIG_PCF8575 is not set
-# CONFIG_SENSORS_PCA9539 is not set
-# CONFIG_SENSORS_PCF8591 is not set
-# CONFIG_SENSORS_MAX6875 is not set
-# CONFIG_SENSORS_TSL2550 is not set
-CONFIG_PCA9632=y
-# 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
-CONFIG_SPI=y
-# CONFIG_SPI_DEBUG is not set
-CONFIG_SPI_MASTER=y
-
-#
-# SPI Master Controller Drivers
-#
-CONFIG_SPI_BITBANG=y
-CONFIG_SPI_GPIO=y
-
-#
-# SPI Protocol Masters
-#
-# CONFIG_SPI_SPIDEV is not set
-# CONFIG_SPI_TLE62X0 is not set
-CONFIG_SPI_S3C64XX_GPIO=y
-CONFIG_ARCH_REQUIRE_GPIOLIB=y
-CONFIG_GPIOLIB=y
-# CONFIG_DEBUG_GPIO is not set
-CONFIG_GPIO_SYSFS=y
-
-#
-# Memory mapped GPIO expanders:
-#
-
-#
-# I2C GPIO expanders:
-#
-# CONFIG_GPIO_MAX732X is not set
-# CONFIG_GPIO_PCA953X is not set
-# CONFIG_GPIO_PCF857X is not set
-
-#
-# PCI GPIO expanders:
-#
-
-#
-# SPI GPIO expanders:
-#
-# CONFIG_GPIO_MAX7301 is not set
-# CONFIG_GPIO_MCP23S08 is not set
-# CONFIG_W1 is not set
-CONFIG_POWER_SUPPLY=y
-# CONFIG_POWER_SUPPLY_DEBUG is not set
-# CONFIG_PDA_POWER is not set
-# CONFIG_APM_POWER is not set
-# CONFIG_BATTERY_DS2760 is not set
-# CONFIG_BATTERY_BQ27x00 is not set
-CONFIG_CHARGER_PCF50633=y
-CONFIG_BATTERY_BQ27000_HDQ=y
-CONFIG_HDQ_GPIO_BITBANG=y
-# CONFIG_BATTERY_GTA01 is not set
-CONFIG_HWMON=y
-# CONFIG_HWMON_VID is not set
-# CONFIG_SENSORS_AD7414 is not set
-# CONFIG_SENSORS_AD7418 is not set
-# CONFIG_SENSORS_ADCXX is not set
-# CONFIG_SENSORS_ADM1021 is not set
-# CONFIG_SENSORS_ADM1025 is not set
-# CONFIG_SENSORS_ADM1026 is not set
-# CONFIG_SENSORS_ADM1029 is not set
-# CONFIG_SENSORS_ADM1031 is not set
-# CONFIG_SENSORS_ADM9240 is not set
-# CONFIG_SENSORS_ADT7462 is not set
-# CONFIG_SENSORS_ADT7470 is not set
-# CONFIG_SENSORS_ADT7473 is not set
-# CONFIG_SENSORS_ADT7475 is not set
-# CONFIG_SENSORS_ATXP1 is not set
-# CONFIG_SENSORS_DS1621 is not set
-# CONFIG_SENSORS_F71805F is not set
-# CONFIG_SENSORS_F71882FG is not set
-# CONFIG_SENSORS_F75375S is not set
-# CONFIG_SENSORS_GL518SM is not set
-# CONFIG_SENSORS_GL520SM is not set
-# CONFIG_SENSORS_IT87 is not set
-# CONFIG_SENSORS_LM63 is not set
-# CONFIG_SENSORS_LM70 is not set
-# CONFIG_SENSORS_LM75 is not set
-# CONFIG_SENSORS_LM77 is not set
-# CONFIG_SENSORS_LM78 is not set
-# CONFIG_SENSORS_LM80 is not set
-# CONFIG_SENSORS_LM83 is not set
-# CONFIG_SENSORS_LM85 is not set
-# CONFIG_SENSORS_LM87 is not set
-# CONFIG_SENSORS_LM90 is not set
-# CONFIG_SENSORS_LM92 is not set
-# CONFIG_SENSORS_LM93 is not set
-# CONFIG_SENSORS_LTC4245 is not set
-# CONFIG_SENSORS_MAX1111 is not set
-# CONFIG_SENSORS_MAX1619 is not set
-# CONFIG_SENSORS_MAX6650 is not set
-# CONFIG_SENSORS_PC87360 is not set
-# CONFIG_SENSORS_PC87427 is not set
-# CONFIG_SENSORS_DME1737 is not set
-# CONFIG_SENSORS_SMSC47M1 is not set
-# CONFIG_SENSORS_SMSC47M192 is not set
-# CONFIG_SENSORS_SMSC47B397 is not set
-# CONFIG_SENSORS_ADS7828 is not set
-# CONFIG_SENSORS_THMC50 is not set
-# CONFIG_SENSORS_VT1211 is not set
-# CONFIG_SENSORS_W83781D is not set
-# CONFIG_SENSORS_W83791D is not set
-# CONFIG_SENSORS_W83792D is not set
-# CONFIG_SENSORS_W83793 is not set
-# CONFIG_SENSORS_W83L785TS is not set
-# CONFIG_SENSORS_W83L786NG is not set
-# CONFIG_SENSORS_W83627HF is not set
-# CONFIG_SENSORS_W83627EHF is not set
-# CONFIG_HWMON_DEBUG_CHIP is not set
-# CONFIG_THERMAL is not set
-# CONFIG_THERMAL_HWMON is not set
-# CONFIG_WATCHDOG is not set
-CONFIG_SSB_POSSIBLE=y
-
-#
-# Sonics Silicon Backplane
-#
-# CONFIG_SSB is not set
-
-#
-# Multifunction device drivers
-#
-# CONFIG_MFD_CORE is not set
-# CONFIG_MFD_SM501 is not set
-# CONFIG_MFD_ASIC3 is not set
-# CONFIG_HTC_EGPIO is not set
-# CONFIG_HTC_PASIC3 is not set
-# CONFIG_TPS65010 is not set
-# CONFIG_TWL4030_CORE is not set
-# CONFIG_MFD_TMIO is not set
-# CONFIG_MFD_T7L66XB is not set
-# CONFIG_MFD_TC6387XB is not set
-# CONFIG_MFD_TC6393XB is not set
-# CONFIG_PMIC_DA903X is not set
-# CONFIG_MFD_WM8400 is not set
-# CONFIG_MFD_WM8350_I2C is not set
-CONFIG_MFD_PCF50633=y
-CONFIG_PCF50633_ADC=y
-CONFIG_PCF50633_GPIO=y
-# CONFIG_MFD_PCF50606 is not set
-# CONFIG_MFD_GLAMO is not set
-
-#
-# Multimedia devices
-#
-
-#
-# Multimedia core support
-#
-# CONFIG_VIDEO_DEV is not set
-# CONFIG_DVB_CORE is not set
-# CONFIG_VIDEO_MEDIA is not set
-
-#
-# Multimedia drivers
-#
-# CONFIG_DAB is not set
-
-#
-# Graphics support
-#
-# CONFIG_VGASTATE is not set
-# CONFIG_VIDEO_OUTPUT_CONTROL is not set
-CONFIG_FB=y
-# CONFIG_FIRMWARE_EDID is not set
-# CONFIG_FB_DDC is not set
-# CONFIG_FB_BOOT_VESA_SUPPORT is not set
-CONFIG_FB_CFB_FILLRECT=y
-CONFIG_FB_CFB_COPYAREA=y
-CONFIG_FB_CFB_IMAGEBLIT=y
-# CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set
-# CONFIG_FB_SYS_FILLRECT is not set
-# CONFIG_FB_SYS_COPYAREA is not set
-# CONFIG_FB_SYS_IMAGEBLIT is not set
-# CONFIG_FB_FOREIGN_ENDIAN is not set
-# CONFIG_FB_SYS_FOPS is not set
-# 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_S1D13XXX is not set
-CONFIG_FB_S3C=y
-# CONFIG_FB_S3C_DEBUG_REGWRITE is not set
-# CONFIG_FB_VIRTUAL is not set
-# CONFIG_FB_METRONOME is not set
-# CONFIG_FB_MB862XX is not set
-CONFIG_BACKLIGHT_LCD_SUPPORT=y
-CONFIG_LCD_CLASS_DEVICE=y
-# CONFIG_LCD_LTV350QV is not set
-# CONFIG_LCD_ILI9320 is not set
-# CONFIG_LCD_TDO24M is not set
-# CONFIG_LCD_VGG2432A4 is not set
-CONFIG_LCD_PLATFORM=y
-CONFIG_BACKLIGHT_CLASS_DEVICE=y
-CONFIG_BACKLIGHT_GENERIC=y
-
-#
-# Display device support
-#
-# CONFIG_DISPLAY_SUPPORT is not set
-# CONFIG_DISPLAY_JBT6K74 is not set
-CONFIG_DISPLAY_L1K002=y
-
-#
-# Console display driver support
-#
-# CONFIG_VGA_CONSOLE is not set
-CONFIG_DUMMY_CONSOLE=y
-CONFIG_FRAMEBUFFER_CONSOLE=y
-CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
-CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y
-CONFIG_FONTS=y
-CONFIG_FONT_8x8=y
-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 is not set
-# CONFIG_FONT_10x18 is not set
-CONFIG_LOGO=y
-CONFIG_LOGO_LINUX_MONO=y
-CONFIG_LOGO_LINUX_VGA16=y
-# CONFIG_LOGO_LINUX_CLUT224 is not set
-CONFIG_SOUND=y
-# CONFIG_SOUND_OSS_CORE is not set
-CONFIG_SND=y
-CONFIG_SND_TIMER=y
-CONFIG_SND_PCM=y
-# CONFIG_SND_SEQUENCER is not set
-# CONFIG_SND_MIXER_OSS is not set
-# CONFIG_SND_PCM_OSS is not set
-# CONFIG_SND_DYNAMIC_MINORS is not set
-CONFIG_SND_SUPPORT_OLD_API=y
-CONFIG_SND_VERBOSE_PROCFS=y
-# CONFIG_SND_VERBOSE_PRINTK is not set
-# CONFIG_SND_DEBUG is not set
-CONFIG_SND_DRIVERS=y
-# CONFIG_SND_DUMMY is not set
-# CONFIG_SND_MTPAV is not set
-# CONFIG_SND_SERIAL_U16550 is not set
-# CONFIG_SND_MPU401 is not set
-CONFIG_SND_ARM=y
-CONFIG_SND_SPI=y
-CONFIG_SND_USB=y
-# CONFIG_SND_USB_AUDIO is not set
-# CONFIG_SND_USB_CAIAQ is not set
-CONFIG_SND_SOC=y
-CONFIG_SND_S3C24XX_SOC=y
-CONFIG_SND_S3C_I2SV2_SOC=y
-CONFIG_SND_S3C64XX_SOC_I2S=y
-CONFIG_SND_S3C24XX_SOC_OM_GTA03_WM8753=y
-# CONFIG_SND_S3C24XX_SOC_LN2440SBC_ALC650 is not set
-# CONFIG_SND_S3C24XX_SOC_S3C24XX_UDA134X is not set
-# CONFIG_SND_S3C64XX_SOC_SMDK6410_WM8731 is not set
-CONFIG_SND_SOC_I2C_AND_SPI=y
-# CONFIG_SND_SOC_ALL_CODECS is not set
-CONFIG_SND_SOC_WM8753=y
-# CONFIG_SOUND_PRIME is not set
-CONFIG_HID_SUPPORT=y
-CONFIG_HID=y
-CONFIG_HID_DEBUG=y
-# CONFIG_HIDRAW is not set
-
-#
-# USB Input Devices
-#
-CONFIG_USB_HID=y
-# CONFIG_HID_PID is not set
-# CONFIG_USB_HIDDEV is not set
-
-#
-# Special HID drivers
-#
-# CONFIG_HID_COMPAT is not set
-CONFIG_HID_A4TECH=y
-CONFIG_HID_APPLE=y
-CONFIG_HID_BELKIN=y
-CONFIG_HID_CHERRY=y
-CONFIG_HID_CHICONY=y
-CONFIG_HID_CYPRESS=y
-CONFIG_HID_EZKEY=y
-CONFIG_HID_GYRATION=y
-CONFIG_HID_LOGITECH=y
-# CONFIG_LOGITECH_FF is not set
-# CONFIG_LOGIRUMBLEPAD2_FF is not set
-CONFIG_HID_MICROSOFT=y
-CONFIG_HID_MONTEREY=y
-CONFIG_HID_NTRIG=y
-CONFIG_HID_PANTHERLORD=y
-# CONFIG_PANTHERLORD_FF is not set
-CONFIG_HID_PETALYNX=y
-CONFIG_HID_SAMSUNG=y
-CONFIG_HID_SONY=y
-CONFIG_HID_SUNPLUS=y
-# CONFIG_GREENASIA_FF is not set
-CONFIG_HID_TOPSEED=y
-# CONFIG_THRUSTMASTER_FF is not set
-# CONFIG_ZEROPLUS_FF is not set
-CONFIG_USB_SUPPORT=y
-CONFIG_USB_ARCH_HAS_HCD=y
-# CONFIG_USB_ARCH_HAS_OHCI is not set
-# CONFIG_USB_ARCH_HAS_EHCI is not set
-CONFIG_USB=y
-# CONFIG_USB_DEBUG is not set
-CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
-
-#
-# Miscellaneous USB options
-#
-# CONFIG_USB_DEVICEFS is not set
-CONFIG_USB_DEVICE_CLASS=y
-# CONFIG_USB_DYNAMIC_MINORS is not set
-# CONFIG_USB_SUSPEND is not set
-# CONFIG_USB_OTG is not set
-CONFIG_USB_MON=y
-# CONFIG_USB_WUSB is not set
-# CONFIG_USB_WUSB_CBAF is not set
-
-#
-# USB Host Controller Drivers
-#
-# CONFIG_USB_C67X00_HCD is not set
-# CONFIG_USB_OXU210HP_HCD is not set
-# CONFIG_USB_ISP116X_HCD is not set
-# CONFIG_USB_SL811_HCD is not set
-# CONFIG_USB_R8A66597_HCD is not set
-# CONFIG_USB_HWA_HCD is not set
-# CONFIG_USB_MUSB_HDRC is not set
-# CONFIG_USB_GADGET_MUSB_HDRC is not set
-
-#
-# USB Device Class drivers
-#
-# CONFIG_USB_ACM is not set
-# CONFIG_USB_PRINTER is not set
-# CONFIG_USB_WDM is not set
-# CONFIG_USB_TMC is not set
-
-#
-# NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may also be needed;
-#
-
-#
-# see USB_STORAGE Help for more information
-#
-# CONFIG_USB_LIBUSUAL is not set
-
-#
-# USB Imaging devices
-#
-# CONFIG_USB_MDC800 is not set
-
-#
-# USB port drivers
-#
-# CONFIG_USB_SERIAL 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_SEVSEG 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_LD is not set
-# CONFIG_USB_TRANCEVIBRATOR is not set
-# CONFIG_USB_IOWARRIOR is not set
-# CONFIG_USB_ISIGHTFW is not set
-# CONFIG_USB_VST is not set
-CONFIG_USB_GADGET=y
-# CONFIG_USB_GADGET_DEBUG is not set
-# CONFIG_USB_GADGET_DEBUG_FILES is not set
-CONFIG_USB_GADGET_VBUS_DRAW=500
-CONFIG_USB_GADGET_SELECTED=y
-# CONFIG_USB_GADGET_AT91 is not set
-# CONFIG_USB_GADGET_ATMEL_USBA is not set
-# CONFIG_USB_GADGET_FSL_USB2 is not set
-# CONFIG_USB_GADGET_LH7A40X is not set
-# CONFIG_USB_GADGET_OMAP is not set
-# CONFIG_USB_GADGET_PXA25X is not set
-# CONFIG_USB_GADGET_PXA27X is not set
-# CONFIG_USB_GADGET_S3C2410 is not set
-CONFIG_USB_GADGET_S3C_OTGD_HS=y
-# CONFIG_USB_GADGET_IMX is not set
-# CONFIG_USB_GADGET_M66592 is not set
-# CONFIG_USB_GADGET_AMD5536UDC is not set
-# CONFIG_USB_GADGET_FSL_QE is not set
-# CONFIG_USB_GADGET_CI13XXX is not set
-# CONFIG_USB_GADGET_NET2280 is not set
-# CONFIG_USB_GADGET_GOKU is not set
-# CONFIG_USB_GADGET_DUMMY_HCD is not set
-CONFIG_USB_GADGET_DUALSPEED=y
-# CONFIG_USB_ZERO is not set
-CONFIG_USB_ETH=y
-CONFIG_USB_ETH_RNDIS=y
-# CONFIG_USB_GADGETFS is not set
-# CONFIG_USB_FILE_STORAGE is not set
-# CONFIG_USB_G_SERIAL is not set
-# CONFIG_USB_MIDI_GADGET is not set
-# CONFIG_USB_G_PRINTER is not set
-# CONFIG_USB_CDC_COMPOSITE is not set
-
-#
-# OTG and related infrastructure
-#
-# CONFIG_USB_GPIO_VBUS is not set
-# CONFIG_AR6000_WLAN is not set
-CONFIG_MMC=y
-# CONFIG_MMC_DEBUG is not set
-CONFIG_MMC_UNSAFE_RESUME=y
-
-#
-# MMC/SD/SDIO Card Drivers
-#
-CONFIG_MMC_BLOCK=y
-CONFIG_MMC_BLOCK_BOUNCE=y
-CONFIG_SDIO_UART=y
-# CONFIG_MMC_TEST is not set
-
-#
-# MMC/SD/SDIO Host Controller Drivers
-#
-CONFIG_MMC_SDHCI=y
-CONFIG_MMC_SDHCI_S3C=y
-# CONFIG_MMC_SPI is not set
-# CONFIG_MEMSTICK is not set
-# CONFIG_ACCESSIBILITY is not set
-CONFIG_NEW_LEDS=y
-# CONFIG_LEDS_CLASS is not set
-
-#
-# LED drivers
-#
-
-#
-# LED Triggers
-#
-CONFIG_LEDS_TRIGGERS=y
-# CONFIG_LEDS_TRIGGER_TIMER is not set
-# CONFIG_LEDS_TRIGGER_HEARTBEAT is not set
-# CONFIG_LEDS_TRIGGER_BACKLIGHT is not set
-# CONFIG_LEDS_TRIGGER_DEFAULT_ON is not set
-CONFIG_LEDS_TRIGGER_NETDEV=y
-CONFIG_RTC_LIB=y
-CONFIG_RTC_CLASS=y
-CONFIG_RTC_HCTOSYS=y
-CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
-# 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_DS1374 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
-# CONFIG_RTC_DRV_M41T80 is not set
-# CONFIG_RTC_DRV_S35390A is not set
-# CONFIG_RTC_DRV_FM3130 is not set
-# CONFIG_RTC_DRV_RX8581 is not set
-
-#
-# SPI RTC drivers
-#
-# CONFIG_RTC_DRV_M41T94 is not set
-# CONFIG_RTC_DRV_DS1305 is not set
-# CONFIG_RTC_DRV_DS1390 is not set
-# CONFIG_RTC_DRV_MAX6902 is not set
-# CONFIG_RTC_DRV_R9701 is not set
-# CONFIG_RTC_DRV_RS5C348 is not set
-# CONFIG_RTC_DRV_DS3234 is not set
-
-#
-# Platform RTC drivers
-#
-# CONFIG_RTC_DRV_CMOS is not set
-# CONFIG_RTC_DRV_DS1286 is not set
-# CONFIG_RTC_DRV_DS1511 is not set
-# CONFIG_RTC_DRV_DS1553 is not set
-# CONFIG_RTC_DRV_DS1742 is not set
-# CONFIG_RTC_DRV_STK17TA8 is not set
-# CONFIG_RTC_DRV_M48T86 is not set
-# CONFIG_RTC_DRV_M48T35 is not set
-# CONFIG_RTC_DRV_M48T59 is not set
-# CONFIG_RTC_DRV_BQ4802 is not set
-# CONFIG_RTC_DRV_V3020 is not set
-CONFIG_RTC_DRV_PCF50633=y
-
-#
-# on-CPU RTC drivers
-#
-# CONFIG_DMADEVICES is not set
-CONFIG_REGULATOR=y
-# CONFIG_REGULATOR_DEBUG is not set
-# CONFIG_REGULATOR_FIXED_VOLTAGE is not set
-# CONFIG_REGULATOR_VIRTUAL_CONSUMER is not set
-# CONFIG_REGULATOR_BQ24022 is not set
-CONFIG_REGULATOR_PCF50633=y
-# CONFIG_UIO is not set
-# CONFIG_STAGING is not set
-
-#
-# File systems
-#
-CONFIG_EXT2_FS=y
-# CONFIG_EXT2_FS_XATTR is not set
-# CONFIG_EXT2_FS_XIP is not set
-CONFIG_EXT3_FS=y
-CONFIG_EXT3_FS_XATTR=y
-CONFIG_EXT3_FS_POSIX_ACL=y
-CONFIG_EXT3_FS_SECURITY=y
-# CONFIG_EXT4_FS is not set
-CONFIG_JBD=y
-CONFIG_FS_MBCACHE=y
-# CONFIG_REISERFS_FS is not set
-# CONFIG_JFS_FS is not set
-CONFIG_FS_POSIX_ACL=y
-CONFIG_FILE_LOCKING=y
-# CONFIG_XFS_FS is not set
-# CONFIG_GFS2_FS is not set
-# CONFIG_OCFS2_FS is not set
-# CONFIG_BTRFS_FS is not set
-CONFIG_DNOTIFY=y
-CONFIG_INOTIFY=y
-CONFIG_INOTIFY_USER=y
-# CONFIG_QUOTA is not set
-# CONFIG_AUTOFS_FS is not set
-# CONFIG_AUTOFS4_FS is not set
-# CONFIG_FUSE_FS is not set
-CONFIG_GENERIC_ACL=y
-
-#
-# CD-ROM/DVD Filesystems
-#
-# CONFIG_ISO9660_FS is not set
-# CONFIG_UDF_FS is not set
-
-#
-# DOS/FAT/NT Filesystems
-#
-CONFIG_FAT_FS=y
-# CONFIG_MSDOS_FS is not set
-CONFIG_VFAT_FS=y
-CONFIG_FAT_DEFAULT_CODEPAGE=437
-CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
-# CONFIG_NTFS_FS is not set
-
-#
-# Pseudo filesystems
-#
-CONFIG_PROC_FS=y
-CONFIG_PROC_SYSCTL=y
-CONFIG_PROC_PAGE_MONITOR=y
-CONFIG_SYSFS=y
-CONFIG_TMPFS=y
-CONFIG_TMPFS_POSIX_ACL=y
-# CONFIG_HUGETLB_PAGE is not set
-# CONFIG_CONFIGFS_FS is not set
-CONFIG_MISC_FILESYSTEMS=y
-# CONFIG_ADFS_FS is not set
-# CONFIG_AFFS_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 is not set
-CONFIG_JFFS2_SUMMARY=y
-# CONFIG_JFFS2_FS_XATTR is not set
-# CONFIG_JFFS2_COMPRESSION_OPTIONS is not set
-CONFIG_JFFS2_ZLIB=y
-# CONFIG_JFFS2_LZO is not set
-CONFIG_JFFS2_RTIME=y
-# CONFIG_JFFS2_RUBIN is not set
-CONFIG_CRAMFS=y
-CONFIG_SQUASHFS=m
-# CONFIG_SQUASHFS_EMBEDDED is not set
-CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3
-# CONFIG_VXFS_FS is not set
-# CONFIG_MINIX_FS is not set
-# CONFIG_OMFS_FS is not set
-# CONFIG_HPFS_FS is not set
-# CONFIG_QNX4FS_FS is not set
-CONFIG_ROMFS_FS=y
-# CONFIG_SYSV_FS is not set
-# CONFIG_UFS_FS is not set
-CONFIG_NETWORK_FILESYSTEMS=y
-# CONFIG_NFS_FS is not set
-# CONFIG_NFSD is not set
-# 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
-
-#
-# 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
-CONFIG_NLS=y
-CONFIG_NLS_DEFAULT="iso8859-1"
-CONFIG_NLS_CODEPAGE_437=y
-# CONFIG_NLS_CODEPAGE_737 is not set
-# CONFIG_NLS_CODEPAGE_775 is not set
-# CONFIG_NLS_CODEPAGE_850 is not set
-# CONFIG_NLS_CODEPAGE_852 is not set
-# CONFIG_NLS_CODEPAGE_855 is not set
-# CONFIG_NLS_CODEPAGE_857 is not set
-# CONFIG_NLS_CODEPAGE_860 is not set
-# CONFIG_NLS_CODEPAGE_861 is not set
-# CONFIG_NLS_CODEPAGE_862 is not set
-# CONFIG_NLS_CODEPAGE_863 is not set
-# CONFIG_NLS_CODEPAGE_864 is not set
-# CONFIG_NLS_CODEPAGE_865 is not set
-# CONFIG_NLS_CODEPAGE_866 is not set
-# CONFIG_NLS_CODEPAGE_869 is not set
-# CONFIG_NLS_CODEPAGE_936 is not set
-# CONFIG_NLS_CODEPAGE_950 is not set
-# CONFIG_NLS_CODEPAGE_932 is not set
-# CONFIG_NLS_CODEPAGE_949 is not set
-# CONFIG_NLS_CODEPAGE_874 is not set
-# CONFIG_NLS_ISO8859_8 is not set
-# CONFIG_NLS_CODEPAGE_1250 is not set
-# CONFIG_NLS_CODEPAGE_1251 is not set
-# CONFIG_NLS_ASCII is not set
-CONFIG_NLS_ISO8859_1=y
-# CONFIG_NLS_ISO8859_2 is not set
-# CONFIG_NLS_ISO8859_3 is not set
-# CONFIG_NLS_ISO8859_4 is not set
-# CONFIG_NLS_ISO8859_5 is not set
-# CONFIG_NLS_ISO8859_6 is not set
-# CONFIG_NLS_ISO8859_7 is not set
-# CONFIG_NLS_ISO8859_9 is not set
-# CONFIG_NLS_ISO8859_13 is not set
-# CONFIG_NLS_ISO8859_14 is not set
-# CONFIG_NLS_ISO8859_15 is not set
-# CONFIG_NLS_KOI8_R is not set
-# CONFIG_NLS_KOI8_U is not set
-CONFIG_NLS_UTF8=y
-# CONFIG_DLM is not set
-
-#
-# Kernel hacking
-#
-CONFIG_PRINTK_TIME=y
-CONFIG_ENABLE_WARN_DEPRECATED=y
-CONFIG_ENABLE_MUST_CHECK=y
-CONFIG_FRAME_WARN=1024
-CONFIG_MAGIC_SYSRQ=y
-# CONFIG_UNUSED_SYMBOLS is not set
-# CONFIG_DEBUG_FS is not set
-# CONFIG_HEADERS_CHECK is not set
-CONFIG_DEBUG_KERNEL=y
-# CONFIG_DEBUG_SHIRQ is not set
-CONFIG_DETECT_SOFTLOCKUP=y
-# CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set
-CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0
-CONFIG_SCHED_DEBUG=y
-# CONFIG_SCHEDSTATS is not set
-# CONFIG_TIMER_STATS is not set
-# CONFIG_DEBUG_OBJECTS is not set
-# CONFIG_SLUB_DEBUG_ON is not set
-# CONFIG_SLUB_STATS is not set
-CONFIG_DEBUG_RT_MUTEXES=y
-CONFIG_DEBUG_PI_LIST=y
-# CONFIG_RT_MUTEX_TESTER is not set
-CONFIG_DEBUG_SPINLOCK=y
-CONFIG_DEBUG_MUTEXES=y
-# CONFIG_DEBUG_LOCK_ALLOC is not set
-# CONFIG_PROVE_LOCKING is not set
-# CONFIG_LOCK_STAT 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=y
-CONFIG_DEBUG_INFO=y
-# CONFIG_DEBUG_VM is not set
-# CONFIG_DEBUG_WRITECOUNT is not set
-CONFIG_DEBUG_MEMORY_INIT=y
-# CONFIG_DEBUG_LIST is not set
-# CONFIG_DEBUG_SG is not set
-# CONFIG_DEBUG_NOTIFIERS is not set
-CONFIG_FRAME_POINTER=y
-# CONFIG_BOOT_PRINTK_DELAY is not set
-# CONFIG_RCU_TORTURE_TEST is not set
-# CONFIG_RCU_CPU_STALL_DETECTOR is not set
-# CONFIG_BACKTRACE_SELF_TEST is not set
-# CONFIG_DEBUG_BLOCK_EXT_DEVT is not set
-# CONFIG_FAULT_INJECTION is not set
-# CONFIG_LATENCYTOP is not set
-CONFIG_SYSCTL_SYSCALL_CHECK=y
-CONFIG_HAVE_FUNCTION_TRACER=y
-
-#
-# Tracers
-#
-# CONFIG_FUNCTION_TRACER is not set
-# CONFIG_SCHED_TRACER is not set
-# CONFIG_CONTEXT_SWITCH_TRACER is not set
-# CONFIG_BOOT_TRACER is not set
-# CONFIG_TRACE_BRANCH_PROFILING is not set
-# CONFIG_STACK_TRACER is not set
-# CONFIG_FIND_IRQ_BLOCKERS is not set
-CONFIG_DYNAMIC_PRINTK_DEBUG=y
-# CONFIG_SAMPLES is not set
-CONFIG_HAVE_ARCH_KGDB=y
-# CONFIG_KGDB is not set
-CONFIG_DEBUG_USER=y
-CONFIG_DEBUG_ERRORS=y
-# CONFIG_DEBUG_STACK_USAGE is not set
-CONFIG_DEBUG_LL=y
-# CONFIG_DEBUG_ICEDCC is not set
-CONFIG_DEBUG_S3C_PORT=y
-CONFIG_DEBUG_S3C_UART=3
-
-#
-# Security options
-#
-# CONFIG_KEYS is not set
-# CONFIG_SECURITY is not set
-# CONFIG_SECURITYFS is not set
-# CONFIG_SECURITY_FILE_CAPABILITIES is not set
-CONFIG_CRYPTO=y
-
-#
-# Crypto core or helper
-#
-# CONFIG_CRYPTO_FIPS is not set
-CONFIG_CRYPTO_ALGAPI=y
-CONFIG_CRYPTO_ALGAPI2=y
-CONFIG_CRYPTO_AEAD2=y
-CONFIG_CRYPTO_BLKCIPHER=y
-CONFIG_CRYPTO_BLKCIPHER2=y
-CONFIG_CRYPTO_HASH=y
-CONFIG_CRYPTO_HASH2=y
-CONFIG_CRYPTO_RNG2=y
-CONFIG_CRYPTO_MANAGER=y
-CONFIG_CRYPTO_MANAGER2=y
-# CONFIG_CRYPTO_GF128MUL is not set
-# CONFIG_CRYPTO_NULL is not set
-# CONFIG_CRYPTO_CRYPTD is not set
-# CONFIG_CRYPTO_AUTHENC is not set
-# CONFIG_CRYPTO_TEST is not set
-
-#
-# Authenticated Encryption with Associated Data
-#
-# CONFIG_CRYPTO_CCM is not set
-# CONFIG_CRYPTO_GCM is not set
-# CONFIG_CRYPTO_SEQIV is not set
-
-#
-# Block modes
-#
-# CONFIG_CRYPTO_CBC is not set
-# CONFIG_CRYPTO_CTR is not set
-# CONFIG_CRYPTO_CTS is not set
-CONFIG_CRYPTO_ECB=y
-# CONFIG_CRYPTO_LRW is not set
-# CONFIG_CRYPTO_PCBC is not set
-# CONFIG_CRYPTO_XTS is not set
-
-#
-# Hash modes
-#
-# CONFIG_CRYPTO_HMAC is not set
-# CONFIG_CRYPTO_XCBC is not set
-
-#
-# Digest
-#
-# CONFIG_CRYPTO_CRC32C is not set
-# CONFIG_CRYPTO_MD4 is not set
-CONFIG_CRYPTO_MD5=y
-# CONFIG_CRYPTO_MICHAEL_MIC is not set
-# CONFIG_CRYPTO_RMD128 is not set
-# CONFIG_CRYPTO_RMD160 is not set
-# CONFIG_CRYPTO_RMD256 is not set
-# CONFIG_CRYPTO_RMD320 is not set
-CONFIG_CRYPTO_SHA1=y
-# CONFIG_CRYPTO_SHA256 is not set
-# CONFIG_CRYPTO_SHA512 is not set
-# CONFIG_CRYPTO_TGR192 is not set
-# CONFIG_CRYPTO_WP512 is not set
-
-#
-# Ciphers
-#
-CONFIG_CRYPTO_AES=y
-# CONFIG_CRYPTO_ANUBIS is not set
-CONFIG_CRYPTO_ARC4=y
-# CONFIG_CRYPTO_BLOWFISH is not set
-# CONFIG_CRYPTO_CAMELLIA is not set
-# CONFIG_CRYPTO_CAST5 is not set
-# CONFIG_CRYPTO_CAST6 is not set
-# CONFIG_CRYPTO_DES is not set
-# CONFIG_CRYPTO_FCRYPT is not set
-# CONFIG_CRYPTO_KHAZAD is not set
-# CONFIG_CRYPTO_SALSA20 is not set
-# CONFIG_CRYPTO_SEED is not set
-# CONFIG_CRYPTO_SERPENT is not set
-# CONFIG_CRYPTO_TEA is not set
-# CONFIG_CRYPTO_TWOFISH is not set
-
-#
-# Compression
-#
-# CONFIG_CRYPTO_DEFLATE is not set
-# CONFIG_CRYPTO_LZO is not set
-
-#
-# Random Number Generation
-#
-# CONFIG_CRYPTO_ANSI_CPRNG is not set
-CONFIG_CRYPTO_HW=y
-
-#
-# Library routines
-#
-CONFIG_BITREVERSE=y
-CONFIG_GENERIC_FIND_LAST_BIT=y
-CONFIG_CRC_CCITT=y
-# CONFIG_CRC16 is not set
-# CONFIG_CRC_T10DIF is not set
-# CONFIG_CRC_ITU_T is not set
-CONFIG_CRC32=y
-# CONFIG_CRC7 is not set
-# CONFIG_LIBCRC32C is not set
-CONFIG_ZLIB_INFLATE=y
-CONFIG_ZLIB_DEFLATE=y
-CONFIG_PLIST=y
-CONFIG_HAS_IOMEM=y
-CONFIG_HAS_DMA=y
diff --git a/arch/arm/configs/om_3d7k_defconfig b/arch/arm/configs/om_3d7k_defconfig
new file mode 100644 (file)
index 0000000..04dd3fa
--- /dev/null
@@ -0,0 +1,1745 @@
+#
+# Automatically generated make config: don't edit
+# Linux kernel version: 2.6.29-rc3
+# Mon Mar  2 16:20:27 2009
+#
+CONFIG_ARM=y
+CONFIG_SYS_SUPPORTS_APM_EMULATION=y
+CONFIG_GENERIC_GPIO=y
+# CONFIG_GENERIC_TIME is not set
+# CONFIG_GENERIC_CLOCKEVENTS is not set
+CONFIG_MMU=y
+CONFIG_NO_IOPORT=y
+CONFIG_GENERIC_HARDIRQS=y
+CONFIG_STACKTRACE_SUPPORT=y
+CONFIG_HAVE_LATENCYTOP_SUPPORT=y
+CONFIG_LOCKDEP_SUPPORT=y
+CONFIG_TRACE_IRQFLAGS_SUPPORT=y
+CONFIG_HARDIRQS_SW_RESEND=y
+CONFIG_GENERIC_IRQ_PROBE=y
+CONFIG_RWSEM_GENERIC_SPINLOCK=y
+# CONFIG_ARCH_HAS_ILOG2_U32 is not set
+# CONFIG_ARCH_HAS_ILOG2_U64 is not set
+CONFIG_GENERIC_HWEIGHT=y
+CONFIG_GENERIC_CALIBRATE_DELAY=y
+CONFIG_FIQ=y
+CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y
+CONFIG_VECTORS_BASE=0xffff0000
+CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
+
+#
+# General setup
+#
+CONFIG_EXPERIMENTAL=y
+CONFIG_BROKEN_ON_SMP=y
+CONFIG_INIT_ENV_ARG_LIMIT=32
+CONFIG_LOCALVERSION=""
+CONFIG_LOCALVERSION_AUTO=y
+CONFIG_SWAP=y
+# CONFIG_SYSVIPC is not set
+# CONFIG_POSIX_MQUEUE is not set
+# CONFIG_BSD_PROCESS_ACCT is not set
+# CONFIG_TASKSTATS is not set
+# CONFIG_AUDIT is not set
+
+#
+# RCU Subsystem
+#
+CONFIG_CLASSIC_RCU=y
+# CONFIG_TREE_RCU is not set
+# CONFIG_PREEMPT_RCU is not set
+# CONFIG_TREE_RCU_TRACE is not set
+# CONFIG_PREEMPT_RCU_TRACE is not set
+CONFIG_IKCONFIG=y
+CONFIG_IKCONFIG_PROC=y
+CONFIG_LOG_BUF_SHIFT=18
+# CONFIG_GROUP_SCHED is not set
+# CONFIG_CGROUPS is not set
+CONFIG_SYSFS_DEPRECATED=y
+CONFIG_SYSFS_DEPRECATED_V2=y
+# CONFIG_RELAY is not set
+CONFIG_NAMESPACES=y
+# CONFIG_UTS_NS is not set
+# CONFIG_USER_NS is not set
+# CONFIG_PID_NS is not set
+# CONFIG_NET_NS is not set
+CONFIG_BLK_DEV_INITRD=y
+CONFIG_INITRAMFS_SOURCE=""
+CONFIG_CC_OPTIMIZE_FOR_SIZE=y
+CONFIG_SYSCTL=y
+# CONFIG_EMBEDDED is not set
+CONFIG_UID16=y
+CONFIG_SYSCTL_SYSCALL=y
+CONFIG_KALLSYMS=y
+CONFIG_KALLSYMS_ALL=y
+# CONFIG_KALLSYMS_EXTRA_PASS is not set
+CONFIG_HOTPLUG=y
+CONFIG_PRINTK=y
+CONFIG_BUG=y
+CONFIG_ELF_CORE=y
+CONFIG_COMPAT_BRK=y
+CONFIG_BASE_FULL=y
+CONFIG_FUTEX=y
+CONFIG_ANON_INODES=y
+CONFIG_EPOLL=y
+CONFIG_SIGNALFD=y
+CONFIG_TIMERFD=y
+CONFIG_EVENTFD=y
+CONFIG_SHMEM=y
+CONFIG_AIO=y
+CONFIG_ASHMEM=y
+CONFIG_VM_EVENT_COUNTERS=y
+CONFIG_SLUB_DEBUG=y
+# CONFIG_SLAB is not set
+CONFIG_SLUB=y
+# CONFIG_SLOB is not set
+# CONFIG_PROFILING is not set
+CONFIG_HAVE_OPROFILE=y
+# CONFIG_KPROBES is not set
+CONFIG_HAVE_KPROBES=y
+CONFIG_HAVE_KRETPROBES=y
+CONFIG_HAVE_CLK=y
+CONFIG_HAVE_GENERIC_DMA_COHERENT=y
+CONFIG_SLABINFO=y
+CONFIG_RT_MUTEXES=y
+CONFIG_BASE_SMALL=0
+CONFIG_MODULES=y
+# CONFIG_MODULE_FORCE_LOAD is not set
+CONFIG_MODULE_UNLOAD=y
+# CONFIG_MODULE_FORCE_UNLOAD is not set
+# CONFIG_MODVERSIONS is not set
+# CONFIG_MODULE_SRCVERSION_ALL is not set
+CONFIG_BLOCK=y
+CONFIG_LBD=y
+# CONFIG_BLK_DEV_IO_TRACE is not set
+# CONFIG_BLK_DEV_BSG is not set
+# CONFIG_BLK_DEV_INTEGRITY is not set
+
+#
+# IO Schedulers
+#
+CONFIG_IOSCHED_NOOP=y
+CONFIG_IOSCHED_AS=y
+CONFIG_IOSCHED_DEADLINE=y
+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"
+CONFIG_FREEZER=y
+
+#
+# System Type
+#
+# CONFIG_ARCH_AAEC2000 is not set
+# CONFIG_ARCH_INTEGRATOR is not set
+# CONFIG_ARCH_REALVIEW is not set
+# CONFIG_ARCH_VERSATILE is not set
+# CONFIG_ARCH_AT91 is not set
+# CONFIG_ARCH_CLPS711X is not set
+# CONFIG_ARCH_EBSA110 is not set
+# CONFIG_ARCH_EP93XX is not set
+# CONFIG_ARCH_FOOTBRIDGE is not set
+# CONFIG_ARCH_NETX is not set
+# CONFIG_ARCH_H720X is not set
+# CONFIG_ARCH_IMX is not set
+# CONFIG_ARCH_IOP13XX is not set
+# CONFIG_ARCH_IOP32X is not set
+# CONFIG_ARCH_IOP33X is not set
+# CONFIG_ARCH_IXP23XX is not set
+# CONFIG_ARCH_IXP2000 is not set
+# CONFIG_ARCH_IXP4XX is not set
+# CONFIG_ARCH_L7200 is not set
+# CONFIG_ARCH_KIRKWOOD is not set
+# CONFIG_ARCH_KS8695 is not set
+# CONFIG_ARCH_NS9XXX is not set
+# CONFIG_ARCH_LOKI is not set
+# CONFIG_ARCH_MV78XX0 is not set
+# CONFIG_ARCH_MXC is not set
+# CONFIG_ARCH_ORION5X is not set
+# CONFIG_ARCH_PNX4008 is not set
+# CONFIG_ARCH_PXA is not set
+# CONFIG_ARCH_RPC is not set
+# CONFIG_ARCH_SA1100 is not set
+# CONFIG_ARCH_S3C2410 is not set
+CONFIG_ARCH_S3C64XX=y
+# CONFIG_ARCH_SHARK is not set
+# CONFIG_ARCH_LH7A40X is not set
+# CONFIG_ARCH_DAVINCI is not set
+# CONFIG_ARCH_OMAP is not set
+# CONFIG_ARCH_MSM is not set
+# CONFIG_ARCH_W90X900 is not set
+CONFIG_MACH_NEO1973=y
+CONFIG_PLAT_S3C64XX=y
+CONFIG_CPU_S3C6400_INIT=y
+CONFIG_CPU_S3C6400_CLOCK=y
+CONFIG_S3C64XX_DMA=y
+CONFIG_S3C64XX_SETUP_I2C0=y
+CONFIG_S3C64XX_SETUP_I2C1=y
+CONFIG_S3C64XX_SETUP_FB_24BPP=y
+CONFIG_S3C64XX_SETUP_USBOTG=y
+CONFIG_PLAT_S3C=y
+
+#
+# Boot options
+#
+CONFIG_S3C_BOOT_ERROR_RESET=y
+CONFIG_S3C_BOOT_UART_FORCE_FIFO=y
+
+#
+# Power management
+#
+# CONFIG_S3C2410_PM_DEBUG is not set
+# CONFIG_S3C2410_PM_CHECK is not set
+CONFIG_S3C_LOWLEVEL_UART_PORT=3
+CONFIG_S3C_GPIO_SPACE=0
+CONFIG_S3C_GPIO_TRACK=y
+CONFIG_S3C_GPIO_PULL_UPDOWN=y
+CONFIG_S3C_GPIO_CFG_S3C24XX=y
+CONFIG_S3C_GPIO_CFG_S3C64XX=y
+CONFIG_S3C_DMA=y
+CONFIG_S3C_PWM=y
+CONFIG_S3C_DEV_HSMMC=y
+CONFIG_S3C_DEV_HSMMC1=y
+CONFIG_S3C_DEV_I2C1=y
+CONFIG_S3C_DEV_FB=y
+CONFIG_CPU_S3C6410=y
+CONFIG_S3C6410_SETUP_SDHCI=y
+# CONFIG_MACH_SMDK6410 is not set
+CONFIG_MACH_OM_3D7K=y
+
+#
+# Processor Type
+#
+CONFIG_CPU_32=y
+CONFIG_CPU_V6=y
+CONFIG_CPU_32v6K=y
+CONFIG_CPU_32v6=y
+CONFIG_CPU_ABRT_EV6=y
+CONFIG_CPU_PABRT_NOIFAR=y
+CONFIG_CPU_CACHE_V6=y
+CONFIG_CPU_CACHE_VIPT=y
+CONFIG_CPU_COPY_V6=y
+CONFIG_CPU_TLB_V6=y
+CONFIG_CPU_HAS_ASID=y
+CONFIG_CPU_CP15=y
+CONFIG_CPU_CP15_MMU=y
+
+#
+# Processor Features
+#
+CONFIG_ARM_THUMB=y
+# CONFIG_CPU_ICACHE_DISABLE is not set
+# CONFIG_CPU_DCACHE_DISABLE is not set
+# CONFIG_CPU_BPREDICT_DISABLE is not set
+# CONFIG_OUTER_CACHE is not set
+CONFIG_ARM_VIC=y
+
+#
+# Bus support
+#
+# CONFIG_PCI_SYSCALL is not set
+# CONFIG_ARCH_SUPPORTS_MSI is not set
+# CONFIG_PCCARD is not set
+
+#
+# Kernel Features
+#
+CONFIG_VMSPLIT_3G=y
+# CONFIG_VMSPLIT_2G is not set
+# CONFIG_VMSPLIT_1G is not set
+CONFIG_PAGE_OFFSET=0xC0000000
+# CONFIG_PREEMPT is not set
+CONFIG_HZ=100
+CONFIG_AEABI=y
+CONFIG_OABI_COMPAT=y
+CONFIG_ARCH_FLATMEM_HAS_HOLES=y
+# CONFIG_ARCH_SPARSEMEM_DEFAULT is not set
+# CONFIG_ARCH_SELECT_MEMORY_MODEL is not set
+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_PAGEFLAGS_EXTENDED=y
+CONFIG_SPLIT_PTLOCK_CPUS=4
+# CONFIG_PHYS_ADDR_T_64BIT is not set
+CONFIG_ZONE_DMA_FLAG=0
+CONFIG_VIRT_TO_BUS=y
+CONFIG_UNEVICTABLE_LRU=y
+CONFIG_ALIGNMENT_TRAP=y
+
+#
+# Boot options
+#
+CONFIG_ZBOOT_ROM_TEXT=0
+CONFIG_ZBOOT_ROM_BSS=0
+CONFIG_CMDLINE="console=ttySAC0,115200 root=/dev/ram init=/bin/bash initrd=0x51000000,4M"
+# CONFIG_XIP_KERNEL is not set
+# CONFIG_KEXEC is not set
+
+#
+# CPU Power Management
+#
+CONFIG_CPU_IDLE=y
+CONFIG_CPU_IDLE_GOV_LADDER=y
+
+#
+# Floating point emulation
+#
+
+#
+# At least one emulation must be selected
+#
+# CONFIG_FPE_NWFPE is not set
+# CONFIG_FPE_FASTFPE is not set
+CONFIG_VFP=y
+
+#
+# Userspace binary formats
+#
+CONFIG_BINFMT_ELF=y
+# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
+CONFIG_HAVE_AOUT=y
+# CONFIG_BINFMT_AOUT is not set
+# CONFIG_BINFMT_MISC is not set
+
+#
+# Power management options
+#
+CONFIG_PM=y
+# CONFIG_PM_DEBUG is not set
+CONFIG_PM_SLEEP=y
+CONFIG_SUSPEND=y
+CONFIG_SUSPEND_FREEZER=y
+CONFIG_APM_EMULATION=y
+CONFIG_ARCH_SUSPEND_POSSIBLE=y
+CONFIG_NET=y
+
+#
+# Networking options
+#
+CONFIG_COMPAT_NET_DEV_OPS=y
+CONFIG_PACKET=y
+CONFIG_PACKET_MMAP=y
+CONFIG_UNIX=y
+CONFIG_XFRM=y
+# CONFIG_XFRM_USER is not set
+# CONFIG_XFRM_SUB_POLICY is not set
+CONFIG_XFRM_MIGRATE=y
+# CONFIG_XFRM_STATISTICS is not set
+# CONFIG_NET_KEY is not set
+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 is not set
+# CONFIG_IP_ROUTE_VERBOSE is not set
+CONFIG_IP_PNP=y
+# CONFIG_IP_PNP_DHCP is not set
+# CONFIG_IP_PNP_BOOTP is not set
+# CONFIG_IP_PNP_RARP 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 is not set
+# CONFIG_INET_ESP is not set
+# CONFIG_INET_IPCOMP is not set
+# CONFIG_INET_XFRM_TUNNEL is not set
+CONFIG_INET_TUNNEL=m
+CONFIG_INET_XFRM_MODE_TRANSPORT=y
+CONFIG_INET_XFRM_MODE_TUNNEL=y
+CONFIG_INET_XFRM_MODE_BEET=y
+# CONFIG_INET_LRO is not set
+CONFIG_INET_DIAG=y
+CONFIG_INET_TCP_DIAG=y
+# CONFIG_TCP_CONG_ADVANCED is not set
+CONFIG_TCP_CONG_CUBIC=y
+CONFIG_DEFAULT_TCP_CONG="cubic"
+CONFIG_TCP_MD5SIG=y
+CONFIG_IPV6=m
+# CONFIG_IPV6_PRIVACY is not set
+# CONFIG_IPV6_ROUTER_PREF is not set
+# CONFIG_IPV6_OPTIMISTIC_DAD is not set
+# CONFIG_INET6_AH is not set
+# CONFIG_INET6_ESP is not set
+# CONFIG_INET6_IPCOMP is not set
+# CONFIG_IPV6_MIP6 is not set
+# CONFIG_INET6_XFRM_TUNNEL is not set
+# CONFIG_INET6_TUNNEL is not set
+CONFIG_INET6_XFRM_MODE_TRANSPORT=m
+CONFIG_INET6_XFRM_MODE_TUNNEL=m
+CONFIG_INET6_XFRM_MODE_BEET=m
+# CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION is not set
+CONFIG_IPV6_SIT=m
+CONFIG_IPV6_NDISC_NODETYPE=y
+# CONFIG_IPV6_TUNNEL is not set
+# CONFIG_IPV6_MULTIPLE_TABLES is not set
+# CONFIG_IPV6_MROUTE is not set
+# CONFIG_NETWORK_SECMARK is not set
+CONFIG_NETFILTER=y
+# CONFIG_NETFILTER_DEBUG is not set
+CONFIG_NETFILTER_ADVANCED=y
+
+#
+# Core Netfilter Configuration
+#
+# CONFIG_NETFILTER_NETLINK_QUEUE is not set
+# CONFIG_NETFILTER_NETLINK_LOG is not set
+# CONFIG_NF_CONNTRACK 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_NFLOG is not set
+# CONFIG_NETFILTER_XT_TARGET_NFQUEUE is not set
+# CONFIG_NETFILTER_XT_TARGET_RATEEST is not set
+# CONFIG_NETFILTER_XT_TARGET_TCPMSS is not set
+# CONFIG_NETFILTER_XT_MATCH_COMMENT 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_HASHLIMIT is not set
+# CONFIG_NETFILTER_XT_MATCH_IPRANGE 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_MULTIPORT is not set
+# CONFIG_NETFILTER_XT_MATCH_OWNER is not set
+# CONFIG_NETFILTER_XT_MATCH_POLICY is not set
+# CONFIG_NETFILTER_XT_MATCH_PKTTYPE is not set
+# CONFIG_NETFILTER_XT_MATCH_QUOTA is not set
+# CONFIG_NETFILTER_XT_MATCH_RATEEST is not set
+# CONFIG_NETFILTER_XT_MATCH_REALM is not set
+# CONFIG_NETFILTER_XT_MATCH_RECENT is not set
+# CONFIG_NETFILTER_XT_MATCH_SCTP is not set
+# 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_TIME is not set
+# CONFIG_NETFILTER_XT_MATCH_U32 is not set
+# CONFIG_IP_VS is not set
+
+#
+# IP: Netfilter Configuration
+#
+# CONFIG_NF_DEFRAG_IPV4 is not set
+# CONFIG_IP_NF_QUEUE is not set
+# CONFIG_IP_NF_IPTABLES is not set
+# CONFIG_IP_NF_ARPTABLES is not set
+
+#
+# IPv6: Netfilter Configuration
+#
+# CONFIG_IP6_NF_QUEUE is not set
+CONFIG_IP6_NF_IPTABLES=m
+# CONFIG_IP6_NF_MATCH_AH is not set
+# CONFIG_IP6_NF_MATCH_EUI64 is not set
+# CONFIG_IP6_NF_MATCH_FRAG is not set
+# CONFIG_IP6_NF_MATCH_OPTS is not set
+# CONFIG_IP6_NF_MATCH_HL is not set
+# CONFIG_IP6_NF_MATCH_IPV6HEADER is not set
+# CONFIG_IP6_NF_MATCH_MH is not set
+# CONFIG_IP6_NF_MATCH_RT is not set
+# CONFIG_IP6_NF_TARGET_LOG is not set
+# CONFIG_IP6_NF_FILTER is not set
+# CONFIG_IP6_NF_MANGLE is not set
+# CONFIG_IP6_NF_RAW 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_NET_DSA 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
+# CONFIG_NET_SCHED is not set
+# CONFIG_DCB is not set
+
+#
+# Network testing
+#
+# CONFIG_NET_PKTGEN is not set
+# CONFIG_HAMRADIO is not set
+# CONFIG_CAN is not set
+# CONFIG_IRDA is not set
+# CONFIG_BT is not set
+# CONFIG_AF_RXRPC is not set
+# CONFIG_PHONET is not set
+CONFIG_FIB_RULES=y
+CONFIG_WIRELESS=y
+CONFIG_CFG80211=y
+# CONFIG_CFG80211_REG_DEBUG is not set
+CONFIG_NL80211=y
+CONFIG_WIRELESS_OLD_REGULATORY=y
+CONFIG_WIRELESS_EXT=y
+CONFIG_WIRELESS_EXT_SYSFS=y
+# CONFIG_LIB80211 is not set
+CONFIG_MAC80211=y
+
+#
+# Rate control algorithm selection
+#
+CONFIG_MAC80211_RC_MINSTREL=y
+# CONFIG_MAC80211_RC_DEFAULT_PID is not set
+CONFIG_MAC80211_RC_DEFAULT_MINSTREL=y
+CONFIG_MAC80211_RC_DEFAULT="minstrel"
+# CONFIG_MAC80211_MESH is not set
+CONFIG_MAC80211_LEDS=y
+# CONFIG_MAC80211_DEBUG_MENU is not set
+# CONFIG_WIMAX is not set
+# CONFIG_RFKILL is not set
+# CONFIG_NET_9P is not set
+
+#
+# Device Drivers
+#
+
+#
+# Generic Driver Options
+#
+CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
+CONFIG_STANDALONE=y
+CONFIG_PREVENT_FIRMWARE_BUILD=y
+CONFIG_FW_LOADER=y
+CONFIG_FIRMWARE_IN_KERNEL=y
+CONFIG_EXTRA_FIRMWARE=""
+# CONFIG_DEBUG_DRIVER is not set
+# CONFIG_DEBUG_DEVRES is not set
+# CONFIG_SYS_HYPERVISOR is not set
+# CONFIG_CONNECTOR is not set
+CONFIG_MTD=y
+# CONFIG_MTD_DEBUG is not set
+# CONFIG_MTD_CONCAT is not set
+CONFIG_MTD_PARTITIONS=y
+# CONFIG_MTD_TESTS is not set
+# CONFIG_MTD_REDBOOT_PARTS is not set
+CONFIG_MTD_CMDLINE_PARTS=y
+# CONFIG_MTD_AFS_PARTS is not set
+# CONFIG_MTD_AR7_PARTS is not set
+
+#
+# User Modules And Translation Layers
+#
+CONFIG_MTD_CHAR=y
+CONFIG_MTD_BLKDEVS=y
+CONFIG_MTD_BLOCK=y
+# 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_PLATRAM is not set
+
+#
+# Self-contained MTD device drivers
+#
+# CONFIG_MTD_DATAFLASH is not set
+# CONFIG_MTD_M25P80 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 is not set
+CONFIG_MTD_ONENAND=y
+# CONFIG_MTD_ONENAND_VERIFY_WRITE is not set
+CONFIG_MTD_ONENAND_GENERIC=y
+# CONFIG_MTD_ONENAND_OTP is not set
+# CONFIG_MTD_ONENAND_2X_PROGRAM is not set
+# CONFIG_MTD_ONENAND_SIM is not set
+
+#
+# LPDDR flash memory drivers
+#
+# CONFIG_MTD_LPDDR is not set
+# CONFIG_MTD_QINFO_PROBE is not set
+
+#
+# UBI - Unsorted block images
+#
+# CONFIG_MTD_UBI is not set
+# CONFIG_PARPORT is not set
+CONFIG_BLK_DEV=y
+# CONFIG_BLK_DEV_COW_COMMON is not set
+CONFIG_BLK_DEV_LOOP=y
+# CONFIG_BLK_DEV_CRYPTOLOOP is not set
+# CONFIG_BLK_DEV_NBD is not set
+# CONFIG_BLK_DEV_UB is not set
+CONFIG_BLK_DEV_RAM=y
+CONFIG_BLK_DEV_RAM_COUNT=16
+CONFIG_BLK_DEV_RAM_SIZE=8192
+# CONFIG_BLK_DEV_XIP is not set
+# CONFIG_CDROM_PKTCDVD is not set
+# CONFIG_ATA_OVER_ETH is not set
+CONFIG_MISC_DEVICES=y
+# CONFIG_ICS932S401 is not set
+# CONFIG_ENCLOSURE_SERVICES is not set
+# CONFIG_C2PORT is not set
+
+#
+# EEPROM support
+#
+# CONFIG_EEPROM_AT24 is not set
+# CONFIG_EEPROM_AT25 is not set
+# CONFIG_EEPROM_LEGACY is not set
+# CONFIG_EEPROM_93CX6 is not set
+CONFIG_HAVE_IDE=y
+# CONFIG_IDE is not set
+
+#
+# SCSI device support
+#
+# CONFIG_RAID_ATTRS is not set
+# CONFIG_SCSI is not set
+# CONFIG_SCSI_DMA is not set
+# CONFIG_SCSI_NETLINK is not set
+# CONFIG_ATA is not set
+# CONFIG_MD is not set
+CONFIG_NETDEVICES=y
+# CONFIG_DUMMY is not set
+# CONFIG_BONDING is not set
+# CONFIG_MACVLAN is not set
+# CONFIG_EQUALIZER is not set
+CONFIG_TUN=y
+# CONFIG_VETH is not set
+# CONFIG_NET_ETHERNET is not set
+# CONFIG_NETDEV_1000 is not set
+# CONFIG_NETDEV_10000 is not set
+
+#
+# Wireless LAN
+#
+# CONFIG_WLAN_PRE80211 is not set
+# CONFIG_WLAN_80211 is not set
+# CONFIG_IWLWIFI_LEDS is not set
+
+#
+# Enable WiMAX (Networking options) to see the WiMAX drivers
+#
+
+#
+# USB Network Adapters
+#
+# CONFIG_USB_CATC is not set
+# CONFIG_USB_KAWETH is not set
+# CONFIG_USB_PEGASUS is not set
+# CONFIG_USB_RTL8150 is not set
+# CONFIG_USB_USBNET is not set
+# CONFIG_WAN is not set
+CONFIG_PPP=y
+# CONFIG_PPP_MULTILINK is not set
+# CONFIG_PPP_FILTER is not set
+CONFIG_PPP_ASYNC=y
+CONFIG_PPP_SYNC_TTY=y
+CONFIG_PPP_DEFLATE=y
+CONFIG_PPP_BSDCOMP=y
+CONFIG_PPP_MPPE=y
+# CONFIG_PPPOE is not set
+# CONFIG_PPPOL2TP is not set
+# CONFIG_SLIP is not set
+CONFIG_SLHC=y
+# CONFIG_NETCONSOLE is not set
+# CONFIG_NETPOLL is not set
+# CONFIG_NET_POLL_CONTROLLER is not set
+# CONFIG_ISDN 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=y
+CONFIG_INPUT_MOUSEDEV_PSAUX=y
+CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
+CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
+# CONFIG_INPUT_JOYDEV 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_KEYBOARD_GPIO is not set
+CONFIG_KEYBOARD_NEO1973=y
+CONFIG_INPUT_MOUSE=y
+CONFIG_MOUSE_PS2=y
+CONFIG_MOUSE_PS2_ALPS=y
+CONFIG_MOUSE_PS2_LOGIPS2PP=y
+CONFIG_MOUSE_PS2_SYNAPTICS=y
+CONFIG_MOUSE_PS2_LIFEBOOK=y
+CONFIG_MOUSE_PS2_TRACKPOINT=y
+# CONFIG_MOUSE_PS2_ELANTECH is not set
+# CONFIG_MOUSE_PS2_TOUCHKIT is not set
+# CONFIG_MOUSE_SERIAL is not set
+# CONFIG_MOUSE_APPLETOUCH is not set
+# CONFIG_MOUSE_BCM5974 is not set
+# CONFIG_MOUSE_VSXXXAA is not set
+# CONFIG_MOUSE_GPIO is not set
+# CONFIG_INPUT_JOYSTICK is not set
+# CONFIG_INPUT_TABLET is not set
+CONFIG_INPUT_TOUCHSCREEN=y
+# CONFIG_TOUCHSCREEN_FILTER is not set
+# CONFIG_TOUCHSCREEN_ADS7846 is not set
+# CONFIG_TOUCHSCREEN_FUJITSU is not set
+# CONFIG_TOUCHSCREEN_GUNZE is not set
+# CONFIG_TOUCHSCREEN_ELO is not set
+# CONFIG_TOUCHSCREEN_WACOM_W8001 is not set
+# CONFIG_TOUCHSCREEN_MTOUCH is not set
+# CONFIG_TOUCHSCREEN_INEXIO is not set
+# CONFIG_TOUCHSCREEN_MK712 is not set
+# CONFIG_TOUCHSCREEN_PENMOUNT is not set
+# CONFIG_TOUCHSCREEN_TOUCHRIGHT is not set
+# CONFIG_TOUCHSCREEN_TOUCHWIN is not set
+# CONFIG_TOUCHSCREEN_USB_COMPOSITE is not set
+# CONFIG_TOUCHSCREEN_TOUCHIT213 is not set
+# CONFIG_TOUCHSCREEN_TSC2007 is not set
+CONFIG_TOUCHSCREEN_PCAP7200=y
+CONFIG_INPUT_MISC=y
+# 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_CM109 is not set
+# CONFIG_INPUT_UINPUT is not set
+CONFIG_INPUT_PCF50633_PMU=y
+CONFIG_INPUT_LIS302DL=y
+
+#
+# Hardware I/O ports
+#
+CONFIG_SERIO=y
+CONFIG_SERIO_SERPORT=y
+CONFIG_SERIO_LIBPS2=y
+# CONFIG_SERIO_RAW is not set
+# CONFIG_GAMEPORT is not set
+
+#
+# Character devices
+#
+CONFIG_VT=y
+CONFIG_CONSOLE_TRANSLATIONS=y
+CONFIG_VT_CONSOLE=y
+CONFIG_NR_TTY_DEVICES=8
+CONFIG_HW_CONSOLE=y
+# CONFIG_VT_HW_CONSOLE_BINDING is not set
+CONFIG_DEVKMEM=y
+# CONFIG_SERIAL_NONSTANDARD is not set
+
+#
+# Serial drivers
+#
+CONFIG_SERIAL_8250=y
+# CONFIG_SERIAL_8250_CONSOLE is not set
+CONFIG_SERIAL_8250_NR_UARTS=4
+CONFIG_SERIAL_8250_RUNTIME_UARTS=4
+# CONFIG_SERIAL_8250_EXTENDED is not set
+
+#
+# Non-8250 serial port support
+#
+CONFIG_SERIAL_SAMSUNG=y
+CONFIG_SERIAL_SAMSUNG_UARTS=4
+# CONFIG_SERIAL_SAMSUNG_DEBUG is not set
+CONFIG_SERIAL_SAMSUNG_CONSOLE=y
+CONFIG_SERIAL_S3C6400=y
+CONFIG_SERIAL_CORE=y
+CONFIG_SERIAL_CORE_CONSOLE=y
+CONFIG_UNIX98_PTYS=y
+# CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set
+CONFIG_LEGACY_PTYS=y
+CONFIG_LEGACY_PTY_COUNT=256
+# CONFIG_IPMI_HANDLER is not set
+CONFIG_HW_RANDOM=y
+# CONFIG_NVRAM is not set
+# CONFIG_R3964 is not set
+# CONFIG_RAW_DRIVER is not set
+# CONFIG_TCG_TPM is not set
+CONFIG_I2C=y
+CONFIG_I2C_BOARDINFO=y
+CONFIG_I2C_CHARDEV=y
+CONFIG_I2C_HELPER_AUTO=y
+
+#
+# I2C Hardware Bus support
+#
+
+#
+# I2C system bus drivers (mostly embedded / system-on-chip)
+#
+# CONFIG_I2C_GPIO is not set
+# CONFIG_I2C_OCORES is not set
+CONFIG_I2C_S3C2410=y
+# CONFIG_I2C_SIMTEC is not set
+
+#
+# External I2C/SMBus adapter drivers
+#
+# CONFIG_I2C_PARPORT_LIGHT is not set
+# CONFIG_I2C_TAOS_EVM is not set
+# CONFIG_I2C_TINY_USB is not set
+
+#
+# Other I2C/SMBus bus drivers
+#
+# CONFIG_I2C_PCA_PLATFORM is not set
+# CONFIG_I2C_STUB is not set
+
+#
+# Miscellaneous I2C Chip support
+#
+# CONFIG_DS1682 is not set
+# CONFIG_AT24 is not set
+# CONFIG_SENSORS_EEPROM is not set
+# CONFIG_SENSORS_PCF50606 is not set
+# CONFIG_SENSORS_PCF8574 is not set
+# CONFIG_PCF8575 is not set
+# CONFIG_SENSORS_PCA9539 is not set
+# CONFIG_SENSORS_PCF8591 is not set
+# CONFIG_SENSORS_MAX6875 is not set
+# CONFIG_SENSORS_TSL2550 is not set
+CONFIG_PCA9632=y
+# 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
+CONFIG_SPI=y
+# CONFIG_SPI_DEBUG is not set
+CONFIG_SPI_MASTER=y
+
+#
+# SPI Master Controller Drivers
+#
+CONFIG_SPI_BITBANG=y
+CONFIG_SPI_GPIO=y
+
+#
+# SPI Protocol Masters
+#
+# CONFIG_SPI_SPIDEV is not set
+# CONFIG_SPI_TLE62X0 is not set
+CONFIG_SPI_S3C64XX_GPIO=y
+CONFIG_ARCH_REQUIRE_GPIOLIB=y
+CONFIG_GPIOLIB=y
+# CONFIG_DEBUG_GPIO is not set
+CONFIG_GPIO_SYSFS=y
+
+#
+# Memory mapped GPIO expanders:
+#
+
+#
+# I2C GPIO expanders:
+#
+# CONFIG_GPIO_MAX732X is not set
+# CONFIG_GPIO_PCA953X is not set
+# CONFIG_GPIO_PCF857X is not set
+
+#
+# PCI GPIO expanders:
+#
+
+#
+# SPI GPIO expanders:
+#
+# CONFIG_GPIO_MAX7301 is not set
+# CONFIG_GPIO_MCP23S08 is not set
+# CONFIG_W1 is not set
+CONFIG_POWER_SUPPLY=y
+# CONFIG_POWER_SUPPLY_DEBUG is not set
+# CONFIG_PDA_POWER is not set
+# CONFIG_APM_POWER is not set
+# CONFIG_BATTERY_DS2760 is not set
+# CONFIG_BATTERY_BQ27x00 is not set
+CONFIG_CHARGER_PCF50633=y
+CONFIG_BATTERY_BQ27000_HDQ=y
+CONFIG_HDQ_GPIO_BITBANG=y
+# CONFIG_BATTERY_GTA01 is not set
+CONFIG_HWMON=y
+# CONFIG_HWMON_VID is not set
+# CONFIG_SENSORS_AD7414 is not set
+# CONFIG_SENSORS_AD7418 is not set
+# CONFIG_SENSORS_ADCXX is not set
+# CONFIG_SENSORS_ADM1021 is not set
+# CONFIG_SENSORS_ADM1025 is not set
+# CONFIG_SENSORS_ADM1026 is not set
+# CONFIG_SENSORS_ADM1029 is not set
+# CONFIG_SENSORS_ADM1031 is not set
+# CONFIG_SENSORS_ADM9240 is not set
+# CONFIG_SENSORS_ADT7462 is not set
+# CONFIG_SENSORS_ADT7470 is not set
+# CONFIG_SENSORS_ADT7473 is not set
+# CONFIG_SENSORS_ADT7475 is not set
+# CONFIG_SENSORS_ATXP1 is not set
+# CONFIG_SENSORS_DS1621 is not set
+# CONFIG_SENSORS_F71805F is not set
+# CONFIG_SENSORS_F71882FG is not set
+# CONFIG_SENSORS_F75375S is not set
+# CONFIG_SENSORS_GL518SM is not set
+# CONFIG_SENSORS_GL520SM is not set
+# CONFIG_SENSORS_IT87 is not set
+# CONFIG_SENSORS_LM63 is not set
+# CONFIG_SENSORS_LM70 is not set
+# CONFIG_SENSORS_LM75 is not set
+# CONFIG_SENSORS_LM77 is not set
+# CONFIG_SENSORS_LM78 is not set
+# CONFIG_SENSORS_LM80 is not set
+# CONFIG_SENSORS_LM83 is not set
+# CONFIG_SENSORS_LM85 is not set
+# CONFIG_SENSORS_LM87 is not set
+# CONFIG_SENSORS_LM90 is not set
+# CONFIG_SENSORS_LM92 is not set
+# CONFIG_SENSORS_LM93 is not set
+# CONFIG_SENSORS_LTC4245 is not set
+# CONFIG_SENSORS_MAX1111 is not set
+# CONFIG_SENSORS_MAX1619 is not set
+# CONFIG_SENSORS_MAX6650 is not set
+# CONFIG_SENSORS_PC87360 is not set
+# CONFIG_SENSORS_PC87427 is not set
+# CONFIG_SENSORS_DME1737 is not set
+# CONFIG_SENSORS_SMSC47M1 is not set
+# CONFIG_SENSORS_SMSC47M192 is not set
+# CONFIG_SENSORS_SMSC47B397 is not set
+# CONFIG_SENSORS_ADS7828 is not set
+# CONFIG_SENSORS_THMC50 is not set
+# CONFIG_SENSORS_VT1211 is not set
+# CONFIG_SENSORS_W83781D is not set
+# CONFIG_SENSORS_W83791D is not set
+# CONFIG_SENSORS_W83792D is not set
+# CONFIG_SENSORS_W83793 is not set
+# CONFIG_SENSORS_W83L785TS is not set
+# CONFIG_SENSORS_W83L786NG is not set
+# CONFIG_SENSORS_W83627HF is not set
+# CONFIG_SENSORS_W83627EHF is not set
+# CONFIG_HWMON_DEBUG_CHIP is not set
+# CONFIG_THERMAL is not set
+# CONFIG_THERMAL_HWMON is not set
+# CONFIG_WATCHDOG is not set
+CONFIG_SSB_POSSIBLE=y
+
+#
+# Sonics Silicon Backplane
+#
+# CONFIG_SSB is not set
+
+#
+# Multifunction device drivers
+#
+# CONFIG_MFD_CORE is not set
+# CONFIG_MFD_SM501 is not set
+# CONFIG_MFD_ASIC3 is not set
+# CONFIG_HTC_EGPIO is not set
+# CONFIG_HTC_PASIC3 is not set
+# CONFIG_TPS65010 is not set
+# CONFIG_TWL4030_CORE is not set
+# CONFIG_MFD_TMIO is not set
+# CONFIG_MFD_T7L66XB is not set
+# CONFIG_MFD_TC6387XB is not set
+# CONFIG_MFD_TC6393XB is not set
+# CONFIG_PMIC_DA903X is not set
+# CONFIG_MFD_WM8400 is not set
+# CONFIG_MFD_WM8350_I2C is not set
+CONFIG_MFD_PCF50633=y
+CONFIG_PCF50633_ADC=y
+CONFIG_PCF50633_GPIO=y
+# CONFIG_MFD_PCF50606 is not set
+# CONFIG_MFD_GLAMO is not set
+
+#
+# Multimedia devices
+#
+
+#
+# Multimedia core support
+#
+# CONFIG_VIDEO_DEV is not set
+# CONFIG_DVB_CORE is not set
+# CONFIG_VIDEO_MEDIA is not set
+
+#
+# Multimedia drivers
+#
+# CONFIG_DAB is not set
+
+#
+# Graphics support
+#
+# CONFIG_VGASTATE is not set
+# CONFIG_VIDEO_OUTPUT_CONTROL is not set
+CONFIG_FB=y
+# CONFIG_FIRMWARE_EDID is not set
+# CONFIG_FB_DDC is not set
+# CONFIG_FB_BOOT_VESA_SUPPORT is not set
+CONFIG_FB_CFB_FILLRECT=y
+CONFIG_FB_CFB_COPYAREA=y
+CONFIG_FB_CFB_IMAGEBLIT=y
+# CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set
+# CONFIG_FB_SYS_FILLRECT is not set
+# CONFIG_FB_SYS_COPYAREA is not set
+# CONFIG_FB_SYS_IMAGEBLIT is not set
+# CONFIG_FB_FOREIGN_ENDIAN is not set
+# CONFIG_FB_SYS_FOPS is not set
+# 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_S1D13XXX is not set
+CONFIG_FB_S3C=y
+# CONFIG_FB_S3C_DEBUG_REGWRITE is not set
+# CONFIG_FB_VIRTUAL is not set
+# CONFIG_FB_METRONOME is not set
+# CONFIG_FB_MB862XX is not set
+CONFIG_BACKLIGHT_LCD_SUPPORT=y
+CONFIG_LCD_CLASS_DEVICE=y
+# CONFIG_LCD_LTV350QV is not set
+# CONFIG_LCD_ILI9320 is not set
+# CONFIG_LCD_TDO24M is not set
+# CONFIG_LCD_VGG2432A4 is not set
+CONFIG_LCD_PLATFORM=y
+CONFIG_BACKLIGHT_CLASS_DEVICE=y
+CONFIG_BACKLIGHT_GENERIC=y
+
+#
+# Display device support
+#
+# CONFIG_DISPLAY_SUPPORT is not set
+# CONFIG_DISPLAY_JBT6K74 is not set
+CONFIG_DISPLAY_L1K002=y
+
+#
+# Console display driver support
+#
+# CONFIG_VGA_CONSOLE is not set
+CONFIG_DUMMY_CONSOLE=y
+CONFIG_FRAMEBUFFER_CONSOLE=y
+CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
+CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y
+CONFIG_FONTS=y
+CONFIG_FONT_8x8=y
+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 is not set
+# CONFIG_FONT_10x18 is not set
+CONFIG_LOGO=y
+CONFIG_LOGO_LINUX_MONO=y
+CONFIG_LOGO_LINUX_VGA16=y
+# CONFIG_LOGO_LINUX_CLUT224 is not set
+CONFIG_SOUND=y
+# CONFIG_SOUND_OSS_CORE is not set
+CONFIG_SND=y
+CONFIG_SND_TIMER=y
+CONFIG_SND_PCM=y
+# CONFIG_SND_SEQUENCER is not set
+# CONFIG_SND_MIXER_OSS is not set
+# CONFIG_SND_PCM_OSS is not set
+# CONFIG_SND_DYNAMIC_MINORS is not set
+CONFIG_SND_SUPPORT_OLD_API=y
+CONFIG_SND_VERBOSE_PROCFS=y
+# CONFIG_SND_VERBOSE_PRINTK is not set
+# CONFIG_SND_DEBUG is not set
+CONFIG_SND_DRIVERS=y
+# CONFIG_SND_DUMMY is not set
+# CONFIG_SND_MTPAV is not set
+# CONFIG_SND_SERIAL_U16550 is not set
+# CONFIG_SND_MPU401 is not set
+CONFIG_SND_ARM=y
+CONFIG_SND_SPI=y
+CONFIG_SND_USB=y
+# CONFIG_SND_USB_AUDIO is not set
+# CONFIG_SND_USB_CAIAQ is not set
+CONFIG_SND_SOC=y
+CONFIG_SND_S3C24XX_SOC=y
+# CONFIG_SND_S3C24XX_SOC_LN2440SBC_ALC650 is not set
+# CONFIG_SND_S3C24XX_SOC_S3C24XX_UDA134X is not set
+# CONFIG_SND_S3C64XX_SOC_SMDK6410_WM8731 is not set
+CONFIG_SND_SOC_I2C_AND_SPI=y
+# CONFIG_SND_SOC_ALL_CODECS is not set
+# CONFIG_SOUND_PRIME is not set
+CONFIG_HID_SUPPORT=y
+CONFIG_HID=y
+CONFIG_HID_DEBUG=y
+# CONFIG_HIDRAW is not set
+
+#
+# USB Input Devices
+#
+CONFIG_USB_HID=y
+# CONFIG_HID_PID is not set
+# CONFIG_USB_HIDDEV is not set
+
+#
+# Special HID drivers
+#
+# CONFIG_HID_COMPAT is not set
+CONFIG_HID_A4TECH=y
+CONFIG_HID_APPLE=y
+CONFIG_HID_BELKIN=y
+CONFIG_HID_CHERRY=y
+CONFIG_HID_CHICONY=y
+CONFIG_HID_CYPRESS=y
+CONFIG_HID_EZKEY=y
+CONFIG_HID_GYRATION=y
+CONFIG_HID_LOGITECH=y
+# CONFIG_LOGITECH_FF is not set
+# CONFIG_LOGIRUMBLEPAD2_FF is not set
+CONFIG_HID_MICROSOFT=y
+CONFIG_HID_MONTEREY=y
+CONFIG_HID_NTRIG=y
+CONFIG_HID_PANTHERLORD=y
+# CONFIG_PANTHERLORD_FF is not set
+CONFIG_HID_PETALYNX=y
+CONFIG_HID_SAMSUNG=y
+CONFIG_HID_SONY=y
+CONFIG_HID_SUNPLUS=y
+# CONFIG_GREENASIA_FF is not set
+CONFIG_HID_TOPSEED=y
+# CONFIG_THRUSTMASTER_FF is not set
+# CONFIG_ZEROPLUS_FF is not set
+CONFIG_USB_SUPPORT=y
+CONFIG_USB_ARCH_HAS_HCD=y
+# CONFIG_USB_ARCH_HAS_OHCI is not set
+# CONFIG_USB_ARCH_HAS_EHCI is not set
+CONFIG_USB=y
+# CONFIG_USB_DEBUG is not set
+CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
+
+#
+# Miscellaneous USB options
+#
+# CONFIG_USB_DEVICEFS is not set
+CONFIG_USB_DEVICE_CLASS=y
+# CONFIG_USB_DYNAMIC_MINORS is not set
+# CONFIG_USB_SUSPEND is not set
+# CONFIG_USB_OTG is not set
+CONFIG_USB_MON=y
+# CONFIG_USB_WUSB is not set
+# CONFIG_USB_WUSB_CBAF is not set
+
+#
+# USB Host Controller Drivers
+#
+# CONFIG_USB_C67X00_HCD is not set
+# CONFIG_USB_OXU210HP_HCD is not set
+# CONFIG_USB_ISP116X_HCD is not set
+# CONFIG_USB_SL811_HCD is not set
+# CONFIG_USB_R8A66597_HCD is not set
+# CONFIG_USB_HWA_HCD is not set
+# CONFIG_USB_MUSB_HDRC is not set
+# CONFIG_USB_GADGET_MUSB_HDRC is not set
+
+#
+# USB Device Class drivers
+#
+# CONFIG_USB_ACM is not set
+# CONFIG_USB_PRINTER is not set
+# CONFIG_USB_WDM is not set
+# CONFIG_USB_TMC is not set
+
+#
+# NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may also be needed;
+#
+
+#
+# see USB_STORAGE Help for more information
+#
+# CONFIG_USB_LIBUSUAL is not set
+
+#
+# USB Imaging devices
+#
+# CONFIG_USB_MDC800 is not set
+
+#
+# USB port drivers
+#
+# CONFIG_USB_SERIAL 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_SEVSEG 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_LD is not set
+# CONFIG_USB_TRANCEVIBRATOR is not set
+# CONFIG_USB_IOWARRIOR is not set
+# CONFIG_USB_ISIGHTFW is not set
+# CONFIG_USB_VST is not set
+CONFIG_USB_GADGET=y
+# CONFIG_USB_GADGET_DEBUG is not set
+# CONFIG_USB_GADGET_DEBUG_FILES is not set
+CONFIG_USB_GADGET_VBUS_DRAW=500
+CONFIG_USB_GADGET_SELECTED=y
+# CONFIG_USB_GADGET_AT91 is not set
+# CONFIG_USB_GADGET_ATMEL_USBA is not set
+# CONFIG_USB_GADGET_FSL_USB2 is not set
+# CONFIG_USB_GADGET_LH7A40X is not set
+# CONFIG_USB_GADGET_OMAP is not set
+# CONFIG_USB_GADGET_PXA25X is not set
+# CONFIG_USB_GADGET_PXA27X is not set
+# CONFIG_USB_GADGET_S3C2410 is not set
+CONFIG_USB_GADGET_S3C_OTGD_HS=y
+# CONFIG_USB_GADGET_IMX is not set
+# CONFIG_USB_GADGET_M66592 is not set
+# CONFIG_USB_GADGET_AMD5536UDC is not set
+# CONFIG_USB_GADGET_FSL_QE is not set
+# CONFIG_USB_GADGET_CI13XXX is not set
+# CONFIG_USB_GADGET_NET2280 is not set
+# CONFIG_USB_GADGET_GOKU is not set
+# CONFIG_USB_GADGET_DUMMY_HCD is not set
+CONFIG_USB_GADGET_DUALSPEED=y
+# CONFIG_USB_ZERO is not set
+CONFIG_USB_ETH=y
+CONFIG_USB_ETH_RNDIS=y
+# CONFIG_USB_GADGETFS is not set
+# CONFIG_USB_FILE_STORAGE is not set
+# CONFIG_USB_G_SERIAL is not set
+# CONFIG_USB_MIDI_GADGET is not set
+# CONFIG_USB_G_PRINTER is not set
+# CONFIG_USB_CDC_COMPOSITE is not set
+
+#
+# OTG and related infrastructure
+#
+# CONFIG_USB_GPIO_VBUS is not set
+# CONFIG_AR6000_WLAN is not set
+CONFIG_MMC=y
+# CONFIG_MMC_DEBUG is not set
+CONFIG_MMC_UNSAFE_RESUME=y
+
+#
+# MMC/SD/SDIO Card Drivers
+#
+CONFIG_MMC_BLOCK=y
+CONFIG_MMC_BLOCK_BOUNCE=y
+CONFIG_SDIO_UART=y
+# CONFIG_MMC_TEST is not set
+
+#
+# MMC/SD/SDIO Host Controller Drivers
+#
+CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_S3C=y
+# CONFIG_MMC_SPI is not set
+# CONFIG_MEMSTICK is not set
+# CONFIG_ACCESSIBILITY is not set
+CONFIG_NEW_LEDS=y
+# CONFIG_LEDS_CLASS is not set
+
+#
+# LED drivers
+#
+
+#
+# LED Triggers
+#
+CONFIG_LEDS_TRIGGERS=y
+# CONFIG_LEDS_TRIGGER_TIMER is not set
+# CONFIG_LEDS_TRIGGER_HEARTBEAT is not set
+# CONFIG_LEDS_TRIGGER_BACKLIGHT is not set
+# CONFIG_LEDS_TRIGGER_DEFAULT_ON is not set
+CONFIG_LEDS_TRIGGER_NETDEV=y
+CONFIG_RTC_LIB=y
+CONFIG_RTC_CLASS=y
+CONFIG_RTC_HCTOSYS=y
+CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
+# 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_DS1374 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
+# CONFIG_RTC_DRV_M41T80 is not set
+# CONFIG_RTC_DRV_S35390A is not set
+# CONFIG_RTC_DRV_FM3130 is not set
+# CONFIG_RTC_DRV_RX8581 is not set
+
+#
+# SPI RTC drivers
+#
+# CONFIG_RTC_DRV_M41T94 is not set
+# CONFIG_RTC_DRV_DS1305 is not set
+# CONFIG_RTC_DRV_DS1390 is not set
+# CONFIG_RTC_DRV_MAX6902 is not set
+# CONFIG_RTC_DRV_R9701 is not set
+# CONFIG_RTC_DRV_RS5C348 is not set
+# CONFIG_RTC_DRV_DS3234 is not set
+
+#
+# Platform RTC drivers
+#
+# CONFIG_RTC_DRV_CMOS is not set
+# CONFIG_RTC_DRV_DS1286 is not set
+# CONFIG_RTC_DRV_DS1511 is not set
+# CONFIG_RTC_DRV_DS1553 is not set
+# CONFIG_RTC_DRV_DS1742 is not set
+# CONFIG_RTC_DRV_STK17TA8 is not set
+# CONFIG_RTC_DRV_M48T86 is not set
+# CONFIG_RTC_DRV_M48T35 is not set
+# CONFIG_RTC_DRV_M48T59 is not set
+# CONFIG_RTC_DRV_BQ4802 is not set
+# CONFIG_RTC_DRV_V3020 is not set
+CONFIG_RTC_DRV_PCF50633=y
+
+#
+# on-CPU RTC drivers
+#
+# CONFIG_DMADEVICES is not set
+CONFIG_REGULATOR=y
+# CONFIG_REGULATOR_DEBUG is not set
+# CONFIG_REGULATOR_FIXED_VOLTAGE is not set
+# CONFIG_REGULATOR_VIRTUAL_CONSUMER is not set
+# CONFIG_REGULATOR_BQ24022 is not set
+CONFIG_REGULATOR_PCF50633=y
+# CONFIG_UIO is not set
+# CONFIG_STAGING is not set
+
+#
+# File systems
+#
+CONFIG_EXT2_FS=y
+# CONFIG_EXT2_FS_XATTR is not set
+# CONFIG_EXT2_FS_XIP is not set
+CONFIG_EXT3_FS=y
+CONFIG_EXT3_FS_XATTR=y
+CONFIG_EXT3_FS_POSIX_ACL=y
+CONFIG_EXT3_FS_SECURITY=y
+# CONFIG_EXT4_FS is not set
+CONFIG_JBD=y
+CONFIG_FS_MBCACHE=y
+# CONFIG_REISERFS_FS is not set
+# CONFIG_JFS_FS is not set
+CONFIG_FS_POSIX_ACL=y
+CONFIG_FILE_LOCKING=y
+# CONFIG_XFS_FS is not set
+# CONFIG_GFS2_FS is not set
+# CONFIG_OCFS2_FS is not set
+# CONFIG_BTRFS_FS is not set
+CONFIG_DNOTIFY=y
+CONFIG_INOTIFY=y
+CONFIG_INOTIFY_USER=y
+# CONFIG_QUOTA is not set
+# CONFIG_AUTOFS_FS is not set
+# CONFIG_AUTOFS4_FS is not set
+# CONFIG_FUSE_FS is not set
+CONFIG_GENERIC_ACL=y
+
+#
+# CD-ROM/DVD Filesystems
+#
+# CONFIG_ISO9660_FS is not set
+# CONFIG_UDF_FS is not set
+
+#
+# DOS/FAT/NT Filesystems
+#
+CONFIG_FAT_FS=y
+# CONFIG_MSDOS_FS is not set
+CONFIG_VFAT_FS=y
+CONFIG_FAT_DEFAULT_CODEPAGE=437
+CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
+# CONFIG_NTFS_FS is not set
+
+#
+# Pseudo filesystems
+#
+CONFIG_PROC_FS=y
+CONFIG_PROC_SYSCTL=y
+CONFIG_PROC_PAGE_MONITOR=y
+CONFIG_SYSFS=y
+CONFIG_TMPFS=y
+CONFIG_TMPFS_POSIX_ACL=y
+# CONFIG_HUGETLB_PAGE is not set
+# CONFIG_CONFIGFS_FS is not set
+CONFIG_MISC_FILESYSTEMS=y
+# CONFIG_ADFS_FS is not set
+# CONFIG_AFFS_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 is not set
+CONFIG_JFFS2_SUMMARY=y
+# CONFIG_JFFS2_FS_XATTR is not set
+# CONFIG_JFFS2_COMPRESSION_OPTIONS is not set
+CONFIG_JFFS2_ZLIB=y
+# CONFIG_JFFS2_LZO is not set
+CONFIG_JFFS2_RTIME=y
+# CONFIG_JFFS2_RUBIN is not set
+CONFIG_CRAMFS=y
+CONFIG_SQUASHFS=m
+# CONFIG_SQUASHFS_EMBEDDED is not set
+CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3
+# CONFIG_VXFS_FS is not set
+# CONFIG_MINIX_FS is not set
+# CONFIG_OMFS_FS is not set
+# CONFIG_HPFS_FS is not set
+# CONFIG_QNX4FS_FS is not set
+CONFIG_ROMFS_FS=y
+# CONFIG_SYSV_FS is not set
+# CONFIG_UFS_FS is not set
+CONFIG_NETWORK_FILESYSTEMS=y
+# CONFIG_NFS_FS is not set
+# CONFIG_NFSD is not set
+# 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
+
+#
+# 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
+CONFIG_NLS=y
+CONFIG_NLS_DEFAULT="iso8859-1"
+CONFIG_NLS_CODEPAGE_437=y
+# CONFIG_NLS_CODEPAGE_737 is not set
+# CONFIG_NLS_CODEPAGE_775 is not set
+# CONFIG_NLS_CODEPAGE_850 is not set
+# CONFIG_NLS_CODEPAGE_852 is not set
+# CONFIG_NLS_CODEPAGE_855 is not set
+# CONFIG_NLS_CODEPAGE_857 is not set
+# CONFIG_NLS_CODEPAGE_860 is not set
+# CONFIG_NLS_CODEPAGE_861 is not set
+# CONFIG_NLS_CODEPAGE_862 is not set
+# CONFIG_NLS_CODEPAGE_863 is not set
+# CONFIG_NLS_CODEPAGE_864 is not set
+# CONFIG_NLS_CODEPAGE_865 is not set
+# CONFIG_NLS_CODEPAGE_866 is not set
+# CONFIG_NLS_CODEPAGE_869 is not set
+# CONFIG_NLS_CODEPAGE_936 is not set
+# CONFIG_NLS_CODEPAGE_950 is not set
+# CONFIG_NLS_CODEPAGE_932 is not set
+# CONFIG_NLS_CODEPAGE_949 is not set
+# CONFIG_NLS_CODEPAGE_874 is not set
+# CONFIG_NLS_ISO8859_8 is not set
+# CONFIG_NLS_CODEPAGE_1250 is not set
+# CONFIG_NLS_CODEPAGE_1251 is not set
+# CONFIG_NLS_ASCII is not set
+CONFIG_NLS_ISO8859_1=y
+# CONFIG_NLS_ISO8859_2 is not set
+# CONFIG_NLS_ISO8859_3 is not set
+# CONFIG_NLS_ISO8859_4 is not set
+# CONFIG_NLS_ISO8859_5 is not set
+# CONFIG_NLS_ISO8859_6 is not set
+# CONFIG_NLS_ISO8859_7 is not set
+# CONFIG_NLS_ISO8859_9 is not set
+# CONFIG_NLS_ISO8859_13 is not set
+# CONFIG_NLS_ISO8859_14 is not set
+# CONFIG_NLS_ISO8859_15 is not set
+# CONFIG_NLS_KOI8_R is not set
+# CONFIG_NLS_KOI8_U is not set
+CONFIG_NLS_UTF8=y
+# CONFIG_DLM is not set
+
+#
+# Kernel hacking
+#
+CONFIG_PRINTK_TIME=y
+CONFIG_ENABLE_WARN_DEPRECATED=y
+CONFIG_ENABLE_MUST_CHECK=y
+CONFIG_FRAME_WARN=1024
+CONFIG_MAGIC_SYSRQ=y
+# CONFIG_UNUSED_SYMBOLS is not set
+# CONFIG_DEBUG_FS is not set
+# CONFIG_HEADERS_CHECK is not set
+CONFIG_DEBUG_KERNEL=y
+# CONFIG_DEBUG_SHIRQ is not set
+CONFIG_DETECT_SOFTLOCKUP=y
+# CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set
+CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0
+CONFIG_SCHED_DEBUG=y
+# CONFIG_SCHEDSTATS is not set
+# CONFIG_TIMER_STATS is not set
+# CONFIG_DEBUG_OBJECTS is not set
+# CONFIG_SLUB_DEBUG_ON is not set
+# CONFIG_SLUB_STATS is not set
+CONFIG_DEBUG_RT_MUTEXES=y
+CONFIG_DEBUG_PI_LIST=y
+# CONFIG_RT_MUTEX_TESTER is not set
+CONFIG_DEBUG_SPINLOCK=y
+CONFIG_DEBUG_MUTEXES=y
+# CONFIG_DEBUG_LOCK_ALLOC is not set
+# CONFIG_PROVE_LOCKING is not set
+# CONFIG_LOCK_STAT 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=y
+CONFIG_DEBUG_INFO=y
+# CONFIG_DEBUG_VM is not set
+# CONFIG_DEBUG_WRITECOUNT is not set
+CONFIG_DEBUG_MEMORY_INIT=y
+# CONFIG_DEBUG_LIST is not set
+# CONFIG_DEBUG_SG is not set
+# CONFIG_DEBUG_NOTIFIERS is not set
+CONFIG_FRAME_POINTER=y
+# CONFIG_BOOT_PRINTK_DELAY is not set
+# CONFIG_RCU_TORTURE_TEST is not set
+# CONFIG_RCU_CPU_STALL_DETECTOR is not set
+# CONFIG_BACKTRACE_SELF_TEST is not set
+# CONFIG_DEBUG_BLOCK_EXT_DEVT is not set
+# CONFIG_FAULT_INJECTION is not set
+# CONFIG_LATENCYTOP is not set
+CONFIG_SYSCTL_SYSCALL_CHECK=y
+CONFIG_HAVE_FUNCTION_TRACER=y
+
+#
+# Tracers
+#
+# CONFIG_FUNCTION_TRACER is not set
+# CONFIG_SCHED_TRACER is not set
+# CONFIG_CONTEXT_SWITCH_TRACER is not set
+# CONFIG_BOOT_TRACER is not set
+# CONFIG_TRACE_BRANCH_PROFILING is not set
+# CONFIG_STACK_TRACER is not set
+# CONFIG_FIND_IRQ_BLOCKERS is not set
+CONFIG_DYNAMIC_PRINTK_DEBUG=y
+# CONFIG_SAMPLES is not set
+CONFIG_HAVE_ARCH_KGDB=y
+# CONFIG_KGDB is not set
+CONFIG_DEBUG_USER=y
+CONFIG_DEBUG_ERRORS=y
+# CONFIG_DEBUG_STACK_USAGE is not set
+CONFIG_DEBUG_LL=y
+# CONFIG_DEBUG_ICEDCC is not set
+CONFIG_DEBUG_S3C_PORT=y
+CONFIG_DEBUG_S3C_UART=3
+
+#
+# Security options
+#
+# CONFIG_KEYS is not set
+# CONFIG_SECURITY is not set
+# CONFIG_SECURITYFS is not set
+# CONFIG_SECURITY_FILE_CAPABILITIES is not set
+CONFIG_CRYPTO=y
+
+#
+# Crypto core or helper
+#
+# CONFIG_CRYPTO_FIPS is not set
+CONFIG_CRYPTO_ALGAPI=y
+CONFIG_CRYPTO_ALGAPI2=y
+CONFIG_CRYPTO_AEAD2=y
+CONFIG_CRYPTO_BLKCIPHER=y
+CONFIG_CRYPTO_BLKCIPHER2=y
+CONFIG_CRYPTO_HASH=y
+CONFIG_CRYPTO_HASH2=y
+CONFIG_CRYPTO_RNG2=y
+CONFIG_CRYPTO_MANAGER=y
+CONFIG_CRYPTO_MANAGER2=y
+# CONFIG_CRYPTO_GF128MUL is not set
+# CONFIG_CRYPTO_NULL is not set
+# CONFIG_CRYPTO_CRYPTD is not set
+# CONFIG_CRYPTO_AUTHENC is not set
+# CONFIG_CRYPTO_TEST is not set
+
+#
+# Authenticated Encryption with Associated Data
+#
+# CONFIG_CRYPTO_CCM is not set
+# CONFIG_CRYPTO_GCM is not set
+# CONFIG_CRYPTO_SEQIV is not set
+
+#
+# Block modes
+#
+# CONFIG_CRYPTO_CBC is not set
+# CONFIG_CRYPTO_CTR is not set
+# CONFIG_CRYPTO_CTS is not set
+CONFIG_CRYPTO_ECB=y
+# CONFIG_CRYPTO_LRW is not set
+# CONFIG_CRYPTO_PCBC is not set
+# CONFIG_CRYPTO_XTS is not set
+
+#
+# Hash modes
+#
+# CONFIG_CRYPTO_HMAC is not set
+# CONFIG_CRYPTO_XCBC is not set
+
+#
+# Digest
+#
+# CONFIG_CRYPTO_CRC32C is not set
+# CONFIG_CRYPTO_MD4 is not set
+CONFIG_CRYPTO_MD5=y
+# CONFIG_CRYPTO_MICHAEL_MIC is not set
+# CONFIG_CRYPTO_RMD128 is not set
+# CONFIG_CRYPTO_RMD160 is not set
+# CONFIG_CRYPTO_RMD256 is not set
+# CONFIG_CRYPTO_RMD320 is not set
+CONFIG_CRYPTO_SHA1=y
+# CONFIG_CRYPTO_SHA256 is not set
+# CONFIG_CRYPTO_SHA512 is not set
+# CONFIG_CRYPTO_TGR192 is not set
+# CONFIG_CRYPTO_WP512 is not set
+
+#
+# Ciphers
+#
+CONFIG_CRYPTO_AES=y
+# CONFIG_CRYPTO_ANUBIS is not set
+CONFIG_CRYPTO_ARC4=y
+# CONFIG_CRYPTO_BLOWFISH is not set
+# CONFIG_CRYPTO_CAMELLIA is not set
+# CONFIG_CRYPTO_CAST5 is not set
+# CONFIG_CRYPTO_CAST6 is not set
+# CONFIG_CRYPTO_DES is not set
+# CONFIG_CRYPTO_FCRYPT is not set
+# CONFIG_CRYPTO_KHAZAD is not set
+# CONFIG_CRYPTO_SALSA20 is not set
+# CONFIG_CRYPTO_SEED is not set
+# CONFIG_CRYPTO_SERPENT is not set
+# CONFIG_CRYPTO_TEA is not set
+# CONFIG_CRYPTO_TWOFISH is not set
+
+#
+# Compression
+#
+# CONFIG_CRYPTO_DEFLATE is not set
+# CONFIG_CRYPTO_LZO is not set
+
+#
+# Random Number Generation
+#
+# CONFIG_CRYPTO_ANSI_CPRNG is not set
+CONFIG_CRYPTO_HW=y
+
+#
+# Library routines
+#
+CONFIG_BITREVERSE=y
+CONFIG_GENERIC_FIND_LAST_BIT=y
+CONFIG_CRC_CCITT=y
+# CONFIG_CRC16 is not set
+# CONFIG_CRC_T10DIF is not set
+# CONFIG_CRC_ITU_T is not set
+CONFIG_CRC32=y
+# CONFIG_CRC7 is not set
+# CONFIG_LIBCRC32C is not set
+CONFIG_ZLIB_INFLATE=y
+CONFIG_ZLIB_DEFLATE=y
+CONFIG_PLIST=y
+CONFIG_HAS_IOMEM=y
+CONFIG_HAS_DMA=y
index 08a06d7..bbe158a 100644 (file)
@@ -61,8 +61,8 @@ config SMDK6410_SD_CH1
 
 endchoice
 
-config MACH_OPENMOKO_GTA03
-        bool "Openmoko GTA03 Phone"
+config MACH_OM_3D7K
+        bool "Openmoko 3D7K Phone"
        select CPU_S3C6410
        select S3C_DEV_HSMMC
        select S3C_DEV_HSMMC1
@@ -78,5 +78,5 @@ config MACH_OPENMOKO_GTA03
        select FIQ
        select MACH_NEO1973
        help
-          Machine support for the Openmoko GTA03 Phone
+          Machine support for the Openmoko 3D7K Phone
 
index e9f30d4..d71ef0f 100644 (file)
@@ -21,6 +21,6 @@ obj-$(CONFIG_S3C6410_SETUP_SDHCI)     += setup-sdhci.o
 # machine support
 
 obj-$(CONFIG_MACH_SMDK6410)    += mach-smdk6410.o
-obj-$(CONFIG_MACH_OPENMOKO_GTA03)      += mach-om-gta03.o \
-                                          om-gta03-features.o
+obj-$(CONFIG_MACH_OM_3D7K)     += mach-om-3d7k.o \
+                                  om-3d7k-features.o
 
diff --git a/arch/arm/mach-s3c6410/include/mach/om-3d7k.h b/arch/arm/mach-s3c6410/include/mach/om-3d7k.h
new file mode 100644 (file)
index 0000000..1e8b164
--- /dev/null
@@ -0,0 +1,98 @@
+/*
+ * 3D7K GPIO Mappings
+ *
+ * (C) 2008 by Openmoko Inc.
+ * Author: Andy Green <andy@openmoko.com>
+ * All rights reserved.
+ *
+ * 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 _OM_3D7K_H
+#define _OM_3D7K_H
+
+#include <mach/gpio.h>
+#include <mach/irqs.h>
+#include <linux/mfd/pcf50633/core.h>
+
+extern struct pcf50633 *om_3d7k_pcf;
+
+/* ATAG_REVISION from bootloader */
+#define OM_3D7Kv1_SYSTEM_REV   0x00000001
+
+#define OM_3D7K_GPIO_VIBRATOR_ON       S3C64XX_GPF(13)
+#define OM_3D7K_GPIO_CLKOUT            S3C64XX_GPF(14)
+
+#define OM_3D7K_GPIO_ACCEL_MISO                S3C64XX_GPC(0)
+#define OM_3D7K_GPIO_ACCEL_CLK         S3C64XX_GPC(1)
+#define OM_3D7K_GPIO_ACCEL_MOSI                S3C64XX_GPC(2)
+
+#define OM_3D7K_GPIO_LCM_MISO          S3C64XX_GPC(4)
+#define OM_3D7K_GPIO_LCM_CLK           S3C64XX_GPC(5)
+#define OM_3D7K_GPIO_LCM_MOSI          S3C64XX_GPC(6)
+#define OM_3D7K_GPIO_LCM_CS            S3C64XX_GPC(7)
+
+#define OM_3D7K_GPIO_BTPCM_SHARED_SCLK S3C64XX_GPE(0)
+#define OM_3D7K_GPIO_BTPCM_SHARED_EXTCLK       S3C64XX_GPE(1)
+#define OM_3D7K_GPIO_BTPCM_SHARED_FSYNC        S3C64XX_GPE(2)
+#define OM_3D7K_GPIO_BTPCM_SHARED_SIN  S3C64XX_GPE(3)
+#define OM_3D7K_GPIO_BTPCM_SHARED_SOUT S3C64XX_GPE(4)
+
+#define OM_3D7K_GPIO_WLAN_RESET                S3C64XX_GPH(6)
+#define OM_3D7K_GPIO_HDQ               S3C64XX_GPH(7)
+#define OM_3D7K_GPIO_WLAN_PWRDN                S3C64XX_GPH(8)
+
+#define OM_3D7K_GPIO_VERSION2          S3C64XX_GPI(0)
+#define OM_3D7K_GPIO_VERSION1          S3C64XX_GPI(1)
+#define OM_3D7K_GPIO_VERSION0          S3C64XX_GPI(8)
+
+#define OM_3D7K_GPIO_NWLAN_POWER       S3C64XX_GPK(0)
+#define OM_3D7K_GPIO_MODEM_ON          S3C64XX_GPK(2)
+#define OM_3D7K_GPIO_LED_TRIG          S3C64XX_GPK(3)
+#define OM_3D7K_GPIO_LED_EN            S3C64XX_GPK(4)
+#define OM_3D7K_GPIO_LCM_RESET                 S3C64XX_GPK(6)
+
+#define OM_3D7K_GPIO_LCM_SD            S3C64XX_GPL(0)
+
+#define OM_3D7K_GPIO_TP_RESET          S3C64XX_GPM(0)
+#define OM_3D7K_GPIO_GPS_LNA_EN                S3C64XX_GPM(2)
+
+#define OM_3D7K_GPIO_USB_FLT           S3C64XX_GPM(4)
+#define OM_3D7K_GPIO_USB_OC            S3C64XX_GPM(5)
+
+#define OM_3D7K_GPIO_ACCEL_INT1                S3C64XX_GPN(0)
+#define OM_3D7K_GPIO_KEY_MINUS         S3C64XX_GPN(1)
+#define OM_3D7K_GPIO_KEY_PLUS          S3C64XX_GPN(2)
+#define OM_3D7K_GPIO_PWR_IND           S3C64XX_GPN(3)
+#define OM_3D7K_GPIO_PWR_IRQ           S3C64XX_GPN(4)
+#define OM_3D7K_GPIO_TOUCH             S3C64XX_GPN(5)
+#define OM_3D7K_GPIO_JACK_INSERT       S3C64XX_GPN(6)
+#define OM_3D7K_GPIO_GPS_INT           S3C64XX_GPN(7)
+#define OM_3D7K_GPIO_HOLD              S3C64XX_GPN(8)
+#define OM_3D7K_GPIO_WLAN_WAKEUP       S3C64XX_GPN(9)
+#define OM_3D7K_GPIO_ACCEL_INT2                S3C64XX_GPN(10)
+#define OM_3D7K_GPIO_IO1               S3C64XX_GPN(11)
+#define OM_3D7K_GPIO_NONKEYWAKE                S3C64XX_GPN(12)
+
+#define OM_3D7K_GPIO_N_MODEM_RESET     S3C64XX_GPO(1)
+
+#define OM_3D7K_IRQ_GSENSOR_1  S3C_EINT(0)
+#define OM_3D7K_IRQ_KEY_MINUS  S3C_EINT(1)
+#define OM_3D7K_IRQ_KEY_PLUS   S3C_EINT(2)
+#define OM_3D7K_IRQ_PWR_IND    S3C_EINT(3)
+#define OM_3D7K_IRQ_PMU                S3C_EINT(4)
+#define OM_3D7K_IRQ_TOUCH      S3C_EINT(5)
+#define OM_3D7K_IRQ_JACK_INSERT        S3C_EINT(6)
+#define OM_3D7K_IRQ_GPS_INT    S3C_EINT(7)
+#define OM_3D7K_IRQ_NHOLD      S3C_EINT(8)
+#define OM_3D7K_IRQ_WLAN_WAKEUP        S3C_EINT(9)
+#define OM_3D7K_IRQ_GSENSOR_2  S3C_EINT(10)
+#define OM_3D7K_IRQ_IO1                S3C_EINT(11)
+#define OM_3D7K_IRQ_NONKEYWAKE S3C_EINT(12)
+
+#define OM_3D7K_IRQ_LED        IRQ_EINT_GROUP(6, 9)
+
+#endif /* _OM_3D7K_H */
diff --git a/arch/arm/mach-s3c6410/include/mach/om-gta03.h b/arch/arm/mach-s3c6410/include/mach/om-gta03.h
deleted file mode 100644 (file)
index 541c675..0000000
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * GTA03 GPIO Mappings
- *
- * (C) 2008 by Openmoko Inc.
- * Author: Andy Green <andy@openmoko.com>
- * All rights reserved.
- *
- * 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 _OM_GTA03_H
-#define _OM_GTA03_H
-
-#include <mach/gpio.h>
-#include <mach/irqs.h>
-#include <linux/mfd/pcf50633/core.h>
-
-extern struct pcf50633 *om_gta03_pcf;
-
-/* ATAG_REVISION from bootloader */
-#define GTA03v1_SYSTEM_REV     0x00000001
-
-#define GTA03_GPIO_VIBRATOR_ON         S3C64XX_GPF(13)
-#define GTA03_GPIO_CLKOUT              S3C64XX_GPF(14)
-
-#define GTA03_GPIO_ACCEL_MISO          S3C64XX_GPC(0)
-#define GTA03_GPIO_ACCEL_CLK           S3C64XX_GPC(1)
-#define GTA03_GPIO_ACCEL_MOSI          S3C64XX_GPC(2)
-
-#define GTA03_GPIO_LCM_MISO            S3C64XX_GPC(4)
-#define GTA03_GPIO_LCM_CLK             S3C64XX_GPC(5)
-#define GTA03_GPIO_LCM_MOSI            S3C64XX_GPC(6)
-#define GTA03_GPIO_LCM_CS              S3C64XX_GPC(7)
-
-#define GTA03_GPIO_BTPCM_SHARED_SCLK   S3C64XX_GPE(0)
-#define GTA03_GPIO_BTPCM_SHARED_EXTCLK S3C64XX_GPE(1)
-#define GTA03_GPIO_BTPCM_SHARED_FSYNC  S3C64XX_GPE(2)
-#define GTA03_GPIO_BTPCM_SHARED_SIN    S3C64XX_GPE(3)
-#define GTA03_GPIO_BTPCM_SHARED_SOUT   S3C64XX_GPE(4)
-
-#define GTA03_GPIO_WLAN_RESET          S3C64XX_GPH(6)
-#define GTA03_GPIO_HDQ                 S3C64XX_GPH(7)
-#define GTA03_GPIO_WLAN_PWRDN          S3C64XX_GPH(8)
-
-#define GTA03_GPIO_VERSION2            S3C64XX_GPI(0)
-#define GTA03_GPIO_VERSION1            S3C64XX_GPI(1)
-#define GTA03_GPIO_VERSION0            S3C64XX_GPI(8)
-
-#define GTA03_GPIO_NWLAN_POWER         S3C64XX_GPK(0)
-#define GTA03_GPIO_MODEM_ON            S3C64XX_GPK(2)
-#define GTA03_GPIO_LED_TRIG            S3C64XX_GPK(3)
-#define GTA03_GPIO_LED_EN              S3C64XX_GPK(4)
-#define GTA03_GPIO_LCM_RESET           S3C64XX_GPK(6)
-
-#define GTA03_GPIO_LCM_SD              S3C64XX_GPL(0)
-
-#define GTA03_GPIO_TP_RESET            S3C64XX_GPM(0)
-#define GTA03_GPIO_GPS_LNA_EN          S3C64XX_GPM(2)
-
-#define GTA03_GPIO_USB_FLT             S3C64XX_GPM(4)
-#define GTA03_GPIO_USB_OC              S3C64XX_GPM(5)
-
-#define GTA03_GPIO_ACCEL_INT1          S3C64XX_GPN(0)
-#define GTA03_GPIO_KEY_MINUS           S3C64XX_GPN(1)
-#define GTA03_GPIO_KEY_PLUS            S3C64XX_GPN(2)
-#define GTA03_GPIO_PWR_IND             S3C64XX_GPN(3)
-#define GTA03_GPIO_PWR_IRQ             S3C64XX_GPN(4)
-#define GTA03_GPIO_TOUCH               S3C64XX_GPN(5)
-#define GTA03_GPIO_JACK_INSERT         S3C64XX_GPN(6)
-#define GTA03_GPIO_GPS_INT             S3C64XX_GPN(7)
-#define GTA03_GPIO_HOLD                        S3C64XX_GPN(8)
-#define GTA03_GPIO_WLAN_WAKEUP         S3C64XX_GPN(9)
-#define GTA03_GPIO_ACCEL_INT2          S3C64XX_GPN(10)
-#define GTA03_GPIO_IO1                 S3C64XX_GPN(11)
-#define GTA03_GPIO_NONKEYWAKE          S3C64XX_GPN(12)
-
-#define GTA03_GPIO_N_MODEM_RESET       S3C64XX_GPO(1)
-
-#define GTA03_IRQ_GSENSOR_1    S3C_EINT(0)
-#define GTA03_IRQ_KEY_MINUS    S3C_EINT(1)
-#define GTA03_IRQ_KEY_PLUS     S3C_EINT(2)
-#define GTA03_IRQ_PWR_IND      S3C_EINT(3)
-#define GTA03_IRQ_PMU          S3C_EINT(4)
-#define GTA03_IRQ_TOUCH                S3C_EINT(5)
-#define GTA03_IRQ_JACK_INSERT  S3C_EINT(6)
-#define GTA03_IRQ_GPS_INT      S3C_EINT(7)
-#define GTA03_IRQ_NHOLD                S3C_EINT(8)
-#define GTA03_IRQ_WLAN_WAKEUP  S3C_EINT(9)
-#define GTA03_IRQ_GSENSOR_2    S3C_EINT(10)
-#define GTA03_IRQ_IO1          S3C_EINT(11)
-#define GTA03_IRQ_NONKEYWAKE   S3C_EINT(12)
-
-#define GTA03_IRQ_LED          IRQ_EINT_GROUP(6, 9)
-
-#endif /* _OM_GTA03_H */
diff --git a/arch/arm/mach-s3c6410/mach-om-3d7k.c b/arch/arm/mach-s3c6410/mach-om-3d7k.c
new file mode 100644 (file)
index 0000000..6afd12e
--- /dev/null
@@ -0,0 +1,1069 @@
+/* linux/arch/arm/mach-s3c6410/mach-om-3d7k.c
+ *
+ * Copyright 2008 Openmoko, Inc.
+ * Andy Green <andy@openmoko.org>
+ *
+ * based on mach_smdk6410.c which is
+ *
+ * Copyright 2008 Openmoko, Inc.
+ * Copyright 2008 Simtec Electronics
+ *     Ben Dooks <ben@simtec.co.uk>
+ *     http://armlinux.simtec.co.uk/
+ *
+ * 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.
+ *
+*/
+
+#include <linux/kernel.h>
+#include <linux/types.h>
+#include <linux/interrupt.h>
+#include <linux/list.h>
+#include <linux/timer.h>
+#include <linux/init.h>
+#include <linux/serial_core.h>
+#include <linux/platform_device.h>
+#include <linux/io.h>
+#include <linux/i2c.h>
+#include <linux/fb.h>
+#include <linux/delay.h>
+#include <linux/lis302dl.h>
+#include <linux/lp5521.h>
+#include <linux/spi/spi_bitbang.h>
+#include <linux/l1k002.h>
+#include <linux/pcap7200.h>
+#include <linux/bq27000_battery.h>
+#include <linux/hdq.h>
+
+#include <video/platform_lcd.h>
+
+#include <asm/mach/arch.h>
+#include <asm/mach/map.h>
+#include <asm/mach/irq.h>
+
+#include <mach/hardware.h>
+#include <asm/hardware/vic.h>
+#include <asm/hardware/tzic-sp890.h>
+#include <mach/map.h>
+#include <mach/regs-fb.h>
+#include <mach/spi-gpio.h>
+
+#include <asm/irq.h>
+#include <asm/mach-types.h>
+#include <asm/fiq.h>
+
+#include <plat/regs-serial.h>
+#include <plat/regs-timer.h>
+#include <plat/regs-gpio.h>
+#include <plat/iic.h>
+#include <plat/fb.h>
+#include <plat/gpio-cfg.h>
+#include <plat/pm.h>
+#include <plat/pwm.h>
+
+#include <plat/s3c6410.h>
+#include <plat/clock.h>
+#include <plat/devs.h>
+#include <plat/cpu.h>
+#include <plat/tzic-sp890.h>
+
+/* #include <plat/udc.h> */
+#include <linux/i2c.h>
+#include <linux/backlight.h>
+#include <linux/regulator/machine.h>
+
+#include <mach/om-3d7k.h>
+
+#include <linux/mfd/pcf50633/core.h>
+#include <linux/mfd/pcf50633/mbc.h>
+#include <linux/mfd/pcf50633/adc.h>
+#include <linux/mfd/pcf50633/gpio.h>
+#include <linux/mfd/pcf50633/pmic.h>
+
+#include <plat/regs-usb-hs-otg.h>
+
+extern struct platform_device s3c_device_usbgadget;
+
+/* -------------------------------------------------------------------------------
+ * OM_3D7K FIQ related
+ *
+ * Calls into vibrator and hdq and based on the return values
+ * determines if we the FIQ source be kept alive
+ */
+
+#define DIVISOR_FROM_US(x) ((x) * 23)
+
+#ifdef CONFIG_HDQ_GPIO_BITBANG
+#define FIQ_DIVISOR_HDQ DIVISOR_FROM_US(20)
+extern int hdq_fiq_handler(void);
+#endif
+
+/* Global data related to our fiq source */
+static u32 om_3d7k_fiq_ack_mask;
+static u32 om_3d7k_fiq_mod_mask;
+static struct s3c2410_pwm om_3d7k_fiq_pwm_timer;
+static u16 om_3d7k_fiq_timer_index;
+static int om_3d7k_fiq_irq;
+
+/* Convinience defines */
+#define S3C6410_INTMSK (S3C_VA_VIC0 + VIC_INT_ENABLE)
+#define S3C6410_INTMOD (S3C_VA_VIC0 + VIC_INT_SELECT)
+
+
+
+static void om_3d7k_fiq_handler(void)
+{
+       u16 divisor = 0xffff;
+
+       /* Vibrator servicing */
+
+       /* disable further timer interrupts if nobody has any work
+        * or adjust rate according to who still has work
+        *
+        * CAUTION: it means forground code must disable FIQ around
+        * its own non-atomic S3C2410_INTMSK changes... not common
+        * thankfully and taken care of by the fiq-basis patch
+        */
+
+#ifdef CONFIG_HDQ_GPIO_BITBANG
+       if (hdq_fiq_handler())
+               divisor = FIQ_DIVISOR_HDQ;
+#endif
+
+       if (divisor == 0xffff) /* mask the fiq irq source */
+               __raw_writel((__raw_readl(S3C64XX_TINT_CSTAT) & 0x1f) & ~(1 << 3),
+                                                           S3C64XX_TINT_CSTAT);
+       else /* still working, maybe at a different rate */
+               __raw_writel(divisor, S3C2410_TCNTB(om_3d7k_fiq_timer_index));
+
+       __raw_writel((__raw_readl(S3C64XX_TINT_CSTAT) & 0x1f ) | 1 << 8 , S3C64XX_TINT_CSTAT);
+
+}
+
+static void om_3d7k_fiq_kick(void)
+{
+       unsigned long flags;
+       u32 tcon;
+       
+       /* we have to take care about FIQ because this modification is
+        * non-atomic, FIQ could come in after the read and before the
+        * writeback and its changes to the register would be lost
+        * (platform INTMSK mod code is taken care of already)
+        */
+       local_save_flags(flags);
+       local_fiq_disable();
+       /* allow FIQs to resume   */
+       __raw_writel((__raw_readl(S3C64XX_TINT_CSTAT)  & 0x1f)| 1 << 3,
+                                                           S3C64XX_TINT_CSTAT);
+
+       tcon = __raw_readl(S3C2410_TCON) & ~S3C2410_TCON_T3START; 
+       /* fake the timer to a count of 1 */
+       __raw_writel(1, S3C2410_TCNTB(om_3d7k_fiq_timer_index));
+       __raw_writel(tcon | S3C2410_TCON_T3MANUALUPD, S3C2410_TCON);
+       __raw_writel(tcon | S3C2410_TCON_T3MANUALUPD | S3C2410_TCON_T3START,
+                    S3C2410_TCON);
+       __raw_writel(tcon | S3C2410_TCON_T3START, S3C2410_TCON);
+       local_irq_restore(flags);
+}
+
+static int om_3d7k_fiq_enable(void)
+{
+       int irq_index_fiq = IRQ_TIMER3_VIC;
+       int rc = 0;
+
+       local_fiq_disable();
+
+       om_3d7k_fiq_irq = irq_index_fiq;
+       om_3d7k_fiq_ack_mask = 1 << 3;
+       om_3d7k_fiq_mod_mask = 1 << 27;
+       om_3d7k_fiq_timer_index = 3;
+
+       /* set up the timer to operate as a pwm device */
+
+       rc = s3c2410_pwm_init(&om_3d7k_fiq_pwm_timer);
+       if (rc)
+               goto bail;
+
+       om_3d7k_fiq_pwm_timer.timerid = PWM0 + om_3d7k_fiq_timer_index;
+       om_3d7k_fiq_pwm_timer.prescaler = ((6 - 1) / 2);
+       om_3d7k_fiq_pwm_timer.divider = S3C64XX_TCFG1_MUX_DIV2 << S3C2410_TCFG1_SHIFT(3);
+       /* default rate == ~32us */
+       om_3d7k_fiq_pwm_timer.counter = om_3d7k_fiq_pwm_timer.comparer = 3000;
+
+       rc = s3c2410_pwm_enable(&om_3d7k_fiq_pwm_timer);
+       if (rc)
+               goto bail;
+
+       /* let our selected interrupt be a magic FIQ interrupt */
+       __raw_writel(om_3d7k_fiq_mod_mask, S3C6410_INTMSK + 4);
+       __raw_writel(om_3d7k_fiq_mod_mask, S3C6410_INTMOD);
+       __raw_writel(om_3d7k_fiq_mod_mask, S3C6410_INTMSK);
+
+       __raw_writel(SP890_TZIC_UNLOCK_MAGIC, S3C64XX_VA_TZIC0_LOCK);
+       __raw_writel(om_3d7k_fiq_mod_mask, S3C64XX_VA_TZIC0_FIQENABLE);
+       __raw_writel(om_3d7k_fiq_mod_mask, S3C64XX_VA_TZIC0_INTSELECT);
+
+       s3c2410_pwm_start(&om_3d7k_fiq_pwm_timer);
+
+       /* it's ready to go as soon as we unmask the source in S3C2410_INTMSK */
+       local_fiq_enable();
+
+       set_fiq_c_handler(om_3d7k_fiq_handler);
+
+       if (rc < 0)
+               goto bail;
+
+       return 0;
+bail:
+       printk(KERN_ERR "Count not initialize FIQ for OM_3D7K %d \n", rc);
+       return rc;
+}
+
+static void om_3d7k_fiq_disable(void)
+{
+       __raw_writel(0, S3C6410_INTMOD);
+       local_fiq_disable();
+       om_3d7k_fiq_irq = 0; /* no active source interrupt now either */
+
+}
+/* -------------------- /OM_3D7K FIQ Handler ------------------------------------- */
+
+#define UCON S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK
+#define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB
+#define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE
+
+static struct s3c2410_uartcfg om_3d7k_uartcfgs[] __initdata = {
+       [0] = {
+               .hwport      = 0,
+               .flags       = 0,
+               .ucon        = 0x3c5,
+               .ulcon       = 0x03,
+               .ufcon       = 0x51,
+       },
+       [1] = {
+               .hwport      = 1,
+               .flags       = 0,
+               .ucon        = 0x3c5,
+               .ulcon       = 0x03,
+               .ufcon       = 0x51,
+       },
+       [2] = {
+               .hwport      = 2,
+               .flags       = 0,
+               .ucon        = 0x3c5,
+               .ulcon       = 0x03,
+               .ufcon       = 0x51,
+       },
+       [3] = {
+               .hwport      = 3,
+               .flags       = 0,
+               .ucon        = 0x3c5,
+               .ulcon       = 0x03,
+               .ufcon       = 0x51,
+       },
+};
+
+
+/*
+ * Situation is that Linux SPI can't work in an interrupt context, so we
+ * implement our own bitbang here.  Arbitration is needed because not only
+ * can this interrupt happen at any time even if foreground wants to use
+ * the bitbang API from Linux, but multiple motion sensors can be on the
+ * same SPI bus, and multiple interrupts can happen.
+ *
+ * Foreground / interrupt arbitration is okay because the interrupts are
+ * disabled around all the foreground SPI code.
+ *
+ * Interrupt / Interrupt arbitration is evidently needed, otherwise we
+ * lose edge-triggered service after a while due to the two sensors sharing
+ * the SPI bus having irqs at the same time eventually.
+ *
+ * Servicing is typ 75 - 100us at 400MHz.
+ */
+
+/* #define DEBUG_SPEW_MS */
+#define MG_PER_SAMPLE 18
+
+struct lis302dl_platform_data lis302_pdata;
+
+/*
+ * generic SPI RX and TX bitbang
+ * only call with interrupts off!
+ */
+
+static void __3d7k_lis302dl_bitbang(struct lis302dl_info *lis, u8 *tx,
+                                            int tx_bytes, u8 *rx, int rx_bytes)
+{
+       struct lis302dl_platform_data *pdata = lis->pdata;
+       int n;
+       u8 shifter = 0;
+
+       gpio_direction_output(pdata->pin_chip_select, 1);
+       gpio_direction_output(pdata->pin_clk, 1);
+       gpio_direction_output(pdata->pin_chip_select, 0);
+
+       /* send the register index, r/w and autoinc bits */
+       for (n = 0; n < (tx_bytes << 3); n++) {
+               if (!(n & 7))
+                       shifter = ~tx[n >> 3];
+               gpio_direction_output(pdata->pin_clk, 0);
+               gpio_direction_output(pdata->pin_mosi, !(shifter & 0x80));
+               gpio_direction_output(pdata->pin_clk, 1);
+               shifter <<= 1;
+       }
+
+       for (n = 0; n < (rx_bytes << 3); n++) { /* 8 bits each */
+               gpio_direction_output(pdata->pin_clk, 0);
+               shifter <<= 1;
+               if (gpio_direction_input(pdata->pin_miso))
+                       shifter |= 1;
+               if ((n & 7) == 7)
+                       rx[n >> 3] = shifter;
+               gpio_direction_output(pdata->pin_clk, 1);
+       }
+       gpio_direction_output(pdata->pin_chip_select, 1);
+}
+
+
+static int om_3d7k_lis302dl_bitbang_read_reg(struct lis302dl_info *lis, u8 reg)
+{
+       u8 data = 0xc0 | reg; /* read, autoincrement */
+       unsigned long flags;
+
+       local_irq_save(flags);
+
+       __3d7k_lis302dl_bitbang(lis, &data, 1, &data, 1);
+
+       local_irq_restore(flags);
+
+       return data;
+}
+
+static void om_3d7k_lis302dl_bitbang_write_reg(struct lis302dl_info *lis, u8 reg,
+                                                                        u8 val)
+{
+       u8 data[2] = { 0x00 | reg, val }; /* write, no autoincrement */
+       unsigned long flags;
+
+       local_irq_save(flags);
+
+       __3d7k_lis302dl_bitbang(lis, &data[0], 2, NULL, 0);
+
+       local_irq_restore(flags);
+
+}
+
+
+void om_3d7k_lis302dl_suspend_io(struct lis302dl_info *lis, int resume)
+{
+       struct lis302dl_platform_data *pdata = lis->pdata;
+
+       if (!resume) {
+                /*
+                * we don't want to power them with a high level
+                * because GSENSOR_3V3 is not up during suspend
+                */
+               gpio_direction_output(pdata->pin_chip_select, 0);
+               gpio_direction_output(pdata->pin_clk, 0);
+               gpio_direction_output(pdata->pin_mosi, 0);
+               s3c_gpio_setpull(pdata->pin_miso, S3C_GPIO_PULL_DOWN);
+
+               return;
+       }
+
+       /* back to normal */
+       gpio_direction_output(pdata->pin_chip_select, 1);
+       gpio_direction_output(pdata->pin_clk, 1);
+       s3c_gpio_setpull(pdata->pin_miso, S3C_GPIO_PULL_NONE);
+
+       s3c_gpio_cfgpin(pdata->pin_chip_select, S3C_GPIO_SFN(1));
+       s3c_gpio_cfgpin(pdata->pin_clk, S3C_GPIO_SFN(1));
+       s3c_gpio_cfgpin(pdata->pin_mosi, S3C_GPIO_SFN(1));
+       s3c_gpio_cfgpin(pdata->pin_miso, S3C_GPIO_SFN(0));
+
+}
+#if 0
+struct lis302dl_platform_data lis302_pdata = {
+               .name           = "lis302",
+               .pin_chip_select= S3C64XX_GPC(3), /* NC */
+               .pin_clk        = OM_3D7K_GPIO_ACCEL_CLK,
+               .pin_mosi       = OM_3D7K_GPIO_ACCEL_MOSI,
+               .pin_miso       = OM_3D7K_GPIO_ACCEL_MISO,
+               .interrupt      = OM_3D7K_IRQ_GSENSOR_1,
+               .open_drain     = 0,
+               .lis302dl_bitbang = __3d7k_lis302dl_bitbang,
+               .lis302dl_bitbang_reg_read = om_3d7k_lis302dl_bitbang_read_reg,
+               .lis302dl_bitbang_reg_write = om_3d7k_lis302dl_bitbang_write_reg,
+               .lis302dl_suspend_io = om_3d7k_lis302dl_suspend_io,
+};
+
+static struct platform_device s3c_device_spi_acc1 = {
+       .name             = "lis302dl",
+       .id               = 1,
+       .dev = {
+               .platform_data = &lis302_pdata,
+       },
+};
+
+#endif
+
+/* framebuffer and LCD setup. */
+
+/* GPF15 = LCD backlight control
+ * GPF13 => Panel power
+ * GPN5 = LCD nRESET signal
+ * PWM_TOUT1 => backlight brightness
+ */
+
+static void om_3d7k_lcd_power_set(struct plat_lcd_data *pd,
+                                  unsigned int power)
+{
+
+}
+
+static struct plat_lcd_data om_3d7k_lcd_power_data = {
+       .set_power      = om_3d7k_lcd_power_set,
+};
+
+static struct platform_device om_3d7k_lcd_powerdev = {
+       .name                   = "platform-lcd",
+       .dev.parent             = &s3c_device_fb.dev,
+       .dev.platform_data      = &om_3d7k_lcd_power_data,
+};
+
+static struct s3c_fb_pd_win om_3d7k_fb_win0 = {
+       /* this is to ensure we use win0 */
+       .win_mode       = {
+               .pixclock       = 40816,
+               .left_margin    = 8,
+               .right_margin   = 16,
+               .upper_margin   = 2,
+               .lower_margin   = 16,
+               .hsync_len      = 8,
+               .vsync_len      = 2,
+               .xres           = 480,
+               .yres           = 640,
+       },
+       .max_bpp        = 32,
+       .default_bpp    = 16,
+};
+
+static void om_3d7k_fb_gpio_setup(void)
+{
+       unsigned int gpio;
+
+       /* GPI0, GPI1, GPI8 are for hardware version contrl.
+        * They should be set as input in order to prevent
+        * current leaking
+        */
+       for (gpio = S3C64XX_GPI(2); gpio <= S3C64XX_GPI(15); gpio++) {
+               if (gpio != S3C64XX_GPI(8)) {
+                       s3c_gpio_cfgpin(gpio, S3C_GPIO_SFN(2));
+                       s3c_gpio_setpull(gpio, S3C_GPIO_PULL_NONE);
+               }
+       }
+
+       for (gpio = S3C64XX_GPJ(0); gpio <= S3C64XX_GPJ(11); gpio++) {
+               s3c_gpio_cfgpin(gpio, S3C_GPIO_SFN(2));
+               s3c_gpio_setpull(gpio, S3C_GPIO_PULL_NONE);
+       }
+}
+
+static struct s3c_fb_platdata om_3d7k_lcd_pdata __initdata = {
+       .setup_gpio     = om_3d7k_fb_gpio_setup,
+       .win[0]         = &om_3d7k_fb_win0,
+       .vidcon0        = VIDCON0_VIDOUT_RGB | VIDCON0_PNRMODE_RGB,
+       .vidcon1        = VIDCON1_INV_HSYNC | VIDCON1_INV_VSYNC,
+};
+
+
+struct map_desc om_3d7k_6410_iodesc[] = {};
+
+static struct resource om_3d7k_button_resources[] = {
+       [0] = {
+               .start = 0,
+               .end   = 0,
+       },
+       [1] = {
+               .start = OM_3D7K_GPIO_HOLD,
+               .end   = OM_3D7K_GPIO_HOLD,
+       },
+       [2] = {
+               .start = OM_3D7K_GPIO_JACK_INSERT,
+               .end   = OM_3D7K_GPIO_JACK_INSERT,
+       },
+       [3] = {
+               .start = OM_3D7K_GPIO_KEY_PLUS,
+               .end   = OM_3D7K_GPIO_KEY_PLUS,
+       },
+       [4] = {
+               .start = OM_3D7K_GPIO_KEY_MINUS,
+               .end   = OM_3D7K_GPIO_KEY_MINUS,
+       },
+};
+
+static struct platform_device om_3d7k_button_dev = {
+       .name           = "neo1973-button",
+       .num_resources  = ARRAY_SIZE(om_3d7k_button_resources),
+       .resource       = om_3d7k_button_resources,
+};
+
+
+/********************** PMU ***************************/
+/*
+ * OM_3D7K PMU Mapping info
+ *
+ *  name  maxcurr  default    Nom   consumers
+ *
+ *  AUTO   1100mA  ON  3.3V   3.3V  Main 3.3V rail
+ *  DOWN1   500mA  ON  1.2V   1.2V  CPU VddARM, VddINT, VddMPLL, VddOTGI
+ *  DOWN2   500mA  ON  1.8V   1.8V  CPU VddAlive via LDO, Memories, WLAN
+ *  LED      25mA  OFF        18V   Backlight
+ *  HCLDO   200mA  OFF        2.8V  Camera 2V8
+ *  LDO1     50mA  ON  3.3V   3.3V  Accel
+ *  LDO2     50mA  OFF        1.5V  Camera 1V5
+ *  LDO3     50mA  OFF        3.3V  CODEC 3.3V
+ *  LDO4    150mA  ON  2.8V   2.7V  uSD power
+ *  LDO5    150mA  OFF        3.0V  GPS 3V
+ *  LDO6     50mA  ON  3.0V   3.0V  LCM 3V
+ *
+ */
+
+
+/* PMU driver info */
+
+
+static struct regulator_consumer_supply ldo4_consumers[] = {
+       {
+               .dev = &s3c_device_hsmmc0.dev,
+               .supply = "SD_3V",
+       },
+};
+
+static struct platform_device om_3d7k_features_dev = {
+       .name           = "om-3d7k",
+};
+
+static struct regulator_consumer_supply ldo5_consumers[] = {
+       {
+               .dev = &om_3d7k_features_dev.dev,
+               .supply = "RF_3V",
+       },
+};
+
+
+static void om_3d7k_pmu_event_callback(struct pcf50633 *pcf, int irq)
+{
+#if 0
+       if (irq == PCF50633_IRQ_USBINS) {
+               schedule_delayed_work(&om_3d7k_charger_work,
+                               GTA02_CHARGER_CONFIGURE_TIMEOUT);
+               return;
+       } else if (irq == PCF50633_IRQ_USBREM) {
+               cancel_delayed_work_sync(&om_3d7k_charger_work);
+               pcf50633_mbc_usb_curlim_set(pcf, 0);
+               om_3d7k_usb_vbus_draw = 0;
+       }
+
+       bq27000_charging_state_change(&bq27000_battery_device);
+#endif
+}
+
+static void om_3d7k_pcf50633_attach_child_devices(struct pcf50633 *pcf);
+static void om_3d7k_pmu_regulator_registered(struct pcf50633 *pcf, int id);
+
+/* Global reference */
+struct pcf50633 *om_3d7k_pcf;
+
+struct pcf50633_platform_data om_3d7k_pcf_pdata = {
+
+       .resumers = {
+               [0] = PCF50633_INT1_USBINS |
+                     PCF50633_INT1_USBREM |
+                     PCF50633_INT1_ALARM,
+               [1] = PCF50633_INT2_ONKEYF,
+               [2] = PCF50633_INT3_ONKEY1S
+       },
+       .chg_ref_current_ma = 1000,
+       .reg_init_data = {
+               /* OM_3D7K: Main 3.3V rail */
+               [PCF50633_REGULATOR_AUTO] = {
+                       .constraints = {
+                               .min_uV = 3300000,
+                               .max_uV = 3300000,
+                               .valid_modes_mask = REGULATOR_MODE_NORMAL,
+                               .apply_uV = 1,
+                               .state_mem = {
+                                       .enabled = 1,
+                               },
+                       },
+                       .num_consumer_supplies = 0,
+               },
+               /* OM_3D7K: CPU core power */
+               [PCF50633_REGULATOR_DOWN1] = {
+                       .constraints = {
+                               .min_uV = 900000,
+                               .max_uV = 1200000,
+                               .valid_modes_mask = REGULATOR_MODE_NORMAL,
+                               .apply_uV = 1,
+                       },
+                       .num_consumer_supplies = 0,
+               },
+               /* OM_3D7K: Memories */
+               [PCF50633_REGULATOR_DOWN2] = {
+                       .constraints = {
+                               .min_uV = 1800000,
+                               .max_uV = 1800000,
+                               .valid_modes_mask = REGULATOR_MODE_NORMAL,
+                               .apply_uV = 1,
+                               .state_mem = {
+                                       .enabled = 1,
+                               },
+                       },
+                       .num_consumer_supplies = 0,
+               },
+               /* OM_3D7K: Camera 2V8 */
+               [PCF50633_REGULATOR_HCLDO] = {
+                       .constraints = {
+                               .min_uV = 2800000,
+                               .max_uV = 2800000,
+                               .valid_modes_mask = REGULATOR_MODE_NORMAL,
+                       },
+                       .num_consumer_supplies = 0,
+/*                     .consumer_supplies = hcldo_consumers, */
+               },
+
+               /* OM_3D7K: Accel 3V3 */
+               [PCF50633_REGULATOR_LDO1] = {
+                       .constraints = {
+                               .min_uV = 3300000,
+                               .max_uV = 3300000,
+                               .valid_modes_mask = REGULATOR_MODE_NORMAL,
+                               .apply_uV = 1,
+                       },
+                       .num_consumer_supplies = 0,
+               },
+               /* OM_3D7K: Camera 1V5 */
+               [PCF50633_REGULATOR_LDO2] = {
+                       .constraints = {
+                               .min_uV = 1500000,
+                               .max_uV = 1500000,
+                               .valid_modes_mask = REGULATOR_MODE_NORMAL,
+                               .apply_uV = 1,
+                       },
+                       .num_consumer_supplies = 0,
+               },
+               /* OM_3D7K: Codec 3.3V */
+               [PCF50633_REGULATOR_LDO3] = {
+                       .constraints = {
+                               .min_uV = 3300000,
+                               .max_uV = 3300000,
+                               .valid_modes_mask = REGULATOR_MODE_NORMAL,
+                               .apply_uV = 1,
+                               .always_on = 1,
+                       },
+                       .num_consumer_supplies = 0,
+               },
+               /* OM_3D7K: uSD Power */
+               [PCF50633_REGULATOR_LDO4] = {
+                       .constraints = {
+                               .min_uV = 3000000,
+                               .max_uV = 3000000,
+                               .valid_modes_mask = REGULATOR_MODE_NORMAL,
+                               .apply_uV = 1,
+                       },
+                       .num_consumer_supplies = 1,
+                       .consumer_supplies = ldo4_consumers,
+               },
+               /* OM_3D7K: GPS 3V */
+               [PCF50633_REGULATOR_LDO5] = {
+                       .constraints = {
+                               .min_uV = 3000000,
+                               .max_uV = 3000000,
+                               .valid_modes_mask = REGULATOR_MODE_NORMAL,
+                               .apply_uV = 1,
+                       },
+                       .num_consumer_supplies = 1,
+                       .consumer_supplies = ldo5_consumers,
+               },
+               /* OM_3D7K: LCM 3V */
+               [PCF50633_REGULATOR_LDO6] = {
+                       .constraints = {
+                               .min_uV = 3000000,
+                               .max_uV = 3000000,
+                               .valid_modes_mask = REGULATOR_MODE_NORMAL,
+                               .state_mem = {
+                                       .enabled = 1,
+                               },
+                       },
+                       .num_consumer_supplies = 0,
+               },
+               /* power for memories in suspend */
+               [PCF50633_REGULATOR_MEMLDO] = {
+                       .constraints = {
+                               .min_uV = 1800000,
+                               .max_uV = 1800000,
+                               .valid_modes_mask = REGULATOR_MODE_NORMAL,
+                               .state_mem = {
+                                       .enabled = 1,
+                               },
+                       },
+                       .num_consumer_supplies = 0,
+               },
+
+       },
+       .probe_done = om_3d7k_pcf50633_attach_child_devices,
+       .regulator_registered = om_3d7k_pmu_regulator_registered,
+       .mbc_event_callback = om_3d7k_pmu_event_callback,
+};
+
+/* BQ27000 Battery */
+static int om_3d7k_get_charger_online_status(void)
+{
+       struct pcf50633 *pcf = om_3d7k_pcf;
+
+       return pcf50633_mbc_get_status(pcf) & PCF50633_MBC_USB_ONLINE;
+}
+
+static int om_3d7k_get_charger_active_status(void)
+{
+       struct pcf50633 *pcf = om_3d7k_pcf;
+
+       return pcf50633_mbc_get_status(pcf) & PCF50633_MBC_USB_ACTIVE;
+}
+
+
+struct bq27000_platform_data bq27000_pdata = {
+       .name = "battery",
+       .rsense_mohms = 20,
+       .hdq_read = hdq_read,
+       .hdq_write = hdq_write,
+       .hdq_initialized = hdq_initialized,
+       .get_charger_online_status = om_3d7k_get_charger_online_status,
+       .get_charger_active_status = om_3d7k_get_charger_active_status
+};
+
+struct platform_device bq27000_battery_device = {
+       .name           = "bq27000-battery",
+       .dev = {
+               .platform_data = &bq27000_pdata,
+       },
+};
+
+#ifdef CONFIG_HDQ_GPIO_BITBANG
+/* HDQ */
+
+static void om_3d7k_hdq_attach_child_devices(struct device *parent_device)
+{
+               bq27000_battery_device.dev.parent = parent_device;
+               platform_device_register(&bq27000_battery_device);
+}
+
+static void om_3d7k_hdq_gpio_direction_out(void)
+{
+       unsigned long con;
+       void __iomem *regcon = S3C64XX_GPH_BASE; 
+
+       con = __raw_readl(regcon);
+       con &= ~(0xf << 28);
+       con |= 0x01 << 28;
+       __raw_writel(con, regcon);
+
+       /* Set pull-up enabled */
+       con = __raw_readl(regcon + 0x0c);
+       con |= 3 << 14;
+       __raw_writel(con, regcon + 0x0c);
+}
+
+static void om_3d7k_hdq_gpio_direction_in(void)
+{
+       unsigned long con;
+       void __iomem *regcon = S3C64XX_GPH_BASE;
+
+       con = __raw_readl(regcon);
+       con &= ~(0xf << 28);
+       __raw_writel(con, regcon);
+}
+
+static void om_3d7k_hdq_gpio_set_value(int val)
+{
+       u32 dat;
+       void __iomem *base = S3C64XX_GPH_BASE;
+
+       dat = __raw_readl(base + 0x08);
+       if (val)
+               dat |= 1 << 7;
+       else
+               dat &= ~(1 << 7);
+
+       __raw_writel(dat, base + 0x08);
+}
+
+static int om_3d7k_hdq_gpio_get_value(void)
+{
+       u32 dat;
+       void *base = S3C64XX_GPH_BASE;
+       
+       dat = __raw_readl(base + 0x08);
+
+       return dat & (1 << 7);
+}
+
+static struct resource om_3d7k_hdq_resources[] = {
+       [0] = {
+               .start  = S3C64XX_GPH(7),
+               .end    = S3C64XX_GPH(7),
+       },
+};
+
+struct hdq_platform_data om_3d7k_hdq_platform_data = {
+       .attach_child_devices = om_3d7k_hdq_attach_child_devices,
+       .gpio_dir_out = om_3d7k_hdq_gpio_direction_out,
+       .gpio_dir_in = om_3d7k_hdq_gpio_direction_in,
+       .gpio_set = om_3d7k_hdq_gpio_set_value,
+       .gpio_get = om_3d7k_hdq_gpio_get_value,
+
+       .enable_fiq = om_3d7k_fiq_enable,
+       .disable_fiq = om_3d7k_fiq_disable,
+       .kick_fiq = om_3d7k_fiq_kick,
+
+};
+
+struct platform_device om_3d7k_hdq_device = {
+       .name           = "hdq",
+       .num_resources  = 1,
+       .resource       = om_3d7k_hdq_resources,
+       .dev            = {
+               .platform_data = &om_3d7k_hdq_platform_data,
+       },
+};
+#endif
+
+static void om_3d7k_lp5521_chip_enable(int level)
+{
+       gpio_direction_output(OM_3D7K_GPIO_LED_EN, level);
+       mdelay(500);
+}
+
+static struct lp5521_platform_data om_3d7k_lp5521_pdata = {
+       .ext_enable = om_3d7k_lp5521_chip_enable,
+};
+
+static void om_3d7k_pcap7200_reset(void)
+{
+       gpio_direction_output(OM_3D7K_GPIO_TP_RESET, 1);
+       udelay(10);
+       gpio_direction_output(OM_3D7K_GPIO_TP_RESET, 0);
+}
+
+static struct pcap7200_platform_data om_3d7k_pcap7200_pdata = {
+       .mode = MULTI_TOUCH,
+       .reset = om_3d7k_pcap7200_reset,
+};
+
+static struct i2c_board_info om_3d7k_i2c_devs[] __initdata = {
+       {
+               I2C_BOARD_INFO("pcf50633", 0x73),
+               .irq = OM_3D7K_IRQ_PMU,
+               .platform_data = &om_3d7k_pcf_pdata,
+       },
+       {
+               I2C_BOARD_INFO("pcap7200", 0x0a),
+               .irq = OM_3D7K_IRQ_TOUCH,
+               .platform_data = &om_3d7k_pcap7200_pdata,
+       },
+       {
+               I2C_BOARD_INFO("lp5521", 0x32),
+               .irq = OM_3D7K_IRQ_LED,
+               .platform_data = &om_3d7k_lp5521_pdata,
+       },
+       {
+               I2C_BOARD_INFO("wm8753", 0x1a),
+       },
+};
+
+struct platform_device s3c24xx_pwm_device = {
+       .name           = "s3c24xx_pwm",
+       .num_resources  = 0,
+};
+
+struct platform_device om_3d7k_device_spi_lcm;
+
+static struct platform_device *om_3d7k_devices[] __initdata = {
+       &s3c_device_fb,
+       &s3c_device_i2c0,
+       &om_3d7k_device_spi_lcm,
+       &s3c_device_usbgadget,
+       &s3c24xx_pwm_device,
+};
+
+
+static void om_3d7k_pmu_regulator_registered(struct pcf50633 *pcf, int id)
+{
+       struct platform_device *regulator, *pdev;
+
+       regulator = pcf->regulator_pdev[id];
+
+       switch(id) {
+               case PCF50633_REGULATOR_LDO4:
+                       pdev = &s3c_device_hsmmc0; /* uSD card */
+                       break;
+               case PCF50633_REGULATOR_LDO5: /* GPS regulator */
+                       pdev = &om_3d7k_features_dev;
+                       break;
+               case PCF50633_REGULATOR_LDO6:
+                       pdev = &om_3d7k_lcd_powerdev;
+                       break;
+               default:
+                       return;
+       }
+
+       pdev->dev.parent = &regulator->dev;
+       platform_device_register(pdev);
+}
+
+static struct platform_device *om_3d7k_devices_pmu_children[] = {
+       &om_3d7k_button_dev,
+//     &s3c_device_spi_acc1, /* relies on PMU reg for power */
+};
+
+/* this is called when pc50633 is probed, unfortunately quite late in the
+ * day since it is an I2C bus device.  Here we can belatedly define some
+ * platform devices with the advantage that we can mark the pcf50633 as the
+ * parent.  This makes them get suspended and resumed with their parent
+ * the pcf50633 still around.
+ */
+
+static void om_3d7k_pcf50633_attach_child_devices(struct pcf50633 *pcf)
+{
+       int n;
+
+       om_3d7k_pcf = pcf;
+
+       for (n = 0; n < ARRAY_SIZE(om_3d7k_devices_pmu_children); n++)
+               om_3d7k_devices_pmu_children[n]->dev.parent = pcf->dev;
+
+       platform_add_devices(om_3d7k_devices_pmu_children,
+                                    ARRAY_SIZE(om_3d7k_devices_pmu_children));
+
+       /* Switch on backlight. Qi does not do it for us */
+       pcf50633_reg_write(pcf, PCF50633_REG_LEDENA, 0x00);
+       pcf50633_reg_write(pcf, PCF50633_REG_LEDDIM, 0x01);
+       pcf50633_reg_write(pcf, PCF50633_REG_LEDENA, 0x01);
+       pcf50633_reg_write(pcf, PCF50633_REG_LEDOUT, 0x3f);
+
+}
+
+static void om_3d7k_l1k002_pwronoff(int level)
+{
+       gpio_direction_output(OM_3D7K_GPIO_LCM_SD, 1);
+       udelay(15);
+
+       gpio_direction_output(OM_3D7K_GPIO_LCM_RESET, !!level);
+
+       if (level){
+               udelay(15);
+               gpio_direction_output(OM_3D7K_GPIO_LCM_SD, 0);
+       }
+}
+
+const struct l1k002_platform_data om_3d7k_l1k002_pdata = {
+       .pwr_onoff = om_3d7k_l1k002_pwronoff,
+};
+
+static struct spi_board_info om_3d7k_spi_board_info[] = {
+       {
+       .modalias       = "l1k002",
+       .platform_data  = &om_3d7k_l1k002_pdata,
+       /* controller_data */
+       /* irq */
+       .max_speed_hz   = 10 * 1000 * 1000,
+       .bus_num        = 1,
+       /* chip_select */
+       },
+};
+
+static void spi_gpio_cs(struct s3c64xx_spigpio_info *spi, int csidx, int cs)
+{
+       switch (cs) {
+       case BITBANG_CS_ACTIVE:
+               gpio_direction_output(OM_3D7K_GPIO_LCM_CS, 0);
+               break;
+       case BITBANG_CS_INACTIVE:
+               gpio_direction_output(OM_3D7K_GPIO_LCM_CS, 1);
+               break;
+       }
+}
+
+static struct s3c64xx_spigpio_info spi_gpio_cfg = {
+       .pin_clk        = OM_3D7K_GPIO_LCM_CLK,
+       .pin_mosi       = OM_3D7K_GPIO_LCM_MOSI,
+       /* no pinout to MISO */
+       .chip_select    = &spi_gpio_cs,
+       .num_chipselect = 1,
+       .bus_num        = 1,
+};
+
+struct platform_device om_3d7k_device_spi_lcm = {
+       .name             = "spi_s3c64xx_gpio",
+       .id               = 1,
+       .dev = {
+               .platform_data = &spi_gpio_cfg,
+       },
+};
+
+
+
+
+
+
+
+extern void s3c64xx_init_io(struct map_desc *, int);
+
+struct s3c_plat_otg_data s3c_hs_otg_plat_data = {
+       .phyclk = 0
+};
+
+
+static void __init om_3d7k_map_io(void)
+{
+       s3c64xx_init_io(om_3d7k_6410_iodesc, ARRAY_SIZE(om_3d7k_6410_iodesc));
+       s3c24xx_init_clocks(12000000);
+       s3c24xx_init_uarts(om_3d7k_uartcfgs, ARRAY_SIZE(om_3d7k_uartcfgs));
+}
+
+static void __init om_3d7k_machine_init(void)
+{
+       s3c_pm_init();
+
+       s3c_device_usbgadget.dev.platform_data = &s3c_hs_otg_plat_data;
+
+       s3c_i2c0_set_platdata(NULL);
+       s3c_fb_set_platdata(&om_3d7k_lcd_pdata);
+
+       i2c_register_board_info(0, om_3d7k_i2c_devs,
+                                                ARRAY_SIZE(om_3d7k_i2c_devs));
+
+       spi_register_board_info(om_3d7k_spi_board_info,
+                                               ARRAY_SIZE(om_3d7k_spi_board_info));
+
+       platform_add_devices(om_3d7k_devices, ARRAY_SIZE(om_3d7k_devices));
+
+       /* Register the HDQ and vibrator as children of pwm device */
+       om_3d7k_hdq_device.dev.parent = &s3c24xx_pwm_device.dev;
+       platform_device_register(&om_3d7k_hdq_device);
+}
+
+MACHINE_START(OM_3D7K, "OM-3D7K")
+       /* Maintainer: Andy Green <andy@openmoko.com> */
+       .phys_io        = S3C_PA_UART & 0xfff00000,
+       .io_pg_offst    = (((u32)S3C_VA_UART) >> 18) & 0xfffc,
+       .boot_params    = S3C64XX_PA_SDRAM + 0x100,
+
+       .init_irq       = s3c6410_init_irq,
+       .map_io         = om_3d7k_map_io,
+       .init_machine   = om_3d7k_machine_init,
+       .timer          = &s3c24xx_timer,
+MACHINE_END
+
diff --git a/arch/arm/mach-s3c6410/mach-om-gta03.c b/arch/arm/mach-s3c6410/mach-om-gta03.c
deleted file mode 100644 (file)
index bdf3622..0000000
+++ /dev/null
@@ -1,1069 +0,0 @@
-/* linux/arch/arm/mach-s3c6410/mach-om_gta03.c
- *
- * Copyright 2008 Openmoko, Inc.
- * Andy Green <andy@openmoko.org>
- *
- * based on mach_om_gta03.c which is
- *
- * Copyright 2008 Openmoko, Inc.
- * Copyright 2008 Simtec Electronics
- *     Ben Dooks <ben@simtec.co.uk>
- *     http://armlinux.simtec.co.uk/
- *
- * 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.
- *
-*/
-
-#include <linux/kernel.h>
-#include <linux/types.h>
-#include <linux/interrupt.h>
-#include <linux/list.h>
-#include <linux/timer.h>
-#include <linux/init.h>
-#include <linux/serial_core.h>
-#include <linux/platform_device.h>
-#include <linux/io.h>
-#include <linux/i2c.h>
-#include <linux/fb.h>
-#include <linux/delay.h>
-#include <linux/lis302dl.h>
-#include <linux/lp5521.h>
-#include <linux/spi/spi_bitbang.h>
-#include <linux/l1k002.h>
-#include <linux/pcap7200.h>
-#include <linux/bq27000_battery.h>
-#include <linux/hdq.h>
-
-#include <video/platform_lcd.h>
-
-#include <asm/mach/arch.h>
-#include <asm/mach/map.h>
-#include <asm/mach/irq.h>
-
-#include <mach/hardware.h>
-#include <asm/hardware/vic.h>
-#include <asm/hardware/tzic-sp890.h>
-#include <mach/map.h>
-#include <mach/regs-fb.h>
-#include <mach/spi-gpio.h>
-
-#include <asm/irq.h>
-#include <asm/mach-types.h>
-#include <asm/fiq.h>
-
-#include <plat/regs-serial.h>
-#include <plat/regs-timer.h>
-#include <plat/regs-gpio.h>
-#include <plat/iic.h>
-#include <plat/fb.h>
-#include <plat/gpio-cfg.h>
-#include <plat/pm.h>
-#include <plat/pwm.h>
-
-#include <plat/s3c6410.h>
-#include <plat/clock.h>
-#include <plat/devs.h>
-#include <plat/cpu.h>
-#include <plat/tzic-sp890.h>
-
-/* #include <plat/udc.h> */
-#include <linux/i2c.h>
-#include <linux/backlight.h>
-#include <linux/regulator/machine.h>
-
-#include <mach/om-gta03.h>
-
-#include <linux/mfd/pcf50633/core.h>
-#include <linux/mfd/pcf50633/mbc.h>
-#include <linux/mfd/pcf50633/adc.h>
-#include <linux/mfd/pcf50633/gpio.h>
-#include <linux/mfd/pcf50633/pmic.h>
-
-#include <plat/regs-usb-hs-otg.h>
-
-extern struct platform_device s3c_device_usbgadget;
-
-/* -------------------------------------------------------------------------------
- * GTA03 FIQ related
- *
- * Calls into vibrator and hdq and based on the return values
- * determines if we the FIQ source be kept alive
- */
-
-#define DIVISOR_FROM_US(x) ((x) * 23)
-
-#ifdef CONFIG_HDQ_GPIO_BITBANG
-#define FIQ_DIVISOR_HDQ DIVISOR_FROM_US(20)
-extern int hdq_fiq_handler(void);
-#endif
-
-/* Global data related to our fiq source */
-static u32 gta03_fiq_ack_mask;
-static u32 gta03_fiq_mod_mask;
-static struct s3c2410_pwm gta03_fiq_pwm_timer;
-static u16 gta03_fiq_timer_index;
-static int gta03_fiq_irq;
-
-/* Convinience defines */
-#define S3C6410_INTMSK (S3C_VA_VIC0 + VIC_INT_ENABLE)
-#define S3C6410_INTMOD (S3C_VA_VIC0 + VIC_INT_SELECT)
-
-
-
-static void gta03_fiq_handler(void)
-{
-       u16 divisor = 0xffff;
-
-       /* Vibrator servicing */
-
-       /* disable further timer interrupts if nobody has any work
-        * or adjust rate according to who still has work
-        *
-        * CAUTION: it means forground code must disable FIQ around
-        * its own non-atomic S3C2410_INTMSK changes... not common
-        * thankfully and taken care of by the fiq-basis patch
-        */
-
-#ifdef CONFIG_HDQ_GPIO_BITBANG
-       if (hdq_fiq_handler())
-               divisor = FIQ_DIVISOR_HDQ;
-#endif
-
-       if (divisor == 0xffff) /* mask the fiq irq source */
-               __raw_writel((__raw_readl(S3C64XX_TINT_CSTAT) & 0x1f) & ~(1 << 3),
-                                                           S3C64XX_TINT_CSTAT);
-       else /* still working, maybe at a different rate */
-               __raw_writel(divisor, S3C2410_TCNTB(gta03_fiq_timer_index));
-
-       __raw_writel((__raw_readl(S3C64XX_TINT_CSTAT) & 0x1f ) | 1 << 8 , S3C64XX_TINT_CSTAT);
-
-}
-
-static void gta03_fiq_kick(void)
-{
-       unsigned long flags;
-       u32 tcon;
-       
-       /* we have to take care about FIQ because this modification is
-        * non-atomic, FIQ could come in after the read and before the
-        * writeback and its changes to the register would be lost
-        * (platform INTMSK mod code is taken care of already)
-        */
-       local_save_flags(flags);
-       local_fiq_disable();
-       /* allow FIQs to resume   */
-       __raw_writel((__raw_readl(S3C64XX_TINT_CSTAT)  & 0x1f)| 1 << 3,
-                                                           S3C64XX_TINT_CSTAT);
-
-       tcon = __raw_readl(S3C2410_TCON) & ~S3C2410_TCON_T3START; 
-       /* fake the timer to a count of 1 */
-       __raw_writel(1, S3C2410_TCNTB(gta03_fiq_timer_index));
-       __raw_writel(tcon | S3C2410_TCON_T3MANUALUPD, S3C2410_TCON);
-       __raw_writel(tcon | S3C2410_TCON_T3MANUALUPD | S3C2410_TCON_T3START,
-                    S3C2410_TCON);
-       __raw_writel(tcon | S3C2410_TCON_T3START, S3C2410_TCON);
-       local_irq_restore(flags);
-}
-
-static int gta03_fiq_enable(void)
-{
-       int irq_index_fiq = IRQ_TIMER3_VIC;
-       int rc = 0;
-
-       local_fiq_disable();
-
-       gta03_fiq_irq = irq_index_fiq;
-       gta03_fiq_ack_mask = 1 << 3;
-       gta03_fiq_mod_mask = 1 << 27;
-       gta03_fiq_timer_index = 3;
-
-       /* set up the timer to operate as a pwm device */
-
-       rc = s3c2410_pwm_init(&gta03_fiq_pwm_timer);
-       if (rc)
-               goto bail;
-
-       gta03_fiq_pwm_timer.timerid = PWM0 + gta03_fiq_timer_index;
-       gta03_fiq_pwm_timer.prescaler = ((6 - 1) / 2);
-       gta03_fiq_pwm_timer.divider = S3C64XX_TCFG1_MUX_DIV2 << S3C2410_TCFG1_SHIFT(3);
-       /* default rate == ~32us */
-       gta03_fiq_pwm_timer.counter = gta03_fiq_pwm_timer.comparer = 3000;
-
-       rc = s3c2410_pwm_enable(&gta03_fiq_pwm_timer);
-       if (rc)
-               goto bail;
-
-       /* let our selected interrupt be a magic FIQ interrupt */
-       __raw_writel(gta03_fiq_mod_mask, S3C6410_INTMSK + 4);
-       __raw_writel(gta03_fiq_mod_mask, S3C6410_INTMOD);
-       __raw_writel(gta03_fiq_mod_mask, S3C6410_INTMSK);
-
-       __raw_writel(SP890_TZIC_UNLOCK_MAGIC, S3C64XX_VA_TZIC0_LOCK);
-       __raw_writel(gta03_fiq_mod_mask, S3C64XX_VA_TZIC0_FIQENABLE);
-       __raw_writel(gta03_fiq_mod_mask, S3C64XX_VA_TZIC0_INTSELECT);
-
-       s3c2410_pwm_start(&gta03_fiq_pwm_timer);
-
-       /* it's ready to go as soon as we unmask the source in S3C2410_INTMSK */
-       local_fiq_enable();
-
-       set_fiq_c_handler(gta03_fiq_handler);
-
-       if (rc < 0)
-               goto bail;
-
-       return 0;
-bail:
-       printk(KERN_ERR "Count not initialize FIQ for GTA03 %d \n", rc);
-       return rc;
-}
-
-static void gta03_fiq_disable(void)
-{
-       __raw_writel(0, S3C6410_INTMOD);
-       local_fiq_disable();
-       gta03_fiq_irq = 0; /* no active source interrupt now either */
-
-}
-/* -------------------- /GTA03 FIQ Handler ------------------------------------- */
-
-#define UCON S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK
-#define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB
-#define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE
-
-static struct s3c2410_uartcfg om_gta03_uartcfgs[] __initdata = {
-       [0] = {
-               .hwport      = 0,
-               .flags       = 0,
-               .ucon        = 0x3c5,
-               .ulcon       = 0x03,
-               .ufcon       = 0x51,
-       },
-       [1] = {
-               .hwport      = 1,
-               .flags       = 0,
-               .ucon        = 0x3c5,
-               .ulcon       = 0x03,
-               .ufcon       = 0x51,
-       },
-       [2] = {
-               .hwport      = 2,
-               .flags       = 0,
-               .ucon        = 0x3c5,
-               .ulcon       = 0x03,
-               .ufcon       = 0x51,
-       },
-       [3] = {
-               .hwport      = 3,
-               .flags       = 0,
-               .ucon        = 0x3c5,
-               .ulcon       = 0x03,
-               .ufcon       = 0x51,
-       },
-};
-
-
-/*
- * Situation is that Linux SPI can't work in an interrupt context, so we
- * implement our own bitbang here.  Arbitration is needed because not only
- * can this interrupt happen at any time even if foreground wants to use
- * the bitbang API from Linux, but multiple motion sensors can be on the
- * same SPI bus, and multiple interrupts can happen.
- *
- * Foreground / interrupt arbitration is okay because the interrupts are
- * disabled around all the foreground SPI code.
- *
- * Interrupt / Interrupt arbitration is evidently needed, otherwise we
- * lose edge-triggered service after a while due to the two sensors sharing
- * the SPI bus having irqs at the same time eventually.
- *
- * Servicing is typ 75 - 100us at 400MHz.
- */
-
-/* #define DEBUG_SPEW_MS */
-#define MG_PER_SAMPLE 18
-
-struct lis302dl_platform_data lis302_pdata;
-
-/*
- * generic SPI RX and TX bitbang
- * only call with interrupts off!
- */
-
-static void __gta03_lis302dl_bitbang(struct lis302dl_info *lis, u8 *tx,
-                                            int tx_bytes, u8 *rx, int rx_bytes)
-{
-       struct lis302dl_platform_data *pdata = lis->pdata;
-       int n;
-       u8 shifter = 0;
-
-       gpio_direction_output(pdata->pin_chip_select, 1);
-       gpio_direction_output(pdata->pin_clk, 1);
-       gpio_direction_output(pdata->pin_chip_select, 0);
-
-       /* send the register index, r/w and autoinc bits */
-       for (n = 0; n < (tx_bytes << 3); n++) {
-               if (!(n & 7))
-                       shifter = ~tx[n >> 3];
-               gpio_direction_output(pdata->pin_clk, 0);
-               gpio_direction_output(pdata->pin_mosi, !(shifter & 0x80));
-               gpio_direction_output(pdata->pin_clk, 1);
-               shifter <<= 1;
-       }
-
-       for (n = 0; n < (rx_bytes << 3); n++) { /* 8 bits each */
-               gpio_direction_output(pdata->pin_clk, 0);
-               shifter <<= 1;
-               if (gpio_direction_input(pdata->pin_miso))
-                       shifter |= 1;
-               if ((n & 7) == 7)
-                       rx[n >> 3] = shifter;
-               gpio_direction_output(pdata->pin_clk, 1);
-       }
-       gpio_direction_output(pdata->pin_chip_select, 1);
-}
-
-
-static int gta03_lis302dl_bitbang_read_reg(struct lis302dl_info *lis, u8 reg)
-{
-       u8 data = 0xc0 | reg; /* read, autoincrement */
-       unsigned long flags;
-
-       local_irq_save(flags);
-
-       __gta03_lis302dl_bitbang(lis, &data, 1, &data, 1);
-
-       local_irq_restore(flags);
-
-       return data;
-}
-
-static void gta03_lis302dl_bitbang_write_reg(struct lis302dl_info *lis, u8 reg,
-                                                                        u8 val)
-{
-       u8 data[2] = { 0x00 | reg, val }; /* write, no autoincrement */
-       unsigned long flags;
-
-       local_irq_save(flags);
-
-       __gta03_lis302dl_bitbang(lis, &data[0], 2, NULL, 0);
-
-       local_irq_restore(flags);
-
-}
-
-
-void gta03_lis302dl_suspend_io(struct lis302dl_info *lis, int resume)
-{
-       struct lis302dl_platform_data *pdata = lis->pdata;
-
-       if (!resume) {
-                /*
-                * we don't want to power them with a high level
-                * because GSENSOR_3V3 is not up during suspend
-                */
-               gpio_direction_output(pdata->pin_chip_select, 0);
-               gpio_direction_output(pdata->pin_clk, 0);
-               gpio_direction_output(pdata->pin_mosi, 0);
-               s3c_gpio_setpull(pdata->pin_miso, S3C_GPIO_PULL_DOWN);
-
-               return;
-       }
-
-       /* back to normal */
-       gpio_direction_output(pdata->pin_chip_select, 1);
-       gpio_direction_output(pdata->pin_clk, 1);
-       s3c_gpio_setpull(pdata->pin_miso, S3C_GPIO_PULL_NONE);
-
-       s3c_gpio_cfgpin(pdata->pin_chip_select, S3C_GPIO_SFN(1));
-       s3c_gpio_cfgpin(pdata->pin_clk, S3C_GPIO_SFN(1));
-       s3c_gpio_cfgpin(pdata->pin_mosi, S3C_GPIO_SFN(1));
-       s3c_gpio_cfgpin(pdata->pin_miso, S3C_GPIO_SFN(0));
-
-}
-#if 0
-struct lis302dl_platform_data lis302_pdata = {
-               .name           = "lis302",
-               .pin_chip_select= S3C64XX_GPC(3), /* NC */
-               .pin_clk        = GTA03_GPIO_ACCEL_CLK,
-               .pin_mosi       = GTA03_GPIO_ACCEL_MOSI,
-               .pin_miso       = GTA03_GPIO_ACCEL_MISO,
-               .interrupt      = GTA03_IRQ_GSENSOR_1,
-               .open_drain     = 0,
-               .lis302dl_bitbang = __gta03_lis302dl_bitbang,
-               .lis302dl_bitbang_reg_read = gta03_lis302dl_bitbang_read_reg,
-               .lis302dl_bitbang_reg_write = gta03_lis302dl_bitbang_write_reg,
-               .lis302dl_suspend_io = gta03_lis302dl_suspend_io,
-};
-
-static struct platform_device s3c_device_spi_acc1 = {
-       .name             = "lis302dl",
-       .id               = 1,
-       .dev = {
-               .platform_data = &lis302_pdata,
-       },
-};
-
-#endif
-
-/* framebuffer and LCD setup. */
-
-/* GPF15 = LCD backlight control
- * GPF13 => Panel power
- * GPN5 = LCD nRESET signal
- * PWM_TOUT1 => backlight brightness
- */
-
-static void om_gta03_lcd_power_set(struct plat_lcd_data *pd,
-                                  unsigned int power)
-{
-
-}
-
-static struct plat_lcd_data om_gta03_lcd_power_data = {
-       .set_power      = om_gta03_lcd_power_set,
-};
-
-static struct platform_device om_gta03_lcd_powerdev = {
-       .name                   = "platform-lcd",
-       .dev.parent             = &s3c_device_fb.dev,
-       .dev.platform_data      = &om_gta03_lcd_power_data,
-};
-
-static struct s3c_fb_pd_win om_gta03_fb_win0 = {
-       /* this is to ensure we use win0 */
-       .win_mode       = {
-               .pixclock       = 40816,
-               .left_margin    = 8,
-               .right_margin   = 16,
-               .upper_margin   = 2,
-               .lower_margin   = 16,
-               .hsync_len      = 8,
-               .vsync_len      = 2,
-               .xres           = 480,
-               .yres           = 640,
-       },
-       .max_bpp        = 32,
-       .default_bpp    = 16,
-};
-
-static void om_gta03_fb_gpio_setup(void)
-{
-       unsigned int gpio;
-
-       /* GPI0, GPI1, GPI8 are for hardware version contrl.
-        * They should be set as input in order to prevent
-        * current leaking
-        */
-       for (gpio = S3C64XX_GPI(2); gpio <= S3C64XX_GPI(15); gpio++) {
-               if (gpio != S3C64XX_GPI(8)) {
-                       s3c_gpio_cfgpin(gpio, S3C_GPIO_SFN(2));
-                       s3c_gpio_setpull(gpio, S3C_GPIO_PULL_NONE);
-               }
-       }
-
-       for (gpio = S3C64XX_GPJ(0); gpio <= S3C64XX_GPJ(11); gpio++) {
-               s3c_gpio_cfgpin(gpio, S3C_GPIO_SFN(2));
-               s3c_gpio_setpull(gpio, S3C_GPIO_PULL_NONE);
-       }
-}
-
-static struct s3c_fb_platdata om_gta03_lcd_pdata __initdata = {
-       .setup_gpio     = om_gta03_fb_gpio_setup,
-       .win[0]         = &om_gta03_fb_win0,
-       .vidcon0        = VIDCON0_VIDOUT_RGB | VIDCON0_PNRMODE_RGB,
-       .vidcon1        = VIDCON1_INV_HSYNC | VIDCON1_INV_VSYNC,
-};
-
-
-struct map_desc om_gta03_6410_iodesc[] = {};
-
-static struct resource om_gta03_button_resources[] = {
-       [0] = {
-               .start = 0,
-               .end   = 0,
-       },
-       [1] = {
-               .start = GTA03_GPIO_HOLD,
-               .end   = GTA03_GPIO_HOLD,
-       },
-       [2] = {
-               .start = GTA03_GPIO_JACK_INSERT,
-               .end   = GTA03_GPIO_JACK_INSERT,
-       },
-       [3] = {
-               .start = GTA03_GPIO_KEY_PLUS,
-               .end   = GTA03_GPIO_KEY_PLUS,
-       },
-       [4] = {
-               .start = GTA03_GPIO_KEY_MINUS,
-               .end   = GTA03_GPIO_KEY_MINUS,
-       },
-};
-
-static struct platform_device om_gta03_button_dev = {
-       .name           = "neo1973-button",
-       .num_resources  = ARRAY_SIZE(om_gta03_button_resources),
-       .resource       = om_gta03_button_resources,
-};
-
-
-/********************** PMU ***************************/
-/*
- * GTA03 PMU Mapping info
- *
- *  name  maxcurr  default    Nom   consumers
- *
- *  AUTO   1100mA  ON  3.3V   3.3V  Main 3.3V rail
- *  DOWN1   500mA  ON  1.2V   1.2V  CPU VddARM, VddINT, VddMPLL, VddOTGI
- *  DOWN2   500mA  ON  1.8V   1.8V  CPU VddAlive via LDO, Memories, WLAN
- *  LED      25mA  OFF        18V   Backlight
- *  HCLDO   200mA  OFF        2.8V  Camera 2V8
- *  LDO1     50mA  ON  3.3V   3.3V  Accel
- *  LDO2     50mA  OFF        1.5V  Camera 1V5
- *  LDO3     50mA  OFF        3.3V  CODEC 3.3V
- *  LDO4    150mA  ON  2.8V   2.7V  uSD power
- *  LDO5    150mA  OFF        3.0V  GPS 3V
- *  LDO6     50mA  ON  3.0V   3.0V  LCM 3V
- *
- */
-
-
-/* PMU driver info */
-
-
-static struct regulator_consumer_supply ldo4_consumers[] = {
-       {
-               .dev = &s3c_device_hsmmc0.dev,
-               .supply = "SD_3V",
-       },
-};
-
-static struct platform_device om_gta03_features_dev = {
-       .name           = "om-gta03",
-};
-
-static struct regulator_consumer_supply ldo5_consumers[] = {
-       {
-               .dev = &om_gta03_features_dev.dev,
-               .supply = "RF_3V",
-       },
-};
-
-
-static void om_gta03_pmu_event_callback(struct pcf50633 *pcf, int irq)
-{
-#if 0
-       if (irq == PCF50633_IRQ_USBINS) {
-               schedule_delayed_work(&gta03_charger_work,
-                               GTA02_CHARGER_CONFIGURE_TIMEOUT);
-               return;
-       } else if (irq == PCF50633_IRQ_USBREM) {
-               cancel_delayed_work_sync(&gta03_charger_work);
-               pcf50633_mbc_usb_curlim_set(pcf, 0);
-               gta03_usb_vbus_draw = 0;
-       }
-
-       bq27000_charging_state_change(&bq27000_battery_device);
-#endif
-}
-
-static void om_gta03_pcf50633_attach_child_devices(struct pcf50633 *pcf);
-static void om_gta03_pmu_regulator_registered(struct pcf50633 *pcf, int id);
-
-/* Global reference */
-struct pcf50633 *om_gta03_pcf;
-
-struct pcf50633_platform_data om_gta03_pcf_pdata = {
-
-       .resumers = {
-               [0] = PCF50633_INT1_USBINS |
-                     PCF50633_INT1_USBREM |
-                     PCF50633_INT1_ALARM,
-               [1] = PCF50633_INT2_ONKEYF,
-               [2] = PCF50633_INT3_ONKEY1S
-       },
-       .chg_ref_current_ma = 1000,
-       .reg_init_data = {
-               /* GTA03: Main 3.3V rail */
-               [PCF50633_REGULATOR_AUTO] = {
-                       .constraints = {
-                               .min_uV = 3300000,
-                               .max_uV = 3300000,
-                               .valid_modes_mask = REGULATOR_MODE_NORMAL,
-                               .apply_uV = 1,
-                               .state_mem = {
-                                       .enabled = 1,
-                               },
-                       },
-                       .num_consumer_supplies = 0,
-               },
-               /* GTA03: CPU core power */
-               [PCF50633_REGULATOR_DOWN1] = {
-                       .constraints = {
-                               .min_uV = 900000,
-                               .max_uV = 1200000,
-                               .valid_modes_mask = REGULATOR_MODE_NORMAL,
-                               .apply_uV = 1,
-                       },
-                       .num_consumer_supplies = 0,
-               },
-               /* GTA03: Memories */
-               [PCF50633_REGULATOR_DOWN2] = {
-                       .constraints = {
-                               .min_uV = 1800000,
-                               .max_uV = 1800000,
-                               .valid_modes_mask = REGULATOR_MODE_NORMAL,
-                               .apply_uV = 1,
-                               .state_mem = {
-                                       .enabled = 1,
-                               },
-                       },
-                       .num_consumer_supplies = 0,
-               },
-               /* GTA03: Camera 2V8 */
-               [PCF50633_REGULATOR_HCLDO] = {
-                       .constraints = {
-                               .min_uV = 2800000,
-                               .max_uV = 2800000,
-                               .valid_modes_mask = REGULATOR_MODE_NORMAL,
-                       },
-                       .num_consumer_supplies = 0,
-/*                     .consumer_supplies = hcldo_consumers, */
-               },
-
-               /* GTA03: Accel 3V3 */
-               [PCF50633_REGULATOR_LDO1] = {
-                       .constraints = {
-                               .min_uV = 3300000,
-                               .max_uV = 3300000,
-                               .valid_modes_mask = REGULATOR_MODE_NORMAL,
-                               .apply_uV = 1,
-                       },
-                       .num_consumer_supplies = 0,
-               },
-               /* GTA03: Camera 1V5 */
-               [PCF50633_REGULATOR_LDO2] = {
-                       .constraints = {
-                               .min_uV = 1500000,
-                               .max_uV = 1500000,
-                               .valid_modes_mask = REGULATOR_MODE_NORMAL,
-                               .apply_uV = 1,
-                       },
-                       .num_consumer_supplies = 0,
-               },
-               /* GTA03: Codec 3.3V */
-               [PCF50633_REGULATOR_LDO3] = {
-                       .constraints = {
-                               .min_uV = 3300000,
-                               .max_uV = 3300000,
-                               .valid_modes_mask = REGULATOR_MODE_NORMAL,
-                               .apply_uV = 1,
-                               .always_on = 1,
-                       },
-                       .num_consumer_supplies = 0,
-               },
-               /* GTA03: uSD Power */
-               [PCF50633_REGULATOR_LDO4] = {
-                       .constraints = {
-                               .min_uV = 3000000,
-                               .max_uV = 3000000,
-                               .valid_modes_mask = REGULATOR_MODE_NORMAL,
-                               .apply_uV = 1,
-                       },
-                       .num_consumer_supplies = 1,
-                       .consumer_supplies = ldo4_consumers,
-               },
-               /* GTA03: GPS 3V */
-               [PCF50633_REGULATOR_LDO5] = {
-                       .constraints = {
-                               .min_uV = 3000000,
-                               .max_uV = 3000000,
-                               .valid_modes_mask = REGULATOR_MODE_NORMAL,
-                               .apply_uV = 1,
-                       },
-                       .num_consumer_supplies = 1,
-                       .consumer_supplies = ldo5_consumers,
-               },
-               /* GTA03: LCM 3V */
-               [PCF50633_REGULATOR_LDO6] = {
-                       .constraints = {
-                               .min_uV = 3000000,
-                               .max_uV = 3000000,
-                               .valid_modes_mask = REGULATOR_MODE_NORMAL,
-                               .state_mem = {
-                                       .enabled = 1,
-                               },
-                       },
-                       .num_consumer_supplies = 0,
-               },
-               /* power for memories in suspend */
-               [PCF50633_REGULATOR_MEMLDO] = {
-                       .constraints = {
-                               .min_uV = 1800000,
-                               .max_uV = 1800000,
-                               .valid_modes_mask = REGULATOR_MODE_NORMAL,
-                               .state_mem = {
-                                       .enabled = 1,
-                               },
-                       },
-                       .num_consumer_supplies = 0,
-               },
-
-       },
-       .probe_done = om_gta03_pcf50633_attach_child_devices,
-       .regulator_registered = om_gta03_pmu_regulator_registered,
-       .mbc_event_callback = om_gta03_pmu_event_callback,
-};
-
-/* BQ27000 Battery */
-static int gta03_get_charger_online_status(void)
-{
-       struct pcf50633 *pcf = om_gta03_pcf;
-
-       return pcf50633_mbc_get_status(pcf) & PCF50633_MBC_USB_ONLINE;
-}
-
-static int gta03_get_charger_active_status(void)
-{
-       struct pcf50633 *pcf = om_gta03_pcf;
-
-       return pcf50633_mbc_get_status(pcf) & PCF50633_MBC_USB_ACTIVE;
-}
-
-
-struct bq27000_platform_data bq27000_pdata = {
-       .name = "battery",
-       .rsense_mohms = 20,
-       .hdq_read = hdq_read,
-       .hdq_write = hdq_write,
-       .hdq_initialized = hdq_initialized,
-       .get_charger_online_status = gta03_get_charger_online_status,
-       .get_charger_active_status = gta03_get_charger_active_status
-};
-
-struct platform_device bq27000_battery_device = {
-       .name           = "bq27000-battery",
-       .dev = {
-               .platform_data = &bq27000_pdata,
-       },
-};
-
-#ifdef CONFIG_HDQ_GPIO_BITBANG
-/* HDQ */
-
-static void gta03_hdq_attach_child_devices(struct device *parent_device)
-{
-               bq27000_battery_device.dev.parent = parent_device;
-               platform_device_register(&bq27000_battery_device);
-}
-
-static void gta03_hdq_gpio_direction_out(void)
-{
-       unsigned long con;
-       void __iomem *regcon = S3C64XX_GPH_BASE; 
-
-       con = __raw_readl(regcon);
-       con &= ~(0xf << 28);
-       con |= 0x01 << 28;
-       __raw_writel(con, regcon);
-
-       /* Set pull-up enabled */
-       con = __raw_readl(regcon + 0x0c);
-       con |= 3 << 14;
-       __raw_writel(con, regcon + 0x0c);
-}
-
-static void gta03_hdq_gpio_direction_in(void)
-{
-       unsigned long con;
-       void __iomem *regcon = S3C64XX_GPH_BASE;
-
-       con = __raw_readl(regcon);
-       con &= ~(0xf << 28);
-       __raw_writel(con, regcon);
-}
-
-static void gta03_hdq_gpio_set_value(int val)
-{
-       u32 dat;
-       void __iomem *base = S3C64XX_GPH_BASE;
-
-       dat = __raw_readl(base + 0x08);
-       if (val)
-               dat |= 1 << 7;
-       else
-               dat &= ~(1 << 7);
-
-       __raw_writel(dat, base + 0x08);
-}
-
-static int gta03_hdq_gpio_get_value(void)
-{
-       u32 dat;
-       void *base = S3C64XX_GPH_BASE;
-       
-       dat = __raw_readl(base + 0x08);
-
-       return dat & (1 << 7);
-}
-
-static struct resource gta03_hdq_resources[] = {
-       [0] = {
-               .start  = S3C64XX_GPH(7),
-               .end    = S3C64XX_GPH(7),
-       },
-};
-
-struct hdq_platform_data gta03_hdq_platform_data = {
-       .attach_child_devices = gta03_hdq_attach_child_devices,
-       .gpio_dir_out = gta03_hdq_gpio_direction_out,
-       .gpio_dir_in = gta03_hdq_gpio_direction_in,
-       .gpio_set = gta03_hdq_gpio_set_value,
-       .gpio_get = gta03_hdq_gpio_get_value,
-
-       .enable_fiq = gta03_fiq_enable,
-       .disable_fiq = gta03_fiq_disable,
-       .kick_fiq = gta03_fiq_kick,
-
-};
-
-struct platform_device gta03_hdq_device = {
-       .name           = "hdq",
-       .num_resources  = 1,
-       .resource       = gta03_hdq_resources,
-       .dev            = {
-               .platform_data = &gta03_hdq_platform_data,
-       },
-};
-#endif
-
-static void om_gta03_lp5521_chip_enable(int level)
-{
-       gpio_direction_output(GTA03_GPIO_LED_EN, level);
-       mdelay(500);
-}
-
-static struct lp5521_platform_data om_gta03_lp5521_pdata = {
-       .ext_enable = om_gta03_lp5521_chip_enable,
-};
-
-static void om_gta03_pcap7200_reset(void)
-{
-       gpio_direction_output(GTA03_GPIO_TP_RESET, 1);
-       udelay(10);
-       gpio_direction_output(GTA03_GPIO_TP_RESET, 0);
-}
-
-static struct pcap7200_platform_data om_gta03_pcap7200_pdata = {
-       .mode = MULTI_TOUCH,
-       .reset = om_gta03_pcap7200_reset,
-};
-
-static struct i2c_board_info om_gta03_i2c_devs[] __initdata = {
-       {
-               I2C_BOARD_INFO("pcf50633", 0x73),
-               .irq = GTA03_IRQ_PMU,
-               .platform_data = &om_gta03_pcf_pdata,
-       },
-       {
-               I2C_BOARD_INFO("pcap7200", 0x0a),
-               .irq = GTA03_IRQ_TOUCH,
-               .platform_data = &om_gta03_pcap7200_pdata,
-       },
-       {
-               I2C_BOARD_INFO("lp5521", 0x32),
-               .irq = GTA03_IRQ_LED,
-               .platform_data = &om_gta03_lp5521_pdata,
-       },
-       {
-               I2C_BOARD_INFO("wm8753", 0x1a),
-       },
-};
-
-struct platform_device s3c24xx_pwm_device = {
-       .name           = "s3c24xx_pwm",
-       .num_resources  = 0,
-};
-
-struct platform_device gta03_device_spi_lcm;
-
-static struct platform_device *om_gta03_devices[] __initdata = {
-       &s3c_device_fb,
-       &s3c_device_i2c0,
-       &gta03_device_spi_lcm,
-       &s3c_device_usbgadget,
-       &s3c24xx_pwm_device,
-};
-
-
-static void om_gta03_pmu_regulator_registered(struct pcf50633 *pcf, int id)
-{
-       struct platform_device *regulator, *pdev;
-
-       regulator = pcf->regulator_pdev[id];
-
-       switch(id) {
-               case PCF50633_REGULATOR_LDO4:
-                       pdev = &s3c_device_hsmmc0; /* uSD card */
-                       break;
-               case PCF50633_REGULATOR_LDO5: /* GPS regulator */
-                       pdev = &om_gta03_features_dev;
-                       break;
-               case PCF50633_REGULATOR_LDO6:
-                       pdev = &om_gta03_lcd_powerdev;
-                       break;
-               default:
-                       return;
-       }
-
-       pdev->dev.parent = &regulator->dev;
-       platform_device_register(pdev);
-}
-
-static struct platform_device *om_gta03_devices_pmu_children[] = {
-       &om_gta03_button_dev,
-//     &s3c_device_spi_acc1, /* relies on PMU reg for power */
-};
-
-/* this is called when pc50633 is probed, unfortunately quite late in the
- * day since it is an I2C bus device.  Here we can belatedly define some
- * platform devices with the advantage that we can mark the pcf50633 as the
- * parent.  This makes them get suspended and resumed with their parent
- * the pcf50633 still around.
- */
-
-static void om_gta03_pcf50633_attach_child_devices(struct pcf50633 *pcf)
-{
-       int n;
-
-       om_gta03_pcf = pcf;
-
-       for (n = 0; n < ARRAY_SIZE(om_gta03_devices_pmu_children); n++)
-               om_gta03_devices_pmu_children[n]->dev.parent = pcf->dev;
-
-       platform_add_devices(om_gta03_devices_pmu_children,
-                                    ARRAY_SIZE(om_gta03_devices_pmu_children));
-
-       /* Switch on backlight. Qi does not do it for us */
-       pcf50633_reg_write(pcf, PCF50633_REG_LEDENA, 0x00);
-       pcf50633_reg_write(pcf, PCF50633_REG_LEDDIM, 0x01);
-       pcf50633_reg_write(pcf, PCF50633_REG_LEDENA, 0x01);
-       pcf50633_reg_write(pcf, PCF50633_REG_LEDOUT, 0x3f);
-
-}
-
-static void gta03_l1k002_pwronoff(int level)
-{
-       gpio_direction_output(GTA03_GPIO_LCM_SD, 1);
-       udelay(15);
-
-       gpio_direction_output(GTA03_GPIO_LCM_RESET, !!level);
-
-       if (level){
-               udelay(15);
-               gpio_direction_output(GTA03_GPIO_LCM_SD, 0);
-       }
-}
-
-const struct l1k002_platform_data gta03_l1k002_pdata = {
-       .pwr_onoff = gta03_l1k002_pwronoff,
-};
-
-static struct spi_board_info gta03_spi_board_info[] = {
-       {
-       .modalias       = "l1k002",
-       .platform_data  = &gta03_l1k002_pdata,
-       /* controller_data */
-       /* irq */
-       .max_speed_hz   = 10 * 1000 * 1000,
-       .bus_num        = 1,
-       /* chip_select */
-       },
-};
-
-static void spi_gpio_cs(struct s3c64xx_spigpio_info *spi, int csidx, int cs)
-{
-       switch (cs) {
-       case BITBANG_CS_ACTIVE:
-               gpio_direction_output(GTA03_GPIO_LCM_CS, 0);
-               break;
-       case BITBANG_CS_INACTIVE:
-               gpio_direction_output(GTA03_GPIO_LCM_CS, 1);
-               break;
-       }
-}
-
-static struct s3c64xx_spigpio_info spi_gpio_cfg = {
-       .pin_clk        = GTA03_GPIO_LCM_CLK,
-       .pin_mosi       = GTA03_GPIO_LCM_MOSI,
-       /* no pinout to MISO */
-       .chip_select    = &spi_gpio_cs,
-       .num_chipselect = 1,
-       .bus_num        = 1,
-};
-
-struct platform_device gta03_device_spi_lcm = {
-       .name             = "spi_s3c64xx_gpio",
-       .id               = 1,
-       .dev = {
-               .platform_data = &spi_gpio_cfg,
-       },
-};
-
-
-
-
-
-
-
-extern void s3c64xx_init_io(struct map_desc *, int);
-
-struct s3c_plat_otg_data s3c_hs_otg_plat_data = {
-       .phyclk = 0
-};
-
-
-static void __init om_gta03_map_io(void)
-{
-       s3c64xx_init_io(om_gta03_6410_iodesc, ARRAY_SIZE(om_gta03_6410_iodesc));
-       s3c24xx_init_clocks(12000000);
-       s3c24xx_init_uarts(om_gta03_uartcfgs, ARRAY_SIZE(om_gta03_uartcfgs));
-}
-
-static void __init om_gta03_machine_init(void)
-{
-       s3c_pm_init();
-
-       s3c_device_usbgadget.dev.platform_data = &s3c_hs_otg_plat_data;
-
-       s3c_i2c0_set_platdata(NULL);
-       s3c_fb_set_platdata(&om_gta03_lcd_pdata);
-
-       i2c_register_board_info(0, om_gta03_i2c_devs,
-                                                ARRAY_SIZE(om_gta03_i2c_devs));
-
-       spi_register_board_info(gta03_spi_board_info,
-                                               ARRAY_SIZE(gta03_spi_board_info));
-
-       platform_add_devices(om_gta03_devices, ARRAY_SIZE(om_gta03_devices));
-
-       /* Register the HDQ and vibrator as children of pwm device */
-       gta03_hdq_device.dev.parent = &s3c24xx_pwm_device.dev;
-       platform_device_register(&gta03_hdq_device);
-}
-
-MACHINE_START(OPENMOKO_GTA03, "OM-GTA03")
-       /* Maintainer: Andy Green <andy@openmoko.com> */
-       .phys_io        = S3C_PA_UART & 0xfff00000,
-       .io_pg_offst    = (((u32)S3C_VA_UART) >> 18) & 0xfffc,
-       .boot_params    = S3C64XX_PA_SDRAM + 0x100,
-
-       .init_irq       = s3c6410_init_irq,
-       .map_io         = om_gta03_map_io,
-       .init_machine   = om_gta03_machine_init,
-       .timer          = &s3c24xx_timer,
-MACHINE_END
-
diff --git a/arch/arm/mach-s3c6410/om-3d7k-features.c b/arch/arm/mach-s3c6410/om-3d7k-features.c
new file mode 100644 (file)
index 0000000..9136fc9
--- /dev/null
@@ -0,0 +1,348 @@
+/*
+ * Support for features of Openmoko 3D7K
+ *
+ * (C) 2008 by Openmoko Inc.
+ * Author: Andy Green <andy@openmoko.com>
+ * All rights reserved.
+ *
+ * Somewhat based on the GTA01 / 02 neo1973_pm_ stuff mainly by Harald Welte
+ *
+ * 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
+ *
+ */
+
+#include <linux/module.h>
+#include <linux/init.h>
+#include <linux/kernel.h>
+#include <linux/delay.h>
+#include <linux/platform_device.h>
+
+#include <mach/hardware.h>
+#include <mach/om-3d7k.h>
+#include <asm/mach-types.h>
+
+#include <linux/regulator/consumer.h>
+#include <linux/mfd/pcf50633/core.h>
+#include <linux/mfd/pcf50633/gpio.h>
+#include <linux/mmc/host.h>
+
+#include <plat/sdhci.h>
+#include <plat/devs.h>
+
+#include <plat/gpio-cfg.h>
+
+enum feature {
+       OM_3D7K_GPS,            /* power to GPS section and LNA */
+       OM_3D7K_WLAN_BT,        /* WLAN and BT Module */
+       OM_3D7K_GSM,            /* GSM module */
+       OM_3D7K_USBHOST,        /* USB Host power generation */
+       OM_3D7K_VIB,            /* Vibrator */
+
+       OM_3D7K_FEATURE_COUNT   /* always last */
+};
+
+
+struct om_3d7k_feature_info {
+       const char * name;
+       int depower_on_suspend;
+       int on;
+};
+
+static struct om_3d7k_feature_info feature_info[OM_3D7K_FEATURE_COUNT] = {
+       [OM_3D7K_GPS] = { "gps_power",          1, 0 },
+       [OM_3D7K_WLAN_BT] =     { "wlan_bt_power",      1, 0 },
+       [OM_3D7K_GSM] = { "gsm_power",          0, 0 },
+       [OM_3D7K_USBHOST] =     { "usbhost_power",      1, 0 },
+       [OM_3D7K_VIB] = { "vibrator_power",     1, 0 },
+};
+
+static struct regulator *gps_regulator;
+
+
+
+static void om_3d7k_features_pwron_set_on(enum feature feature)
+{
+       int gpio;
+
+       switch (feature) {
+       case OM_3D7K_GPS:
+               regulator_enable(gps_regulator);
+               /* enable LNA */
+               gpio_direction_output(OM_3D7K_GPIO_GPS_LNA_EN, 1);
+               break;
+       case OM_3D7K_WLAN_BT:
+
+               for (gpio = S3C64XX_GPH(0); gpio < S3C64XX_GPH(6); gpio++) {
+                       s3c_gpio_cfgpin(gpio, S3C_GPIO_SFN(2)); /* sdio */
+                       s3c_gpio_setpull(gpio, S3C_GPIO_PULL_UP);
+               }
+               /* assert reset */
+               s3c_gpio_setpull(OM_3D7K_GPIO_WLAN_RESET, S3C_GPIO_PULL_NONE);
+               s3c_gpio_cfgpin(OM_3D7K_GPIO_WLAN_RESET, S3C_GPIO_SFN(1));
+               gpio_direction_output(OM_3D7K_GPIO_WLAN_RESET, 0);
+
+               /* "full power down (active low)" -- deassert it*/
+               gpio_direction_output(OM_3D7K_GPIO_WLAN_PWRDN, 1);
+               s3c_gpio_setpull(OM_3D7K_GPIO_WLAN_PWRDN, S3C_GPIO_PULL_NONE);
+               s3c_gpio_cfgpin(OM_3D7K_GPIO_WLAN_PWRDN, S3C_GPIO_SFN(1));
+
+               /* enable P-Channel mosfet switch for power */
+               gpio_direction_output(OM_3D7K_GPIO_NWLAN_POWER, 0);
+               s3c_gpio_setpull(OM_3D7K_GPIO_NWLAN_POWER, S3C_GPIO_PULL_NONE);
+               s3c_gpio_cfgpin(OM_3D7K_GPIO_NWLAN_POWER, S3C_GPIO_SFN(1));
+               msleep(50);
+               /* deassert reset */
+               gpio_direction_output(OM_3D7K_GPIO_WLAN_RESET, 1);
+               msleep(1500);
+               sdhci_s3c_force_presence_change(&s3c_device_hsmmc1);
+               break;
+       case OM_3D7K_GSM:
+               /* give power to GSM module */
+               s3c_gpio_setpull(OM_3D7K_GPIO_N_MODEM_RESET, S3C_GPIO_PULL_NONE);
+               s3c_gpio_setpull(OM_3D7K_GPIO_MODEM_ON, S3C_GPIO_PULL_NONE);
+               s3c_gpio_cfgpin(OM_3D7K_GPIO_N_MODEM_RESET, S3C_GPIO_SFN(1));
+               s3c_gpio_cfgpin(OM_3D7K_GPIO_MODEM_ON, S3C_GPIO_SFN(1));
+               gpio_direction_output(OM_3D7K_GPIO_N_MODEM_RESET, 0);
+               gpio_direction_output(OM_3D7K_GPIO_MODEM_ON, 1);
+               msleep(10);
+               gpio_direction_output(OM_3D7K_GPIO_MODEM_ON, 0);
+               msleep(150);
+               gpio_direction_output(OM_3D7K_GPIO_N_MODEM_RESET, 1);
+               msleep(300);
+               gpio_direction_output(OM_3D7K_GPIO_MODEM_ON, 1);
+               break;
+       case OM_3D7K_USBHOST:
+               pcf50633_gpio_set(om_3d7k_pcf, PCF50633_GPO, 1);
+               break;
+       case OM_3D7K_VIB:
+               gpio_direction_output(OM_3D7K_GPIO_VIBRATOR_ON, 1);
+               break;
+       default:
+               break;
+       }
+}
+
+static void om_3d7k_features_pwron_set_off(enum feature feature)
+{
+       int gpio;
+
+       switch (feature) {
+       case OM_3D7K_GPS:
+               /* disable LNA */
+               gpio_direction_output(OM_3D7K_GPIO_GPS_LNA_EN, 0);
+               regulator_disable(gps_regulator);
+               break;
+       case OM_3D7K_WLAN_BT:
+               gpio_direction_output(OM_3D7K_GPIO_WLAN_RESET, 0);
+               s3c_gpio_setpull(OM_3D7K_GPIO_WLAN_RESET, S3C_GPIO_PULL_NONE);
+               s3c_gpio_cfgpin(OM_3D7K_GPIO_WLAN_RESET, S3C_GPIO_SFN(1));
+
+               gpio_direction_output(OM_3D7K_GPIO_WLAN_PWRDN, 0);
+               s3c_gpio_setpull(OM_3D7K_GPIO_WLAN_PWRDN, S3C_GPIO_PULL_NONE);
+               s3c_gpio_cfgpin(OM_3D7K_GPIO_WLAN_PWRDN, S3C_GPIO_SFN(1));
+               msleep(500);
+               /* remove power from WLAN / BT module */
+               gpio_direction_output(OM_3D7K_GPIO_NWLAN_POWER, 1);
+               s3c_gpio_setpull(OM_3D7K_GPIO_NWLAN_POWER, S3C_GPIO_PULL_NONE);
+               s3c_gpio_cfgpin(OM_3D7K_GPIO_NWLAN_POWER, S3C_GPIO_SFN(1));
+
+               sdhci_s3c_force_presence_change(&s3c_device_hsmmc1);
+               for (gpio = S3C64XX_GPH(0); gpio < S3C64XX_GPH(6); gpio++) {
+                       s3c_gpio_cfgpin(gpio, S3C_GPIO_SFN(0)); /* input */
+                       s3c_gpio_setpull(gpio, S3C_GPIO_PULL_DOWN);
+               }
+               break;
+       case OM_3D7K_GSM:
+               /* remove power from WLAN / BT module */
+               s3c_gpio_cfgpin(OM_3D7K_GPIO_MODEM_ON, S3C_GPIO_SFN(1));
+               gpio_direction_output(OM_3D7K_GPIO_MODEM_ON, 0);
+               msleep(1100);
+               gpio_direction_output(OM_3D7K_GPIO_MODEM_ON, 1);
+               break;
+       case OM_3D7K_USBHOST:
+               pcf50633_gpio_set(om_3d7k_pcf, PCF50633_GPO, 0);
+               break;
+       case OM_3D7K_VIB:
+               gpio_direction_output(OM_3D7K_GPIO_VIBRATOR_ON, 0);
+               break;
+       default:
+               break;
+       }
+}
+
+static void om_3d7k_features_pwron_set(enum feature feature, int on)
+{
+       if ((on) && (!feature_info[feature].on))
+               om_3d7k_features_pwron_set_on(feature);
+       else
+               if ((!on) && (feature_info[feature].on))
+                       om_3d7k_features_pwron_set_off(feature);
+}
+
+static ssize_t om_3d7k_feature_read(struct device *dev,
+                                      struct device_attribute *attr, char *buf)
+{
+       int on;
+       int feature = 0;
+       int hit = 0;
+
+       while (!hit && feature < OM_3D7K_FEATURE_COUNT) {
+               if (!strcmp(attr->attr.name, feature_info[feature].name))
+                       hit = 1;
+               else
+                       feature++;
+       }
+
+       if (!hit)
+               return -EINVAL;
+
+       switch (feature) {
+       case OM_3D7K_GPS:
+               on = regulator_is_enabled(gps_regulator);
+               break;
+       case OM_3D7K_USBHOST:
+               on = pcf50633_gpio_get(om_3d7k_pcf, PCF50633_GPO);
+               break;
+       default:
+               on = feature_info[feature].on;
+       }
+
+       *buf++ = '0' + on;
+       *buf++='\n';
+       *buf = '\0';
+
+       return 3;
+}
+
+static ssize_t om_3d7k_feature_write(struct device *dev,
+                                       struct device_attribute *attr,
+                                       const char *buf, size_t count)
+{
+       int on = !!simple_strtoul(buf, NULL, 10);
+       int feature = 0;
+       int hit = 0;
+
+       while (!hit && feature < OM_3D7K_FEATURE_COUNT) {
+               if (!strcmp(attr->attr.name, feature_info[feature].name))
+                       hit = 1;
+               else
+                       feature++;
+       }
+
+       if (!hit)
+               return -EINVAL;
+
+       om_3d7k_features_pwron_set(feature, on);
+       feature_info[feature].on = on;
+
+       return count;
+}
+
+
+static DEVICE_ATTR(gps_power, 0644, om_3d7k_feature_read,
+                                                       om_3d7k_feature_write);
+
+static DEVICE_ATTR(wlan_bt_power, 0644, om_3d7k_feature_read,
+                                                       om_3d7k_feature_write);
+
+static DEVICE_ATTR(gsm_power, 0644, om_3d7k_feature_read,
+                                                       om_3d7k_feature_write);
+
+static DEVICE_ATTR(usbhost_power, 0644, om_3d7k_feature_read,
+                                                       om_3d7k_feature_write);
+
+static DEVICE_ATTR(vibrator_power, 0644, om_3d7k_feature_read,
+                                                       om_3d7k_feature_write);
+
+
+static struct attribute *om_3d7k_features_sysfs_entries[] = {
+       &dev_attr_gps_power.attr,
+       &dev_attr_wlan_bt_power.attr,
+       &dev_attr_gsm_power.attr,
+       &dev_attr_usbhost_power.attr,
+       &dev_attr_vibrator_power.attr,
+       NULL
+};
+
+
+static struct attribute_group om_3d7k_features_attr_group = {
+       .name   = NULL,
+       .attrs  = om_3d7k_features_sysfs_entries,
+};
+
+static int __init om_3d7k_features_probe(struct platform_device *pdev)
+{
+       gps_regulator = regulator_get(&pdev->dev, "RF_3V");
+       dev_info(&pdev->dev, "starting\n");
+
+       return sysfs_create_group(&pdev->dev.kobj,
+                                                &om_3d7k_features_attr_group);
+}
+
+static int om_3d7k_features_remove(struct platform_device *pdev)
+{
+
+       regulator_put(gps_regulator);
+       sysfs_remove_group(&pdev->dev.kobj, &om_3d7k_features_attr_group);
+
+       return 0;
+}
+
+
+#ifdef CONFIG_PM
+static int om_3d7k_features_suspend(struct platform_device *pdev,
+                                    pm_message_t state)
+{
+       int feature;
+
+       for (feature = 0; feature < OM_3D7K_FEATURE_COUNT; feature++)
+               if (feature_info[feature].depower_on_suspend)
+                       om_3d7k_features_pwron_set_off(feature);
+
+       return 0;
+}
+
+static int om_3d7k_features_resume(struct platform_device *pdev)
+{
+       int feature;
+
+       for (feature = 0; feature < OM_3D7K_FEATURE_COUNT; feature++)
+               if (feature_info[feature].depower_on_suspend)
+                       if (feature_info[feature].on)
+                               om_3d7k_features_pwron_set_on(feature);
+
+       return 0;
+}
+#else
+#define om_3d7k_features_suspend       NULL
+#define om_3d7k_features_resume        NULL
+#endif
+
+static struct platform_driver om_3d7k_features_driver = {
+       .probe          = om_3d7k_features_probe,
+       .remove         = om_3d7k_features_remove,
+       .suspend        = om_3d7k_features_suspend,
+       .resume         = om_3d7k_features_resume,
+       .driver         = {
+               .name           = "om-3d7k",
+       },
+};
+
+static int __devinit om_3d7k_features_init(void)
+{
+       return platform_driver_register(&om_3d7k_features_driver);
+}
+
+static void om_3d7k_features_exit(void)
+{
+       platform_driver_unregister(&om_3d7k_features_driver);
+}
+
+module_init(om_3d7k_features_init);
+module_exit(om_3d7k_features_exit);
+
+MODULE_LICENSE("GPL");
+MODULE_AUTHOR("Andy Green <andy@openmoko.com>");
+MODULE_DESCRIPTION("Openmoko OM_3D7K Feature Driver");
diff --git a/arch/arm/mach-s3c6410/om-gta03-features.c b/arch/arm/mach-s3c6410/om-gta03-features.c
deleted file mode 100644 (file)
index 71d734a..0000000
+++ /dev/null
@@ -1,348 +0,0 @@
-/*
- * Support for features of Openmoko GTA03
- *
- * (C) 2008 by Openmoko Inc.
- * Author: Andy Green <andy@openmoko.com>
- * All rights reserved.
- *
- * Somewhat based on the GTA01 / 02 neo1973_pm_ stuff mainly by Harald Welte
- *
- * 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
- *
- */
-
-#include <linux/module.h>
-#include <linux/init.h>
-#include <linux/kernel.h>
-#include <linux/delay.h>
-#include <linux/platform_device.h>
-
-#include <mach/hardware.h>
-#include <mach/om-gta03.h>
-#include <asm/mach-types.h>
-
-#include <linux/regulator/consumer.h>
-#include <linux/mfd/pcf50633/core.h>
-#include <linux/mfd/pcf50633/gpio.h>
-#include <linux/mmc/host.h>
-
-#include <plat/sdhci.h>
-#include <plat/devs.h>
-
-#include <plat/gpio-cfg.h>
-
-enum feature {
-       OM_GTA03_GPS,           /* power to GPS section and LNA */
-       OM_GTA03_WLAN_BT,       /* WLAN and BT Module */
-       OM_GTA03_GSM,           /* GSM module */
-       OM_GTA03_USBHOST,       /* USB Host power generation */
-       OM_GTA03_VIB,           /* Vibrator */
-
-       OM_GTA03_FEATURE_COUNT  /* always last */
-};
-
-
-struct om_gta03_feature_info {
-       const char * name;
-       int depower_on_suspend;
-       int on;
-};
-
-static struct om_gta03_feature_info feature_info[OM_GTA03_FEATURE_COUNT] = {
-       [OM_GTA03_GPS] =        { "gps_power",          1, 0 },
-       [OM_GTA03_WLAN_BT] =    { "wlan_bt_power",      1, 0 },
-       [OM_GTA03_GSM] =        { "gsm_power",          0, 0 },
-       [OM_GTA03_USBHOST] =    { "usbhost_power",      1, 0 },
-       [OM_GTA03_VIB] =        { "vibrator_power",     1, 0 },
-};
-
-static struct regulator *gps_regulator;
-
-
-
-static void om_gta03_features_pwron_set_on(enum feature feature)
-{
-       int gpio;
-
-       switch (feature) {
-       case OM_GTA03_GPS:
-               regulator_enable(gps_regulator);
-               /* enable LNA */
-               gpio_direction_output(GTA03_GPIO_GPS_LNA_EN, 1);
-               break;
-       case OM_GTA03_WLAN_BT:
-
-               for (gpio = S3C64XX_GPH(0); gpio < S3C64XX_GPH(6); gpio++) {
-                       s3c_gpio_cfgpin(gpio, S3C_GPIO_SFN(2)); /* sdio */
-                       s3c_gpio_setpull(gpio, S3C_GPIO_PULL_UP);
-               }
-               /* assert reset */
-               s3c_gpio_setpull(GTA03_GPIO_WLAN_RESET, S3C_GPIO_PULL_NONE);
-               s3c_gpio_cfgpin(GTA03_GPIO_WLAN_RESET, S3C_GPIO_SFN(1));
-               gpio_direction_output(GTA03_GPIO_WLAN_RESET, 0);
-
-               /* "full power down (active low)" -- deassert it*/
-               gpio_direction_output(GTA03_GPIO_WLAN_PWRDN, 1);
-               s3c_gpio_setpull(GTA03_GPIO_WLAN_PWRDN, S3C_GPIO_PULL_NONE);
-               s3c_gpio_cfgpin(GTA03_GPIO_WLAN_PWRDN, S3C_GPIO_SFN(1));
-
-               /* enable P-Channel mosfet switch for power */
-               gpio_direction_output(GTA03_GPIO_NWLAN_POWER, 0);
-               s3c_gpio_setpull(GTA03_GPIO_NWLAN_POWER, S3C_GPIO_PULL_NONE);
-               s3c_gpio_cfgpin(GTA03_GPIO_NWLAN_POWER, S3C_GPIO_SFN(1));
-               msleep(50);
-               /* deassert reset */
-               gpio_direction_output(GTA03_GPIO_WLAN_RESET, 1);
-               msleep(1500);
-               sdhci_s3c_force_presence_change(&s3c_device_hsmmc1);
-               break;
-       case OM_GTA03_GSM:
-               /* give power to GSM module */
-               s3c_gpio_setpull(GTA03_GPIO_N_MODEM_RESET, S3C_GPIO_PULL_NONE);
-               s3c_gpio_setpull(GTA03_GPIO_MODEM_ON, S3C_GPIO_PULL_NONE);
-               s3c_gpio_cfgpin(GTA03_GPIO_N_MODEM_RESET, S3C_GPIO_SFN(1));
-               s3c_gpio_cfgpin(GTA03_GPIO_MODEM_ON, S3C_GPIO_SFN(1));
-               gpio_direction_output(GTA03_GPIO_N_MODEM_RESET, 0);
-               gpio_direction_output(GTA03_GPIO_MODEM_ON, 1);
-               msleep(10);
-               gpio_direction_output(GTA03_GPIO_MODEM_ON, 0);
-               msleep(150);
-               gpio_direction_output(GTA03_GPIO_N_MODEM_RESET, 1);
-               msleep(300);
-               gpio_direction_output(GTA03_GPIO_MODEM_ON, 1);
-               break;
-       case OM_GTA03_USBHOST:
-               pcf50633_gpio_set(om_gta03_pcf, PCF50633_GPO, 1);
-               break;
-       case OM_GTA03_VIB:
-               gpio_direction_output(GTA03_GPIO_VIBRATOR_ON, 1);
-               break;
-       default:
-               break;
-       }
-}
-
-static void om_gta03_features_pwron_set_off(enum feature feature)
-{
-       int gpio;
-
-       switch (feature) {
-       case OM_GTA03_GPS:
-               /* disable LNA */
-               gpio_direction_output(GTA03_GPIO_GPS_LNA_EN, 0);
-               regulator_disable(gps_regulator);
-               break;
-       case OM_GTA03_WLAN_BT:
-               gpio_direction_output(GTA03_GPIO_WLAN_RESET, 0);
-               s3c_gpio_setpull(GTA03_GPIO_WLAN_RESET, S3C_GPIO_PULL_NONE);
-               s3c_gpio_cfgpin(GTA03_GPIO_WLAN_RESET, S3C_GPIO_SFN(1));
-
-               gpio_direction_output(GTA03_GPIO_WLAN_PWRDN, 0);
-               s3c_gpio_setpull(GTA03_GPIO_WLAN_PWRDN, S3C_GPIO_PULL_NONE);
-               s3c_gpio_cfgpin(GTA03_GPIO_WLAN_PWRDN, S3C_GPIO_SFN(1));
-               msleep(500);
-               /* remove power from WLAN / BT module */
-               gpio_direction_output(GTA03_GPIO_NWLAN_POWER, 1);
-               s3c_gpio_setpull(GTA03_GPIO_NWLAN_POWER, S3C_GPIO_PULL_NONE);
-               s3c_gpio_cfgpin(GTA03_GPIO_NWLAN_POWER, S3C_GPIO_SFN(1));
-
-               sdhci_s3c_force_presence_change(&s3c_device_hsmmc1);
-               for (gpio = S3C64XX_GPH(0); gpio < S3C64XX_GPH(6); gpio++) {
-                       s3c_gpio_cfgpin(gpio, S3C_GPIO_SFN(0)); /* input */
-                       s3c_gpio_setpull(gpio, S3C_GPIO_PULL_DOWN);
-               }
-               break;
-       case OM_GTA03_GSM:
-               /* remove power from WLAN / BT module */
-               s3c_gpio_cfgpin(GTA03_GPIO_MODEM_ON, S3C_GPIO_SFN(1));
-               gpio_direction_output(GTA03_GPIO_MODEM_ON, 0);
-               msleep(1100);
-               gpio_direction_output(GTA03_GPIO_MODEM_ON, 1);
-               break;
-       case OM_GTA03_USBHOST:
-               pcf50633_gpio_set(om_gta03_pcf, PCF50633_GPO, 0);
-               break;
-       case OM_GTA03_VIB:
-               gpio_direction_output(GTA03_GPIO_VIBRATOR_ON, 0);
-               break;
-       default:
-               break;
-       }
-}
-
-static void om_gta03_features_pwron_set(enum feature feature, int on)
-{
-       if ((on) && (!feature_info[feature].on))
-               om_gta03_features_pwron_set_on(feature);
-       else
-               if ((!on) && (feature_info[feature].on))
-                       om_gta03_features_pwron_set_off(feature);
-}
-
-static ssize_t om_gta03_feature_read(struct device *dev,
-                                      struct device_attribute *attr, char *buf)
-{
-       int on;
-       int feature = 0;
-       int hit = 0;
-
-       while (!hit && feature < OM_GTA03_FEATURE_COUNT) {
-               if (!strcmp(attr->attr.name, feature_info[feature].name))
-                       hit = 1;
-               else
-                       feature++;
-       }
-
-       if (!hit)
-               return -EINVAL;
-
-       switch (feature) {
-       case OM_GTA03_GPS:
-               on = regulator_is_enabled(gps_regulator);
-               break;
-       case OM_GTA03_USBHOST:
-               on = pcf50633_gpio_get(om_gta03_pcf, PCF50633_GPO);
-               break;
-       default:
-               on = feature_info[feature].on;
-       }
-
-       *buf++ = '0' + on;
-       *buf++='\n';
-       *buf = '\0';
-
-       return 3;
-}
-
-static ssize_t om_gta03_feature_write(struct device *dev,
-                                       struct device_attribute *attr,
-                                       const char *buf, size_t count)
-{
-       int on = !!simple_strtoul(buf, NULL, 10);
-       int feature = 0;
-       int hit = 0;
-
-       while (!hit && feature < OM_GTA03_FEATURE_COUNT) {
-               if (!strcmp(attr->attr.name, feature_info[feature].name))
-                       hit = 1;
-               else
-                       feature++;
-       }
-
-       if (!hit)
-               return -EINVAL;
-
-       om_gta03_features_pwron_set(feature, on);
-       feature_info[feature].on = on;
-
-       return count;
-}
-
-
-static DEVICE_ATTR(gps_power, 0644, om_gta03_feature_read,
-                                                       om_gta03_feature_write);
-
-static DEVICE_ATTR(wlan_bt_power, 0644, om_gta03_feature_read,
-                                                       om_gta03_feature_write);
-
-static DEVICE_ATTR(gsm_power, 0644, om_gta03_feature_read,
-                                                       om_gta03_feature_write);
-
-static DEVICE_ATTR(usbhost_power, 0644, om_gta03_feature_read,
-                                                       om_gta03_feature_write);
-
-static DEVICE_ATTR(vibrator_power, 0644, om_gta03_feature_read,
-                                                       om_gta03_feature_write);
-
-
-static struct attribute *om_gta03_features_sysfs_entries[] = {
-       &dev_attr_gps_power.attr,
-       &dev_attr_wlan_bt_power.attr,
-       &dev_attr_gsm_power.attr,
-       &dev_attr_usbhost_power.attr,
-       &dev_attr_vibrator_power.attr,
-       NULL
-};
-
-
-static struct attribute_group om_gta03_features_attr_group = {
-       .name   = NULL,
-       .attrs  = om_gta03_features_sysfs_entries,
-};
-
-static int __init om_gta03_features_probe(struct platform_device *pdev)
-{
-       gps_regulator = regulator_get(&pdev->dev, "RF_3V");
-       dev_info(&pdev->dev, "starting\n");
-
-       return sysfs_create_group(&pdev->dev.kobj,
-                                                &om_gta03_features_attr_group);
-}
-
-static int om_gta03_features_remove(struct platform_device *pdev)
-{
-
-       regulator_put(gps_regulator);
-       sysfs_remove_group(&pdev->dev.kobj, &om_gta03_features_attr_group);
-
-       return 0;
-}
-
-
-#ifdef CONFIG_PM
-static int om_gta03_features_suspend(struct platform_device *pdev,
-                                    pm_message_t state)
-{
-       int feature;
-
-       for (feature = 0; feature < OM_GTA03_FEATURE_COUNT; feature++)
-               if (feature_info[feature].depower_on_suspend)
-                       om_gta03_features_pwron_set_off(feature);
-
-       return 0;
-}
-
-static int om_gta03_features_resume(struct platform_device *pdev)
-{
-       int feature;
-
-       for (feature = 0; feature < OM_GTA03_FEATURE_COUNT; feature++)
-               if (feature_info[feature].depower_on_suspend)
-                       if (feature_info[feature].on)
-                               om_gta03_features_pwron_set_on(feature);
-
-       return 0;
-}
-#else
-#define om_gta03_features_suspend      NULL
-#define om_gta03_features_resume       NULL
-#endif
-
-static struct platform_driver om_gta03_features_driver = {
-       .probe          = om_gta03_features_probe,
-       .remove         = om_gta03_features_remove,
-       .suspend        = om_gta03_features_suspend,
-       .resume         = om_gta03_features_resume,
-       .driver         = {
-               .name           = "om-gta03",
-       },
-};
-
-static int __devinit om_gta03_features_init(void)
-{
-       return platform_driver_register(&om_gta03_features_driver);
-}
-
-static void om_gta03_features_exit(void)
-{
-       platform_driver_unregister(&om_gta03_features_driver);
-}
-
-module_init(om_gta03_features_init);
-module_exit(om_gta03_features_exit);
-
-MODULE_LICENSE("GPL");
-MODULE_AUTHOR("Andy Green <andy@openmoko.com>");
-MODULE_DESCRIPTION("Openmoko GTA03 Feature Driver");
diff --git a/build b/build
index b0e49eb..fd98999 100755 (executable)
--- a/build
+++ b/build
@@ -45,9 +45,9 @@ if [ ! -z "`grep CONFIG_MACH_NEO1973_GTA02=y $1/.config`" ] ; then
        PRODUCT=GTA02
 fi
 
-if [ ! -z "`grep CONFIG_MACH_OPENMOKO_GTA03=y $1/.config`" ] ; then
+if [ ! -z "`grep CONFIG_MACH_OM_3D7K=y $1/.config`" ] ; then
         START=50008000
-        PRODUCT=GTA03
+        PRODUCT=OM_3D7K
 fi
 
 if [ ! -z "`grep CONFIG_MACH_SMDK6410=y $1/.config`" ] ; then
index 73e29b8..e8e9cc6 100644 (file)
@@ -29,7 +29,7 @@
 #include <linux/pcap7200.h>
 #include <../drivers/input/touchscreen/ts_filter.h>
 
-#include <mach/om-gta03.h>
+#include <mach/om-3d7k.h>
 
 #define PCAP7200_OP_MODE_REG   0x07
 #define RPT_PKT_SIZE   5
index 9953959..446414f 100644 (file)
@@ -90,7 +90,7 @@ static void s3c64xx_spigpio_chipselect(struct spi_device *dev, int value)
 {
        struct s3c64xx_spigpio *sg = spidev_to_sg(dev);
 
-       if (sg->info && sg->info->chip_select)
+       if (sg && sg->info && sg->info->chip_select)
                (sg->info->chip_select)(sg->info, dev->chip_select, value);
 }
 
index 1ed8748..9881652 100644 (file)
@@ -52,13 +52,13 @@ config SND_S3C24XX_SOC_NEO1973_GTA02_WM8753
          Say Y if you want to add support for SoC audio on neo1973 gta02
          with the WM8753 codec
 
-config SND_S3C24XX_SOC_OM_GTA03_WM8753
+config SND_S3C24XX_SOC_OM_3D7K_WM8753
        tristate "SoC I2S Audio support for OM GTA03 - WM8753"
        depends on SND_S3C24XX_SOC && MACH_OPENMOKO_GTA03
        select SND_S3C64XX_SOC_I2S
        select SND_SOC_WM8753
        help
-         Say Y if you want support for SoC audio on Openmoko GTA03
+         Say Y if you want support for SoC audio on Openmoko 3D7K
          with the WM8753 codec.
 
 config SND_S3C24XX_SOC_SMDK2443_WM9710
index 08bd587..f464e25 100644 (file)
@@ -20,7 +20,7 @@ snd-soc-smdk2443-wm9710-objs := smdk2443_wm9710.o
 snd-soc-ln2440sbc-alc650-objs := ln2440sbc_alc650.o
 snd-soc-s3c24xx-uda134x-objs := s3c24xx_uda134x.o
 snd-soc-neo1973-gta02-wm8753-objs := neo1973_gta02_wm8753.o
-snd-soc-om-gta03-wm8753-objs := om_gta03_wm8753.o
+snd-soc-om-3d7k-wm8753-objs := om_3d7k_wm8753.o
 snd-soc-smdk6410-wm8731-objs := smdk6410-wm8731.o
 
 obj-$(CONFIG_SND_S3C24XX_SOC_JIVE_WM8750) += snd-soc-jive-wm8750.o
@@ -29,5 +29,5 @@ obj-$(CONFIG_SND_S3C24XX_SOC_SMDK2443_WM9710) += snd-soc-smdk2443-wm9710.o
 obj-$(CONFIG_SND_S3C24XX_SOC_LN2440SBC_ALC650) += snd-soc-ln2440sbc-alc650.o
 obj-$(CONFIG_SND_S3C24XX_SOC_S3C24XX_UDA134X) += snd-soc-s3c24xx-uda134x.o
 obj-$(CONFIG_SND_S3C24XX_SOC_NEO1973_GTA02_WM8753) += snd-soc-neo1973-gta02-wm8753.o
-obj-$(CONFIG_SND_S3C24XX_SOC_OM_GTA03_WM8753) += snd-soc-om-gta03-wm8753.o
+obj-$(CONFIG_SND_S3C24XX_SOC_OM_3D7K_WM8753) += snd-soc-om-3d7k-wm8753.o
 obj-$(CONFIG_SND_S3C64XX_SOC_SMDK6410_WM8731) += snd-soc-smdk6410-wm8731.o
diff --git a/sound/soc/s3c24xx/om_3d7k_wm8753.c b/sound/soc/s3c24xx/om_3d7k_wm8753.c
new file mode 100644 (file)
index 0000000..8a823f1
--- /dev/null
@@ -0,0 +1,568 @@
+/*
+ * om_3d7K_wm8753.c  --  SoC audio for 3D7K
+ *
+ * Based on neo1973_gta02_wm8753
+ *
+ * Copyright 2009 Openmoko Inc
+ * Author: Ben Dooks <ben@simtec.co.uk>
+ * Copyright 2007 Openmoko Inc
+ * Author: Graeme Gregory <graeme@openmoko.org>
+ * Copyright 2007 Wolfson Microelectronics PLC.
+ * Author: Graeme Gregory <linux@wolfsonmicro.com>
+ *
+ *  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/module.h>
+#include <linux/moduleparam.h>
+#include <linux/timer.h>
+#include <linux/interrupt.h>
+#include <linux/platform_device.h>
+#include <linux/i2c.h>
+#include <sound/core.h>
+#include <sound/pcm.h>
+#include <sound/soc.h>
+#include <sound/soc-dapm.h>
+
+#include <asm/mach-types.h>
+#include <asm/hardware/scoop.h>
+
+#include <plat/regs-s3c2412-iis.h>
+
+#include "../codecs/wm8753.h"
+#include "s3c24xx-pcm.h"
+#include "s3c64xx-i2s.h"
+
+/* define the scenarios */
+#define NEO_AUDIO_OFF                  0
+#define NEO_GSM_CALL_AUDIO_HANDSET     1
+#define NEO_GSM_CALL_AUDIO_HEADSET     2
+#define NEO_GSM_CALL_AUDIO_BLUETOOTH   3
+#define NEO_STEREO_TO_SPEAKERS         4
+#define NEO_STEREO_TO_HEADPHONES       5
+#define NEO_CAPTURE_HANDSET            6
+#define NEO_CAPTURE_HEADSET            7
+#define NEO_CAPTURE_BLUETOOTH          8
+#define NEO_STEREO_TO_HANDSET_SPK      9
+
+static struct snd_soc_card om_3d7K;
+
+static int om_3d7K_hifi_hw_params(struct snd_pcm_substream *substream,
+                                  struct snd_pcm_hw_params *params)
+{
+       struct snd_soc_pcm_runtime *rtd = substream->private_data;
+       struct snd_soc_dai *codec_dai = rtd->dai->codec_dai;
+       struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai;
+       unsigned int pll_out = 0, bclk = 0;
+       int ret = 0;
+       unsigned long iis_clkrate;
+
+       iis_clkrate = s3c64xx_i2s_get_clockrate(cpu_dai);
+
+       switch (params_rate(params)) {
+       case 8000:
+       case 16000:
+               pll_out = 12288000;
+               break;
+       case 48000:
+               bclk = WM8753_BCLK_DIV_4;
+               pll_out = 12288000;
+               break;
+       case 96000:
+               bclk = WM8753_BCLK_DIV_2;
+               pll_out = 12288000;
+               break;
+       case 11025:
+               bclk = WM8753_BCLK_DIV_16;
+               pll_out = 11289600;
+               break;
+       case 22050:
+               bclk = WM8753_BCLK_DIV_8;
+               pll_out = 11289600;
+               break;
+       case 44100:
+               bclk = WM8753_BCLK_DIV_4;
+               pll_out = 11289600;
+               break;
+       case 88200:
+               bclk = WM8753_BCLK_DIV_2;
+               pll_out = 11289600;
+               break;
+       }
+
+       ret = snd_soc_dai_set_sysclk(cpu_dai, S3C64XX_CLKSRC_MUX, 0,
+                                    SND_SOC_CLOCK_OUT);
+       if (ret < 0)
+               goto err;
+
+       /* set codec DAI configuration */
+       ret = snd_soc_dai_set_fmt(codec_dai,
+                                 SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF |
+                                 SND_SOC_DAIFMT_CBM_CFM);
+       if (ret < 0)
+               goto err;
+
+       /* set cpu DAI configuration */
+       ret = snd_soc_dai_set_fmt(cpu_dai,
+                                 SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF |
+                                 SND_SOC_DAIFMT_CBM_CFM);
+       if (ret < 0)
+               goto err;
+
+       /* set the codec system clock for DAC and ADC */
+       ret = snd_soc_dai_set_sysclk(codec_dai, WM8753_MCLK, pll_out,
+                                    SND_SOC_CLOCK_IN);
+       if (ret < 0)
+               goto err;
+
+#if 0
+       /* do not think we need to set this if the cpu is not the bitclk
+        * master */
+       /* set MCLK division for sample rate */
+       ret = snd_soc_dai_set_clkdiv(cpu_dai, S3C24XX_DIV_MCLK,
+                                    S3C2410_IISMOD_32FS);
+       if (ret < 0)
+               return ret;
+#endif
+
+       /* set codec BCLK division for sample rate */
+       ret = snd_soc_dai_set_clkdiv(codec_dai, WM8753_BCLKDIV, bclk);
+       if (ret < 0)
+               goto err;
+
+       /* set prescaler division for sample rate */
+       ret = snd_soc_dai_set_clkdiv(cpu_dai, S3C64XX_DIV_PRESCALER, 2-1);
+       if (ret < 0)
+               goto err;
+
+       /* codec PLL input is ACLK/2 */
+       ret = snd_soc_dai_set_pll(codec_dai, WM8753_PLL1,
+                                 iis_clkrate / 2, pll_out);
+       if (ret < 0)
+               goto err;
+
+       return 0;
+
+err:
+       printk(KERN_ERR "%s: failed %d\n", __func__, ret);
+       return ret;
+}
+
+static int om_3d7K_hifi_hw_free(struct snd_pcm_substream *substream)
+{
+       struct snd_soc_pcm_runtime *rtd = substream->private_data;
+       struct snd_soc_dai *codec_dai = rtd->dai->codec_dai;
+
+       /* disable the PLL */
+       return snd_soc_dai_set_pll(codec_dai, WM8753_PLL1, 0, 0);
+}
+
+/*
+ * 3D7K WM8753 HiFi DAI opserations.
+ */
+static struct snd_soc_ops om_3d7K_hifi_ops = {
+       .hw_params      = om_3d7K_hifi_hw_params,
+       .hw_free        = om_3d7K_hifi_hw_free,
+};
+
+static int om_3d7K_voice_hw_params(struct snd_pcm_substream *substream,
+                                   struct snd_pcm_hw_params *params)
+{
+       struct snd_soc_pcm_runtime *rtd = substream->private_data;
+       struct snd_soc_dai *codec_dai = rtd->dai->codec_dai;
+       unsigned int pcmdiv = 0;
+       int ret = 0;
+       unsigned long iis_clkrate;
+
+       iis_clkrate = s3c64xx_i2s_get_clockrate(rtd->dai->cpu_dai);
+
+       if (params_rate(params) != 8000)
+               return -EINVAL;
+       if (params_channels(params) != 1)
+               return -EINVAL;
+
+       pcmdiv = WM8753_PCM_DIV_6; /* 2.048 MHz */
+
+       /* todo: gg check mode (DSP_B) against CSR datasheet */
+       /* set codec DAI configuration */
+       ret = snd_soc_dai_set_fmt(codec_dai, (SND_SOC_DAIFMT_DSP_B |
+                                             SND_SOC_DAIFMT_NB_NF |
+                                             SND_SOC_DAIFMT_CBS_CFS));
+       if (ret < 0)
+               return ret;
+
+       /* set the codec system clock for DAC and ADC */
+       ret = snd_soc_dai_set_sysclk(codec_dai, WM8753_PCMCLK,
+                                    12288000, SND_SOC_CLOCK_IN);
+       if (ret < 0)
+               return ret;
+
+       /* set codec PCM division for sample rate */
+       ret = snd_soc_dai_set_clkdiv(codec_dai, WM8753_PCMDIV, pcmdiv);
+       if (ret < 0)
+               return ret;
+
+       /* configue and enable PLL for 12.288MHz output */
+       ret = snd_soc_dai_set_pll(codec_dai, WM8753_PLL2,
+                                 iis_clkrate / 2, 12288000);
+       if (ret < 0)
+               return ret;
+
+       return 0;
+}
+
+static int om_3d7K_voice_hw_free(struct snd_pcm_substream *substream)
+{
+       struct snd_soc_pcm_runtime *rtd = substream->private_data;
+       struct snd_soc_dai *codec_dai = rtd->dai->codec_dai;
+
+       /* disable the PLL */
+       return snd_soc_dai_set_pll(codec_dai, WM8753_PLL2, 0, 0);
+}
+
+static struct snd_soc_ops om_3d7K_voice_ops = {
+       .hw_params      = om_3d7K_voice_hw_params,
+       .hw_free        = om_3d7K_voice_hw_free,
+};
+
+static int om_3d7K_set_stereo_out(struct snd_kcontrol *kcontrol,
+                                  struct snd_ctl_elem_value *ucontrol)
+{
+       struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
+       int val = ucontrol->value.integer.value[0];
+
+       snd_soc_dapm_set_endpoint(codec, "Stereo Out", val);
+       snd_soc_dapm_sync(codec);
+
+       return 0;
+}
+
+static int om_3d7K_get_stereo_out(struct snd_kcontrol *kcontrol,
+                                  struct snd_ctl_elem_value *ucontrol)
+{
+       struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
+
+       ucontrol->value.integer.value[0] =
+               snd_soc_dapm_get_endpoint(codec, "Stereo Out");
+
+       return 0;
+}
+
+
+static int om_3d7K_set_gsm_out(struct snd_kcontrol *kcontrol,
+                               struct snd_ctl_elem_value *ucontrol)
+{
+       struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
+       int val = ucontrol->value.integer.value[0];
+
+       snd_soc_dapm_set_endpoint(codec, "GSM Line Out", val);
+       snd_soc_dapm_sync(codec);
+
+       return 0;
+}
+
+static int om_3d7K_get_gsm_out(struct snd_kcontrol *kcontrol,
+                               struct snd_ctl_elem_value *ucontrol)
+{
+       struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
+
+       ucontrol->value.integer.value[0] =
+               snd_soc_dapm_get_endpoint(codec, "GSM Line Out");
+
+       return 0;
+}
+
+static int om_3d7K_set_gsm_in(struct snd_kcontrol *kcontrol,
+                              struct snd_ctl_elem_value *ucontrol)
+{
+       struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
+       int val = ucontrol->value.integer.value[0];
+
+       snd_soc_dapm_set_endpoint(codec, "GSM Line In", val);
+       snd_soc_dapm_sync(codec);
+
+       return 0;
+}
+
+static int om_3d7K_get_gsm_in(struct snd_kcontrol *kcontrol,
+                              struct snd_ctl_elem_value *ucontrol)
+{
+       struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
+
+       ucontrol->value.integer.value[0] =
+               snd_soc_dapm_get_endpoint(codec, "GSM Line In");
+
+       return 0;
+}
+
+static int om_3d7K_set_headset_mic(struct snd_kcontrol *kcontrol,
+                                   struct snd_ctl_elem_value *ucontrol)
+{
+       struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
+       int val = ucontrol->value.integer.value[0];
+
+       snd_soc_dapm_set_endpoint(codec, "Headset Mic", val);
+       snd_soc_dapm_sync(codec);
+
+       return 0;
+}
+
+static int om_3d7K_get_headset_mic(struct snd_kcontrol *kcontrol,
+                                   struct snd_ctl_elem_value *ucontrol)
+{
+       struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
+
+       ucontrol->value.integer.value[0] =
+               snd_soc_dapm_get_endpoint(codec, "Headset Mic");
+
+       return 0;
+}
+
+static int om_3d7K_set_handset_mic(struct snd_kcontrol *kcontrol,
+                                   struct snd_ctl_elem_value *ucontrol)
+{
+       struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
+       int val = ucontrol->value.integer.value[0];
+
+       snd_soc_dapm_set_endpoint(codec, "Handset Mic", val);
+
+       snd_soc_dapm_sync(codec);
+
+       return 0;
+}
+
+static int om_3d7K_get_handset_mic(struct snd_kcontrol *kcontrol,
+                                   struct snd_ctl_elem_value *ucontrol)
+{
+       struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
+
+       ucontrol->value.integer.value[0] =
+               snd_soc_dapm_get_endpoint(codec, "Handset Mic");
+
+       return 0;
+}
+
+static int om_3d7K_set_handset_spk(struct snd_kcontrol *kcontrol,
+                                   struct snd_ctl_elem_value *ucontrol)
+{
+       struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
+       int val = ucontrol->value.integer.value[0];
+
+       snd_soc_dapm_set_endpoint(codec, "Handset Spk", val);
+
+       snd_soc_dapm_sync(codec);
+
+       return 0;
+}
+
+static int om_3d7K_get_handset_spk(struct snd_kcontrol *kcontrol,
+                                   struct snd_ctl_elem_value *ucontrol)
+{
+       struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
+
+       ucontrol->value.integer.value[0] =
+               snd_soc_dapm_get_endpoint(codec, "Handset Spk");
+
+       return 0;
+}
+
+static const struct snd_soc_dapm_widget wm8753_dapm_widgets[] = {
+       SND_SOC_DAPM_LINE("Stereo Out", NULL),
+       SND_SOC_DAPM_LINE("GSM Line Out", NULL),
+       SND_SOC_DAPM_LINE("GSM Line In", NULL),
+       SND_SOC_DAPM_MIC("Headset Mic", NULL),
+       SND_SOC_DAPM_MIC("Handset Mic", NULL),
+       SND_SOC_DAPM_SPK("Handset Spk", NULL),
+};
+
+
+/* example machine audio_mapnections */
+static const struct snd_soc_dapm_route audio_map[] = {
+
+       {"Stereo Out", NULL, "LOUT2"},
+       {"Stereo Out", NULL, "ROUT2"},
+
+       /* Connections to the GSM Module */
+       {"GSM Line Out", NULL, "MONO1"},
+       {"GSM Line Out", NULL, "MONO2"},
+       {"RXP", NULL, "GSM Line In"},
+       {"RXN", NULL, "GSM Line In"},
+
+       /* Connections to Headset */
+       {"MIC1", NULL, "Mic Bias"},
+       {"Mic Bias", NULL, "Headset Mic"},
+
+       /* Call Mic */
+       {"MIC2", NULL, "Mic Bias"},
+       {"MIC2N", NULL, "Mic Bias"},
+       {"Mic Bias", NULL, "Handset Mic"},
+
+       /* Call Speaker */
+       {"Handset Spk", NULL, "OUT3"},
+       {"Handset Spk", NULL, "LOUT1"},
+
+       /* Connect the ALC pins */
+       {"ACIN", NULL, "ACOP"},
+};
+
+static const struct snd_kcontrol_new wm8753_om_3d7K_controls[] = {
+       SOC_SINGLE_EXT("DAPM Stereo Out Switch", 0, 0, 1, 0,
+               om_3d7K_get_stereo_out,
+               om_3d7K_set_stereo_out),
+       SOC_SINGLE_EXT("DAPM GSM Line Out Switch", 1, 0, 1, 0,
+               om_3d7K_get_gsm_out,
+               om_3d7K_set_gsm_out),
+       SOC_SINGLE_EXT("DAPM GSM Line In Switch", 2, 0, 1, 0,
+               om_3d7K_get_gsm_in,
+               om_3d7K_set_gsm_in),
+       SOC_SINGLE_EXT("DAPM Headset Mic Switch", 3, 0, 1, 0,
+               om_3d7K_get_headset_mic,
+               om_3d7K_set_headset_mic),
+       SOC_SINGLE_EXT("DAPM Handset Mic Switch", 4, 0, 1, 0,
+               om_3d7K_get_handset_mic,
+               om_3d7K_set_handset_mic),
+       SOC_SINGLE_EXT("DAPM Handset Spk Switch", 5, 0, 1, 0,
+               om_3d7K_get_handset_spk,
+               om_3d7K_set_handset_spk),
+};
+
+/*
+ * This is an example machine initialisation for a wm8753 connected to a
+ * neo1973 GTA02.
+ */
+static int om_3d7K_wm8753_init(struct snd_soc_codec *codec)
+{
+       int i, err;
+
+       /* set up NC codec pins */
+       snd_soc_dapm_set_endpoint(codec, "OUT4",  0);
+       snd_soc_dapm_set_endpoint(codec, "LINE1", 0);
+       snd_soc_dapm_set_endpoint(codec, "LINE2", 0);
+
+
+       /* Add neo1973 gta02 specific widgets */
+       snd_soc_dapm_new_controls(codec, wm8753_dapm_widgets,
+                                 ARRAY_SIZE(wm8753_dapm_widgets));
+
+       /* add neo1973 gta02 specific controls */
+       for (i = 0; i < ARRAY_SIZE(wm8753_om_3d7K_controls); i++) {
+               err = snd_ctl_add(codec->card,
+                       snd_soc_cnew(&wm8753_om_3d7K_controls[i],
+                       codec, NULL));
+               if (err < 0)
+                       return err;
+       }
+
+       /* set up neo1973 gta02 specific audio path audio_mapnects */
+       snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map));
+
+       /* set endpoints to default off mode */
+       snd_soc_dapm_set_endpoint(codec, "Stereo Out",  0);
+       snd_soc_dapm_set_endpoint(codec, "GSM Line Out",0);
+       snd_soc_dapm_set_endpoint(codec, "GSM Line In", 0);
+       snd_soc_dapm_set_endpoint(codec, "Headset Mic", 0);
+       snd_soc_dapm_set_endpoint(codec, "Handset Mic", 0);
+       snd_soc_dapm_set_endpoint(codec, "Handset Spk", 0);
+
+       snd_soc_dapm_sync(codec);
+
+       return 0;
+}
+
+/*
+ * BT Codec DAI
+ */
+static struct snd_soc_dai bt_dai =
+{      .name = "Bluetooth",
+       .id = 0,
+       .playback = {
+               .channels_min = 1,
+               .channels_max = 1,
+               .rates = SNDRV_PCM_RATE_8000,
+               .formats = SNDRV_PCM_FMTBIT_S16_LE,
+       },
+       .capture = {
+               .channels_min = 1,
+               .channels_max = 1,
+               .rates = SNDRV_PCM_RATE_8000,
+               .formats = SNDRV_PCM_FMTBIT_S16_LE,
+       },
+};
+
+static struct snd_soc_dai_link om_3d7K_dai[] = {
+       { /* Hifi Playback - for similatious use with voice below */
+               .name           = "WM8753",
+               .stream_name    = "WM8753 HiFi",
+               .cpu_dai        = &s3c64xx_i2s_dai,
+               .codec_dai      = &wm8753_dai[WM8753_DAI_HIFI],
+               .init           = om_3d7K_wm8753_init,
+               .ops            = &om_3d7K_hifi_ops,
+       },
+       { /* Voice via BT */
+               .name           = "Bluetooth",
+               .stream_name    = "Voice",
+               .cpu_dai        = &bt_dai,
+               .codec_dai      = &wm8753_dai[WM8753_DAI_VOICE],
+               .ops            = &om_3d7K_voice_ops,
+       },
+};
+
+static struct snd_soc_card om_3d7K = {
+       .name           = "om-3d7K",
+       .platform       = &s3c24xx_soc_platform,
+       .dai_link       = om_3d7K_dai,
+       .num_links      = ARRAY_SIZE(om_3d7K_dai),
+};
+
+static struct snd_soc_device om_3d7K_snd_devdata = {
+       .card           = &om_3d7K,
+       .codec_dev      = &soc_codec_dev_wm8753,
+};
+
+static struct platform_device *om_3d7K_snd_device;
+
+static int __init om_3d7K_init(void)
+{
+       int ret;
+
+       if (!machine_is_openmoko_gta03()) {
+               printk(KERN_INFO "Only 3D7K supported by ASoC driver\n");
+               return -ENODEV;
+       }
+
+       /* register bluetooth DAI here */
+       ret = snd_soc_register_dai(&bt_dai);
+       if (ret)
+               return ret;
+
+       om_3d7K_snd_device = platform_device_alloc("soc-audio", 1);
+       if (!om_3d7K_snd_device)
+               return -ENOMEM;
+
+       platform_set_drvdata(om_3d7K_snd_device, &om_3d7K_snd_devdata);
+       om_3d7K_snd_devdata.dev = &om_3d7K_snd_device->dev;
+       ret = platform_device_add(om_3d7K_snd_device);
+
+       if (ret) {
+               platform_device_put(om_3d7K_snd_device);
+               return ret;
+       }
+
+       return ret;
+}
+
+static void __exit om_3d7K_exit(void)
+{
+       platform_device_unregister(om_3d7K_snd_device);
+}
+
+module_init(om_3d7K_init);
+module_exit(om_3d7K_exit);
+
+/* Module information */
+MODULE_AUTHOR("Graeme Gregory, graeme@openmoko.org; Ben Dooks <ben@simtec.co.uk>");
+MODULE_DESCRIPTION("ALSA SoC WM8753 OM 3D7K");
+MODULE_LICENSE("GPL");
diff --git a/sound/soc/s3c24xx/om_gta03_wm8753.c b/sound/soc/s3c24xx/om_gta03_wm8753.c
deleted file mode 100644 (file)
index 8df3c75..0000000
+++ /dev/null
@@ -1,568 +0,0 @@
-/*
- * om_gta03_wm8753.c  --  SoC audio for GTA03
- *
- * Based on neo1973_gta02_wm8753
- *
- * Copyright 2009 Openmoko Inc
- * Author: Ben Dooks <ben@simtec.co.uk>
- * Copyright 2007 Openmoko Inc
- * Author: Graeme Gregory <graeme@openmoko.org>
- * Copyright 2007 Wolfson Microelectronics PLC.
- * Author: Graeme Gregory <linux@wolfsonmicro.com>
- *
- *  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/module.h>
-#include <linux/moduleparam.h>
-#include <linux/timer.h>
-#include <linux/interrupt.h>
-#include <linux/platform_device.h>
-#include <linux/i2c.h>
-#include <sound/core.h>
-#include <sound/pcm.h>
-#include <sound/soc.h>
-#include <sound/soc-dapm.h>
-
-#include <asm/mach-types.h>
-#include <asm/hardware/scoop.h>
-
-#include <plat/regs-s3c2412-iis.h>
-
-#include "../codecs/wm8753.h"
-#include "s3c24xx-pcm.h"
-#include "s3c64xx-i2s.h"
-
-/* define the scenarios */
-#define NEO_AUDIO_OFF                  0
-#define NEO_GSM_CALL_AUDIO_HANDSET     1
-#define NEO_GSM_CALL_AUDIO_HEADSET     2
-#define NEO_GSM_CALL_AUDIO_BLUETOOTH   3
-#define NEO_STEREO_TO_SPEAKERS         4
-#define NEO_STEREO_TO_HEADPHONES       5
-#define NEO_CAPTURE_HANDSET            6
-#define NEO_CAPTURE_HEADSET            7
-#define NEO_CAPTURE_BLUETOOTH          8
-#define NEO_STEREO_TO_HANDSET_SPK      9
-
-static struct snd_soc_card om_gta03;
-
-static int om_gta03_hifi_hw_params(struct snd_pcm_substream *substream,
-                                  struct snd_pcm_hw_params *params)
-{
-       struct snd_soc_pcm_runtime *rtd = substream->private_data;
-       struct snd_soc_dai *codec_dai = rtd->dai->codec_dai;
-       struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai;
-       unsigned int pll_out = 0, bclk = 0;
-       int ret = 0;
-       unsigned long iis_clkrate;
-
-       iis_clkrate = s3c64xx_i2s_get_clockrate(cpu_dai);
-
-       switch (params_rate(params)) {
-       case 8000:
-       case 16000:
-               pll_out = 12288000;
-               break;
-       case 48000:
-               bclk = WM8753_BCLK_DIV_4;
-               pll_out = 12288000;
-               break;
-       case 96000:
-               bclk = WM8753_BCLK_DIV_2;
-               pll_out = 12288000;
-               break;
-       case 11025:
-               bclk = WM8753_BCLK_DIV_16;
-               pll_out = 11289600;
-               break;
-       case 22050:
-               bclk = WM8753_BCLK_DIV_8;
-               pll_out = 11289600;
-               break;
-       case 44100:
-               bclk = WM8753_BCLK_DIV_4;
-               pll_out = 11289600;
-               break;
-       case 88200:
-               bclk = WM8753_BCLK_DIV_2;
-               pll_out = 11289600;
-               break;
-       }
-
-       ret = snd_soc_dai_set_sysclk(cpu_dai, S3C64XX_CLKSRC_MUX, 0,
-                                    SND_SOC_CLOCK_OUT);
-       if (ret < 0)
-               goto err;
-
-       /* set codec DAI configuration */
-       ret = snd_soc_dai_set_fmt(codec_dai,
-                                 SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF |
-                                 SND_SOC_DAIFMT_CBM_CFM);
-       if (ret < 0)
-               goto err;
-
-       /* set cpu DAI configuration */
-       ret = snd_soc_dai_set_fmt(cpu_dai,
-                                 SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF |
-                                 SND_SOC_DAIFMT_CBM_CFM);
-       if (ret < 0)
-               goto err;
-
-       /* set the codec system clock for DAC and ADC */
-       ret = snd_soc_dai_set_sysclk(codec_dai, WM8753_MCLK, pll_out,
-                                    SND_SOC_CLOCK_IN);
-       if (ret < 0)
-               goto err;
-
-#if 0
-       /* do not think we need to set this if the cpu is not the bitclk
-        * master */
-       /* set MCLK division for sample rate */
-       ret = snd_soc_dai_set_clkdiv(cpu_dai, S3C24XX_DIV_MCLK,
-                                    S3C2410_IISMOD_32FS);
-       if (ret < 0)
-               return ret;
-#endif
-
-       /* set codec BCLK division for sample rate */
-       ret = snd_soc_dai_set_clkdiv(codec_dai, WM8753_BCLKDIV, bclk);
-       if (ret < 0)
-               goto err;
-
-       /* set prescaler division for sample rate */
-       ret = snd_soc_dai_set_clkdiv(cpu_dai, S3C64XX_DIV_PRESCALER, 2-1);
-       if (ret < 0)
-               goto err;
-
-       /* codec PLL input is ACLK/2 */
-       ret = snd_soc_dai_set_pll(codec_dai, WM8753_PLL1,
-                                 iis_clkrate / 2, pll_out);
-       if (ret < 0)
-               goto err;
-
-       return 0;
-
-err:
-       printk(KERN_ERR "%s: failed %d\n", __func__, ret);
-       return ret;
-}
-
-static int om_gta03_hifi_hw_free(struct snd_pcm_substream *substream)
-{
-       struct snd_soc_pcm_runtime *rtd = substream->private_data;
-       struct snd_soc_dai *codec_dai = rtd->dai->codec_dai;
-
-       /* disable the PLL */
-       return snd_soc_dai_set_pll(codec_dai, WM8753_PLL1, 0, 0);
-}
-
-/*
- * GTA03 WM8753 HiFi DAI opserations.
- */
-static struct snd_soc_ops om_gta03_hifi_ops = {
-       .hw_params      = om_gta03_hifi_hw_params,
-       .hw_free        = om_gta03_hifi_hw_free,
-};
-
-static int om_gta03_voice_hw_params(struct snd_pcm_substream *substream,
-                                   struct snd_pcm_hw_params *params)
-{
-       struct snd_soc_pcm_runtime *rtd = substream->private_data;
-       struct snd_soc_dai *codec_dai = rtd->dai->codec_dai;
-       unsigned int pcmdiv = 0;
-       int ret = 0;
-       unsigned long iis_clkrate;
-
-       iis_clkrate = s3c64xx_i2s_get_clockrate(rtd->dai->cpu_dai);
-
-       if (params_rate(params) != 8000)
-               return -EINVAL;
-       if (params_channels(params) != 1)
-               return -EINVAL;
-
-       pcmdiv = WM8753_PCM_DIV_6; /* 2.048 MHz */
-
-       /* todo: gg check mode (DSP_B) against CSR datasheet */
-       /* set codec DAI configuration */
-       ret = snd_soc_dai_set_fmt(codec_dai, (SND_SOC_DAIFMT_DSP_B |
-                                             SND_SOC_DAIFMT_NB_NF |
-                                             SND_SOC_DAIFMT_CBS_CFS));
-       if (ret < 0)
-               return ret;
-
-       /* set the codec system clock for DAC and ADC */
-       ret = snd_soc_dai_set_sysclk(codec_dai, WM8753_PCMCLK,
-                                    12288000, SND_SOC_CLOCK_IN);
-       if (ret < 0)
-               return ret;
-
-       /* set codec PCM division for sample rate */
-       ret = snd_soc_dai_set_clkdiv(codec_dai, WM8753_PCMDIV, pcmdiv);
-       if (ret < 0)
-               return ret;
-
-       /* configue and enable PLL for 12.288MHz output */
-       ret = snd_soc_dai_set_pll(codec_dai, WM8753_PLL2,
-                                 iis_clkrate / 2, 12288000);
-       if (ret < 0)
-               return ret;
-
-       return 0;
-}
-
-static int om_gta03_voice_hw_free(struct snd_pcm_substream *substream)
-{
-       struct snd_soc_pcm_runtime *rtd = substream->private_data;
-       struct snd_soc_dai *codec_dai = rtd->dai->codec_dai;
-
-       /* disable the PLL */
-       return snd_soc_dai_set_pll(codec_dai, WM8753_PLL2, 0, 0);
-}
-
-static struct snd_soc_ops om_gta03_voice_ops = {
-       .hw_params      = om_gta03_voice_hw_params,
-       .hw_free        = om_gta03_voice_hw_free,
-};
-
-static int om_gta03_set_stereo_out(struct snd_kcontrol *kcontrol,
-                                  struct snd_ctl_elem_value *ucontrol)
-{
-       struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
-       int val = ucontrol->value.integer.value[0];
-
-       snd_soc_dapm_set_endpoint(codec, "Stereo Out", val);
-       snd_soc_dapm_sync(codec);
-
-       return 0;
-}
-
-static int om_gta03_get_stereo_out(struct snd_kcontrol *kcontrol,
-                                  struct snd_ctl_elem_value *ucontrol)
-{
-       struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
-
-       ucontrol->value.integer.value[0] =
-               snd_soc_dapm_get_endpoint(codec, "Stereo Out");
-
-       return 0;
-}
-
-
-static int om_gta03_set_gsm_out(struct snd_kcontrol *kcontrol,
-                               struct snd_ctl_elem_value *ucontrol)
-{
-       struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
-       int val = ucontrol->value.integer.value[0];
-
-       snd_soc_dapm_set_endpoint(codec, "GSM Line Out", val);
-       snd_soc_dapm_sync(codec);
-
-       return 0;
-}
-
-static int om_gta03_get_gsm_out(struct snd_kcontrol *kcontrol,
-                               struct snd_ctl_elem_value *ucontrol)
-{
-       struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
-
-       ucontrol->value.integer.value[0] =
-               snd_soc_dapm_get_endpoint(codec, "GSM Line Out");
-
-       return 0;
-}
-
-static int om_gta03_set_gsm_in(struct snd_kcontrol *kcontrol,
-                              struct snd_ctl_elem_value *ucontrol)
-{
-       struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
-       int val = ucontrol->value.integer.value[0];
-
-       snd_soc_dapm_set_endpoint(codec, "GSM Line In", val);
-       snd_soc_dapm_sync(codec);
-
-       return 0;
-}
-
-static int om_gta03_get_gsm_in(struct snd_kcontrol *kcontrol,
-                              struct snd_ctl_elem_value *ucontrol)
-{
-       struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
-
-       ucontrol->value.integer.value[0] =
-               snd_soc_dapm_get_endpoint(codec, "GSM Line In");
-
-       return 0;
-}
-
-static int om_gta03_set_headset_mic(struct snd_kcontrol *kcontrol,
-                                   struct snd_ctl_elem_value *ucontrol)
-{
-       struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
-       int val = ucontrol->value.integer.value[0];
-
-       snd_soc_dapm_set_endpoint(codec, "Headset Mic", val);
-       snd_soc_dapm_sync(codec);
-
-       return 0;
-}
-
-static int om_gta03_get_headset_mic(struct snd_kcontrol *kcontrol,
-                                   struct snd_ctl_elem_value *ucontrol)
-{
-       struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
-
-       ucontrol->value.integer.value[0] =
-               snd_soc_dapm_get_endpoint(codec, "Headset Mic");
-
-       return 0;
-}
-
-static int om_gta03_set_handset_mic(struct snd_kcontrol *kcontrol,
-                                   struct snd_ctl_elem_value *ucontrol)
-{
-       struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
-       int val = ucontrol->value.integer.value[0];
-
-       snd_soc_dapm_set_endpoint(codec, "Handset Mic", val);
-
-       snd_soc_dapm_sync(codec);
-
-       return 0;
-}
-
-static int om_gta03_get_handset_mic(struct snd_kcontrol *kcontrol,
-                                   struct snd_ctl_elem_value *ucontrol)
-{
-       struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
-
-       ucontrol->value.integer.value[0] =
-               snd_soc_dapm_get_endpoint(codec, "Handset Mic");
-
-       return 0;
-}
-
-static int om_gta03_set_handset_spk(struct snd_kcontrol *kcontrol,
-                                   struct snd_ctl_elem_value *ucontrol)
-{
-       struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
-       int val = ucontrol->value.integer.value[0];
-
-       snd_soc_dapm_set_endpoint(codec, "Handset Spk", val);
-
-       snd_soc_dapm_sync(codec);
-
-       return 0;
-}
-
-static int om_gta03_get_handset_spk(struct snd_kcontrol *kcontrol,
-                                   struct snd_ctl_elem_value *ucontrol)
-{
-       struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
-
-       ucontrol->value.integer.value[0] =
-               snd_soc_dapm_get_endpoint(codec, "Handset Spk");
-
-       return 0;
-}
-
-static const struct snd_soc_dapm_widget wm8753_dapm_widgets[] = {
-       SND_SOC_DAPM_LINE("Stereo Out", NULL),
-       SND_SOC_DAPM_LINE("GSM Line Out", NULL),
-       SND_SOC_DAPM_LINE("GSM Line In", NULL),
-       SND_SOC_DAPM_MIC("Headset Mic", NULL),
-       SND_SOC_DAPM_MIC("Handset Mic", NULL),
-       SND_SOC_DAPM_SPK("Handset Spk", NULL),
-};
-
-
-/* example machine audio_mapnections */
-static const struct snd_soc_dapm_route audio_map[] = {
-
-       {"Stereo Out", NULL, "LOUT2"},
-       {"Stereo Out", NULL, "ROUT2"},
-
-       /* Connections to the GSM Module */
-       {"GSM Line Out", NULL, "MONO1"},
-       {"GSM Line Out", NULL, "MONO2"},
-       {"RXP", NULL, "GSM Line In"},
-       {"RXN", NULL, "GSM Line In"},
-
-       /* Connections to Headset */
-       {"MIC1", NULL, "Mic Bias"},
-       {"Mic Bias", NULL, "Headset Mic"},
-
-       /* Call Mic */
-       {"MIC2", NULL, "Mic Bias"},
-       {"MIC2N", NULL, "Mic Bias"},
-       {"Mic Bias", NULL, "Handset Mic"},
-
-       /* Call Speaker */
-       {"Handset Spk", NULL, "OUT3"},
-       {"Handset Spk", NULL, "LOUT1"},
-
-       /* Connect the ALC pins */
-       {"ACIN", NULL, "ACOP"},
-};
-
-static const struct snd_kcontrol_new wm8753_om_gta03_controls[] = {
-       SOC_SINGLE_EXT("DAPM Stereo Out Switch", 0, 0, 1, 0,
-               om_gta03_get_stereo_out,
-               om_gta03_set_stereo_out),
-       SOC_SINGLE_EXT("DAPM GSM Line Out Switch", 1, 0, 1, 0,
-               om_gta03_get_gsm_out,
-               om_gta03_set_gsm_out),
-       SOC_SINGLE_EXT("DAPM GSM Line In Switch", 2, 0, 1, 0,
-               om_gta03_get_gsm_in,
-               om_gta03_set_gsm_in),
-       SOC_SINGLE_EXT("DAPM Headset Mic Switch", 3, 0, 1, 0,
-               om_gta03_get_headset_mic,
-               om_gta03_set_headset_mic),
-       SOC_SINGLE_EXT("DAPM Handset Mic Switch", 4, 0, 1, 0,
-               om_gta03_get_handset_mic,
-               om_gta03_set_handset_mic),
-       SOC_SINGLE_EXT("DAPM Handset Spk Switch", 5, 0, 1, 0,
-               om_gta03_get_handset_spk,
-               om_gta03_set_handset_spk),
-};
-
-/*
- * This is an example machine initialisation for a wm8753 connected to a
- * neo1973 GTA02.
- */
-static int om_gta03_wm8753_init(struct snd_soc_codec *codec)
-{
-       int i, err;
-
-       /* set up NC codec pins */
-       snd_soc_dapm_set_endpoint(codec, "OUT4",  0);
-       snd_soc_dapm_set_endpoint(codec, "LINE1", 0);
-       snd_soc_dapm_set_endpoint(codec, "LINE2", 0);
-
-
-       /* Add neo1973 gta02 specific widgets */
-       snd_soc_dapm_new_controls(codec, wm8753_dapm_widgets,
-                                 ARRAY_SIZE(wm8753_dapm_widgets));
-
-       /* add neo1973 gta02 specific controls */
-       for (i = 0; i < ARRAY_SIZE(wm8753_om_gta03_controls); i++) {
-               err = snd_ctl_add(codec->card,
-                       snd_soc_cnew(&wm8753_om_gta03_controls[i],
-                       codec, NULL));
-               if (err < 0)
-                       return err;
-       }
-
-       /* set up neo1973 gta02 specific audio path audio_mapnects */
-       snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map));
-
-       /* set endpoints to default off mode */
-       snd_soc_dapm_set_endpoint(codec, "Stereo Out",  0);
-       snd_soc_dapm_set_endpoint(codec, "GSM Line Out",0);
-       snd_soc_dapm_set_endpoint(codec, "GSM Line In", 0);
-       snd_soc_dapm_set_endpoint(codec, "Headset Mic", 0);
-       snd_soc_dapm_set_endpoint(codec, "Handset Mic", 0);
-       snd_soc_dapm_set_endpoint(codec, "Handset Spk", 0);
-
-       snd_soc_dapm_sync(codec);
-
-       return 0;
-}
-
-/*
- * BT Codec DAI
- */
-static struct snd_soc_dai bt_dai =
-{      .name = "Bluetooth",
-       .id = 0,
-       .playback = {
-               .channels_min = 1,
-               .channels_max = 1,
-               .rates = SNDRV_PCM_RATE_8000,
-               .formats = SNDRV_PCM_FMTBIT_S16_LE,
-       },
-       .capture = {
-               .channels_min = 1,
-               .channels_max = 1,
-               .rates = SNDRV_PCM_RATE_8000,
-               .formats = SNDRV_PCM_FMTBIT_S16_LE,
-       },
-};
-
-static struct snd_soc_dai_link om_gta03_dai[] = {
-       { /* Hifi Playback - for similatious use with voice below */
-               .name           = "WM8753",
-               .stream_name    = "WM8753 HiFi",
-               .cpu_dai        = &s3c64xx_i2s_dai,
-               .codec_dai      = &wm8753_dai[WM8753_DAI_HIFI],
-               .init           = om_gta03_wm8753_init,
-               .ops            = &om_gta03_hifi_ops,
-       },
-       { /* Voice via BT */
-               .name           = "Bluetooth",
-               .stream_name    = "Voice",
-               .cpu_dai        = &bt_dai,
-               .codec_dai      = &wm8753_dai[WM8753_DAI_VOICE],
-               .ops            = &om_gta03_voice_ops,
-       },
-};
-
-static struct snd_soc_card om_gta03 = {
-       .name           = "om-gta03",
-       .platform       = &s3c24xx_soc_platform,
-       .dai_link       = om_gta03_dai,
-       .num_links      = ARRAY_SIZE(om_gta03_dai),
-};
-
-static struct snd_soc_device om_gta03_snd_devdata = {
-       .card           = &om_gta03,
-       .codec_dev      = &soc_codec_dev_wm8753,
-};
-
-static struct platform_device *om_gta03_snd_device;
-
-static int __init om_gta03_init(void)
-{
-       int ret;
-
-       if (!machine_is_openmoko_gta03()) {
-               printk(KERN_INFO "Only GTA03 supported by ASoC driver\n");
-               return -ENODEV;
-       }
-
-       /* register bluetooth DAI here */
-       ret = snd_soc_register_dai(&bt_dai);
-       if (ret)
-               return ret;
-
-       om_gta03_snd_device = platform_device_alloc("soc-audio", 1);
-       if (!om_gta03_snd_device)
-               return -ENOMEM;
-
-       platform_set_drvdata(om_gta03_snd_device, &om_gta03_snd_devdata);
-       om_gta03_snd_devdata.dev = &om_gta03_snd_device->dev;
-       ret = platform_device_add(om_gta03_snd_device);
-
-       if (ret) {
-               platform_device_put(om_gta03_snd_device);
-               return ret;
-       }
-
-       return ret;
-}
-
-static void __exit om_gta03_exit(void)
-{
-       platform_device_unregister(om_gta03_snd_device);
-}
-
-module_init(om_gta03_init);
-module_exit(om_gta03_exit);
-
-/* Module information */
-MODULE_AUTHOR("Graeme Gregory, graeme@openmoko.org; Ben Dooks <ben@simtec.co.uk>");
-MODULE_DESCRIPTION("ALSA SoC WM8753 OM GTA03");
-MODULE_LICENSE("GPL");