1 /* SPDX-License-Identifier: BSD-3-Clause */
3 #include <device/mmio.h>
7 blsp_return_t
blsp_i2c_init(blsp_qup_id_t id
)
9 void *base
= blsp_qup_base(id
);
14 if (blsp_i2c_clock_config(id
) != 0)
17 if (blsp_i2c_init_board(id
))
18 return BLSP_UNSUPPORTED
;
20 /* Configure Mini core to I2C core */
21 clrsetbits32(base
, BLSP_MINI_CORE_MASK
, BLSP_MINI_CORE_I2C
);