[Trac #136] SERIRQ can run in quiet mode when 3700 is deployed
Zarro Boogs per Child
bugtracker at laptop.org
Fri Oct 20 02:11:53 EDT 2006
#136: SERIRQ can run in quiet mode when 3700 is deployed
-----------------------+----------------------------------------------------
Reporter: tsylla | Owner: rsmith
Type: defect | Status: new
Priority: high | Milestone: BTest-1
Component: linuxbios | Resolution:
Keywords: |
-----------------------+----------------------------------------------------
Comment (by ted.juan):
Hi Jim,[[BR]]
The following is the simple program for changing EC to quiet or continuous
mode.
Please help us to add in the Linux Bios. Thanks.
We have already do some test in A and B board. That work well.
If ( LB detect the 3700 chip)
{
Set EC to quiet mode; // must init before setting
MSR
Set MSR to quiet mode;
}
else
{
Set MSR to continuous mode;
}
1. LB detect the 3700 chip
Outp(0x381, 0xFF);
Outp(0x382, 0x1F);
Type = Inp(0x383);
If (Type == 0x09) then is 3920
else is 3700
[[BR]]
2. Set MSR to quiet mode
MSR 0x5140004E = 0xeffd00c0
[[BR]]
3. Set EC to continuous mode
Outp(0x381, 0xFE);
Outp(0x382, 0x95);
Mode = inp(0x383);
Mode |= 0x02;
Outp(0x383, Mode);
[[BR]]
4. Set EC to quiet mode
Outp(0x381, 0xFE);
Outp(0x382, 0x95);
Mode = inp(0x383);
Mode &= 0xFD;
Outp(0x383, Mode);
[[BR]]
We also support the new command in version 0x20 (PQ2A11)
0x9=> get chip type,
0x10=> set quiet mode
0x11=> set continuous mode.
We don’t recommend using the new command to change quiet/continuous mode
in Linux Bios now for being compatible with the OLD EC code.
But we can use it in LinuxBios in the feature
Ted
--
Ticket URL: <http://dev.laptop.org/ticket/136#comment:4>
One Laptop Per Child <http://laptop.org/>
More information about the Devel
mailing list