# Configure I2C in sensor core as sensor low-power island (SLPI) processor

Source: [https://docs.qualcomm.com/doc/80-88500-1/topic/46_Configure_I2C_in_sensor_core_as_sensor_low_power_island__SLPI__processor.html](https://docs.qualcomm.com/doc/80-88500-1/topic/46_Configure_I2C_in_sensor_core_as_sensor_low_power_island__SLPI__processor.html)

## About this task

To configure the I^2^C in the sensor core (`slpi_proc`), do the following:

## Procedure

- See <cite class="cite">Sensors Execution Environment (SEE) Sensors Deep Dive</cite> (80-P9301-35) and update the JSON file.
- Define the I^2^C instance in the /slpi\_proc/core/settings/buses/i2c/config/kona/i2c\_devcfg.c file.
        
Following is an example configuring SE1 as I^2^C in the fw\_devcfg.c file:

        #define ENABLE_I2C_01
        
        #ifdef ENABLE_I2C_01
             {
                 .core_base_addr              = (uint8 *) QUPV3_CORE_BASE_ADDRESS,
                 .core_offset                 = 0x00080000,
                 .qupv3_instance              = QUP_SSC,
                 .core_index                  = 1,
                 .core_irq                    = 0x0,
                 .polled_mode                 = FALSE,
                 .min_data_length_for_dma     = 0,
         
                 .gpi_index                   = 6,
         
                 .scl_encoding                = 0x1c001,
                 .sda_encoding                = 0x1c011,
         
                 .tcsr_base_addr              = 0x00000000,
                 .tcsr_reg_offset             = 0x00000000,
                 .tcsr_reg_value              = 0x00000000,
         
                 .common_clocks               = NULL,
                 .se_clock                    = NULL,
                 .se_src_clock                = NULL,
                 .resource_votes              = 0,
         
                 .clock_config                = clk_cfg,
             },
        #endifCopy to clipboard

Note: If there are no hardware design changes, do not modify this structure.

**Disable I2C**

Remove or comment the I^2^C instance from the i2c\_devcfg.c file.

**Parent Topic:** [I2C in QUP](https://docs.qualcomm.com/doc/80-88500-1/topic/41_I2C_in_QUP_v3.html)

Last Published: Aug 18, 2023

[Previous Topic
Enable I2C bus in UEFI](https://docs.qualcomm.com/bundle/publicresource/80-88500-1/topics/45_Enable_I2C_bus_in_UEFI.md) [Next Topic
Enable I2C bus in sensor low-power island (SLPI)](https://docs.qualcomm.com/bundle/publicresource/80-88500-1/topics/47_Enable_I2C_bus_in_SLPI.md)