reset-stm32.h 531 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (C) STMicroelectronics 2022 - All Rights Reserved
  4. * Author: Gabriel Fernandez <gabriel.fernandez@foss.st.com> for STMicroelectronics.
  5. */
  6. struct stm32_reset_cfg {
  7. u16 offset;
  8. u8 bit_idx;
  9. bool set_clr;
  10. };
  11. struct clk_stm32_reset_data {
  12. const struct reset_control_ops *ops;
  13. const struct stm32_reset_cfg **reset_lines;
  14. unsigned int nr_lines;
  15. u32 clear_offset;
  16. };
  17. int stm32_rcc_reset_init(struct device *dev, struct clk_stm32_reset_data *data,
  18. void __iomem *base);