summaryrefslogtreecommitdiff
path: root/sys/arch/zaurus/dev
AgeCommit message (Collapse)Author
2005-12-22last change by me was wrong; do not setperf 2x on wakeupTheo de Raadt
2005-12-21sysctl machdep.lidsuspend=1 makes screen closures to cause a suspend.Theo de Raadt
(opening the screen does not yet wake the machine up, not yet sure if that is even possible yet)
2005-12-20remove old #if 0 chunks no longer needed for debugTheo de Raadt
2005-12-20at power events, call zkbd_hinge() to update the lcd state as well; ok drahnTheo de Raadt
bug reported in pr 4944
2005-12-20upon wakeup, take us back to the speed we were at; ok drahnTheo de Raadt
2005-11-17Sharp CE-RH2 remote control driverUwe Stuehler
2005-11-11first key is scanned based on interrupt. but if a key is held downTheo de Raadt
(ie. shift) then we cound on timeouts to re-scan the keyboard. 8 scans a second was too slow. change to 20 scans a second, which makes (hit the keys repeatedly, do not use auto-repeat) NNNNNN work just like nnnnnn does. ok drahn, sort of ok-chatter from miod
2005-11-11make power button cause suspend after .25 seconds (was 3 seconds)Theo de Raadt
and safe-shutdown after 3 seconds (was 6 seconds) ok uwe semi-ok drahn we will see if anyone wants these numbers fudged more in the future
2005-10-31show the speed status in hw.cpuspeed; ok drahnTheo de Raadt
2005-10-31On suspend/resume save the current time to the RTC earlier and restore it laterDale Rahn
so that the very long delay operations do not slow the clock unnecessarily. Add early support for hw.setperf and hw.cpuspeed for zaurus, it appears to be able to run at 91MHz and 209MHz as well as the std 416MHz with this change. Hopefully it is doing the speed changes correctly.
2005-08-18Make zaudio(4) work like a laptop, so that when you plug your headphonesRobert Nagy
into the plug it changes the mute values so the speaker will be muted and the headphones will be unmuted. If you unplug the headphones, it will change everything back to the default state. help and ok from uwe@ pascoe@; tested by others
2005-07-01Move all zaurus specific code from pxa2x0_pcic.c into scoop_pcic.cUwe Stuehler
without affecting the way the driver works.
2005-05-27oops! printf -> DPRINTFUwe Stuehler
2005-05-27- raise the "critical" battery level a bit to suspend earlierUwe Stuehler
- stop charging if the battery compartment is unlocked - control charging while suspended in zapm_poll(), too - avoid panic when rebooting before the driver is attached
2005-05-26Reset the zaurus audio components after resume, so that subsequent opensChristopher Pascoe
can play sound again.
2005-05-26No need to clock i2s during i2c operations, so don't. Relocate i2cChristopher Pascoe
open/close into init routine.
2005-05-25Resample the hinge value on wakeup, prevent 'hung' keyboard on returnDale Rahn
from suspend.
2005-05-24serial console supportUwe Stuehler
2005-05-23Cleanup leading and trailing whitespace.Christopher Pascoe
2005-05-23Headphone output and volume control support.Christopher Pascoe
ok dlg@
2005-05-10enter ddb thru alt-escape.Marc Espie
okay miod@, uwe@
2005-05-09Added comments, and a new function to control the infrared LED.Uwe Stuehler
2005-04-24Do down-sampling of the high-resolution touch pad events in kernel,Uwe Stuehler
and provide sysctls for fine-tuning the touch pad area that covers the screen. Reasonable defaults are provided, but each machine can be a bit different due to the manufacturing process.
2005-04-21Move i2c open/close from callers into zaudio_standby. Fixes an error path.Christopher Pascoe
2005-04-21provide pgup, pgdown, home and end by using fn with the arrow keys.David Gwynne
ok drahn@ deraadt@ uwe@
2005-04-19newline after attach; ok deraadt@Damien Miller
2005-04-15Add TODO list for zaudio.Christopher Pascoe
2005-04-15Add basic audio playback support for the Zaurus SL-C3000.Christopher Pascoe
ok dlg@ drahn@ uwe@ deraadt@
2005-04-13Resume only if the lid is open and the power key pressed. Also fixUwe Stuehler
peridic discharging in zapm_poll().
2005-04-11- generate power change and battery low eventsUwe Stuehler
- GPIO reset moved here, because it's machine-specific - power-off by suspending and then resetting (best thing the C3000 can do) - roll our own softc instead of using tons of globals
2005-04-08Synchronize ADS7846 communication and LCD refresh so as to avoid jitterUwe Stuehler
in the touch screen data, and enable the existing IRQ handling code (even though polling is still mandatory).
2005-04-08new functions for a unified interface to all chips.Uwe Stuehler
2005-03-30- Enable charging properly, avoiding the stuck "battery full" signal.Uwe Stuehler
- Correctly report battery life estimates falling between thresholds. - Restart charging every minute (needed on all zaurus machines). - Report battery life even while battery_state is APM_BATT_CHARGING. - Be pessimistic about the total battery life time in minutes. - Use shorter prefix for local symbol names. The timeouts introduced in this revision can be removed later.
2005-03-29Changed On/Off button behaviour (unless the lid is closed):Uwe Stuehler
- hold for 2 seconds to suspend, or - hold for 6 seconds to do a nice halt (if machdep.kbdreset=1).
2005-03-16permit ramdisks to compileTheo de Raadt
2005-03-15s/IPL_BIO/IPL_TTY. ok drahn@, deraadt@Uwe Stuehler
2005-03-15Seperate delay for discharge and charge, otherwise discharge period may notDale Rahn
be long enough. should fix most of the extra keys on rollover.
2005-03-15Try harder to prevent spurious touch screen 'down' events.Dale Rahn
2005-03-15Restructure the keyboard code so that the keys in rawkey are always sentDale Rahn
as expected. zero both keystate structures, keystate may not be fully initialized. worked on with uwe.
2005-03-13Read the battery voltage once and pass that value around. This fixes aUwe Stuehler
possible contradiction in the battery life estimates returned by apm(8).
2005-03-11- apm(8) can now report the estimated number of minutes left.Uwe Stuehler
- Use linear interpolation between thresholds to get better life estimates. - Minor changes in control flow, and renamed some constants. ok drahn@
2005-03-08Oops. Put scoop GPIO pins into correct state on suspend, and remove anUwe Stuehler
unnecessary function while there. ok drahn@
2005-02-23do not permit a suspend if the lid is closed; uwe okTheo de Raadt
2005-02-22call zkbd_hinge() at attach time, to init sc_hinge; drahn okTheo de Raadt
2005-02-22Initial suspend/resume code with additional powerhooks. Enter/exitUwe Stuehler
suspend mode with power button or zzz. May not work for everyone yet. ok drahn@ and deraadt@
2005-02-22based on hinge buttons, do screen blanking. uwe and i agree thatTheo de Raadt
later on we should look at debouncing the buttons, as the current code may lead to rapid display on/off cycles, which might be hard on the battery; uwe ok
2005-02-16Touchscreen sample stabilization, do multiple reads, average best two.Dale Rahn
2005-02-16Filter spurious coordinates on pen up in abolute mode,Matthieu Herrb
2nd and 3rd button emulation in absolute mode, make it the default. ok drahn@.
2005-01-31Use pxa2x0_gpio_get_function() to restore alternate pin functionsUwe Stuehler
correctly after writes to the backlight DAC.
2005-01-31Make LCD brightness adjustable by wsconsctl(1), and fix the base addressUwe Stuehler
of scoop1 to make it work. ok drahn@