1 /* 2 * Copyright (c) 2024 Silicon Laboratories Inc. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include "device_subsys.h" 8 #include <zephyr/drivers/clock_control/clock_control_silabs.h> 9 10 struct silabs_clock_control_cmu_config i2c0_clock = { 11 .bus_clock = CLOCK_I2C0, 12 .branch = CLOCK_BRANCH_LSPCLK, 13 }; 14 15 struct silabs_clock_control_cmu_config wdog0_clock = { 16 .bus_clock = CLOCK_WDOG0, 17 .branch = CLOCK_BRANCH_WDOG0CLK, 18 }; 19 20 static const struct device_subsys_data subsys_data[] = { 21 {.subsys = (void *)&i2c0_clock}, 22 {.subsys = (void *)&wdog0_clock}, 23 }; 24 25 static const struct device_data devices[] = { 26 { 27 .dev = DEVICE_DT_GET_ONE(silabs_series_clock), 28 .subsys_data = subsys_data, 29 .subsys_cnt = ARRAY_SIZE(subsys_data) 30 } 31 }; 32