summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233/i2c-imx233.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx233/i2c-imx233.c')
-rw-r--r--firmware/target/arm/imx233/i2c-imx233.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/i2c-imx233.c b/firmware/target/arm/imx233/i2c-imx233.c
index fd9801ec1d..0bf5213854 100644
--- a/firmware/target/arm/imx233/i2c-imx233.c
+++ b/firmware/target/arm/imx233/i2c-imx233.c
@@ -34,7 +34,11 @@ struct i2c_dma_command_t
34 struct apb_dma_command_t dma; 34 struct apb_dma_command_t dma;
35 /* PIO words */ 35 /* PIO words */
36 uint32_t ctrl0; 36 uint32_t ctrl0;
37}; 37 /* padded to next multiple of cache line size (32 bytes) */
38 uint32_t pad[4];
39} __attribute__((packed)) CACHEALIGN_ATTR;
40
41__ENSURE_STRUCT_CACHE_FRIENDLY(struct i2c_dma_command_t)
38 42
39#define I2C_NR_STAGES 4 43#define I2C_NR_STAGES 4
40/* Current transfer */ 44/* Current transfer */