| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <amdblocks/i2c.h> |
| 4 | #include <soc/iomap.h> |
| 5 | #include <types.h> |
| 6 | |
| 7 | static const struct soc_i3c_ctrlr_info i3c_ctrlr[I3C_CTRLR_COUNT] = { |
| 8 | { APU_I3C0_BASE, "I3C0" }, |
| 9 | { APU_I3C1_BASE, "I3C1" }, |
| 10 | { APU_I3C2_BASE, "I3C2" }, |
| 11 | { APU_I3C3_BASE, "I3C3" } |
| 12 | }; |
| 13 | |
| 14 | const struct soc_i3c_ctrlr_info *soc_get_i3c_ctrlr_info(size_t *num_ctrlrs) |
| 15 | { |
| 16 | *num_ctrlrs = ARRAY_SIZE(i3c_ctrlr); |
| 17 | return i3c_ctrlr; |
| 18 | } |