cadmus.h 604 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright 2004 Freescale Semiconductor.
  4. */
  5. #ifndef __CADMUS_H_
  6. #define __CADMUS_H_
  7. /*
  8. * CADMUS Board System Register interface.
  9. */
  10. /*
  11. * Returns board version register.
  12. */
  13. extern unsigned int get_board_version(void);
  14. /*
  15. * Returns either 33000000 or 66000000 as the SYS_CLK_FREQ.
  16. */
  17. extern unsigned long get_clock_freq(void);
  18. /*
  19. * Returns 1 - 4, as found in the USER CSR[6:7] bits.
  20. */
  21. extern unsigned int get_pci_slot(void);
  22. /*
  23. * Returns PCI DUAL as found in CM_PCI[3].
  24. */
  25. extern unsigned int get_pci_dual(void);
  26. #endif /* __CADMUS_H_ */