/*------------------------------------------------------------------------------------------*\ * * Hardware Config für FRITZ!Box Fon 7412 * \*------------------------------------------------------------------------------------------*/ #ERROR "Diese Datei darf nicht mehr verwendet werden. Bitte Änderungen in der entsprechenden .dts Datei vornehmen" #undef AVM_HARDWARE_CONFIG #define AVM_HARDWARE_CONFIG struct _avm_hw_config avm_hardware_config_hw209[] = { /****************************************************************************************\ * * GPIO Config * \****************************************************************************************/ /*------------------------------------------------------------------------------------------*\ * LEDs / Taster \*------------------------------------------------------------------------------------------*/ { .name = "gpio_avm_led_power", .value = 6, .param = avm_hw_param_gpio_out_active_low, .manufactor_hw_config.manufactor_lantiq_gpio_config = { .module_id = IFX_GPIO_MODULE_LED, .config = IFX_GPIO_IOCTL_PIN_CONFIG_DIR_OUT | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL0_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL1_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_OUTPUT_SET } }, { .name = "gpio_avm_led_power_red", .value = 5, .param = avm_hw_param_gpio_out_active_low, .manufactor_hw_config.manufactor_lantiq_gpio_config = { .module_id = IFX_GPIO_MODULE_LED, .config = IFX_GPIO_IOCTL_PIN_CONFIG_DIR_OUT | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL0_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL1_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_OUTPUT_SET } }, { .name = "gpio_avm_led_internet", .value = 34, .param = avm_hw_param_gpio_out_active_low, .manufactor_hw_config.manufactor_lantiq_gpio_config = { .module_id = IFX_GPIO_MODULE_LED, .config = IFX_GPIO_IOCTL_PIN_CONFIG_DIR_OUT | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL0_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL1_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_OUTPUT_SET } }, { .name = "gpio_avm_led_dect", .value = 15, .param = avm_hw_param_gpio_out_active_low, .manufactor_hw_config.manufactor_lantiq_gpio_config = { .module_id = IFX_GPIO_MODULE_LED, .config = IFX_GPIO_IOCTL_PIN_CONFIG_DIR_OUT | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL0_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL1_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_OUTPUT_SET } }, { .name = "gpio_avm_led_wlan", .value = 0, .param = avm_hw_param_gpio_out_active_low, .manufactor_hw_config.manufactor_lantiq_gpio_config = { .module_id = IFX_GPIO_MODULE_LED, .config = IFX_GPIO_IOCTL_PIN_CONFIG_DIR_OUT | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL0_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL1_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_OUTPUT_SET } }, { .name = "gpio_avm_led_info", .value = 35, .param = avm_hw_param_gpio_out_active_low, .manufactor_hw_config.manufactor_lantiq_gpio_config = { .module_id = IFX_GPIO_MODULE_LED, .config = IFX_GPIO_IOCTL_PIN_CONFIG_DIR_OUT | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL0_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL1_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_OUTPUT_SET } }, /*--- DECT button connected to EXTIN 2 ---*/ { .name = "gpio_avm_button_dect", .value = 2, .param = avm_hw_param_gpio_in_active_low, .manufactor_hw_config.manufactor_lantiq_gpio_config = { .module_id = IFX_GPIO_MODULE_LED, .config = IFX_GPIO_IOCTL_PIN_CONFIG_DIR_IN | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL0_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL1_SET } }, /*--- WLAN button connected to EXTIN 1 ---*/ { .name = "gpio_avm_button_wlan", .value = 1, .param = avm_hw_param_gpio_in_active_low, .manufactor_hw_config.manufactor_lantiq_gpio_config = { .module_id = IFX_GPIO_MODULE_LED, .config = IFX_GPIO_IOCTL_PIN_CONFIG_DIR_IN | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL0_SET | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL1_CLEAR } }, /*--------------------------------------------------------------------------------------*\ * DECT \*--------------------------------------------------------------------------------------*/ { .name = "gpio_avm_dect_reset", .value = 33, .param = avm_hw_param_gpio_out_active_low, .manufactor_hw_config.manufactor_lantiq_gpio_config = { .module_id = IFX_GPIO_MODULE_PIGLET, .config = IFX_GPIO_IOCTL_PIN_CONFIG_DIR_OUT | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL0_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL1_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_OD_SET } }, /*--------------------------------------------------------------------------------*\ * TDM-Check (Clockmessung) \*--------------------------------------------------------------------------------*/ { .name = "gpio_avm_tdm_fsc", .value = 9, .param = avm_hw_param_no_param, .manufactor_hw_config.manufactor_lantiq_gpio_config = { .module_id = IFX_GPIO_MODULE_TDMCHECK, .config = IFX_GPIO_IOCTL_PIN_CONFIG_DIR_IN | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL0_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL1_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_PUDSEL_SET | IFX_GPIO_IOCTL_PIN_CONFIG_PUDEN_SET } }, { .name = "gpio_avm_tdm_dcl", .value = 18, .param = avm_hw_param_gpio_out_active_low, .manufactor_hw_config.manufactor_lantiq_gpio_config = { .module_id = IFX_GPIO_MODULE_TDMCHECK, .config = IFX_GPIO_IOCTL_PIN_CONFIG_DIR_IN | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL0_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL1_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_OD_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_PUDSEL_SET | IFX_GPIO_IOCTL_PIN_CONFIG_PUDEN_SET } }, { .name = "gpio_avm_tdm_enable_dcl", .value = 7, .param = avm_hw_param_gpio_out_active_high, .manufactor_hw_config.manufactor_lantiq_gpio_config = { .module_id = IFX_GPIO_MODULE_TDMCHECK, .config = IFX_GPIO_IOCTL_PIN_CONFIG_DIR_OUT | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL0_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL1_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_OD_SET | IFX_GPIO_IOCTL_PIN_CONFIG_PUDSEL_SET } }, /*--------------------------------------------------------------------------------------*\ * SPI-TDM \*--------------------------------------------------------------------------------------*/ { .name = "gpio_avm_pcmlink_fsc", .value = 9, .param = avm_hw_param_no_param, .manufactor_hw_config.manufactor_lantiq_gpio_config = { .module_id = IFX_GPIO_MODULE_PCMLINK, .config = IFX_GPIO_IOCTL_PIN_CONFIG_DIR_IN | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL0_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL1_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_PUDSEL_SET | IFX_GPIO_IOCTL_PIN_CONFIG_PUDEN_SET } }, { .name = "gpio_avm_pcmlink_do", .value = 16, .param = avm_hw_param_no_param, .manufactor_hw_config.manufactor_lantiq_gpio_config = { .module_id = IFX_GPIO_MODULE_PCMLINK, .config = IFX_GPIO_IOCTL_PIN_CONFIG_DIR_OUT | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL0_SET | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL1_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_OD_SET | IFX_GPIO_IOCTL_PIN_CONFIG_PUDSEL_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_PUDEN_CLEAR } }, { .name = "gpio_avm_pcmlink_di", .value = 17, .param = avm_hw_param_no_param, .manufactor_hw_config.manufactor_lantiq_gpio_config = { .module_id = IFX_GPIO_MODULE_PCMLINK, .config = IFX_GPIO_IOCTL_PIN_CONFIG_DIR_IN | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL0_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL1_SET | IFX_GPIO_IOCTL_PIN_CONFIG_OD_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_PUDSEL_SET | IFX_GPIO_IOCTL_PIN_CONFIG_PUDEN_SET } }, { .name = "gpio_avm_pcmlink_dcl", .value = 18, .param = avm_hw_param_gpio_out_active_low, .manufactor_hw_config.manufactor_lantiq_gpio_config = { .module_id = IFX_GPIO_MODULE_PCMLINK, .config = IFX_GPIO_IOCTL_PIN_CONFIG_DIR_IN | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL0_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL1_SET | IFX_GPIO_IOCTL_PIN_CONFIG_PUDSEL_SET | IFX_GPIO_IOCTL_PIN_CONFIG_PUDEN_SET } }, { .name = "gpio_avm_pcmlink_clk_enable", .value = 7, .param = avm_hw_param_gpio_out_active_high, .manufactor_hw_config.manufactor_lantiq_gpio_config = { .module_id = IFX_GPIO_MODULE_PCMLINK, .config = IFX_GPIO_IOCTL_PIN_CONFIG_DIR_OUT | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL0_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL1_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_OD_SET | IFX_GPIO_IOCTL_PIN_CONFIG_PUDSEL_SET } }, { .name = "gpio_avm_pcmlink_flash_cs", .value = 10, .param = avm_hw_param_gpio_out_active_low, .manufactor_hw_config.manufactor_lantiq_gpio_config = { .module_id = IFX_GPIO_MODULE_PCMLINK, .config = IFX_GPIO_IOCTL_PIN_CONFIG_DIR_OUT | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL0_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL1_SET | IFX_GPIO_IOCTL_PIN_CONFIG_OD_SET } }, /*--------------------------------------------------------------------------------------*\ * SPI \*--------------------------------------------------------------------------------------*/ { .name = "gpio_avm_pcmlink_flash_wp", .value = 12, .param = avm_hw_param_gpio_out_active_low, .manufactor_hw_config.manufactor_lantiq_gpio_config = { .module_id = IFX_GPIO_MODULE_SSC, .config = IFX_GPIO_IOCTL_PIN_CONFIG_DIR_OUT | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL0_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL1_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_OD_SET } }, /*--------------------------------------------------------------------------------------*\ * SPI \*--------------------------------------------------------------------------------------*/ { .name = "gpio_avm_spi_clk", .value = 18, .param = avm_hw_param_no_param, .manufactor_hw_config.manufactor_lantiq_gpio_config = { .module_id = IFX_GPIO_MODULE_SSC, .config = IFX_GPIO_IOCTL_PIN_CONFIG_DIR_OUT | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL0_SET | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL1_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_OD_SET } }, { .name = "gpio_avm_spi_do", .value = 17, .param = avm_hw_param_no_param, .manufactor_hw_config.manufactor_lantiq_gpio_config = { .module_id = IFX_GPIO_MODULE_SSC, .config = IFX_GPIO_IOCTL_PIN_CONFIG_DIR_OUT | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL0_SET | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL1_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_OD_SET } }, { .name = "gpio_avm_spi_di", .value = 16, .param = avm_hw_param_no_param, .manufactor_hw_config.manufactor_lantiq_gpio_config = { .module_id = IFX_GPIO_MODULE_SSC, .config = IFX_GPIO_IOCTL_PIN_CONFIG_DIR_IN | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL0_SET | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL1_CLEAR } }, { .name = "gpio_avm_spi_flash_cs", .value = 10, .param = avm_hw_param_gpio_out_active_high, .manufactor_hw_config.manufactor_lantiq_gpio_config = { .module_id = IFX_GPIO_MODULE_SSC, .config = IFX_GPIO_IOCTL_PIN_CONFIG_DIR_OUT | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL0_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL1_SET | IFX_GPIO_IOCTL_PIN_CONFIG_OD_SET } }, /*--------------------------------------------------------------------------------------*\ * NAND \*--------------------------------------------------------------------------------------*/ { .name = "gpio_avm_nand_ale", .value = 13, .param = avm_hw_param_gpio_out_active_low, .manufactor_hw_config.manufactor_lantiq_gpio_config = { .module_id = IFX_GPIO_MODULE_NAND, .config = IFX_GPIO_IOCTL_PIN_CONFIG_DIR_OUT | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL0_SET | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL1_CLEAR } }, { .name = "gpio_avm_nand_cle", .value = 24, .param = avm_hw_param_gpio_out_active_low, .manufactor_hw_config.manufactor_lantiq_gpio_config = { .module_id = IFX_GPIO_MODULE_NAND, .config = IFX_GPIO_IOCTL_PIN_CONFIG_DIR_OUT | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL0_SET | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL1_CLEAR } }, { .name = "gpio_avm_nand_rd", .value = 49, /*--- liegt zusammen mit Boot-Select 4 ---*/ .param = avm_hw_param_gpio_out_active_low, .manufactor_hw_config.manufactor_lantiq_gpio_config = { .module_id = IFX_GPIO_MODULE_NAND, .config = IFX_GPIO_IOCTL_PIN_CONFIG_DIR_OUT | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL0_SET | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL1_CLEAR } }, /*--------------------------------------------------------------------------------------*\ * PCIE / WLAN / Ext. WASP \*--------------------------------------------------------------------------------------*/ { .name = "gpio_avm_pcie_reset0", .value = 11, .param = avm_hw_param_gpio_out_active_low, .manufactor_hw_config.manufactor_lantiq_gpio_config = { .module_id = IFX_GPIO_MODULE_PCIE, .config = IFX_GPIO_IOCTL_PIN_CONFIG_DIR_OUT | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL0_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL1_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_OD_SET } }, /*--------------------------------------------------------------------------------------*\ * SYSTEM \*--------------------------------------------------------------------------------------*/ { .name = "gpio_avm_boot_sel2", .value = 23, .param = avm_hw_param_gpio_in_active_high, }, { .name = "gpio_avm_boot_sel3", .value = 38, .param = avm_hw_param_gpio_in_active_high, }, { .name = "gpio_avm_boot_sel4", .value = 49, /*--- liegt zusammen mit NAND_RD ---*/ .param = avm_hw_param_gpio_in_active_high, }, { .name = NULL } }; EXPORT_SYMBOL(avm_hardware_config_hw209);