platform: encode_get_pdr_repository_info_req() in PLDM platform

Add encode API for GetPDRRepositoryInfo request based on
DSP0248 1.3.0 Section 26.1 Table 68.

Change-Id: I61c3d11c1e15eccfd7f96795e5098b0e0f2d1423
Signed-off-by: Vishnu Santhosh <quic_vishsant@quicinc.com>
diff --git a/src/dsp/platform.c b/src/dsp/platform.c
index 18de641..7ad8e2f 100644
--- a/src/dsp/platform.c
+++ b/src/dsp/platform.c
@@ -393,6 +393,24 @@
 	return PLDM_SUCCESS;
 }
 
+LIBPLDM_ABI_TESTING
+int encode_get_pdr_repository_info_req(uint8_t instance_id,
+				       struct pldm_msg *msg,
+				       size_t payload_length LIBPLDM_CC_UNUSED)
+{
+	if (!msg) {
+		return -EINVAL;
+	}
+
+	struct pldm_header_info header = { 0 };
+	header.msg_type = PLDM_REQUEST;
+	header.instance = instance_id;
+	header.pldm_type = PLDM_PLATFORM;
+	header.command = PLDM_GET_PDR_REPOSITORY_INFO;
+
+	return pack_pldm_header_errno(&header, &(msg->hdr));
+}
+
 LIBPLDM_ABI_STABLE
 int encode_get_pdr_repository_info_resp(
 	uint8_t instance_id, uint8_t completion_code, uint8_t repository_state,