xref: /openbmc/u-boot/board/freescale/common/cadmus.h (revision 2f3f477b)
1 /*
2  * Copyright 2004 Freescale Semiconductor.
3  *
4  * SPDX-License-Identifier:	GPL-2.0+
5  */
6 
7 #ifndef __CADMUS_H_
8 #define __CADMUS_H_
9 
10 
11 /*
12  * CADMUS Board System Register interface.
13  */
14 
15 /*
16  * Returns board version register.
17  */
18 extern unsigned int get_board_version(void);
19 
20 /*
21  * Returns either 33000000 or 66000000 as the SYS_CLK_FREQ.
22  */
23 extern unsigned long get_clock_freq(void);
24 
25 
26 /*
27  * Returns 1 - 4, as found in the USER CSR[6:7] bits.
28  */
29 extern unsigned int get_pci_slot(void);
30 
31 
32 /*
33  * Returns PCI DUAL as found in CM_PCI[3].
34  */
35 extern unsigned int get_pci_dual(void);
36 
37 
38 #endif	/* __CADMUS_H_ */
39