--- arch/mips/mach-infineon/vr9/avm_hw_config_hw212.h 2015-12-15 19:30:44.774641460 +0100
+++ arch/mips/mach-infineon/vr9/avm_hw_config_hw185.h 2015-12-15 19:30:44.774641460 +0100
@@ -1,11 +1,11 @@
/*------------------------------------------------------------------------------------------*\
*
- * Hardware Config für FRITZ!Box Fon 3490
+ * Hardware Config für FRITZ!Box Fon 7490
*
\*------------------------------------------------------------------------------------------*/
#undef AVM_HARDWARE_CONFIG
-#define AVM_HARDWARE_CONFIG avm_hardware_config_hw212
+#define AVM_HARDWARE_CONFIG avm_hardware_config_hw185
struct _avm_hw_config AVM_HARDWARE_CONFIG[] = {
@@ -31,7 +31,7 @@
}
},
{
- .name = "gpio_avm_led_lan_all", /* led4 */
+ .name = "gpio_avm_led_internet", /* led4 */
.value = 47,
.param = avm_hw_param_gpio_out_active_low,
.manufactor_hw_config.manufactor_lantiq_gpio_config = {
@@ -40,7 +40,7 @@
}
},
{
- .name = "gpio_avm_led_wlan", /* led3 */
+ .name = "gpio_avm_led_festnetz", /* led3 */
.value = 36,
.param = avm_hw_param_gpio_out_active_low,
.manufactor_hw_config.manufactor_lantiq_gpio_config = {
@@ -49,7 +49,7 @@
}
},
{
- .name = "gpio_avm_led_pppoe", /* led2 */
+ .name = "gpio_avm_led_wlan", /* led2 */
.value = 35,
.param = avm_hw_param_gpio_out_active_low,
.manufactor_hw_config.manufactor_lantiq_gpio_config = {
@@ -76,9 +76,9 @@
}
},
- /*--- WPS button connected to EXTIN 1 ---*/
+ /*--- DECT button connected to EXTIN 1 ---*/
{
- .name = "gpio_avm_button_wps",
+ .name = "gpio_avm_button_dect", // "gpio_avm_button_power" für 3370
.value = 1,
.param = avm_hw_param_gpio_in_active_low,
.manufactor_hw_config.manufactor_lantiq_gpio_config = {
@@ -97,6 +97,168 @@
}
},
+
+ /*--------------------------------------------------------------------------------------*\
+ * DECT
+ \*--------------------------------------------------------------------------------------*/
+ {
+ .name = "gpio_avm_dect_reset",
+ .value = 30,
+ .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
+ }
+ },
+ {
+ .name = "gpio_avm_dect_uart_rx",
+ .value = 11,
+ .param = avm_hw_param_no_param,
+ .manufactor_hw_config.manufactor_lantiq_gpio_config = {
+ .module_id = IFX_GPIO_MODULE_PIGLET,
+ .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_dect_uart_tx",
+ .value = 12,
+ .param = avm_hw_param_no_param,
+ .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_SET | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL1_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_OD_SET
+ }
+ },
+
+
+ /*--------------------------------------------------------------------------------------*\
+ * FPGA
+ \*--------------------------------------------------------------------------------------*/
+ {
+ .name = "gpio_avm_piglet_noemif_prog",
+ .value = 15,
+ .param = avm_hw_param_no_param,
+ .manufactor_hw_config.manufactor_lantiq_gpio_config = {
+ .module_id = IFX_GPIO_MODULE_FPGA,
+ .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
+ }
+ },
+ {
+ .name = "gpio_avm_piglet_noemif_clk",
+ .value = 28,
+ .param = avm_hw_param_gpio_out_active_high,
+ .manufactor_hw_config.manufactor_lantiq_gpio_config = {
+ .module_id = IFX_GPIO_MODULE_FPGA,
+ .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
+ }
+ },
+ {
+ .name = "gpio_avm_piglet_noemif_data",
+ .value = 20,
+ .param = avm_hw_param_no_param,
+ .manufactor_hw_config.manufactor_lantiq_gpio_config = {
+ .module_id = IFX_GPIO_MODULE_FPGA,
+ .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
+ }
+ },
+ {
+ .name = "gpio_avm_piglet_noemif_done",
+ .value = 19,
+ .param = avm_hw_param_gpio_in_active_low,
+ .manufactor_hw_config.manufactor_lantiq_gpio_config = {
+ .module_id = IFX_GPIO_MODULE_FPGA,
+ .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_PUDEN_SET
+ }
+ },
+ {
+ .name = "gpio_avm_piglet_noemif_fpgaok",
+ .value = 8,
+ .param = avm_hw_param_gpio_in_active_high,
+ .manufactor_hw_config.manufactor_lantiq_gpio_config = {
+ .module_id = IFX_GPIO_MODULE_FPGA,
+ .config = IFX_GPIO_IOCTL_PIN_CONFIG_DIR_IN | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL0_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL1_CLEAR
+ }
+ },
+ /*--- DECT Irq connected to EXTIN 5 ---*/
+ {
+ .name = "gpio_avm_piglet_dect_in",
+ .value = 9,
+ .param = avm_hw_param_gpio_in_active_low,
+ .manufactor_hw_config.manufactor_lantiq_gpio_config = {
+ .module_id = IFX_GPIO_MODULE_FPGA,
+ .config = IFX_GPIO_IOCTL_PIN_CONFIG_DIR_IN | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL0_SET | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL1_SET
+ }
+ },
+ {
+ .name = "gpio_avm_piglet_clockout",
+ .value = 7,
+ .param = avm_hw_param_gpio_in_active_low,
+ .manufactor_hw_config.manufactor_lantiq_gpio_config = {
+ .module_id = IFX_GPIO_MODULE_FPGA,
+ .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
+ }
+ },
+ /*--------------------------------------------------------------------------------*\
+ * TDM-Check (Clockmessung)
+ \*--------------------------------------------------------------------------------*/
+ {
+ .name = "gpio_avm_tdm_fsc",
+ .value = 0,
+ .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
+ }
+ },
+ {
+ .name = "gpio_avm_tdm_dcl",
+ .value = 40,
+ .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
+ }
+ },
+
+ /*--------------------------------------------------------------------------------------*\
+ * PCM-BUS
+ \*--------------------------------------------------------------------------------------*/
+ {
+ .name = "gpio_avm_pcmlink_fsc",
+ .value = 0,
+ .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_SET | 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_do",
+ .value = 25,
+ .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_SET | IFX_GPIO_IOCTL_PIN_CONFIG_ALTSEL1_CLEAR | IFX_GPIO_IOCTL_PIN_CONFIG_OD_SET
+ }
+ },
+ {
+ .name = "gpio_avm_pcmlink_di",
+ .value = 41,
+ .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_PUDSEL_SET | IFX_GPIO_IOCTL_PIN_CONFIG_PUDEN_SET
+ }
+ },
+ {
+ .name = "gpio_avm_pcmlink_dcl",
+ .value = 40,
+ .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_PUDSEL_SET | IFX_GPIO_IOCTL_PIN_CONFIG_PUDEN_SET
+ }
+ },
+
/*--------------------------------------------------------------------------------------*\
* SPI