diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2021-02-13 01:05:56 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-02-14 20:52:03 +0000 |
commit | dba3fe7ad168c5339535973f1ef7ff0f7f33bd5e (patch) | |
tree | 9554492e9427733dbc464675b936b28d13ec7619 /src/soc/amd/common/block/include/amdblocks | |
parent | 6962b6ecd395093e63824bb337bbb45492d2ce48 (diff) |
soc/amd/picasso: move data_fabric_read32 to common code
The exact same mechanism is used on Cezanne.
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I3179d8ec35efa29f9bc66854c3690b389d980bba
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50619
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd/common/block/include/amdblocks')
-rw-r--r-- | src/soc/amd/common/block/include/amdblocks/data_fabric.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/soc/amd/common/block/include/amdblocks/data_fabric.h b/src/soc/amd/common/block/include/amdblocks/data_fabric.h new file mode 100644 index 0000000000..606d56419f --- /dev/null +++ b/src/soc/amd/common/block/include/amdblocks/data_fabric.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef AMD_BLOCK_DATA_FABRIC_H +#define AMD_BLOCK_DATA_FABRIC_H + +#include <stdint.h> + +#define BROADCAST_FABRIC_ID 0xff + +uint32_t data_fabric_read32(uint8_t function, uint16_t reg, uint8_t instance_id); + +#endif /* AMD_BLOCK_DATA_FABRIC_H */ |