Commit Graph

65 Commits

Author SHA1 Message Date
msaitoh
8bc54e5be6 KNF. Remove extra spaces. No functional change. 2016-07-07 06:55:38 +00:00
chs
2f02870f3b zero the i2c_attach_args structure before filling it in.
fixes occasional crashes in iic_attach().
2016-02-14 19:54:19 +00:00
nonaka
94ff29c8fa Apply WM8731 support patch from TOYOKURA Atsushi, arranged by me.
- SL-C700: work fine
- SL-C750: attach failed
- SL-C860: not tested
2014-09-23 14:49:46 +00:00
nonaka
8a6a7696a3 Apply patch from steleto, arranged by me.
- Avoid chattering for SL-C7x0/860
- Add more stuck keys.
2013-03-30 08:35:06 +00:00
chs
cbab9cadce split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
2012-10-27 17:17:22 +00:00
nonaka
f1810fa28a fix RCSID. 2012-08-12 08:59:58 +00:00
tsutsui
e197458932 Fix wrong raw keycode in xt_keymap_c860[] so that right shift properly works
on Xserver on C7x0/860.  From steleto.

Should be pulled up to netbsd-6.
2012-05-07 18:36:16 +00:00
tsutsui
ddafd3b8c8 More SL-C7x0/860 support for Xorg server usage:
- pull touchpanel adjustment ioctls to w100lcd.c for SL-C7x0/860
  from zlcd.c for SL-C1000/3x00
- add sample xorg.conf for C7x0/860 (which have hardware screen rotation)
- rename old xorg.conf.sample for C1000/C3x00 to xorg.conf.C3x00
- adjust md set list

Ok releng@ nonaka@
2012-02-10 11:25:42 +00:00
tsutsui
533071c4dd Add PXA25x based Zaurus SL-C700/750/760/860 support.
All porting work was done by TOYOKURA Atsushi, with
several minor adjustments for integration by me and nonaka@.

His SL-C700 first running NetBSD/zaurus was demonstrated on
NetBSD booth at Open Source Canference 2011 Tokyo/Fall:
http://www.NetBSD.org/gallery/events.html#opensourceconf2011-tokyofall

Note GENERIC kernel works on SL-C750/760/860 (and C1000/3x00) but for now
SL-C700 requires its own kernel with special KERNEL_BASE_PHYS address
due to zbsdmod.o loader restriction (probably caused its small 32MB RAM).
2012-01-29 10:12:41 +00:00
tsutsui
b41763f442 Update comments for recent lcdctl changes. 2012-01-27 15:07:41 +00:00
tsutsui
63752ed247 Allow calling scoop_set_backlight() even before scoop is attached and
schedule initial values in that case as ioexp does. Suggested by nonaka@.
Now lcdctl no longer has to defer lcdctl_set_brightness() by
config_finalize_register(9), which is a bit too late.
(i.e. no backlight during USB/SD probe by config_interrupt(9) in previous)
2012-01-27 14:48:22 +00:00
tsutsui
6145ba81f6 Reorganlization zlcd(4) and ztp(4) device attachments from nonaka@:
- ztp depends on zssp so attach ztp at zssp rather than pxaip
 - split LCD backlight controls from zlcd(4) into new lcdctl device
   to share it among forthcoming SL-C7x0 variants
2012-01-25 16:51:17 +00:00
tsutsui
fd148500e6 Defer device initializations which implicitly depend on scoop or ioexp
via config_finalize_register(9).
2012-01-25 15:58:10 +00:00
nonaka
7e1e52be21 fix my license notice. 2012-01-21 18:56:51 +00:00
jmcneill
8a962f23f2 Merge jmcneill-audiomp3 branch, which is derived from ad-audiomp2. From
the original ad-audiomp branch notes:

  Add MP locking to the audio drivers.

  Making the audio drivers MP safe is necessary before efforts
  can be made to make the VM system MP safe.

  The are two locks per device instance, an ISR lock and
  a character device lock. The ISR lock replaces calls to
  splaudio()/splx(), and will be held across calls to device
  methods which were called at splaudio() before (e.g.
  trigger_output). The character device lock is held across
  calls to nearly all of the methods, excluding some only
  used for initialization, e.g. get_locks.

Welcome to 5.99.57.
2011-11-23 23:07:28 +00:00
dyoung
5410d57726 Change <machine/bus.h> to <sys/bus.h> throughout.
Split bus.h -> bus_{defs,funcs}.h.
2011-07-19 15:11:49 +00:00
nonaka
2f7d2050f8 set PXA2X0_I2C_BASE to sc->sc_addr in the correct position. 2011-06-23 10:56:03 +00:00
kiyohara
b0f15cf1e1 Add member sc_addr to struct pxa2x0_i2c_softc.
And use sc_addr to bus_space_map() instead of macro-directly.
2011-06-22 16:18:54 +00:00
nonaka
9bb80a5b37 backout previous. 2011-06-21 18:13:19 +00:00
nonaka
ab3c0dc475 use pmf_event_inject() instead of call lcd_blank() directly. 2011-06-21 17:17:27 +00:00
nonaka
003bdf4c7b more support SL-C1000. 2011-06-19 16:20:09 +00:00
nonaka
9980c83b70 Delete unused file. 2011-06-19 09:26:29 +00:00
uebayasi
9b35e244a4 Some missing sys/device.h dependencies. 2010-11-13 15:35:49 +00:00
nonaka
cdac0a86f0 Enable SD 4bit bus width mode. 2010-04-06 15:56:14 +00:00
dyoung
c1b390d493 A pointer typedef entails trading too much flexibility to declare const
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.
2010-02-24 22:37:54 +00:00
dyoung
3022acc4eb Expand PMF_FN_* macros. 2010-01-08 19:42:11 +00:00
nonaka
671ae66041 report collect charge state. 2009-12-12 14:29:34 +00:00
nonaka
90e9d6e92e Use mutex(9). 2009-12-12 13:12:49 +00:00
nonaka
a75e0b5b4d use APM_BATT_FLAG_CHARGING. 2009-12-12 11:38:45 +00:00
nonaka
c54868835c Use tpcalib_ioctl() instead of hpc_tpanel_ioctl(). 2009-12-12 07:49:31 +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
nonaka
53f7d89de9 zaudio(4): Support recording. 2009-04-18 05:20:21 +00:00
uwe
9a25b0cb7f Switch apmdev to use apm(4) structures from dev/apm/apmvar.h.
Add batteryid argument to aa_get_powstat method implementations.
2009-04-03 04:13:17 +00:00
nonaka
a3bafaad7a zaudio(4) works now. 2009-03-13 13:55:18 +00:00
nonaka
2dfa5fff78 collect same processing. 2009-03-11 09:10:39 +00:00
nonaka
04bd9a8218 fix typo. 2009-03-11 09:04:50 +00:00
nonaka
a17a94caeb Reports the residual quantity of the battery in detail. 2009-03-11 09:04:31 +00:00
nonaka
53eee523f0 use pmf(9) instead of powerhook_*. 2009-03-03 18:42:19 +00:00
nonaka
664df27b21 Use pmf(9) instead of powerhook_*. 2009-01-29 16:00:33 +00:00
nonaka
5990ab686a revert a part of previuos change. 2009-01-29 12:51:15 +00:00
nonaka
1a6860067f - device_t/softc split.
- use aprint_* function.
2009-01-29 12:28:15 +00:00
nonaka
371e3e9538 device_t/softc split. 2009-01-28 14:15:56 +00:00
nonaka
4c493daea6 don't print cable detect messages. 2009-01-28 14:06:15 +00:00
ober
dd55503e8f Initial APM support for Zaurus. Ported from OpenBSD by mjf@. 2008-12-06 22:12:36 +00:00
cegger
61f21080d9 use device_lookup_private to get softc 2008-06-13 13:57:58 +00:00
chris
ed87ed8b00 Add zusb device for powering on the USB port. Also configure USB port 2
via the client USB on the pxa270, as it appears USB port 2 is the
externally routed port.

The linux driver was used as documentation for GPIO pins and port
settings.

Note that this only seems to work for one boot, a reboot loses for some
reason, perhaps something in the USB client area needs to be configured.

XXX: perhaps we should make zusb a device that attached/detaches the USB
USB host or client device depending on the plugged in cable.
2008-03-31 23:32:43 +00:00
garbled
d974db0ada Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree.  Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches.  The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
2007-10-17 19:52:51 +00:00
nonaka
1de7f19819 Added support to detect AC adapter and charge battery. 2007-07-29 14:31:23 +00:00
nonaka
9efd71ca75 sync with OpenBSD. 2007-07-29 14:29:38 +00:00
nonaka
c3fdd97b8c Add missing callout_init(). 2007-07-21 01:47:58 +00:00