pcie-stm32.h 518 B

12345678910111213141516171819
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * ST PCIe driver definitions for STM32-MP25 SoC
  4. *
  5. * Copyright (C) 2025 STMicroelectronics - All Rights Reserved
  6. * Author: Christian Bruel <christian.bruel@foss.st.com>
  7. */
  8. #include <linux/bits.h>
  9. #include <linux/device.h>
  10. #define to_stm32_pcie(x) dev_get_drvdata((x)->dev)
  11. #define STM32MP25_PCIECR_TYPE_MASK GENMASK(11, 8)
  12. #define STM32MP25_PCIECR_EP 0
  13. #define STM32MP25_PCIECR_LTSSM_EN BIT(2)
  14. #define STM32MP25_PCIECR_RC BIT(10)
  15. #define SYSCFG_PCIECR 0x6000