Change primary postcode interface to byte array
ARM-based systems use 9-byte postcodes, which cannot be represented by
uint64_t variable. This change replaces `uint64_t` with `array[byte]` to
handle larger postcodes.
Change-Id: I594695492ac39648da78c79be650dd02ff05931b
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
diff --git a/yaml/xyz/openbmc_project/State/Boot/PostCode.interface.yaml b/yaml/xyz/openbmc_project/State/Boot/PostCode.interface.yaml
index 61ee2ac..0253b98 100644
--- a/yaml/xyz/openbmc_project/State/Boot/PostCode.interface.yaml
+++ b/yaml/xyz/openbmc_project/State/Boot/PostCode.interface.yaml
@@ -28,7 +28,7 @@
the oldest boot cycle.
returns:
- name: Codes
- type: dict[uint64, struct[uint64,array[byte]]]
+ type: dict[uint64, struct[array[byte],array[byte]]]
description: >
An array of post codes and timestamp in microseconds since epoch
- name: GetPostCodes
@@ -43,7 +43,7 @@
the oldest boot cycle.
returns:
- name: Codes
- type: array[struct[uint64,array[byte]]]
+ type: array[struct[array[byte],array[byte]]]
description: >
An array of post codes of one boot cycle.
diff --git a/yaml/xyz/openbmc_project/State/Boot/Raw.interface.yaml b/yaml/xyz/openbmc_project/State/Boot/Raw.interface.yaml
index b288cb0..5446dfc 100644
--- a/yaml/xyz/openbmc_project/State/Boot/Raw.interface.yaml
+++ b/yaml/xyz/openbmc_project/State/Boot/Raw.interface.yaml
@@ -3,6 +3,6 @@
properties:
- name: Value
- type: struct[uint64,array[byte]]
+ type: struct[array[byte],array[byte]]
description: >
The POST code value.