mb/google/rex: Add variant specific SOC chip config update function

This patch adds support for variant specific chip config update similar
to commit 061a93f93d ("mb/google/brya: Add variant specific soc chip config update").

Signed-off-by: Anil Kumar <anil.kumar.k@intel.com>
Change-Id: I60a4042cba608fd527527af9340ec0215f3086ca
Reviewed-on: https://review.coreboot.org/c/coreboot/+/75046
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Jamie Ryu <jamie.m.ryu@intel.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
This commit is contained in:
Anil Kumar 2023-05-09 15:14:29 -07:00 committed by Lean Sheng Tan
parent 6f6353d570
commit 0e1f08d1fb
2 changed files with 13 additions and 0 deletions

View File

@ -8,6 +8,7 @@
#include <drivers/wwan/fm/chip.h> #include <drivers/wwan/fm/chip.h>
#include <ec/ec.h> #include <ec/ec.h>
#include <fw_config.h> #include <fw_config.h>
#include <soc/ramstage.h>
#include <stdlib.h> #include <stdlib.h>
#include <vendorcode/google/chromeos/chromeos.h> #include <vendorcode/google/chromeos/chromeos.h>
@ -18,6 +19,16 @@ void __weak fw_config_gpio_padbased_override(struct pad_config *padbased_table)
/* default implementation does nothing */ /* default implementation does nothing */
} }
void mainboard_update_soc_chip_config(struct soc_intel_meteorlake_config *config)
{
variant_update_soc_chip_config(config);
}
__weak void variant_update_soc_chip_config(struct soc_intel_meteorlake_config *config)
{
/* default implementation does nothing */
}
static void mainboard_init(void *chip_info) static void mainboard_init(void *chip_info)
{ {
struct pad_config *padbased_table; struct pad_config *padbased_table;

View File

@ -3,6 +3,7 @@
#ifndef __BASEBOARD_VARIANTS_H__ #ifndef __BASEBOARD_VARIANTS_H__
#define __BASEBOARD_VARIANTS_H__ #define __BASEBOARD_VARIANTS_H__
#include <chip.h>
#include <soc/gpio.h> #include <soc/gpio.h>
#include <soc/meminit.h> #include <soc/meminit.h>
#include <stdint.h> #include <stdint.h>
@ -21,6 +22,7 @@ const struct mb_cfg *variant_memory_params(void);
void variant_get_spd_info(struct mem_spd *spd_info); void variant_get_spd_info(struct mem_spd *spd_info);
int variant_memory_sku(void); int variant_memory_sku(void);
bool variant_is_half_populated(void); bool variant_is_half_populated(void);
void variant_update_soc_chip_config(struct soc_intel_meteorlake_config *config);
enum s0ix_entry { enum s0ix_entry {
S0IX_EXIT, S0IX_EXIT,