Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Added Sharp W-ZERO3 series support.



details:   https://anonhg.NetBSD.org/src/rev/3a6a3cf80dfc
branches:  trunk
changeset: 754035:3a6a3cf80dfc
user:      nonaka <nonaka%NetBSD.org@localhost>
date:      Sat Apr 17 13:36:21 2010 +0000

description:
Added Sharp W-ZERO3 series support.

diffstat:

 distrib/hpcarm/instkernel/Makefile          |    5 +-
 etc/etc.hpcarm/MAKEDEV.conf                 |    4 +-
 etc/etc.hpcarm/Makefile.inc                 |    6 +-
 sys/arch/hpcarm/conf/INSTALL_WZERO3         |   13 +
 sys/arch/hpcarm/conf/IPAQ                   |    4 +-
 sys/arch/hpcarm/conf/JORNADA720             |    6 +-
 sys/arch/hpcarm/conf/JORNADA820             |    6 +-
 sys/arch/hpcarm/conf/WZERO3                 |  266 ++++++++
 sys/arch/hpcarm/conf/files.hpcarm           |   97 +--
 sys/arch/hpcarm/conf/files.pxa2x0           |   31 +
 sys/arch/hpcarm/conf/files.sa11x0           |   90 ++
 sys/arch/hpcarm/conf/std.pxa2x0             |   12 +
 sys/arch/hpcarm/conf/std.sa11x0             |   10 +
 sys/arch/hpcarm/dev/wzero3_kbd.c            |  747 ++++++++++++++++++++++++
 sys/arch/hpcarm/dev/wzero3_lcd.c            |  470 +++++++++++++++
 sys/arch/hpcarm/dev/wzero3_mci.c            |  264 ++++++++
 sys/arch/hpcarm/dev/wzero3_reg.h            |   96 +++
 sys/arch/hpcarm/dev/wzero3_usb.c            |  228 +++++++
 sys/arch/hpcarm/hpcarm/autoconf.c           |   11 +-
 sys/arch/hpcarm/hpcarm/hpc_machdep.c        |  606 +-------------------
 sys/arch/hpcarm/hpcarm/intr.c               |    7 +-
 sys/arch/hpcarm/hpcarm/locore.S             |  106 +++-
 sys/arch/hpcarm/hpcarm/pxa2x0_hpc_machdep.c |  866 ++++++++++++++++++++++++++++
 sys/arch/hpcarm/hpcarm/sa11x0_hpc_machdep.c |  694 ++++++++++++++++++++++
 sys/arch/hpcarm/include/intr.h              |  107 +++-
 sys/dev/hpc/hpckbdkeymap.h                  |  189 ++++++-
 sys/dev/rasops/rasops.c                     |  194 +++++-
 sys/dev/rasops/rasops.h                     |    5 +-
 sys/dev/wsfont/wsfont.c                     |   97 ++-
 sys/dev/wsfont/wsfont.h                     |   10 +-
 30 files changed, 4493 insertions(+), 754 deletions(-)

diffs (truncated from 5824 to 300 lines):

diff -r d25ec9dc9258 -r 3a6a3cf80dfc distrib/hpcarm/instkernel/Makefile
--- a/distrib/hpcarm/instkernel/Makefile        Sat Apr 17 13:13:45 2010 +0000
+++ b/distrib/hpcarm/instkernel/Makefile        Sat Apr 17 13:36:21 2010 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.1 2008/04/27 02:39:04 tsutsui Exp $
+#      $NetBSD: Makefile,v 1.2 2010/04/17 13:36:22 nonaka Exp $
 
 .include <bsd.own.mk>
 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
@@ -8,7 +8,8 @@
 MINIROOTOBJ!=  cd ${DISTRIBDIR}/miniroot && ${PRINTOBJDIR}
 MINIROOT=      ${MINIROOTOBJ}/miniroot.fs
 
-MDSETTARGETS=          INSTALL_IPAQ    ${MINIROOT}     netbsd-IPAQ
+MDSETTARGETS=          INSTALL_IPAQ    ${MINIROOT}     netbsd-IPAQ \
+                       INSTALL_WZERO3  ${MINIROOT}     netbsd-WZERO3
 MDSET_RELEASEDIR=      installation
 
 .include "${DISTRIBDIR}/common/Makefile.mdset"
diff -r d25ec9dc9258 -r 3a6a3cf80dfc etc/etc.hpcarm/MAKEDEV.conf
--- a/etc/etc.hpcarm/MAKEDEV.conf       Sat Apr 17 13:13:45 2010 +0000
+++ b/etc/etc.hpcarm/MAKEDEV.conf       Sat Apr 17 13:36:21 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: MAKEDEV.conf,v 1.8 2008/09/13 11:46:18 tsutsui Exp $
+# $NetBSD: MAKEDEV.conf,v 1.9 2010/04/17 13:36:21 nonaka Exp $
 
 all_md)
        makedev wscons std_hpcarm fd0 fd1 wd0 wd1 wd2 wd3 sd0 sd1 sd2 sd3
@@ -13,6 +13,7 @@
        makedev ses0 ses1 ses2 ses3
        makedev apm
        makedev cfs
+       makedev ld0
        ;;
 
 std_hpcarm)
@@ -27,4 +28,5 @@
        makedev std std_hpcarm fd0 fd1 wd0 wd1 wd2 wd3 md0 md1 sd0 sd1 sd2 sd3
        makedev tty0 tty1 opty ttyv0
        makedev st0 st1 cd0 cd1
+       makedev ld0
        ;;
diff -r d25ec9dc9258 -r 3a6a3cf80dfc etc/etc.hpcarm/Makefile.inc
--- a/etc/etc.hpcarm/Makefile.inc       Sat Apr 17 13:13:45 2010 +0000
+++ b/etc/etc.hpcarm/Makefile.inc       Sat Apr 17 13:36:21 2010 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.8 2008/09/19 17:38:43 tsutsui Exp $
+#      $NetBSD: Makefile.inc,v 1.9 2010/04/17 13:36:21 nonaka Exp $
 #
 #      etc.hpcarm/Makefile.inc -- hpcarm-specific etc Makefile targets
 #
@@ -6,9 +6,9 @@
 # If you change the list of distributed kernels, don't forget
 # to update the release documentation in distrib/notes/common/contents
 
-KERNEL_SETS=           IPAQ JORNADA720
+KERNEL_SETS=           IPAQ JORNADA720 WZERO3
 
-BUILD_KERNELS=         INSTALL_IPAQ
+BUILD_KERNELS=         INSTALL_IPAQ INSTALL_WZERO3
 
 INSTALLATION_DIRS+=    installation/miniroot
 
diff -r d25ec9dc9258 -r 3a6a3cf80dfc sys/arch/hpcarm/conf/INSTALL_WZERO3
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/hpcarm/conf/INSTALL_WZERO3       Sat Apr 17 13:36:21 2010 +0000
@@ -0,0 +1,13 @@
+#
+# kernel config file for system install
+#
+#      $NetBSD: INSTALL_WZERO3,v 1.1 2010/04/17 13:36:21 nonaka Exp $
+#
+
+include                "arch/hpcarm/conf/WZERO3"
+
+# Enable the hooks used for initializing the root memory-disk.
+options        MEMORY_DISK_HOOKS
+options        MEMORY_DISK_IS_ROOT     # force root on memory disk
+options        MEMORY_DISK_SERVER=0    # no userspace memory disk support
+options        MEMORY_DISK_ROOT_SIZE=8704      # size of memory disk, in blocks
diff -r d25ec9dc9258 -r 3a6a3cf80dfc sys/arch/hpcarm/conf/IPAQ
--- a/sys/arch/hpcarm/conf/IPAQ Sat Apr 17 13:13:45 2010 +0000
+++ b/sys/arch/hpcarm/conf/IPAQ Sat Apr 17 13:36:21 2010 +0000
@@ -1,9 +1,9 @@
-#      $NetBSD: IPAQ,v 1.59 2010/04/16 13:48:31 pooka Exp $
+#      $NetBSD: IPAQ,v 1.60 2010/04/17 13:36:21 nonaka Exp $
 #
 #      iPAQ H3600 -- Windows-CE based PDA
 #
 
-include        "arch/hpcarm/conf/std.hpcarm"
+include        "arch/hpcarm/conf/std.sa11x0"
 
 #options       INCLUDE_CONFIG_FILE     # embed config file in kernel binary
 
diff -r d25ec9dc9258 -r 3a6a3cf80dfc sys/arch/hpcarm/conf/JORNADA720
--- a/sys/arch/hpcarm/conf/JORNADA720   Sat Apr 17 13:13:45 2010 +0000
+++ b/sys/arch/hpcarm/conf/JORNADA720   Sat Apr 17 13:36:21 2010 +0000
@@ -1,13 +1,13 @@
-#      $NetBSD: JORNADA720,v 1.76 2010/04/16 13:48:31 pooka Exp $
+#      $NetBSD: JORNADA720,v 1.77 2010/04/17 13:36:21 nonaka Exp $
 #
 #      JORNADA -- Windows-CE based jornada 720
 #
 
-include        "arch/hpcarm/conf/std.hpcarm"
+include        "arch/hpcarm/conf/std.sa11x0"
 
 #options       INCLUDE_CONFIG_FILE     # embed config file in kernel binary
 
-#ident                 "GENERIC-$Revision: 1.76 $"
+#ident                 "GENERIC-$Revision: 1.77 $"
 
 # estimated number of users
 maxusers       32
diff -r d25ec9dc9258 -r 3a6a3cf80dfc sys/arch/hpcarm/conf/JORNADA820
--- a/sys/arch/hpcarm/conf/JORNADA820   Sat Apr 17 13:13:45 2010 +0000
+++ b/sys/arch/hpcarm/conf/JORNADA820   Sat Apr 17 13:36:21 2010 +0000
@@ -1,13 +1,13 @@
-#      $NetBSD: JORNADA820,v 1.17 2010/04/16 13:48:31 pooka Exp $
+#      $NetBSD: JORNADA820,v 1.18 2010/04/17 13:36:21 nonaka Exp $
 #
 #      JORNADA -- Windows-CE based jornada 820
 #
 
-include        "arch/hpcarm/conf/std.hpcarm"
+include        "arch/hpcarm/conf/std.sa11x0"
 
 #options       INCLUDE_CONFIG_FILE     # embed config file in kernel binary
 
-#ident                 "GENERIC-$Revision: 1.17 $"
+#ident                 "GENERIC-$Revision: 1.18 $"
 
 # estimated number of users
 maxusers       32
diff -r d25ec9dc9258 -r 3a6a3cf80dfc sys/arch/hpcarm/conf/WZERO3
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/hpcarm/conf/WZERO3       Sat Apr 17 13:36:21 2010 +0000
@@ -0,0 +1,266 @@
+#      $NetBSD: WZERO3,v 1.1 2010/04/17 13:36:21 nonaka Exp $
+#
+#      WZERO3 -- Sharp Windows Mobile 5 based PDA
+#
+
+include        "arch/hpcarm/conf/std.pxa2x0"
+
+#options       INCLUDE_CONFIG_FILE     # embed config file in kernel binary
+
+#ident                 "GENERIC-$Revision: 1.1 $"
+
+# memory size
+options        DRAM_PAGES="16384"      # 4Ki * 16384page = 64MiB
+#options       DRAM_PAGES="32768"      # 4Ki * 32768page = 128MiB (WS011SH)
+
+# estimated number of users
+maxusers       32
+
+# Standard system options
+
+options        RTC_OFFSET=0    # hardware clock is this many mins. west of GMT
+#options       NTP             # NTP phase/frequency locked loop
+
+# CPU options
+
+# For XScale systems
+options        CPU_XSCALE_PXA270       # Support the XScale PXA27x core
+makeoptions    CPUFLAGS="-mcpu=xscale"
+
+# Architecture options
+options        XSCALE_CACHE_READ_WRITE_ALLOCATE
+options        PXAGPIO_HAS_GPION_INTRS
+
+# File systems
+
+file-system    FFS             # UFS
+#file-system   LFS             # log-structured file system
+#file-system   MFS             # memory file system
+file-system    NFS             # Network file system
+#file-system   ADOSFS          # AmigaDOS-compatible file system
+file-system    EXT2FS          # second extended file system (linux)
+file-system    CD9660          # ISO 9660 + Rock Ridge file system
+file-system    MSDOSFS         # MS-DOS file system
+file-system    FDESC           # /dev/fd
+file-system    KERNFS          # /kern
+file-system    NULLFS          # loopback file system
+#file-system   OVERLAY         # overlay filesystem
+file-system    PROCFS          # /proc
+#file-system   UMAPFS          # NULLFS + uid and gid remapping
+file-system    UNION           # union file system
+file-system    PTYFS           # /dev/pts/N support
+file-system    TMPFS           # Efficient memory file-system
+#file-system   UDF             # experimental - OSTA UDF CD/DVD file-system
+
+# File system options
+#options       QUOTA           # UFS quotas
+#options       FFS_EI          # FFS Endian Independant support
+options        WAPBL           # File system journaling support - Experimental
+#options       FFS_NO_SNAPSHOT # No FFS snapshot support
+#options       NFSSERVER
+
+# Networking options
+
+#options       GATEWAY         # packet forwarding
+options        INET            # IP + ICMP + TCP + UDP
+options        INET6           # IPV6
+#options       IPSEC           # IP security
+#options       IPSEC_ESP       # IP security (encryption part; define w/IPSEC)
+#options       IPSEC_NAT_T     # IPsec NAT traversal (NAT-T)
+#options       IPSEC_DEBUG     # debug for IP security
+#options       MROUTING        # IP multicast routing
+#options       PIM             # Protocol Independent Multicast
+#options       ISO,TPIP        # OSI
+#options       EON             # OSI tunneling over IP
+#options       NETATALK        # AppleTalk networking
+#options       PFIL_HOOKS      # pfil(9) packet filter hooks
+#options       PPP_BSDCOMP     # BSD-Compress compression support for PPP
+#options       PPP_DEFLATE     # Deflate compression support for PPP
+#options       PPP_FILTER      # Active filter support for PPP (requires bpf)
+#options       TCP_DEBUG       # Record last TCP_NDEBUG packets with SO_DEBUG
+
+# Compatibility options
+
+#options       COMPAT_43       # 4.3BSD compatibility.
+options        COMPAT_50       # NetBSD 5.0 compatibility.
+options        COMPAT_40       # NetBSD 4.0 compatibility.
+options        COMPAT_30       # NetBSD 3.0 compatibility.
+options        COMPAT_20       # NetBSD 2.0 compatibility.
+#options       COMPAT_16       # NetBSD 1.6 compatibility.
+#options       COMPAT_15       # NetBSD 1.5 compatibility.
+#options       COMPAT_14       # NetBSD 1.4 compatibility.
+#options       COMPAT_13       # NetBSD 1.3 compatibility.
+#options       COMPAT_12       # NetBSD 1.2 compatibility.
+#options       COMPAT_11       # NetBSD 1.1 compatibility.
+#options       COMPAT_10       # NetBSD 1.0 compatibility.
+#options       COMPAT_09       # NetBSD 0.9 compatibility.
+#options       TCP_COMPAT_42   # 4.2BSD TCP/IP bug compat. Not recommended.
+options                COMPAT_BSDPTY   # /dev/[pt]ty?? ptys.
+
+# Shared memory options
+
+options        SYSVMSG         # System V-like message queues
+options        SYSVSEM         # System V-like semaphores
+options        SYSVSHM         # System V-like memory sharing
+
+
+# Miscellaneous kernel options
+options        KTRACE          # system call tracing, a la ktrace(1)
+#options       IRQSTATS        # manage IRQ statistics
+#options       KMEMSTATS       # kernel memory statistics
+#options       SCSIVERBOSE     # Verbose SCSI errors
+options        USERCONF        # userconf(4) support
+#options       PIPE_SOCKETPAIR # smaller, but slower pipe(2)
+#options       SYSCTL_INCLUDE_DESCR    # Include sysctl descriptions in kernel
+options        NFS_BOOT_DHCP
+
+#
+# wscons options
+#
+# builtin terminal emulations
+options        WSEMUL_VT100
+# allocate a number of virtual screens at autoconfiguration time
+#options       WSDISPLAY_DEFAULTSCREENS=2
+
+# customization of console and kernel output - see dev/wscons/wsdisplayvar.h
+#options       WSDISPLAY_CUSTOM_OUTPUT # color customization from wsconsctl(8)
+#options       WS_DEFAULT_FG=WSCOL_WHITE
+#options       WS_DEFAULT_BG=WSCOL_BLACK
+#options       WS_DEFAULT_COLATTR="(0)"
+#options       WS_DEFAULT_MONOATTR="(0)"
+options        WS_KERNEL_FG=WSCOL_GREEN
+#options       WS_KERNEL_BG=WSCOL_BLACK
+#options       WS_KERNEL_COLATTR=""
+#options       WS_KERNEL_MONOATTR=""
+
+# Development and Debugging options
+
+#options       VERBOSE_INIT_ARM
+#options       BOOT_DUMP       # Enable memorydump at boot
+options        DIAGNOSTIC      # internal consistency checks
+#options       DEBUG           # expensive debugging checks/support
+#options       PMAP_DEBUG      # Enable pmap_debug_level code
+#options       DDB             # in-kernel debugger
+#options       DDB_HISTORY_SIZE=512    # Enable history editing in DDB
+#makeoptions   DEBUG="-g"      # compile full symbol table
+
+config         netbsd  root on ? type ?
+
+# The main bus device
+mainbus0 at root
+
+# The boot CPU
+cpu0 at mainbus?
+
+# integrated peripherals
+pxaip0 at mainbus?
+
+pxaintc0 at pxaip? addr 0x40d00000     # interrupt controller
+pxagpio0 at pxaip? addr 0x40e00000     # GPIO
+pxartc0 at pxaip? addr 0x40900000      # RTC
+



Home | Main Index | Thread Index | Old Index