syscfg.h 538 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2016
  4. * Michael Kurz, michi.kurz@gmail.com.
  5. */
  6. #ifndef _STM32_SYSCFG_H
  7. #define _STM32_SYSCFG_H
  8. #ifndef __ASSEMBLY__
  9. #include <linux/bitops.h>
  10. #endif
  11. struct stm32_syscfg_regs {
  12. u32 memrmp;
  13. u32 pmc;
  14. u32 exticr1;
  15. u32 exticr2;
  16. u32 exticr3;
  17. u32 exticr4;
  18. u32 cmpcr;
  19. };
  20. /*
  21. * SYSCFG registers base
  22. */
  23. #define STM32_SYSCFG ((struct stm32_syscfg_regs *)STM32_SYSCFG_BASE)
  24. /* SYSCFG peripheral mode configuration register */
  25. #define SYSCFG_PMC_MII_RMII_SEL BIT(23)
  26. #endif