Lines Matching refs:cpld_data

72 struct cpld_data {  struct
95 struct cpld_data *cpld_data = (void *)(CONFIG_SYS_CPLD_BASE); in cpld_show() argument
98 in_8(&cpld_data->cpld_ver) & VERSION_MASK, in cpld_show()
99 in_8(&cpld_data->cpld_ver_sub) & VERSION_MASK, in cpld_show()
100 in_8(&cpld_data->pcba_ver) & VERSION_MASK, in cpld_show()
101 in_8(&cpld_data->vbank) & BANK_MASK); in cpld_show()
105 in_8(&cpld_data->soft_mux_on)); in cpld_show()
107 in_8(&cpld_data->cfg_rcw_src1)); in cpld_show()
109 in_8(&cpld_data->cfg_rcw_src2)); in cpld_show()
111 in_8(&cpld_data->vbank)); in cpld_show()
113 in_8(&cpld_data->gpio)); in cpld_show()
115 in_8(&cpld_data->i2c3_ifc_mux)); in cpld_show()
117 in_8(&cpld_data->mux_spi2)); in cpld_show()
119 in_8(&cpld_data->can3_usb2_mux)); in cpld_show()
121 in_8(&cpld_data->qe_lcd_mux)); in cpld_show()
123 in_8(&cpld_data->serdes_mux)); in cpld_show()
296 struct cpld_data *cpld_data = (void *)(CONFIG_SYS_CPLD_BASE); in convert_serdes_mux() local
298 current_serdes = cpld_data->serdes_mux; in convert_serdes_mux()
325 cpld_data->soft_mux_on |= CPLD_SET_MUX_SERDES; in convert_serdes_mux()
326 cpld_data->serdes_mux = current_serdes; in convert_serdes_mux()
330 cpld_data->system_rst = CONFIG_RESET; in convert_serdes_mux()
370 struct cpld_data *cpld_data = (void *)(CONFIG_SYS_CPLD_BASE); in config_board_mux() local
376 cpld_data->soft_mux_on |= SOFT_MUX_ON_I2C3_IFC; in config_board_mux()
377 cpld_data->i2c3_ifc_mux = PIN_I2C3_IFC_MUX_I2C3; in config_board_mux()
385 cpld_data->soft_mux_on |= SOFT_MUX_ON_I2C3_IFC; in config_board_mux()
386 cpld_data->i2c3_ifc_mux = PIN_I2C3_IFC_MUX_IFC; in config_board_mux()
392 cpld_data->soft_mux_on |= SOFT_MUX_ON_CAN3_USB2; in config_board_mux()
393 cpld_data->can3_usb2_mux = PIN_CAN3_USB2_MUX_USB2; in config_board_mux()
401 cpld_data->soft_mux_on |= SOFT_MUX_ON_CAN3_USB2; in config_board_mux()
402 cpld_data->can3_usb2_mux = PIN_CAN3_USB2_MUX_CAN3; in config_board_mux()
408 cpld_data->soft_mux_on |= SOFT_MUX_ON_QE_LCD; in config_board_mux()
409 cpld_data->qe_lcd_mux = PIN_QE_LCD_MUX_LCD; in config_board_mux()
417 cpld_data->soft_mux_on |= SOFT_MUX_ON_QE_LCD; in config_board_mux()
418 cpld_data->qe_lcd_mux = PIN_QE_LCD_MUX_QE; in config_board_mux()
628 struct cpld_data *cpld_data = (void *)(CONFIG_SYS_CPLD_BASE); in convert_flash_bank() local
631 cpld_data->soft_mux_on = CPLD_SET_BOOT_BANK; in convert_flash_bank()
632 cpld_data->vbank = bank; in convert_flash_bank()
635 cpld_data->system_rst = CONFIG_RESET; in convert_flash_bank()
662 struct cpld_data *cpld_data = (void *)(CONFIG_SYS_CPLD_BASE); in cpld_reset_cmd() local
667 cpld_data->system_rst = CONFIG_RESET; in cpld_reset_cmd()
669 cpld_data->global_rst = INIT_RESET; in cpld_reset_cmd()
689 struct cpld_data *cpld_data = (void *)(CONFIG_SYS_CPLD_BASE); in print_serdes_mux() local
691 current_serdes = cpld_data->serdes_mux; in print_serdes_mux()