Commit Graph

30 Commits

Author SHA1 Message Date
peter 0c9a60ff27 Hide the bit invertion/shifting of values received from and send to the MCU
inside the j720ssp_readwrite function. This simplifies the calls to this
function a little.
2006-06-27 14:36:50 +00:00
peter 547e1f6637 Split the Jornada 7xx drivers for the touch-panel, keyboard, lcd control
and power management into multiple files. This removes some dirty hacks
and improves the quality of the code.

- j720kbd.c     - keyboard driver
  * Converted to use the hpckbd(4) interface.
  * Remove the old keymap file since it's no longer used.

- j720lcd.c     - lcd brightness/control/power control

- j720pwr.c     - power management
  * Converted to use the hpcapm(4) interface.
  * Fix the battery charge status. The values are non-linear so in order
    to display a reasonable charge status we use a few charge points in
    a table and interpolate between that.

- j720tp.c      - touch-panel driver

- j720ssp.c     - SSP port (on the SA-1110)

Many thanks to cube@ and uwe@ for providing useful feedback and reviewing
the changes.
2006-03-04 14:09:36 +00:00
christos 95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
peter a7ccc64926 Add an obviously missing break in a switch statement.
Adjusting brightness and contrast now works!
2005-11-10 15:53:05 +00:00
peter 5280269a8f Add a dummy WSKBDIO_GETLEDS, to make "wsconsctl -ka" work. 2005-10-23 15:27:06 +00:00
peter 61eb4528fc Remove the DEBUG define, this should be set in the config file. 2005-10-23 15:21:08 +00:00
drochner b081eee072 convert remaining autoconf bus "submatch" functions to use the new
signature (passing locators), and remove some which obviously don't
serve any purpose
(untested, sorry)
2005-06-28 18:29:58 +00:00
uwe 093a9acc88 Use __UNCONST to pass default calibration data to tpcalib_ioctl(). 2005-06-02 21:38:17 +00:00
tsarna f53a32e6c9 Refactor tpcalib and hpc* ports to make tpcalib MI, as discussed on tech-kern. 2004-05-28 17:52:06 +00:00
mycroft e07e6dfcac Add a default: to a case statement. 2003-10-27 17:17:42 +00:00
mycroft 8df46a3c92 In j720ssp_kthread(), move the tsleep() to the end of the loop. 2003-10-27 16:18:18 +00:00
agc aad01611e7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
lukem 08716eae82 __KERNEL_RCSID() 2003-07-15 00:24:37 +00:00
takemura 285679b875 Added new ioctl command, WSMOUSEIO_GETID to tell touch panel identifier
for tpctl(8).
2003-01-03 04:36:26 +00:00
manu be554117a6 Removed debug messages 2002-11-07 17:26:34 +00:00
chs 038d3a7684 add missing protos. 2002-10-05 17:12:09 +00:00
thorpej c5e91d447d Use CFATTACH_DECL(). 2002-10-02 04:55:47 +00:00
bsh 5880df1648 avoid warning when NAPM==0 2002-09-29 13:16:22 +00:00
thorpej f818766afe Declare all cfattach structures const. 2002-09-27 20:31:45 +00:00
thorpej d1ad2ac4f2 Rather than referencing the cfdriver directly in the cfdata entries,
instead use a string naming the driver.  The cfdriver is then looked
up in a list which is built at run-time.
2002-09-27 02:24:06 +00:00
manu 7f8a47f4a1 - missing bits of apm
- KNF
2002-09-18 19:54:47 +00:00
manu 100872541e fix touchpanel broken behavior:
- when moving the stylus, the cursor was updated only when the screen was
released
- when moving the stylus for too long, the kernel crashed

This was caused by improper delays in SSP read and write, and by interrupt
hammering while the screen is touched). Both led to the machine handling
interrupts all the time and been unable to schedule the X server, therefore
the lack of cursor refresh.

The problem is fixed by
- masking touchpanel interrupts as soon as we are already handling them
- creating a kernel thread (j720ssp) that takes care of keyboard and
touchpanel I/O, instead of doing it in a softintr.
- reducing delays in j720ssp_readwrite operations from 5ms to 0.1ms.

NB: If the delay in j720ssp_readwrite operation is lowered to 0.1, then
switching on the screen using the power key pushes brightness to maximum.
In order to avoid this, we introduce a wait argument to j720ssp_readwrite,
which specify how many microseconds we have to wait. j720ssp_readwrite is
called with wait = 100 everywhere except in j720lcdparam where it is called
with wait = 500. That way it works.
2002-09-13 22:44:58 +00:00
manu 2126ded42f Implements WSKBDIO_GTYPE 2002-07-22 20:55:48 +00:00
ichiro 422658da08 move sa11x0 to under arch/arm
make compile
2002-07-19 19:15:48 +00:00
toshii f72ad6b998 Support jornada720 touchpanel. 2002-07-19 08:49:48 +00:00
atatat 31144d9976 Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for
indicating an unhandled "command".  ERESTART is -1, which can lead to
confusion.  ERESTART has been moved to -3 and EPASSTHROUGH has been
placed at -4.  No ioctl code should now return -1 anywhere.  The
ioctl() system call is now properly restartable.
2002-03-17 19:40:26 +00:00
uch 7caec24d41 bootinfo.h, config_hook.h, platid.h are moved to hpc/include 2002-02-02 05:31:56 +00:00
toshii f8c1bea196 Allow jornada720 LCD and keyboard to be used as a boot console. 2001-12-28 01:41:53 +00:00
toshii 56b40cd78a Fix autoconf related botch: do printf("\n") in attach funcs rather than
in cfprint.
2001-06-29 17:22:50 +00:00
toshii b57d496dee Add support for jornada720 keyboard and some LCD parameter controls.
The code is somewhat incomplete, but is quite functional.
2001-06-23 09:20:05 +00:00