Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Set the N900 kernel on par with the latest improvem...
details: https://anonhg.NetBSD.org/src/rev/ee42c343bbab
branches: trunk
changeset: 785427:ee42c343bbab
user: khorben <khorben%NetBSD.org@localhost>
date: Wed Mar 13 03:08:17 2013 +0000
description:
Set the N900 kernel on par with the latest improvements related to the
BEAGLEBOARD. Tested on a Nokia N900; BEAGLEBOARD still builds.
diffstat:
sys/arch/arm/omap/omap3_i2c.c | 6 +++---
sys/arch/arm/omap/omap3_scm.c | 6 +++---
sys/arch/evbarm/conf/N900 | 41 +++++++++++++++++++++++++++--------------
3 files changed, 33 insertions(+), 20 deletions(-)
diffs (150 lines):
diff -r 5e49ff815f22 -r ee42c343bbab sys/arch/arm/omap/omap3_i2c.c
--- a/sys/arch/arm/omap/omap3_i2c.c Wed Mar 13 03:03:04 2013 +0000
+++ b/sys/arch/arm/omap/omap3_i2c.c Wed Mar 13 03:08:17 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: omap3_i2c.c,v 1.2 2013/01/01 23:20:24 jmcneill Exp $ */
+/* $NetBSD: omap3_i2c.c,v 1.3 2013/03/13 03:08:17 khorben Exp $ */
/*-
* Copyright (c) 2012 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: omap3_i2c.c,v 1.2 2013/01/01 23:20:24 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: omap3_i2c.c,v 1.3 2013/03/13 03:08:17 khorben Exp $");
#include "opt_omap.h"
@@ -99,7 +99,7 @@
{
struct obio_attach_args *obio = opaque;
-#if defined(OMAP_3530)
+#if defined(OMAP_3430) || defined(OMAP_3530)
if (obio->obio_addr == I2C1_BASE_3530 ||
obio->obio_addr == I2C2_BASE_3530 ||
obio->obio_addr == I2C3_BASE_3530)
diff -r 5e49ff815f22 -r ee42c343bbab sys/arch/arm/omap/omap3_scm.c
--- a/sys/arch/arm/omap/omap3_scm.c Wed Mar 13 03:03:04 2013 +0000
+++ b/sys/arch/arm/omap/omap3_scm.c Wed Mar 13 03:08:17 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: omap3_scm.c,v 1.1 2013/01/01 13:05:21 jmcneill Exp $ */
+/* $NetBSD: omap3_scm.c,v 1.2 2013/03/13 03:08:17 khorben Exp $ */
/*-
* Copyright (c) 2013 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: omap3_scm.c,v 1.1 2013/01/01 13:05:21 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: omap3_scm.c,v 1.2 2013/03/13 03:08:17 khorben Exp $");
#include "opt_omap.h"
@@ -50,7 +50,7 @@
#define SCM_OFFSET_INTERFACE_3530 0
#define SCM_OFFSET_GENERAL_3530 0x270
-#if defined(OMAP_3530)
+#if defined(OMAP_3430) || defined(OMAP_3530)
#define SCM_BASE SCM_BASE_3530
#define SCM_SIZE SCM_SIZE_3530
#define SCM_OFFSET_INTERFACE SCM_OFFSET_INTERFACE_3530
diff -r 5e49ff815f22 -r ee42c343bbab sys/arch/evbarm/conf/N900
--- a/sys/arch/evbarm/conf/N900 Wed Mar 13 03:03:04 2013 +0000
+++ b/sys/arch/evbarm/conf/N900 Wed Mar 13 03:08:17 2013 +0000
@@ -1,5 +1,5 @@
#
-# $NetBSD: N900,v 1.6 2013/03/02 02:42:13 christos Exp $
+# $NetBSD: N900,v 1.7 2013/03/13 03:08:18 khorben Exp $
#
# N900 -- Nokia N900 Kernel
#
@@ -17,6 +17,7 @@
# CPU options
+#options UVMHIST,UVMHIST_PRINT
options CPU_CORTEXA8
options OMAP_3430
options PMAPCOUNTERS
@@ -34,9 +35,9 @@
#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 KERNFS # /kern
#file-system NULLFS # loopback file system
-#file-system PROCFS # /proc
+file-system PROCFS # /proc
#file-system PUFFS # Userspace file systems (e.g. ntfs-3g & sshfs)
#file-system UMAPFS # NULLFS + uid and gid remapping
#file-system UNION # union file system
@@ -137,7 +138,7 @@
options DDB_HISTORY_SIZE=100 # Enable history editing in DDB
#options KGDB
makeoptions DEBUG="-g" # compile full symbol table
-options SYMTAB_SPACE=530000
+options SYMTAB_SPACE=800000
## USB Debugging options
options USB_DEBUG
@@ -212,14 +213,20 @@
gpio* at omapgpio?
-# # I2C Controller
-# omapi2c0 at tipb? addr 0xfffb3800 intr 36 mult 4
-# iic* at omapi2c?
-# # omap's own i2c address
-# options OMAP_I2C_ADDRESS=0xe
-# # i2c bus clock low and high times in ns
-# options I2C_LOW_TIME_nSEC=1500
-# options I2C_HIGH_TIME_nSEC=1000
+# System Control Module
+omapscm0 at obio0 addr 0x48002000 size 0x1000
+
+# I2C Controller
+omapiic0 at obio0 addr 0x48070000 size 0x80
+omapiic1 at obio0 addr 0x48072000 size 0x80
+omapiic2 at obio0 addr 0x48060000 size 0x80
+iic* at omapiic?
+
+# Power Managent and System Companion Device
+tps65950pm0 at iic0 addr 0x48
+tps65950pm1 at iic0 addr 0x49
+tps65950pm2 at iic0 addr 0x4a
+tps65950pm3 at iic0 addr 0x4b
# On-board 16550 UARTs
com0 at obio2 addr 0x49020000 intr 74 mult 4 # UART3 (console)
@@ -236,8 +243,10 @@
# Watchdog timers
#omapwdt32k* at obio2 addr 0x49030000 size 2048 # WDT3
-#omapwdt32k* at obio1 addr 0x4830c000 size 2048 # WDT1
-#omapwdt32k* at obio1 addr 0x48314000 size 2048 # WDT2
+omapwdt32k* at obio1 addr 0x48314000 size 2048 # WDT2
+
+# onboard DMA
+omapdma0 at obio0 addr 0x48056000 size 0x1000
# onboard video
omapfb* at obio0 addr 0x48050000 size 0x10000
@@ -253,6 +262,8 @@
options WS_DEFAULT_BG=WSCOL_LIGHT_WHITE
options WS_KERNEL_FG=WSCOL_GREEN
options WS_KERNEL_BG=WSCOL_LIGHT_WHITE
+options WSDISPLAY_COMPAT_PCVT # emulate some ioctls
+options WSDISPLAY_COMPAT_SYSCONS # emulate some more ioctls
options WSDISPLAY_COMPAT_USL # wsconscfg VT handling
options WSDISPLAY_COMPAT_RAWKBD # can get raw scancodes
options WSDISPLAY_DEFAULTSCREENS=4
@@ -307,3 +318,5 @@
#pseudo-device clockctl # user control of clock subsystem
pseudo-device ksyms # /dev/ksyms
pseudo-device lockstat # lock profiling
+
+cinclude "arch/evbarm/conf/N900.local"
Home |
Main Index |
Thread Index |
Old Index