Commit Graph

71 Commits

Author SHA1 Message Date
mrg
602d34897a fix an off by one array bounds issue, and also fix a potentially non
nul-terminated string.
2011-07-07 08:48:34 +00:00
dyoung
fea15f47f1 #include <sys/bus.h> instead of <machine/bus.h>. 2011-07-01 20:36:42 +00:00
wiz
4cbd24b23f dependant -> dependent 2011-06-30 20:09:15 +00:00
kiyohara
6d97f855d7 Use CFATTACH_DECL_NEW(). 2011-06-21 11:38:03 +00:00
nonaka
87cdb51f7f - Split device_t/softc.
- Added some functions for i2c framework.
2011-06-19 16:16:42 +00:00
matt
497ddd31b9 Add RCSID when needed.
Don't include pmap.h or pte.h, include "assym.h" instead.
Use assym.h provided values.
2011-01-31 06:28:02 +00:00
hannken
c23fe3a530 As md(4) no longer has "needs-count" there is no "md.h" anymore.
Remove the inclusion of this file.

Acorn32 now always builds load_memory_disc_from_floppy().  This should
not be a problem as all configs have md(4).

Observed by: Masao Uebayashi <uebayasi@netbsd.org>
2010-11-28 08:23:22 +00:00
kiyohara
2453452fa8 Remove #ifdef NPRCM. Always include omap2_prcm.h. 2010-09-23 07:01:41 +00:00
kiyohara
22896d279d If GUMSTIX_NETBSD_ARGS_CONSOLE is defined, argument 'console=ttyS0,<speed>'
that u-boot passes Linux will be interpreted.
2010-09-23 06:54:46 +00:00
kiyohara
fefe19edbb Remove #if !defined(OVERO) - #endif. Overo can call delay(). 2010-09-23 06:43:32 +00:00
kiyohara
8c7e8c667b Support prcm@obio1. 2010-08-30 05:37:30 +00:00
kiyohara
7b57451a85 Fix build fail.
+ Include opt_omap.h, if defined OVERO.
  + Fix the pair of parentheses.
2010-08-28 07:13:47 +00:00
kiyohara
c3c2133955 Fix build failed. omap2_intr.h includes, if defined OMAP3530. 2010-08-28 07:06:29 +00:00
kiyohara
1fe3097332 Support smsh@gpmc.
tested Chestnut43 only.
2010-08-28 04:54:46 +00:00
kiyohara
39e2f24fea + Add parsing keyword 'expansion=' in args from U-boot. And keep backword
compatibility 'busheader=', in case Gumstix.
+ Add GPMC device map to gumstix_devmap[].
2010-08-28 04:46:24 +00:00
kiyohara
7ccc7ee0c4 + Add configuration function for NIC of Chestnut43/Tobi/Tobi-Duo.
tested Chestnut43 only.
+ Remove parenthesis for return.
2010-08-28 04:39:42 +00:00
kiyohara
015c25e57a Remove a white space. 2010-08-28 04:33:00 +00:00
kiyohara
ab81e3684b + Struct smsh_gxio is obsolated, and struct lan9118_softc is used.
We do not have private data at all.
+ Fix typo.  sms_gxio_attach -> smsh_gxio_attach
2010-08-28 04:30:24 +00:00
kiyohara
d3d549f1e0 Disable L2 Cache when boot time. 2010-08-28 04:12:40 +00:00
kiyohara
e053a5d619 Use EVBARM_BOARDTYPE to print 'NetBSD/evbarm(*)'. That defined to
std.gumstix and std.overo.
2010-08-08 09:00:15 +00:00
kiyohara
c304a3774f Add gumstix_device_register(). Set properties for pxa2x0_ohci here.
However this properties not used in NetBSD source tree.
2010-07-10 08:26:34 +00:00
kiyohara
9a9959dfd8 Support Overo (Gumstix inc).
+ This commit supports basically.
  + Expansion boards not support yet.  And MicroSD, Wifi, Bluetooth too.
2010-07-10 08:17:48 +00:00
kiyohara
fa7c24a083 XXXX: More power is necessary for NIC and USB? (no document. from Linux)
tested on verdex + console-vx + netCF-vx
  and verdex-pro + netpro-vx + consoleLCD-vx.
2010-03-15 13:16:56 +00:00
kiyohara
0d23f6e0df Use bus_space_write_2() instead of _1, because sm(4) is 16bit/word. 2010-03-15 13:11:23 +00:00
kiyohara
1067f44885 Reorder included headers. 2010-03-07 09:29:26 +00:00
kiyohara
edd541011a Add options GUMSTIX_NETBSD_ARGS_CONSOLE and GUMSTIX_NETBSD_ARGS_BUSHEADER.
Can specify arg 'console='(*new*) and 'busheader=' from u-boot.  These args
  use dynamically configuration.
Also change function name.  s/_line/_liner/.
2010-03-07 09:18:51 +00:00
kiyohara
36e1ccd0db Please calculate KERNEL_PT_KERNEL_NUM from KERNEL_VM_BASE.
Moreover, can define KERNEL_VM_BASE somewhere. (ex. in conf/YOUR_GUMSTIX)
  For instance, allow miniroot.fs over 16Mbytes.
2010-01-24 03:46:48 +00:00
uebayasi
998f9b1597 Use cpu_* prefix to call cpu_* functions (setttb() -> cpu_setttb()); no
functional changes.
2009-12-26 16:01:23 +00:00
uebayasi
cb96e85ab2 Garbage collect an unused global, vm_offset_t pagetables_start. 2009-12-26 15:47:14 +00:00
kiyohara
daaee09935 Call pxa2x0_clkman_config() instead of ioreg_write(). 2009-12-02 13:10:09 +00:00
kiyohara
21d3db4d12 Enable latest bluetooth module (Infineon PBA31308). 2009-12-02 13:05:09 +00:00
kiyohara
9de4dc009f Fix print message. 2009-11-29 10:08:15 +00:00
rmind
3f18fe8123 - Use uvm_lwp_setuarea() instead of directly setting address to lwp_t::l_addr.
- Replace most remaining uses of l_addr with uvm_lwp_getuarea() or lwp_getpcb().
- Amend assembly in ports where it accesses PCB via struct user.
- Rename L_ADDR to L_PCB in few places.  Reduce sys/user.h inclusions.
2009-11-27 03:23:03 +00:00
matt
11af2f9cfa Kill proc0paddr. Use lwp0.l_addr instead. 2009-11-26 00:19:11 +00:00
kiyohara
04ffa2b739 Move definition 'void gxlcd_cnattach(void)' to gumstixvar.h. 2009-11-22 12:05:14 +00:00
kiyohara
64ba3e027a Add GPIO configuration 'LCD backlight on'.
Remove 'XXXX' in comment.  That GPIO config is power on the Marvell 88W8385.
2009-11-22 12:00:56 +00:00
kiyohara
16ef4dd6d8 The variable ckenreg is used only when defined macro {FF,ST,BT,HW}UARTCONSOLE. 2009-11-21 08:41:38 +00:00
kiyohara
f97cdf80e0 Fix a bug.
sc = device_private(self);
  sc->dev = self;
2009-11-21 08:33:50 +00:00
kiyohara
60a987241b Use __UNCONST(). 2009-08-15 10:18:17 +00:00
matt
b2a95bab1e Remove all declarations of physmem from sys/arch. Add an include of
<sys/systm.h> to the one file that did not already contain it.
This now means that physmem can be changed by updating systm.h and uvm_page.c
(excluding fixing printfs)
2009-08-11 17:04:14 +00:00
kiyohara
1c10f508e4 Support verdex and verdex-pro.
And
    + Support LCD controller.
    + Support SMSC LAN 9117 Ethernet controller.
    + Comment outed 'options GXIO_DEFAULT_EXPANSION'.  As for verdex-pro being
      sold now, this option becomes obstructive.
    + Remove some usb devices in GUMSTIX.
    + Update GUMSTIX.

Also
 Fix ARM ABI in gumstix_start.S.  Thanks Brett Slager <bds at ifgd.net>.
 Calculate RAM size in gumstix_start.S.
2009-08-09 07:10:13 +00:00
kiyohara
eb34e284af Fix matching by improper driver.
see http://mail-index.netbsd.org/port-arm/2009/07/08/msg000807.html

And remove some white-spaces.
2009-08-09 06:12:33 +00:00
nonaka
e0297d1ead Added SD/MMC support from OpenBSD.
tested on i386, amd64 at current-users ML by pgoyette@.
tested on zaurus by myself.
2009-04-21 03:00:29 +00:00
pgoyette
e59bbd6c14 Missed this file in previous commit. This finished updates required
to enable support of i2c quick_{read,write} operations.
2009-04-20 12:58:33 +00:00
cegger
df7f595ecd Ansify function definitions w/o arguments. Generated with sed. 2009-03-18 10:22:21 +00:00
apb
0cc72e51ac Use "defopt MODULAR" in sys/conf/files, and #include "opt_modular.h"
in all kernel sources that use the MODULAR option.
Proposed in tech-kern on 18 Jan 2009.
2009-02-13 22:41:00 +00:00
nonaka
1a6860067f - device_t/softc split.
- use aprint_* function.
2009-01-29 12:28:15 +00:00
cliff
82f0028b4e fix botched LKM edits 2008-11-18 18:20:10 +00:00
ad
0efea177e3 Remove LKMs and switch to the module framework, pass 1.
Proposed on tech-kern@.
2008-11-12 12:35:50 +00:00
dyoung
94d985722a It is not appropriate to call pmf_system_shutdown(9) from
doshutdownhooks(9): shutdown hooks registered by shutdownhook_establish(9)
expect to be called with interrupts disabled, but shutdown hooks
registered with pmf_device_register1(9) expect to be called with
interrupts enabled.  So I have made two changes:

1 Do not call pmf_system_shutdown() from doshutdownhooks().  Instead,
change every call to doshutdownhooks() to a call to doshutdownhooks()
followed by a call to pmf_system_shutdown().  No functional change
is intended by this change.

2 Make i386 re-enable interrupts briefly while it calls
pmf_system_shutdown().  I leave it to others either to fix the
other ports, or to factor out some MI shutdown code, as joerg@
suggests, and fix that.  Note that a functional change *is* intended
by this change.

I hope that this patch will stop us from flip-flopping between
calling doshutdownhooks() and pmf_system_shutdown() sometimes with
and sometimes without interrupts enabled.
2008-11-11 06:46:40 +00:00