static void __init easy50712_init(void) { ltq_register_gpio_stp(); ltq_register_nor(&easy50712_flash_data); ltq_register_pci(<q_pci_data); ltq_register_etop(<q_eth_data); ltq_register_tapi(); }
static void __init gigasx76x_init(void) { #define GIGASX76X_USB 29 #define GIGASX76X_MADWIFI_ADDR 0xb07f0000 ltq_register_gpio_stp(); ltq_register_nor(&gigasx76x_flash_data); ltq_register_pci(<q_pci_data); gigasx76x_register_ethernet(); xway_register_dwc(GIGASX76X_USB); ltq_register_tapi(); ltq_register_madwifi_eep(GIGASX76X_MADWIFI_ADDR); ltq_add_device_gpio_leds(-1, ARRAY_SIZE(gigasx76x_gpio_leds), gigasx76x_gpio_leds); ltq_register_gpio_keys_polled(-1, LTQ_KEYS_POLL_INTERVAL, ARRAY_SIZE(gigasx76x_gpio_keys), gigasx76x_gpio_keys); }
static void __init p2601hnfx_init(void) { #define P2601HNFX_USB 9 ltq_register_gpio_stp(); ltq_add_device_gpio_leds(-1, ARRAY_SIZE(p2601hnfx_leds_gpio), p2601hnfx_leds_gpio); ltq_register_gpio_buttons(p2601hnfx_gpio_buttons, ARRAY_SIZE(p2601hnfx_gpio_buttons)); ltq_register_nor(&p2601hnfx_flash_data); ltq_register_etop(<q_eth_data); xway_register_dwc(P2601HNFX_USB); // enable the ethernet ports on the SoC // ltq_w32((ltq_r32(LTQ_GPORT_P0_CTL) & ~(1 << 17)) | (1 << 18), LTQ_GPORT_P0_CTL); // ltq_w32((ltq_r32(LTQ_GPORT_P1_CTL) & ~(1 << 17)) | (1 << 18), LTQ_GPORT_P1_CTL); // ltq_w32((ltq_r32(LTQ_GPORT_P2_CTL) & ~(1 << 17)) | (1 << 18), LTQ_GPORT_P2_CTL); }