stm32mp2_ddr_regs.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright (c) 2021-2024, STMicroelectronics - All Rights Reserved
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
  5. */
  6. #ifndef STM32MP2_DDR_REGS_H
  7. #define STM32MP2_DDR_REGS_H
  8. #include <drivers/st/stm32mp_ddrctrl_regs.h>
  9. #include <lib/utils_def.h>
  10. /* DDR Physical Interface Control (DDRPHYC) registers*/
  11. struct stm32mp_ddrphy {
  12. uint32_t dummy;
  13. } __packed;
  14. /* DDRPHY registers offsets */
  15. #define DDRPHY_INITENG0_P0_SEQ0BDISABLEFLAG6 U(0x240004)
  16. #define DDRPHY_INITENG0_P0_PHYINLPX U(0x2400A0)
  17. #define DDRPHY_DRTUB0_UCCLKHCLKENABLES U(0x300200)
  18. #define DDRPHY_APBONLY0_MICROCONTMUXSEL U(0x340000)
  19. /* DDRPHY registers fields */
  20. #define DDRPHY_INITENG0_P0_PHYINLPX_PHYINLP3 BIT(0)
  21. #define DDRPHY_DRTUB0_UCCLKHCLKENABLES_UCCLKEN BIT(0)
  22. #define DDRPHY_DRTUB0_UCCLKHCLKENABLES_HCLKEN BIT(1)
  23. #define DDRPHY_APBONLY0_MICROCONTMUXSEL_MICROCONTMUXSEL BIT(0)
  24. /* DDRDBG registers offsets */
  25. #define DDRDBG_LP_DISABLE U(0x0)
  26. #define DDRDBG_BYPASS_PCLKEN U(0x4)
  27. /* DDRDBG registers fields */
  28. #define DDRDBG_LP_DISABLE_LPI_XPI_DISABLE BIT(0)
  29. #define DDRDBG_LP_DISABLE_LPI_DDRC_DISABLE BIT(8)
  30. #endif /* STM32MP2_DDR_REGS_H */