[MIPS] Remove IT8172-based platforms, ITE 8172G and Globespan IVR support.
As per feature-removal-schedule.txt. Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> Acked-by: Alan Cox <alan@redhat.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
Родитель
08dfcee84c
Коммит
af8b128719
|
@ -211,16 +211,6 @@ Who: Nick Piggin <npiggin@suse.de>
|
|||
|
||||
---------------------------
|
||||
|
||||
What: Support for the IT8172-based platforms, ITE 8172G and Globespan IVR
|
||||
When: September 2006
|
||||
Why: Code does no longer build since at least 2.6.0, apparently there is
|
||||
no user base left for these platforms. Hardware out of production
|
||||
since several years and hardly a trace of the manufacturer left on
|
||||
the net.
|
||||
Who: Ralf Baechle <ralf@linux-mips.org>
|
||||
|
||||
---------------------------
|
||||
|
||||
What: Interrupt only SA_* flags
|
||||
When: Januar 2007
|
||||
Why: The interrupt related SA_* flags are replaced by IRQF_* to move them
|
||||
|
|
|
@ -203,39 +203,6 @@ config MIPS_EV64120
|
|||
<http://www.marvell.com/>. Say Y here if you wish to build a
|
||||
kernel for this platform.
|
||||
|
||||
config MIPS_IVR
|
||||
bool "Globespan IVR board"
|
||||
select DMA_NONCOHERENT
|
||||
select HW_HAS_PCI
|
||||
select ITE_BOARD_GEN
|
||||
select SYS_HAS_CPU_NEVADA
|
||||
select SYS_SUPPORTS_32BIT_KERNEL
|
||||
select SYS_SUPPORTS_64BIT_KERNEL if EXPERIMENTAL
|
||||
select SYS_SUPPORTS_LITTLE_ENDIAN
|
||||
help
|
||||
This is an evaluation board built by Globespan to showcase thir
|
||||
iVR (Internet Video Recorder) design. It utilizes a QED RM5231
|
||||
R5000 MIPS core. More information can be found out their website
|
||||
located at <http://www.globespan.net/>. Say Y here if you wish to
|
||||
build a kernel for this platform.
|
||||
|
||||
config MIPS_ITE8172
|
||||
bool "ITE 8172G board"
|
||||
select DMA_NONCOHERENT
|
||||
select HW_HAS_PCI
|
||||
select ITE_BOARD_GEN
|
||||
select SYS_HAS_CPU_R5432
|
||||
select SYS_HAS_CPU_NEVADA
|
||||
select SYS_SUPPORTS_32BIT_KERNEL
|
||||
select SYS_SUPPORTS_64BIT_KERNEL if EXPERIMENTAL
|
||||
select SYS_SUPPORTS_LITTLE_ENDIAN
|
||||
help
|
||||
Ths is an evaluation board made by ITE <http://www.ite.com.tw/>
|
||||
with ATX form factor that utilizes a MIPS R5000 to work with its
|
||||
ITE8172G companion internet appliance chip. The MIPS core can be
|
||||
either a NEC Vr5432 or QED RM5231. Say Y here if you wish to build
|
||||
a kernel for this platform.
|
||||
|
||||
config MACH_JAZZ
|
||||
bool "Jazz family of machines"
|
||||
select ARC
|
||||
|
@ -804,7 +771,6 @@ endchoice
|
|||
source "arch/mips/ddb5xxx/Kconfig"
|
||||
source "arch/mips/gt64120/ev64120/Kconfig"
|
||||
source "arch/mips/jazz/Kconfig"
|
||||
source "arch/mips/ite-boards/Kconfig"
|
||||
source "arch/mips/lasat/Kconfig"
|
||||
source "arch/mips/momentum/Kconfig"
|
||||
source "arch/mips/pmc-sierra/Kconfig"
|
||||
|
@ -964,9 +930,6 @@ config MIPS_RM9122
|
|||
config PCI_MARVELL
|
||||
bool
|
||||
|
||||
config ITE_BOARD_GEN
|
||||
bool
|
||||
|
||||
config SOC_AU1000
|
||||
bool
|
||||
select SOC_AU1X00
|
||||
|
@ -1050,16 +1013,6 @@ config AU1X00_USB_DEVICE
|
|||
depends on MIPS_PB1500 || MIPS_PB1100 || MIPS_PB1000
|
||||
default n
|
||||
|
||||
config IT8172_CIR
|
||||
bool
|
||||
depends on MIPS_ITE8172 || MIPS_IVR
|
||||
default y
|
||||
|
||||
config IT8712
|
||||
bool
|
||||
depends on MIPS_ITE8172
|
||||
default y
|
||||
|
||||
config BOOT_ELF32
|
||||
bool
|
||||
|
||||
|
|
|
@ -286,19 +286,6 @@ core-$(CONFIG_WR_PPMC) += arch/mips/gt64120/wrppmc/
|
|||
cflags-$(CONFIG_WR_PPMC) += -Iinclude/asm-mips/mach-wrppmc
|
||||
load-$(CONFIG_WR_PPMC) += 0xffffffff80100000
|
||||
|
||||
#
|
||||
# Globespan IVR eval board with QED 5231 CPU
|
||||
#
|
||||
core-$(CONFIG_ITE_BOARD_GEN) += arch/mips/ite-boards/generic/
|
||||
core-$(CONFIG_MIPS_IVR) += arch/mips/ite-boards/ivr/
|
||||
load-$(CONFIG_MIPS_IVR) += 0xffffffff80100000
|
||||
|
||||
#
|
||||
# ITE 8172 eval board with QED 5231 CPU
|
||||
#
|
||||
core-$(CONFIG_MIPS_ITE8172) += arch/mips/ite-boards/qed-4n-s01b/
|
||||
load-$(CONFIG_MIPS_ITE8172) += 0xffffffff80100000
|
||||
|
||||
#
|
||||
# For all MIPS, Inc. eval boards
|
||||
#
|
||||
|
|
|
@ -1,964 +0,0 @@
|
|||
#
|
||||
# Automatically generated make config: don't edit
|
||||
# Linux kernel version: 2.6.18-rc1
|
||||
# Thu Jul 6 10:04:11 2006
|
||||
#
|
||||
CONFIG_MIPS=y
|
||||
|
||||
#
|
||||
# Machine selection
|
||||
#
|
||||
# CONFIG_MIPS_MTX1 is not set
|
||||
# CONFIG_MIPS_BOSPORUS is not set
|
||||
# CONFIG_MIPS_PB1000 is not set
|
||||
# CONFIG_MIPS_PB1100 is not set
|
||||
# CONFIG_MIPS_PB1500 is not set
|
||||
# CONFIG_MIPS_PB1550 is not set
|
||||
# CONFIG_MIPS_PB1200 is not set
|
||||
# CONFIG_MIPS_DB1000 is not set
|
||||
# CONFIG_MIPS_DB1100 is not set
|
||||
# CONFIG_MIPS_DB1500 is not set
|
||||
# CONFIG_MIPS_DB1550 is not set
|
||||
# CONFIG_MIPS_DB1200 is not set
|
||||
# CONFIG_MIPS_MIRAGE is not set
|
||||
# CONFIG_BASLER_EXCITE is not set
|
||||
# CONFIG_MIPS_COBALT is not set
|
||||
# CONFIG_MACH_DECSTATION is not set
|
||||
# CONFIG_MIPS_EV64120 is not set
|
||||
# CONFIG_MIPS_IVR is not set
|
||||
CONFIG_MIPS_ITE8172=y
|
||||
# CONFIG_MACH_JAZZ is not set
|
||||
# CONFIG_LASAT is not set
|
||||
# CONFIG_MIPS_ATLAS is not set
|
||||
# CONFIG_MIPS_MALTA is not set
|
||||
# CONFIG_MIPS_SEAD is not set
|
||||
# CONFIG_WR_PPMC is not set
|
||||
# CONFIG_MIPS_SIM is not set
|
||||
# CONFIG_MOMENCO_JAGUAR_ATX is not set
|
||||
# CONFIG_MOMENCO_OCELOT is not set
|
||||
# CONFIG_MOMENCO_OCELOT_3 is not set
|
||||
# CONFIG_MOMENCO_OCELOT_C is not set
|
||||
# CONFIG_MOMENCO_OCELOT_G is not set
|
||||
# CONFIG_MIPS_XXS1500 is not set
|
||||
# CONFIG_PNX8550_V2PCI is not set
|
||||
# CONFIG_PNX8550_JBS is not set
|
||||
# CONFIG_DDB5477 is not set
|
||||
# CONFIG_MACH_VR41XX is not set
|
||||
# CONFIG_PMC_YOSEMITE is not set
|
||||
# CONFIG_QEMU is not set
|
||||
# CONFIG_MARKEINS is not set
|
||||
# CONFIG_SGI_IP22 is not set
|
||||
# CONFIG_SGI_IP27 is not set
|
||||
# CONFIG_SGI_IP32 is not set
|
||||
# CONFIG_SIBYTE_BIGSUR is not set
|
||||
# CONFIG_SIBYTE_SWARM is not set
|
||||
# CONFIG_SIBYTE_SENTOSA is not set
|
||||
# CONFIG_SIBYTE_RHONE is not set
|
||||
# CONFIG_SIBYTE_CARMEL is not set
|
||||
# CONFIG_SIBYTE_PTSWARM is not set
|
||||
# CONFIG_SIBYTE_LITTLESUR is not set
|
||||
# CONFIG_SIBYTE_CRHINE is not set
|
||||
# CONFIG_SIBYTE_CRHONE is not set
|
||||
# CONFIG_SNI_RM200_PCI is not set
|
||||
# CONFIG_TOSHIBA_JMR3927 is not set
|
||||
# CONFIG_TOSHIBA_RBTX4927 is not set
|
||||
# CONFIG_TOSHIBA_RBTX4938 is not set
|
||||
# CONFIG_IT8172_REVC is not set
|
||||
CONFIG_RWSEM_GENERIC_SPINLOCK=y
|
||||
CONFIG_GENERIC_FIND_NEXT_BIT=y
|
||||
CONFIG_GENERIC_HWEIGHT=y
|
||||
CONFIG_GENERIC_CALIBRATE_DELAY=y
|
||||
CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y
|
||||
CONFIG_DMA_NONCOHERENT=y
|
||||
CONFIG_DMA_NEED_PCI_MAP_STATE=y
|
||||
# CONFIG_CPU_BIG_ENDIAN is not set
|
||||
CONFIG_CPU_LITTLE_ENDIAN=y
|
||||
CONFIG_SYS_SUPPORTS_LITTLE_ENDIAN=y
|
||||
CONFIG_ITE_BOARD_GEN=y
|
||||
CONFIG_IT8172_CIR=y
|
||||
CONFIG_IT8712=y
|
||||
CONFIG_MIPS_L1_CACHE_SHIFT=5
|
||||
|
||||
#
|
||||
# CPU selection
|
||||
#
|
||||
# CONFIG_CPU_MIPS32_R1 is not set
|
||||
# CONFIG_CPU_MIPS32_R2 is not set
|
||||
# CONFIG_CPU_MIPS64_R1 is not set
|
||||
# CONFIG_CPU_MIPS64_R2 is not set
|
||||
# CONFIG_CPU_R3000 is not set
|
||||
# CONFIG_CPU_TX39XX is not set
|
||||
# CONFIG_CPU_VR41XX is not set
|
||||
# CONFIG_CPU_R4300 is not set
|
||||
# CONFIG_CPU_R4X00 is not set
|
||||
# CONFIG_CPU_TX49XX is not set
|
||||
# CONFIG_CPU_R5000 is not set
|
||||
# CONFIG_CPU_R5432 is not set
|
||||
# CONFIG_CPU_R6000 is not set
|
||||
CONFIG_CPU_NEVADA=y
|
||||
# CONFIG_CPU_R8000 is not set
|
||||
# CONFIG_CPU_R10000 is not set
|
||||
# CONFIG_CPU_RM7000 is not set
|
||||
# CONFIG_CPU_RM9000 is not set
|
||||
# CONFIG_CPU_SB1 is not set
|
||||
CONFIG_SYS_HAS_CPU_R5432=y
|
||||
CONFIG_SYS_HAS_CPU_NEVADA=y
|
||||
CONFIG_SYS_SUPPORTS_32BIT_KERNEL=y
|
||||
CONFIG_SYS_SUPPORTS_64BIT_KERNEL=y
|
||||
CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y
|
||||
CONFIG_CPU_SUPPORTS_64BIT_KERNEL=y
|
||||
|
||||
#
|
||||
# Kernel type
|
||||
#
|
||||
CONFIG_32BIT=y
|
||||
# CONFIG_64BIT is not set
|
||||
CONFIG_PAGE_SIZE_4KB=y
|
||||
# CONFIG_PAGE_SIZE_8KB is not set
|
||||
# CONFIG_PAGE_SIZE_16KB is not set
|
||||
# CONFIG_PAGE_SIZE_64KB is not set
|
||||
CONFIG_MIPS_MT_DISABLED=y
|
||||
# CONFIG_MIPS_MT_SMTC is not set
|
||||
# CONFIG_MIPS_MT_SMP is not set
|
||||
# CONFIG_MIPS_VPE_LOADER is not set
|
||||
CONFIG_CPU_HAS_LLSC=y
|
||||
CONFIG_CPU_HAS_SYNC=y
|
||||
CONFIG_GENERIC_HARDIRQS=y
|
||||
CONFIG_GENERIC_IRQ_PROBE=y
|
||||
CONFIG_ARCH_FLATMEM_ENABLE=y
|
||||
CONFIG_SELECT_MEMORY_MODEL=y
|
||||
CONFIG_FLATMEM_MANUAL=y
|
||||
# CONFIG_DISCONTIGMEM_MANUAL is not set
|
||||
# CONFIG_SPARSEMEM_MANUAL is not set
|
||||
CONFIG_FLATMEM=y
|
||||
CONFIG_FLAT_NODE_MEM_MAP=y
|
||||
# CONFIG_SPARSEMEM_STATIC is not set
|
||||
CONFIG_SPLIT_PTLOCK_CPUS=4
|
||||
# CONFIG_RESOURCES_64BIT is not set
|
||||
# CONFIG_HZ_48 is not set
|
||||
# CONFIG_HZ_100 is not set
|
||||
# CONFIG_HZ_128 is not set
|
||||
# CONFIG_HZ_250 is not set
|
||||
# CONFIG_HZ_256 is not set
|
||||
CONFIG_HZ_1000=y
|
||||
# CONFIG_HZ_1024 is not set
|
||||
CONFIG_SYS_SUPPORTS_ARBIT_HZ=y
|
||||
CONFIG_HZ=1000
|
||||
CONFIG_PREEMPT_NONE=y
|
||||
# CONFIG_PREEMPT_VOLUNTARY is not set
|
||||
# CONFIG_PREEMPT is not set
|
||||
CONFIG_LOCKDEP_SUPPORT=y
|
||||
CONFIG_STACKTRACE_SUPPORT=y
|
||||
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
|
||||
|
||||
#
|
||||
# Code maturity level options
|
||||
#
|
||||
CONFIG_EXPERIMENTAL=y
|
||||
CONFIG_BROKEN_ON_SMP=y
|
||||
CONFIG_INIT_ENV_ARG_LIMIT=32
|
||||
|
||||
#
|
||||
# General setup
|
||||
#
|
||||
CONFIG_LOCALVERSION=""
|
||||
CONFIG_LOCALVERSION_AUTO=y
|
||||
CONFIG_SWAP=y
|
||||
CONFIG_SYSVIPC=y
|
||||
# CONFIG_POSIX_MQUEUE is not set
|
||||
CONFIG_BSD_PROCESS_ACCT=y
|
||||
# CONFIG_BSD_PROCESS_ACCT_V3 is not set
|
||||
CONFIG_SYSCTL=y
|
||||
# CONFIG_AUDIT is not set
|
||||
# CONFIG_IKCONFIG is not set
|
||||
CONFIG_RELAY=y
|
||||
CONFIG_INITRAMFS_SOURCE=""
|
||||
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
|
||||
CONFIG_EMBEDDED=y
|
||||
CONFIG_KALLSYMS=y
|
||||
# CONFIG_KALLSYMS_EXTRA_PASS is not set
|
||||
# CONFIG_HOTPLUG is not set
|
||||
CONFIG_PRINTK=y
|
||||
CONFIG_BUG=y
|
||||
CONFIG_ELF_CORE=y
|
||||
CONFIG_BASE_FULL=y
|
||||
CONFIG_RT_MUTEXES=y
|
||||
CONFIG_FUTEX=y
|
||||
CONFIG_EPOLL=y
|
||||
CONFIG_SHMEM=y
|
||||
CONFIG_SLAB=y
|
||||
CONFIG_VM_EVENT_COUNTERS=y
|
||||
# CONFIG_TINY_SHMEM is not set
|
||||
CONFIG_BASE_SMALL=0
|
||||
# CONFIG_SLOB is not set
|
||||
|
||||
#
|
||||
# Loadable module support
|
||||
#
|
||||
CONFIG_MODULES=y
|
||||
CONFIG_MODULE_UNLOAD=y
|
||||
# CONFIG_MODULE_FORCE_UNLOAD is not set
|
||||
CONFIG_MODVERSIONS=y
|
||||
CONFIG_MODULE_SRCVERSION_ALL=y
|
||||
CONFIG_KMOD=y
|
||||
|
||||
#
|
||||
# Block layer
|
||||
#
|
||||
# CONFIG_LBD is not set
|
||||
# CONFIG_BLK_DEV_IO_TRACE is not set
|
||||
# CONFIG_LSF is not set
|
||||
|
||||
#
|
||||
# IO Schedulers
|
||||
#
|
||||
CONFIG_IOSCHED_NOOP=y
|
||||
CONFIG_IOSCHED_AS=y
|
||||
CONFIG_IOSCHED_DEADLINE=y
|
||||
CONFIG_IOSCHED_CFQ=y
|
||||
CONFIG_DEFAULT_AS=y
|
||||
# CONFIG_DEFAULT_DEADLINE is not set
|
||||
# CONFIG_DEFAULT_CFQ is not set
|
||||
# CONFIG_DEFAULT_NOOP is not set
|
||||
CONFIG_DEFAULT_IOSCHED="anticipatory"
|
||||
|
||||
#
|
||||
# Bus options (PCI, PCMCIA, EISA, ISA, TC)
|
||||
#
|
||||
CONFIG_HW_HAS_PCI=y
|
||||
# CONFIG_PCI is not set
|
||||
CONFIG_MMU=y
|
||||
|
||||
#
|
||||
# PCCARD (PCMCIA/CardBus) support
|
||||
#
|
||||
# CONFIG_PCCARD is not set
|
||||
|
||||
#
|
||||
# PCI Hotplug Support
|
||||
#
|
||||
|
||||
#
|
||||
# Executable file formats
|
||||
#
|
||||
CONFIG_BINFMT_ELF=y
|
||||
# CONFIG_BINFMT_MISC is not set
|
||||
CONFIG_TRAD_SIGNALS=y
|
||||
|
||||
#
|
||||
# Networking
|
||||
#
|
||||
CONFIG_NET=y
|
||||
|
||||
#
|
||||
# Networking options
|
||||
#
|
||||
# CONFIG_NETDEBUG is not set
|
||||
CONFIG_PACKET=y
|
||||
CONFIG_PACKET_MMAP=y
|
||||
CONFIG_UNIX=y
|
||||
CONFIG_XFRM=y
|
||||
CONFIG_XFRM_USER=m
|
||||
CONFIG_NET_KEY=y
|
||||
CONFIG_INET=y
|
||||
# CONFIG_IP_MULTICAST is not set
|
||||
# CONFIG_IP_ADVANCED_ROUTER is not set
|
||||
CONFIG_IP_FIB_HASH=y
|
||||
CONFIG_IP_PNP=y
|
||||
# CONFIG_IP_PNP_DHCP is not set
|
||||
CONFIG_IP_PNP_BOOTP=y
|
||||
# CONFIG_IP_PNP_RARP is not set
|
||||
# CONFIG_NET_IPIP is not set
|
||||
# CONFIG_NET_IPGRE is not set
|
||||
# CONFIG_ARPD is not set
|
||||
# CONFIG_SYN_COOKIES is not set
|
||||
# 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 is not set
|
||||
CONFIG_INET_XFRM_MODE_TRANSPORT=m
|
||||
CONFIG_INET_XFRM_MODE_TUNNEL=m
|
||||
CONFIG_INET_DIAG=y
|
||||
CONFIG_INET_TCP_DIAG=y
|
||||
# CONFIG_TCP_CONG_ADVANCED is not set
|
||||
CONFIG_TCP_CONG_BIC=y
|
||||
# CONFIG_IPV6 is not set
|
||||
# CONFIG_INET6_XFRM_TUNNEL is not set
|
||||
# CONFIG_INET6_TUNNEL is not set
|
||||
CONFIG_NETWORK_SECMARK=y
|
||||
# CONFIG_NETFILTER is not set
|
||||
|
||||
#
|
||||
# DCCP Configuration (EXPERIMENTAL)
|
||||
#
|
||||
# CONFIG_IP_DCCP is not set
|
||||
|
||||
#
|
||||
# SCTP Configuration (EXPERIMENTAL)
|
||||
#
|
||||
# CONFIG_IP_SCTP is not set
|
||||
|
||||
#
|
||||
# TIPC Configuration (EXPERIMENTAL)
|
||||
#
|
||||
# CONFIG_TIPC is not set
|
||||
# CONFIG_ATM is not set
|
||||
# CONFIG_BRIDGE is not set
|
||||
# CONFIG_VLAN_8021Q is not set
|
||||
# CONFIG_DECNET is not set
|
||||
# CONFIG_LLC2 is not set
|
||||
# CONFIG_IPX is not set
|
||||
# CONFIG_ATALK is not set
|
||||
# CONFIG_X25 is not set
|
||||
# CONFIG_LAPB is not set
|
||||
# CONFIG_NET_DIVERT is not set
|
||||
# CONFIG_ECONET is not set
|
||||
# CONFIG_WAN_ROUTER is not set
|
||||
|
||||
#
|
||||
# QoS and/or fair queueing
|
||||
#
|
||||
# CONFIG_NET_SCHED is not set
|
||||
|
||||
#
|
||||
# Network testing
|
||||
#
|
||||
# CONFIG_NET_PKTGEN is not set
|
||||
# CONFIG_HAMRADIO is not set
|
||||
# CONFIG_IRDA is not set
|
||||
# CONFIG_BT is not set
|
||||
CONFIG_IEEE80211=m
|
||||
# CONFIG_IEEE80211_DEBUG is not set
|
||||
CONFIG_IEEE80211_CRYPT_WEP=m
|
||||
CONFIG_IEEE80211_CRYPT_CCMP=m
|
||||
CONFIG_IEEE80211_SOFTMAC=m
|
||||
# CONFIG_IEEE80211_SOFTMAC_DEBUG is not set
|
||||
CONFIG_WIRELESS_EXT=y
|
||||
|
||||
#
|
||||
# Device Drivers
|
||||
#
|
||||
|
||||
#
|
||||
# Generic Driver Options
|
||||
#
|
||||
CONFIG_STANDALONE=y
|
||||
CONFIG_PREVENT_FIRMWARE_BUILD=y
|
||||
# CONFIG_FW_LOADER is not set
|
||||
# CONFIG_SYS_HYPERVISOR is not set
|
||||
|
||||
#
|
||||
# Connector - unified userspace <-> kernelspace linker
|
||||
#
|
||||
CONFIG_CONNECTOR=m
|
||||
|
||||
#
|
||||
# Memory Technology Devices (MTD)
|
||||
#
|
||||
CONFIG_MTD=y
|
||||
# CONFIG_MTD_DEBUG is not set
|
||||
# CONFIG_MTD_CONCAT is not set
|
||||
# CONFIG_MTD_PARTITIONS is not set
|
||||
|
||||
#
|
||||
# User Modules And Translation Layers
|
||||
#
|
||||
CONFIG_MTD_CHAR=y
|
||||
# CONFIG_MTD_BLOCK is not set
|
||||
# CONFIG_MTD_BLOCK_RO is not set
|
||||
# CONFIG_FTL is not set
|
||||
# CONFIG_NFTL is not set
|
||||
# CONFIG_INFTL is not set
|
||||
# CONFIG_RFD_FTL is not set
|
||||
|
||||
#
|
||||
# RAM/ROM/Flash chip drivers
|
||||
#
|
||||
CONFIG_MTD_CFI=y
|
||||
# CONFIG_MTD_JEDECPROBE is not set
|
||||
CONFIG_MTD_GEN_PROBE=y
|
||||
# CONFIG_MTD_CFI_ADV_OPTIONS is not set
|
||||
CONFIG_MTD_MAP_BANK_WIDTH_1=y
|
||||
CONFIG_MTD_MAP_BANK_WIDTH_2=y
|
||||
CONFIG_MTD_MAP_BANK_WIDTH_4=y
|
||||
# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set
|
||||
# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set
|
||||
# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set
|
||||
CONFIG_MTD_CFI_I1=y
|
||||
CONFIG_MTD_CFI_I2=y
|
||||
# CONFIG_MTD_CFI_I4 is not set
|
||||
# CONFIG_MTD_CFI_I8 is not set
|
||||
CONFIG_MTD_CFI_INTELEXT=y
|
||||
# CONFIG_MTD_CFI_AMDSTD is not set
|
||||
# CONFIG_MTD_CFI_STAA is not set
|
||||
CONFIG_MTD_CFI_UTIL=y
|
||||
# CONFIG_MTD_RAM is not set
|
||||
# CONFIG_MTD_ROM is not set
|
||||
# CONFIG_MTD_ABSENT is not set
|
||||
# CONFIG_MTD_OBSOLETE_CHIPS is not set
|
||||
|
||||
#
|
||||
# Mapping drivers for chip access
|
||||
#
|
||||
# CONFIG_MTD_COMPLEX_MAPPINGS is not set
|
||||
CONFIG_MTD_PHYSMAP=y
|
||||
CONFIG_MTD_PHYSMAP_START=0x8000000
|
||||
CONFIG_MTD_PHYSMAP_LEN=0x2000000
|
||||
CONFIG_MTD_PHYSMAP_BANKWIDTH=2
|
||||
# CONFIG_MTD_PLATRAM is not set
|
||||
|
||||
#
|
||||
# Self-contained MTD device drivers
|
||||
#
|
||||
# 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
|
||||
|
||||
#
|
||||
# NAND Flash Device Drivers
|
||||
#
|
||||
# CONFIG_MTD_NAND is not set
|
||||
|
||||
#
|
||||
# OneNAND Flash Device Drivers
|
||||
#
|
||||
# CONFIG_MTD_ONENAND is not set
|
||||
|
||||
#
|
||||
# Parallel port support
|
||||
#
|
||||
# CONFIG_PARPORT is not set
|
||||
|
||||
#
|
||||
# Plug and Play support
|
||||
#
|
||||
|
||||
#
|
||||
# Block devices
|
||||
#
|
||||
# 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_RAM is not set
|
||||
# CONFIG_BLK_DEV_INITRD is not set
|
||||
CONFIG_CDROM_PKTCDVD=m
|
||||
CONFIG_CDROM_PKTCDVD_BUFFERS=8
|
||||
# CONFIG_CDROM_PKTCDVD_WCACHE is not set
|
||||
CONFIG_ATA_OVER_ETH=m
|
||||
|
||||
#
|
||||
# ATA/ATAPI/MFM/RLL support
|
||||
#
|
||||
CONFIG_IDE=y
|
||||
CONFIG_BLK_DEV_IDE=y
|
||||
|
||||
#
|
||||
# Please see Documentation/ide.txt for help/info on IDE drives
|
||||
#
|
||||
# CONFIG_BLK_DEV_IDE_SATA is not set
|
||||
CONFIG_BLK_DEV_IDEDISK=y
|
||||
# CONFIG_IDEDISK_MULTI_MODE is not set
|
||||
# CONFIG_BLK_DEV_IDECD is not set
|
||||
# CONFIG_BLK_DEV_IDETAPE is not set
|
||||
# CONFIG_BLK_DEV_IDEFLOPPY is not set
|
||||
# CONFIG_IDE_TASK_IOCTL is not set
|
||||
|
||||
#
|
||||
# IDE chipset support/bugfixes
|
||||
#
|
||||
CONFIG_IDE_GENERIC=y
|
||||
# CONFIG_IDE_ARM is not set
|
||||
# CONFIG_BLK_DEV_IDEDMA is not set
|
||||
# CONFIG_IDEDMA_AUTO is not set
|
||||
# CONFIG_BLK_DEV_HD is not set
|
||||
|
||||
#
|
||||
# SCSI device support
|
||||
#
|
||||
CONFIG_RAID_ATTRS=m
|
||||
# CONFIG_SCSI is not set
|
||||
|
||||
#
|
||||
# Multi-device support (RAID and LVM)
|
||||
#
|
||||
# CONFIG_MD is not set
|
||||
|
||||
#
|
||||
# Fusion MPT device support
|
||||
#
|
||||
# CONFIG_FUSION is not set
|
||||
|
||||
#
|
||||
# IEEE 1394 (FireWire) support
|
||||
#
|
||||
|
||||
#
|
||||
# I2O device support
|
||||
#
|
||||
|
||||
#
|
||||
# Network device support
|
||||
#
|
||||
CONFIG_NETDEVICES=y
|
||||
# CONFIG_DUMMY is not set
|
||||
# CONFIG_BONDING is not set
|
||||
# CONFIG_EQUALIZER is not set
|
||||
# CONFIG_TUN is not set
|
||||
|
||||
#
|
||||
# PHY device support
|
||||
#
|
||||
CONFIG_PHYLIB=m
|
||||
|
||||
#
|
||||
# MII PHY device drivers
|
||||
#
|
||||
CONFIG_MARVELL_PHY=m
|
||||
CONFIG_DAVICOM_PHY=m
|
||||
CONFIG_QSEMI_PHY=m
|
||||
CONFIG_LXT_PHY=m
|
||||
CONFIG_CICADA_PHY=m
|
||||
CONFIG_VITESSE_PHY=m
|
||||
CONFIG_SMSC_PHY=m
|
||||
|
||||
#
|
||||
# Ethernet (10 or 100Mbit)
|
||||
#
|
||||
CONFIG_NET_ETHERNET=y
|
||||
# CONFIG_MII is not set
|
||||
# CONFIG_DM9000 is not set
|
||||
|
||||
#
|
||||
# Ethernet (1000 Mbit)
|
||||
#
|
||||
|
||||
#
|
||||
# Ethernet (10000 Mbit)
|
||||
#
|
||||
|
||||
#
|
||||
# Token Ring devices
|
||||
#
|
||||
|
||||
#
|
||||
# Wireless LAN (non-hamradio)
|
||||
#
|
||||
# CONFIG_NET_RADIO is not set
|
||||
|
||||
#
|
||||
# Wan interfaces
|
||||
#
|
||||
# CONFIG_WAN is not set
|
||||
# CONFIG_PPP is not set
|
||||
# CONFIG_SLIP is not set
|
||||
# CONFIG_SHAPER is not set
|
||||
# CONFIG_NETCONSOLE is not set
|
||||
# CONFIG_NETPOLL is not set
|
||||
# CONFIG_NET_POLL_CONTROLLER is not set
|
||||
|
||||
#
|
||||
# ISDN subsystem
|
||||
#
|
||||
# CONFIG_ISDN is not set
|
||||
|
||||
#
|
||||
# Telephony Support
|
||||
#
|
||||
# CONFIG_PHONE is not set
|
||||
|
||||
#
|
||||
# Input device support
|
||||
#
|
||||
CONFIG_INPUT=y
|
||||
|
||||
#
|
||||
# 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_TSDEV is not set
|
||||
# CONFIG_INPUT_EVDEV is not set
|
||||
# CONFIG_INPUT_EVBUG is not set
|
||||
|
||||
#
|
||||
# Input Device Drivers
|
||||
#
|
||||
# CONFIG_INPUT_KEYBOARD is not set
|
||||
# CONFIG_INPUT_MOUSE is not set
|
||||
# CONFIG_INPUT_JOYSTICK is not set
|
||||
# CONFIG_INPUT_TOUCHSCREEN is not set
|
||||
# CONFIG_INPUT_MISC is not set
|
||||
|
||||
#
|
||||
# Hardware I/O ports
|
||||
#
|
||||
CONFIG_SERIO=y
|
||||
# CONFIG_SERIO_I8042 is not set
|
||||
CONFIG_SERIO_SERPORT=y
|
||||
# CONFIG_SERIO_LIBPS2 is not set
|
||||
CONFIG_SERIO_RAW=m
|
||||
# CONFIG_GAMEPORT is not set
|
||||
|
||||
#
|
||||
# Character devices
|
||||
#
|
||||
CONFIG_VT=y
|
||||
CONFIG_VT_CONSOLE=y
|
||||
CONFIG_HW_CONSOLE=y
|
||||
CONFIG_VT_HW_CONSOLE_BINDING=y
|
||||
# CONFIG_SERIAL_NONSTANDARD is not set
|
||||
# CONFIG_QTRONIX_KEYBOARD is not set
|
||||
# CONFIG_IT8172_SCR0 is not set
|
||||
# CONFIG_IT8172_SCR1 is not set
|
||||
# CONFIG_ITE_GPIO is not set
|
||||
|
||||
#
|
||||
# Serial drivers
|
||||
#
|
||||
CONFIG_SERIAL_8250=y
|
||||
CONFIG_SERIAL_8250_CONSOLE=y
|
||||
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_CORE=y
|
||||
CONFIG_SERIAL_CORE_CONSOLE=y
|
||||
CONFIG_UNIX98_PTYS=y
|
||||
CONFIG_LEGACY_PTYS=y
|
||||
CONFIG_LEGACY_PTY_COUNT=256
|
||||
|
||||
#
|
||||
# IPMI
|
||||
#
|
||||
# CONFIG_IPMI_HANDLER is not set
|
||||
|
||||
#
|
||||
# Watchdog Cards
|
||||
#
|
||||
# CONFIG_WATCHDOG is not set
|
||||
# CONFIG_HW_RANDOM is not set
|
||||
# CONFIG_RTC is not set
|
||||
# CONFIG_GEN_RTC is not set
|
||||
# CONFIG_DTLK is not set
|
||||
# CONFIG_R3964 is not set
|
||||
|
||||
#
|
||||
# Ftape, the floppy tape device driver
|
||||
#
|
||||
# CONFIG_RAW_DRIVER is not set
|
||||
|
||||
#
|
||||
# TPM devices
|
||||
#
|
||||
# CONFIG_TCG_TPM is not set
|
||||
# CONFIG_TELCLOCK is not set
|
||||
|
||||
#
|
||||
# I2C support
|
||||
#
|
||||
# CONFIG_I2C is not set
|
||||
|
||||
#
|
||||
# SPI support
|
||||
#
|
||||
# CONFIG_SPI is not set
|
||||
# CONFIG_SPI_MASTER is not set
|
||||
|
||||
#
|
||||
# Dallas's 1-wire bus
|
||||
#
|
||||
# CONFIG_W1 is not set
|
||||
|
||||
#
|
||||
# Hardware Monitoring support
|
||||
#
|
||||
# CONFIG_HWMON is not set
|
||||
# CONFIG_HWMON_VID is not set
|
||||
|
||||
#
|
||||
# Misc devices
|
||||
#
|
||||
|
||||
#
|
||||
# Multimedia devices
|
||||
#
|
||||
# CONFIG_VIDEO_DEV is not set
|
||||
CONFIG_VIDEO_V4L2=y
|
||||
|
||||
#
|
||||
# Digital Video Broadcasting Devices
|
||||
#
|
||||
# CONFIG_DVB is not set
|
||||
|
||||
#
|
||||
# Graphics support
|
||||
#
|
||||
# CONFIG_FIRMWARE_EDID is not set
|
||||
# CONFIG_FB is not set
|
||||
|
||||
#
|
||||
# Console display driver support
|
||||
#
|
||||
# CONFIG_VGA_CONSOLE is not set
|
||||
CONFIG_DUMMY_CONSOLE=y
|
||||
|
||||
#
|
||||
# Sound
|
||||
#
|
||||
CONFIG_SOUND=y
|
||||
|
||||
#
|
||||
# Advanced Linux Sound Architecture
|
||||
#
|
||||
# CONFIG_SND is not set
|
||||
|
||||
#
|
||||
# Open Sound System
|
||||
#
|
||||
CONFIG_SOUND_PRIME=y
|
||||
CONFIG_SOUND_IT8172=y
|
||||
# CONFIG_SOUND_MSNDCLAS is not set
|
||||
# CONFIG_SOUND_MSNDPIN is not set
|
||||
|
||||
#
|
||||
# USB support
|
||||
#
|
||||
# CONFIG_USB_ARCH_HAS_HCD is not set
|
||||
# CONFIG_USB_ARCH_HAS_OHCI is not set
|
||||
# CONFIG_USB_ARCH_HAS_EHCI is not set
|
||||
|
||||
#
|
||||
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
|
||||
#
|
||||
|
||||
#
|
||||
# USB Gadget Support
|
||||
#
|
||||
# CONFIG_USB_GADGET is not set
|
||||
|
||||
#
|
||||
# MMC/SD Card support
|
||||
#
|
||||
# CONFIG_MMC is not set
|
||||
|
||||
#
|
||||
# LED devices
|
||||
#
|
||||
# CONFIG_NEW_LEDS is not set
|
||||
|
||||
#
|
||||
# LED drivers
|
||||
#
|
||||
|
||||
#
|
||||
# LED Triggers
|
||||
#
|
||||
|
||||
#
|
||||
# InfiniBand support
|
||||
#
|
||||
|
||||
#
|
||||
# EDAC - error detection and reporting (RAS) (EXPERIMENTAL)
|
||||
#
|
||||
|
||||
#
|
||||
# Real Time Clock
|
||||
#
|
||||
# CONFIG_RTC_CLASS is not set
|
||||
|
||||
#
|
||||
# DMA Engine support
|
||||
#
|
||||
# CONFIG_DMA_ENGINE is not set
|
||||
|
||||
#
|
||||
# DMA Clients
|
||||
#
|
||||
|
||||
#
|
||||
# DMA Devices
|
||||
#
|
||||
|
||||
#
|
||||
# File systems
|
||||
#
|
||||
CONFIG_EXT2_FS=y
|
||||
# CONFIG_EXT2_FS_XATTR is not set
|
||||
# CONFIG_EXT2_FS_XIP is not set
|
||||
# CONFIG_EXT3_FS is not set
|
||||
# CONFIG_REISERFS_FS is not set
|
||||
# CONFIG_JFS_FS is not set
|
||||
# CONFIG_FS_POSIX_ACL is not set
|
||||
# CONFIG_XFS_FS is not set
|
||||
# CONFIG_OCFS2_FS is not set
|
||||
# CONFIG_MINIX_FS is not set
|
||||
# CONFIG_ROMFS_FS is not set
|
||||
CONFIG_INOTIFY=y
|
||||
CONFIG_INOTIFY_USER=y
|
||||
# CONFIG_QUOTA is not set
|
||||
CONFIG_DNOTIFY=y
|
||||
# CONFIG_AUTOFS_FS is not set
|
||||
# CONFIG_AUTOFS4_FS is not set
|
||||
CONFIG_FUSE_FS=m
|
||||
|
||||
#
|
||||
# CD-ROM/DVD Filesystems
|
||||
#
|
||||
# CONFIG_ISO9660_FS is not set
|
||||
# CONFIG_UDF_FS is not set
|
||||
|
||||
#
|
||||
# DOS/FAT/NT Filesystems
|
||||
#
|
||||
# CONFIG_MSDOS_FS is not set
|
||||
# CONFIG_VFAT_FS is not set
|
||||
# CONFIG_NTFS_FS is not set
|
||||
|
||||
#
|
||||
# Pseudo filesystems
|
||||
#
|
||||
CONFIG_PROC_FS=y
|
||||
CONFIG_PROC_KCORE=y
|
||||
CONFIG_SYSFS=y
|
||||
# CONFIG_TMPFS is not set
|
||||
# CONFIG_HUGETLB_PAGE is not set
|
||||
CONFIG_RAMFS=y
|
||||
# CONFIG_CONFIGFS_FS is not set
|
||||
|
||||
#
|
||||
# Miscellaneous filesystems
|
||||
#
|
||||
# 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_JFFS_FS is not set
|
||||
# CONFIG_JFFS2_FS is not set
|
||||
# CONFIG_CRAMFS is not set
|
||||
# CONFIG_VXFS_FS is not set
|
||||
# CONFIG_HPFS_FS is not set
|
||||
# CONFIG_QNX4FS_FS is not set
|
||||
# CONFIG_SYSV_FS is not set
|
||||
# CONFIG_UFS_FS is not set
|
||||
|
||||
#
|
||||
# Network File Systems
|
||||
#
|
||||
CONFIG_NFS_FS=y
|
||||
# CONFIG_NFS_V3 is not set
|
||||
# CONFIG_NFS_V4 is not set
|
||||
# CONFIG_NFS_DIRECTIO is not set
|
||||
# CONFIG_NFSD is not set
|
||||
CONFIG_ROOT_NFS=y
|
||||
CONFIG_LOCKD=y
|
||||
CONFIG_NFS_COMMON=y
|
||||
CONFIG_SUNRPC=y
|
||||
# CONFIG_RPCSEC_GSS_KRB5 is not set
|
||||
# CONFIG_RPCSEC_GSS_SPKM3 is not set
|
||||
# CONFIG_SMB_FS is not set
|
||||
# CONFIG_CIFS is not set
|
||||
# CONFIG_CIFS_DEBUG2 is not set
|
||||
# CONFIG_NCP_FS is not set
|
||||
# CONFIG_CODA_FS is not set
|
||||
# CONFIG_AFS_FS is not set
|
||||
# CONFIG_9P_FS is not set
|
||||
|
||||
#
|
||||
# Partition Types
|
||||
#
|
||||
# CONFIG_PARTITION_ADVANCED is not set
|
||||
CONFIG_MSDOS_PARTITION=y
|
||||
|
||||
#
|
||||
# Native Language Support
|
||||
#
|
||||
# CONFIG_NLS is not set
|
||||
|
||||
#
|
||||
# Profiling support
|
||||
#
|
||||
# CONFIG_PROFILING is not set
|
||||
|
||||
#
|
||||
# Kernel hacking
|
||||
#
|
||||
CONFIG_TRACE_IRQFLAGS_SUPPORT=y
|
||||
# CONFIG_PRINTK_TIME is not set
|
||||
# CONFIG_MAGIC_SYSRQ is not set
|
||||
# CONFIG_UNUSED_SYMBOLS is not set
|
||||
# CONFIG_DEBUG_KERNEL is not set
|
||||
CONFIG_LOG_BUF_SHIFT=14
|
||||
# CONFIG_DEBUG_FS is not set
|
||||
CONFIG_CROSSCOMPILE=y
|
||||
CONFIG_CMDLINE=""
|
||||
|
||||
#
|
||||
# Security options
|
||||
#
|
||||
CONFIG_KEYS=y
|
||||
CONFIG_KEYS_DEBUG_PROC_KEYS=y
|
||||
# CONFIG_SECURITY is not set
|
||||
|
||||
#
|
||||
# Cryptographic options
|
||||
#
|
||||
CONFIG_CRYPTO=y
|
||||
CONFIG_CRYPTO_HMAC=y
|
||||
CONFIG_CRYPTO_NULL=m
|
||||
CONFIG_CRYPTO_MD4=m
|
||||
CONFIG_CRYPTO_MD5=m
|
||||
CONFIG_CRYPTO_SHA1=m
|
||||
CONFIG_CRYPTO_SHA256=m
|
||||
CONFIG_CRYPTO_SHA512=m
|
||||
CONFIG_CRYPTO_WP512=m
|
||||
CONFIG_CRYPTO_TGR192=m
|
||||
CONFIG_CRYPTO_DES=m
|
||||
CONFIG_CRYPTO_BLOWFISH=m
|
||||
CONFIG_CRYPTO_TWOFISH=m
|
||||
CONFIG_CRYPTO_SERPENT=m
|
||||
CONFIG_CRYPTO_AES=m
|
||||
CONFIG_CRYPTO_CAST5=m
|
||||
CONFIG_CRYPTO_CAST6=m
|
||||
CONFIG_CRYPTO_TEA=m
|
||||
CONFIG_CRYPTO_ARC4=m
|
||||
CONFIG_CRYPTO_KHAZAD=m
|
||||
CONFIG_CRYPTO_ANUBIS=m
|
||||
CONFIG_CRYPTO_DEFLATE=m
|
||||
CONFIG_CRYPTO_MICHAEL_MIC=m
|
||||
CONFIG_CRYPTO_CRC32C=m
|
||||
# CONFIG_CRYPTO_TEST is not set
|
||||
|
||||
#
|
||||
# Hardware crypto devices
|
||||
#
|
||||
|
||||
#
|
||||
# Library routines
|
||||
#
|
||||
# CONFIG_CRC_CCITT is not set
|
||||
CONFIG_CRC16=m
|
||||
CONFIG_CRC32=m
|
||||
CONFIG_LIBCRC32C=m
|
||||
CONFIG_ZLIB_INFLATE=m
|
||||
CONFIG_ZLIB_DEFLATE=m
|
||||
CONFIG_PLIST=y
|
|
@ -1,920 +0,0 @@
|
|||
#
|
||||
# Automatically generated make config: don't edit
|
||||
# Linux kernel version: 2.6.18-rc1
|
||||
# Thu Jul 6 10:04:12 2006
|
||||
#
|
||||
CONFIG_MIPS=y
|
||||
|
||||
#
|
||||
# Machine selection
|
||||
#
|
||||
# CONFIG_MIPS_MTX1 is not set
|
||||
# CONFIG_MIPS_BOSPORUS is not set
|
||||
# CONFIG_MIPS_PB1000 is not set
|
||||
# CONFIG_MIPS_PB1100 is not set
|
||||
# CONFIG_MIPS_PB1500 is not set
|
||||
# CONFIG_MIPS_PB1550 is not set
|
||||
# CONFIG_MIPS_PB1200 is not set
|
||||
# CONFIG_MIPS_DB1000 is not set
|
||||
# CONFIG_MIPS_DB1100 is not set
|
||||
# CONFIG_MIPS_DB1500 is not set
|
||||
# CONFIG_MIPS_DB1550 is not set
|
||||
# CONFIG_MIPS_DB1200 is not set
|
||||
# CONFIG_MIPS_MIRAGE is not set
|
||||
# CONFIG_BASLER_EXCITE is not set
|
||||
# CONFIG_MIPS_COBALT is not set
|
||||
# CONFIG_MACH_DECSTATION is not set
|
||||
# CONFIG_MIPS_EV64120 is not set
|
||||
CONFIG_MIPS_IVR=y
|
||||
# CONFIG_MIPS_ITE8172 is not set
|
||||
# CONFIG_MACH_JAZZ is not set
|
||||
# CONFIG_LASAT is not set
|
||||
# CONFIG_MIPS_ATLAS is not set
|
||||
# CONFIG_MIPS_MALTA is not set
|
||||
# CONFIG_MIPS_SEAD is not set
|
||||
# CONFIG_WR_PPMC is not set
|
||||
# CONFIG_MIPS_SIM is not set
|
||||
# CONFIG_MOMENCO_JAGUAR_ATX is not set
|
||||
# CONFIG_MOMENCO_OCELOT is not set
|
||||
# CONFIG_MOMENCO_OCELOT_3 is not set
|
||||
# CONFIG_MOMENCO_OCELOT_C is not set
|
||||
# CONFIG_MOMENCO_OCELOT_G is not set
|
||||
# CONFIG_MIPS_XXS1500 is not set
|
||||
# CONFIG_PNX8550_V2PCI is not set
|
||||
# CONFIG_PNX8550_JBS is not set
|
||||
# CONFIG_DDB5477 is not set
|
||||
# CONFIG_MACH_VR41XX is not set
|
||||
# CONFIG_PMC_YOSEMITE is not set
|
||||
# CONFIG_QEMU is not set
|
||||
# CONFIG_MARKEINS is not set
|
||||
# CONFIG_SGI_IP22 is not set
|
||||
# CONFIG_SGI_IP27 is not set
|
||||
# CONFIG_SGI_IP32 is not set
|
||||
# CONFIG_SIBYTE_BIGSUR is not set
|
||||
# CONFIG_SIBYTE_SWARM is not set
|
||||
# CONFIG_SIBYTE_SENTOSA is not set
|
||||
# CONFIG_SIBYTE_RHONE is not set
|
||||
# CONFIG_SIBYTE_CARMEL is not set
|
||||
# CONFIG_SIBYTE_PTSWARM is not set
|
||||
# CONFIG_SIBYTE_LITTLESUR is not set
|
||||
# CONFIG_SIBYTE_CRHINE is not set
|
||||
# CONFIG_SIBYTE_CRHONE is not set
|
||||
# CONFIG_SNI_RM200_PCI is not set
|
||||
# CONFIG_TOSHIBA_JMR3927 is not set
|
||||
# CONFIG_TOSHIBA_RBTX4927 is not set
|
||||
# CONFIG_TOSHIBA_RBTX4938 is not set
|
||||
CONFIG_RWSEM_GENERIC_SPINLOCK=y
|
||||
CONFIG_GENERIC_FIND_NEXT_BIT=y
|
||||
CONFIG_GENERIC_HWEIGHT=y
|
||||
CONFIG_GENERIC_CALIBRATE_DELAY=y
|
||||
CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y
|
||||
CONFIG_DMA_NONCOHERENT=y
|
||||
CONFIG_DMA_NEED_PCI_MAP_STATE=y
|
||||
# CONFIG_CPU_BIG_ENDIAN is not set
|
||||
CONFIG_CPU_LITTLE_ENDIAN=y
|
||||
CONFIG_SYS_SUPPORTS_LITTLE_ENDIAN=y
|
||||
CONFIG_ITE_BOARD_GEN=y
|
||||
CONFIG_IT8172_CIR=y
|
||||
CONFIG_MIPS_L1_CACHE_SHIFT=5
|
||||
|
||||
#
|
||||
# CPU selection
|
||||
#
|
||||
# CONFIG_CPU_MIPS32_R1 is not set
|
||||
# CONFIG_CPU_MIPS32_R2 is not set
|
||||
# CONFIG_CPU_MIPS64_R1 is not set
|
||||
# CONFIG_CPU_MIPS64_R2 is not set
|
||||
# CONFIG_CPU_R3000 is not set
|
||||
# CONFIG_CPU_TX39XX is not set
|
||||
# CONFIG_CPU_VR41XX is not set
|
||||
# CONFIG_CPU_R4300 is not set
|
||||
# CONFIG_CPU_R4X00 is not set
|
||||
# CONFIG_CPU_TX49XX is not set
|
||||
# CONFIG_CPU_R5000 is not set
|
||||
# CONFIG_CPU_R5432 is not set
|
||||
# CONFIG_CPU_R6000 is not set
|
||||
CONFIG_CPU_NEVADA=y
|
||||
# CONFIG_CPU_R8000 is not set
|
||||
# CONFIG_CPU_R10000 is not set
|
||||
# CONFIG_CPU_RM7000 is not set
|
||||
# CONFIG_CPU_RM9000 is not set
|
||||
# CONFIG_CPU_SB1 is not set
|
||||
CONFIG_SYS_HAS_CPU_NEVADA=y
|
||||
CONFIG_SYS_SUPPORTS_32BIT_KERNEL=y
|
||||
CONFIG_SYS_SUPPORTS_64BIT_KERNEL=y
|
||||
CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y
|
||||
CONFIG_CPU_SUPPORTS_64BIT_KERNEL=y
|
||||
|
||||
#
|
||||
# Kernel type
|
||||
#
|
||||
CONFIG_32BIT=y
|
||||
# CONFIG_64BIT is not set
|
||||
CONFIG_PAGE_SIZE_4KB=y
|
||||
# CONFIG_PAGE_SIZE_8KB is not set
|
||||
# CONFIG_PAGE_SIZE_16KB is not set
|
||||
# CONFIG_PAGE_SIZE_64KB is not set
|
||||
CONFIG_MIPS_MT_DISABLED=y
|
||||
# CONFIG_MIPS_MT_SMTC is not set
|
||||
# CONFIG_MIPS_MT_SMP is not set
|
||||
# CONFIG_MIPS_VPE_LOADER is not set
|
||||
CONFIG_CPU_HAS_LLSC=y
|
||||
CONFIG_CPU_HAS_SYNC=y
|
||||
CONFIG_GENERIC_HARDIRQS=y
|
||||
CONFIG_GENERIC_IRQ_PROBE=y
|
||||
CONFIG_ARCH_FLATMEM_ENABLE=y
|
||||
CONFIG_SELECT_MEMORY_MODEL=y
|
||||
CONFIG_FLATMEM_MANUAL=y
|
||||
# CONFIG_DISCONTIGMEM_MANUAL is not set
|
||||
# CONFIG_SPARSEMEM_MANUAL is not set
|
||||
CONFIG_FLATMEM=y
|
||||
CONFIG_FLAT_NODE_MEM_MAP=y
|
||||
# CONFIG_SPARSEMEM_STATIC is not set
|
||||
CONFIG_SPLIT_PTLOCK_CPUS=4
|
||||
# CONFIG_RESOURCES_64BIT is not set
|
||||
# CONFIG_HZ_48 is not set
|
||||
# CONFIG_HZ_100 is not set
|
||||
# CONFIG_HZ_128 is not set
|
||||
# CONFIG_HZ_250 is not set
|
||||
# CONFIG_HZ_256 is not set
|
||||
CONFIG_HZ_1000=y
|
||||
# CONFIG_HZ_1024 is not set
|
||||
CONFIG_SYS_SUPPORTS_ARBIT_HZ=y
|
||||
CONFIG_HZ=1000
|
||||
CONFIG_PREEMPT_NONE=y
|
||||
# CONFIG_PREEMPT_VOLUNTARY is not set
|
||||
# CONFIG_PREEMPT is not set
|
||||
CONFIG_LOCKDEP_SUPPORT=y
|
||||
CONFIG_STACKTRACE_SUPPORT=y
|
||||
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
|
||||
|
||||
#
|
||||
# Code maturity level options
|
||||
#
|
||||
CONFIG_EXPERIMENTAL=y
|
||||
CONFIG_BROKEN_ON_SMP=y
|
||||
CONFIG_INIT_ENV_ARG_LIMIT=32
|
||||
|
||||
#
|
||||
# General setup
|
||||
#
|
||||
CONFIG_LOCALVERSION=""
|
||||
CONFIG_LOCALVERSION_AUTO=y
|
||||
CONFIG_SWAP=y
|
||||
CONFIG_SYSVIPC=y
|
||||
# CONFIG_POSIX_MQUEUE is not set
|
||||
CONFIG_BSD_PROCESS_ACCT=y
|
||||
# CONFIG_BSD_PROCESS_ACCT_V3 is not set
|
||||
CONFIG_SYSCTL=y
|
||||
# CONFIG_AUDIT is not set
|
||||
# CONFIG_IKCONFIG is not set
|
||||
CONFIG_RELAY=y
|
||||
CONFIG_INITRAMFS_SOURCE=""
|
||||
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
|
||||
CONFIG_EMBEDDED=y
|
||||
CONFIG_KALLSYMS=y
|
||||
# CONFIG_KALLSYMS_EXTRA_PASS is not set
|
||||
CONFIG_HOTPLUG=y
|
||||
CONFIG_PRINTK=y
|
||||
CONFIG_BUG=y
|
||||
CONFIG_ELF_CORE=y
|
||||
CONFIG_BASE_FULL=y
|
||||
CONFIG_RT_MUTEXES=y
|
||||
CONFIG_FUTEX=y
|
||||
CONFIG_EPOLL=y
|
||||
CONFIG_SHMEM=y
|
||||
CONFIG_SLAB=y
|
||||
CONFIG_VM_EVENT_COUNTERS=y
|
||||
# CONFIG_TINY_SHMEM is not set
|
||||
CONFIG_BASE_SMALL=0
|
||||
# CONFIG_SLOB is not set
|
||||
|
||||
#
|
||||
# Loadable module support
|
||||
#
|
||||
CONFIG_MODULES=y
|
||||
CONFIG_MODULE_UNLOAD=y
|
||||
# CONFIG_MODULE_FORCE_UNLOAD is not set
|
||||
CONFIG_MODVERSIONS=y
|
||||
CONFIG_MODULE_SRCVERSION_ALL=y
|
||||
CONFIG_KMOD=y
|
||||
|
||||
#
|
||||
# Block layer
|
||||
#
|
||||
# CONFIG_LBD is not set
|
||||
# CONFIG_BLK_DEV_IO_TRACE is not set
|
||||
# CONFIG_LSF is not set
|
||||
|
||||
#
|
||||
# IO Schedulers
|
||||
#
|
||||
CONFIG_IOSCHED_NOOP=y
|
||||
CONFIG_IOSCHED_AS=y
|
||||
CONFIG_IOSCHED_DEADLINE=y
|
||||
CONFIG_IOSCHED_CFQ=y
|
||||
CONFIG_DEFAULT_AS=y
|
||||
# CONFIG_DEFAULT_DEADLINE is not set
|
||||
# CONFIG_DEFAULT_CFQ is not set
|
||||
# CONFIG_DEFAULT_NOOP is not set
|
||||
CONFIG_DEFAULT_IOSCHED="anticipatory"
|
||||
|
||||
#
|
||||
# Bus options (PCI, PCMCIA, EISA, ISA, TC)
|
||||
#
|
||||
CONFIG_HW_HAS_PCI=y
|
||||
CONFIG_PCI=y
|
||||
CONFIG_MMU=y
|
||||
|
||||
#
|
||||
# PCCARD (PCMCIA/CardBus) support
|
||||
#
|
||||
# CONFIG_PCCARD is not set
|
||||
|
||||
#
|
||||
# PCI Hotplug Support
|
||||
#
|
||||
# CONFIG_HOTPLUG_PCI is not set
|
||||
|
||||
#
|
||||
# Executable file formats
|
||||
#
|
||||
CONFIG_BINFMT_ELF=y
|
||||
# CONFIG_BINFMT_MISC is not set
|
||||
CONFIG_TRAD_SIGNALS=y
|
||||
|
||||
#
|
||||
# Networking
|
||||
#
|
||||
CONFIG_NET=y
|
||||
|
||||
#
|
||||
# Networking options
|
||||
#
|
||||
# CONFIG_NETDEBUG is not set
|
||||
CONFIG_PACKET=y
|
||||
CONFIG_PACKET_MMAP=y
|
||||
CONFIG_UNIX=y
|
||||
CONFIG_XFRM=y
|
||||
CONFIG_XFRM_USER=m
|
||||
CONFIG_NET_KEY=y
|
||||
CONFIG_INET=y
|
||||
# CONFIG_IP_MULTICAST is not set
|
||||
# CONFIG_IP_ADVANCED_ROUTER is not set
|
||||
CONFIG_IP_FIB_HASH=y
|
||||
CONFIG_IP_PNP=y
|
||||
# CONFIG_IP_PNP_DHCP is not set
|
||||
CONFIG_IP_PNP_BOOTP=y
|
||||
# CONFIG_IP_PNP_RARP is not set
|
||||
# CONFIG_NET_IPIP is not set
|
||||
# CONFIG_NET_IPGRE is not set
|
||||
# CONFIG_ARPD is not set
|
||||
# CONFIG_SYN_COOKIES is not set
|
||||
# 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 is not set
|
||||
CONFIG_INET_XFRM_MODE_TRANSPORT=m
|
||||
CONFIG_INET_XFRM_MODE_TUNNEL=m
|
||||
CONFIG_INET_DIAG=y
|
||||
CONFIG_INET_TCP_DIAG=y
|
||||
# CONFIG_TCP_CONG_ADVANCED is not set
|
||||
CONFIG_TCP_CONG_BIC=y
|
||||
# CONFIG_IPV6 is not set
|
||||
# CONFIG_INET6_XFRM_TUNNEL is not set
|
||||
# CONFIG_INET6_TUNNEL is not set
|
||||
CONFIG_NETWORK_SECMARK=y
|
||||
# CONFIG_NETFILTER is not set
|
||||
|
||||
#
|
||||
# DCCP Configuration (EXPERIMENTAL)
|
||||
#
|
||||
# CONFIG_IP_DCCP is not set
|
||||
|
||||
#
|
||||
# SCTP Configuration (EXPERIMENTAL)
|
||||
#
|
||||
# CONFIG_IP_SCTP is not set
|
||||
|
||||
#
|
||||
# TIPC Configuration (EXPERIMENTAL)
|
||||
#
|
||||
# CONFIG_TIPC is not set
|
||||
# CONFIG_ATM is not set
|
||||
# CONFIG_BRIDGE is not set
|
||||
# CONFIG_VLAN_8021Q is not set
|
||||
# CONFIG_DECNET is not set
|
||||
# CONFIG_LLC2 is not set
|
||||
# CONFIG_IPX is not set
|
||||
# CONFIG_ATALK is not set
|
||||
# CONFIG_X25 is not set
|
||||
# CONFIG_LAPB is not set
|
||||
# CONFIG_NET_DIVERT is not set
|
||||
# CONFIG_ECONET is not set
|
||||
# CONFIG_WAN_ROUTER is not set
|
||||
|
||||
#
|
||||
# QoS and/or fair queueing
|
||||
#
|
||||
# CONFIG_NET_SCHED is not set
|
||||
|
||||
#
|
||||
# Network testing
|
||||
#
|
||||
# CONFIG_NET_PKTGEN is not set
|
||||
# CONFIG_HAMRADIO is not set
|
||||
# CONFIG_IRDA is not set
|
||||
# CONFIG_BT is not set
|
||||
CONFIG_IEEE80211=m
|
||||
# CONFIG_IEEE80211_DEBUG is not set
|
||||
CONFIG_IEEE80211_CRYPT_WEP=m
|
||||
CONFIG_IEEE80211_CRYPT_CCMP=m
|
||||
CONFIG_IEEE80211_SOFTMAC=m
|
||||
# CONFIG_IEEE80211_SOFTMAC_DEBUG is not set
|
||||
CONFIG_WIRELESS_EXT=y
|
||||
|
||||
#
|
||||
# Device Drivers
|
||||
#
|
||||
|
||||
#
|
||||
# Generic Driver Options
|
||||
#
|
||||
CONFIG_STANDALONE=y
|
||||
CONFIG_PREVENT_FIRMWARE_BUILD=y
|
||||
CONFIG_FW_LOADER=m
|
||||
# CONFIG_SYS_HYPERVISOR is not set
|
||||
|
||||
#
|
||||
# Connector - unified userspace <-> kernelspace linker
|
||||
#
|
||||
CONFIG_CONNECTOR=m
|
||||
|
||||
#
|
||||
# Memory Technology Devices (MTD)
|
||||
#
|
||||
# CONFIG_MTD is not set
|
||||
|
||||
#
|
||||
# Parallel port support
|
||||
#
|
||||
# CONFIG_PARPORT is not set
|
||||
|
||||
#
|
||||
# Plug and Play support
|
||||
#
|
||||
|
||||
#
|
||||
# Block devices
|
||||
#
|
||||
# CONFIG_BLK_CPQ_DA is not set
|
||||
# CONFIG_BLK_CPQ_CISS_DA is not set
|
||||
# CONFIG_BLK_DEV_DAC960 is not set
|
||||
# CONFIG_BLK_DEV_UMEM is not set
|
||||
# CONFIG_BLK_DEV_COW_COMMON is not set
|
||||
# CONFIG_BLK_DEV_LOOP is not set
|
||||
# CONFIG_BLK_DEV_NBD is not set
|
||||
# CONFIG_BLK_DEV_SX8 is not set
|
||||
# CONFIG_BLK_DEV_RAM is not set
|
||||
# CONFIG_BLK_DEV_INITRD is not set
|
||||
CONFIG_CDROM_PKTCDVD=m
|
||||
CONFIG_CDROM_PKTCDVD_BUFFERS=8
|
||||
# CONFIG_CDROM_PKTCDVD_WCACHE is not set
|
||||
CONFIG_ATA_OVER_ETH=m
|
||||
|
||||
#
|
||||
# ATA/ATAPI/MFM/RLL support
|
||||
#
|
||||
CONFIG_IDE=y
|
||||
CONFIG_BLK_DEV_IDE=y
|
||||
|
||||
#
|
||||
# Please see Documentation/ide.txt for help/info on IDE drives
|
||||
#
|
||||
# CONFIG_BLK_DEV_IDE_SATA is not set
|
||||
CONFIG_BLK_DEV_IDEDISK=y
|
||||
# CONFIG_IDEDISK_MULTI_MODE is not set
|
||||
# CONFIG_BLK_DEV_IDECD is not set
|
||||
# CONFIG_BLK_DEV_IDETAPE is not set
|
||||
# CONFIG_BLK_DEV_IDEFLOPPY is not set
|
||||
# CONFIG_IDE_TASK_IOCTL is not set
|
||||
|
||||
#
|
||||
# IDE chipset support/bugfixes
|
||||
#
|
||||
CONFIG_IDE_GENERIC=y
|
||||
# CONFIG_BLK_DEV_IDEPCI is not set
|
||||
# CONFIG_IDE_ARM is not set
|
||||
# CONFIG_BLK_DEV_IDEDMA is not set
|
||||
# CONFIG_IDEDMA_AUTO is not set
|
||||
# CONFIG_BLK_DEV_HD is not set
|
||||
|
||||
#
|
||||
# SCSI device support
|
||||
#
|
||||
CONFIG_RAID_ATTRS=m
|
||||
# CONFIG_SCSI is not set
|
||||
|
||||
#
|
||||
# Multi-device support (RAID and LVM)
|
||||
#
|
||||
# CONFIG_MD is not set
|
||||
|
||||
#
|
||||
# Fusion MPT device support
|
||||
#
|
||||
# CONFIG_FUSION is not set
|
||||
|
||||
#
|
||||
# IEEE 1394 (FireWire) support
|
||||
#
|
||||
# CONFIG_IEEE1394 is not set
|
||||
|
||||
#
|
||||
# I2O device support
|
||||
#
|
||||
# CONFIG_I2O is not set
|
||||
|
||||
#
|
||||
# Network device support
|
||||
#
|
||||
CONFIG_NETDEVICES=y
|
||||
# CONFIG_DUMMY is not set
|
||||
# CONFIG_BONDING is not set
|
||||
# CONFIG_EQUALIZER is not set
|
||||
# CONFIG_TUN is not set
|
||||
|
||||
#
|
||||
# ARCnet devices
|
||||
#
|
||||
# CONFIG_ARCNET is not set
|
||||
|
||||
#
|
||||
# PHY device support
|
||||
#
|
||||
CONFIG_PHYLIB=m
|
||||
|
||||
#
|
||||
# MII PHY device drivers
|
||||
#
|
||||
CONFIG_MARVELL_PHY=m
|
||||
CONFIG_DAVICOM_PHY=m
|
||||
CONFIG_QSEMI_PHY=m
|
||||
CONFIG_LXT_PHY=m
|
||||
CONFIG_CICADA_PHY=m
|
||||
CONFIG_VITESSE_PHY=m
|
||||
CONFIG_SMSC_PHY=m
|
||||
|
||||
#
|
||||
# Ethernet (10 or 100Mbit)
|
||||
#
|
||||
CONFIG_NET_ETHERNET=y
|
||||
# CONFIG_MII is not set
|
||||
# CONFIG_HAPPYMEAL is not set
|
||||
# CONFIG_SUNGEM is not set
|
||||
# CONFIG_CASSINI is not set
|
||||
# CONFIG_NET_VENDOR_3COM is not set
|
||||
# CONFIG_DM9000 is not set
|
||||
|
||||
#
|
||||
# Tulip family network device support
|
||||
#
|
||||
# CONFIG_NET_TULIP is not set
|
||||
# CONFIG_HP100 is not set
|
||||
# CONFIG_NET_PCI is not set
|
||||
|
||||
#
|
||||
# Ethernet (1000 Mbit)
|
||||
#
|
||||
# CONFIG_ACENIC is not set
|
||||
# CONFIG_DL2K is not set
|
||||
# CONFIG_E1000 is not set
|
||||
# CONFIG_NS83820 is not set
|
||||
# CONFIG_HAMACHI is not set
|
||||
# CONFIG_YELLOWFIN is not set
|
||||
# CONFIG_R8169 is not set
|
||||
# CONFIG_SIS190 is not set
|
||||
# CONFIG_SKGE is not set
|
||||
# CONFIG_SKY2 is not set
|
||||
# CONFIG_SK98LIN is not set
|
||||
# CONFIG_TIGON3 is not set
|
||||
# CONFIG_BNX2 is not set
|
||||
|
||||
#
|
||||
# Ethernet (10000 Mbit)
|
||||
#
|
||||
# CONFIG_CHELSIO_T1 is not set
|
||||
# CONFIG_IXGB is not set
|
||||
# CONFIG_S2IO is not set
|
||||
# CONFIG_MYRI10GE is not set
|
||||
|
||||
#
|
||||
# Token Ring devices
|
||||
#
|
||||
# CONFIG_TR is not set
|
||||
|
||||
#
|
||||
# Wireless LAN (non-hamradio)
|
||||
#
|
||||
# CONFIG_NET_RADIO is not set
|
||||
|
||||
#
|
||||
# Wan interfaces
|
||||
#
|
||||
# CONFIG_WAN is not set
|
||||
# CONFIG_FDDI is not set
|
||||
# CONFIG_HIPPI is not set
|
||||
# CONFIG_PPP is not set
|
||||
# CONFIG_SLIP is not set
|
||||
# CONFIG_SHAPER is not set
|
||||
# CONFIG_NETCONSOLE is not set
|
||||
# CONFIG_NETPOLL is not set
|
||||
# CONFIG_NET_POLL_CONTROLLER is not set
|
||||
|
||||
#
|
||||
# ISDN subsystem
|
||||
#
|
||||
# CONFIG_ISDN is not set
|
||||
|
||||
#
|
||||
# Telephony Support
|
||||
#
|
||||
# CONFIG_PHONE is not set
|
||||
|
||||
#
|
||||
# Input device support
|
||||
#
|
||||
CONFIG_INPUT=y
|
||||
|
||||
#
|
||||
# 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_TSDEV is not set
|
||||
# CONFIG_INPUT_EVDEV is not set
|
||||
# CONFIG_INPUT_EVBUG is not set
|
||||
|
||||
#
|
||||
# Input Device Drivers
|
||||
#
|
||||
# CONFIG_INPUT_KEYBOARD is not set
|
||||
# CONFIG_INPUT_MOUSE is not set
|
||||
# CONFIG_INPUT_JOYSTICK is not set
|
||||
# CONFIG_INPUT_TOUCHSCREEN is not set
|
||||
# CONFIG_INPUT_MISC is not set
|
||||
|
||||
#
|
||||
# Hardware I/O ports
|
||||
#
|
||||
CONFIG_SERIO=y
|
||||
# CONFIG_SERIO_I8042 is not set
|
||||
CONFIG_SERIO_SERPORT=y
|
||||
# CONFIG_SERIO_PCIPS2 is not set
|
||||
# CONFIG_SERIO_LIBPS2 is not set
|
||||
CONFIG_SERIO_RAW=m
|
||||
# CONFIG_GAMEPORT is not set
|
||||
|
||||
#
|
||||
# Character devices
|
||||
#
|
||||
CONFIG_VT=y
|
||||
CONFIG_VT_CONSOLE=y
|
||||
CONFIG_HW_CONSOLE=y
|
||||
CONFIG_VT_HW_CONSOLE_BINDING=y
|
||||
# CONFIG_SERIAL_NONSTANDARD is not set
|
||||
CONFIG_QTRONIX_KEYBOARD=y
|
||||
CONFIG_IT8172_SCR0=y
|
||||
CONFIG_IT8172_SCR1=y
|
||||
|
||||
#
|
||||
# Serial drivers
|
||||
#
|
||||
CONFIG_SERIAL_8250=y
|
||||
CONFIG_SERIAL_8250_CONSOLE=y
|
||||
CONFIG_SERIAL_8250_PCI=y
|
||||
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_CORE=y
|
||||
CONFIG_SERIAL_CORE_CONSOLE=y
|
||||
# CONFIG_SERIAL_JSM is not set
|
||||
CONFIG_UNIX98_PTYS=y
|
||||
CONFIG_LEGACY_PTYS=y
|
||||
CONFIG_LEGACY_PTY_COUNT=256
|
||||
|
||||
#
|
||||
# IPMI
|
||||
#
|
||||
# CONFIG_IPMI_HANDLER is not set
|
||||
|
||||
#
|
||||
# Watchdog Cards
|
||||
#
|
||||
# CONFIG_WATCHDOG is not set
|
||||
# CONFIG_HW_RANDOM is not set
|
||||
CONFIG_RTC=y
|
||||
# CONFIG_DTLK is not set
|
||||
# CONFIG_R3964 is not set
|
||||
# CONFIG_APPLICOM is not set
|
||||
|
||||
#
|
||||
# Ftape, the floppy tape device driver
|
||||
#
|
||||
# CONFIG_DRM is not set
|
||||
# CONFIG_RAW_DRIVER is not set
|
||||
|
||||
#
|
||||
# TPM devices
|
||||
#
|
||||
# CONFIG_TCG_TPM is not set
|
||||
# CONFIG_TELCLOCK is not set
|
||||
|
||||
#
|
||||
# I2C support
|
||||
#
|
||||
# CONFIG_I2C is not set
|
||||
|
||||
#
|
||||
# SPI support
|
||||
#
|
||||
# CONFIG_SPI is not set
|
||||
# CONFIG_SPI_MASTER is not set
|
||||
|
||||
#
|
||||
# Dallas's 1-wire bus
|
||||
#
|
||||
# CONFIG_W1 is not set
|
||||
|
||||
#
|
||||
# Hardware Monitoring support
|
||||
#
|
||||
# CONFIG_HWMON is not set
|
||||
# CONFIG_HWMON_VID is not set
|
||||
|
||||
#
|
||||
# Misc devices
|
||||
#
|
||||
|
||||
#
|
||||
# Multimedia devices
|
||||
#
|
||||
# CONFIG_VIDEO_DEV is not set
|
||||
CONFIG_VIDEO_V4L2=y
|
||||
|
||||
#
|
||||
# Digital Video Broadcasting Devices
|
||||
#
|
||||
# CONFIG_DVB is not set
|
||||
|
||||
#
|
||||
# Graphics support
|
||||
#
|
||||
# CONFIG_FIRMWARE_EDID is not set
|
||||
# CONFIG_FB is not set
|
||||
|
||||
#
|
||||
# Console display driver support
|
||||
#
|
||||
# CONFIG_VGA_CONSOLE is not set
|
||||
CONFIG_DUMMY_CONSOLE=y
|
||||
|
||||
#
|
||||
# Sound
|
||||
#
|
||||
# CONFIG_SOUND is not set
|
||||
|
||||
#
|
||||
# USB support
|
||||
#
|
||||
CONFIG_USB_ARCH_HAS_HCD=y
|
||||
CONFIG_USB_ARCH_HAS_OHCI=y
|
||||
CONFIG_USB_ARCH_HAS_EHCI=y
|
||||
# CONFIG_USB is not set
|
||||
|
||||
#
|
||||
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
|
||||
#
|
||||
|
||||
#
|
||||
# USB Gadget Support
|
||||
#
|
||||
# CONFIG_USB_GADGET is not set
|
||||
|
||||
#
|
||||
# MMC/SD Card support
|
||||
#
|
||||
# CONFIG_MMC is not set
|
||||
|
||||
#
|
||||
# LED devices
|
||||
#
|
||||
# CONFIG_NEW_LEDS is not set
|
||||
|
||||
#
|
||||
# LED drivers
|
||||
#
|
||||
|
||||
#
|
||||
# LED Triggers
|
||||
#
|
||||
|
||||
#
|
||||
# InfiniBand support
|
||||
#
|
||||
# CONFIG_INFINIBAND is not set
|
||||
|
||||
#
|
||||
# EDAC - error detection and reporting (RAS) (EXPERIMENTAL)
|
||||
#
|
||||
|
||||
#
|
||||
# Real Time Clock
|
||||
#
|
||||
# CONFIG_RTC_CLASS is not set
|
||||
|
||||
#
|
||||
# DMA Engine support
|
||||
#
|
||||
# CONFIG_DMA_ENGINE is not set
|
||||
|
||||
#
|
||||
# DMA Clients
|
||||
#
|
||||
|
||||
#
|
||||
# DMA Devices
|
||||
#
|
||||
|
||||
#
|
||||
# File systems
|
||||
#
|
||||
CONFIG_EXT2_FS=y
|
||||
# CONFIG_EXT2_FS_XATTR is not set
|
||||
# CONFIG_EXT2_FS_XIP is not set
|
||||
# CONFIG_EXT3_FS is not set
|
||||
# CONFIG_REISERFS_FS is not set
|
||||
# CONFIG_JFS_FS is not set
|
||||
# CONFIG_FS_POSIX_ACL is not set
|
||||
# CONFIG_XFS_FS is not set
|
||||
# CONFIG_OCFS2_FS is not set
|
||||
# CONFIG_MINIX_FS is not set
|
||||
# CONFIG_ROMFS_FS is not set
|
||||
CONFIG_INOTIFY=y
|
||||
CONFIG_INOTIFY_USER=y
|
||||
# CONFIG_QUOTA is not set
|
||||
CONFIG_DNOTIFY=y
|
||||
# CONFIG_AUTOFS_FS is not set
|
||||
# CONFIG_AUTOFS4_FS is not set
|
||||
CONFIG_FUSE_FS=m
|
||||
|
||||
#
|
||||
# CD-ROM/DVD Filesystems
|
||||
#
|
||||
# CONFIG_ISO9660_FS is not set
|
||||
# CONFIG_UDF_FS is not set
|
||||
|
||||
#
|
||||
# DOS/FAT/NT Filesystems
|
||||
#
|
||||
# CONFIG_MSDOS_FS is not set
|
||||
# CONFIG_VFAT_FS is not set
|
||||
# CONFIG_NTFS_FS is not set
|
||||
|
||||
#
|
||||
# Pseudo filesystems
|
||||
#
|
||||
CONFIG_PROC_FS=y
|
||||
CONFIG_PROC_KCORE=y
|
||||
CONFIG_SYSFS=y
|
||||
# CONFIG_TMPFS is not set
|
||||
# CONFIG_HUGETLB_PAGE is not set
|
||||
CONFIG_RAMFS=y
|
||||
# CONFIG_CONFIGFS_FS is not set
|
||||
|
||||
#
|
||||
# Miscellaneous filesystems
|
||||
#
|
||||
# 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_CRAMFS is not set
|
||||
# CONFIG_VXFS_FS is not set
|
||||
# CONFIG_HPFS_FS is not set
|
||||
# CONFIG_QNX4FS_FS is not set
|
||||
# CONFIG_SYSV_FS is not set
|
||||
# CONFIG_UFS_FS is not set
|
||||
|
||||
#
|
||||
# Network File Systems
|
||||
#
|
||||
CONFIG_NFS_FS=y
|
||||
# CONFIG_NFS_V3 is not set
|
||||
# CONFIG_NFS_V4 is not set
|
||||
# CONFIG_NFS_DIRECTIO is not set
|
||||
# CONFIG_NFSD is not set
|
||||
CONFIG_ROOT_NFS=y
|
||||
CONFIG_LOCKD=y
|
||||
CONFIG_NFS_COMMON=y
|
||||
CONFIG_SUNRPC=y
|
||||
# CONFIG_RPCSEC_GSS_KRB5 is not set
|
||||
# CONFIG_RPCSEC_GSS_SPKM3 is not set
|
||||
# CONFIG_SMB_FS is not set
|
||||
# CONFIG_CIFS is not set
|
||||
# CONFIG_CIFS_DEBUG2 is not set
|
||||
# CONFIG_NCP_FS is not set
|
||||
# CONFIG_CODA_FS is not set
|
||||
# CONFIG_AFS_FS is not set
|
||||
# CONFIG_9P_FS is not set
|
||||
|
||||
#
|
||||
# Partition Types
|
||||
#
|
||||
# CONFIG_PARTITION_ADVANCED is not set
|
||||
CONFIG_MSDOS_PARTITION=y
|
||||
|
||||
#
|
||||
# Native Language Support
|
||||
#
|
||||
# CONFIG_NLS is not set
|
||||
|
||||
#
|
||||
# Profiling support
|
||||
#
|
||||
# CONFIG_PROFILING is not set
|
||||
|
||||
#
|
||||
# Kernel hacking
|
||||
#
|
||||
CONFIG_TRACE_IRQFLAGS_SUPPORT=y
|
||||
# CONFIG_PRINTK_TIME is not set
|
||||
# CONFIG_MAGIC_SYSRQ is not set
|
||||
# CONFIG_UNUSED_SYMBOLS is not set
|
||||
# CONFIG_DEBUG_KERNEL is not set
|
||||
CONFIG_LOG_BUF_SHIFT=14
|
||||
# CONFIG_DEBUG_FS is not set
|
||||
CONFIG_CROSSCOMPILE=y
|
||||
CONFIG_CMDLINE=""
|
||||
|
||||
#
|
||||
# Security options
|
||||
#
|
||||
CONFIG_KEYS=y
|
||||
CONFIG_KEYS_DEBUG_PROC_KEYS=y
|
||||
# CONFIG_SECURITY is not set
|
||||
|
||||
#
|
||||
# Cryptographic options
|
||||
#
|
||||
CONFIG_CRYPTO=y
|
||||
CONFIG_CRYPTO_HMAC=y
|
||||
CONFIG_CRYPTO_NULL=m
|
||||
CONFIG_CRYPTO_MD4=m
|
||||
CONFIG_CRYPTO_MD5=m
|
||||
CONFIG_CRYPTO_SHA1=m
|
||||
CONFIG_CRYPTO_SHA256=m
|
||||
CONFIG_CRYPTO_SHA512=m
|
||||
CONFIG_CRYPTO_WP512=m
|
||||
CONFIG_CRYPTO_TGR192=m
|
||||
CONFIG_CRYPTO_DES=m
|
||||
CONFIG_CRYPTO_BLOWFISH=m
|
||||
CONFIG_CRYPTO_TWOFISH=m
|
||||
CONFIG_CRYPTO_SERPENT=m
|
||||
CONFIG_CRYPTO_AES=m
|
||||
CONFIG_CRYPTO_CAST5=m
|
||||
CONFIG_CRYPTO_CAST6=m
|
||||
CONFIG_CRYPTO_TEA=m
|
||||
CONFIG_CRYPTO_ARC4=m
|
||||
CONFIG_CRYPTO_KHAZAD=m
|
||||
CONFIG_CRYPTO_ANUBIS=m
|
||||
CONFIG_CRYPTO_DEFLATE=m
|
||||
CONFIG_CRYPTO_MICHAEL_MIC=m
|
||||
CONFIG_CRYPTO_CRC32C=m
|
||||
# CONFIG_CRYPTO_TEST is not set
|
||||
|
||||
#
|
||||
# Hardware crypto devices
|
||||
#
|
||||
|
||||
#
|
||||
# Library routines
|
||||
#
|
||||
# CONFIG_CRC_CCITT is not set
|
||||
CONFIG_CRC16=m
|
||||
CONFIG_CRC32=m
|
||||
CONFIG_LIBCRC32C=m
|
||||
CONFIG_ZLIB_INFLATE=m
|
||||
CONFIG_ZLIB_DEFLATE=m
|
||||
CONFIG_PLIST=y
|
|
@ -1,8 +0,0 @@
|
|||
config IT8172_REVC
|
||||
bool "Support for older IT8172 (Rev C)"
|
||||
depends on MIPS_ITE8172
|
||||
help
|
||||
Say Y here to support the older, Revision C version of the Integrated
|
||||
Technology Express, Inc. ITE8172 SBC. Vendor page at
|
||||
<http://www.ite.com.tw/ia/brief_it8172bsp.htm>; picture of the
|
||||
board at <http://www.mvista.com/partners/semiconductor/ite.html>.
|
|
@ -1,15 +0,0 @@
|
|||
#
|
||||
# Copyright 2000 MontaVista Software Inc.
|
||||
# Author: MontaVista Software, Inc.
|
||||
# ppopov@mvista.com or source@mvista.com
|
||||
#
|
||||
# Makefile for the ITE 8172 (qed-4n-s01b) board, generic files.
|
||||
#
|
||||
|
||||
obj-y += it8172_setup.o irq.o pmon_prom.o \
|
||||
time.o lpc.o puts.o reset.o
|
||||
|
||||
obj-$(CONFIG_IT8172_CIR)+= it8172_cir.o
|
||||
obj-$(CONFIG_KGDB) += dbg_io.o
|
||||
|
||||
EXTRA_AFLAGS := $(CFLAGS)
|
|
@ -1,124 +0,0 @@
|
|||
|
||||
|
||||
#ifdef CONFIG_KGDB
|
||||
|
||||
/* --- CONFIG --- */
|
||||
|
||||
/* we need uint32 uint8 */
|
||||
/* #include "types.h" */
|
||||
typedef unsigned char uint8;
|
||||
typedef unsigned int uint32;
|
||||
|
||||
/* --- END OF CONFIG --- */
|
||||
|
||||
#define UART16550_BAUD_2400 2400
|
||||
#define UART16550_BAUD_4800 4800
|
||||
#define UART16550_BAUD_9600 9600
|
||||
#define UART16550_BAUD_19200 19200
|
||||
#define UART16550_BAUD_38400 38400
|
||||
#define UART16550_BAUD_57600 57600
|
||||
#define UART16550_BAUD_115200 115200
|
||||
|
||||
#define UART16550_PARITY_NONE 0
|
||||
#define UART16550_PARITY_ODD 0x08
|
||||
#define UART16550_PARITY_EVEN 0x18
|
||||
#define UART16550_PARITY_MARK 0x28
|
||||
#define UART16550_PARITY_SPACE 0x38
|
||||
|
||||
#define UART16550_DATA_5BIT 0x0
|
||||
#define UART16550_DATA_6BIT 0x1
|
||||
#define UART16550_DATA_7BIT 0x2
|
||||
#define UART16550_DATA_8BIT 0x3
|
||||
|
||||
#define UART16550_STOP_1BIT 0x0
|
||||
#define UART16550_STOP_2BIT 0x4
|
||||
|
||||
/* ----------------------------------------------------- */
|
||||
|
||||
/* === CONFIG === */
|
||||
|
||||
/* [stevel] we use the IT8712 serial port for kgdb */
|
||||
#define DEBUG_BASE 0xB40003F8 /* 8712 serial port 1 base address */
|
||||
#define MAX_BAUD 115200
|
||||
|
||||
/* === END OF CONFIG === */
|
||||
|
||||
/* register offset */
|
||||
#define OFS_RCV_BUFFER 0
|
||||
#define OFS_TRANS_HOLD 0
|
||||
#define OFS_SEND_BUFFER 0
|
||||
#define OFS_INTR_ENABLE 1
|
||||
#define OFS_INTR_ID 2
|
||||
#define OFS_DATA_FORMAT 3
|
||||
#define OFS_LINE_CONTROL 3
|
||||
#define OFS_MODEM_CONTROL 4
|
||||
#define OFS_RS232_OUTPUT 4
|
||||
#define OFS_LINE_STATUS 5
|
||||
#define OFS_MODEM_STATUS 6
|
||||
#define OFS_RS232_INPUT 6
|
||||
#define OFS_SCRATCH_PAD 7
|
||||
|
||||
#define OFS_DIVISOR_LSB 0
|
||||
#define OFS_DIVISOR_MSB 1
|
||||
|
||||
|
||||
/* memory-mapped read/write of the port */
|
||||
#define UART16550_READ(y) (*((volatile uint8*)(DEBUG_BASE + y)))
|
||||
#define UART16550_WRITE(y,z) ((*((volatile uint8*)(DEBUG_BASE + y))) = z)
|
||||
|
||||
void debugInit(uint32 baud, uint8 data, uint8 parity, uint8 stop)
|
||||
{
|
||||
/* disable interrupts */
|
||||
UART16550_WRITE(OFS_INTR_ENABLE, 0);
|
||||
|
||||
/* set up baud rate */
|
||||
{
|
||||
uint32 divisor;
|
||||
|
||||
/* set DIAB bit */
|
||||
UART16550_WRITE(OFS_LINE_CONTROL, 0x80);
|
||||
|
||||
/* set divisor */
|
||||
divisor = MAX_BAUD / baud;
|
||||
UART16550_WRITE(OFS_DIVISOR_LSB, divisor & 0xff);
|
||||
UART16550_WRITE(OFS_DIVISOR_MSB, (divisor & 0xff00) >> 8);
|
||||
|
||||
/* clear DIAB bit */
|
||||
UART16550_WRITE(OFS_LINE_CONTROL, 0x0);
|
||||
}
|
||||
|
||||
/* set data format */
|
||||
UART16550_WRITE(OFS_DATA_FORMAT, data | parity | stop);
|
||||
}
|
||||
|
||||
static int remoteDebugInitialized = 0;
|
||||
|
||||
uint8 getDebugChar(void)
|
||||
{
|
||||
if (!remoteDebugInitialized) {
|
||||
remoteDebugInitialized = 1;
|
||||
debugInit(UART16550_BAUD_115200,
|
||||
UART16550_DATA_8BIT,
|
||||
UART16550_PARITY_NONE, UART16550_STOP_1BIT);
|
||||
}
|
||||
|
||||
while ((UART16550_READ(OFS_LINE_STATUS) & 0x1) == 0);
|
||||
return UART16550_READ(OFS_RCV_BUFFER);
|
||||
}
|
||||
|
||||
|
||||
int putDebugChar(uint8 byte)
|
||||
{
|
||||
if (!remoteDebugInitialized) {
|
||||
remoteDebugInitialized = 1;
|
||||
debugInit(UART16550_BAUD_115200,
|
||||
UART16550_DATA_8BIT,
|
||||
UART16550_PARITY_NONE, UART16550_STOP_1BIT);
|
||||
}
|
||||
|
||||
while ((UART16550_READ(OFS_LINE_STATUS) & 0x20) == 0);
|
||||
UART16550_WRITE(OFS_SEND_BUFFER, byte);
|
||||
return 1;
|
||||
}
|
||||
|
||||
#endif
|
|
@ -1,308 +0,0 @@
|
|||
/*
|
||||
* BRIEF MODULE DESCRIPTION
|
||||
* ITE 8172G interrupt/setup routines.
|
||||
*
|
||||
* Copyright 2000,2001 MontaVista Software Inc.
|
||||
* Author: MontaVista Software, Inc.
|
||||
* ppopov@mvista.com or source@mvista.com
|
||||
*
|
||||
* Part of this file was derived from Carsten Langgaard's
|
||||
* arch/mips/mips-boards/atlas/atlas_int.c.
|
||||
*
|
||||
* Carsten Langgaard, carstenl@mips.com
|
||||
* Copyright (C) 1999,2000 MIPS Technologies, Inc. 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 as published by the
|
||||
* Free Software Foundation; either version 2 of the License, or (at your
|
||||
* option) any later version.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
||||
* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
||||
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
#include <linux/errno.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/irq.h>
|
||||
#include <linux/kernel_stat.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/signal.h>
|
||||
#include <linux/sched.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/interrupt.h>
|
||||
#include <linux/ioport.h>
|
||||
#include <linux/timex.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/random.h>
|
||||
#include <linux/serial_reg.h>
|
||||
#include <linux/bitops.h>
|
||||
|
||||
#include <asm/bootinfo.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/mipsregs.h>
|
||||
#include <asm/system.h>
|
||||
#include <asm/it8172/it8172.h>
|
||||
#include <asm/it8172/it8172_int.h>
|
||||
#include <asm/it8172/it8172_dbg.h>
|
||||
|
||||
/* revisit */
|
||||
#define EXT_IRQ0_TO_IP 2 /* IP 2 */
|
||||
#define EXT_IRQ5_TO_IP 7 /* IP 7 */
|
||||
|
||||
#define ALLINTS_NOTIMER (IE_IRQ0 | IE_IRQ1 | IE_IRQ2 | IE_IRQ3 | IE_IRQ4)
|
||||
|
||||
extern void set_debug_traps(void);
|
||||
extern void mips_timer_interrupt(int irq, struct pt_regs *regs);
|
||||
|
||||
struct it8172_intc_regs volatile *it8172_hw0_icregs =
|
||||
(struct it8172_intc_regs volatile *)(KSEG1ADDR(IT8172_PCI_IO_BASE + IT_INTC_BASE));
|
||||
|
||||
static void disable_it8172_irq(unsigned int irq_nr)
|
||||
{
|
||||
if ( (irq_nr >= IT8172_LPC_IRQ_BASE) && (irq_nr <= IT8172_SERIRQ_15)) {
|
||||
/* LPC interrupt */
|
||||
it8172_hw0_icregs->lpc_mask |=
|
||||
(1 << (irq_nr - IT8172_LPC_IRQ_BASE));
|
||||
} else if ( (irq_nr >= IT8172_LB_IRQ_BASE) && (irq_nr <= IT8172_IOCHK_IRQ)) {
|
||||
/* Local Bus interrupt */
|
||||
it8172_hw0_icregs->lb_mask |=
|
||||
(1 << (irq_nr - IT8172_LB_IRQ_BASE));
|
||||
} else if ( (irq_nr >= IT8172_PCI_DEV_IRQ_BASE) && (irq_nr <= IT8172_DMA_IRQ)) {
|
||||
/* PCI and other interrupts */
|
||||
it8172_hw0_icregs->pci_mask |=
|
||||
(1 << (irq_nr - IT8172_PCI_DEV_IRQ_BASE));
|
||||
} else if ( (irq_nr >= IT8172_NMI_IRQ_BASE) && (irq_nr <= IT8172_POWER_NMI_IRQ)) {
|
||||
/* NMI interrupts */
|
||||
it8172_hw0_icregs->nmi_mask |=
|
||||
(1 << (irq_nr - IT8172_NMI_IRQ_BASE));
|
||||
} else {
|
||||
panic("disable_it8172_irq: bad irq %d", irq_nr);
|
||||
}
|
||||
}
|
||||
|
||||
static void enable_it8172_irq(unsigned int irq_nr)
|
||||
{
|
||||
if ( (irq_nr >= IT8172_LPC_IRQ_BASE) && (irq_nr <= IT8172_SERIRQ_15)) {
|
||||
/* LPC interrupt */
|
||||
it8172_hw0_icregs->lpc_mask &=
|
||||
~(1 << (irq_nr - IT8172_LPC_IRQ_BASE));
|
||||
}
|
||||
else if ( (irq_nr >= IT8172_LB_IRQ_BASE) && (irq_nr <= IT8172_IOCHK_IRQ)) {
|
||||
/* Local Bus interrupt */
|
||||
it8172_hw0_icregs->lb_mask &=
|
||||
~(1 << (irq_nr - IT8172_LB_IRQ_BASE));
|
||||
}
|
||||
else if ( (irq_nr >= IT8172_PCI_DEV_IRQ_BASE) && (irq_nr <= IT8172_DMA_IRQ)) {
|
||||
/* PCI and other interrupts */
|
||||
it8172_hw0_icregs->pci_mask &=
|
||||
~(1 << (irq_nr - IT8172_PCI_DEV_IRQ_BASE));
|
||||
}
|
||||
else if ( (irq_nr >= IT8172_NMI_IRQ_BASE) && (irq_nr <= IT8172_POWER_NMI_IRQ)) {
|
||||
/* NMI interrupts */
|
||||
it8172_hw0_icregs->nmi_mask &=
|
||||
~(1 << (irq_nr - IT8172_NMI_IRQ_BASE));
|
||||
}
|
||||
else {
|
||||
panic("enable_it8172_irq: bad irq %d", irq_nr);
|
||||
}
|
||||
}
|
||||
|
||||
static unsigned int startup_ite_irq(unsigned int irq)
|
||||
{
|
||||
enable_it8172_irq(irq);
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define shutdown_ite_irq disable_it8172_irq
|
||||
#define mask_and_ack_ite_irq disable_it8172_irq
|
||||
|
||||
static void end_ite_irq(unsigned int irq)
|
||||
{
|
||||
if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
|
||||
enable_it8172_irq(irq);
|
||||
}
|
||||
|
||||
static struct irq_chip it8172_irq_type = {
|
||||
.typename = "ITE8172",
|
||||
.startup = startup_ite_irq,
|
||||
.shutdown = shutdown_ite_irq,
|
||||
.enable = enable_it8172_irq,
|
||||
.disable = disable_it8172_irq,
|
||||
.ack = mask_and_ack_ite_irq,
|
||||
.end = end_ite_irq,
|
||||
};
|
||||
|
||||
|
||||
static void enable_none(unsigned int irq) { }
|
||||
static unsigned int startup_none(unsigned int irq) { return 0; }
|
||||
static void disable_none(unsigned int irq) { }
|
||||
static void ack_none(unsigned int irq) { }
|
||||
|
||||
/* startup is the same as "enable", shutdown is same as "disable" */
|
||||
#define shutdown_none disable_none
|
||||
#define end_none enable_none
|
||||
|
||||
static struct irq_chip cp0_irq_type = {
|
||||
.typename = "CP0 Count",
|
||||
.startup = startup_none,
|
||||
.shutdown = shutdown_none,
|
||||
.enable = enable_none,
|
||||
.disable = disable_none,
|
||||
.ack = ack_none,
|
||||
.end = end_none
|
||||
};
|
||||
|
||||
void enable_cpu_timer(void)
|
||||
{
|
||||
unsigned long flags;
|
||||
|
||||
local_irq_save(flags);
|
||||
set_c0_status(0x100 << EXT_IRQ5_TO_IP);
|
||||
local_irq_restore(flags);
|
||||
}
|
||||
|
||||
void __init arch_init_irq(void)
|
||||
{
|
||||
int i;
|
||||
unsigned long flags;
|
||||
|
||||
/* mask all interrupts */
|
||||
it8172_hw0_icregs->lb_mask = 0xffff;
|
||||
it8172_hw0_icregs->lpc_mask = 0xffff;
|
||||
it8172_hw0_icregs->pci_mask = 0xffff;
|
||||
it8172_hw0_icregs->nmi_mask = 0xffff;
|
||||
|
||||
/* make all interrupts level triggered */
|
||||
it8172_hw0_icregs->lb_trigger = 0;
|
||||
it8172_hw0_icregs->lpc_trigger = 0;
|
||||
it8172_hw0_icregs->pci_trigger = 0;
|
||||
it8172_hw0_icregs->nmi_trigger = 0;
|
||||
|
||||
/* active level setting */
|
||||
/* uart, keyboard, and mouse are active high */
|
||||
it8172_hw0_icregs->lpc_level = (0x10 | 0x2 | 0x1000);
|
||||
it8172_hw0_icregs->lb_level |= 0x20;
|
||||
|
||||
/* keyboard and mouse are edge triggered */
|
||||
it8172_hw0_icregs->lpc_trigger |= (0x2 | 0x1000);
|
||||
|
||||
|
||||
#if 0
|
||||
// Enable this piece of code to make internal USB interrupt
|
||||
// edge triggered.
|
||||
it8172_hw0_icregs->pci_trigger |=
|
||||
(1 << (IT8172_USB_IRQ - IT8172_PCI_DEV_IRQ_BASE));
|
||||
it8172_hw0_icregs->pci_level &=
|
||||
~(1 << (IT8172_USB_IRQ - IT8172_PCI_DEV_IRQ_BASE));
|
||||
#endif
|
||||
|
||||
for (i = 0; i <= IT8172_LAST_IRQ; i++) {
|
||||
irq_desc[i].chip = &it8172_irq_type;
|
||||
spin_lock_init(&irq_desc[i].lock);
|
||||
}
|
||||
irq_desc[MIPS_CPU_TIMER_IRQ].chip = &cp0_irq_type;
|
||||
set_c0_status(ALLINTS_NOTIMER);
|
||||
}
|
||||
|
||||
void mips_spurious_interrupt(struct pt_regs *regs)
|
||||
{
|
||||
#if 1
|
||||
return;
|
||||
#else
|
||||
unsigned long status, cause;
|
||||
|
||||
printk("got spurious interrupt\n");
|
||||
status = read_c0_status();
|
||||
cause = read_c0_cause();
|
||||
printk("status %x cause %x\n", status, cause);
|
||||
printk("epc %x badvaddr %x \n", regs->cp0_epc, regs->cp0_badvaddr);
|
||||
#endif
|
||||
}
|
||||
|
||||
void it8172_hw0_irqdispatch(struct pt_regs *regs)
|
||||
{
|
||||
int irq;
|
||||
unsigned short intstatus = 0, status = 0;
|
||||
|
||||
intstatus = it8172_hw0_icregs->intstatus;
|
||||
if (intstatus & 0x8) {
|
||||
panic("Got NMI interrupt");
|
||||
} else if (intstatus & 0x4) {
|
||||
/* PCI interrupt */
|
||||
irq = 0;
|
||||
status |= it8172_hw0_icregs->pci_req;
|
||||
while (!(status & 0x1)) {
|
||||
irq++;
|
||||
status >>= 1;
|
||||
}
|
||||
irq += IT8172_PCI_DEV_IRQ_BASE;
|
||||
} else if (intstatus & 0x1) {
|
||||
/* Local Bus interrupt */
|
||||
irq = 0;
|
||||
status |= it8172_hw0_icregs->lb_req;
|
||||
while (!(status & 0x1)) {
|
||||
irq++;
|
||||
status >>= 1;
|
||||
}
|
||||
irq += IT8172_LB_IRQ_BASE;
|
||||
} else if (intstatus & 0x2) {
|
||||
/* LPC interrupt */
|
||||
/* Since some lpc interrupts are edge triggered,
|
||||
* we could lose an interrupt this way because
|
||||
* we acknowledge all ints at onces. Revisit.
|
||||
*/
|
||||
status |= it8172_hw0_icregs->lpc_req;
|
||||
it8172_hw0_icregs->lpc_req = 0; /* acknowledge ints */
|
||||
irq = 0;
|
||||
while (!(status & 0x1)) {
|
||||
irq++;
|
||||
status >>= 1;
|
||||
}
|
||||
irq += IT8172_LPC_IRQ_BASE;
|
||||
} else
|
||||
return;
|
||||
|
||||
do_IRQ(irq, regs);
|
||||
}
|
||||
|
||||
asmlinkage void plat_irq_dispatch(struct pt_regs *regs)
|
||||
{
|
||||
unsigned int pending = read_c0_cause() & read_c0_status() & ST0_IM;
|
||||
|
||||
if (!pending)
|
||||
mips_spurious_interrupt(regs);
|
||||
else if (pending & CAUSEF_IP7)
|
||||
ll_timer_interrupt(127, regs);
|
||||
else if (pending & CAUSEF_IP2)
|
||||
it8172_hw0_irqdispatch(regs);
|
||||
}
|
||||
|
||||
void show_pending_irqs(void)
|
||||
{
|
||||
fputs("intstatus: ");
|
||||
put32(it8172_hw0_icregs->intstatus);
|
||||
puts("");
|
||||
|
||||
fputs("pci_req: ");
|
||||
put32(it8172_hw0_icregs->pci_req);
|
||||
puts("");
|
||||
|
||||
fputs("lb_req: ");
|
||||
put32(it8172_hw0_icregs->lb_req);
|
||||
puts("");
|
||||
|
||||
fputs("lpc_req: ");
|
||||
put32(it8172_hw0_icregs->lpc_req);
|
||||
puts("");
|
||||
}
|
|
@ -1,170 +0,0 @@
|
|||
/*
|
||||
*
|
||||
* BRIEF MODULE DESCRIPTION
|
||||
* IT8172 Consumer IR port generic routines.
|
||||
*
|
||||
* Copyright 2001 MontaVista Software Inc.
|
||||
* Author: MontaVista Software, Inc.
|
||||
* ppopov@mvista.com or source@mvista.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.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
||||
* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
||||
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
|
||||
#ifdef CONFIG_IT8172_CIR
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <linux/pci.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/init.h>
|
||||
|
||||
#include <asm/it8172/it8172.h>
|
||||
#include <asm/it8172/it8172_cir.h>
|
||||
|
||||
|
||||
volatile struct it8172_cir_regs *cir_regs[NUM_CIR_PORTS] = {
|
||||
(volatile struct it8172_cir_regs *)(KSEG1ADDR(IT8172_PCI_IO_BASE + IT_CIR0_BASE)),
|
||||
(volatile struct it8172_cir_regs *)(KSEG1ADDR(IT8172_PCI_IO_BASE + IT_CIR1_BASE))};
|
||||
|
||||
|
||||
/*
|
||||
* Initialize Consumer IR Port.
|
||||
*/
|
||||
int cir_port_init(struct cir_port *cir)
|
||||
{
|
||||
int port = cir->port;
|
||||
unsigned char data;
|
||||
|
||||
/* set baud rate */
|
||||
cir_regs[port]->bdlr = cir->baud_rate & 0xff;
|
||||
cir_regs[port]->bdhr = (cir->baud_rate >> 8) & 0xff;
|
||||
|
||||
/* set receiver control register */
|
||||
cir_regs[port]->rcr = (CIR_SET_RDWOS(cir->rdwos) | CIR_SET_RXDCR(cir->rxdcr));
|
||||
|
||||
/* set carrier frequency register */
|
||||
cir_regs[port]->cfr = (CIR_SET_CF(cir->cfq) | CIR_SET_HS(cir->hcfs));
|
||||
|
||||
/* set fifo threshold */
|
||||
data = cir_regs[port]->mstcr & 0xf3;
|
||||
data |= CIR_SET_FIFO_TL(cir->fifo_tl);
|
||||
cir_regs[port]->mstcr = data;
|
||||
|
||||
clear_fifo(cir);
|
||||
enable_receiver(cir);
|
||||
disable_rx_demodulation(cir);
|
||||
|
||||
set_rx_active(cir);
|
||||
int_enable(cir);
|
||||
rx_int_enable(cir);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
void clear_fifo(struct cir_port *cir)
|
||||
{
|
||||
cir_regs[cir->port]->mstcr |= CIR_FIFO_CLEAR;
|
||||
}
|
||||
|
||||
void enable_receiver(struct cir_port *cir)
|
||||
{
|
||||
cir_regs[cir->port]->rcr |= CIR_RXEN;
|
||||
}
|
||||
|
||||
void disable_receiver(struct cir_port *cir)
|
||||
{
|
||||
cir_regs[cir->port]->rcr &= ~CIR_RXEN;
|
||||
}
|
||||
|
||||
void enable_rx_demodulation(struct cir_port *cir)
|
||||
{
|
||||
cir_regs[cir->port]->rcr |= CIR_RXEND;
|
||||
}
|
||||
|
||||
void disable_rx_demodulation(struct cir_port *cir)
|
||||
{
|
||||
cir_regs[cir->port]->rcr &= ~CIR_RXEND;
|
||||
}
|
||||
|
||||
void set_rx_active(struct cir_port *cir)
|
||||
{
|
||||
cir_regs[cir->port]->rcr |= CIR_RXACT;
|
||||
}
|
||||
|
||||
void int_enable(struct cir_port *cir)
|
||||
{
|
||||
cir_regs[cir->port]->ier |= CIR_IEC;
|
||||
}
|
||||
|
||||
void rx_int_enable(struct cir_port *cir)
|
||||
{
|
||||
cir_regs[cir->port]->ier |= CIR_RDAIE;
|
||||
}
|
||||
|
||||
void dump_regs(struct cir_port *cir)
|
||||
{
|
||||
printk("mstcr %x ier %x iir %x cfr %x rcr %x tcr %x tfsr %x rfsr %x\n",
|
||||
cir_regs[cir->port]->mstcr,
|
||||
cir_regs[cir->port]->ier,
|
||||
cir_regs[cir->port]->iir,
|
||||
cir_regs[cir->port]->cfr,
|
||||
cir_regs[cir->port]->rcr,
|
||||
cir_regs[cir->port]->tcr,
|
||||
cir_regs[cir->port]->tfsr,
|
||||
cir_regs[cir->port]->rfsr);
|
||||
|
||||
while (cir_regs[cir->port]->iir & CIR_RDAI) {
|
||||
printk("data %x\n", cir_regs[cir->port]->dr);
|
||||
}
|
||||
}
|
||||
|
||||
void dump_reg_addr(struct cir_port *cir)
|
||||
{
|
||||
printk("dr %x mstcr %x ier %x iir %x cfr %x rcr %x tcr %x bdlr %x bdhr %x tfsr %x rfsr %x\n",
|
||||
(unsigned)&cir_regs[cir->port]->dr,
|
||||
(unsigned)&cir_regs[cir->port]->mstcr,
|
||||
(unsigned)&cir_regs[cir->port]->ier,
|
||||
(unsigned)&cir_regs[cir->port]->iir,
|
||||
(unsigned)&cir_regs[cir->port]->cfr,
|
||||
(unsigned)&cir_regs[cir->port]->rcr,
|
||||
(unsigned)&cir_regs[cir->port]->tcr,
|
||||
(unsigned)&cir_regs[cir->port]->bdlr,
|
||||
(unsigned)&cir_regs[cir->port]->bdhr,
|
||||
(unsigned)&cir_regs[cir->port]->tfsr,
|
||||
(unsigned)&cir_regs[cir->port]->rfsr);
|
||||
}
|
||||
|
||||
int cir_get_rx_count(struct cir_port *cir)
|
||||
{
|
||||
return cir_regs[cir->port]->rfsr & CIR_RXFBC_MASK;
|
||||
}
|
||||
|
||||
char cir_read_data(struct cir_port *cir)
|
||||
{
|
||||
return cir_regs[cir->port]->dr;
|
||||
}
|
||||
|
||||
char get_int_status(struct cir_port *cir)
|
||||
{
|
||||
return cir_regs[cir->port]->iir;
|
||||
}
|
||||
#endif
|
|
@ -1,352 +0,0 @@
|
|||
/*
|
||||
* BRIEF MODULE DESCRIPTION
|
||||
* IT8172/QED5231 board setup.
|
||||
*
|
||||
* Copyright 2000 MontaVista Software Inc.
|
||||
* Author: MontaVista Software, Inc.
|
||||
* ppopov@mvista.com or source@mvista.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.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
||||
* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
||||
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
#include <linux/init.h>
|
||||
#include <linux/sched.h>
|
||||
#include <linux/ioport.h>
|
||||
#include <linux/irq.h>
|
||||
#include <linux/serial_reg.h>
|
||||
#include <linux/major.h>
|
||||
#include <linux/kdev_t.h>
|
||||
#include <linux/root_dev.h>
|
||||
#include <linux/pm.h>
|
||||
|
||||
#include <asm/cpu.h>
|
||||
#include <asm/time.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/bootinfo.h>
|
||||
#include <asm/irq.h>
|
||||
#include <asm/mipsregs.h>
|
||||
#include <asm/reboot.h>
|
||||
#include <asm/traps.h>
|
||||
#include <asm/it8172/it8172.h>
|
||||
#include <asm/it8712.h>
|
||||
|
||||
extern struct resource ioport_resource;
|
||||
#ifdef CONFIG_SERIO_I8042
|
||||
int init_8712_keyboard(void);
|
||||
#endif
|
||||
|
||||
extern int SearchIT8712(void);
|
||||
extern void InitLPCInterface(void);
|
||||
extern char * __init prom_getcmdline(void);
|
||||
extern void it8172_restart(char *command);
|
||||
extern void it8172_halt(void);
|
||||
extern void it8172_power_off(void);
|
||||
|
||||
extern void it8172_time_init(void);
|
||||
|
||||
#ifdef CONFIG_IT8172_REVC
|
||||
struct {
|
||||
struct resource ram;
|
||||
struct resource pci_mem;
|
||||
struct resource pci_io;
|
||||
struct resource flash;
|
||||
struct resource boot;
|
||||
} it8172_resources = {
|
||||
{
|
||||
.start = 0, /* to be initted */
|
||||
.end = 0,
|
||||
.name = "RAM",
|
||||
.flags = IORESOURCE_MEM
|
||||
}, {
|
||||
.start = 0x10000000,
|
||||
.end = 0x13FFFFFF,
|
||||
.name = "PCI Mem",
|
||||
.flags = IORESOURCE_MEM
|
||||
}, {
|
||||
.start = 0x14000000,
|
||||
.end = 0x17FFFFFF
|
||||
.name = "PCI I/O",
|
||||
}, {
|
||||
.start = 0x08000000,
|
||||
.end = 0x0CFFFFFF
|
||||
.name = "Flash",
|
||||
}, {
|
||||
.start = 0x1FC00000,
|
||||
.end = 0x1FFFFFFF
|
||||
.name = "Boot ROM",
|
||||
}
|
||||
};
|
||||
#else
|
||||
struct {
|
||||
struct resource ram;
|
||||
struct resource pci_mem0;
|
||||
struct resource pci_mem1;
|
||||
struct resource pci_io;
|
||||
struct resource pci_mem2;
|
||||
struct resource pci_mem3;
|
||||
struct resource flash;
|
||||
struct resource boot;
|
||||
} it8172_resources = {
|
||||
{
|
||||
.start = 0, /* to be initted */
|
||||
.end = 0,
|
||||
.name = "RAM",
|
||||
.flags = IORESOURCE_MEM
|
||||
}, {
|
||||
.start = 0x0C000000,
|
||||
.end = 0x0FFFFFFF,
|
||||
.name = "PCI Mem0",
|
||||
.flags = IORESOURCE_MEM
|
||||
}, {
|
||||
.start = 0x10000000,
|
||||
.end = 0x13FFFFFF,
|
||||
.name = "PCI Mem1",
|
||||
.flags = IORESOURCE_MEM
|
||||
}, {
|
||||
.start = 0x14000000,
|
||||
.end = 0x17FFFFFF
|
||||
.name = "PCI I/O",
|
||||
}, {
|
||||
.start = 0x1A000000,
|
||||
.end = 0x1BFFFFFF,
|
||||
.name = "PCI Mem2",
|
||||
.flags = IORESOURCE_MEM
|
||||
}, {
|
||||
.start = 0x1C000000,
|
||||
.end = 0x1FBFFFFF,
|
||||
.name = "PCI Mem3",
|
||||
.flags = IORESOURCE_MEM
|
||||
}, {
|
||||
.start = 0x08000000,
|
||||
.end = 0x0CFFFFFF
|
||||
.name = "Flash",
|
||||
}, {
|
||||
.start = 0x1FC00000,
|
||||
.end = 0x1FFFFFFF
|
||||
.name = "Boot ROM",
|
||||
}
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
void __init it8172_init_ram_resource(unsigned long memsize)
|
||||
{
|
||||
it8172_resources.ram.end = memsize;
|
||||
}
|
||||
|
||||
void __init plat_mem_setup(void)
|
||||
{
|
||||
unsigned short dsr;
|
||||
char *argptr;
|
||||
|
||||
argptr = prom_getcmdline();
|
||||
#ifdef CONFIG_SERIAL_CONSOLE
|
||||
if ((argptr = strstr(argptr, "console=")) == NULL) {
|
||||
argptr = prom_getcmdline();
|
||||
strcat(argptr, " console=ttyS0,115200");
|
||||
}
|
||||
#endif
|
||||
|
||||
clear_c0_status(ST0_FR);
|
||||
|
||||
board_time_init = it8172_time_init;
|
||||
|
||||
_machine_restart = it8172_restart;
|
||||
_machine_halt = it8172_halt;
|
||||
pm_power_off = it8172_power_off;
|
||||
|
||||
/*
|
||||
* IO/MEM resources.
|
||||
*
|
||||
* revisit this area.
|
||||
*/
|
||||
set_io_port_base(KSEG1);
|
||||
ioport_resource.start = it8172_resources.pci_io.start;
|
||||
ioport_resource.end = it8172_resources.pci_io.end;
|
||||
#ifdef CONFIG_IT8172_REVC
|
||||
iomem_resource.start = it8172_resources.pci_mem.start;
|
||||
iomem_resource.end = it8172_resources.pci_mem.end;
|
||||
#else
|
||||
iomem_resource.start = it8172_resources.pci_mem0.start;
|
||||
iomem_resource.end = it8172_resources.pci_mem3.end;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_BLK_DEV_INITRD
|
||||
ROOT_DEV = Root_RAM0;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Pull enabled devices out of standby
|
||||
*/
|
||||
IT_IO_READ16(IT_PM_DSR, dsr);
|
||||
|
||||
/*
|
||||
* Fixme: This breaks when these drivers are modules!!!
|
||||
*/
|
||||
#ifdef CONFIG_SOUND_IT8172
|
||||
dsr &= ~IT_PM_DSR_ACSB;
|
||||
#else
|
||||
dsr |= IT_PM_DSR_ACSB;
|
||||
#endif
|
||||
#ifdef CONFIG_BLK_DEV_IT8172
|
||||
dsr &= ~IT_PM_DSR_IDESB;
|
||||
#else
|
||||
dsr |= IT_PM_DSR_IDESB;
|
||||
#endif
|
||||
IT_IO_WRITE16(IT_PM_DSR, dsr);
|
||||
|
||||
InitLPCInterface();
|
||||
|
||||
#ifdef CONFIG_MIPS_ITE8172
|
||||
if (SearchIT8712()) {
|
||||
printk("Found IT8712 Super IO\n");
|
||||
/* enable IT8712 serial port */
|
||||
LPCSetConfig(LDN_SERIAL1, 0x30, 0x01); /* enable */
|
||||
LPCSetConfig(LDN_SERIAL1, 0x23, 0x01); /* clock selection */
|
||||
#ifdef CONFIG_SERIO_I8042
|
||||
if (init_8712_keyboard()) {
|
||||
printk("Unable to initialize keyboard\n");
|
||||
LPCSetConfig(LDN_KEYBOARD, 0x30, 0x0); /* disable keyboard */
|
||||
} else {
|
||||
LPCSetConfig(LDN_KEYBOARD, 0x30, 0x1); /* enable keyboard */
|
||||
LPCSetConfig(LDN_KEYBOARD, 0xf0, 0x2);
|
||||
LPCSetConfig(LDN_KEYBOARD, 0x71, 0x3);
|
||||
|
||||
LPCSetConfig(LDN_MOUSE, 0x30, 0x1); /* enable mouse */
|
||||
|
||||
LPCSetConfig(0x4, 0x30, 0x1);
|
||||
LPCSetConfig(0x4, 0xf4, LPCGetConfig(0x4, 0xf4) | 0x80);
|
||||
|
||||
if ((LPCGetConfig(LDN_KEYBOARD, 0x30) == 0) ||
|
||||
(LPCGetConfig(LDN_MOUSE, 0x30) == 0))
|
||||
printk("Error: keyboard or mouse not enabled\n");
|
||||
|
||||
}
|
||||
#endif
|
||||
}
|
||||
else {
|
||||
printk("IT8712 Super IO not found\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_IT8172_CIR
|
||||
{
|
||||
unsigned long data;
|
||||
//printk("Enabling CIR0\n");
|
||||
IT_IO_READ16(IT_PM_DSR, data);
|
||||
data &= ~IT_PM_DSR_CIR0SB;
|
||||
IT_IO_WRITE16(IT_PM_DSR, data);
|
||||
//printk("DSR register: %x\n", (unsigned)IT_IO_READ16(IT_PM_DSR, data));
|
||||
}
|
||||
#endif
|
||||
#ifdef CONFIG_IT8172_SCR0
|
||||
{
|
||||
unsigned i;
|
||||
/* Enable Smart Card Reader 0 */
|
||||
/* First power it up */
|
||||
IT_IO_READ16(IT_PM_DSR, i);
|
||||
i &= ~IT_PM_DSR_SCR0SB;
|
||||
IT_IO_WRITE16(IT_PM_DSR, i);
|
||||
/* Then initialize its registers */
|
||||
outb(( IT_SCR_SFR_GATE_UART_OFF << IT_SCR_SFR_GATE_UART_BIT
|
||||
|IT_SCR_SFR_FET_CHARGE_213_US << IT_SCR_SFR_FET_CHARGE_BIT
|
||||
|IT_SCR_SFR_CARD_FREQ_3_5_MHZ << IT_SCR_SFR_CARD_FREQ_BIT
|
||||
|IT_SCR_SFR_FET_ACTIVE_INVERT << IT_SCR_SFR_FET_ACTIVE_BIT
|
||||
|IT_SCR_SFR_ENABLE_ON << IT_SCR_SFR_ENABLE_BIT),
|
||||
IT8172_PCI_IO_BASE + IT_SCR0_BASE + IT_SCR_SFR);
|
||||
outb(IT_SCR_SCDR_RESET_MODE_ASYNC << IT_SCR_SCDR_RESET_MODE_BIT,
|
||||
IT8172_PCI_IO_BASE + IT_SCR0_BASE + IT_SCR_SCDR);
|
||||
}
|
||||
#endif /* CONFIG_IT8172_SCR0 */
|
||||
#ifdef CONFIG_IT8172_SCR1
|
||||
{
|
||||
unsigned i;
|
||||
/* Enable Smart Card Reader 1 */
|
||||
/* First power it up */
|
||||
IT_IO_READ16(IT_PM_DSR, i);
|
||||
i &= ~IT_PM_DSR_SCR1SB;
|
||||
IT_IO_WRITE16(IT_PM_DSR, i);
|
||||
/* Then initialize its registers */
|
||||
outb(( IT_SCR_SFR_GATE_UART_OFF << IT_SCR_SFR_GATE_UART_BIT
|
||||
|IT_SCR_SFR_FET_CHARGE_213_US << IT_SCR_SFR_FET_CHARGE_BIT
|
||||
|IT_SCR_SFR_CARD_FREQ_3_5_MHZ << IT_SCR_SFR_CARD_FREQ_BIT
|
||||
|IT_SCR_SFR_FET_ACTIVE_INVERT << IT_SCR_SFR_FET_ACTIVE_BIT
|
||||
|IT_SCR_SFR_ENABLE_ON << IT_SCR_SFR_ENABLE_BIT),
|
||||
IT8172_PCI_IO_BASE + IT_SCR1_BASE + IT_SCR_SFR);
|
||||
outb(IT_SCR_SCDR_RESET_MODE_ASYNC << IT_SCR_SCDR_RESET_MODE_BIT,
|
||||
IT8172_PCI_IO_BASE + IT_SCR1_BASE + IT_SCR_SCDR);
|
||||
}
|
||||
#endif /* CONFIG_IT8172_SCR1 */
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SERIO_I8042
|
||||
/*
|
||||
* According to the ITE Special BIOS Note for waking up the
|
||||
* keyboard controller...
|
||||
*/
|
||||
static int init_8712_keyboard(void)
|
||||
{
|
||||
unsigned int cmd_port = 0x14000064;
|
||||
unsigned int data_port = 0x14000060;
|
||||
^^^^^^^^^^^
|
||||
Somebody here doesn't grok the concept of io ports.
|
||||
|
||||
unsigned char data;
|
||||
int i;
|
||||
|
||||
outb(0xaa, cmd_port); /* send self-test cmd */
|
||||
i = 0;
|
||||
while (!(inb(cmd_port) & 0x1)) { /* wait output buffer full */
|
||||
i++;
|
||||
if (i > 0xffffff)
|
||||
return 1;
|
||||
}
|
||||
|
||||
data = inb(data_port);
|
||||
outb(0xcb, cmd_port); /* set ps2 mode */
|
||||
while (inb(cmd_port) & 0x2) { /* wait while input buffer full */
|
||||
i++;
|
||||
if (i > 0xffffff)
|
||||
return 1;
|
||||
}
|
||||
outb(0x01, data_port);
|
||||
while (inb(cmd_port) & 0x2) { /* wait while input buffer full */
|
||||
i++;
|
||||
if (i > 0xffffff)
|
||||
return 1;
|
||||
}
|
||||
|
||||
outb(0x60, cmd_port); /* write 8042 command byte */
|
||||
while (inb(cmd_port) & 0x2) { /* wait while input buffer full */
|
||||
i++;
|
||||
if (i > 0xffffff)
|
||||
return 1;
|
||||
}
|
||||
outb(0x45, data_port); /* at interface, keyboard enabled, system flag */
|
||||
while (inb(cmd_port) & 0x2) { /* wait while input buffer full */
|
||||
i++;
|
||||
if (i > 0xffffff)
|
||||
return 1;
|
||||
}
|
||||
|
||||
outb(0xae, cmd_port); /* enable interface */
|
||||
return 0;
|
||||
}
|
||||
#endif
|
|
@ -1,144 +0,0 @@
|
|||
/*
|
||||
*
|
||||
* BRIEF MODULE DESCRIPTION
|
||||
* ITE Semi IT8712 Super I/O functions.
|
||||
*
|
||||
* Copyright 2001 MontaVista Software Inc.
|
||||
* Author: MontaVista Software, Inc.
|
||||
* ppopov@mvista.com or source@mvista.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.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
||||
* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
||||
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include <asm/io.h>
|
||||
#include <asm/types.h>
|
||||
#include <asm/it8712.h>
|
||||
#include <asm/it8172/it8172.h>
|
||||
|
||||
#ifndef TRUE
|
||||
#define TRUE 1
|
||||
#endif
|
||||
|
||||
#ifndef FALSE
|
||||
#define FALSE 0
|
||||
#endif
|
||||
|
||||
void LPCEnterMBPnP(void)
|
||||
{
|
||||
int i;
|
||||
unsigned char key[4] = {0x87, 0x01, 0x55, 0x55};
|
||||
|
||||
for (i = 0; i<4; i++)
|
||||
outb(key[i], LPC_KEY_ADDR);
|
||||
|
||||
}
|
||||
|
||||
void LPCExitMBPnP(void)
|
||||
{
|
||||
outb(0x02, LPC_KEY_ADDR);
|
||||
outb(0x02, LPC_DATA_ADDR);
|
||||
}
|
||||
|
||||
void LPCSetConfig(char LdnNumber, char Index, char data)
|
||||
{
|
||||
LPCEnterMBPnP(); // Enter IT8712 MB PnP mode
|
||||
outb(0x07, LPC_KEY_ADDR);
|
||||
outb(LdnNumber, LPC_DATA_ADDR);
|
||||
outb(Index, LPC_KEY_ADDR);
|
||||
outb(data, LPC_DATA_ADDR);
|
||||
LPCExitMBPnP();
|
||||
}
|
||||
|
||||
char LPCGetConfig(char LdnNumber, char Index)
|
||||
{
|
||||
char rtn;
|
||||
|
||||
LPCEnterMBPnP(); // Enter IT8712 MB PnP mode
|
||||
outb(0x07, LPC_KEY_ADDR);
|
||||
outb(LdnNumber, LPC_DATA_ADDR);
|
||||
outb(Index, LPC_KEY_ADDR);
|
||||
rtn = inb(LPC_DATA_ADDR);
|
||||
LPCExitMBPnP();
|
||||
return rtn;
|
||||
}
|
||||
|
||||
int SearchIT8712(void)
|
||||
{
|
||||
unsigned char Id1, Id2;
|
||||
unsigned short Id;
|
||||
|
||||
LPCEnterMBPnP();
|
||||
outb(0x20, LPC_KEY_ADDR); /* chip id byte 1 */
|
||||
Id1 = inb(LPC_DATA_ADDR);
|
||||
outb(0x21, LPC_KEY_ADDR); /* chip id byte 2 */
|
||||
Id2 = inb(LPC_DATA_ADDR);
|
||||
Id = (Id1 << 8) | Id2;
|
||||
LPCExitMBPnP();
|
||||
if (Id == 0x8712)
|
||||
return TRUE;
|
||||
else
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
void InitLPCInterface(void)
|
||||
{
|
||||
unsigned char bus, dev_fn;
|
||||
unsigned long data;
|
||||
|
||||
bus = 0;
|
||||
dev_fn = 1<<3 | 4;
|
||||
|
||||
|
||||
/* pci cmd, SERR# Enable */
|
||||
IT_WRITE(IT_CONFADDR,
|
||||
(bus << IT_BUSNUM_SHF) |
|
||||
(dev_fn << IT_FUNCNUM_SHF) |
|
||||
((0x4 / 4) << IT_REGNUM_SHF));
|
||||
IT_READ(IT_CONFDATA, data);
|
||||
data |= 0x0100;
|
||||
IT_WRITE(IT_CONFADDR,
|
||||
(bus << IT_BUSNUM_SHF) |
|
||||
(dev_fn << IT_FUNCNUM_SHF) |
|
||||
((0x4 / 4) << IT_REGNUM_SHF));
|
||||
IT_WRITE(IT_CONFDATA, data);
|
||||
|
||||
/* setup serial irq control register */
|
||||
IT_WRITE(IT_CONFADDR,
|
||||
(bus << IT_BUSNUM_SHF) |
|
||||
(dev_fn << IT_FUNCNUM_SHF) |
|
||||
((0x48 / 4) << IT_REGNUM_SHF));
|
||||
IT_READ(IT_CONFDATA, data);
|
||||
data = (data & 0xffff00ff) | 0xc400;
|
||||
IT_WRITE(IT_CONFADDR,
|
||||
(bus << IT_BUSNUM_SHF) |
|
||||
(dev_fn << IT_FUNCNUM_SHF) |
|
||||
((0x48 / 4) << IT_REGNUM_SHF));
|
||||
IT_WRITE(IT_CONFDATA, data);
|
||||
|
||||
|
||||
/* Enable I/O Space Subtractive Decode */
|
||||
/* default 0x4C is 0x3f220000 */
|
||||
IT_WRITE(IT_CONFADDR,
|
||||
(bus << IT_BUSNUM_SHF) |
|
||||
(dev_fn << IT_FUNCNUM_SHF) |
|
||||
((0x4C / 4) << IT_REGNUM_SHF));
|
||||
IT_WRITE(IT_CONFDATA, 0x3f2200f3);
|
||||
}
|
|
@ -1,135 +0,0 @@
|
|||
/*
|
||||
*
|
||||
* BRIEF MODULE DESCRIPTION
|
||||
* PROM library initialisation code, assuming a version of
|
||||
* pmon is the boot code.
|
||||
*
|
||||
* Copyright 2000 MontaVista Software Inc.
|
||||
* Author: MontaVista Software, Inc.
|
||||
* ppopov@mvista.com or source@mvista.com
|
||||
*
|
||||
* This file was derived from Carsten Langgaard's
|
||||
* arch/mips/mips-boards/xx files.
|
||||
*
|
||||
* Carsten Langgaard, carstenl@mips.com
|
||||
* Copyright (C) 1999,2000 MIPS Technologies, Inc. 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 as published by the
|
||||
* Free Software Foundation; either version 2 of the License, or (at your
|
||||
* option) any later version.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
||||
* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
||||
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
#include <asm/bootinfo.h>
|
||||
|
||||
extern int prom_argc;
|
||||
extern char **prom_argv, **prom_envp;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
char *name;
|
||||
/* char *val; */
|
||||
}t_env_var;
|
||||
|
||||
|
||||
char * __init prom_getcmdline(void)
|
||||
{
|
||||
return &(arcs_cmdline[0]);
|
||||
}
|
||||
|
||||
void __init prom_init_cmdline(void)
|
||||
{
|
||||
char *cp;
|
||||
int actr;
|
||||
|
||||
actr = 1; /* Always ignore argv[0] */
|
||||
|
||||
cp = &(arcs_cmdline[0]);
|
||||
while(actr < prom_argc) {
|
||||
strcpy(cp, prom_argv[actr]);
|
||||
cp += strlen(prom_argv[actr]);
|
||||
*cp++ = ' ';
|
||||
actr++;
|
||||
}
|
||||
if (cp != &(arcs_cmdline[0])) /* get rid of trailing space */
|
||||
--cp;
|
||||
*cp = '\0';
|
||||
|
||||
}
|
||||
|
||||
|
||||
char *prom_getenv(char *envname)
|
||||
{
|
||||
/*
|
||||
* Return a pointer to the given environment variable.
|
||||
* Environment variables are stored in the form of "memsize=64".
|
||||
*/
|
||||
|
||||
t_env_var *env = (t_env_var *)prom_envp;
|
||||
int i;
|
||||
|
||||
i = strlen(envname);
|
||||
|
||||
while(env->name) {
|
||||
if(strncmp(envname, env->name, i) == 0) {
|
||||
return(env->name + strlen(envname) + 1);
|
||||
}
|
||||
env++;
|
||||
}
|
||||
return(NULL);
|
||||
}
|
||||
|
||||
static inline unsigned char str2hexnum(unsigned char c)
|
||||
{
|
||||
if(c >= '0' && c <= '9')
|
||||
return c - '0';
|
||||
if(c >= 'a' && c <= 'f')
|
||||
return c - 'a' + 10;
|
||||
return 0; /* foo */
|
||||
}
|
||||
|
||||
unsigned long __init prom_free_prom_memory(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
unsigned long __init prom_get_memsize(void)
|
||||
{
|
||||
char *memsize_str;
|
||||
unsigned int memsize;
|
||||
|
||||
memsize_str = prom_getenv("memsize");
|
||||
if (!memsize_str) {
|
||||
#ifdef CONFIG_MIPS_ITE8172
|
||||
memsize = 32;
|
||||
#elif defined(CONFIG_MIPS_IVR)
|
||||
memsize = 64;
|
||||
#else
|
||||
memsize = 8;
|
||||
#endif
|
||||
printk("memsize unknown: setting to %dMB\n", memsize);
|
||||
} else {
|
||||
printk("memsize: %s\n", memsize_str);
|
||||
memsize = simple_strtol(memsize_str, NULL, 0);
|
||||
}
|
||||
return memsize;
|
||||
}
|
|
@ -1,139 +0,0 @@
|
|||
/*
|
||||
*
|
||||
* BRIEF MODULE DESCRIPTION
|
||||
* Low level uart routines to directly access a 16550 uart.
|
||||
*
|
||||
* Copyright 2000,2001 MontaVista Software Inc.
|
||||
* Author: MontaVista Software, Inc.
|
||||
* ppopov@mvista.com or source@mvista.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.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
||||
* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
||||
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
#define SERIAL_BASE 0xB4011800 /* it8172 */
|
||||
#define SER_CMD 5
|
||||
#define SER_DATA 0x00
|
||||
#define TX_BUSY 0x20
|
||||
|
||||
#define TIMEOUT 0xffff
|
||||
#undef SLOW_DOWN
|
||||
|
||||
static const char digits[16] = "0123456789abcdef";
|
||||
static volatile unsigned char *const com1 = (unsigned char *) SERIAL_BASE;
|
||||
|
||||
|
||||
#ifdef SLOW_DOWN
|
||||
static inline void slow_down()
|
||||
{
|
||||
int k;
|
||||
for (k = 0; k < 10000; k++);
|
||||
}
|
||||
#else
|
||||
#define slow_down()
|
||||
#endif
|
||||
|
||||
void putch(const unsigned char c)
|
||||
{
|
||||
unsigned char ch;
|
||||
int i = 0;
|
||||
|
||||
do {
|
||||
ch = com1[SER_CMD];
|
||||
slow_down();
|
||||
i++;
|
||||
if (i > TIMEOUT) {
|
||||
break;
|
||||
}
|
||||
} while (0 == (ch & TX_BUSY));
|
||||
com1[SER_DATA] = c;
|
||||
}
|
||||
|
||||
void puts(unsigned char *cp)
|
||||
{
|
||||
unsigned char ch;
|
||||
int i = 0;
|
||||
|
||||
while (*cp) {
|
||||
do {
|
||||
ch = com1[SER_CMD];
|
||||
slow_down();
|
||||
i++;
|
||||
if (i > TIMEOUT) {
|
||||
break;
|
||||
}
|
||||
} while (0 == (ch & TX_BUSY));
|
||||
com1[SER_DATA] = *cp++;
|
||||
}
|
||||
putch('\r');
|
||||
putch('\n');
|
||||
}
|
||||
|
||||
void fputs(unsigned char *cp)
|
||||
{
|
||||
unsigned char ch;
|
||||
int i = 0;
|
||||
|
||||
while (*cp) {
|
||||
|
||||
do {
|
||||
ch = com1[SER_CMD];
|
||||
slow_down();
|
||||
i++;
|
||||
if (i > TIMEOUT) {
|
||||
break;
|
||||
}
|
||||
} while (0 == (ch & TX_BUSY));
|
||||
com1[SER_DATA] = *cp++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void put64(uint64_t ul)
|
||||
{
|
||||
int cnt;
|
||||
unsigned ch;
|
||||
|
||||
cnt = 16; /* 16 nibbles in a 64 bit long */
|
||||
putch('0');
|
||||
putch('x');
|
||||
do {
|
||||
cnt--;
|
||||
ch = (unsigned char) (ul >> cnt * 4) & 0x0F;
|
||||
putch(digits[ch]);
|
||||
} while (cnt > 0);
|
||||
}
|
||||
|
||||
void put32(unsigned u)
|
||||
{
|
||||
int cnt;
|
||||
unsigned ch;
|
||||
|
||||
cnt = 8; /* 8 nibbles in a 32 bit long */
|
||||
putch('0');
|
||||
putch('x');
|
||||
do {
|
||||
cnt--;
|
||||
ch = (unsigned char) (u >> cnt * 4) & 0x0F;
|
||||
putch(digits[ch]);
|
||||
} while (cnt > 0);
|
||||
}
|
|
@ -1,60 +0,0 @@
|
|||
/*
|
||||
*
|
||||
* BRIEF MODULE DESCRIPTION
|
||||
* ITE 8172 reset routines.
|
||||
*
|
||||
* Copyright 2001 MontaVista Software Inc.
|
||||
* Author: MontaVista Software, Inc.
|
||||
* ppopov@mvista.com or source@mvista.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.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
||||
* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
||||
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include <linux/sched.h>
|
||||
#include <linux/mm.h>
|
||||
#include <asm/cacheflush.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/processor.h>
|
||||
#include <asm/reboot.h>
|
||||
#include <asm/system.h>
|
||||
|
||||
void it8172_restart()
|
||||
{
|
||||
set_c0_status(ST0_BEV | ST0_ERL);
|
||||
change_c0_config(CONF_CM_CMASK, CONF_CM_UNCACHED);
|
||||
flush_cache_all();
|
||||
write_c0_wired(0);
|
||||
__asm__ __volatile__("jr\t%0"::"r"(0xbfc00000));
|
||||
}
|
||||
|
||||
void it8172_halt(void)
|
||||
{
|
||||
printk(KERN_NOTICE "\n** You can safely turn off the power\n");
|
||||
while (1)
|
||||
__asm__(".set\tmips3\n\t"
|
||||
"wait\n\t"
|
||||
".set\tmips0");
|
||||
}
|
||||
|
||||
void it8172_power_off(void)
|
||||
{
|
||||
it8172_halt();
|
||||
}
|
|
@ -1,249 +0,0 @@
|
|||
/*
|
||||
* Carsten Langgaard, carstenl@mips.com
|
||||
* Copyright (C) 1999,2000 MIPS Technologies, Inc. All rights reserved.
|
||||
*
|
||||
* Copyright (C) 2003 MontaVista Software Inc.
|
||||
* Author: Jun Sun, jsun@mvista.com or jsun@junsun.net
|
||||
*
|
||||
* ########################################################################
|
||||
*
|
||||
* This program is free software; you can distribute it and/or modify it
|
||||
* under the terms of the GNU General Public License (Version 2) as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
|
||||
*
|
||||
* ########################################################################
|
||||
*
|
||||
* Setting up the clock on the MIPS boards.
|
||||
*/
|
||||
#include <linux/init.h>
|
||||
#include <linux/kernel_stat.h>
|
||||
#include <linux/sched.h>
|
||||
#include <linux/time.h>
|
||||
#include <linux/spinlock.h>
|
||||
#include <linux/mc146818rtc.h>
|
||||
|
||||
#include <asm/time.h>
|
||||
#include <asm/mipsregs.h>
|
||||
#include <asm/ptrace.h>
|
||||
#include <asm/it8172/it8172.h>
|
||||
#include <asm/it8172/it8172_int.h>
|
||||
#include <asm/debug.h>
|
||||
|
||||
#define IT8172_RTC_ADR_REG (IT8172_PCI_IO_BASE + IT_RTC_BASE)
|
||||
#define IT8172_RTC_DAT_REG (IT8172_RTC_ADR_REG + 1)
|
||||
#define IT8172_RTC_CENTURY_REG (IT8172_PCI_IO_BASE + IT_RTC_CENTURY)
|
||||
|
||||
static volatile char *rtc_adr_reg = (char*)KSEG1ADDR(IT8172_RTC_ADR_REG);
|
||||
static volatile char *rtc_dat_reg = (char*)KSEG1ADDR(IT8172_RTC_DAT_REG);
|
||||
static volatile char *rtc_century_reg = (char*)KSEG1ADDR(IT8172_RTC_CENTURY_REG);
|
||||
|
||||
unsigned char it8172_rtc_read_data(unsigned long addr)
|
||||
{
|
||||
unsigned char retval;
|
||||
|
||||
*rtc_adr_reg = addr;
|
||||
retval = *rtc_dat_reg;
|
||||
return retval;
|
||||
}
|
||||
|
||||
void it8172_rtc_write_data(unsigned char data, unsigned long addr)
|
||||
{
|
||||
*rtc_adr_reg = addr;
|
||||
*rtc_dat_reg = data;
|
||||
}
|
||||
|
||||
#undef CMOS_READ
|
||||
#undef CMOS_WRITE
|
||||
#define CMOS_READ(addr) it8172_rtc_read_data(addr)
|
||||
#define CMOS_WRITE(data, addr) it8172_rtc_write_data(data, addr)
|
||||
|
||||
static unsigned char saved_control; /* remember rtc control reg */
|
||||
static inline int rtc_24h(void) { return saved_control & RTC_24H; }
|
||||
static inline int rtc_dm_binary(void) { return saved_control & RTC_DM_BINARY; }
|
||||
|
||||
static inline unsigned char
|
||||
bin_to_hw(unsigned char c)
|
||||
{
|
||||
if (rtc_dm_binary())
|
||||
return c;
|
||||
else
|
||||
return ((c/10) << 4) + (c%10);
|
||||
}
|
||||
|
||||
static inline unsigned char
|
||||
hw_to_bin(unsigned char c)
|
||||
{
|
||||
if (rtc_dm_binary())
|
||||
return c;
|
||||
else
|
||||
return (c>>4)*10 + (c &0xf);
|
||||
}
|
||||
|
||||
/* 0x80 bit indicates pm in 12-hour format */
|
||||
static inline unsigned char
|
||||
hour_bin_to_hw(unsigned char c)
|
||||
{
|
||||
if (rtc_24h())
|
||||
return bin_to_hw(c);
|
||||
if (c >= 12)
|
||||
return 0x80 | bin_to_hw((c==12)?12:c-12); /* 12 is 12pm */
|
||||
else
|
||||
return bin_to_hw((c==0)?12:c); /* 0 is 12 AM, not 0 am */
|
||||
}
|
||||
|
||||
static inline unsigned char
|
||||
hour_hw_to_bin(unsigned char c)
|
||||
{
|
||||
unsigned char tmp = hw_to_bin(c&0x3f);
|
||||
if (rtc_24h())
|
||||
return tmp;
|
||||
if (c & 0x80)
|
||||
return (tmp==12)?12:tmp+12; /* 12pm is 12, not 24 */
|
||||
else
|
||||
return (tmp==12)?0:tmp; /* 12am is 0 */
|
||||
}
|
||||
|
||||
static unsigned long r4k_offset; /* Amount to increment compare reg each time */
|
||||
static unsigned long r4k_cur; /* What counter should be at next timer irq */
|
||||
extern unsigned int mips_hpt_frequency;
|
||||
|
||||
/*
|
||||
* Figure out the r4k offset, the amount to increment the compare
|
||||
* register for each time tick.
|
||||
* Use the RTC to calculate offset.
|
||||
*/
|
||||
static unsigned long __init cal_r4koff(void)
|
||||
{
|
||||
unsigned int flags;
|
||||
|
||||
local_irq_save(flags);
|
||||
|
||||
/* Start counter exactly on falling edge of update flag */
|
||||
while (CMOS_READ(RTC_REG_A) & RTC_UIP);
|
||||
while (!(CMOS_READ(RTC_REG_A) & RTC_UIP));
|
||||
|
||||
/* Start r4k counter. */
|
||||
write_c0_count(0);
|
||||
|
||||
/* Read counter exactly on falling edge of update flag */
|
||||
while (CMOS_READ(RTC_REG_A) & RTC_UIP);
|
||||
while (!(CMOS_READ(RTC_REG_A) & RTC_UIP));
|
||||
|
||||
mips_hpt_frequency = read_c0_count();
|
||||
|
||||
/* restore interrupts */
|
||||
local_irq_restore(flags);
|
||||
|
||||
return (mips_hpt_frequency / HZ);
|
||||
}
|
||||
|
||||
static unsigned long
|
||||
it8172_rtc_get_time(void)
|
||||
{
|
||||
unsigned int year, mon, day, hour, min, sec;
|
||||
unsigned int flags;
|
||||
|
||||
/* avoid update-in-progress. */
|
||||
for (;;) {
|
||||
local_irq_save(flags);
|
||||
if (! (CMOS_READ(RTC_REG_A) & RTC_UIP))
|
||||
break;
|
||||
/* don't hold intr closed all the time */
|
||||
local_irq_restore(flags);
|
||||
}
|
||||
|
||||
/* Read regs. */
|
||||
sec = hw_to_bin(CMOS_READ(RTC_SECONDS));
|
||||
min = hw_to_bin(CMOS_READ(RTC_MINUTES));
|
||||
hour = hour_hw_to_bin(CMOS_READ(RTC_HOURS));
|
||||
day = hw_to_bin(CMOS_READ(RTC_DAY_OF_MONTH));
|
||||
mon = hw_to_bin(CMOS_READ(RTC_MONTH));
|
||||
year = hw_to_bin(CMOS_READ(RTC_YEAR)) +
|
||||
hw_to_bin(*rtc_century_reg) * 100;
|
||||
|
||||
/* restore interrupts */
|
||||
local_irq_restore(flags);
|
||||
|
||||
return mktime(year, mon, day, hour, min, sec);
|
||||
}
|
||||
|
||||
static int
|
||||
it8172_rtc_set_time(unsigned long t)
|
||||
{
|
||||
struct rtc_time tm;
|
||||
unsigned int flags;
|
||||
|
||||
/* convert */
|
||||
to_tm(t, &tm);
|
||||
|
||||
/* avoid update-in-progress. */
|
||||
for (;;) {
|
||||
local_irq_save(flags);
|
||||
if (! (CMOS_READ(RTC_REG_A) & RTC_UIP))
|
||||
break;
|
||||
/* don't hold intr closed all the time */
|
||||
local_irq_restore(flags);
|
||||
}
|
||||
|
||||
*rtc_century_reg = bin_to_hw(tm.tm_year/100);
|
||||
CMOS_WRITE(bin_to_hw(tm.tm_sec), RTC_SECONDS);
|
||||
CMOS_WRITE(bin_to_hw(tm.tm_min), RTC_MINUTES);
|
||||
CMOS_WRITE(hour_bin_to_hw(tm.tm_hour), RTC_HOURS);
|
||||
CMOS_WRITE(bin_to_hw(tm.tm_mday), RTC_DAY_OF_MONTH);
|
||||
CMOS_WRITE(bin_to_hw(tm.tm_mon+1), RTC_MONTH); /* tm_mon starts from 0 */
|
||||
CMOS_WRITE(bin_to_hw(tm.tm_year%100), RTC_YEAR);
|
||||
|
||||
/* restore interrupts */
|
||||
local_irq_restore(flags);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void __init it8172_time_init(void)
|
||||
{
|
||||
unsigned int est_freq, flags;
|
||||
|
||||
local_irq_save(flags);
|
||||
|
||||
saved_control = CMOS_READ(RTC_CONTROL);
|
||||
|
||||
printk("calculating r4koff... ");
|
||||
r4k_offset = cal_r4koff();
|
||||
printk("%08lx(%d)\n", r4k_offset, (int) r4k_offset);
|
||||
|
||||
est_freq = 2*r4k_offset*HZ;
|
||||
est_freq += 5000; /* round */
|
||||
est_freq -= est_freq%10000;
|
||||
printk("CPU frequency %d.%02d MHz\n", est_freq/1000000,
|
||||
(est_freq%1000000)*100/1000000);
|
||||
|
||||
local_irq_restore(flags);
|
||||
|
||||
rtc_mips_get_time = it8172_rtc_get_time;
|
||||
rtc_mips_set_time = it8172_rtc_set_time;
|
||||
}
|
||||
|
||||
#define ALLINTS (IE_IRQ0 | IE_IRQ1 | IE_IRQ2 | IE_IRQ3 | IE_IRQ4 | IE_IRQ5)
|
||||
|
||||
void __init plat_timer_setup(struct irqaction *irq)
|
||||
{
|
||||
puts("timer_setup\n");
|
||||
put32(NR_IRQS);
|
||||
puts("");
|
||||
/* we are using the cpu counter for timer interrupts */
|
||||
setup_irq(MIPS_CPU_TIMER_IRQ, irq);
|
||||
|
||||
/* to generate the first timer interrupt */
|
||||
r4k_cur = (read_c0_count() + r4k_offset);
|
||||
write_c0_compare(r4k_cur);
|
||||
set_c0_status(ALLINTS);
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
#
|
||||
# Copyright 2000 MontaVista Software Inc.
|
||||
# Author: MontaVista Software, Inc.
|
||||
# ppopov@mvista.com or source@mvista.com
|
||||
#
|
||||
# Makefile for the Globespan IVR board,
|
||||
# board-specific files.
|
||||
#
|
||||
|
||||
obj-y += init.o
|
|
@ -1,3 +0,0 @@
|
|||
This is not really a board made by ITE Semi, but it's very
|
||||
similar to the ITE QED-4N-S01B board. The IVR board is made
|
||||
by Globespan and it's a reference board for the PVR chip.
|
|
@ -1,81 +0,0 @@
|
|||
/*
|
||||
* BRIEF MODULE DESCRIPTION
|
||||
* IVR board setup.
|
||||
*
|
||||
* Copyright 2000 MontaVista Software Inc.
|
||||
* Author: MontaVista Software, Inc.
|
||||
* ppopov@mvista.com or source@mvista.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.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
||||
* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
||||
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
#include <linux/init.h>
|
||||
#include <linux/mm.h>
|
||||
#include <linux/sched.h>
|
||||
#include <linux/bootmem.h>
|
||||
#include <asm/addrspace.h>
|
||||
#include <asm/bootinfo.h>
|
||||
#include <linux/string.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <asm/sections.h>
|
||||
#include <asm/it8172/it8172.h>
|
||||
#include <asm/it8172/it8172_dbg.h>
|
||||
|
||||
int prom_argc;
|
||||
char **prom_argv, **prom_envp;
|
||||
|
||||
extern void __init prom_init_cmdline(void);
|
||||
extern unsigned long __init prom_get_memsize(void);
|
||||
extern void __init it8172_init_ram_resource(unsigned long memsize);
|
||||
|
||||
const char *get_system_type(void)
|
||||
{
|
||||
return "Globespan IVR";
|
||||
}
|
||||
|
||||
void __init prom_init(void)
|
||||
{
|
||||
unsigned long mem_size;
|
||||
unsigned long pcicr;
|
||||
|
||||
prom_argc = fw_arg0;
|
||||
prom_argv = (char **) fw_arg1;
|
||||
prom_envp = (int *) fw_arg3;
|
||||
|
||||
mips_machgroup = MACH_GROUP_GLOBESPAN;
|
||||
mips_machtype = MACH_IVR; /* Globespan's iTVC15 reference board */
|
||||
|
||||
prom_init_cmdline();
|
||||
|
||||
/* pmon does not set memsize */
|
||||
mem_size = prom_get_memsize();
|
||||
mem_size = mem_size << 20;
|
||||
|
||||
/*
|
||||
* make the entire physical memory visible to pci bus masters
|
||||
*/
|
||||
IT_READ(IT_MC_PCICR, pcicr);
|
||||
pcicr &= ~0x1f;
|
||||
pcicr |= (mem_size - 1) >> 22;
|
||||
IT_WRITE(IT_MC_PCICR, pcicr);
|
||||
|
||||
it8172_init_ram_resource(mem_size);
|
||||
add_memory_region(0, mem_size, BOOT_MEM_RAM);
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
#
|
||||
# Copyright 2000 MontaVista Software Inc.
|
||||
# Author: MontaVista Software, Inc.
|
||||
# ppopov@mvista.com or source@mvista.com
|
||||
#
|
||||
# Makefile for the ITE 8172 (qed-4n-s01b) board, board
|
||||
# specific files.
|
||||
#
|
||||
|
||||
obj-y := init.o
|
|
@ -1,2 +0,0 @@
|
|||
This is an ITE (www.iteusa.com) eval board for the ITE 8172G
|
||||
system controller, with a QED 5231 CPU.
|
|
@ -1,82 +0,0 @@
|
|||
/*
|
||||
* BRIEF MODULE DESCRIPTION
|
||||
* IT8172/QED5231 board setup.
|
||||
*
|
||||
* Copyright 2000 MontaVista Software Inc.
|
||||
* Author: MontaVista Software, Inc.
|
||||
* ppopov@mvista.com or source@mvista.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.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
||||
* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
||||
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
#include <linux/init.h>
|
||||
#include <linux/mm.h>
|
||||
#include <linux/sched.h>
|
||||
#include <linux/bootmem.h>
|
||||
#include <asm/addrspace.h>
|
||||
#include <asm/bootinfo.h>
|
||||
#include <linux/string.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <asm/sections.h>
|
||||
#include <asm/it8172/it8172.h>
|
||||
#include <asm/it8172/it8172_dbg.h>
|
||||
|
||||
int prom_argc;
|
||||
char **prom_argv, **prom_envp;
|
||||
|
||||
extern void __init prom_init_cmdline(void);
|
||||
extern unsigned long __init prom_get_memsize(void);
|
||||
extern void __init it8172_init_ram_resource(unsigned long memsize);
|
||||
|
||||
const char *get_system_type(void)
|
||||
{
|
||||
return "ITE QED-4N-S01B";
|
||||
}
|
||||
|
||||
void __init prom_init(void)
|
||||
{
|
||||
unsigned long mem_size;
|
||||
unsigned long pcicr;
|
||||
|
||||
prom_argc = fw_arg0;
|
||||
prom_argv = (char **) fw_arg1;
|
||||
prom_envp = (int *) fw_arg3;
|
||||
|
||||
mips_machgroup = MACH_GROUP_ITE;
|
||||
mips_machtype = MACH_QED_4N_S01B; /* ITE board name/number */
|
||||
|
||||
prom_init_cmdline();
|
||||
mem_size = prom_get_memsize();
|
||||
|
||||
printk("Memory size: %dMB\n", (unsigned)mem_size);
|
||||
|
||||
mem_size <<= 20; /* MB */
|
||||
|
||||
/*
|
||||
* make the entire physical memory visible to pci bus masters
|
||||
*/
|
||||
IT_READ(IT_MC_PCICR, pcicr);
|
||||
pcicr &= ~0x1f;
|
||||
pcicr |= (mem_size - 1) >> 22;
|
||||
IT_WRITE(IT_MC_PCICR, pcicr);
|
||||
|
||||
it8172_init_ram_resource(mem_size);
|
||||
add_memory_region(0, mem_size, BOOT_MEM_RAM);
|
||||
}
|
|
@ -7,7 +7,6 @@ obj-y += pci.o
|
|||
#
|
||||
# PCI bus host bridge specific code
|
||||
#
|
||||
obj-$(CONFIG_ITE_BOARD_GEN) += ops-it8172.o
|
||||
obj-$(CONFIG_MIPS_BONITO64) += ops-bonito64.o
|
||||
obj-$(CONFIG_MIPS_GT64111) += ops-gt64111.o
|
||||
obj-$(CONFIG_MIPS_GT64120) += ops-gt64120.o
|
||||
|
@ -28,8 +27,6 @@ obj-$(CONFIG_LASAT) += pci-lasat.o
|
|||
obj-$(CONFIG_MIPS_ATLAS) += fixup-atlas.o
|
||||
obj-$(CONFIG_MIPS_COBALT) += fixup-cobalt.o
|
||||
obj-$(CONFIG_MIPS_EV64120) += fixup-ev64120.o
|
||||
obj-$(CONFIG_MIPS_ITE8172) += fixup-ite8172g.o
|
||||
obj-$(CONFIG_MIPS_IVR) += fixup-ivr.o
|
||||
obj-$(CONFIG_SOC_AU1500) += fixup-au1000.o ops-au1000.o
|
||||
obj-$(CONFIG_SOC_AU1550) += fixup-au1000.o ops-au1000.o
|
||||
obj-$(CONFIG_SOC_PNX8550) += fixup-pnx8550.o ops-pnx8550.o
|
||||
|
|
|
@ -1,80 +0,0 @@
|
|||
/*
|
||||
* BRIEF MODULE DESCRIPTION
|
||||
* Board specific pci fixups.
|
||||
*
|
||||
* Copyright 2000 MontaVista Software Inc.
|
||||
* Author: MontaVista Software, Inc.
|
||||
* ppopov@mvista.com or source@mvista.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.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
||||
* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
||||
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
#include <linux/types.h>
|
||||
#include <linux/pci.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/init.h>
|
||||
|
||||
#include <asm/it8172/it8172.h>
|
||||
#include <asm/it8172/it8172_pci.h>
|
||||
#include <asm/it8172/it8172_int.h>
|
||||
|
||||
/*
|
||||
* Shortcuts
|
||||
*/
|
||||
#define INTA IT8172_PCI_INTA_IRQ
|
||||
#define INTB IT8172_PCI_INTB_IRQ
|
||||
#define INTC IT8172_PCI_INTC_IRQ
|
||||
#define INTD IT8172_PCI_INTD_IRQ
|
||||
|
||||
static const int internal_func_irqs[7] __initdata = {
|
||||
IT8172_AC97_IRQ,
|
||||
IT8172_DMA_IRQ,
|
||||
IT8172_CDMA_IRQ,
|
||||
IT8172_USB_IRQ,
|
||||
IT8172_BRIDGE_MASTER_IRQ,
|
||||
IT8172_IDE_IRQ,
|
||||
IT8172_MC68K_IRQ
|
||||
};
|
||||
|
||||
static char irq_tab_ite8172g[][5] __initdata = {
|
||||
[0x10] = { 0, INTA, INTB, INTC, INTD },
|
||||
[0x11] = { 0, INTA, INTB, INTC, INTD },
|
||||
[0x12] = { 0, INTB, INTC, INTD, INTA },
|
||||
[0x13] = { 0, INTC, INTD, INTA, INTB },
|
||||
[0x14] = { 0, INTD, INTA, INTB, INTC },
|
||||
};
|
||||
|
||||
int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
|
||||
{
|
||||
/*
|
||||
* Internal device 1 is actually 7 different internal devices on the
|
||||
* IT8172G (a multifunction device).
|
||||
*/
|
||||
if (slot == 1)
|
||||
return internal_func_irqs[PCI_FUNC(dev->devfn)];
|
||||
|
||||
return irq_tab_ite8172g[slot][pin];
|
||||
}
|
||||
|
||||
/* Do platform specific device initialization at pci_enable_device() time */
|
||||
int pcibios_plat_dev_init(struct pci_dev *dev)
|
||||
{
|
||||
return 0;
|
||||
}
|
|
@ -1,75 +0,0 @@
|
|||
/*
|
||||
*
|
||||
* BRIEF MODULE DESCRIPTION
|
||||
* Globespan IVR board-specific pci fixups.
|
||||
*
|
||||
* Copyright 2000 MontaVista Software Inc.
|
||||
* Author: MontaVista Software, Inc.
|
||||
* ppopov@mvista.com or source@mvista.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.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
||||
* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
||||
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
#include <linux/types.h>
|
||||
#include <linux/pci.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/init.h>
|
||||
|
||||
#include <asm/it8172/it8172.h>
|
||||
#include <asm/it8172/it8172_pci.h>
|
||||
#include <asm/it8172/it8172_int.h>
|
||||
|
||||
/*
|
||||
* Shortcuts
|
||||
*/
|
||||
#define INTA IT8172_PCI_INTA_IRQ
|
||||
#define INTB IT8172_PCI_INTB_IRQ
|
||||
#define INTC IT8172_PCI_INTC_IRQ
|
||||
#define INTD IT8172_PCI_INTD_IRQ
|
||||
|
||||
static const int internal_func_irqs[7] __initdata = {
|
||||
IT8172_AC97_IRQ,
|
||||
IT8172_DMA_IRQ,
|
||||
IT8172_CDMA_IRQ,
|
||||
IT8172_USB_IRQ,
|
||||
IT8172_BRIDGE_MASTER_IRQ,
|
||||
IT8172_IDE_IRQ,
|
||||
IT8172_MC68K_IRQ
|
||||
};
|
||||
|
||||
static char irq_tab_ivr[][5] __initdata = {
|
||||
[0x11] = { INTC, INTC, INTD, INTA, INTB }, /* Realtek RTL-8139 */
|
||||
[0x12] = { INTB, INTB, INTB, INTC, INTC }, /* IVR slot */
|
||||
[0x13] = { INTA, INTA, INTB, INTC, INTD } /* Expansion slot */
|
||||
};
|
||||
|
||||
int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
|
||||
{
|
||||
if (slot == 1)
|
||||
return internal_func_irqs[PCI_FUNC(dev->devfn)];
|
||||
|
||||
return irq_tab_ivr[slot][pin];
|
||||
}
|
||||
|
||||
/* Do platform specific device initialization at pci_enable_device() time */
|
||||
int pcibios_plat_dev_init(struct pci_dev *dev)
|
||||
{
|
||||
return 0;
|
||||
}
|
|
@ -1,213 +0,0 @@
|
|||
/*
|
||||
*
|
||||
* BRIEF MODULE DESCRIPTION
|
||||
* IT8172 system controller specific pci support.
|
||||
*
|
||||
* Copyright 2000 MontaVista Software Inc.
|
||||
* Author: MontaVista Software, Inc.
|
||||
* ppopov@mvista.com or source@mvista.com
|
||||
*
|
||||
* Copyright (C) 2004 by Ralf Baechle (ralf@linux-mips.org)
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation; either version 2 of the License, or (at your
|
||||
* option) any later version.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
||||
* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
||||
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
#include <linux/types.h>
|
||||
#include <linux/pci.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/init.h>
|
||||
|
||||
#include <asm/it8172/it8172.h>
|
||||
#include <asm/it8172/it8172_pci.h>
|
||||
|
||||
#define PCI_ACCESS_READ 0
|
||||
#define PCI_ACCESS_WRITE 1
|
||||
|
||||
#undef DEBUG
|
||||
#ifdef DEBUG
|
||||
#define DBG(x...) printk(x)
|
||||
#else
|
||||
#define DBG(x...)
|
||||
#endif
|
||||
|
||||
static struct resource pci_mem_resource_1;
|
||||
|
||||
static struct resource pci_io_resource = {
|
||||
.start = 0x14018000,
|
||||
.end = 0x17FFFFFF,
|
||||
.name = "io pci IO space",
|
||||
.flags = IORESOURCE_IO
|
||||
};
|
||||
|
||||
static struct resource pci_mem_resource_0 = {
|
||||
.start = 0x10101000,
|
||||
.end = 0x13FFFFFF,
|
||||
.name = "ext pci memory space 0/1",
|
||||
.flags = IORESOURCE_MEM,
|
||||
.parent = &pci_mem_resource_0,
|
||||
.sibling = NULL,
|
||||
.child = &pci_mem_resource_1
|
||||
};
|
||||
|
||||
static struct resource pci_mem_resource_1 = {
|
||||
.start = 0x1A000000,
|
||||
.end = 0x1FBFFFFF,
|
||||
.name = "ext pci memory space 2/3",
|
||||
.flags = IORESOURCE_MEM,
|
||||
.parent = &pci_mem_resource_0
|
||||
};
|
||||
|
||||
extern struct pci_ops it8172_pci_ops;
|
||||
|
||||
struct pci_controller it8172_controller = {
|
||||
.pci_ops = &it8172_pci_ops,
|
||||
.io_resource = &pci_io_resource,
|
||||
.mem_resource = &pci_mem_resource_0,
|
||||
};
|
||||
|
||||
static int it8172_pcibios_config_access(unsigned char access_type,
|
||||
struct pci_bus *bus,
|
||||
unsigned int devfn, int where,
|
||||
u32 * data)
|
||||
{
|
||||
/*
|
||||
* config cycles are on 4 byte boundary only
|
||||
*/
|
||||
|
||||
/* Setup address */
|
||||
IT_WRITE(IT_CONFADDR, (bus->number << IT_BUSNUM_SHF) |
|
||||
(devfn << IT_FUNCNUM_SHF) | (where & ~0x3));
|
||||
|
||||
if (access_type == PCI_ACCESS_WRITE) {
|
||||
IT_WRITE(IT_CONFDATA, *data);
|
||||
} else {
|
||||
IT_READ(IT_CONFDATA, *data);
|
||||
}
|
||||
|
||||
/*
|
||||
* Revisit: check for master or target abort.
|
||||
*/
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* We can't address 8 and 16 bit words directly. Instead we have to
|
||||
* read/write a 32bit word and mask/modify the data we actually want.
|
||||
*/
|
||||
static write_config(struct pci_bus *bus, unsigned int devfn, int where,
|
||||
int size, u32 val)
|
||||
{
|
||||
u32 data = 0;
|
||||
|
||||
switch (size) {
|
||||
case 1:
|
||||
if (it8172_pcibios_config_access
|
||||
(PCI_ACCESS_READ, dev, where, &data))
|
||||
return -1;
|
||||
|
||||
*val = (data >> ((where & 3) << 3)) & 0xff;
|
||||
|
||||
return PCIBIOS_SUCCESSFUL;
|
||||
|
||||
case 2:
|
||||
|
||||
if (where & 1)
|
||||
return PCIBIOS_BAD_REGISTER_NUMBER;
|
||||
|
||||
if (it8172_pcibios_config_access
|
||||
(PCI_ACCESS_READ, dev, where, &data))
|
||||
return -1;
|
||||
|
||||
*val = (data >> ((where & 3) << 3)) & 0xffff;
|
||||
DBG("cfg read word: bus %d dev_fn %x where %x: val %x\n",
|
||||
dev->bus->number, dev->devfn, where, *val);
|
||||
|
||||
return PCIBIOS_SUCCESSFUL;
|
||||
|
||||
case 4:
|
||||
|
||||
if (where & 3)
|
||||
return PCIBIOS_BAD_REGISTER_NUMBER;
|
||||
|
||||
if (it8172_pcibios_config_access
|
||||
(PCI_ACCESS_READ, dev, where, &data))
|
||||
return -1;
|
||||
|
||||
*val = data;
|
||||
|
||||
return PCIBIOS_SUCCESSFUL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static write_config(struct pci_bus *bus, unsigned int devfn, int where,
|
||||
int size, u32 val)
|
||||
{
|
||||
u32 data = 0;
|
||||
|
||||
switch (size) {
|
||||
case 1:
|
||||
if (it8172_pcibios_config_access
|
||||
(PCI_ACCESS_READ, dev, where, &data))
|
||||
return -1;
|
||||
|
||||
data = (data & ~(0xff << ((where & 3) << 3))) |
|
||||
(val << ((where & 3) << 3));
|
||||
|
||||
if (it8172_pcibios_config_access
|
||||
(PCI_ACCESS_WRITE, dev, where, &data))
|
||||
return -1;
|
||||
|
||||
return PCIBIOS_SUCCESSFUL;
|
||||
|
||||
case 2:
|
||||
if (where & 1)
|
||||
return PCIBIOS_BAD_REGISTER_NUMBER;
|
||||
|
||||
if (it8172_pcibios_config_access
|
||||
(PCI_ACCESS_READ, dev, where, &data))
|
||||
eturn - 1;
|
||||
|
||||
data = (data & ~(0xffff << ((where & 3) << 3))) |
|
||||
(val << ((where & 3) << 3));
|
||||
|
||||
if (it8172_pcibios_config_access
|
||||
(PCI_ACCESS_WRITE, dev, where, &data))
|
||||
return -1;
|
||||
|
||||
return PCIBIOS_SUCCESSFUL;
|
||||
|
||||
case 4:
|
||||
if (where & 3)
|
||||
return PCIBIOS_BAD_REGISTER_NUMBER;
|
||||
|
||||
if (it8172_pcibios_config_access
|
||||
(PCI_ACCESS_WRITE, dev, where, &val))
|
||||
return -1;
|
||||
|
||||
return PCIBIOS_SUCCESSFUL;
|
||||
}
|
||||
}
|
||||
|
||||
struct pci_ops it8172_pci_ops = {
|
||||
.read = read_config,
|
||||
.write = write_config,
|
||||
};
|
|
@ -1,3 +1,2 @@
|
|||
consolemap_deftbl.c
|
||||
defkeymap.c
|
||||
qtronixmap.c
|
||||
|
|
|
@ -371,36 +371,6 @@ config AU1000_SERIAL_CONSOLE
|
|||
If you have an Alchemy AU1000 processor (MIPS based) and you want
|
||||
to use a console on a serial port, say Y. Otherwise, say N.
|
||||
|
||||
config QTRONIX_KEYBOARD
|
||||
bool "Enable Qtronix 990P Keyboard Support"
|
||||
depends on IT8712
|
||||
help
|
||||
Images of Qtronix keyboards are at
|
||||
<http://www.qtronix.com/keyboard.html>.
|
||||
|
||||
config IT8172_CIR
|
||||
bool
|
||||
depends on QTRONIX_KEYBOARD
|
||||
default y
|
||||
|
||||
config IT8172_SCR0
|
||||
bool "Enable Smart Card Reader 0 Support "
|
||||
depends on IT8712
|
||||
help
|
||||
Say Y here to support smart-card reader 0 (SCR0) on the Integrated
|
||||
Technology Express, Inc. ITE8172 SBC. Vendor page at
|
||||
<http://www.ite.com.tw/ia/brief_it8172bsp.htm>; picture of the
|
||||
board at <http://www.mvista.com/partners/semiconductor/ite.html>.
|
||||
|
||||
config IT8172_SCR1
|
||||
bool "Enable Smart Card Reader 1 Support "
|
||||
depends on IT8712
|
||||
help
|
||||
Say Y here to support smart-card reader 1 (SCR1) on the Integrated
|
||||
Technology Express, Inc. ITE8172 SBC. Vendor page at
|
||||
<http://www.ite.com.tw/ia/brief_it8172bsp.htm>; picture of the
|
||||
board at <http://www.mvista.com/partners/semiconductor/ite.html>.
|
||||
|
||||
config A2232
|
||||
tristate "Commodore A2232 serial support (EXPERIMENTAL)"
|
||||
depends on EXPERIMENTAL && ZORRO && BROKEN_ON_SMP
|
||||
|
|
|
@ -102,7 +102,7 @@ obj-$(CONFIG_HANGCHECK_TIMER) += hangcheck-timer.o
|
|||
obj-$(CONFIG_TCG_TPM) += tpm/
|
||||
|
||||
# Files generated that shall be removed upon make clean
|
||||
clean-files := consolemap_deftbl.c defkeymap.c qtronixmap.c
|
||||
clean-files := consolemap_deftbl.c defkeymap.c
|
||||
|
||||
quiet_cmd_conmk = CONMK $@
|
||||
cmd_conmk = scripts/conmakehash $< > $@
|
||||
|
@ -112,8 +112,6 @@ $(obj)/consolemap_deftbl.c: $(src)/$(FONTMAPFILE)
|
|||
|
||||
$(obj)/defkeymap.o: $(obj)/defkeymap.c
|
||||
|
||||
$(obj)/qtronixmap.o: $(obj)/qtronixmap.c
|
||||
|
||||
# Uncomment if you're changing the keymap and have an appropriate
|
||||
# loadkeys version for the map. By default, we'll use the shipped
|
||||
# versions.
|
||||
|
@ -121,7 +119,7 @@ $(obj)/qtronixmap.o: $(obj)/qtronixmap.c
|
|||
|
||||
ifdef GENERATE_KEYMAP
|
||||
|
||||
$(obj)/defkeymap.c $(obj)/qtronixmap.c: $(obj)/%.c: $(src)/%.map
|
||||
$(obj)/defkeymap.c $(obj)/%.c: $(src)/%.map
|
||||
loadkeys --mktable $< > $@.tmp
|
||||
sed -e 's/^static *//' $@.tmp > $@
|
||||
rm $@.tmp
|
||||
|
|
|
@ -1,419 +0,0 @@
|
|||
/*
|
||||
* FILE NAME ite_gpio.c
|
||||
*
|
||||
* BRIEF MODULE DESCRIPTION
|
||||
* API for ITE GPIO device.
|
||||
* Driver for ITE GPIO device.
|
||||
*
|
||||
* Author: MontaVista Software, Inc. <source@mvista.com>
|
||||
* Hai-Pao Fan <haipao@mvista.com>
|
||||
*
|
||||
* Copyright 2001 MontaVista Software Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation; either version 2 of the License, or (at your
|
||||
* option) any later version.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
||||
* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
||||
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
#include <linux/module.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/miscdevice.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/ioport.h>
|
||||
#include <asm/uaccess.h>
|
||||
#include <asm/addrspace.h>
|
||||
#include <asm/it8172/it8172_int.h>
|
||||
#include <linux/sched.h>
|
||||
#include <linux/ite_gpio.h>
|
||||
|
||||
#define ite_gpio_base 0x14013800
|
||||
|
||||
#define ITE_GPADR (*(volatile __u8 *)(0x14013800 + KSEG1))
|
||||
#define ITE_GPBDR (*(volatile __u8 *)(0x14013808 + KSEG1))
|
||||
#define ITE_GPCDR (*(volatile __u8 *)(0x14013810 + KSEG1))
|
||||
#define ITE_GPACR (*(volatile __u16 *)(0x14013802 + KSEG1))
|
||||
#define ITE_GPBCR (*(volatile __u16 *)(0x1401380a + KSEG1))
|
||||
#define ITE_GPCCR (*(volatile __u16 *)(0x14013812 + KSEG1))
|
||||
#define ITE_GPAICR (*(volatile __u16 *)(0x14013804 + KSEG1))
|
||||
#define ITE_GPBICR (*(volatile __u16 *)(0x1401380c + KSEG1))
|
||||
#define ITE_GPCICR (*(volatile __u16 *)(0x14013814 + KSEG1))
|
||||
#define ITE_GPAISR (*(volatile __u8 *)(0x14013806 + KSEG1))
|
||||
#define ITE_GPBISR (*(volatile __u8 *)(0x1401380e + KSEG1))
|
||||
#define ITE_GPCISR (*(volatile __u8 *)(0x14013816 + KSEG1))
|
||||
#define ITE_GCR (*(volatile __u8 *)(0x14013818 + KSEG1))
|
||||
|
||||
#define MAX_GPIO_LINE 21
|
||||
static int ite_gpio_irq=IT8172_GPIO_IRQ;
|
||||
|
||||
static long ite_irq_counter[MAX_GPIO_LINE];
|
||||
wait_queue_head_t ite_gpio_wait[MAX_GPIO_LINE];
|
||||
static int ite_gpio_irq_pending[MAX_GPIO_LINE];
|
||||
|
||||
static int ite_gpio_debug=0;
|
||||
#define DEB(x) if (ite_gpio_debug>=1) x
|
||||
|
||||
int ite_gpio_in(__u32 device, __u32 mask, volatile __u32 *data)
|
||||
{
|
||||
DEB(printk("ite_gpio_in mask=0x%x\n",mask));
|
||||
|
||||
switch (device) {
|
||||
case ITE_GPIO_PORTA:
|
||||
ITE_GPACR = (__u16)mask; /* 0xffff */
|
||||
*data = ITE_GPADR;
|
||||
break;
|
||||
case ITE_GPIO_PORTB:
|
||||
ITE_GPBCR = (__u16)mask; /* 0xffff */
|
||||
*data = ITE_GPBDR;
|
||||
break;
|
||||
case ITE_GPIO_PORTC:
|
||||
ITE_GPCCR = (__u16)mask; /* 0x03ff */
|
||||
*data = ITE_GPCDR;
|
||||
break;
|
||||
default:
|
||||
return -EFAULT;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
int ite_gpio_out(__u32 device, __u32 mask, __u32 data)
|
||||
{
|
||||
switch (device) {
|
||||
case ITE_GPIO_PORTA:
|
||||
ITE_GPACR = (__u16)mask; /* 0x5555 */
|
||||
ITE_GPADR = (__u8)data;
|
||||
break;
|
||||
case ITE_GPIO_PORTB:
|
||||
ITE_GPBCR = (__u16)mask; /* 0x5555 */
|
||||
ITE_GPBDR = (__u8)data;
|
||||
break;
|
||||
case ITE_GPIO_PORTC:
|
||||
ITE_GPCCR = (__u16)mask; /* 0x0155 */
|
||||
ITE_GPCDR = (__u8)data;
|
||||
break;
|
||||
default:
|
||||
return -EFAULT;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ite_gpio_int_ctrl(__u32 device, __u32 mask, __u32 data)
|
||||
{
|
||||
switch (device) {
|
||||
case ITE_GPIO_PORTA:
|
||||
ITE_GPAICR = (ITE_GPAICR & ~mask) | (data & mask);
|
||||
break;
|
||||
case ITE_GPIO_PORTB:
|
||||
ITE_GPBICR = (ITE_GPBICR & ~mask) | (data & mask);
|
||||
break;
|
||||
case ITE_GPIO_PORTC:
|
||||
ITE_GPCICR = (ITE_GPCICR & ~mask) | (data & mask);
|
||||
break;
|
||||
default:
|
||||
return -EFAULT;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ite_gpio_in_status(__u32 device, __u32 mask, volatile __u32 *data)
|
||||
{
|
||||
int ret=-1;
|
||||
|
||||
if ((MAX_GPIO_LINE > *data) && (*data >= 0))
|
||||
ret=ite_gpio_irq_pending[*data];
|
||||
|
||||
DEB(printk("ite_gpio_in_status %d ret=%d\n",*data, ret));
|
||||
|
||||
switch (device) {
|
||||
case ITE_GPIO_PORTA:
|
||||
*data = ITE_GPAISR & mask;
|
||||
break;
|
||||
case ITE_GPIO_PORTB:
|
||||
*data = ITE_GPBISR & mask;
|
||||
break;
|
||||
case ITE_GPIO_PORTC:
|
||||
*data = ITE_GPCISR & mask;
|
||||
break;
|
||||
default:
|
||||
return -EFAULT;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
int ite_gpio_out_status(__u32 device, __u32 mask, __u32 data)
|
||||
{
|
||||
switch (device) {
|
||||
case ITE_GPIO_PORTA:
|
||||
ITE_GPAISR = (ITE_GPAISR & ~mask) | (data & mask);
|
||||
break;
|
||||
case ITE_GPIO_PORTB:
|
||||
ITE_GPBISR = (ITE_GPBISR & ~mask) | (data & mask);
|
||||
break;
|
||||
case ITE_GPIO_PORTC:
|
||||
ITE_GPCISR = (ITE_GPCISR & ~mask) | (data & mask);
|
||||
break;
|
||||
default:
|
||||
return -EFAULT;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ite_gpio_gen_ctrl(__u32 device, __u32 mask, __u32 data)
|
||||
{
|
||||
ITE_GCR = (ITE_GCR & ~mask) | (data & mask);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ite_gpio_int_wait (__u32 device, __u32 mask, __u32 data)
|
||||
{
|
||||
int i,line=0, ret=0;
|
||||
unsigned long flags;
|
||||
|
||||
switch (device) {
|
||||
case ITE_GPIO_PORTA:
|
||||
line = data & mask;
|
||||
break;
|
||||
case ITE_GPIO_PORTB:
|
||||
line = (data & mask) <<8;
|
||||
break;
|
||||
case ITE_GPIO_PORTC:
|
||||
line = (data & mask) <<16;
|
||||
break;
|
||||
}
|
||||
for (i=MAX_GPIO_LINE-1; i >= 0; i--) {
|
||||
if ( (line) & (1 << i))
|
||||
break;
|
||||
}
|
||||
|
||||
DEB(printk("wait device=0x%d mask=0x%x data=0x%x index %d\n",
|
||||
device, mask, data, i));
|
||||
|
||||
if (line & ~(1<<i))
|
||||
return -EFAULT;
|
||||
|
||||
if (ite_gpio_irq_pending[i]==1)
|
||||
return -EFAULT;
|
||||
|
||||
save_flags (flags);
|
||||
cli();
|
||||
ite_gpio_irq_pending[i] = 1;
|
||||
ret = interruptible_sleep_on_timeout(&ite_gpio_wait[i], 3*HZ);
|
||||
restore_flags (flags);
|
||||
ite_gpio_irq_pending[i] = 0;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(ite_gpio_in);
|
||||
EXPORT_SYMBOL(ite_gpio_out);
|
||||
EXPORT_SYMBOL(ite_gpio_int_ctrl);
|
||||
EXPORT_SYMBOL(ite_gpio_in_status);
|
||||
EXPORT_SYMBOL(ite_gpio_out_status);
|
||||
EXPORT_SYMBOL(ite_gpio_gen_ctrl);
|
||||
EXPORT_SYMBOL(ite_gpio_int_wait);
|
||||
|
||||
static int ite_gpio_open(struct inode *inode, struct file *file)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
static int ite_gpio_release(struct inode *inode, struct file *file)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
static int ite_gpio_ioctl(struct inode *inode, struct file *file,
|
||||
unsigned int cmd, unsigned long arg)
|
||||
{
|
||||
static struct ite_gpio_ioctl_data ioctl_data;
|
||||
|
||||
if (copy_from_user(&ioctl_data, (struct ite_gpio_ioctl_data *)arg,
|
||||
sizeof(ioctl_data)))
|
||||
return -EFAULT;
|
||||
if ((ioctl_data.device < ITE_GPIO_PORTA) ||
|
||||
(ioctl_data.device > ITE_GPIO_PORTC) )
|
||||
return -EFAULT;
|
||||
|
||||
switch(cmd) {
|
||||
case ITE_GPIO_IN:
|
||||
if (ite_gpio_in(ioctl_data.device, ioctl_data.mask,
|
||||
&ioctl_data.data))
|
||||
return -EFAULT;
|
||||
|
||||
if (copy_to_user((struct ite_gpio_ioctl_data *)arg,
|
||||
&ioctl_data, sizeof(ioctl_data)))
|
||||
return -EFAULT;
|
||||
break;
|
||||
|
||||
case ITE_GPIO_OUT:
|
||||
return ite_gpio_out(ioctl_data.device,
|
||||
ioctl_data.mask, ioctl_data.data);
|
||||
break;
|
||||
|
||||
case ITE_GPIO_INT_CTRL:
|
||||
return ite_gpio_int_ctrl(ioctl_data.device,
|
||||
ioctl_data.mask, ioctl_data.data);
|
||||
break;
|
||||
|
||||
case ITE_GPIO_IN_STATUS:
|
||||
if (ite_gpio_in_status(ioctl_data.device, ioctl_data.mask,
|
||||
&ioctl_data.data))
|
||||
return -EFAULT;
|
||||
if (copy_to_user((struct ite_gpio_ioctl_data *)arg,
|
||||
&ioctl_data, sizeof(ioctl_data)))
|
||||
return -EFAULT;
|
||||
break;
|
||||
|
||||
case ITE_GPIO_OUT_STATUS:
|
||||
return ite_gpio_out_status(ioctl_data.device,
|
||||
ioctl_data.mask, ioctl_data.data);
|
||||
break;
|
||||
|
||||
case ITE_GPIO_GEN_CTRL:
|
||||
return ite_gpio_gen_ctrl(ioctl_data.device,
|
||||
ioctl_data.mask, ioctl_data.data);
|
||||
break;
|
||||
|
||||
case ITE_GPIO_INT_WAIT:
|
||||
return ite_gpio_int_wait(ioctl_data.device,
|
||||
ioctl_data.mask, ioctl_data.data);
|
||||
break;
|
||||
|
||||
default:
|
||||
return -ENOIOCTLCMD;
|
||||
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void ite_gpio_irq_handler(int this_irq, void *dev_id,
|
||||
struct pt_regs *regs)
|
||||
{
|
||||
int i,line;
|
||||
|
||||
line = ITE_GPCISR & 0x1f;
|
||||
for (i=4; i >=0; i--) {
|
||||
if ( line & (1 << i)) {
|
||||
++ite_irq_counter[i+16];
|
||||
ite_gpio_irq_pending[i+16] = 2;
|
||||
wake_up_interruptible(&ite_gpio_wait[i+16]);
|
||||
|
||||
DEB(printk("interrupt 0x%x %d\n", &ite_gpio_wait[i+16], i+16));
|
||||
|
||||
ITE_GPCISR = ITE_GPCISR & (1<<i);
|
||||
return;
|
||||
}
|
||||
}
|
||||
line = ITE_GPBISR;
|
||||
for (i=7; i >= 0; i--) {
|
||||
if ( line & (1 << i)) {
|
||||
++ite_irq_counter[i+8];
|
||||
ite_gpio_irq_pending[i+8] = 2;
|
||||
wake_up_interruptible(&ite_gpio_wait[i+8]);
|
||||
|
||||
DEB(printk("interrupt 0x%x %d\n",ITE_GPBISR, i+8));
|
||||
|
||||
ITE_GPBISR = ITE_GPBISR & (1<<i);
|
||||
return;
|
||||
}
|
||||
}
|
||||
line = ITE_GPAISR;
|
||||
for (i=7; i >= 0; i--) {
|
||||
if ( line & (1 << i)) {
|
||||
++ite_irq_counter[i];
|
||||
ite_gpio_irq_pending[i] = 2;
|
||||
wake_up_interruptible(&ite_gpio_wait[i]);
|
||||
|
||||
DEB(printk("interrupt 0x%x %d\n",ITE_GPAISR, i));
|
||||
|
||||
ITE_GPAISR = ITE_GPAISR & (1<<i);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static const struct file_operations ite_gpio_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.ioctl = ite_gpio_ioctl,
|
||||
.open = ite_gpio_open,
|
||||
.release = ite_gpio_release,
|
||||
};
|
||||
|
||||
static struct miscdevice ite_gpio_miscdev = {
|
||||
MISC_DYNAMIC_MINOR,
|
||||
"ite_gpio",
|
||||
&ite_gpio_fops
|
||||
};
|
||||
|
||||
int __init ite_gpio_init(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (misc_register(&ite_gpio_miscdev))
|
||||
return -ENODEV;
|
||||
|
||||
if (!request_region(ite_gpio_base, 0x1c, "ITE GPIO"))
|
||||
{
|
||||
misc_deregister(&ite_gpio_miscdev);
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
/* initialize registers */
|
||||
ITE_GPACR = 0xffff;
|
||||
ITE_GPBCR = 0xffff;
|
||||
ITE_GPCCR = 0xffff;
|
||||
ITE_GPAICR = 0x00ff;
|
||||
ITE_GPBICR = 0x00ff;
|
||||
ITE_GPCICR = 0x00ff;
|
||||
ITE_GCR = 0;
|
||||
|
||||
for (i = 0; i < MAX_GPIO_LINE; i++) {
|
||||
ite_gpio_irq_pending[i]=0;
|
||||
init_waitqueue_head(&ite_gpio_wait[i]);
|
||||
}
|
||||
|
||||
if (request_irq(ite_gpio_irq, ite_gpio_irq_handler, IRQF_SHARED, "gpio", 0) < 0) {
|
||||
misc_deregister(&ite_gpio_miscdev);
|
||||
release_region(ite_gpio_base, 0x1c);
|
||||
return 0;
|
||||
}
|
||||
|
||||
printk("GPIO at 0x%x (irq = %d)\n", ite_gpio_base, ite_gpio_irq);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void __exit ite_gpio_exit(void)
|
||||
{
|
||||
misc_deregister(&ite_gpio_miscdev);
|
||||
}
|
||||
|
||||
module_init(ite_gpio_init);
|
||||
module_exit(ite_gpio_exit);
|
||||
|
||||
MODULE_LICENSE("GPL");
|
|
@ -1,265 +0,0 @@
|
|||
|
||||
/* Do not edit this file! It was automatically generated by */
|
||||
/* loadkeys --mktable defkeymap.map > defkeymap.c */
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <linux/keyboard.h>
|
||||
#include <linux/kd.h>
|
||||
|
||||
u_short plain_map[NR_KEYS] = {
|
||||
0xf200, 0xf060, 0xf031, 0xf032, 0xf033, 0xf034, 0xf035, 0xf036,
|
||||
0xf037, 0xf038, 0xf039, 0xf030, 0xf02d, 0xf03d, 0xf200, 0xf07f,
|
||||
0xf009, 0xfb71, 0xfb77, 0xfb65, 0xfb72, 0xfb74, 0xfb79, 0xfb75,
|
||||
0xfb69, 0xfb6f, 0xfb70, 0xf05b, 0xf05d, 0xf05c, 0xf207, 0xfb61,
|
||||
0xfb73, 0xfb64, 0xfb66, 0xfb67, 0xfb68, 0xfb6a, 0xfb6b, 0xfb6c,
|
||||
0xf03b, 0xf027, 0xf060, 0xf201, 0xf700, 0xf200, 0xfb7a, 0xfb78,
|
||||
0xfb63, 0xfb76, 0xfb62, 0xfb6e, 0xfb6d, 0xf02c, 0xf02e, 0xf02f,
|
||||
0xf200, 0xf700, 0xf702, 0xf200, 0xf703, 0xf020, 0xf703, 0xf200,
|
||||
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
|
||||
0xf200, 0xf200, 0xf200, 0xf115, 0xf07f, 0xf200, 0xf200, 0xf601,
|
||||
0xf200, 0xf200, 0xf200, 0xf603, 0xf600, 0xf118, 0xf119, 0xf200,
|
||||
0xf200, 0xf602, 0xf208, 0xf02d, 0xf02b, 0xf30c, 0xf02e, 0xf30d,
|
||||
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
|
||||
0xf200, 0xf200, 0xf200, 0xf117, 0xf600, 0xf200, 0xf01b, 0xf200,
|
||||
0xf100, 0xf101, 0xf102, 0xf103, 0xf104, 0xf105, 0xf106, 0xf107,
|
||||
0xf108, 0xf109, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d, 0xf200,
|
||||
};
|
||||
|
||||
u_short shift_map[NR_KEYS] = {
|
||||
0xf200, 0xf07e, 0xf021, 0xf040, 0xf023, 0xf024, 0xf025, 0xf05e,
|
||||
0xf026, 0xf02a, 0xf028, 0xf029, 0xf05f, 0xf02b, 0xf200, 0xf07f,
|
||||
0xf009, 0xfb51, 0xfb57, 0xfb45, 0xfb52, 0xfb54, 0xfb59, 0xfb55,
|
||||
0xfb49, 0xfb4f, 0xfb50, 0xf07b, 0xf07d, 0xf07c, 0xf207, 0xfb41,
|
||||
0xfb53, 0xfb44, 0xfb46, 0xfb47, 0xfb48, 0xfb4a, 0xfb4b, 0xfb4c,
|
||||
0xf03a, 0xf022, 0xf07e, 0xf201, 0xf700, 0xf200, 0xfb5a, 0xfb58,
|
||||
0xfb43, 0xfb56, 0xfb42, 0xfb4e, 0xfb4d, 0xf03c, 0xf03e, 0xf03f,
|
||||
0xf200, 0xf700, 0xf702, 0xf200, 0xf703, 0xf020, 0xf703, 0xf200,
|
||||
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
|
||||
0xf200, 0xf200, 0xf200, 0xf115, 0xf07f, 0xf200, 0xf200, 0xf601,
|
||||
0xf200, 0xf200, 0xf200, 0xf603, 0xf600, 0xf20b, 0xf20a, 0xf200,
|
||||
0xf200, 0xf602, 0xf213, 0xf02d, 0xf02b, 0xf30c, 0xf02e, 0xf30d,
|
||||
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
|
||||
0xf200, 0xf200, 0xf200, 0xf117, 0xf600, 0xf200, 0xf01b, 0xf200,
|
||||
0xf10a, 0xf10b, 0xf10c, 0xf10d, 0xf10e, 0xf10f, 0xf110, 0xf111,
|
||||
0xf112, 0xf113, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d, 0xf200,
|
||||
};
|
||||
|
||||
u_short altgr_map[NR_KEYS] = {
|
||||
0xf200, 0xf200, 0xf200, 0xf040, 0xf200, 0xf024, 0xf200, 0xf200,
|
||||
0xf07b, 0xf05b, 0xf05d, 0xf07d, 0xf05c, 0xf200, 0xf200, 0xf200,
|
||||
0xf200, 0xfb71, 0xfb77, 0xfb65, 0xfb72, 0xfb74, 0xfb79, 0xfb75,
|
||||
0xfb69, 0xfb6f, 0xfb70, 0xf200, 0xf200, 0xf200, 0xf207, 0xfb61,
|
||||
0xfb73, 0xfb64, 0xfb66, 0xfb67, 0xfb68, 0xfb6a, 0xfb6b, 0xfb6c,
|
||||
0xf200, 0xf200, 0xf200, 0xf201, 0xf700, 0xf200, 0xfb7a, 0xfb78,
|
||||
0xfb63, 0xfb76, 0xfb62, 0xfb6e, 0xfb6d, 0xf200, 0xf200, 0xf200,
|
||||
0xf200, 0xf700, 0xf702, 0xf200, 0xf703, 0xf200, 0xf703, 0xf200,
|
||||
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
|
||||
0xf200, 0xf200, 0xf200, 0xf115, 0xf07f, 0xf200, 0xf200, 0xf601,
|
||||
0xf200, 0xf200, 0xf200, 0xf603, 0xf600, 0xf118, 0xf119, 0xf200,
|
||||
0xf200, 0xf602, 0xf208, 0xf02d, 0xf02b, 0xf30c, 0xf02e, 0xf30d,
|
||||
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
|
||||
0xf200, 0xf200, 0xf200, 0xf117, 0xf600, 0xf200, 0xf200, 0xf200,
|
||||
0xf50c, 0xf50d, 0xf50e, 0xf50f, 0xf510, 0xf511, 0xf512, 0xf513,
|
||||
0xf514, 0xf515, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d, 0xf200,
|
||||
};
|
||||
|
||||
u_short ctrl_map[NR_KEYS] = {
|
||||
0xf200, 0xf200, 0xf200, 0xf000, 0xf01b, 0xf01c, 0xf01d, 0xf01e,
|
||||
0xf01f, 0xf07f, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf200, 0xf008,
|
||||
0xf200, 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015,
|
||||
0xf009, 0xf00f, 0xf010, 0xf01b, 0xf01d, 0xf01c, 0xf207, 0xf001,
|
||||
0xf013, 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c,
|
||||
0xf007, 0xf000, 0xf200, 0xf201, 0xf700, 0xf200, 0xf01a, 0xf018,
|
||||
0xf003, 0xf016, 0xf002, 0xf00e, 0xf20e, 0xf07f, 0xf200, 0xf200,
|
||||
0xf200, 0xf700, 0xf702, 0xf200, 0xf703, 0xf000, 0xf703, 0xf200,
|
||||
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
|
||||
0xf200, 0xf200, 0xf200, 0xf115, 0xf07f, 0xf200, 0xf200, 0xf601,
|
||||
0xf200, 0xf200, 0xf200, 0xf603, 0xf600, 0xf118, 0xf119, 0xf200,
|
||||
0xf200, 0xf602, 0xf208, 0xf02d, 0xf02b, 0xf30c, 0xf02e, 0xf30d,
|
||||
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
|
||||
0xf200, 0xf200, 0xf200, 0xf117, 0xf600, 0xf200, 0xf200, 0xf200,
|
||||
0xf100, 0xf101, 0xf102, 0xf103, 0xf104, 0xf105, 0xf106, 0xf107,
|
||||
0xf108, 0xf109, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d, 0xf200,
|
||||
};
|
||||
|
||||
u_short shift_ctrl_map[NR_KEYS] = {
|
||||
0xf200, 0xf200, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf200,
|
||||
0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf200, 0xf200,
|
||||
0xf200, 0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015,
|
||||
0xf009, 0xf00f, 0xf010, 0xf200, 0xf200, 0xf200, 0xf207, 0xf001,
|
||||
0xf013, 0xf004, 0xf006, 0xf007, 0xf008, 0xf00a, 0xf00b, 0xf00c,
|
||||
0xf200, 0xf200, 0xf200, 0xf201, 0xf700, 0xf200, 0xf01a, 0xf018,
|
||||
0xf003, 0xf016, 0xf002, 0xf00e, 0xf00d, 0xf200, 0xf200, 0xf200,
|
||||
0xf200, 0xf700, 0xf702, 0xf200, 0xf703, 0xf200, 0xf703, 0xf200,
|
||||
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
|
||||
0xf200, 0xf200, 0xf200, 0xf115, 0xf07f, 0xf200, 0xf200, 0xf601,
|
||||
0xf200, 0xf200, 0xf200, 0xf603, 0xf600, 0xf118, 0xf119, 0xf200,
|
||||
0xf200, 0xf602, 0xf208, 0xf02d, 0xf02b, 0xf30c, 0xf02e, 0xf30d,
|
||||
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
|
||||
0xf200, 0xf200, 0xf200, 0xf117, 0xf600, 0xf200, 0xf200, 0xf200,
|
||||
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
|
||||
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d, 0xf200,
|
||||
};
|
||||
|
||||
u_short alt_map[NR_KEYS] = {
|
||||
0xf200, 0xf81b, 0xf831, 0xf832, 0xf833, 0xf834, 0xf835, 0xf836,
|
||||
0xf837, 0xf838, 0xf839, 0xf830, 0xf82d, 0xf83d, 0xf200, 0xf87f,
|
||||
0xf809, 0xf871, 0xf877, 0xf865, 0xf872, 0xf874, 0xf879, 0xf875,
|
||||
0xf869, 0xf86f, 0xf870, 0xf85b, 0xf85d, 0xf85c, 0xf207, 0xf861,
|
||||
0xf873, 0xf864, 0xf866, 0xf867, 0xf868, 0xf86a, 0xf86b, 0xf83b,
|
||||
0xf827, 0xf860, 0xf200, 0xf80d, 0xf700, 0xf200, 0xf87a, 0xf878,
|
||||
0xf863, 0xf876, 0xf862, 0xf82c, 0xf82e, 0xf82f, 0xf200, 0xf200,
|
||||
0xf200, 0xf700, 0xf702, 0xf200, 0xf703, 0xf820, 0xf703, 0xf200,
|
||||
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
|
||||
0xf200, 0xf200, 0xf200, 0xf115, 0xf07f, 0xf200, 0xf200, 0xf210,
|
||||
0xf200, 0xf200, 0xf200, 0xf603, 0xf600, 0xf118, 0xf119, 0xf200,
|
||||
0xf200, 0xf211, 0xf208, 0xf02d, 0xf02b, 0xf30c, 0xf02e, 0xf30d,
|
||||
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
|
||||
0xf200, 0xf200, 0xf200, 0xf117, 0xf600, 0xf200, 0xf200, 0xf200,
|
||||
0xf500, 0xf501, 0xf502, 0xf503, 0xf504, 0xf505, 0xf506, 0xf507,
|
||||
0xf508, 0xf509, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d, 0xf200,
|
||||
};
|
||||
|
||||
u_short ctrl_alt_map[NR_KEYS] = {
|
||||
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
|
||||
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
|
||||
0xf200, 0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815,
|
||||
0xf809, 0xf80f, 0xf810, 0xf200, 0xf200, 0xf200, 0xf207, 0xf801,
|
||||
0xf813, 0xf804, 0xf806, 0xf807, 0xf808, 0xf80a, 0xf80b, 0xf80c,
|
||||
0xf200, 0xf200, 0xf200, 0xf201, 0xf700, 0xf200, 0xf81a, 0xf818,
|
||||
0xf803, 0xf816, 0xf802, 0xf80e, 0xf80d, 0xf200, 0xf200, 0xf200,
|
||||
0xf200, 0xf700, 0xf702, 0xf200, 0xf703, 0xf200, 0xf703, 0xf200,
|
||||
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
|
||||
0xf200, 0xf200, 0xf200, 0xf115, 0xf07f, 0xf200, 0xf200, 0xf601,
|
||||
0xf200, 0xf200, 0xf200, 0xf603, 0xf600, 0xf118, 0xf119, 0xf200,
|
||||
0xf200, 0xf602, 0xf208, 0xf02d, 0xf02b, 0xf30c, 0xf02e, 0xf30d,
|
||||
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
|
||||
0xf200, 0xf200, 0xf200, 0xf117, 0xf600, 0xf200, 0xf200, 0xf200,
|
||||
0xf500, 0xf501, 0xf502, 0xf503, 0xf504, 0xf505, 0xf506, 0xf507,
|
||||
0xf508, 0xf509, 0xf200, 0xf200, 0xf200, 0xf200, 0xf11d, 0xf200,
|
||||
};
|
||||
|
||||
ushort *key_maps[MAX_NR_KEYMAPS] = {
|
||||
plain_map, shift_map, altgr_map, 0,
|
||||
ctrl_map, shift_ctrl_map, 0, 0,
|
||||
alt_map, 0, 0, 0,
|
||||
ctrl_alt_map, 0
|
||||
};
|
||||
|
||||
unsigned int keymap_count = 7;
|
||||
|
||||
|
||||
/*
|
||||
* Philosophy: most people do not define more strings, but they who do
|
||||
* often want quite a lot of string space. So, we statically allocate
|
||||
* the default and allocate dynamically in chunks of 512 bytes.
|
||||
*/
|
||||
|
||||
char func_buf[] = {
|
||||
'\033', '[', '[', 'A', 0,
|
||||
'\033', '[', '[', 'B', 0,
|
||||
'\033', '[', '[', 'C', 0,
|
||||
'\033', '[', '[', 'D', 0,
|
||||
'\033', '[', '[', 'E', 0,
|
||||
'\033', '[', '1', '7', '~', 0,
|
||||
'\033', '[', '1', '8', '~', 0,
|
||||
'\033', '[', '1', '9', '~', 0,
|
||||
'\033', '[', '2', '0', '~', 0,
|
||||
'\033', '[', '2', '1', '~', 0,
|
||||
'\033', '[', '2', '3', '~', 0,
|
||||
'\033', '[', '2', '4', '~', 0,
|
||||
'\033', '[', '2', '5', '~', 0,
|
||||
'\033', '[', '2', '6', '~', 0,
|
||||
'\033', '[', '2', '8', '~', 0,
|
||||
'\033', '[', '2', '9', '~', 0,
|
||||
'\033', '[', '3', '1', '~', 0,
|
||||
'\033', '[', '3', '2', '~', 0,
|
||||
'\033', '[', '3', '3', '~', 0,
|
||||
'\033', '[', '3', '4', '~', 0,
|
||||
'\033', '[', '1', '~', 0,
|
||||
'\033', '[', '2', '~', 0,
|
||||
'\033', '[', '3', '~', 0,
|
||||
'\033', '[', '4', '~', 0,
|
||||
'\033', '[', '5', '~', 0,
|
||||
'\033', '[', '6', '~', 0,
|
||||
'\033', '[', 'M', 0,
|
||||
'\033', '[', 'P', 0,
|
||||
};
|
||||
|
||||
|
||||
char *funcbufptr = func_buf;
|
||||
int funcbufsize = sizeof(func_buf);
|
||||
int funcbufleft = 0; /* space left */
|
||||
|
||||
char *func_table[MAX_NR_FUNC] = {
|
||||
func_buf + 0,
|
||||
func_buf + 5,
|
||||
func_buf + 10,
|
||||
func_buf + 15,
|
||||
func_buf + 20,
|
||||
func_buf + 25,
|
||||
func_buf + 31,
|
||||
func_buf + 37,
|
||||
func_buf + 43,
|
||||
func_buf + 49,
|
||||
func_buf + 55,
|
||||
func_buf + 61,
|
||||
func_buf + 67,
|
||||
func_buf + 73,
|
||||
func_buf + 79,
|
||||
func_buf + 85,
|
||||
func_buf + 91,
|
||||
func_buf + 97,
|
||||
func_buf + 103,
|
||||
func_buf + 109,
|
||||
func_buf + 115,
|
||||
func_buf + 120,
|
||||
func_buf + 125,
|
||||
func_buf + 130,
|
||||
func_buf + 135,
|
||||
func_buf + 140,
|
||||
func_buf + 145,
|
||||
0,
|
||||
0,
|
||||
func_buf + 149,
|
||||
0,
|
||||
};
|
||||
|
||||
struct kbdiacr accent_table[MAX_DIACR] = {
|
||||
{'`', 'A', 'À'}, {'`', 'a', 'à'},
|
||||
{'\'', 'A', 'Á'}, {'\'', 'a', 'á'},
|
||||
{'^', 'A', 'Â'}, {'^', 'a', 'â'},
|
||||
{'~', 'A', 'Ã'}, {'~', 'a', 'ã'},
|
||||
{'"', 'A', 'Ä'}, {'"', 'a', 'ä'},
|
||||
{'O', 'A', 'Å'}, {'o', 'a', 'å'},
|
||||
{'0', 'A', 'Å'}, {'0', 'a', 'å'},
|
||||
{'A', 'A', 'Å'}, {'a', 'a', 'å'},
|
||||
{'A', 'E', 'Æ'}, {'a', 'e', 'æ'},
|
||||
{',', 'C', 'Ç'}, {',', 'c', 'ç'},
|
||||
{'`', 'E', 'È'}, {'`', 'e', 'è'},
|
||||
{'\'', 'E', 'É'}, {'\'', 'e', 'é'},
|
||||
{'^', 'E', 'Ê'}, {'^', 'e', 'ê'},
|
||||
{'"', 'E', 'Ë'}, {'"', 'e', 'ë'},
|
||||
{'`', 'I', 'Ì'}, {'`', 'i', 'ì'},
|
||||
{'\'', 'I', 'Í'}, {'\'', 'i', 'í'},
|
||||
{'^', 'I', 'Î'}, {'^', 'i', 'î'},
|
||||
{'"', 'I', 'Ï'}, {'"', 'i', 'ï'},
|
||||
{'-', 'D', 'Ð'}, {'-', 'd', 'ð'},
|
||||
{'~', 'N', 'Ñ'}, {'~', 'n', 'ñ'},
|
||||
{'`', 'O', 'Ò'}, {'`', 'o', 'ò'},
|
||||
{'\'', 'O', 'Ó'}, {'\'', 'o', 'ó'},
|
||||
{'^', 'O', 'Ô'}, {'^', 'o', 'ô'},
|
||||
{'~', 'O', 'Õ'}, {'~', 'o', 'õ'},
|
||||
{'"', 'O', 'Ö'}, {'"', 'o', 'ö'},
|
||||
{'/', 'O', 'Ø'}, {'/', 'o', 'ø'},
|
||||
{'`', 'U', 'Ù'}, {'`', 'u', 'ù'},
|
||||
{'\'', 'U', 'Ú'}, {'\'', 'u', 'ú'},
|
||||
{'^', 'U', 'Û'}, {'^', 'u', 'û'},
|
||||
{'"', 'U', 'Ü'}, {'"', 'u', 'ü'},
|
||||
{'\'', 'Y', 'Ý'}, {'\'', 'y', 'ý'},
|
||||
{'T', 'H', 'Þ'}, {'t', 'h', 'þ'},
|
||||
{'s', 's', 'ß'}, {'"', 'y', 'ÿ'},
|
||||
{'s', 'z', 'ß'}, {'i', 'j', 'ÿ'},
|
||||
};
|
||||
|
||||
unsigned int accent_table_size = 68;
|
|
@ -1,287 +0,0 @@
|
|||
# Default kernel keymap. This uses 7 modifier combinations.
|
||||
keymaps 0-2,4-5,8,12
|
||||
# Change the above line into
|
||||
# keymaps 0-2,4-6,8,12
|
||||
# in case you want the entries
|
||||
# altgr control keycode 83 = Boot
|
||||
# altgr control keycode 111 = Boot
|
||||
# below.
|
||||
#
|
||||
# In fact AltGr is used very little, and one more keymap can
|
||||
# be saved by mapping AltGr to Alt (and adapting a few entries):
|
||||
# keycode 100 = Alt
|
||||
#
|
||||
keycode 1 = grave asciitilde
|
||||
alt keycode 1 = Meta_Escape
|
||||
keycode 2 = one exclam
|
||||
alt keycode 2 = Meta_one
|
||||
keycode 3 = two at at
|
||||
control keycode 3 = nul
|
||||
shift control keycode 3 = nul
|
||||
alt keycode 3 = Meta_two
|
||||
keycode 4 = three numbersign
|
||||
control keycode 4 = Escape
|
||||
alt keycode 4 = Meta_three
|
||||
keycode 5 = four dollar dollar
|
||||
control keycode 5 = Control_backslash
|
||||
alt keycode 5 = Meta_four
|
||||
keycode 6 = five percent
|
||||
control keycode 6 = Control_bracketright
|
||||
alt keycode 6 = Meta_five
|
||||
keycode 7 = six asciicircum
|
||||
control keycode 7 = Control_asciicircum
|
||||
alt keycode 7 = Meta_six
|
||||
keycode 8 = seven ampersand braceleft
|
||||
control keycode 8 = Control_underscore
|
||||
alt keycode 8 = Meta_seven
|
||||
keycode 9 = eight asterisk bracketleft
|
||||
control keycode 9 = Delete
|
||||
alt keycode 9 = Meta_eight
|
||||
keycode 10 = nine parenleft bracketright
|
||||
alt keycode 10 = Meta_nine
|
||||
keycode 11 = zero parenright braceright
|
||||
alt keycode 11 = Meta_zero
|
||||
keycode 12 = minus underscore backslash
|
||||
control keycode 12 = Control_underscore
|
||||
shift control keycode 12 = Control_underscore
|
||||
alt keycode 12 = Meta_minus
|
||||
keycode 13 = equal plus
|
||||
alt keycode 13 = Meta_equal
|
||||
keycode 15 = Delete Delete
|
||||
control keycode 15 = BackSpace
|
||||
alt keycode 15 = Meta_Delete
|
||||
keycode 16 = Tab Tab
|
||||
alt keycode 16 = Meta_Tab
|
||||
keycode 17 = q
|
||||
keycode 18 = w
|
||||
keycode 19 = e
|
||||
keycode 20 = r
|
||||
keycode 21 = t
|
||||
keycode 22 = y
|
||||
keycode 23 = u
|
||||
keycode 24 = i
|
||||
keycode 25 = o
|
||||
keycode 26 = p
|
||||
keycode 27 = bracketleft braceleft
|
||||
control keycode 27 = Escape
|
||||
alt keycode 27 = Meta_bracketleft
|
||||
keycode 28 = bracketright braceright
|
||||
control keycode 28 = Control_bracketright
|
||||
alt keycode 28 = Meta_bracketright
|
||||
keycode 29 = backslash bar
|
||||
control keycode 29 = Control_backslash
|
||||
alt keycode 29 = Meta_backslash
|
||||
keycode 30 = Caps_Lock
|
||||
keycode 31 = a
|
||||
keycode 32 = s
|
||||
keycode 33 = d
|
||||
keycode 34 = f
|
||||
keycode 35 = g
|
||||
keycode 36 = h
|
||||
keycode 37 = j
|
||||
keycode 38 = k
|
||||
keycode 39 = l
|
||||
keycode 40 = semicolon colon
|
||||
alt keycode 39 = Meta_semicolon
|
||||
keycode 41 = apostrophe quotedbl
|
||||
control keycode 40 = Control_g
|
||||
alt keycode 40 = Meta_apostrophe
|
||||
keycode 42 = grave asciitilde
|
||||
control keycode 41 = nul
|
||||
alt keycode 41 = Meta_grave
|
||||
keycode 43 = Return
|
||||
alt keycode 43 = Meta_Control_m
|
||||
keycode 44 = Shift
|
||||
keycode 46 = z
|
||||
keycode 47 = x
|
||||
keycode 48 = c
|
||||
keycode 49 = v
|
||||
keycode 50 = b
|
||||
keycode 51 = n
|
||||
keycode 52 = m
|
||||
keycode 53 = comma less
|
||||
alt keycode 51 = Meta_comma
|
||||
keycode 54 = period greater
|
||||
control keycode 52 = Compose
|
||||
alt keycode 52 = Meta_period
|
||||
keycode 55 = slash question
|
||||
control keycode 53 = Delete
|
||||
alt keycode 53 = Meta_slash
|
||||
keycode 57 = Shift
|
||||
keycode 58 = Control
|
||||
keycode 60 = Alt
|
||||
keycode 61 = space space
|
||||
control keycode 61 = nul
|
||||
alt keycode 61 = Meta_space
|
||||
keycode 62 = Alt
|
||||
|
||||
keycode 75 = Insert
|
||||
keycode 76 = Delete
|
||||
|
||||
keycode 83 = Up
|
||||
keycode 84 = Down
|
||||
|
||||
keycode 85 = Prior
|
||||
shift keycode 85 = Scroll_Backward
|
||||
keycode 86 = Next
|
||||
shift keycode 86 = Scroll_Forward
|
||||
keycode 89 = Right
|
||||
alt keycode 89 = Incr_Console
|
||||
keycode 79 = Left
|
||||
alt keycode 79 = Decr_Console
|
||||
|
||||
keycode 90 = Num_Lock
|
||||
shift keycode 90 = Bare_Num_Lock
|
||||
|
||||
keycode 91 = minus
|
||||
keycode 92 = plus
|
||||
keycode 93 = KP_Multiply
|
||||
keycode 94 = period
|
||||
keycode 95 = KP_Divide
|
||||
|
||||
keycode 107 = Select
|
||||
keycode 108 = Down
|
||||
|
||||
keycode 110 = Escape Escape
|
||||
alt keycode 1 = Meta_Escape
|
||||
|
||||
keycode 112 = F1 F11 Console_13
|
||||
control keycode 112 = F1
|
||||
alt keycode 112 = Console_1
|
||||
control alt keycode 112 = Console_1
|
||||
keycode 113 = F2 F12 Console_14
|
||||
control keycode 113 = F2
|
||||
alt keycode 113 = Console_2
|
||||
control alt keycode 113 = Console_2
|
||||
keycode 114 = F3 F13 Console_15
|
||||
control keycode 114 = F3
|
||||
alt keycode 114 = Console_3
|
||||
control alt keycode 114 = Console_3
|
||||
keycode 115 = F4 F14 Console_16
|
||||
control keycode 115 = F4
|
||||
alt keycode 115 = Console_4
|
||||
control alt keycode 115 = Console_4
|
||||
keycode 116 = F5 F15 Console_17
|
||||
control keycode 116 = F5
|
||||
alt keycode 116 = Console_5
|
||||
control alt keycode 116 = Console_5
|
||||
keycode 117 = F6 F16 Console_18
|
||||
control keycode 117 = F6
|
||||
alt keycode 117 = Console_6
|
||||
control alt keycode 117 = Console_6
|
||||
keycode 118 = F7 F17 Console_19
|
||||
control keycode 118 = F7
|
||||
alt keycode 118 = Console_7
|
||||
control alt keycode 118 = Console_7
|
||||
keycode 119 = F8 F18 Console_20
|
||||
control keycode 119 = F8
|
||||
alt keycode 119 = Console_8
|
||||
control alt keycode 119 = Console_8
|
||||
keycode 120 = F9 F19 Console_21
|
||||
control keycode 120 = F9
|
||||
alt keycode 120 = Console_9
|
||||
control alt keycode 120 = Console_9
|
||||
keycode 121 = F10 F20 Console_22
|
||||
control keycode 121 = F10
|
||||
alt keycode 121 = Console_10
|
||||
control alt keycode 121 = Console_10
|
||||
|
||||
keycode 126 = Pause
|
||||
|
||||
|
||||
string F1 = "\033[[A"
|
||||
string F2 = "\033[[B"
|
||||
string F3 = "\033[[C"
|
||||
string F4 = "\033[[D"
|
||||
string F5 = "\033[[E"
|
||||
string F6 = "\033[17~"
|
||||
string F7 = "\033[18~"
|
||||
string F8 = "\033[19~"
|
||||
string F9 = "\033[20~"
|
||||
string F10 = "\033[21~"
|
||||
string F11 = "\033[23~"
|
||||
string F12 = "\033[24~"
|
||||
string F13 = "\033[25~"
|
||||
string F14 = "\033[26~"
|
||||
string F15 = "\033[28~"
|
||||
string F16 = "\033[29~"
|
||||
string F17 = "\033[31~"
|
||||
string F18 = "\033[32~"
|
||||
string F19 = "\033[33~"
|
||||
string F20 = "\033[34~"
|
||||
string Find = "\033[1~"
|
||||
string Insert = "\033[2~"
|
||||
string Remove = "\033[3~"
|
||||
string Select = "\033[4~"
|
||||
string Prior = "\033[5~"
|
||||
string Next = "\033[6~"
|
||||
string Macro = "\033[M"
|
||||
string Pause = "\033[P"
|
||||
compose '`' 'A' to 'À'
|
||||
compose '`' 'a' to 'à'
|
||||
compose '\'' 'A' to 'Á'
|
||||
compose '\'' 'a' to 'á'
|
||||
compose '^' 'A' to 'Â'
|
||||
compose '^' 'a' to 'â'
|
||||
compose '~' 'A' to 'Ã'
|
||||
compose '~' 'a' to 'ã'
|
||||
compose '"' 'A' to 'Ä'
|
||||
compose '"' 'a' to 'ä'
|
||||
compose 'O' 'A' to 'Å'
|
||||
compose 'o' 'a' to 'å'
|
||||
compose '0' 'A' to 'Å'
|
||||
compose '0' 'a' to 'å'
|
||||
compose 'A' 'A' to 'Å'
|
||||
compose 'a' 'a' to 'å'
|
||||
compose 'A' 'E' to 'Æ'
|
||||
compose 'a' 'e' to 'æ'
|
||||
compose ',' 'C' to 'Ç'
|
||||
compose ',' 'c' to 'ç'
|
||||
compose '`' 'E' to 'È'
|
||||
compose '`' 'e' to 'è'
|
||||
compose '\'' 'E' to 'É'
|
||||
compose '\'' 'e' to 'é'
|
||||
compose '^' 'E' to 'Ê'
|
||||
compose '^' 'e' to 'ê'
|
||||
compose '"' 'E' to 'Ë'
|
||||
compose '"' 'e' to 'ë'
|
||||
compose '`' 'I' to 'Ì'
|
||||
compose '`' 'i' to 'ì'
|
||||
compose '\'' 'I' to 'Í'
|
||||
compose '\'' 'i' to 'í'
|
||||
compose '^' 'I' to 'Î'
|
||||
compose '^' 'i' to 'î'
|
||||
compose '"' 'I' to 'Ï'
|
||||
compose '"' 'i' to 'ï'
|
||||
compose '-' 'D' to 'Ð'
|
||||
compose '-' 'd' to 'ð'
|
||||
compose '~' 'N' to 'Ñ'
|
||||
compose '~' 'n' to 'ñ'
|
||||
compose '`' 'O' to 'Ò'
|
||||
compose '`' 'o' to 'ò'
|
||||
compose '\'' 'O' to 'Ó'
|
||||
compose '\'' 'o' to 'ó'
|
||||
compose '^' 'O' to 'Ô'
|
||||
compose '^' 'o' to 'ô'
|
||||
compose '~' 'O' to 'Õ'
|
||||
compose '~' 'o' to 'õ'
|
||||
compose '"' 'O' to 'Ö'
|
||||
compose '"' 'o' to 'ö'
|
||||
compose '/' 'O' to 'Ø'
|
||||
compose '/' 'o' to 'ø'
|
||||
compose '`' 'U' to 'Ù'
|
||||
compose '`' 'u' to 'ù'
|
||||
compose '\'' 'U' to 'Ú'
|
||||
compose '\'' 'u' to 'ú'
|
||||
compose '^' 'U' to 'Û'
|
||||
compose '^' 'u' to 'û'
|
||||
compose '"' 'U' to 'Ü'
|
||||
compose '"' 'u' to 'ü'
|
||||
compose '\'' 'Y' to 'Ý'
|
||||
compose '\'' 'y' to 'ý'
|
||||
compose 'T' 'H' to 'Þ'
|
||||
compose 't' 'h' to 'þ'
|
||||
compose 's' 's' to 'ß'
|
||||
compose '"' 'y' to 'ÿ'
|
||||
compose 's' 'z' to 'ß'
|
||||
compose 'i' 'j' to 'ÿ'
|
|
@ -614,15 +614,6 @@ config BLK_DEV_PIIX
|
|||
the kernel to change PIO, DMA and UDMA speeds and to configure
|
||||
the chip to optimum performance.
|
||||
|
||||
config BLK_DEV_IT8172
|
||||
bool "IT8172 IDE support"
|
||||
depends on (MIPS_ITE8172 || MIPS_IVR)
|
||||
help
|
||||
Say Y here to support the on-board IDE controller on the Integrated
|
||||
Technology Express, Inc. ITE8172 SBC. Vendor page at
|
||||
<http://www.ite.com.tw/ia/brief_it8172bsp.htm>; picture of the
|
||||
board at <http://www.mvista.com/partners/semiconductor/ite.html>.
|
||||
|
||||
config BLK_DEV_IT821X
|
||||
tristate "IT821X IDE support"
|
||||
help
|
||||
|
|
|
@ -12,7 +12,6 @@ obj-$(CONFIG_BLK_DEV_CY82C693) += cy82c693.o
|
|||
obj-$(CONFIG_BLK_DEV_HPT34X) += hpt34x.o
|
||||
obj-$(CONFIG_BLK_DEV_HPT366) += hpt366.o
|
||||
#obj-$(CONFIG_BLK_DEV_HPT37X) += hpt37x.o
|
||||
obj-$(CONFIG_BLK_DEV_IT8172) += it8172.o
|
||||
obj-$(CONFIG_BLK_DEV_IT821X) += it821x.o
|
||||
obj-$(CONFIG_BLK_DEV_JMICRON) += jmicron.o
|
||||
obj-$(CONFIG_BLK_DEV_NS87415) += ns87415.o
|
||||
|
|
|
@ -1,307 +0,0 @@
|
|||
/*
|
||||
*
|
||||
* BRIEF MODULE DESCRIPTION
|
||||
* IT8172 IDE controller support
|
||||
*
|
||||
* Copyright 2000 MontaVista Software Inc.
|
||||
* Author: MontaVista Software, Inc.
|
||||
* stevel@mvista.com or source@mvista.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.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
||||
* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
||||
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/ioport.h>
|
||||
#include <linux/pci.h>
|
||||
#include <linux/hdreg.h>
|
||||
#include <linux/ide.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/init.h>
|
||||
|
||||
#include <asm/io.h>
|
||||
#include <asm/it8172/it8172_int.h>
|
||||
|
||||
/*
|
||||
* Prototypes
|
||||
*/
|
||||
static u8 it8172_ratemask (ide_drive_t *drive)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
static void it8172_tune_drive (ide_drive_t *drive, u8 pio)
|
||||
{
|
||||
ide_hwif_t *hwif = HWIF(drive);
|
||||
struct pci_dev *dev = hwif->pci_dev;
|
||||
int is_slave = (&hwif->drives[1] == drive);
|
||||
unsigned long flags;
|
||||
u16 drive_enables;
|
||||
u32 drive_timing;
|
||||
|
||||
pio = ide_get_best_pio_mode(drive, pio, 4, NULL);
|
||||
spin_lock_irqsave(&ide_lock, flags);
|
||||
pci_read_config_word(dev, 0x40, &drive_enables);
|
||||
pci_read_config_dword(dev, 0x44, &drive_timing);
|
||||
|
||||
/*
|
||||
* FIX! The DIOR/DIOW pulse width and recovery times in port 0x44
|
||||
* are being left at the default values of 8 PCI clocks (242 nsec
|
||||
* for a 33 MHz clock). These can be safely shortened at higher
|
||||
* PIO modes. The DIOR/DIOW pulse width and recovery times only
|
||||
* apply to PIO modes, not to the DMA modes.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Enable port 0x44. The IT8172G spec is confused; it calls
|
||||
* this register the "Slave IDE Timing Register", but in fact,
|
||||
* it controls timing for both master and slave drives.
|
||||
*/
|
||||
drive_enables |= 0x4000;
|
||||
|
||||
if (is_slave) {
|
||||
drive_enables &= 0xc006;
|
||||
if (pio > 1)
|
||||
/* enable prefetch and IORDY sample-point */
|
||||
drive_enables |= 0x0060;
|
||||
} else {
|
||||
drive_enables &= 0xc060;
|
||||
if (pio > 1)
|
||||
/* enable prefetch and IORDY sample-point */
|
||||
drive_enables |= 0x0006;
|
||||
}
|
||||
|
||||
pci_write_config_word(dev, 0x40, drive_enables);
|
||||
spin_unlock_irqrestore(&ide_lock, flags);
|
||||
}
|
||||
|
||||
static u8 it8172_dma_2_pio (u8 xfer_rate)
|
||||
{
|
||||
switch(xfer_rate) {
|
||||
case XFER_UDMA_5:
|
||||
case XFER_UDMA_4:
|
||||
case XFER_UDMA_3:
|
||||
case XFER_UDMA_2:
|
||||
case XFER_UDMA_1:
|
||||
case XFER_UDMA_0:
|
||||
case XFER_MW_DMA_2:
|
||||
case XFER_PIO_4:
|
||||
return 4;
|
||||
case XFER_MW_DMA_1:
|
||||
case XFER_PIO_3:
|
||||
return 3;
|
||||
case XFER_SW_DMA_2:
|
||||
case XFER_PIO_2:
|
||||
return 2;
|
||||
case XFER_MW_DMA_0:
|
||||
case XFER_SW_DMA_1:
|
||||
case XFER_SW_DMA_0:
|
||||
case XFER_PIO_1:
|
||||
case XFER_PIO_0:
|
||||
case XFER_PIO_SLOW:
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
static int it8172_tune_chipset (ide_drive_t *drive, u8 xferspeed)
|
||||
{
|
||||
ide_hwif_t *hwif = HWIF(drive);
|
||||
struct pci_dev *dev = hwif->pci_dev;
|
||||
u8 speed = ide_rate_filter(it8172_ratemask(drive), xferspeed);
|
||||
int a_speed = 3 << (drive->dn * 4);
|
||||
int u_flag = 1 << drive->dn;
|
||||
int u_speed = 0;
|
||||
u8 reg48, reg4a;
|
||||
|
||||
pci_read_config_byte(dev, 0x48, ®48);
|
||||
pci_read_config_byte(dev, 0x4a, ®4a);
|
||||
|
||||
/*
|
||||
* Setting the DMA cycle time to 2 or 3 PCI clocks (60 and 91 nsec
|
||||
* at 33 MHz PCI clock) seems to cause BadCRC errors during DMA
|
||||
* transfers on some drives, even though both numbers meet the minimum
|
||||
* ATAPI-4 spec of 73 and 54 nsec for UDMA 1 and 2 respectively.
|
||||
* So the faster times are just commented out here. The good news is
|
||||
* that the slower cycle time has very little affect on transfer
|
||||
* performance.
|
||||
*/
|
||||
|
||||
switch(speed) {
|
||||
case XFER_UDMA_4:
|
||||
case XFER_UDMA_2: //u_speed = 2 << (drive->dn * 4); break;
|
||||
case XFER_UDMA_5:
|
||||
case XFER_UDMA_3:
|
||||
case XFER_UDMA_1: //u_speed = 1 << (drive->dn * 4); break;
|
||||
case XFER_UDMA_0: u_speed = 0 << (drive->dn * 4); break;
|
||||
case XFER_MW_DMA_2:
|
||||
case XFER_MW_DMA_1:
|
||||
case XFER_MW_DMA_0:
|
||||
case XFER_SW_DMA_2: break;
|
||||
case XFER_PIO_4:
|
||||
case XFER_PIO_3:
|
||||
case XFER_PIO_2:
|
||||
case XFER_PIO_0: break;
|
||||
default: return -1;
|
||||
}
|
||||
|
||||
if (speed >= XFER_UDMA_0) {
|
||||
pci_write_config_byte(dev, 0x48, reg48 | u_flag);
|
||||
reg4a &= ~a_speed;
|
||||
pci_write_config_byte(dev, 0x4a, reg4a | u_speed);
|
||||
} else {
|
||||
pci_write_config_byte(dev, 0x48, reg48 & ~u_flag);
|
||||
pci_write_config_byte(dev, 0x4a, reg4a & ~a_speed);
|
||||
}
|
||||
|
||||
it8172_tune_drive(drive, it8172_dma_2_pio(speed));
|
||||
return (ide_config_drive_speed(drive, speed));
|
||||
}
|
||||
|
||||
static int it8172_config_chipset_for_dma (ide_drive_t *drive)
|
||||
{
|
||||
u8 speed = ide_dma_speed(drive, it8172_ratemask(drive));
|
||||
|
||||
if (!(speed)) {
|
||||
u8 tspeed = ide_get_best_pio_mode(drive, 255, 4, NULL);
|
||||
speed = it8172_dma_2_pio(XFER_PIO_0 + tspeed);
|
||||
}
|
||||
|
||||
(void) it8172_tune_chipset(drive, speed);
|
||||
return ide_dma_enable(drive);
|
||||
}
|
||||
|
||||
static int it8172_config_drive_xfer_rate (ide_drive_t *drive)
|
||||
{
|
||||
ide_hwif_t *hwif = HWIF(drive);
|
||||
struct hd_driveid *id = drive->id;
|
||||
|
||||
drive->init_speed = 0;
|
||||
|
||||
if (id && (id->capability & 1) && drive->autodma) {
|
||||
|
||||
if (ide_use_dma(drive)) {
|
||||
if (it8172_config_chipset_for_dma(drive))
|
||||
return hwif->ide_dma_on(drive);
|
||||
}
|
||||
|
||||
goto fast_ata_pio;
|
||||
|
||||
} else if ((id->capability & 8) || (id->field_valid & 2)) {
|
||||
fast_ata_pio:
|
||||
it8172_tune_drive(drive, 5);
|
||||
return hwif->ide_dma_off_quietly(drive);
|
||||
}
|
||||
/* IORDY not supported */
|
||||
return 0;
|
||||
}
|
||||
|
||||
static unsigned int __devinit init_chipset_it8172 (struct pci_dev *dev, const char *name)
|
||||
{
|
||||
unsigned char progif;
|
||||
|
||||
/*
|
||||
* Place both IDE interfaces into PCI "native" mode
|
||||
*/
|
||||
pci_read_config_byte(dev, PCI_CLASS_PROG, &progif);
|
||||
pci_write_config_byte(dev, PCI_CLASS_PROG, progif | 0x05);
|
||||
|
||||
return IT8172_IDE_IRQ;
|
||||
}
|
||||
|
||||
|
||||
static void __devinit init_hwif_it8172 (ide_hwif_t *hwif)
|
||||
{
|
||||
struct pci_dev* dev = hwif->pci_dev;
|
||||
unsigned long cmdBase, ctrlBase;
|
||||
|
||||
hwif->autodma = 0;
|
||||
hwif->tuneproc = &it8172_tune_drive;
|
||||
hwif->speedproc = &it8172_tune_chipset;
|
||||
|
||||
cmdBase = dev->resource[0].start;
|
||||
ctrlBase = dev->resource[1].start;
|
||||
|
||||
ide_init_hwif_ports(&hwif->hw, cmdBase, ctrlBase | 2, NULL);
|
||||
memcpy(hwif->io_ports, hwif->hw.io_ports, sizeof(hwif->io_ports));
|
||||
hwif->noprobe = 0;
|
||||
|
||||
if (!hwif->dma_base) {
|
||||
hwif->drives[0].autotune = 1;
|
||||
hwif->drives[1].autotune = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
hwif->atapi_dma = 1;
|
||||
hwif->ultra_mask = 0x07;
|
||||
hwif->mwdma_mask = 0x06;
|
||||
hwif->swdma_mask = 0x04;
|
||||
|
||||
hwif->ide_dma_check = &it8172_config_drive_xfer_rate;
|
||||
if (!noautodma)
|
||||
hwif->autodma = 1;
|
||||
hwif->drives[0].autodma = hwif->autodma;
|
||||
hwif->drives[1].autodma = hwif->autodma;
|
||||
}
|
||||
|
||||
static ide_pci_device_t it8172_chipsets[] __devinitdata = {
|
||||
{ /* 0 */
|
||||
.name = "IT8172G",
|
||||
.init_chipset = init_chipset_it8172,
|
||||
.init_hwif = init_hwif_it8172,
|
||||
.channels = 2,
|
||||
.autodma = AUTODMA,
|
||||
.enablebits = {{0x00,0x00,0x00}, {0x40,0x00,0x01}},
|
||||
.bootable = ON_BOARD,
|
||||
}
|
||||
};
|
||||
|
||||
static int __devinit it8172_init_one(struct pci_dev *dev, const struct pci_device_id *id)
|
||||
{
|
||||
if ((!(PCI_FUNC(dev->devfn) & 1) ||
|
||||
(!((dev->class >> 8) == PCI_CLASS_STORAGE_IDE))))
|
||||
return -ENODEV; /* IT8172 is more than an IDE controller */
|
||||
return ide_setup_pci_device(dev, &it8172_chipsets[id->driver_data]);
|
||||
}
|
||||
|
||||
static struct pci_device_id it8172_pci_tbl[] = {
|
||||
{ PCI_VENDOR_ID_ITE, PCI_DEVICE_ID_ITE_IT8172G, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
|
||||
{ 0, },
|
||||
};
|
||||
MODULE_DEVICE_TABLE(pci, it8172_pci_tbl);
|
||||
|
||||
static struct pci_driver driver = {
|
||||
.name = "IT8172_IDE",
|
||||
.id_table = it8172_pci_tbl,
|
||||
.probe = it8172_init_one,
|
||||
};
|
||||
|
||||
static int it8172_ide_init(void)
|
||||
{
|
||||
return ide_pci_register_driver(&driver);
|
||||
}
|
||||
|
||||
module_init(it8172_ide_init);
|
||||
|
||||
MODULE_AUTHOR("SteveL@mvista.com");
|
||||
MODULE_DESCRIPTION("PCI driver module for ITE 8172 IDE");
|
||||
MODULE_LICENSE("GPL");
|
|
@ -124,12 +124,6 @@
|
|||
#define MACH_MOMENCO_JAGUAR_ATX 3
|
||||
#define MACH_MOMENCO_OCELOT_3 4
|
||||
|
||||
/*
|
||||
* Valid machtype for group ITE
|
||||
*/
|
||||
#define MACH_GROUP_ITE 13 /* ITE Semi Eval Boards */
|
||||
#define MACH_QED_4N_S01B 0 /* ITE8172 based eval board */
|
||||
|
||||
/*
|
||||
* Valid machtype for group PHILIPS
|
||||
*/
|
||||
|
@ -138,12 +132,6 @@
|
|||
#define MACH_PHILIPS_VELO 1 /* Velo */
|
||||
#define MACH_PHILIPS_JBS 2 /* JBS */
|
||||
|
||||
/*
|
||||
* Valid machtype for group Globespan
|
||||
*/
|
||||
#define MACH_GROUP_GLOBESPAN 15 /* Globespan */
|
||||
#define MACH_IVR 0 /* IVR eval board */
|
||||
|
||||
/*
|
||||
* Valid machtype for group SIBYTE
|
||||
*/
|
||||
|
|
|
@ -1,348 +0,0 @@
|
|||
/*
|
||||
*
|
||||
* BRIEF MODULE DESCRIPTION
|
||||
* IT8172 system controller defines.
|
||||
*
|
||||
* Copyright 2000 MontaVista Software Inc.
|
||||
* Author: MontaVista Software, Inc.
|
||||
* ppopov@mvista.com or source@mvista.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.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
||||
* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
||||
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#ifndef __IT8172__H__
|
||||
#define __IT8172__H__
|
||||
|
||||
#include <asm/addrspace.h>
|
||||
|
||||
#define IT8172_BASE 0x18000000
|
||||
#define IT8172_PCI_IO_BASE 0x14000000
|
||||
#define IT8172_PCI_MEM_BASE 0x10000000
|
||||
|
||||
// System registers offsets from IT8172_BASE
|
||||
#define IT_CMFPCR 0x0
|
||||
#define IT_DSRR 0x2
|
||||
#define IT_PCDCR 0x4
|
||||
#define IT_SPLLCR 0x6
|
||||
#define IT_CIDR 0x10
|
||||
#define IT_CRNR 0x12
|
||||
#define IT_CPUTR 0x14
|
||||
#define IT_CTCR 0x16
|
||||
#define IT_SDPR 0xF0
|
||||
|
||||
// Power management register offset from IT8172_PCI_IO_BASE
|
||||
// Power Management Device Standby Register
|
||||
#define IT_PM_DSR 0x15800
|
||||
|
||||
#define IT_PM_DSR_TMR0SB 0x0001
|
||||
#define IT_PM_DSR_TMR1SB 0x0002
|
||||
#define IT_PM_DSR_CIR0SB 0x0004
|
||||
#define IT_PM_DSR_CIR1SB 0x0008
|
||||
#define IT_PM_DSR_SCR0SB 0x0010
|
||||
#define IT_PM_DSR_SCR1SB 0x0020
|
||||
#define IT_PM_DSR_PPSB 0x0040
|
||||
#define IT_PM_DSR_I2CSB 0x0080
|
||||
#define IT_PM_DSR_UARTSB 0x0100
|
||||
#define IT_PM_DSR_IDESB 0x0200
|
||||
#define IT_PM_DSR_ACSB 0x0400
|
||||
#define IT_PM_DSR_M68KSB 0x0800
|
||||
|
||||
// Power Management PCI Device Software Reset Register
|
||||
#define IT_PM_PCISR 0x15802
|
||||
|
||||
#define IT_PM_PCISR_IDESR 0x0001
|
||||
#define IT_PM_PCISR_CDMASR 0x0002
|
||||
#define IT_PM_PCISR_USBSR 0x0004
|
||||
#define IT_PM_PCISR_DMASR 0x0008
|
||||
#define IT_PM_PCISR_ACSR 0x0010
|
||||
#define IT_PM_PCISR_MEMSR 0x0020
|
||||
#define IT_PM_PCISR_68KSR 0x0040
|
||||
|
||||
|
||||
// PCI Configuration address and data register offsets
|
||||
// from IT8172_BASE
|
||||
#define IT_CONFADDR 0x4000
|
||||
#define IT_BUSNUM_SHF 16
|
||||
#define IT_DEVNUM_SHF 11
|
||||
#define IT_FUNCNUM_SHF 8
|
||||
#define IT_REGNUM_SHF 2
|
||||
|
||||
#define IT_CONFDATA 0x4004
|
||||
|
||||
// PCI configuration header common register offsets
|
||||
#define IT_VID 0x00
|
||||
#define IT_DID 0x02
|
||||
#define IT_PCICMD 0x04
|
||||
#define IT_PCISTS 0x06
|
||||
#define IT_RID 0x08
|
||||
#define IT_CLASSC 0x09
|
||||
#define IT_HEADT 0x0E
|
||||
#define IT_SERIRQC 0x49
|
||||
|
||||
// PCI to Internal/LPC Bus Bridge configuration header register offset
|
||||
#define IT_P2I_BCR 0x4C
|
||||
#define IT_P2I_D0IOSC 0x50
|
||||
#define IT_P2I_D1IOSC 0x54
|
||||
#define IT_P2I_D2IOSC 0x58
|
||||
#define IT_P2I_D3IOSC 0x5C
|
||||
#define IT_P2I_D4IOSC 0x60
|
||||
#define IT_P2I_D5IOSC 0x64
|
||||
#define IT_P2I_D6IOSC 0x68
|
||||
#define IT_P2I_D7IOSC 0x6C
|
||||
#define IT_P2I_D8IOSC 0x70
|
||||
#define IT_P2I_D9IOSC 0x74
|
||||
#define IT_P2I_D10IOSC 0x78
|
||||
#define IT_P2I_D11IOSC 0x7C
|
||||
|
||||
// Memory controller register offsets from IT8172_BASE
|
||||
#define IT_MC_SDRMR 0x1000
|
||||
#define IT_MC_SDRTR 0x1004
|
||||
#define IT_MC_MCR 0x1008
|
||||
#define IT_MC_SDTYPE 0x100C
|
||||
#define IT_MC_WPBA 0x1010
|
||||
#define IT_MC_WPTA 0x1014
|
||||
#define IT_MC_HATR 0x1018
|
||||
#define IT_MC_PCICR 0x101C
|
||||
|
||||
// Flash/ROM control register offsets from IT8172_BASE
|
||||
#define IT_FC_BRCR 0x2000
|
||||
#define IT_FC_FCR 0x2004
|
||||
#define IT_FC_DCR 0x2008
|
||||
|
||||
// M68K interface bridge configuration header register offset
|
||||
#define IT_M68K_MBCSR 0x54
|
||||
#define IT_M68K_TMR 0x58
|
||||
#define IT_M68K_BCR 0x5C
|
||||
#define IT_M68K_BSR 0x5D
|
||||
#define IT_M68K_DTR 0x5F
|
||||
|
||||
// Register offset from IT8172_PCI_IO_BASE
|
||||
// These registers are accessible through 8172 PCI IO window.
|
||||
|
||||
// INTC
|
||||
#define IT_INTC_BASE 0x10000
|
||||
#define IT_INTC_LBDNIRR 0x10000
|
||||
#define IT_INTC_LBDNIMR 0x10002
|
||||
#define IT_INTC_LBDNITR 0x10004
|
||||
#define IT_INTC_LBDNIAR 0x10006
|
||||
#define IT_INTC_LPCNIRR 0x10010
|
||||
#define IT_INTC_LPCNIMR 0x10012
|
||||
#define IT_INTC_LPCNITR 0x10014
|
||||
#define IT_INTC_LPCNIAR 0x10016
|
||||
#define IT_INTC_PDNIRR 0x10020
|
||||
#define IT_INTC_PDNIMR 0x10022
|
||||
#define IT_INTC_PDNITR 0x10024
|
||||
#define IT_INTC_PDNIAR 0x10026
|
||||
#define IT_INTC_UMNIRR 0x10030
|
||||
#define IT_INTC_UMNITR 0x10034
|
||||
#define IT_INTC_UMNIAR 0x10036
|
||||
#define IT_INTC_TYPER 0x107FE
|
||||
|
||||
// IT8172 PCI device number
|
||||
#define IT_C2P_DEVICE 0
|
||||
#define IT_AUDIO_DEVICE 1
|
||||
#define IT_DMAC_DEVICE 1
|
||||
#define IT_CDMAC_DEVICE 1
|
||||
#define IT_USB_DEVICE 1
|
||||
#define IT_P2I_DEVICE 1
|
||||
#define IT_IDE_DEVICE 1
|
||||
#define IT_M68K_DEVICE 1
|
||||
|
||||
// IT8172 PCI function number
|
||||
#define IT_C2P_FUNCION 0
|
||||
#define IT_AUDIO_FUNCTION 0
|
||||
#define IT_DMAC_FUNCTION 1
|
||||
#define IT_CDMAC_FUNCTION 2
|
||||
#define IT_USB_FUNCTION 3
|
||||
#define IT_P2I_FUNCTION 4
|
||||
#define IT_IDE_FUNCTION 5
|
||||
#define IT_M68K_FUNCTION 6
|
||||
|
||||
// IT8172 GPIO
|
||||
#define IT_GPADR 0x13800
|
||||
#define IT_GPBDR 0x13808
|
||||
#define IT_GPCDR 0x13810
|
||||
#define IT_GPACR 0x13802
|
||||
#define IT_GPBCR 0x1380A
|
||||
#define IT_GPCCR 0x13812
|
||||
#define IT_GPAICR 0x13804
|
||||
#define IT_GPBICR 0x1380C
|
||||
#define IT_GPCICR 0x13814
|
||||
#define IT_GPAISR 0x13806
|
||||
#define IT_GPBISR 0x1380E
|
||||
#define IT_GPCISR 0x13816
|
||||
#define IT_GCR 0x13818
|
||||
|
||||
// IT8172 RTC
|
||||
#define IT_RTC_BASE 0x14800
|
||||
#define IT_RTC_CENTURY 0x14808
|
||||
|
||||
#define IT_RTC_RIR0 0x00
|
||||
#define IT_RTC_RTR0 0x01
|
||||
#define IT_RTC_RIR1 0x02
|
||||
#define IT_RTC_RTR1 0x03
|
||||
#define IT_RTC_RIR2 0x04
|
||||
#define IT_RTC_RTR2 0x05
|
||||
#define IT_RTC_RCTR 0x08
|
||||
#define IT_RTC_RA 0x0A
|
||||
#define IT_RTC_RB 0x0B
|
||||
#define IT_RTC_RC 0x0C
|
||||
#define IT_RTC_RD 0x0D
|
||||
|
||||
#define RTC_SEC_INDEX 0x00
|
||||
#define RTC_MIN_INDEX 0x02
|
||||
#define RTC_HOUR_INDEX 0x04
|
||||
#define RTC_DAY_INDEX 0x06
|
||||
#define RTC_DATE_INDEX 0x07
|
||||
#define RTC_MONTH_INDEX 0x08
|
||||
#define RTC_YEAR_INDEX 0x09
|
||||
|
||||
// IT8172 internal device registers
|
||||
#define IT_TIMER_BASE 0x10800
|
||||
#define IT_CIR0_BASE 0x11000
|
||||
#define IT_UART_BASE 0x11800
|
||||
#define IT_SCR0_BASE 0x12000
|
||||
#define IT_SCR1_BASE 0x12800
|
||||
#define IT_PP_BASE 0x13000
|
||||
#define IT_I2C_BASE 0x14000
|
||||
#define IT_CIR1_BASE 0x15000
|
||||
|
||||
// IT8172 Smart Card Reader offsets from IT_SCR*_BASE
|
||||
#define IT_SCR_SFR 0x08
|
||||
#define IT_SCR_SCDR 0x09
|
||||
|
||||
// IT8172 IT_SCR_SFR bit definition & mask
|
||||
#define IT_SCR_SFR_GATE_UART 0x40
|
||||
#define IT_SCR_SFR_GATE_UART_BIT 6
|
||||
#define IT_SCR_SFR_GATE_UART_OFF 0
|
||||
#define IT_SCR_SFR_GATE_UART_ON 1
|
||||
#define IT_SCR_SFR_FET_CHARGE 0x30
|
||||
#define IT_SCR_SFR_FET_CHARGE_BIT 4
|
||||
#define IT_SCR_SFR_FET_CHARGE_3_3_US 3
|
||||
#define IT_SCR_SFR_FET_CHARGE_13_US 2
|
||||
#define IT_SCR_SFR_FET_CHARGE_53_US 1
|
||||
#define IT_SCR_SFR_FET_CHARGE_213_US 0
|
||||
#define IT_SCR_SFR_CARD_FREQ 0x0C
|
||||
#define IT_SCR_SFR_CARD_FREQ_BIT 2
|
||||
#define IT_SCR_SFR_CARD_FREQ_STOP 3
|
||||
#define IT_SCR_SFR_CARD_FREQ_3_5_MHZ 0
|
||||
#define IT_SCR_SFR_CARD_FREQ_7_1_MHZ 2
|
||||
#define IT_SCR_SFR_CARD_FREQ_96_DIV_MHZ 1
|
||||
#define IT_SCR_SFR_FET_ACTIVE 0x02
|
||||
#define IT_SCR_SFR_FET_ACTIVE_BIT 1
|
||||
#define IT_SCR_SFR_FET_ACTIVE_INVERT 0
|
||||
#define IT_SCR_SFR_FET_ACTIVE_NONINVERT 1
|
||||
#define IT_SCR_SFR_ENABLE 0x01
|
||||
#define IT_SCR_SFR_ENABLE_BIT 0
|
||||
#define IT_SCR_SFR_ENABLE_OFF 0
|
||||
#define IT_SCR_SFR_ENABLE_ON 1
|
||||
|
||||
// IT8172 IT_SCR_SCDR bit definition & mask
|
||||
#define IT_SCR_SCDR_RESET_MODE 0x80
|
||||
#define IT_SCR_SCDR_RESET_MODE_BIT 7
|
||||
#define IT_SCR_SCDR_RESET_MODE_ASYNC 0
|
||||
#define IT_SCR_SCDR_RESET_MODE_SYNC 1
|
||||
#define IT_SCR_SCDR_DIVISOR 0x7F
|
||||
#define IT_SCR_SCDR_DIVISOR_BIT 0
|
||||
#define IT_SCR_SCDR_DIVISOR_STOP_VAL_1 0x00
|
||||
#define IT_SCR_SCDR_DIVISOR_STOP_VAL_2 0x01
|
||||
#define IT_SCR_SCDR_DIVISOR_STOP_VAL_3 0x7F
|
||||
|
||||
// IT8172 DMA
|
||||
#define IT_DMAC_BASE 0x16000
|
||||
#define IT_DMAC_BCAR0 0x00
|
||||
#define IT_DMAC_BCAR1 0x04
|
||||
#define IT_DMAC_BCAR2 0x08
|
||||
#define IT_DMAC_BCAR3 0x0C
|
||||
#define IT_DMAC_BCCR0 0x02
|
||||
#define IT_DMAC_BCCR1 0x06
|
||||
#define IT_DMAC_BCCR2 0x0a
|
||||
#define IT_DMAC_BCCR3 0x0e
|
||||
#define IT_DMAC_CR 0x10
|
||||
#define IT_DMAC_SR 0x12
|
||||
#define IT_DMAC_ESR 0x13
|
||||
#define IT_DMAC_RQR 0x14
|
||||
#define IT_DMAC_MR 0x16
|
||||
#define IT_DMAC_EMR 0x17
|
||||
#define IT_DMAC_MKR 0x18
|
||||
#define IT_DMAC_PAR0 0x20
|
||||
#define IT_DMAC_PAR1 0x22
|
||||
#define IT_DMAC_PAR2 0x24
|
||||
#define IT_DMAC_PAR3 0x26
|
||||
|
||||
// IT8172 IDE
|
||||
#define IT_IDE_BASE 0x17800
|
||||
#define IT_IDE_STATUS 0x1F7
|
||||
|
||||
// IT8172 Audio Controller
|
||||
#define IT_AC_BASE 0x17000
|
||||
#define IT_AC_PCMOV 0x00
|
||||
#define IT_AC_FMOV 0x02
|
||||
#define IT_AC_I2SV 0x04
|
||||
#define IT_AC_DRSS 0x06
|
||||
#define IT_AC_PCC 0x08
|
||||
#define IT_AC_PCDL 0x0A
|
||||
#define IT_AC_PCB1STA 0x0C
|
||||
#define IT_AC_PCB2STA 0x10
|
||||
#define IT_AC_CAPCC 0x14
|
||||
#define IT_AC_CAPCDL 0x16
|
||||
#define IT_AC_CAPB1STA 0x18
|
||||
#define IT_AC_CAPB2STA 0x1C
|
||||
#define IT_AC_CODECC 0x22
|
||||
#define IT_AC_I2SMC 0x24
|
||||
#define IT_AC_VS 0x26
|
||||
#define IT_AC_SRCS 0x28
|
||||
#define IT_AC_CIRCP 0x2A
|
||||
#define IT_AC_CIRDP 0x2C
|
||||
#define IT_AC_TM 0x4A
|
||||
#define IT_AC_PFDP 0x4C
|
||||
#define IT_AC_GC 0x54
|
||||
#define IT_AC_IMC 0x56
|
||||
#define IT_AC_ISC 0x5B
|
||||
#define IT_AC_OPL3SR 0x68
|
||||
#define IT_AC_OPL3DWDR 0x69
|
||||
#define IT_AC_OPL3AB1W 0x6A
|
||||
#define IT_AC_OPL3DW 0x6B
|
||||
#define IT_AC_BPDC 0x70
|
||||
|
||||
|
||||
// IT8172 Timer
|
||||
#define IT_TIMER_BASE 0x10800
|
||||
#define TIMER_TCVR0 0x00
|
||||
#define TIMER_TRVR0 0x02
|
||||
#define TIMER_TCR0 0x04
|
||||
#define TIMER_TIRR 0x06
|
||||
#define TIMER_TCVR1 0x08
|
||||
#define TIMER_TRVR1 0x0A
|
||||
#define TIMER_TCR1 0x0C
|
||||
#define TIMER_TIDR 0x0E
|
||||
|
||||
|
||||
#define IT_WRITE(ofs, data) *(volatile u32 *)KSEG1ADDR((IT8172_BASE+ofs)) = data
|
||||
#define IT_READ(ofs, data) data = *(volatile u32 *)KSEG1ADDR((IT8172_BASE+ofs))
|
||||
|
||||
#define IT_IO_WRITE(ofs, data) *(volatile u32 *)KSEG1ADDR((IT8172_PCI_IO_BASE+ofs)) = data
|
||||
#define IT_IO_READ(ofs, data) data = *(volatile u32 *)KSEG1ADDR((IT8172_PCI_IO_BASE+ofs))
|
||||
|
||||
#define IT_IO_WRITE16(ofs, data) *(volatile u16 *)KSEG1ADDR((IT8172_PCI_IO_BASE+ofs)) = data
|
||||
#define IT_IO_READ16(ofs, data) data = *(volatile u16 *)KSEG1ADDR((IT8172_PCI_IO_BASE+ofs))
|
||||
|
||||
#endif
|
|
@ -1,140 +0,0 @@
|
|||
/*
|
||||
*
|
||||
* BRIEF MODULE DESCRIPTION
|
||||
* IT8172 Consumer IR port defines.
|
||||
*
|
||||
* Copyright 2001 MontaVista Software Inc.
|
||||
* Author: MontaVista Software, Inc.
|
||||
* ppopov@mvista.com or source@mvista.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.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
||||
* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
||||
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#define NUM_CIR_PORTS 2
|
||||
|
||||
/* Master Control Register */
|
||||
#define CIR_RESET 0x1
|
||||
#define CIR_FIFO_CLEAR 0x2
|
||||
#define CIR_SET_FIFO_TL(x) (((x)&0x3)<<2)
|
||||
#define CIR_ILE 0x10
|
||||
#define CIR_ILSEL 0x20
|
||||
|
||||
/* Interrupt Enable Register */
|
||||
#define CIR_TLDLIE 0x1
|
||||
#define CIR_RDAIE 0x2
|
||||
#define CIR_RFOIE 0x4
|
||||
#define CIR_IEC 0x80
|
||||
|
||||
/* Interrupt Identification Register */
|
||||
#define CIR_TLDLI 0x1
|
||||
#define CIR_RDAI 0x2
|
||||
#define CIR_RFOI 0x4
|
||||
#define CIR_NIP 0x80
|
||||
|
||||
/* Carrier Frequency Register */
|
||||
#define CIR_SET_CF(x) ((x)&0x1f)
|
||||
#define CFQ_38_480 0xB /* 38 KHz low, 480 KHz high */
|
||||
#define CIR_HCFS 0x20
|
||||
#define CIR_SET_HS(x) (((x)&0x1)<<5)
|
||||
|
||||
|
||||
/* Receiver Control Register */
|
||||
#define CIR_SET_RXDCR(x) ((x)&0x7)
|
||||
#define CIR_RXACT 0x8
|
||||
#define CIR_RXEND 0x10
|
||||
#define CIR_RDWOS 0x20
|
||||
#define CIR_SET_RDWOS(x) (((x)&0x1)<<5)
|
||||
#define CIR_RXEN 0x80
|
||||
|
||||
/* Transmitter Control Register */
|
||||
#define CIR_SET_TXMPW(x) ((x)&0x7)
|
||||
#define CIR_SET_TXMPM(x) (((x)&0x3)<<3)
|
||||
#define CIR_TXENDF 0x20
|
||||
#define CIR_TXRLE 0x40
|
||||
|
||||
/* Receiver FIFO Status Register */
|
||||
#define CIR_RXFBC_MASK 0x3f
|
||||
#define CIR_RXFTO 0x80
|
||||
|
||||
/* Wakeup Code Length Register */
|
||||
#define CIR_SET_WCL ((x)&0x3f)
|
||||
#define CIR_WCL_MASK(x) ((x)&0x3f)
|
||||
|
||||
/* Wakeup Power Control/Status Register */
|
||||
#define CIR_BTMON 0x2
|
||||
#define CIR_CIRON 0x4
|
||||
#define CIR_RCRST 0x10
|
||||
#define CIR_WCRST 0x20
|
||||
|
||||
struct cir_port {
|
||||
int port;
|
||||
unsigned short baud_rate;
|
||||
unsigned char fifo_tl;
|
||||
unsigned char cfq;
|
||||
unsigned char hcfs;
|
||||
unsigned char rdwos;
|
||||
unsigned char rxdcr;
|
||||
};
|
||||
|
||||
struct it8172_cir_regs {
|
||||
unsigned char dr; /* data */
|
||||
char pad;
|
||||
unsigned char mstcr; /* master control */
|
||||
char pad1;
|
||||
unsigned char ier; /* interrupt enable */
|
||||
char pad2;
|
||||
unsigned char iir; /* interrupt identification */
|
||||
char pad3;
|
||||
unsigned char cfr; /* carrier frequency */
|
||||
char pad4;
|
||||
unsigned char rcr; /* receiver control */
|
||||
char pad5;
|
||||
unsigned char tcr; /* transmitter control */
|
||||
char pad6;
|
||||
char pad7;
|
||||
char pad8;
|
||||
unsigned char bdlr; /* baud rate divisor low byte */
|
||||
char pad9;
|
||||
unsigned char bdhr; /* baud rate divisor high byte */
|
||||
char pad10;
|
||||
unsigned char tfsr; /* tx fifo byte count */
|
||||
char pad11;
|
||||
unsigned char rfsr; /* rx fifo status */
|
||||
char pad12;
|
||||
unsigned char wcl; /* wakeup code length */
|
||||
char pad13;
|
||||
unsigned char wcr; /* wakeup code read/write */
|
||||
char pad14;
|
||||
unsigned char wps; /* wakeup power control/status */
|
||||
};
|
||||
|
||||
int cir_port_init(struct cir_port *cir);
|
||||
extern void clear_fifo(struct cir_port *cir);
|
||||
extern void enable_receiver(struct cir_port *cir);
|
||||
extern void disable_receiver(struct cir_port *cir);
|
||||
extern void enable_rx_demodulation(struct cir_port *cir);
|
||||
extern void disable_rx_demodulation(struct cir_port *cir);
|
||||
extern void set_rx_active(struct cir_port *cir);
|
||||
extern void int_enable(struct cir_port *cir);
|
||||
extern void rx_int_enable(struct cir_port *cir);
|
||||
extern char get_int_status(struct cir_port *cir);
|
||||
extern int cir_get_rx_count(struct cir_port *cir);
|
||||
extern char cir_read_data(struct cir_port *cir);
|
|
@ -1,38 +0,0 @@
|
|||
/*
|
||||
*
|
||||
* BRIEF MODULE DESCRIPTION
|
||||
* Function prototypes for low level uart routines to
|
||||
* directly access a 16550 uart.
|
||||
*
|
||||
* Copyright 2000 MontaVista Software Inc.
|
||||
* Author: MontaVista Software, Inc.
|
||||
* ppopov@mvista.com or source@mvista.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.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
||||
* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
||||
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
extern void putch(const unsigned char c);
|
||||
extern void puts(unsigned char *cp);
|
||||
extern void fputs(unsigned char *cp);
|
||||
extern void put64(uint64_t ul);
|
||||
extern void put32(unsigned u);
|
|
@ -1,144 +0,0 @@
|
|||
/*
|
||||
*
|
||||
* BRIEF MODULE DESCRIPTION
|
||||
* ITE 8172 Interrupt Numbering
|
||||
*
|
||||
* Copyright 2000 MontaVista Software Inc.
|
||||
* Author: MontaVista Software, Inc.
|
||||
* ppopov@mvista.com or source@mvista.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.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
||||
* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
||||
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#ifndef _MIPS_ITEINT_H
|
||||
#define _MIPS_ITEINT_H
|
||||
|
||||
/*
|
||||
* Here's the "strategy":
|
||||
* We number the LPC serial irqs from 0 to 15,
|
||||
* the local bus irqs from 16 to 31,
|
||||
* the pci dev register interrupts from 32 to 47,
|
||||
* and the non-maskable ints from 48 to 53.
|
||||
*/
|
||||
|
||||
#define IT8172_LPC_IRQ_BASE 0 /* first LPC int number */
|
||||
#define IT8172_SERIRQ_0 (IT8172_LPC_IRQ_BASE + 0)
|
||||
#define IT8172_SERIRQ_1 (IT8172_LPC_IRQ_BASE + 1)
|
||||
#define IT8172_SERIRQ_2 (IT8172_LPC_IRQ_BASE + 2)
|
||||
#define IT8172_SERIRQ_3 (IT8172_LPC_IRQ_BASE + 3)
|
||||
#define IT8172_SERIRQ_4 (IT8172_LPC_IRQ_BASE + 4)
|
||||
#define IT8172_SERIRQ_5 (IT8172_LPC_IRQ_BASE + 5)
|
||||
#define IT8172_SERIRQ_6 (IT8172_LPC_IRQ_BASE + 6)
|
||||
#define IT8172_SERIRQ_7 (IT8172_LPC_IRQ_BASE + 7)
|
||||
#define IT8172_SERIRQ_8 (IT8172_LPC_IRQ_BASE + 8)
|
||||
#define IT8172_SERIRQ_9 (IT8172_LPC_IRQ_BASE + 9)
|
||||
#define IT8172_SERIRQ_10 (IT8172_LPC_IRQ_BASE + 10)
|
||||
#define IT8172_SERIRQ_11 (IT8172_LPC_IRQ_BASE + 11)
|
||||
#define IT8172_SERIRQ_12 (IT8172_LPC_IRQ_BASE + 12)
|
||||
#define IT8172_SERIRQ_13 (IT8172_LPC_IRQ_BASE + 13)
|
||||
#define IT8172_SERIRQ_14 (IT8172_LPC_IRQ_BASE + 14)
|
||||
#define IT8172_SERIRQ_15 (IT8172_LPC_IRQ_BASE + 15)
|
||||
|
||||
#define IT8172_LB_IRQ_BASE 16 /* first local bus int number */
|
||||
#define IT8172_PPR_IRQ (IT8172_LB_IRQ_BASE + 0) /* parallel port */
|
||||
#define IT8172_TIMER0_IRQ (IT8172_LB_IRQ_BASE + 1)
|
||||
#define IT8172_TIMER1_IRQ (IT8172_LB_IRQ_BASE + 2)
|
||||
#define IT8172_I2C_IRQ (IT8172_LB_IRQ_BASE + 3)
|
||||
#define IT8172_GPIO_IRQ (IT8172_LB_IRQ_BASE + 4)
|
||||
#define IT8172_CIR0_IRQ (IT8172_LB_IRQ_BASE + 5)
|
||||
#define IT8172_CIR1_IRQ (IT8172_LB_IRQ_BASE + 6)
|
||||
#define IT8172_UART_IRQ (IT8172_LB_IRQ_BASE + 7)
|
||||
#define IT8172_SCR0_IRQ (IT8172_LB_IRQ_BASE + 8)
|
||||
#define IT8172_SCR1_IRQ (IT8172_LB_IRQ_BASE + 9)
|
||||
#define IT8172_RTC_IRQ (IT8172_LB_IRQ_BASE + 10)
|
||||
#define IT8172_IOCHK_IRQ (IT8172_LB_IRQ_BASE + 11)
|
||||
/* 12 - 15 reserved */
|
||||
|
||||
/*
|
||||
* Note here that the pci dev registers includes bits for more than
|
||||
* just the pci devices.
|
||||
*/
|
||||
#define IT8172_PCI_DEV_IRQ_BASE 32 /* first pci dev irq */
|
||||
#define IT8172_AC97_IRQ (IT8172_PCI_DEV_IRQ_BASE + 0)
|
||||
#define IT8172_MC68K_IRQ (IT8172_PCI_DEV_IRQ_BASE + 1)
|
||||
#define IT8172_IDE_IRQ (IT8172_PCI_DEV_IRQ_BASE + 2)
|
||||
#define IT8172_USB_IRQ (IT8172_PCI_DEV_IRQ_BASE + 3)
|
||||
#define IT8172_BRIDGE_MASTER_IRQ (IT8172_PCI_DEV_IRQ_BASE + 4)
|
||||
#define IT8172_BRIDGE_TARGET_IRQ (IT8172_PCI_DEV_IRQ_BASE + 5)
|
||||
#define IT8172_PCI_INTA_IRQ (IT8172_PCI_DEV_IRQ_BASE + 6)
|
||||
#define IT8172_PCI_INTB_IRQ (IT8172_PCI_DEV_IRQ_BASE + 7)
|
||||
#define IT8172_PCI_INTC_IRQ (IT8172_PCI_DEV_IRQ_BASE + 8)
|
||||
#define IT8172_PCI_INTD_IRQ (IT8172_PCI_DEV_IRQ_BASE + 9)
|
||||
#define IT8172_S_INTA_IRQ (IT8172_PCI_DEV_IRQ_BASE + 10)
|
||||
#define IT8172_S_INTB_IRQ (IT8172_PCI_DEV_IRQ_BASE + 11)
|
||||
#define IT8172_S_INTC_IRQ (IT8172_PCI_DEV_IRQ_BASE + 12)
|
||||
#define IT8172_S_INTD_IRQ (IT8172_PCI_DEV_IRQ_BASE + 13)
|
||||
#define IT8172_CDMA_IRQ (IT8172_PCI_DEV_IRQ_BASE + 14)
|
||||
#define IT8172_DMA_IRQ (IT8172_PCI_DEV_IRQ_BASE + 15)
|
||||
|
||||
#define IT8172_NMI_IRQ_BASE 48
|
||||
#define IT8172_SER_NMI_IRQ (IT8172_NMI_IRQ_BASE + 0)
|
||||
#define IT8172_PCI_NMI_IRQ (IT8172_NMI_IRQ_BASE + 1)
|
||||
#define IT8172_RTC_NMI_IRQ (IT8172_NMI_IRQ_BASE + 2)
|
||||
#define IT8172_CPUIF_NMI_IRQ (IT8172_NMI_IRQ_BASE + 3)
|
||||
#define IT8172_PMER_NMI_IRQ (IT8172_NMI_IRQ_BASE + 4)
|
||||
#define IT8172_POWER_NMI_IRQ (IT8172_NMI_IRQ_BASE + 5)
|
||||
|
||||
#define IT8172_LAST_IRQ (IT8172_POWER_NMI_IRQ)
|
||||
/* Finally, let's move over here the mips cpu timer interrupt.
|
||||
*/
|
||||
#define MIPS_CPU_TIMER_IRQ (NR_IRQS-1)
|
||||
|
||||
/*
|
||||
* IT8172 Interrupt Controller Registers
|
||||
*/
|
||||
struct it8172_intc_regs {
|
||||
volatile unsigned short lb_req; /* offset 0 */
|
||||
volatile unsigned short lb_mask;
|
||||
volatile unsigned short lb_trigger;
|
||||
volatile unsigned short lb_level;
|
||||
unsigned char pad0[8];
|
||||
|
||||
volatile unsigned short lpc_req; /* offset 0x10 */
|
||||
volatile unsigned short lpc_mask;
|
||||
volatile unsigned short lpc_trigger;
|
||||
volatile unsigned short lpc_level;
|
||||
unsigned char pad1[8];
|
||||
|
||||
volatile unsigned short pci_req; /* offset 0x20 */
|
||||
volatile unsigned short pci_mask;
|
||||
volatile unsigned short pci_trigger;
|
||||
volatile unsigned short pci_level;
|
||||
unsigned char pad2[8];
|
||||
|
||||
volatile unsigned short nmi_req; /* offset 0x30 */
|
||||
volatile unsigned short nmi_mask;
|
||||
volatile unsigned short nmi_trigger;
|
||||
volatile unsigned short nmi_level;
|
||||
unsigned char pad3[6];
|
||||
|
||||
volatile unsigned short nmi_redir; /* offset 0x3E */
|
||||
unsigned char pad4[0xBE];
|
||||
|
||||
volatile unsigned short intstatus; /* offset 0xFE */
|
||||
};
|
||||
|
||||
#endif /* _MIPS_ITEINT_H */
|
|
@ -1,108 +0,0 @@
|
|||
/*
|
||||
*
|
||||
* BRIEF MODULE DESCRIPTION
|
||||
* IT8172 system controller specific pci defines.
|
||||
*
|
||||
* Copyright 2000 MontaVista Software Inc.
|
||||
* Author: MontaVista Software, Inc.
|
||||
* ppopov@mvista.com or source@mvista.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.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
||||
* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
||||
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#ifndef _8172PCI_H_
|
||||
#define _8172PCI_H_
|
||||
|
||||
// PCI configuration space Type0
|
||||
#define PCI_IDREG 0x00
|
||||
#define PCI_CMDSTSREG 0x04
|
||||
#define PCI_CLASSREG 0x08
|
||||
#define PCI_BHLCREG 0x0C
|
||||
#define PCI_BASE1REG 0x10
|
||||
#define PCI_BASE2REG 0x14
|
||||
#define PCI_BASE3REG 0x18
|
||||
#define PCI_BASE4REG 0x1C
|
||||
#define PCI_BASE5REG 0x20
|
||||
#define PCI_BASE6REG 0x24
|
||||
#define PCI_ROMBASEREG 0x30
|
||||
#define PCI_INTRREG 0x3C
|
||||
|
||||
// PCI configuration space Type1
|
||||
#define PCI_BUSNOREG 0x18
|
||||
|
||||
#define IT_PCI_VENDORID(x) ((x) & 0xFFFF)
|
||||
#define IT_PCI_DEVICEID(x) (((x)>>16) & 0xFFFF)
|
||||
|
||||
// Command register
|
||||
#define PCI_CMD_IOEN 0x00000001
|
||||
#define PCI_CMD_MEMEN 0x00000002
|
||||
#define PCI_CMD_BUSMASTER 0x00000004
|
||||
#define PCI_CMD_SPCYCLE 0x00000008
|
||||
#define PCI_CMD_WRINV 0x00000010
|
||||
#define PCI_CMD_VGASNOOP 0x00000020
|
||||
#define PCI_CMD_PERR 0x00000040
|
||||
#define PCI_CMD_WAITCTRL 0x00000080
|
||||
#define PCI_CMD_SERR 0x00000100
|
||||
#define PCI_CMD_FAST_BACKTOBACK 0x00000200
|
||||
|
||||
// Status register
|
||||
#define PCI_STS_66MHZ 0x00200000
|
||||
#define PCI_STS_SUPPORT_UDF 0x00400000
|
||||
#define PCI_STS_FAST_BACKTOBACK 0x00800000
|
||||
#define PCI_STS_DATA_PERR 0x01000000
|
||||
#define PCI_STS_DEVSEL0 0x02000000
|
||||
#define PCI_STS_DEVSEL1 0x04000000
|
||||
#define PCI_STS_SIG_TGTABORT 0x08000000
|
||||
#define PCI_STS_RCV_TGTABORT 0x10000000
|
||||
#define PCI_STS_RCV_MSTABORT 0x20000000
|
||||
#define PCI_STS_SYSERR 0x40000000
|
||||
#define PCI_STS_DETCT_PERR 0x80000000
|
||||
|
||||
#define IT_PCI_CLASS(x) (((x)>>24) & 0xFF)
|
||||
#define IT_PCI_SUBCLASS(x) (((x)>>16) & 0xFF)
|
||||
#define IT_PCI_INTERFACE(x) (((x)>>8) & 0xFF)
|
||||
#define IT_PCI_REVISION(x) ((x) & 0xFF)
|
||||
|
||||
// PCI class code
|
||||
#define PCI_CLASS_BRIDGE 0x06
|
||||
|
||||
// bridge subclass
|
||||
#define PCI_SUBCLASS_BRIDGE_HOST 0x00
|
||||
#define PCI_SUBCLASS_BRIDGE_PCI 0x04
|
||||
|
||||
// BHLCREG
|
||||
#define IT_PCI_BIST(x) (((x)>>24) & 0xFF)
|
||||
#define IT_PCI_HEADERTYPE(x) (((x)>>16) & 0xFF)
|
||||
#define IT_PCI_LATENCYTIMER(x) (((x)>>8) & 0xFF)
|
||||
#define IT_PCI_CACHELINESIZE(x) ((x) & 0xFF)
|
||||
|
||||
#define PCI_MULTIFUNC 0x80
|
||||
|
||||
// INTRREG
|
||||
#define IT_PCI_MAXLAT(x) (((x)>>24) & 0xFF)
|
||||
#define IT_PCI_MINGNT(x) (((x)>>16) & 0xFF)
|
||||
#define IT_PCI_INTRPIN(x) (((x)>>8) & 0xFF)
|
||||
#define IT_PCI_INTRLINE(x) ((x) & 0xFF)
|
||||
|
||||
#define PCI_VENDOR_NEC 0x1033
|
||||
#define PCI_VENDOR_DEC 0x1101
|
||||
|
||||
#endif // _8172PCI_H_
|
|
@ -1,28 +0,0 @@
|
|||
|
||||
#ifndef __IT8712_H__
|
||||
#define __IT8712_H__
|
||||
|
||||
#define LPC_BASE_ADDR 0x14000000
|
||||
|
||||
// MB PnP configuration register
|
||||
#define LPC_KEY_ADDR 0x1400002E
|
||||
#define LPC_DATA_ADDR 0x1400002F
|
||||
|
||||
// Device LDN
|
||||
#define LDN_SERIAL1 0x01
|
||||
#define LDN_SERIAL2 0x02
|
||||
#define LDN_PARALLEL 0x03
|
||||
#define LDN_KEYBOARD 0x05
|
||||
#define LDN_MOUSE 0x06
|
||||
|
||||
#define IT8712_UART1_PORT 0x3F8
|
||||
#define IT8712_UART2_PORT 0x2F8
|
||||
|
||||
#ifndef ASM_ONLY
|
||||
|
||||
void LPCSetConfig(char LdnNumber, char Index, char data);
|
||||
char LPCGetConfig(char LdnNumber, char Index);
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
|
@ -69,38 +69,6 @@
|
|||
#define EV64120_SERIAL_PORT_DEFNS
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_MIPS_ITE8172
|
||||
#include <asm/it8172/it8172.h>
|
||||
#include <asm/it8172/it8172_int.h>
|
||||
#include <asm/it8712.h>
|
||||
#define ITE_SERIAL_PORT_DEFNS \
|
||||
{ .baud_base = BASE_BAUD, .port = (IT8172_PCI_IO_BASE + IT_UART_BASE), \
|
||||
.irq = IT8172_UART_IRQ, .flags = STD_COM_FLAGS, .port = PORT_16550 }, \
|
||||
{ .baud_base = (24000000/(16*13)), .port = (IT8172_PCI_IO_BASE + IT8712_UART1_PORT), \
|
||||
.irq = IT8172_SERIRQ_4, .flags = STD_COM_FLAGS, .port = PORT_16550 }, \
|
||||
/* Smart Card Reader 0 */ \
|
||||
{ .baud_base = BASE_BAUD, .port = (IT8172_PCI_IO_BASE + IT_SCR0_BASE), \
|
||||
.irq = IT8172_SCR0_IRQ, .flags = STD_COM_FLAGS, .port = PORT_16550 }, \
|
||||
/* Smart Card Reader 1 */ \
|
||||
{ .baud_base = BASE_BAUD, .port = (IT8172_PCI_IO_BASE + IT_SCR1_BASE), \
|
||||
.irq = IT8172_SCR1_IRQ, .flags = STD_COM_FLAGS, .port = PORT_16550 },
|
||||
#else
|
||||
#define ITE_SERIAL_PORT_DEFNS
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_MIPS_IVR
|
||||
#include <asm/it8172/it8172.h>
|
||||
#include <asm/it8172/it8172_int.h>
|
||||
#define IVR_SERIAL_PORT_DEFNS \
|
||||
{ .baud_base = BASE_BAUD, .port = (IT8172_PCI_IO_BASE + IT_UART_BASE), \
|
||||
.irq = IT8172_UART_IRQ, .flags = STD_COM_FLAGS, .port = PORT_16550 }, \
|
||||
/* Smart Card Reader 1 */ \
|
||||
{ .baud_base = BASE_BAUD, .port = (IT8172_PCI_IO_BASE + IT_SCR1_BASE), \
|
||||
.irq = IT8172_SCR1_IRQ, .flags = STD_COM_FLAGS, .port = PORT_16550 },
|
||||
#else
|
||||
#define IVR_SERIAL_PORT_DEFNS
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_HAVE_STD_PC_SERIAL_PORT
|
||||
#define STD_SERIAL_PORT_DEFNS \
|
||||
/* UART CLK PORT IRQ FLAGS */ \
|
||||
|
@ -240,8 +208,6 @@
|
|||
DDB5477_SERIAL_PORT_DEFNS \
|
||||
EV64120_SERIAL_PORT_DEFNS \
|
||||
IP32_SERIAL_PORT_DEFNS \
|
||||
ITE_SERIAL_PORT_DEFNS \
|
||||
IVR_SERIAL_PORT_DEFNS \
|
||||
JAZZ_SERIAL_PORT_DEFNS \
|
||||
STD_SERIAL_PORT_DEFNS \
|
||||
MOMENCO_OCELOT_G_SERIAL_PORT_DEFNS \
|
||||
|
|
|
@ -1,66 +0,0 @@
|
|||
/*
|
||||
* FILE NAME ite_gpio.h
|
||||
*
|
||||
* BRIEF MODULE DESCRIPTION
|
||||
* Generic gpio.
|
||||
*
|
||||
* Author: MontaVista Software, Inc. <source@mvista.com>
|
||||
* Hai-Pao Fan <haipao@mvista.com>
|
||||
*
|
||||
* Copyright 2001 MontaVista Software Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation; either version 2 of the License, or (at your
|
||||
* option) any later version.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
||||
* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
||||
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#ifndef __ITE_GPIO_H
|
||||
#define __ITE_GPIO_H
|
||||
|
||||
#include <linux/ioctl.h>
|
||||
|
||||
struct ite_gpio_ioctl_data {
|
||||
__u32 device;
|
||||
__u32 mask;
|
||||
__u32 data;
|
||||
};
|
||||
|
||||
#define ITE_GPIO_IOCTL_BASE 'Z'
|
||||
|
||||
#define ITE_GPIO_IN _IOWR(ITE_GPIO_IOCTL_BASE, 0, struct ite_gpio_ioctl_data)
|
||||
#define ITE_GPIO_OUT _IOW (ITE_GPIO_IOCTL_BASE, 1, struct ite_gpio_ioctl_data)
|
||||
#define ITE_GPIO_INT_CTRL _IOW (ITE_GPIO_IOCTL_BASE, 2, struct ite_gpio_ioctl_data)
|
||||
#define ITE_GPIO_IN_STATUS _IOW (ITE_GPIO_IOCTL_BASE, 3, struct ite_gpio_ioctl_data)
|
||||
#define ITE_GPIO_OUT_STATUS _IOW (ITE_GPIO_IOCTL_BASE, 4, struct ite_gpio_ioctl_data)
|
||||
#define ITE_GPIO_GEN_CTRL _IOW (ITE_GPIO_IOCTL_BASE, 5, struct ite_gpio_ioctl_data)
|
||||
#define ITE_GPIO_INT_WAIT _IOW (ITE_GPIO_IOCTL_BASE, 6, struct ite_gpio_ioctl_data)
|
||||
|
||||
#define ITE_GPIO_PORTA 0x01
|
||||
#define ITE_GPIO_PORTB 0x02
|
||||
#define ITE_GPIO_PORTC 0x04
|
||||
|
||||
extern int ite_gpio_in(__u32 device, __u32 mask, volatile __u32 *data);
|
||||
extern int ite_gpio_out(__u32 device, __u32 mask, __u32 data);
|
||||
extern int ite_gpio_int_ctrl(__u32 device, __u32 mask, __u32 data);
|
||||
extern int ite_gpio_in_status(__u32 device, __u32 mask, volatile __u32 *data);
|
||||
extern int ite_gpio_out_status(__u32 device, __u32 mask, __u32 data);
|
||||
extern int ite_gpio_gen_ctrl(__u32 device, __u32 mask, __u32 data);
|
||||
extern int ite_gpio_int_wait(__u32 device, __u32 mask, __u32 data);
|
||||
|
||||
#endif
|
|
@ -1615,8 +1615,6 @@
|
|||
#define PCI_VENDOR_ID_ROCKWELL 0x127A
|
||||
|
||||
#define PCI_VENDOR_ID_ITE 0x1283
|
||||
#define PCI_DEVICE_ID_ITE_IT8172G 0x8172
|
||||
#define PCI_DEVICE_ID_ITE_IT8172G_AUDIO 0x0801
|
||||
#define PCI_DEVICE_ID_ITE_8211 0x8211
|
||||
#define PCI_DEVICE_ID_ITE_8212 0x8212
|
||||
#define PCI_DEVICE_ID_ITE_8872 0x8872
|
||||
|
|
|
@ -115,10 +115,6 @@ config SOUND_HAL2
|
|||
Say Y or M if you have an SGI Indy or Indigo2 system and want to be able to
|
||||
use its on-board A2 audio system.
|
||||
|
||||
config SOUND_IT8172
|
||||
tristate "IT8172G Sound"
|
||||
depends on SOUND_PRIME && (MIPS_ITE8172 || MIPS_IVR)
|
||||
|
||||
config SOUND_VRC5477
|
||||
tristate "NEC Vrc5477 AC97 sound"
|
||||
depends on SOUND_PRIME && DDB5477
|
||||
|
|
|
@ -77,7 +77,6 @@ obj-$(CONFIG_SOUND_BCM_CS4297A) += swarm_cs4297a.o
|
|||
obj-$(CONFIG_SOUND_RME96XX) += rme96xx.o
|
||||
obj-$(CONFIG_SOUND_BT878) += btaudio.o
|
||||
obj-$(CONFIG_SOUND_ALI5455) += ali5455.o ac97_codec.o
|
||||
obj-$(CONFIG_SOUND_IT8172) += ite8172.o ac97_codec.o
|
||||
obj-$(CONFIG_SOUND_FORTE) += forte.o ac97_codec.o
|
||||
|
||||
obj-$(CONFIG_SOUND_AD1980) += ac97_plugin_ad1980.o ac97_codec.o
|
||||
|
|
2261
sound/oss/ite8172.c
2261
sound/oss/ite8172.c
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Загрузка…
Ссылка в новой задаче