Richard Hughes
07c1b2d0f4
superio: Add InstallDuration default value
2019-03-23 16:13:52 +00:00
Richard Hughes
38b357b131
superio: Add support for writing new e-flash contents
2019-03-23 12:04:18 +00:00
Richard Hughes
6c2cc7868f
superio: Fix reading the attestation checksum
...
The 14th signature byte is 'hijacked' as the SPI to e-flash offset in the hw.
2019-03-23 12:04:18 +00:00
Richard Hughes
0573febb0b
superio: Add support for reading the device checksum
2019-03-23 12:04:18 +00:00
Richard Hughes
4702dfe0a7
superio: Use the chipset ID in the device name
2019-03-23 12:04:18 +00:00
Richard Hughes
763483411d
superio: Move the device flush before getting the register map
2019-03-23 12:04:18 +00:00
Richard Hughes
c5ef28ad5e
superio: Move all the IT89xx code to a subclassed device object
2019-03-23 12:04:18 +00:00
Richard Hughes
ebedf62b15
superio: Move all the IT85xx code to a subclassed device object
2019-03-23 12:04:18 +00:00
Richard Hughes
ebd55e5d14
superio: Split and export fu_superio_device_ec_writeX()
2019-03-23 12:04:18 +00:00
Richard Hughes
08609f3920
superio: Remove the port from fu_superio_device_ec_read()
...
It's always going to be PM1_IOBAD0.
2019-03-23 12:04:18 +00:00
Richard Hughes
1fccae68ad
superio: Move the register read/write into the FuSuperioDevice object
...
This will allow us to use them from subclassed objects.
2019-03-23 12:04:18 +00:00
Richard Hughes
140ce926ae
superio: Check the IOBAD0 is usable during setup
2019-03-23 12:04:18 +00:00
Richard Hughes
4c9d00c1d5
superio: Use fu_device_set_firmware_size()
2019-03-23 12:04:18 +00:00
Richard Hughes
bb73e6594d
superio: Move some constants out to the common header
2019-03-23 12:04:18 +00:00
Richard Hughes
f83639fb77
superio: Use GObject properties in FuSuperioDevice
2019-03-23 12:04:18 +00:00
Richard Hughes
b12d0bfec5
superio: Convert FuSuperioDevice to be derivable
...
We'll need this for future refactoring.
2019-03-23 12:04:18 +00:00
Richard Hughes
b7537782cb
trivial: Fix the debug print when dumping SuperIO registers
...
Found using Coverity.
2019-03-18 16:35:01 +00:00
Richard Hughes
37b6c70aa0
superio: Add list of SPI commands for future usage
2019-03-18 15:59:33 +00:00
Richard Hughes
079b7b6f9d
superio: Get the chip size from the EC rather than hardcoding
...
I'm not sure why we can't just use SIO_LDNxx_IDX_CHIPID1, but lets do the same
as the vendor tool in case there is a good reason that I don't know about.
2019-03-15 13:47:57 +00:00
Richard Hughes
a0f9d2e110
superio: Fix a trivial build warning
...
Fixes https://github.com/hughsie/fwupd/issues/1081
2019-03-08 18:33:06 +00:00
Richard Hughes
19a9fc4e6d
superio: Implement detach() and attach()
...
This gets us closer to actually being able to flash the hardware.
2019-02-14 09:12:26 -06:00
Richard Hughes
5acfc64a78
superio: Correct the names of some constants and improve debugging support
2019-02-14 09:12:26 -06:00
Richard Hughes
8cfbb25c31
trivial: Fix a few 'Sign check of bitwise op' LGTM warnings
...
Not really a bug, as @crc and @data are both unsigned.
2019-02-12 06:28:51 -06:00
Richard Hughes
bfd946e463
Use '#pragma once' to avoid a lot of boilerplate
2019-02-09 08:42:30 -06:00
Richard Hughes
65c81921b6
Add fu_device_add_instance_id() and prefer explicit conversion
2019-02-04 15:19:57 +00:00
Richard Hughes
f425d29a28
Show a console warning if loading an out-of-tree plugin
...
Fixes https://github.com/hughsie/fwupd/issues/950
2019-01-19 07:26:20 +00:00
Richard Hughes
831eb7ef7e
superio: Support IT89xx devices
...
We can switch to LDN 0x11 and read the IO base address for the PM1 legacy port
rather than hardcoding data and command ports.
2019-01-08 12:53:57 +00:00
Richard Hughes
0e17e6d030
Fix building with -Wl,-z,defs
...
This allows us to find undefined references at compile time, not runtime.
2018-12-25 16:10:54 -06:00
Richard Hughes
ba2f0ae1d4
trivial: Document the GUID generation scheme
...
Fixes https://github.com/hughsie/fwupd/issues/837
2018-11-08 20:39:46 +00:00
Richard Hughes
57bf9d9eed
superio: Set the physical and logical IDs
2018-09-11 16:02:03 +01:00
Richard Hughes
543e47a5a9
trivial: Use a fixed GUID for superio
...
It seems the 'Notebook' vendor is padded with spaces in the DMI data, and so
the GUID changes now we're following the same stripping scheme of Windows 10.
2018-09-11 15:21:31 +01:00
Richard Hughes
e39801f00d
trivial: Fix some NULL/FALSE confusion
2018-09-04 20:37:17 +01:00
Richard Hughes
4adf3bb52c
trivial: Remove duplicate header includes
2018-09-04 08:22:39 -05:00
Richard Hughes
1263446b23
trivial: Add a 'setup' vfunc that is used after open()
...
The setup() is the counterpart to probe(), the difference being the former needs
the device open and the latter does not.
This allows objects that derive from FuDevice, and use FuDeviceLocker to use
open() and close() without worrying about the performance implications of
probing the hardware, i.e. open() now simply opens a file or device.
2018-09-03 19:56:26 -05:00
Richard Hughes
e274f6654b
superio: Add support for the W740SU
...
From Thomas Krug, many thanks.
2018-08-27 09:32:49 +01:00
Richard Hughes
6bf9879189
trivial: Use the BaseboardProduct DMI match for superio
...
This will match more EC hardware that uses a customized BIOS.
2018-08-27 09:32:05 +01:00
Richard Hughes
16e85aa8cf
superio: Add a new plugin to enumerate EC firmware
2018-08-24 20:37:27 +01:00