cadmus.h 604 B

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