Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fby4: sd: Obtain BIOS information via PLDM SMBIOS #1500

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions meta-facebook/yv4-sd/boards/ast1030_evb.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -224,3 +224,8 @@
dma-mode;
dma-ringbuf-size = <0x4000>;
};

&kcs3 {
status = "okay";
addr = <0xca2>;
};
2 changes: 2 additions & 0 deletions meta-facebook/yv4-sd/src/platform/plat_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include "plat_class.h"
#include "plat_i3c.h"
#include "pcc.h"
#include "plat_kcs.h"

SCU_CFG scu_cfg[] = {
//register value
Expand Down Expand Up @@ -88,6 +89,7 @@ void pal_post_init()
{
plat_mctp_init();
pcc_init();
kcs_init();
pldm_load_state_effecter_table(PLAT_PLDM_MAX_STATE_EFFECTER_IDX);
pldm_assign_gpio_effecter_id(PLAT_EFFECTER_ID_GPIO_HIGH_BYTE);
}
Expand Down
24 changes: 24 additions & 0 deletions meta-facebook/yv4-sd/src/platform/plat_kcs.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#include "plat_kcs.h"
#include "kcs.h"

void kcs_init(void)
{
char *kcs_config[] = { "KCS3" };
kcs_device_init(kcs_config, ARRAY_SIZE(kcs_config));
}
22 changes: 22 additions & 0 deletions meta-facebook/yv4-sd/src/platform/plat_kcs.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#ifndef PLAT_KCS_H
#define PLAT_KCS_H

void kcs_init(void);

#endif
Loading