Fred Reitberger has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/69319 )
Change subject: mb/amd/chausie/ec.c: Enable WLAN ......................................................................
mb/amd/chausie/ec.c: Enable WLAN
Enable WLAN power and deassert the various radio disables.
TEST=boot chausie
Signed-off-by: Fred Reitberger reitbergerfred@gmail.com Change-Id: I2d21905001fa776c0d5c864d83dcd697e3febe0a --- M src/mainboard/amd/chausie/ec.c 1 file changed, 30 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/19/69319/1
diff --git a/src/mainboard/amd/chausie/ec.c b/src/mainboard/amd/chausie/ec.c index 78465fa..f1e5284 100644 --- a/src/mainboard/amd/chausie/ec.c +++ b/src/mainboard/amd/chausie/ec.c @@ -18,14 +18,23 @@
#define EC_GPIO_A_ADDR 0xAA #define EC_GPIO_WWAN_PWREN BIT(3) +#define EC_GPIO_WLAN_PWREN BIT(4) #define EC_GPIO_M2_SSD0_PWREN BIT(6) #define EC_GPIO_LOM_PWREN BIT(7)
+#define EC_GPIO_B_ADDR 0xAB +#define EC_GPIO_WL_RADIO_DIS BIT(0) +#define EC_GPIO_BT_RADIO_DIS BIT(2) +#define EC_GPIO_GNSS_RADIO_DIS_N BIT(5) +#define EC_GPIO_MAIN_RADIO_DIS_N BIT(6) +#define EC_GPIO_WWAN_POWER_OFF_N BIT(7) + #define EC_GPIO_C_ADDR 0xAC #define EC_GPIO_DT_N_WLAN_SW BIT(1) #define EC_GPIO_MP2_SEL BIT(2) #define EC_GPIO_WWAN_N_LOM_SW BIT(3)
+ #define EC_SW02_ADDR 0xB7 #define EC_SW02_MS BIT(7)
@@ -46,9 +55,15 @@ ec_write(EC_GPIO_8_ADDR, tmp);
tmp = ec_read(EC_GPIO_A_ADDR); - tmp |= EC_GPIO_M2_SSD0_PWREN | EC_GPIO_LOM_PWREN | EC_GPIO_WWAN_PWREN; + tmp |= EC_GPIO_M2_SSD0_PWREN | EC_GPIO_LOM_PWREN; + tmp |= EC_GPIO_WLAN_PWREN | EC_GPIO_WWAN_PWREN; ec_write(EC_GPIO_A_ADDR, tmp);
+ tmp = ec_read(EC_GPIO_B_ADDR); + tmp |= EC_GPIO_GNSS_RADIO_DIS_N | EC_GPIO_MAIN_RADIO_DIS_N; + tmp |= EC_GPIO_WWAN_POWER_OFF_N; + ec_write(EC_GPIO_B_ADDR, tmp); + tmp = ec_read(EC_GPIO_C_ADDR); tmp |= EC_GPIO_WWAN_N_LOM_SW | EC_GPIO_MP2_SEL | EC_GPIO_DT_N_WLAN_SW; ec_write(EC_GPIO_C_ADDR, tmp);