redwood.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * (C) Copyright 2008
  3. * Feng Kan, Applied Micro Circuit Corp., fkan@amcc.com.
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. #ifndef __REDWOOD_H_
  8. #define __REDWOOD_H_
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. /*----------------------------------------------------------------------------+
  13. | Defines
  14. +----------------------------------------------------------------------------*/
  15. /* Pin Straps Reg */
  16. #define SDR0_PSTRP0 0x0040
  17. #define SDR0_PSTRP0_BOOTSTRAP_MASK 0xE0000000 /* Strap Bits */
  18. #define SDR0_PSTRP0_BOOTSTRAP_SETTINGS0 0x00000000 /* Default strap settings 0 */
  19. #define SDR0_PSTRP0_BOOTSTRAP_SETTINGS1 0x20000000 /* Default strap settings 1 */
  20. #define SDR0_PSTRP0_BOOTSTRAP_SETTINGS2 0x40000000 /* Default strap settings 2 */
  21. #define SDR0_PSTRP0_BOOTSTRAP_SETTINGS3 0x60000000 /* Default strap settings 3 */
  22. #define SDR0_PSTRP0_BOOTSTRAP_SETTINGS4 0x80000000 /* Default strap settings 4 */
  23. #define SDR0_PSTRP0_BOOTSTRAP_SETTINGS5 0xA0000000 /* Default strap settings 5 */
  24. #define SDR0_PSTRP0_BOOTSTRAP_SETTINGS6 0xC0000000 /* Default strap settings 6 */
  25. #define SDR0_PSTRP0_BOOTSTRAP_SETTINGS7 0xE0000000 /* Default strap settings 7 */
  26. #ifdef __cplusplus
  27. }
  28. #endif
  29. #endif /* __REDWOOD_H_ */