2019-08-16 18:00:37 +03:00
|
|
|
i2c_ss = ss.source_set()
|
|
|
|
i2c_ss.add(when: 'CONFIG_I2C', if_true: files('core.c'))
|
|
|
|
i2c_ss.add(when: 'CONFIG_SMBUS', if_true: files('smbus_slave.c', 'smbus_master.c'))
|
|
|
|
i2c_ss.add(when: 'CONFIG_ACPI_SMBUS', if_true: files('pm_smbus.c'))
|
2022-12-16 16:03:49 +03:00
|
|
|
i2c_ss.add(when: 'CONFIG_ACPI_ICH9', if_true: files('smbus_ich9.c'))
|
2019-08-16 18:00:37 +03:00
|
|
|
i2c_ss.add(when: 'CONFIG_ASPEED_SOC', if_true: files('aspeed_i2c.c'))
|
|
|
|
i2c_ss.add(when: 'CONFIG_BITBANG_I2C', if_true: files('bitbang_i2c.c'))
|
|
|
|
i2c_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210_i2c.c'))
|
|
|
|
i2c_ss.add(when: 'CONFIG_IMX_I2C', if_true: files('imx_i2c.c'))
|
|
|
|
i2c_ss.add(when: 'CONFIG_MPC_I2C', if_true: files('mpc_i2c.c'))
|
2022-12-27 01:02:59 +03:00
|
|
|
i2c_ss.add(when: 'CONFIG_ALLWINNER_I2C', if_true: files('allwinner-i2c.c'))
|
2019-08-16 18:00:37 +03:00
|
|
|
i2c_ss.add(when: 'CONFIG_NRF51_SOC', if_true: files('microbit_i2c.c'))
|
2021-02-11 01:04:22 +03:00
|
|
|
i2c_ss.add(when: 'CONFIG_NPCM7XX', if_true: files('npcm7xx_smbus.c'))
|
2019-08-16 18:00:37 +03:00
|
|
|
i2c_ss.add(when: 'CONFIG_SMBUS_EEPROM', if_true: files('smbus_eeprom.c'))
|
2023-01-10 11:25:08 +03:00
|
|
|
i2c_ss.add(when: 'CONFIG_ARM_SBCON_I2C', if_true: files('arm_sbcon_i2c.c'))
|
2019-08-16 18:00:37 +03:00
|
|
|
i2c_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_i2c.c'))
|
|
|
|
i2c_ss.add(when: 'CONFIG_PPC4XX', if_true: files('ppc4xx_i2c.c'))
|
2021-04-12 22:45:22 +03:00
|
|
|
i2c_ss.add(when: 'CONFIG_PCA954X', if_true: files('i2c_mux_pca954x.c'))
|
2021-07-08 20:25:52 +03:00
|
|
|
i2c_ss.add(when: 'CONFIG_PMBUS', if_true: files('pmbus_device.c'))
|
2023-06-13 16:33:47 +03:00
|
|
|
system_ss.add_all(when: 'CONFIG_I2C', if_true: i2c_ss)
|