mb/prodrive/atlas: Add support to read from EC EMI
commit964079f77cced3aedc468a888b6b6f32cfbec7c9
authorAngel Pons <th3fanbus@gmail.com>
Tue, 21 Mar 2023 15:13:36 +0000 (21 16:13 +0100)
committerLean Sheng Tan <sheng.tan@9elements.com>
Fri, 24 Mar 2023 16:36:42 +0000 (24 16:36 +0000)
treea582aa14ad438130326129ec0495a35a7086c8dd
parent3ba1621dab403625cb0852d5dad6285e0ab6744d
mb/prodrive/atlas: Add support to read from EC EMI

Implement initial support for EMI (Embedded Memory Interface), which
Microchip describes as "a standard run-time mechanism for the system
host to communicate with the Embedded Controller (EC) and other logical
components". EMI allows the host to access regions of EC memory without
requiring any assistance from the EC.

For now, Atlas only uses EMI 0. This change enables EMI 0, subsequent
commits will read data from it.

Change-Id: Ia899ae71e97f9fc259397dfb5fb84ca06545f5d8
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/73936
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
src/mainboard/prodrive/atlas/Makefile.inc
src/mainboard/prodrive/atlas/bootblock.c
src/mainboard/prodrive/atlas/devicetree.cb
src/mainboard/prodrive/atlas/ec.c [new file with mode: 0644]
src/mainboard/prodrive/atlas/ec.h [new file with mode: 0644]
src/mainboard/prodrive/atlas/mainboard.h [new file with mode: 0644]