From: gwl Date: Sat, 19 Oct 2013 08:57:56 +0000 (+0800) Subject: Consummate bcm wifi oob on all platform(Wake gpio define). X-Git-Tag: firefly_0821_release~6550 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ae6918710275a6cb17b65a61b3d87469850466b1;p=firefly-linux-kernel-4.4.55.git Consummate bcm wifi oob on all platform(Wake gpio define). --- diff --git a/arch/arm/mach-rk30/board-rk3028-86v-sdmmc-conifg.c b/arch/arm/mach-rk30/board-rk3028-86v-sdmmc-conifg.c index 8c0dbbd21307..bc751de3ed88 100755 --- a/arch/arm/mach-rk30/board-rk3028-86v-sdmmc-conifg.c +++ b/arch/arm/mach-rk30/board-rk3028-86v-sdmmc-conifg.c @@ -60,6 +60,10 @@ int rk31sdk_get_sdmmc0_pin_io_voltage(void) #define RK29SDK_SD_CARD_DETECT_N RK30_PIN1_PC1 //According to your own project to set the value of card-detect-pin. #define RK29SDK_SD_CARD_INSERT_LEVEL GPIO_LOW // set the voltage of insert-card. Please pay attention to the default setting. +//wake up host gpio +#define RK30SDK_WIFI_GPIO_WIFI_INT_B RK30_PIN3_PD2 +#define RK30SDK_WIFI_GPIO_WIFI_INT_B_ENABLE_VALUE GPIO_HIGH + /* * Define wifi module's power and reset gpio, and gpio sensitive level. * Please set the value according to your own project. diff --git a/arch/arm/mach-rk30/board-rk3028-tb-sdmmc-conifg.c b/arch/arm/mach-rk30/board-rk3028-tb-sdmmc-conifg.c index 122cf0fadf28..87b1ccf952ef 100755 --- a/arch/arm/mach-rk30/board-rk3028-tb-sdmmc-conifg.c +++ b/arch/arm/mach-rk30/board-rk3028-tb-sdmmc-conifg.c @@ -60,6 +60,10 @@ int rk31sdk_get_sdmmc0_pin_io_voltage(void) #define RK29SDK_SD_CARD_DETECT_N RK30_PIN3_PB0 //According to your own project to set the value of card-detect-pin. #define RK29SDK_SD_CARD_INSERT_LEVEL GPIO_LOW // set the voltage of insert-card. Please pay attention to the default setting. +//wake up host gpio +#define RK30SDK_WIFI_GPIO_WIFI_INT_B RK30_PIN3_PD2 +#define RK30SDK_WIFI_GPIO_WIFI_INT_B_ENABLE_VALUE GPIO_HIGH + /* * Define wifi module's power and reset gpio, and gpio sensitive level. * Please set the value according to your own project. diff --git a/arch/arm/mach-rk30/board-rk3168-86v-old-sdmmc-config.c b/arch/arm/mach-rk30/board-rk3168-86v-old-sdmmc-config.c index b873bba667bb..bba4fb6f7af9 100755 --- a/arch/arm/mach-rk30/board-rk3168-86v-old-sdmmc-config.c +++ b/arch/arm/mach-rk30/board-rk3168-86v-old-sdmmc-config.c @@ -60,6 +60,10 @@ int rk31sdk_get_sdmmc0_pin_io_voltage(void) #define RK29SDK_SD_CARD_DETECT_N RK30_PIN3_PB0 //According to your own project to set the value of card-detect-pin. #define RK29SDK_SD_CARD_INSERT_LEVEL GPIO_LOW // set the voltage of insert-card. Please pay attention to the default setting. +//wake up host gpio +#define RK30SDK_WIFI_GPIO_WIFI_INT_B RK30_PIN3_PD2 +#define RK30SDK_WIFI_GPIO_WIFI_INT_B_ENABLE_VALUE GPIO_HIGH + /* * Define wifi module's power and reset gpio, and gpio sensitive level. * Please set the value according to your own project. diff --git a/arch/arm/mach-rk30/board-rk3168-86v-sdmmc-config.c b/arch/arm/mach-rk30/board-rk3168-86v-sdmmc-config.c index 1e54aa0cb638..01d83445b715 100755 --- a/arch/arm/mach-rk30/board-rk3168-86v-sdmmc-config.c +++ b/arch/arm/mach-rk30/board-rk3168-86v-sdmmc-config.c @@ -60,6 +60,10 @@ int rk31sdk_get_sdmmc0_pin_io_voltage(void) #define RK29SDK_SD_CARD_DETECT_N RK30_PIN3_PB0 //According to your own project to set the value of card-detect-pin. #define RK29SDK_SD_CARD_INSERT_LEVEL GPIO_LOW // set the voltage of insert-card. Please pay attention to the default setting. +//wake up host gpio +#define RK30SDK_WIFI_GPIO_WIFI_INT_B RK30_PIN3_PD2 +#define RK30SDK_WIFI_GPIO_WIFI_INT_B_ENABLE_VALUE GPIO_HIGH + /* * Define wifi module's power and reset gpio, and gpio sensitive level. * Please set the value according to your own project. diff --git a/arch/arm/mach-rk30/board-rk3168-tb-sdmmc-conifg.c b/arch/arm/mach-rk30/board-rk3168-tb-sdmmc-conifg.c index ae5af8f869a3..768244498299 100644 --- a/arch/arm/mach-rk30/board-rk3168-tb-sdmmc-conifg.c +++ b/arch/arm/mach-rk30/board-rk3168-tb-sdmmc-conifg.c @@ -60,6 +60,10 @@ int rk31sdk_get_sdmmc0_pin_io_voltage(void) #define RK29SDK_SD_CARD_DETECT_N RK30_PIN3_PB0 //According to your own project to set the value of card-detect-pin. #define RK29SDK_SD_CARD_INSERT_LEVEL GPIO_LOW // set the voltage of insert-card. Please pay attention to the default setting. +//wake up host gpio +#define RK30SDK_WIFI_GPIO_WIFI_INT_B RK30_PIN3_PD2 +#define RK30SDK_WIFI_GPIO_WIFI_INT_B_ENABLE_VALUE GPIO_HIGH + /* * Define wifi module's power and reset gpio, and gpio sensitive level. * Please set the value according to your own project. diff --git a/arch/arm/mach-rk30/board-rk3168m-tb-sdmmc-conifg.c b/arch/arm/mach-rk30/board-rk3168m-tb-sdmmc-conifg.c index 9626c1b80a89..0bc1a8aec095 100644 --- a/arch/arm/mach-rk30/board-rk3168m-tb-sdmmc-conifg.c +++ b/arch/arm/mach-rk30/board-rk3168m-tb-sdmmc-conifg.c @@ -60,6 +60,10 @@ int rk31sdk_get_sdmmc0_pin_io_voltage(void) #define RK29SDK_SD_CARD_DETECT_N RK30_PIN3_PB0 //According to your own project to set the value of card-detect-pin. #define RK29SDK_SD_CARD_INSERT_LEVEL GPIO_LOW // set the voltage of insert-card. Please pay attention to the default setting. +//wake up host gpio +#define RK30SDK_WIFI_GPIO_WIFI_INT_B RK30_PIN3_PD2 +#define RK30SDK_WIFI_GPIO_WIFI_INT_B_ENABLE_VALUE GPIO_HIGH + /* * Define wifi module's power and reset gpio, and gpio sensitive level. * Please set the value according to your own project.