| 1 |
|
| 2 |
|
| 3 |
#include <drivers/intel/touch/chip.h> |
| 4 |
#include <soc/touch.h> |
| 5 |
|
| 6 |
|
| 7 |
const struct intel_thc_hidi2c_info *soc_get_thc_hidi2c_info(void) |
| 8 |
{ |
| 9 |
static const struct intel_thc_hidi2c_info soc_thc_hidi2c_info = { |
| 10 |
.connection_speed = SOC_PTL_THC_I2C_CONNECTION_SPEED_FM, |
| 11 |
.addr_mode = SOC_PTL_THC_I2C_ADDR_MODE, |
| 12 |
.sm_scl_high_period = SOC_PTL_THC_I2C_SM_SCL_HIGH_PERIOD, |
| 13 |
.sm_scl_low_period = SOC_PTL_THC_I2C_SM_SCL_LOW_PERIOD, |
| 14 |
.sm_sda_hold_tx_period = SOC_PTL_THC_I2C_SM_SDA_HOLD_TX_PERIOD, |
| 15 |
.sm_sda_hold_rx_period = SOC_PTL_THC_I2C_SM_SDA_HOLD_RX_PERIOD, |
| 16 |
.fm_scl_high_period = SOC_PTL_THC_I2C_FM_SCL_HIGH_PERIOD, |
| 17 |
.fm_scl_low_period = SOC_PTL_THC_I2C_FM_SCL_LOW_PERIOD, |
| 18 |
.fm_sda_hold_tx_period = SOC_PTL_THC_I2C_FM_SDA_HOLD_TX_PERIOD, |
| 19 |
.fm_sda_hold_rx_period = SOC_PTL_THC_I2C_FM_SDA_HOLD_RX_PERIOD, |
| 20 |
.suppressed_spikes_s_f_fp = SOC_PTL_THC_I2C_SUPPRESSED_SPIKES_S_F_FP, |
| 21 |
.fmp_scl_high_period = SOC_PTL_THC_I2C_FMP_SCL_HIGH_PERIOD, |
| 22 |
.fmp_scl_low_period = SOC_PTL_THC_I2C_FMP_SCL_LOW_PERIOD, |
| 23 |
.fmp_sda_hold_tx_period = SOC_PTL_THC_I2C_FMP_SDA_HOLD_TX_PERIOD, |
| 24 |
.fmp_sda_hold_rx_period = SOC_PTL_THC_I2C_FMP_SDA_HOLD_RX_PERIOD, |
| 25 |
.hm_scl_high_period = SOC_PTL_THC_I2C_HM_SCL_HIGH_PERIOD, |
| 26 |
.hm_scl_low_period = SOC_PTL_THC_I2C_HM_SCL_LOW_PERIOD, |
| 27 |
.hm_sda_hold_tx_period = SOC_PTL_THC_I2C_HM_SDA_HOLD_TX_PERIOD, |
| 28 |
.hm_sda_hold_rx_period = SOC_PTL_THC_I2C_HM_SDA_HOLD_RX_PERIOD, |
| 29 |
.suppressed_spikes_h_fp = SOC_PTL_THC_I2C_SUPPRESSED_SPIKES_H_FP, |
| 30 |
}; |
| 31 |
return &soc_thc_hidi2c_info; |
| 32 |
} |
| 33 |
|
| 34 |
|
| 35 |
const struct intel_thc_hidspi_info *soc_get_thc_hidspi_info(void) |
| 36 |
{ |
| 37 |
static const struct intel_thc_hidspi_info soc_thc_hidspi_info = { |
| 38 |
.connection_speed = SOC_PTL_THC_CONNECTION_SPEED, |
| 39 |
.write_mode = HIDSPI_WRITE_MODE_MULTI_SINGLE_SPI, |
| 40 |
.limit_packet_size = SOC_PTL_THC_HIDSPI_LIMIT_PKT_SZ, |
| 41 |
.performance_limit = SOC_PTL_THC_PERFORMANCE_LIMIT, |
| 42 |
.reset_sequencing_delay = SOC_PTL_THC_RST_SEQ_DLY, |
| 43 |
}; |
| 44 |
return &soc_thc_hidspi_info; |
| 45 |
} |