HI_MIPI_SET_HS_MODE

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

☓

Atlas A3 training products/Atlas A3 inference products

☓

Atlas A2 training products/Atlas A2 inference products

☓

Atlas 200I/500 A2 inference products

√

Atlas inference products

☓

Atlas training products

☓

Function

Sets the lane distribution of the MIPI RX (invalid for the SLVS).

Definition

#define HI_MIPI_SET_HS_MODE _IOW(HI_MIPI_IOC_MAGIC, 0x0b, lane_divide_mode_t)

Parameters

  • HI_MIPI_IOC_MAGIC: indicates the magic number of MIPI RX ioctl commands.
    #define HI_MIPI_IOC_MAGIC 'm'
  • 0x0b: indicates the command identifier function and sets the lane distribution mode of the MIPI RX.
  • lane_divide_mode_t: indicates the lane distribution mode of the MIPI RX.

Returns

  • 0: success
  • -1: failure

Restrictions

  • After this command identifier is executed, the system resets and deasserts the reset on the MIPI RX subsystem. Therefore, this command identifier must be called before other command identifiers. Otherwise, the configurations of other command identifiers will be reset.
  • When multiple sensor inputs are connected, you are advised to set the lane distribution mode based on the hardware connection during initialization. This command identifier cannot be used during subsequent multi-sensor capture. Otherwise, other configurations before this command identifier will be reset.