help
The I2C address of the PCA9551 LED controller.
+config STM32_RCC
+ bool "Enable RCC driver for the STM32 SoC's family"
+ depends on STM32 && MISC
+ help
+ Enable the STM32 RCC driver. The RCC block (Reset and Clock Control
+ block) is responsible of the management of the clock and reset
+ generation.
+ This driver is similar to an MFD driver in the Linux kernel.
+
config TEGRA_CAR
bool "Enable support for the Tegra CAR driver"
depends on TEGRA_NO_BPMP
obj-$(CONFIG_WINBOND_W83627) += winbond_w83627.o
obj-$(CONFIG_QFW) += qfw.o
obj-$(CONFIG_ROCKCHIP_EFUSE) += rockchip-efuse.o
+obj-$(CONFIG_STM32_RCC) += stm32_rcc.o
--- /dev/null
+/*
+ * Copyright (C) STMicroelectronics SA 2017
+ * Author(s): Patrice CHOTARD, <patrice.chotard@st.com> for STMicroelectronics.
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#include <common.h>
+#include <dm.h>
+#include <misc.h>
+#include <dm/lists.h>
+
+static int stm32_rcc_bind(struct udevice *dev)
+{
+ int ret;
+ struct udevice *child;
+
+ debug("%s(dev=%p)\n", __func__, dev);
+
+ ret = device_bind_driver_to_node(dev, "stm32h7_rcc_clock",
+ "stm32h7_rcc_clock",
+ dev_ofnode(dev), &child);
+ if (ret)
+ return ret;
+
+ return device_bind_driver_to_node(dev, "stm32_rcc_reset",
+ "stm32_rcc_reset",
+ dev_ofnode(dev), &child);
+}
+
+static const struct misc_ops stm32_rcc_ops = {
+};
+
+static const struct udevice_id stm32_rcc_ids[] = {
+ {.compatible = "st,stm32h743-rcc"},
+ { }
+};
+
+U_BOOT_DRIVER(stm32_rcc) = {
+ .name = "stm32-rcc",
+ .id = UCLASS_MISC,
+ .of_match = stm32_rcc_ids,
+ .bind = stm32_rcc_bind,
+ .ops = &stm32_rcc_ops,
+};