blob: 78671928256ed4a7127c97f9b7ed761eac0173b4 [file] [log] [blame]
wdenk03f5c552004-10-10 21:21:55 +00001/*
2 * Copyright 2004 Freescale Semiconductor.
3 *
Wolfgang Denk3765b3e2013-10-07 13:07:26 +02004 * SPDX-License-Identifier: GPL-2.0+
wdenk03f5c552004-10-10 21:21:55 +00005 */
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 */
18extern unsigned int get_board_version(void);
19
20/*
21 * Returns either 33000000 or 66000000 as the SYS_CLK_FREQ.
22 */
23extern unsigned long get_clock_freq(void);
24
25
26/*
27 * Returns 1 - 4, as found in the USER CSR[6:7] bits.
28 */
29extern unsigned int get_pci_slot(void);
30
31
32/*
33 * Returns PCI DUAL as found in CM_PCI[3].
34 */
35extern unsigned int get_pci_dual(void);
36
37
38#endif /* __CADMUS_H_ */