From: Jiamin Miao Date: Mon, 13 Jul 2015 11:28:28 +0000 (+0800) Subject: PD#108916:change to use low level irq trigger for wifi wakeup X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7692a06b9a697320416d1a74f276db30816a4daa;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_amlogic_kernel-modules_dhd-driver.git PD#108916:change to use low level irq trigger for wifi wakeup Change-Id: Iec6238a36de36c209ca80bc59a9e8edd49ed9ef2 --- diff --git a/bcmdhd_1_201_59_x/Makefile b/bcmdhd_1_201_59_x/Makefile index a706508..d33381b 100644 --- a/bcmdhd_1_201_59_x/Makefile +++ b/bcmdhd_1_201_59_x/Makefile @@ -62,7 +62,7 @@ dhd-objs += $(DHDOFILES) #ifeq ($(CONFIG_MACH_ODROID_4210),y) DHDOFILES += dhd_gpio.o -DHDCFLAGS += -DCUSTOMER_HW -DDHD_OF_SUPPORT -DCUSTOMER_HW_AMLOGIC +DHDCFLAGS += -DCUSTOMER_HW -DDHD_OF_SUPPORT -DCUSTOMER_HW_AMLOGIC -DHW_OOB_LOW_LEVEL #DHDCFLAGS += -DBCMWAPI_WPI -DBCMWAPI_WAI #endif diff --git a/bcmdhd_1_201_59_x/bcmsdh_sdmmc.c b/bcmdhd_1_201_59_x/bcmsdh_sdmmc.c index 4bdd47e..f5ece15 100644 --- a/bcmdhd_1_201_59_x/bcmsdh_sdmmc.c +++ b/bcmdhd_1_201_59_x/bcmsdh_sdmmc.c @@ -712,7 +712,11 @@ sdioh_enable_hw_oob_intr(sdioh_info_t *sd, bool enable) uint8 data; if (enable) +#ifdef HW_OOB_LOW_LEVEL + data = SDIO_SEPINT_MASK | SDIO_SEPINT_OE; +#else data = SDIO_SEPINT_MASK | SDIO_SEPINT_OE | SDIO_SEPINT_ACT_HI; +#endif else data = SDIO_SEPINT_ACT_HI; /* disable hw oob interrupt */