コード例 #1
0
static void sh_css_rx_set_uncomp_size(
	const mipi_port_ID_t		port,
	const unsigned int		size)
{
	sh_css_rx_set_bits(port,
		_HRT_CSS_RECEIVER_AHB_COMP_FORMAT_REG_IDX,
		_HRT_CSS_RECEIVER_AHB_COMP_NUM_BITS_IDX,
		_HRT_CSS_RECEIVER_AHB_COMP_NUM_BITS_BITS,
		size);
return;
}
コード例 #2
0
static void sh_css_rx_set_num_lanes(
	const mipi_port_ID_t		port,
	const unsigned int		lanes)
{
	sh_css_rx_set_bits(port,
		_HRT_CSS_RECEIVER_FUNC_PROG_REG_IDX,
		_HRT_CSS_RECEIVER_AHB_CSI2_NUM_DATA_LANES_IDX,
		_HRT_CSS_RECEIVER_AHB_CSI2_NUM_DATA_LANES_BITS,
		lanes);
return;
}
コード例 #3
0
static void sh_css_rx_set_timeout(
	const mipi_port_ID_t		port,
	const unsigned int		timeout)
{
	sh_css_rx_set_bits(port,
		_HRT_CSS_RECEIVER_FUNC_PROG_REG_IDX,
		_HRT_CSS_RECEIVER_DATA_TIMEOUT_IDX,
		_HRT_CSS_RECEIVER_DATA_TIMEOUT_BITS,
		timeout);
return;
}
コード例 #4
0
ファイル: sh_css_rx.c プロジェクト: DanBjorklund/ME302C
static void
sh_css_rx_set_num_lanes(enum sh_css_mipi_port port, unsigned int lanes)
{
#if defined(SYSTEM_hive_isp_css_2400_system)
/*
 * This part of the interface does not exist in 2400
 *
	sh_css_rx_set_bits(port,
			   _HRT_CSS_RECEIVER_2400_CSI2_FUNC_PROG_REG_IDX,
			   _HRT_CSS_RECEIVER_2400_CSI2_NUM_DATA_LANES_IDX,
			   _HRT_CSS_RECEIVER_2400_CSI2_NUM_DATA_LANES_BITS,
			   lanes);
 */
(void)port;
(void)lanes;
#else
	sh_css_rx_set_bits(port,
			   _HRT_CSS_RECEIVER_AHB_CSI2_FUNC_PROG_REG_IDX,
			   _HRT_CSS_RECEIVER_AHB_CSI2_NUM_DATA_LANES_IDX,
			   _HRT_CSS_RECEIVER_AHB_CSI2_NUM_DATA_LANES_BITS,
			   lanes);
#endif
}