Chrome platform driver development
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Add support for IO memory mapped EC
@ 2025-01-07 17:45 Gwendal Grignou
  2025-01-07 17:45 ` [PATCH v3 1/2] FROMLIST: platform/chrome: cros_ec_lpc: Merge lpc_driver_ops into ec private structure Gwendal Grignou
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Gwendal Grignou @ 2025-01-07 17:45 UTC (permalink / raw)
  To: bleung, tzungbi; +Cc: chrome-platform, dustin, ben, Gwendal Grignou

Some EC - Realtek - have their register IO mapped by the BIOS -
coreboot. They are not using the well know io register.

The memory mapping information is retrieved through the ACPI CRS
resource, and is used to access the registers.

To ease the support of these ECs, the global structure and accessor
funcions are now aware of the EC device private structure.

Gwendal Grignou (2):
  platform/chrome: cros_ec_lpc: Merge lpc_driver_ops into ec
    private structure
  platform/chrome: cros_ec_lpc: Add Support for direct EC
    register memory access

---
Changes in v3:
  Fix handling of devm_ioremap error
  Reword commit message to be more descriptive.
Changes in v2:
  Removed obvious comments, unnecessary case statement and fix error
  code return.

 drivers/platform/chrome/cros_ec_lpc.c | 203 ++++++++++++++++++--------
 1 file changed, 139 insertions(+), 64 deletions(-)

-- 
2.47.1.613.gc27f4b7a9f-goog


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-01-08  2:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-07 17:45 [PATCH v3 0/2] Add support for IO memory mapped EC Gwendal Grignou
2025-01-07 17:45 ` [PATCH v3 1/2] FROMLIST: platform/chrome: cros_ec_lpc: Merge lpc_driver_ops into ec private structure Gwendal Grignou
2025-01-07 17:45 ` [PATCH v3 2/2] FROMLIST: platform/chrome: cros_ec_lpc: Add Support for direct EC register memory access Gwendal Grignou
2025-01-08  2:26 ` [PATCH v3 0/2] Add support for IO memory mapped EC Tzung-Bi Shih

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox