sama7-sfrbu.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Microchip SAMA7 SFRBU registers offsets and bit definitions.
  4. *
  5. * Copyright (C) [2020] Microchip Technology Inc. and its subsidiaries
  6. *
  7. * Author: Claudu Beznea <[email protected]>
  8. */
  9. #ifndef __SAMA7_SFRBU_H__
  10. #define __SAMA7_SFRBU_H__
  11. #ifdef CONFIG_SOC_SAMA7
  12. #define AT91_SFRBU_PSWBU (0x00) /* SFRBU Power Switch BU Control Register */
  13. #define AT91_SFRBU_PSWBU_PSWKEY (0x4BD20C << 8) /* Specific value mandatory to allow writing of other register bits */
  14. #define AT91_SFRBU_PSWBU_STATE (1 << 2) /* Power switch BU state */
  15. #define AT91_SFRBU_PSWBU_SOFTSWITCH (1 << 1) /* Power switch BU source selection */
  16. #define AT91_SFRBU_PSWBU_CTRL (1 << 0) /* Power switch BU control */
  17. #define AT91_SFRBU_25LDOCR (0x0C) /* SFRBU 2.5V LDO Control Register */
  18. #define AT91_SFRBU_25LDOCR_LDOANAKEY (0x3B6E18 << 8) /* Specific value mandatory to allow writing of other register bits. */
  19. #define AT91_SFRBU_25LDOCR_STATE (1 << 3) /* LDOANA Switch On/Off Control */
  20. #define AT91_SFRBU_25LDOCR_LP (1 << 2) /* LDOANA Low-Power Mode Control */
  21. #define AT91_SFRBU_PD_VALUE_MSK (0x3)
  22. #define AT91_SFRBU_25LDOCR_PD_VALUE(v) ((v) & AT91_SFRBU_PD_VALUE_MSK) /* LDOANA Pull-down value */
  23. #define AT91_FRBU_DDRPWR (0x10) /* SFRBU DDR Power Control Register */
  24. #define AT91_FRBU_DDRPWR_STATE (1 << 0) /* DDR Power Mode State */
  25. #endif /* CONFIG_SOC_SAMA7 */
  26. #endif /* __SAMA7_SFRBU_H__ */