int __init cardhu_sdhci_init(void) { struct board_info board_info; tegra_get_board_info(&board_info); if ((board_info.board_id == BOARD_PM269) || (board_info.board_id == BOARD_E1257) || (board_info.board_id == BOARD_PM305) || (board_info.board_id == BOARD_PM311)) { tegra_sdhci_platform_data0.wp_gpio = PM269_SD_WP; } // Get Wi-Fi PCB_ID switch (tegra3_query_wifi_module_pcbid()){ case 0: // AW-NH660 case 2: // AW-NH665 tegra_sdhci_platform_data2.mmc_data.built_in = 1; break; case 1: // AW-NH615 case 3: // Murata default: tegra_sdhci_platform_data2.mmc_data.built_in = 0; tegra_sdhci_platform_data2.wow_gpio = CARDHU_SDIO_WOW; break; } platform_device_register(&tegra_sdhci_device3); platform_device_register(&tegra_sdhci_device2); platform_device_register(&tegra_sdhci_device0); cardhu_wifi_init(); return 0; }
int __init cardhu_sdhci_init(void) { struct board_info board_info; tegra_get_board_info(&board_info); if ((board_info.board_id == BOARD_PM269) || (board_info.board_id == BOARD_E1257) || (board_info.board_id == BOARD_PM305) || (board_info.board_id == BOARD_PM311)) { tegra_sdhci_platform_data0.wp_gpio = PM269_SD_WP; tegra_sdhci_platform_data2.max_clk_limit = 12000000; } platform_device_register(&tegra_sdhci_device3); platform_device_register(&tegra_sdhci_device2); platform_device_register(&tegra_sdhci_device0); cardhu_wifi_init(); return 0; }