mb/google/dedede/var/pirika: Add Wifi SAR for pasara
Add wifi sar for pasara BUG=b:216411442 TEST=enable CHROMEOS_WIFI_SAR in config of coreboot, emerge-dedede coreboot-private-files-baseboard-dedede coreboot chromeos-bootimage. Signed-off-by: Frank Chu <Frank_Chu@pegatron.corp-partner.google.com> Change-Id: Ida475307c8448c5c2758c289da7708484bcb89e3 Reviewed-on: https://review.coreboot.org/c/coreboot/+/61705 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Shou-Chieh Hsu <shouchieh@google.com> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
This commit is contained in:
parent
122e07c8f1
commit
9fc741d32f
|
@ -139,6 +139,7 @@ config BOARD_GOOGLE_PIRIKA
|
|||
bool "-> Pirika"
|
||||
select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
|
||||
select BASEBOARD_DEDEDE_LAPTOP
|
||||
select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
|
||||
|
||||
config BOARD_GOOGLE_CAPPY2
|
||||
bool "-> Cappy2"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
## SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
ramstage-y += variant.c
|
||||
|
||||
ramstage-y += gpio.c
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <ec/google/chromeec/ec.h>
|
||||
#include <sar.h>
|
||||
|
||||
enum {
|
||||
PIRETTE_SKU_START = 0x1D0000,
|
||||
PIRETTE_SKU_END = 0x1Dffff,
|
||||
PIRIKA_SKU_START = 0x1E0000,
|
||||
PIRIKA_SKU_END = 0x1Effff,
|
||||
PASARA_SKU_START = 0x2A0000,
|
||||
PASARA_SKU_END = 0x2Affff,
|
||||
};
|
||||
const char *get_wifi_sar_cbfs_filename(void)
|
||||
{
|
||||
uint32_t sku_id = google_chromeec_get_board_sku();
|
||||
|
||||
if (sku_id >= PASARA_SKU_START && sku_id <= PASARA_SKU_END)
|
||||
return "wifi_sar-pasara.hex";
|
||||
|
||||
return WIFI_SAR_CBFS_DEFAULT_FILENAME;
|
||||
}
|
Loading…
Reference in New Issue