mb/google/guybrush/var/nipperkin: override dxio to turn off WLAN ASPM L1.2/L1.2

turn off WLAN ASPM L1.1/L1.2 as a short-term w/a for WLAN AP probe failure.

BUG=b:198258604
BRANCH=guybrush
TEST=emerge-guybrush coreboot chromeos-bootimage
     AP is able to be probed by wlan module

Signed-off-by: Kevin Chiu <kevin.chiu@quantatw.com>
Change-Id: Ic7be523626b0ff6e4b1c66ba6af13b15061ef4cb
Reviewed-on: https://review.coreboot.org/c/coreboot/+/58417
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
This commit is contained in:
Kevin Chiu 2021-10-18 19:45:37 +08:00 committed by Raul Rangel
parent 5fa09cb17f
commit 1a950d6466
4 changed files with 29 additions and 7 deletions

View File

@ -7,13 +7,6 @@
#include <soc/gpio.h>
#include <types.h>
enum dxio_port_id {
WLAN,
SD,
WWAN_NVME,
NVME
};
/* All PCIe Resets are handled in coreboot */
static fsp_dxio_descriptor guybrush_czn_dxio_descriptors[] = {
{ /* WLAN */
@ -126,6 +119,10 @@ static const fsp_ddi_descriptor guybrush_czn_ddi_descriptors[] = {
}
};
void __weak variant_update_dxio_descriptors(fsp_dxio_descriptor *dxio_descriptors)
{
}
void mainboard_get_dxio_ddi_descriptors(
const fsp_dxio_descriptor **dxio_descs, size_t *dxio_num,
const fsp_ddi_descriptor **ddi_descs, size_t *ddi_num)
@ -138,6 +135,8 @@ void mainboard_get_dxio_ddi_descriptors(
if (variant_has_pcie_wwan())
guybrush_czn_dxio_descriptors[WWAN_NVME].gpio_group_id = GPIO_18;
variant_update_dxio_descriptors(guybrush_czn_dxio_descriptors);
*dxio_descs = guybrush_czn_dxio_descriptors;
*dxio_num = ARRAY_SIZE(guybrush_czn_dxio_descriptors);

View File

@ -5,6 +5,7 @@
#include <amdblocks/gpio.h>
#include <soc/pci_devs.h>
#include <platform_descriptors.h>
#define WLAN_DEVFN PCIE_GPP_2_0_DEVFN
#define SD_DEVFN PCIE_GPP_2_1_DEVFN
@ -48,4 +49,13 @@ bool variant_has_fpmcu(void);
bool variant_has_pcie_wwan(void);
void variant_update_dxio_descriptors(fsp_dxio_descriptor *dxio_descriptors);
enum dxio_port_id {
WLAN,
SD,
WWAN_NVME,
NVME
};
#endif /* __BASEBOARD_VARIANTS_H__ */

View File

@ -3,5 +3,8 @@
bootblock-y += gpio.c
romstage-y += gpio.c
ramstage-y += gpio.c
bootblock-y += variant.c
romstage-y += variant.c
ramstage-y += variant.c
subdirs-y += ./memory

View File

@ -0,0 +1,10 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#include <baseboard/variants.h>
#include <device/device.h>
void variant_update_dxio_descriptors(fsp_dxio_descriptor *dxio_descriptors)
{
dxio_descriptors[WLAN].link_aspm_L1_1 = false;
dxio_descriptors[WLAN].link_aspm_L1_2 = false;
}