i2c: designware move to using single isr
With ioapic_mkstub now taking a context value we can have a single isr routine and move away from the isr trampolines we have now Change-Id: Ibbb0f627ac515b12c0590a71da6a3267c952dd30 Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
This commit is contained in:
parent
7a1e221733
commit
94c2960227
2 changed files with 3 additions and 9 deletions
|
@ -838,12 +838,13 @@ DECLARE_DEVICE_INIT_CONFIG(i2c_0,
|
||||||
&i2c_config_dw_0);
|
&i2c_config_dw_0);
|
||||||
|
|
||||||
pre_kernel_late_init(i2c_0, &i2c_0_runtime);
|
pre_kernel_late_init(i2c_0, &i2c_0_runtime);
|
||||||
|
struct device *i2c_dw_isr_0_device = SYS_GET_DEVICE(i2c_0);
|
||||||
|
|
||||||
#ifdef CONFIG_I2C_DW_0_IRQ_DIRECT
|
#ifdef CONFIG_I2C_DW_0_IRQ_DIRECT
|
||||||
IRQ_CONNECT_STATIC(i2c_dw_0,
|
IRQ_CONNECT_STATIC(i2c_dw_0,
|
||||||
CONFIG_I2C_DW_0_IRQ,
|
CONFIG_I2C_DW_0_IRQ,
|
||||||
CONFIG_I2C_DW_0_INT_PRIORITY,
|
CONFIG_I2C_DW_0_INT_PRIORITY,
|
||||||
i2c_dw_isr_0,
|
i2c_dw_isr,
|
||||||
0);
|
0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -864,11 +865,4 @@ void i2c_config_0(struct device *port)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_I2C_DW_0_IRQ_DIRECT
|
|
||||||
void i2c_dw_isr_0(void *unused)
|
|
||||||
{
|
|
||||||
i2c_dw_isr(&__initconfig_i2c_0);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* CONFIG_I2C_DW_0 */
|
#endif /* CONFIG_I2C_DW_0 */
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
#if defined(CONFIG_I2C_DW_0)
|
#if defined(CONFIG_I2C_DW_0)
|
||||||
#ifdef CONFIG_IOAPIC
|
#ifdef CONFIG_IOAPIC
|
||||||
ioapic_mkstub i2c_dw_0 i2c_dw_isr_0 0
|
ioapic_mkstub i2c_dw_0 i2c_dw_isr i2c_dw_isr_0_device
|
||||||
#endif
|
#endif
|
||||||
#endif /* CONFIG_I2C_DW_0 */
|
#endif /* CONFIG_I2C_DW_0 */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue