1 /* SPDX-License-Identifier: BSD-3-Clause */
3 #include <device/mmio.h>
9 blsp_return_t
blsp_i2c_init(blsp_qup_id_t id
)
16 (GPIO(24), 2, GPIO_PULL_UP
, GPIO_2MA
, GPIO_OUTPUT
);
18 (GPIO(25), 2, GPIO_PULL_UP
, GPIO_2MA
, GPIO_OUTPUT
);
24 clock_configure_i2c(19200000);
27 base
= blsp_qup_base(id
);
32 /* Configure Mini core to I2C core */
33 clrsetbits32(base
, BLSP_MINI_CORE_MASK
, BLSP_MINI_CORE_I2C
);