Commit Graph

227 Commits

Author SHA1 Message Date
uch 5c4a9c8761 remove dev/dec/clockvar.h from hpcmips source tree. 2001-09-18 17:37:26 +00:00
uch 87a75cec20 clean up "mainbus" related code. 2001-09-17 17:03:44 +00:00
uch 6a9bbffc4d rearrange struct platform@sysconf.h suitable for hpcmips.
overhaul hpcmips/hpcmips/. no actual changes.
2001-09-16 15:45:42 +00:00
uch 961880b501 ANSIfy, KNF. 2001-09-16 05:32:18 +00:00
uch 80d8d09cd7 switch from splvec to ipl_sr_bits. 2001-09-15 19:51:38 +00:00
sato 9545f31823 initial support of vr4131 bcu. 2001-09-07 16:06:03 +00:00
sato a18f21f23e VR4131 have same restriction as VR4122. 2001-09-07 16:04:03 +00:00
sato 5e44e9de0e add VR4131 releated definisions and change. 2001-09-07 16:02:56 +00:00
sato 3198fedb64 add VR4131 infomation. 2001-09-05 16:08:46 +00:00
sato 3f9cc29da9 fix vr4181 register offset. 2001-08-21 10:31:26 +00:00
sato 0e356bc8ef fix VR4122 some unit address. 2001-08-04 14:08:46 +00:00
sato c84f4a5476 adhoc battery event creation for some vr machines.
XXX: temporary
this file is needed with vrpiu.c rev1.14
2001-07-22 10:40:09 +00:00
sato 9ae3738ab5 adhoc battery event creation for some vr machines.
XXX: temporary
2001-07-19 13:11:27 +00:00
toshii e267c67b60 "infomation" -> "information" 2001-07-17 01:37:43 +00:00
sato 4cc6a0ac93 fix 'mask clock to PIU' 2001-06-14 08:43:41 +00:00
sato 01b21ab7a1 register VRIP_INTR_BAT handler to vrip_intr_establish(). 2001-06-13 16:05:59 +00:00
enami 4553af4ee5 Add minimal support for vr4122/vrc4173 pci. 2001-06-13 07:32:47 +00:00
enami 43b992855b Comment about start address of LED unit in vr4122. 2001-06-11 10:04:27 +00:00
enami 1c426d533e make GENERIC compile again. 2001-06-11 06:11:01 +00:00
enami 48a9b87617 Move some struct definition into header file. 2001-06-11 06:04:55 +00:00
enami 79524e25e0 - add comment about start address of PMU in vr4122.
- wrap long line.
- add regsiter offset found in PMU of vr4122.
2001-06-11 06:02:21 +00:00
enami d011344fca Cosmetic changes; lineup some struct members. 2001-06-11 05:56:21 +00:00
enami 1898d1dcc6 - make this file compile even if either hpcfb or vrkiu isn't included.
- introduce new cpp symbol VR_FIND_DRAMLIM not to probe dram beyound this.
  for example, MP-C303 hangs hard if memoy beyond 0x03800000 is probed.
2001-06-11 05:52:21 +00:00
enami f81775f030 Cosmetic changes. 2001-06-11 05:24:06 +00:00
sato 9d87ee4b59 add MC-R700, 730 touch panel parameter 2001-06-10 12:37:43 +00:00
lukem d84d2c6c85 add missing #include "opt_kgdb.h" 2001-05-30 15:24:23 +00:00
enami 6ae30e0e6e Don't touch GIU{USE,TERM}UPDN_REG_W if ONLY_VR4122 is defined.
XXX ... for now.  better way is needed.
2001-05-18 01:41:39 +00:00
enami c7db455f32 Fix fomula to calcurate TClock; TClock = VTClock / tdiv, not PClock / tdiv.
The manual is inconsistient about this.
2001-05-17 13:10:46 +00:00
enami c74dc48133 Use VRIP_SIU_ADDR instead of 0x0c000000 for base address of serial console
or kgdb connection.
2001-05-17 06:00:22 +00:00
enami f2649e3000 Include opt_vr41xx.h and vrcpudef.h 2001-05-17 05:25:32 +00:00
sato e82d2d52c6 vr4122 releted definition. 2001-05-17 05:04:30 +00:00
enami fb619e9a70 Calc. cpu speed for VR4122. 2001-05-16 10:49:18 +00:00
shin 6fbde674dd don't define TAILQ_EMPTY here. TAILQ_EMPTY is defined in <sys/queue.h>. 2001-05-09 11:57:05 +00:00
takemura 54d9a46bbc Vrc4172 GPIO support. This device is currently configured on PenCentra 130. 2001-05-06 14:25:15 +00:00
takemura a8304325bf Fix 'busname' to attach nodes correctly. 2001-05-01 00:25:16 +00:00
takemura 26b0905dd0 Machine independent GPIO interface. 2001-04-30 11:42:17 +00:00
sato 9804ab7c49 add VR4181 vrip register maps.
add VR4181 vrip intr levels.
2001-04-21 14:46:36 +00:00
sato 05c9ce0788 add VR4181 BCU register definitions.
add routines for VR4181.
2001-04-21 14:44:40 +00:00
sato a797d869ed dump io setting: DPRINTF->VPRINTF 2001-04-21 10:32:38 +00:00
sato 12a0a0a537 - support VR4122 vrip register map.
- support VR4122 ICU register map.
- support VR4122 intr levels.
XXX: currently if 'options VR4122' is defined,
XXX: cannot specify 'options VR4121','options VR4111', 'options VR4102'.
XXXX: i have not the VR4122 based hardware.. so no check for VR4122.
2001-04-18 11:07:26 +00:00
sato 553d85e2d4 missing includes in last commit (rev1.6->1.7). 2001-04-18 11:00:30 +00:00
sato d4262d1ab3 use VRIP_CMU_ADDR in vr/vripreg.h 2001-04-18 10:48:58 +00:00
sato 9d92917cd6 check platid if 'options VR41XX' and 'options TX39XX' are both defined.
XXX: currently this case is missconfiguration and not compilable.
XXX: because all codes are not supported this case yet.
2001-04-18 10:42:39 +00:00
sato cdc83120a7 fix SINGLE_VRIP_BASE condition. 2001-04-17 15:45:20 +00:00
sato 97683d27ae - definition for vr cpu identify.
- definition for vr cpu group identify.
2001-04-17 11:13:16 +00:00
sato 00ec577a8e add VR4122 specified register definitions.
XXX: vrip.c is not yet supported VR4122.
2001-04-16 09:55:56 +00:00
sato 8a19f18c0b fix typo in comment. 2001-04-16 09:17:05 +00:00
itojun fbc07662f5 $NetBSD$ tag cleanup 2001-04-13 08:11:44 +00:00
itojun eb0cfc6af5 s/$Id$/$NetBSD$/ 2001-04-13 08:09:07 +00:00
thorpej 316dcc474b splvec.splimp -> splvec.splvm 2001-04-12 19:21:20 +00:00
sato 5dd91b669c add VR4101 specific BCU registers.
add VR4122 specific BCU registers.
add cpu specific comments.
2001-04-11 08:52:59 +00:00
sato 887d70ab8f CONFIG_HOOK_GET support for get current port status. 2001-03-26 08:57:02 +00:00
sato c5956b89f8 change backlihght parameter value type to int8_t. 2001-03-24 16:08:36 +00:00
sato 1907b28be1 add MobilePro770(MC/R520A) parameters. 2001-03-24 15:53:37 +00:00
sato 859d83dd22 * vrc4172pwm_get_light() return the value masked by VRC2_PWM_LCDEN_MASK.
* when resume from suepend, restore saved value instead of always on.
2001-03-12 08:46:27 +00:00
uch cb1bebe07e remove unneeded include. 2001-03-11 16:45:13 +00:00
sato 1a533a81d6 add sigmarion parameter. 2001-03-06 03:14:39 +00:00
sato 66261e817a * update copyright year.
* some machines(MC-R700 etc) have pre-vrc4172 asic.
  they don's work as vrc4172 specification, so skip some probe sequence.
  - add platid related parameter.
  - add VRC4172PWM_BROKEN_PROBE code.
* add MC-R700,700A parameters (tested on MC-R700).
* add contrast parameters.(but no one use yet).
* turn some message in probing to VPRINTF().
* enlarge VRC2_PWM_N_BRIGHTNESS.
2001-02-27 08:48:38 +00:00
sato fb03c1ad33 DPRINTF/VPRINTF change. 2001-02-26 09:33:03 +00:00
uch 659f65e0ee hpc common files are moved to dev/hpc. 2001-02-22 18:37:54 +00:00
sato ed219529f5 * vrc4172pwm_light(): workaround when brightness is max.
if light turn off, brightness must be minimum.
* more DPRINTF().
2001-02-16 12:31:46 +00:00
sato bcece69eb6 * add MC/R430/530/530A parameters in vrc4172pwm_platid_param_table.
* fix typo in cf_loc access.
* add some DPRINTF()s.
* fix default value if no params in vrc4172pwm_platid_param_table.
2001-02-15 03:20:10 +00:00
takemura 6a31350117 Fix bugs of VR touch panel driver,
- status stay in touching while pen don't realy touch.
  - cursor often jumps to center of screen.
But it seems that 'stay in touching' still occurs at rare intervals.
2001-01-21 05:00:28 +00:00
takemura 24706debd2 Fix indent, which were too deep. 2001-01-20 12:24:22 +00:00
sato 67ea0086c3 fix typos. 2001-01-19 11:42:21 +00:00
takemura a0a2fc0688 Implement WSMOUSEIO_SRES to control A/D port scan interval. 2001-01-08 09:50:08 +00:00
sato fdbe4057ec - use struct platid_date instead of struct vrc4172pwm_platid_param.
- delete struct vrc4172pwm_platid_param.

XXX: vrc4172pwm driver currenty not functional yet.
2000-12-29 15:54:17 +00:00
sato b8bfd0cc52 * vrc4172pwm driver
- add missing functions
- make compilabe.
2000-12-29 11:44:44 +00:00
sato 6276ccbc58 - rewrite codes using new CONFIG_HOOK_SET. 2000-12-27 12:22:07 +00:00
sato 4b9ae225e0 -rewite codes by using new CONFIG_HOOK_SET and CONFIG_HOOK_EVENT. 2000-12-27 12:10:05 +00:00
sato dc6a141444 - rewite codes by using new CONFIG_HOOK_SET and CONFIG_HOOK_EVENT. 2000-12-27 12:08:03 +00:00
sato 9eb6b660b6 fix ICU address typos. 2000-12-20 08:05:09 +00:00
sato 0f6c05e8d7 - polling battery voltage value from A/D port.
currently polling only.
  if verbose mode, kernel print A/D raw value every polling.
2000-12-02 08:35:45 +00:00
sato 47ee1d1c1f update vrc4172 pwm unit codes.(but not yet completly) 2000-11-11 10:08:12 +00:00
sato c8c49f7222 - vrc4172 address map definisions.
- vrc4172 gpio/ucy/pcs/pmu/pwm register definitions.
- vrc4172 pwm driver (not yet completely)
2000-11-11 04:42:08 +00:00
sato e13d487465 - A/D converter port macro: PIUAB(n) 2000-10-27 08:13:54 +00:00
sato cbebb75a68 - add VPRINTF().
- show pwctl giu bit for verbose.
2000-10-27 08:12:18 +00:00
sato 5cf5562de3 probe message use dv_xname. 2000-10-27 08:10:32 +00:00
sato d9781d7eb9 add new keyword "initvalue" on pwctl device.
if "initvalue 0", set the port initialy "off".
if "initvalue 1", set the port initialy "on".
otherwise keep initial value.
2000-10-17 11:37:20 +00:00
sato af1dcf13da flash led when intrrupt. 2000-10-03 03:16:16 +00:00
sato c419b94c00 vr41xx LED unit driver. 2000-10-03 03:13:04 +00:00
sato ee8000c4ad check NBIVIDEO. 2000-10-02 04:15:51 +00:00
sato 3c83f44fa3 experimental ite8181 video driver for hpcfb.
- just copy from bivideo.
- erase WindowsCE hardware cursor initialy.
- LCD power management codes exist, but currently disabled.
  Because some devices(include ite8181) confuse after LCD power turn on.
  WorkPad z50 power unit seem to be very weak
2000-10-02 04:14:59 +00:00
sato eb2da98d92 #include <sys/reboot.h> would probably suffice for those. 2000-09-25 09:03:32 +00:00
sato 67afa9cfe2 - when PMUINT_BATT or PMUINT_BATTINTR interrupts occured,
send CONFIG_HOOK_PMEVENT_SUSPENDREQ event.
2000-09-25 03:51:28 +00:00
sato 1efb55d0b4 - add debug/verbose functions. 2000-09-25 03:47:37 +00:00
sato 5125b04184 - can compile these files.
#include <sys/boot_flag.h>
2000-09-25 01:56:56 +00:00
jdolecek 49c105ffdb add new macro BOOT_FLAG() (defined in <sys/boot_flag.h>) - this
maps standard boot flags to corresponding RB_* values
use BOOT_FLAG() in port's MD code as appropriate

as discussed on tech-kern, add new boot flags -v, -q for booting
verbosely or quietly, and corresponding AB_VERBOSE/AB_QUIET
boot flags; also add FreeBSD-compatible bootverbose macro and
NetBSD-specific bootquiet macro

for hpcmips, use new bootverbose instead of it's own hpcmips_verbose

Tested on i386, and to limited extend (compile of affected files) also for
mvme68k, hp300, luna68k, sun3.
2000-09-24 12:32:31 +00:00
takemura 454e19c166 skbd -> hpckbd. hpckbd supports vrkiu as well as m38813c and tc5165. 2000-09-21 14:17:29 +00:00
sato 39556606fe handle CONFIG_HOOK_POWERCONTROL events
- PWR_SUSPEND: save giu bits values and turn "off" the values.
- PWR_RESUME: restore giu bits values.
2000-09-10 15:30:32 +00:00
sato 9a5210c76d - adapt config_hook(CONFIG_HOOK_PMEVENT,..)
save cmu clock mask register and disable all clock when PWR_SUSPEND event.
  restore saved cmu clock mask register when PWR_RESUME event.
2000-09-07 03:11:11 +00:00
thorpej a86d1f4891 Add a lock around the scheduler, and use it as necessary, including
in the non-MULTIPROCESSOR case (LOCKDEBUG requires it).  Scheduler
lock is held upon entry to mi_switch() and cpu_switch(), and
cpu_switch() releases the lock before returning.

Largely from Bill Sommerfeld, with some minor bug fixes and
machine-dependent code hacking from me.
2000-08-20 21:50:06 +00:00
shin 04e4950cbb detect and eliminate phantom keys. 2000-08-05 05:55:27 +00:00
takemura 733c04149a Experimental MQ200 video driver. It's just copy of bivideo plus power
management routine.
2000-07-22 08:53:33 +00:00
takemura d84cab3012 vrkiu_getc() will call over and over. but we want to see 'not implemented'
only once.
2000-07-22 08:26:00 +00:00
takemura db17c07fd3 mb_bus_space_init() had been removed accidentally when KGDB was supported.
It's need for initialize system_bus_iot.
2000-07-22 06:02:46 +00:00
jeffs 0e306bace6 kgdb support for the vr hpcmips machines.
From Ethan Solomita (ethan@geocast.com).
2000-07-20 21:03:36 +00:00
deberg 23f2392b19 don't define TAILQ_FOREACH, it's in sys/queue.h now. 2000-07-20 03:44:46 +00:00
takemura 45b6ec5476 Experimental APM compatible power management. 2000-07-02 10:01:30 +00:00
matt 0aa592b979 Add a table of calibrations. The MCR_500 one (640x240) makes the MCR_700A
(800x600) almost unusable.  Now the 700A has it's own.
2000-06-13 05:59:55 +00:00