Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Add support for the Freescale TWR-P1025 evaluation ...
details: https://anonhg.NetBSD.org/src/rev/e17edc16e9a4
branches: trunk
changeset: 780199:e17edc16e9a4
user: matt <matt%NetBSD.org@localhost>
date: Sun Jul 15 08:44:56 2012 +0000
description:
Add support for the Freescale TWR-P1025 evaluation board and the P1025/P1016
QorIQ processors. XXX tsec isn't working yet on the TWR-P1025.
diffstat:
sys/arch/evbppc/conf/INSTALL_TWRP1025 | 10 +
sys/arch/evbppc/conf/INSTALL_TWRP1025.MP | 9 +
sys/arch/evbppc/conf/TWRP1025 | 224 ++++++++++++++++++++++++++++
sys/arch/evbppc/conf/TWRP1025.MP | 9 +
sys/arch/evbppc/conf/files.mpc85xx | 4 +-
sys/arch/evbppc/mpc85xx/machdep.c | 53 ++++--
sys/arch/powerpc/booke/dev/pq3etsec.c | 13 +-
sys/arch/powerpc/booke/dev/pq3gpio.c | 109 +++++++++++++-
sys/arch/powerpc/booke/e500_intr.c | 34 ++++-
sys/arch/powerpc/include/booke/e500reg.h | 34 ++++-
sys/arch/powerpc/include/booke/openpicreg.h | 84 +++++++---
sys/arch/powerpc/include/booke/spr.h | 4 +-
12 files changed, 526 insertions(+), 61 deletions(-)
diffs (truncated from 910 to 300 lines):
diff -r 09b227bba08b -r e17edc16e9a4 sys/arch/evbppc/conf/INSTALL_TWRP1025
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/evbppc/conf/INSTALL_TWRP1025 Sun Jul 15 08:44:56 2012 +0000
@@ -0,0 +1,10 @@
+# $NetBSD: INSTALL_TWRP1025,v 1.1 2012/07/15 08:44:56 matt Exp $
+
+include "arch/evbppc/conf/TWRP1025"
+
+#ident "INSTALL_P2020RDB-$Revision: 1.1 $"
+
+include "arch/evbppc/conf/INSTALL.inc"
+
+no config netbsd-sd0a
+no config nfsnetbsd
diff -r 09b227bba08b -r e17edc16e9a4 sys/arch/evbppc/conf/INSTALL_TWRP1025.MP
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/evbppc/conf/INSTALL_TWRP1025.MP Sun Jul 15 08:44:56 2012 +0000
@@ -0,0 +1,9 @@
+# $NetBSD: INSTALL_TWRP1025.MP,v 1.1 2012/07/15 08:44:56 matt Exp $
+
+include "arch/evbppc/conf/TWRP1205.MP"
+
+#ident "INSTALL_TWRP1205.MP-$Revision: 1.1 $"
+
+include "arch/evbppc/conf/INSTALL.inc"
+
+no config nfsnetbsd
diff -r 09b227bba08b -r e17edc16e9a4 sys/arch/evbppc/conf/TWRP1025
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/evbppc/conf/TWRP1025 Sun Jul 15 08:44:56 2012 +0000
@@ -0,0 +1,224 @@
+# $NetBSD: TWRP1025,v 1.1 2012/07/15 08:44:56 matt Exp $
+#
+# TWRP1025 -- everything that's currently supported
+#
+
+include "arch/evbppc/conf/std.mpc85xx"
+
+options INCLUDE_CONFIG_FILE # embed config file in kernel binary
+
+ident "TWRP1025-$Revision: 1.1 $"
+
+maxusers 32
+
+makeoptions NEED_BINARY="yes"
+makeoptions NEED_UBOOTIMAGE="yes"
+
+#options UVMHIST
+#options UVMHIST_PRINT
+
+options P1025
+options SYS_CLK=66666667
+#options HZ=1000
+
+#options SDHC_DEBUG
+
+#options INSECURE # disable kernel security levels
+#options NTP # NTP phase/frequency locked loop
+options KTRACE # system call tracing via ktrace(1)
+
+options SYSVMSG # System V message queues
+options SYSVSEM # System V semaphores
+options SYSVSHM # System V shared memory
+
+options USERCONF # userconf(4) support
+#options PIPE_SOCKETPAIR # smaller, but slower pipe(2)
+#options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel
+
+# Diagnostic/debugging support options
+options DIAGNOSTIC # cheap kernel consistency checks
+options DEBUG # expensive debugging checks/support
+#options SYSCALL_DEBUG # syscall debugging
+options DDB # in-kernel debugger
+options DDB_HISTORY_SIZE=512 # enable history editing in DDB
+options TRAP_PANICWAIT
+options SYMTAB_SPACE=410000 # size for embedded symbol table
+
+makeoptions DEBUG="-g" # compile full symbol table
+
+# Compatibility options
+#options COMPAT_09 # NetBSD 0.9,
+#options COMPAT_10 # NetBSD 1.0,
+#options COMPAT_11 # NetBSD 1.1,
+#options COMPAT_12 # NetBSD 1.2,
+options COMPAT_13 # NetBSD 1.3,
+options COMPAT_14 # NetBSD 1.4,
+options COMPAT_15 # NetBSD 1.5,
+options COMPAT_16 # NetBSD 1.6,
+options COMPAT_20 # NetBSD 2.0,
+options COMPAT_30 # NetBSD 3.0,
+options COMPAT_40 # NetBSD 4.0,
+options COMPAT_50 # NetBSD 5.0 compatibility.
+options COMPAT_43 # and 4.3BSD
+#options COMPAT_386BSD_MBRPART # recognize old partition ID
+#options TCP_COMPAT_42 # 4.2BSD TCP/IP bug compat. Not recommended.
+options COMPAT_BSDPTY # /dev/[pt]ty?? ptys.
+
+# File systems
+file-system FFS # UFS
+file-system EXT2FS # second extended file system (linux)
+file-system LFS # log-structured file system
+file-system MFS # memory file system
+file-system NFS # Network File System client
+file-system CD9660 # ISO 9660 + Rock Ridge file system
+file-system MSDOSFS # MS-DOS file system
+#file-system FDESC # /dev/fd
+file-system TMPFS # efficient memory file system
+file-system KERNFS # /kern
+file-system NULLFS # loopback file system
+#file-system OVERLAY # overlay file system
+#file-system PUFFS # Userspace file systems (e.g. ntfs-3g & sshfs)
+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 options
+options QUOTA # legacy UFS quotas
+options QUOTA2 # new, in-filesystem UFS quotas
+options FFS_EI # FFS Endian Independent support
+options WAPBL # File system journaling support
+options NFSSERVER # Network File System server
+#options FFS_NO_SNAPSHOT # No FFS snapshot support
+options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
+ # immutable) behave as system flags.
+
+options NFS_BOOT_DHCP # Support DHCP NFS root
+
+# Networking options
+#options GATEWAY # packet forwarding
+options INET # IP + ICMP + TCP + UDP
+options INET_CSUM_COUNTERS
+options TCP_CSUM_COUNTERS
+options UDP_CSUM_COUNTERS
+#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 DIRECTED_BROADCAST # allow broadcasts through routers
+#options ISO,TPIP # OSI
+#options EON # OSI tunneling over IP
+#options NETATALK # AppleTalk networking protocols
+#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 PFIL_HOOKS # pfil(9) packet filter hooks
+#options IPFILTER_LOG # ipmon(8) log support
+#options IPFILTER_LOOKUP # ippool(8) support
+#options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG
+
+# These options enable verbose messages for several subsystems.
+# Warning, these may compile large string tables into the kernel!
+options PCIVERBOSE # verbose PCI device autoconfig messages
+options MIIVERBOSE # verbose PHY autoconfig messages
+#options PCI_CONFIG_DUMP # verbosely dump PCI config space
+options SCSIVERBOSE # human readable SCSI error messages
+#options PCI_NETBSD_CONFIGURE # Do not rely on BIOS/whatever to configure PCI devices
+#options PCI_CONFIGURE_VERBOSE # Show PCI config information
+
+# wscons options
+#options WSEMUL_SUN # sun terminal emulation
+#options WSEMUL_VT100 # VT100 / VT220 emulation
+
+# Kernel root file system and dump configuration.
+config netbsd root on ? type ?
+config netbsd-sd0a root on sd0a type ffs
+config nfsnetbsd root on tsec0 type nfs
+
+#
+# Device configuration
+#
+
+mainbus0 at root # Processor Local Bus
+
+cpunode* at mainbus? node ?
+gpio* at gpiobus?
+
+cpu* at cpunode?
+
+obio0 at cpunode? # On-chip Peripheral Bus
+#nandfcm* at obio0 cs ? # nand flash
+#nand* at nandfcm?
+#flash* at nand?
+
+# NOR Flash
+#options NOR_VERBOSE
+cfi0 at obio0 cs 0
+nor* at cfi?
+flash* at nor? offset 0 size 0x1000000
+
+e500wdog* at cpunode? # Watchdog timer
+
+ddrc* at cpunode?
+duart* at cpunode?
+com* at duart? port ?
+options CONSADDR="DUART1_BASE"
+
+tsec0 at cpunode? flags 0x002 # Enhanced 3-Speed Ethernet Controller
+tsec1 at cpunode? flags 0x103 # Enhanced 3-Speed Ethernet Controller
+ukphy* at mii?
+#options ETSEC_EVENT_COUNTERS
+
+diic* at cpunode? # i2c bus
+iic* at diic?
+#dsrtc* at iic1 addr 0x68 flags 1339 # RTC DS1339
+
+pq3pcie* at cpunode? # PCI-Express controller
+pci* at pq3pcie?
+
+ppb* at pci? dev ? function ? # PCI-PCI bridges
+pci* at ppb?
+
+ahcisata* at pci? dev ? function ?
+atabus* at ahcisata? channel ?
+wd* at atabus? drive ?
+
+ehci* at cpunode? # usb
+usb* at ehci?
+uhub* at usb?
+uhub* at uhub? port ?
+umass* at uhub? port ?
+scsibus* at umass? channel ?
+sd* at scsibus? target ? lun ?
+
+sdhc* at cpunode? # sdmmc
+sdmmc* at sdhc? # SD/MMC bus
+ld* at sdmmc?
+
+#siisata* at pci? dev ? function ?
+#atabus* at siisata? channel ?
+#jmide* at pci? dev ? function ? # JMicron PCI-e PATA/SATA controllers
+#ahcisata* at jmide?
+#atabus* at ahcisata? channel ?
+
+#viaide* at pci? dev ? function ?
+#atabus* at viaide? channel ?
+#wd* at atabus? drive ?
+#rtk* at pci? dev ? function ?
+#wm* at pci? dev ? function ? # Intel Ethernet
+
+#inphy* at mii? phy ? # Intel 82555 PHYs
+#iophy* at mii? phy ? # Intel 82553 PHYs
+#makphy* at mii? phy ? # Marvell PHYs
+#ukphy* at mii? phy ? # generic unknown PHYs
+
+pseudo-device loop # network loopback
+pseudo-device bpfilter # packet filter
+pseudo-device clockctl # user control of clock subsystem
+pseudo-device ksyms # /dev/ksyms
+pseudo-device pty # pseudo-terminals
+pseudo-device kttcp # kernel ttcp
+pseudo-device vlan # 802.1Q VLANs
diff -r 09b227bba08b -r e17edc16e9a4 sys/arch/evbppc/conf/TWRP1025.MP
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/evbppc/conf/TWRP1025.MP Sun Jul 15 08:44:56 2012 +0000
@@ -0,0 +1,9 @@
+# $NetBSD: TWRP1025.MP,v 1.1 2012/07/15 08:44:56 matt Exp $
+#
+# TWRP1025 kernel, plus multiprocessor support.
+
+include "arch/evbppc/conf/TWRP1025"
+
+options MULTIPROCESSOR
+# this option may cause trouble under very high interrupt load
+#options OPENPIC_DISTRIBUTE # let all CPUs serve interrupts
diff -r 09b227bba08b -r e17edc16e9a4 sys/arch/evbppc/conf/files.mpc85xx
--- a/sys/arch/evbppc/conf/files.mpc85xx Sun Jul 15 08:26:21 2012 +0000
+++ b/sys/arch/evbppc/conf/files.mpc85xx Sun Jul 15 08:44:56 2012 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: files.mpc85xx,v 1.8 2012/07/09 17:36:55 matt Exp $
+# $NetBSD: files.mpc85xx,v 1.9 2012/07/15 08:44:56 matt Exp $
#
# mpc85xx-specific configuration info
defflag opt_mpc85xx.h MPC8536 MPC8544 MPC8548 MPC8555 MPC8568 MPC8572
- P2020 CADMUS PIXIS E500_WDOG_STACK
+ P1025 P2020 CADMUS PIXIS E500_WDOG_STACK
defparam opt_mpc85xx.h SYS_CLK MEMSIZE
file arch/evbppc/mpc85xx/autoconf.c
diff -r 09b227bba08b -r e17edc16e9a4 sys/arch/evbppc/mpc85xx/machdep.c
--- a/sys/arch/evbppc/mpc85xx/machdep.c Sun Jul 15 08:26:21 2012 +0000
+++ b/sys/arch/evbppc/mpc85xx/machdep.c Sun Jul 15 08:44:56 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.24 2012/07/07 08:06:51 skrll Exp $ */
+/* $NetBSD: machdep.c,v 1.25 2012/07/15 08:44:56 matt Exp $ */
/*-
* Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -205,12 +205,15 @@
*/
static const struct cpunode_locators mpc8548_cpunode_locs[] = {
{ "cpu", 0, 0, 0, 0, { 0 }, 0, /* not a real device */
- { 0xffff, SVR_MPC8572v1 >> 16, SVR_P2020v2 >> 16 } },
-#if defined(MPC8572) || defined(P2020)
+ { 0xffff, SVR_MPC8572v1 >> 16, SVR_P2020v2 >> 16,
+ SVR_P1025v1 >> 16 } },
Home |
Main Index |
Thread Index |
Old Index