diff options
author | Angel Pons <th3fanbus@gmail.com> | 2023-03-21 16:13:36 +0100 |
---|---|---|
committer | Lean Sheng Tan <sheng.tan@9elements.com> | 2023-03-24 16:36:42 +0000 |
commit | 964079f77cced3aedc468a888b6b6f32cfbec7c9 (patch) | |
tree | a582aa14ad438130326129ec0495a35a7086c8dd /src/mainboard/prodrive/atlas/mainboard.h | |
parent | 3ba1621dab403625cb0852d5dad6285e0ab6744d (diff) |
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>
Diffstat (limited to 'src/mainboard/prodrive/atlas/mainboard.h')
-rw-r--r-- | src/mainboard/prodrive/atlas/mainboard.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mainboard/prodrive/atlas/mainboard.h b/src/mainboard/prodrive/atlas/mainboard.h new file mode 100644 index 0000000000..a03cff4f47 --- /dev/null +++ b/src/mainboard/prodrive/atlas/mainboard.h @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef ATLAS_MAINBOARD_H +#define ATLAS_MAINBOARD_H + +/* Embedded controller settings */ +#define EC_IDX_PORT 0x2e +#define EMI_0_IO_BASE_ADDR 0xc00 + +#endif /* ATLAS_MAINBOARD_H */ |