Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hpcmips/vr add MobilePro770(MC/R520A) parameters.
details: https://anonhg.NetBSD.org/src/rev/4e1d43bcc33d
branches: trunk
changeset: 507529:4e1d43bcc33d
user: sato <sato%NetBSD.org@localhost>
date: Sat Mar 24 15:53:37 2001 +0000
description:
add MobilePro770(MC/R520A) parameters.
diffstat:
sys/arch/hpcmips/vr/vrc4172pwm.c | 22 ++++++++++++++++++----
1 files changed, 18 insertions(+), 4 deletions(-)
diffs (62 lines):
diff -r fd675d938721 -r 4e1d43bcc33d sys/arch/hpcmips/vr/vrc4172pwm.c
--- a/sys/arch/hpcmips/vr/vrc4172pwm.c Sat Mar 24 15:31:23 2001 +0000
+++ b/sys/arch/hpcmips/vr/vrc4172pwm.c Sat Mar 24 15:53:37 2001 +0000
@@ -1,4 +1,4 @@
-/* $Id: vrc4172pwm.c,v 1.10 2001/03/12 08:46:27 sato Exp $ */
+/* $Id: vrc4172pwm.c,v 1.11 2001/03/24 15:53:37 sato Exp $ */
/*
* Copyright (c) 2000,2001 SATO Kazumi. All rights reserved.
@@ -83,21 +83,27 @@
/*
* platform related parameters
*/
+struct vrc4172pwm_param vrc4172pwm_mcr520_param = {
+ 1, /* probe broken */
+ 8, /* levels */
+ { 0x16, 0x1f, 0x24, 0x2a, 0x2f, 0x34, 0x3a, 0x3f }
+};
+
struct vrc4172pwm_param vrc4172pwm_mcr530_param = {
0,
- 8,
+ 8, /* levels */
{ 0x16, 0x1b, 0x20, 0x25, 0x2a, 0x30, 0x37, 0x3f }
};
struct vrc4172pwm_param vrc4172pwm_mcr700_param = {
1, /* probe broken */
- 8,
+ 8, /* levels */
{ 0x12, 0x15, 0x18, 0x1d, 0x24, 0x2d, 0x38, 0x3f }
};
struct vrc4172pwm_param vrc4172pwm_sigmarion_param = {
0,
- 8,
+ 8, /* levels */
{ 0xe, 0x13, 0x18, 0x1c, 0x23, 0x29, 0x32, 0x3f }
};
@@ -105,6 +111,12 @@
struct platid_data vrc4172pwm_platid_param_table[] = {
{ &platid_mask_MACH_NEC_MCR_430,
&vrc4172pwm_mcr530_param},
+ { &platid_mask_MACH_NEC_MCR_510,
+ &vrc4172pwm_mcr520_param},
+ { &platid_mask_MACH_NEC_MCR_520,
+ &vrc4172pwm_mcr520_param},
+ { &platid_mask_MACH_NEC_MCR_520A,
+ &vrc4172pwm_mcr520_param},
{ &platid_mask_MACH_NEC_MCR_530,
&vrc4172pwm_mcr530_param},
{ &platid_mask_MACH_NEC_MCR_530A,
@@ -241,6 +253,8 @@
vrc4172pwm_event, sc);
vrc4172pwm_init_brightness(sc);
+ if (sc->sc_param == NULL)
+ printf("vrc4172pwm: NO parameter found. DISABLE pwm control\n");;
this_pwm = sc;
}
Home |
Main Index |
Thread Index |
Old Index