]>
git.ipfire.org Git - people/ms/u-boot.git/blob - drivers/misc/stm32_rcc.c
2 * Copyright (C) STMicroelectronics SA 2017
3 * Author(s): Patrice CHOTARD, <patrice.chotard@st.com> for STMicroelectronics.
5 * SPDX-License-Identifier: GPL-2.0+
13 static int stm32_rcc_bind(struct udevice
*dev
)
16 struct udevice
*child
;
18 debug("%s(dev=%p)\n", __func__
, dev
);
20 ret
= device_bind_driver_to_node(dev
, "stm32h7_rcc_clock",
22 dev_ofnode(dev
), &child
);
26 return device_bind_driver_to_node(dev
, "stm32_rcc_reset",
28 dev_ofnode(dev
), &child
);
31 static const struct misc_ops stm32_rcc_ops
= {
34 static const struct udevice_id stm32_rcc_ids
[] = {
35 {.compatible
= "st,stm32h743-rcc"},
39 U_BOOT_DRIVER(stm32_rcc
) = {
42 .of_match
= stm32_rcc_ids
,
43 .bind
= stm32_rcc_bind
,
44 .ops
= &stm32_rcc_ops
,