blob: fb74e8f6db5ed04e10d994ac79e4f857a8dde92c [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
wdenk0aeb8532004-10-10 21:21:55 +00002/*
3 * Copyright 2004 Freescale Semiconductor.
wdenk0aeb8532004-10-10 21:21:55 +00004 */
5
6#ifndef __CADMUS_H_
7#define __CADMUS_H_
8
9
10/*
11 * CADMUS Board System Register interface.
12 */
13
14/*
15 * Returns board version register.
16 */
17extern unsigned int get_board_version(void);
18
19/*
20 * Returns either 33000000 or 66000000 as the SYS_CLK_FREQ.
21 */
Tom Riniaea2a992021-12-14 13:36:39 -050022extern unsigned long get_board_sys_clk(void);
wdenk0aeb8532004-10-10 21:21:55 +000023
24
25/*
26 * Returns 1 - 4, as found in the USER CSR[6:7] bits.
27 */
28extern unsigned int get_pci_slot(void);
29
30
31/*
32 * Returns PCI DUAL as found in CM_PCI[3].
33 */
34extern unsigned int get_pci_dual(void);
35
36
37#endif /* __CADMUS_H_ */