From: xbw Date: Thu, 28 Feb 2013 09:59:45 +0000 (+0800) Subject: MT6620 X-Git-Tag: firefly_0821_release~7498 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=848b5e88ca412a7d807e7436648365ca323a5c7d;p=firefly-linux-kernel-4.4.55.git MT6620 add the support of MT6620 in your RK31xx project. Now,with this project board-rk3168-tb.c as an example. --- diff --git a/arch/arm/mach-rk30/board-rk3168-tb.c b/arch/arm/mach-rk30/board-rk3168-tb.c index ba2c1dc51199..9b3cbd21722e 100755 --- a/arch/arm/mach-rk30/board-rk3168-tb.c +++ b/arch/arm/mach-rk30/board-rk3168-tb.c @@ -62,7 +62,6 @@ #if defined(CONFIG_GPS_RK) #include "../../../drivers/misc/gps/rk_gps/rk_gps.h" #endif - #if defined(CONFIG_MU509) #include #endif @@ -76,6 +75,9 @@ #include "../../../drivers/staging/android/timed_gpio.h" #endif +#if defined(CONFIG_MT6620) +#include +#endif #include "board-rk3168-tb-camera.c" #if defined(CONFIG_TOUCHSCREEN_GT8XX) @@ -1254,9 +1256,14 @@ static struct platform_device *devices[] __initdata = { #ifdef CONFIG_RK_IRDA &irda_device, #endif -#ifdef CONFIG_WIFI_CONTROL_FUNC +#if defined(CONFIG_WIFI_CONTROL_FUNC)||defined(CONFIG_WIFI_COMBO_MODULE_CONTROL_FUNC) &rk29sdk_wifi_device, #endif + +#if defined(CONFIG_MT6620) + &mt3326_device_gps, +#endif + #ifdef CONFIG_RK29_SUPPORT_MODEM &rk30_device_modem, #endif @@ -1982,8 +1989,14 @@ static void __init machine_rk30_board_init(void) rk_platform_add_display_devices(); board_usb_detect_init(RK30_PIN0_PA7); -#ifdef CONFIG_WIFI_CONTROL_FUNC +#if defined(CONFIG_WIFI_CONTROL_FUNC) rk29sdk_wifi_bt_gpio_control_init(); +#elif defined(CONFIG_WIFI_COMBO_MODULE_CONTROL_FUNC) + rk29sdk_wifi_combo_module_gpio_init(); +#endif + +#if defined(CONFIG_MT6620) + clk_set_rate(clk_get_sys("rk_serial.0", "uart"), 48*1000000); #endif }