Cpu: Update Step and Microcode type to uint
Looking at the Redfish Resource and Schema guide:
https://www.dmtf.org/sites/default/files/standards/documents/DSP2046_2021.2.pdf
Section 6.86.6 at page 668, we see:
```
"Manufacturer": "Intel(R) Corporation",
"Model": "Multi-Core Intel(R) Xeon(R) processor 7xxx Series",
"ProcessorId": {
"VendorId": "GenuineIntel",
"IdentificationRegisters": "0x34AC34DC8901274A",
"EffectiveFamily": "0x42",
"EffectiveModel": "0x61",
"Step": "0x1",
"MicrocodeInfo": "0x429943"
},
```
We see that Step and Microcode information should be represented in hex.
To ensure this, we should pass in uint and let the external interface do
the conversion to hex string.
Following Intel specs, Stepping seems to be 1 byte, and Microcode 4.
https://en.wikipedia.org/wiki/CPUID#EAX=1:_Processor_Info_and_Feature_Bits
Signed-off-by: Brandon Kim <brandonkim@google.com>
Change-Id: Ifb2baf2c04da7bad08e2b1b01bb6db7acebc4e36
diff --git a/yaml/xyz/openbmc_project/Inventory/Item/Cpu.interface.yaml b/yaml/xyz/openbmc_project/Inventory/Item/Cpu.interface.yaml
index 856465a..53eca3e 100644
--- a/yaml/xyz/openbmc_project/Inventory/Item/Cpu.interface.yaml
+++ b/yaml/xyz/openbmc_project/Inventory/Item/Cpu.interface.yaml
@@ -52,13 +52,15 @@
description: >
The maximum number of threads the processor can support.
- name: Step
- type: string
+ type: uint16
description: >
The step value for this processor
+ default: 0
- name: Microcode
- type: string
+ type: uint32
description: >
The microcode information for this processor
+ default: 0
enumerations:
- name: Capability