static void __init machine_rk30_board_init(void) { avs_init(); gpio_request(POWER_ON_PIN, "poweronpin"); gpio_direction_output(POWER_ON_PIN, GPIO_HIGH); pm_power_off = rk30_pm_power_off; rk30_i2c_register_board_info(); spi_register_board_info(board_spi_devices, ARRAY_SIZE(board_spi_devices)); platform_add_devices(devices, ARRAY_SIZE(devices)); board_usb_detect_init(RK30_PIN6_PA3); #ifdef CONFIG_WIFI_CONTROL_FUNC rk29sdk_wifi_bt_gpio_control_init(); #endif dcr_en_low(); }
static void __init machine_rk30_board_init(void) { avs_init(); gpio_request(POWER_ON_PIN, "poweronpin"); gpio_direction_output(POWER_ON_PIN, GPIO_HIGH); pm_power_off = rk30_pm_power_off; rk30_i2c_register_board_info(); spi_register_board_info(board_spi_devices, ARRAY_SIZE(board_spi_devices)); platform_add_devices(devices, ARRAY_SIZE(devices)); board_usb_detect_init(RK30_PIN6_PA3); #ifdef CONFIG_WIFI_CONTROL_FUNC rk29sdk_wifi_bt_gpio_control_init(); #endif #if defined(CONFIG_MT6620) clk_set_rate(clk_get_sys("rk_serial.0", "uart"), 16*1000000); #endif }