Re: smartbattery support

Pedro Venda
2004-10-08T19:36:09Z

Li, Shaohua wrote:
>>On Thu, Oct 07, 2004 at 09:43:20PM +0800, Li, Shaohua wrote:
>>
>>>You needed an EC-based SMBus host driver (IIRC, some Acer latops
>
> defined
>
>>>such host in DSDT). ACPI spec has the definition for EC-based SMBus
>
> host
>
>>>interface. Second, a sensor driver for reading smart battery
>
> information
>
>>>is required.
>>>
>>
>>Some times ago, for a toshiba laptop, I began an i2c-acpi-ec driver:
>>ftp://ftp.poupinou.org/acpi/i2c-acpi-ec.c
>>
>>It's a little bit buggy though but this allowed for me to access the
>>sensors
>>behind the EC. The main trouble was that there were not actually a
>>smbus declared in the ACPI namespace and it was needed to hardcode
>
> where
>
>>is the base adress in the EC space.
>>You may try to start with that maybe, and I guess a real
>
> acpi_ec_smb_probe
>
>>function must be written.
>
> Some Acer laptops define the SMBus host as below:
> Device (SMBC)
> {
> Name (_HID, "ACPI0001")
> Name (_EC, 0x1820)
> Device (SBS0)
> {
> Name (_HID, "ACPI0002")
> Name (_SBS, 0x02)
> }
> }
> The base address and the notification number are defined on the _EC
> method.
> Please check if you system has such definition.

my acer travelmate 4001WLmi looks like this:

Device (SMBC)
{
Name (_HID, "ACPI0001")
Name (_EC, 0x1820)
Device (SBS0)
{
Name (_HID, "ACPI0002")
Name (_SBS, 0x02)
}
}

it's exactly the same as your example.

what kind of information can i extract from this code? from your e-mail
i get that 0x1820 is the EC controller address... but where is that
address used? is it an SMBUS address? is it something else?

regards,
pedro venda.